//configure the below five variables to change the style of the feature

//configure the below five variables to change the style of the feature
var featuredelay='7500' //delay between msg features. 3000=3 secondFeatures.
var featurewidth='180px'
var featureheight='277px'
var featurebgcolor='#d2e8ef;'
//set below to '' if you don't wish to use a background image
var featurebackground=''
var featureStatusStyle = "color: #24667C; font-size: 9px; line-height: 22px; font-family: Verdana, Arial, Helvetica; text-decoration: none;";

//configure the below variable to change the contents of the feature
var started = 0;
var isStopped = 0;
var doneStopping = 0;
var featureForward = 1;
var topFeature;
var bottomFeature;

var features=new Array();

features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_fix_gun_checks.gif" alt="Fix Gun Checks" width="180" height="29" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="http://www.fixgunchecks.org/"><img src="../../includes/site_images/misc/col3_national_drive.jpg" width="142" height="96" border="0" alt="Fix Gun Checks" /></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="http://www.fixgunchecks.org/">Follow the National Drive to Fix Gun Checks</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';


features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_trace_the_guns.gif" alt="Trace The Guns" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/trace_the_guns_report.pdf"><img src="../../includes/site_images/misc/col3_trace_the_guns.jpg" border="0" alt="Trace The Guns"></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/trace_the_guns_report.pdf">Download the Full Report (in PDF)</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';

features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/title_issue_brief.gif" alt="Issue Brief" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/issue_brief_mexico_2010.pdf"><img src="../../images/features/scroll_issue_brief.gif" border="0" alt="Issue Brief: The Movement of Illegal Guns Across the U.S. - Mexico Border"></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/issue_brief_mexico_2010.pdf">Download the full issue brief (in PDF)</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';



<!--features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_2010_analysis.gif" alt="2010 Analysis" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="link to pdf"><img src="../../images/features/report_2010.jpg" border="0" alt="The Movement of Illigal Guns in America: 2010"></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="link to pdf">Learn more about 2009 crime gun trace data (in PDF)</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';-->


features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_terror_gap.gif" alt="Terror Gap" width="180" height="29" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="http://www.TerrorGap.org"><img src="../../includes/site_images/misc/col3_terror_gap.jpg" width="142" height="96" border="0" alt="Terror Gap" /></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="http://www.TerrorGap.org">Learn about the coalition\'s efforts to close the Terror Gap. Visit www.TerrorGap.org</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';
features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_loophole.gif" alt="Coalition Launches Campaign to Close the Gun Show Loophole" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="http://www.closetheloophole.org"><img src="../../includes/site_images/features/scroll_loophole.jpg" border="0" alt="Gun Show Loophole"></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="http://www.closetheloophole.org">Learn about the coalition\'s campaign to close the Gun Show Loophole</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';
features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_blueprint_fa.gif" alt="Blueprint for Federal Action" width="180" height="44" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/blueprint_federal_action.pdf"><img src="../../includes/site_images/features/col3_blueprint.gif" width="142" height="107" border="0" alt="Blueprint for Federal Action"></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="../../downloads/pdf/blueprint_federal_action.pdf">Read the coalition\'s list of 40 recommendations for better enforcing existing current gun laws</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';
features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_luntz.gif" alt="Luntz NRA Poll" width="180" height="29" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="../../html/federal/nra_member_poll.shtml"><img src="../../includes/site_images/features/icon_luntz.jpg" width="142" height="107" border="0" alt="Luntz NRA Poll" /></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="../../html/federal/nra_member_poll.shtml">Learn more about the Luntz Poll of NRA members and non-NRA gun-owners</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';
features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_terror_gap.gif" alt="Terror Gap" width="180" height="29" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="http://www.gao.gov/new.items/d10703t.pdf"><img src="../../includes/site_images/misc/col3_gao.gif" width="142" height="58" border="0" alt="The coalition launches campaign to repeal the Tiahrt Amendments." /></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="http://www.gao.gov/new.items/d10703t.pdf">See the new GAO report that shows terrorism suspects were able to buy guns 1,119 times since 2004</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';
features[features.length]='<table cellspacing="0" cellpadding="0" border="0" width="180" height="'+featureheight+'"><tr><td align="left" valign="top" width="180" colspan="2"><img src="../../includes/site_images/titles/col3_what_we_stand_for.gif" alt="What We Stand For" width="180" height="29" border="0" /></td></tr><tr><td width="142" height="100%"><table cellspacing="0" cellpadding="0" background="0" class="right_col_bg" height="100%"><tr><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td><td align="left" valign="top" width="142"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="12" border="0" /></td><td align="left" valign="top" width="15" rowspan="10"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="15" height="11" border="0" /></td></tr><tr><td><a href="../../html/media-center/setting-the-record.shtml"><img src="../../includes/site_images/misc/col3_setting_the_record.jpg" width="142" height="57" border="0" alt="Setting the Record Straight" /></a></td></tr><tr><td><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="10" border="0" /></td></tr><tr><td><a href="../../html/media-center/setting-the-record.shtml">Read Recent Editorials about the Coalition\'s Purpose</a></td></tr><tr><td align="left" valign="top" width="142" height="100%"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="142" height="21" border="0" /></td></tr></table></td><td width="8"><img src="../../includes/site_images/spacers/spacer.gif" alt="" width="8" height="5" border="0" /></td></tr></table>';



var ieFeature=document.all
var domFeature=document.getElementById

if (features.length>2)
	f=2
else
	f=0

function moveFeature1(whichFeatureLayer){
	flayer=eval(whichFeatureLayer)
	if (flayer.top>0&&flayer.top<=5){
		flayer.top=0
		setTimeout("moveFeature1(flayer)",featuredelay)
		setTimeout("moveFeature2(document.mainFeature.document.secondFeature)",featuredelay)
		return
	}
	if (flayer.top>=flayer.document.height*-1){
		flayer.top-=5
		setTimeout("moveFeature1(flayer)",50)
	}
	else{
		flayer.top=parseInt(featureheight)
		flayer.document.write(features[f])
		flayer.document.close()
		if (f==features.length-1)
			f=0
		else
			f++
	}
}

function moveFeature2(whichFeatureLayer){
	flayer2=eval(whichFeatureLayer)
	if (flayer2.top>0&&flayer2.top<=5){
		flayer2.top=0
		setTimeout("moveFeature2(flayer2)",featuredelay)
		setTimeout("moveFeature1(document.mainFeature.document.firstFeature)",featuredelay)
		return
	}
	if (flayer2.top>=flayer2.document.height*-1){
		flayer2.top-=5
		setTimeout("moveFeature2(flayer2)",50)
	}
	else{
		flayer2.top=parseInt(featureheight)
		flayer2.document.write(features[f])
		flayer2.document.close()
		if (f==features.length-1)
			f=0
		else
			f++
	}
}

function moveFeature3(whichFeature){
	fdiv=eval(whichFeature)
	if (parseInt(fdiv.style.top)>0&&parseInt(fdiv.style.top)<=5){
		fdiv.style.top=0+"px"
		if (isStopped == 1) {changeButton(1); return;}
		setTimeout("moveFeature3(fdiv)",featuredelay)
		setTimeout("moveFeature4(secondFeature2_obj)",featuredelay)
		return
	}
	if (parseInt(fdiv.style.top)>=fdiv.offsetHeight*-1){
		if (isStopped == 1 && parseInt(fdiv.style.top) == 0) {changeButton(1); return;}
		if (isStopped == 1 && parseInt(fdiv.style.top) == parseInt(featureheight)) {changeButton(1); return;}
		fdiv.style.top=parseInt(fdiv.style.top)-5+"px"
		setTimeout("moveFeature3(fdiv)",50)
	}
	else{
		fdiv.style.top=parseInt(featureheight)
		fdiv.innerHTML=features[f]
		featureStatus();
		if (f==features.length-1)
			f=0
		else
			f++
	}
}

function moveFeature4(whichFeature){
	fdiv2=eval(whichFeature)
	if (parseInt(fdiv2.style.top)>0&&parseInt(fdiv2.style.top)<=5){
		fdiv2.style.top=0+"px"
		if (isStopped == 1) {changeButton(1); return;}
		setTimeout("moveFeature4(fdiv2)",featuredelay)
		setTimeout("moveFeature3(firstFeature2_obj)",featuredelay)
		return
	}
	if (parseInt(fdiv2.style.top)>=fdiv2.offsetHeight*-1){
		if (isStopped == 1 && parseInt(fdiv2.style.top) == 0) {changeButton(1); return;}
		if (isStopped == 1 && parseInt(fdiv2.style.top) == parseInt(featureheight)) {changeButton(1); return;}
		fdiv2.style.top=parseInt(fdiv2.style.top)-5+"px"
		setTimeout("moveFeature4(secondFeature2_obj)",50)
	}
	else{
		fdiv2.style.top=parseInt(featureheight)
		fdiv2.innerHTML=features[f]
		featureStatus();
		if (f==features.length-1)
			f=0
		else
			f++
	}
}

function startFeatures(){
	// make sure function doesn't fun twice
	if (started != 0)
		return

	started++

	if (ieFeature||domFeature){
		firstFeature2_obj=ieFeature? firstFeature2 : document.getElementById("firstFeature2")
		secondFeature2_obj=ieFeature? secondFeature2 : document.getElementById("secondFeature2")
		moveFeature3(firstFeature2_obj)
		secondFeature2_obj.style.top=featureheight
		secondFeature2_obj.style.visibility='visible'
		changeButton(0);
		document.getElementById("featureStatus").innerHTML = '<span id="featureStatus" style="' + featureStatusStyle + '">  1 OF ' + features.length + '</span>';
	}
	else if (document.layers){
		document.mainFeature.visibility='show'
		moveFeature1(document.mainFeature.document.firstFeature)
		document.mainFeature.document.secondFeature.top=parseInt(featureheight)+5
		document.mainFeature.document.secondFeature.visibility='show'
	}
}

function featureStatus() {
	document.getElementById("featureStatus").innerHTML = '<span id="featureStatus">' + (f==0?features.length:f) + ' OF ' + features.length + '</span>';
}

/*function featureStatus() {
	document.getElementById("featureStatus").innerHTML = '<span id="featureStatus" style="' + featureStatusStyle + '">' + getMessage(i) + ' OF ' + features.length + '</span>';
}

function getMessage(variable){
	var mes=variable-1;
	if(mes<0) mes=features.length-1;
	var lastItem=(mes==features.length-1?members:(mes+1));
	var firstFeatureItem=mes+1;
	return(firstFeatureItem);
}*/

function stopfeature() {
	isStopped = 1;
	changeButton(2);
}

function restartFeatures() {
	if (isStopped == 0 ) {return;}
	isStopped = 0;
	if (featureForward == 0) {
		if (f==features.length-1) {
			f=1;
		} else if (f==features.length-2) {
			f=0;
		} else {
			f=i+2
		}
	}

	moveFeature3(firstFeature2_obj);
	moveFeature4(secondFeature2_obj);

	changeButton(0);
	featureForward = 1;
	doneStopping = 0;
}

function changeButton(what) {
	if (what==0) {
		document.getElementById("startstopFeature").innerHTML = '<a href="javascript:stopfeature();"><img src="../../includes/site_images/misc/members_hold.gif" name="members_hold" border="0" align="absmiddle" width="13" height="22" alt="Pause feature" onMouseOver="featureIconSwap(\'members_hold\',this,0);" onMouseOut="featureIconSwap(\'members_hold\',this,1);"></a>';
		document.getElementById("nextFeature").innerHTML = '<a href="javascript:nextfeature();"><img src="../../includes/site_images/misc/members_forward.gif" name="members_forward" border="0" align="absmiddle" width="10" height="22"  onMouseOver="featureIconSwap(\'members_forward\',this,0);" onMouseOut="featureIconSwap(\'members_forward\',this,1);"></a>';
		document.getElementById("backFeature").innerHTML = '<a href="javascript:backfeature();"><img src="../../includes/site_images/misc/members_back.gif" name="members_back" border="0" align="absmiddle" width="10" height="22"  onMouseOver="featureIconSwap(\'members_back\',this,0);" onMouseOut="featureIconSwap(\'members_back\',this,1);"></a>';
	} else if (what==1) {
		firstFeature2_top=parseInt(document.getElementById("firstFeature2").style.top)
		secondFeature2_top=parseInt(document.getElementById("secondFeature2").style.top)
		if ((firstFeature2_top != 0 && firstFeature2_top != parseInt(featureheight)) || (secondFeature2_top != 0 && secondFeature2_top != parseInt(featureheight))) {
			setTimeout("changeButton(1)",50)
			return;
		}
		document.getElementById("startstopFeature").innerHTML = '<a href="javascript:restartFeatures();"><img src="../../includes/site_images/misc/members_scroll.gif" name="members_feature" border="0" align="absmiddle" width="13" height="22" alt="Resume feature" onMouseOver="featureIconSwap(\'members_scroll\',this,0);" onMouseOut="featureIconSwap(\'members_scroll\',this,1);"></a>';
		document.getElementById("nextFeature").innerHTML = '<a href="javascript:nextfeature();"><img src="../../includes/site_images/misc/members_forward.gif" name="members_forward" border="0" align="absmiddle" width="10" height="22"  onMouseOver="featureIconSwap(\'members_forward\',this,0);" onMouseOut="featureIconSwap(\'members_forward\',this,1);"></a>';
		document.getElementById("backFeature").innerHTML = '<a href="javascript:backfeature();"><img src="../../includes/site_images/misc/members_back.gif" name="members_back" border="0" align="absmiddle" width="10" height="22"  onMouseOver="featureIconSwap(\'members_back\',this,0);" onMouseOut="featureIconSwap(\'members_back\',this,1);"></a>';
		doneStopping = 1;
	} else if (what==2) {
		document.getElementById("startstopFeature").innerHTML = '<img src="../../includes/site_images/misc/members_wait.gif" border="0" align="absmiddle" width="13" height="22" alt="Please Wait...">';
		document.getElementById("nextFeature").innerHTML = '<img src="../../includes/site_images/misc/members_forward.gif" name="members_forward" border="0" align="absmiddle" width="10" height="22" >';
		document.getElementById("backFeature").innerHTML = '<img src="../../includes/site_images/misc/members_back.gif" name="members_back" border="0" align="absmiddle" width="10" height="22" >';
	}
}

function nextfeature() {
/*	if (isStopped == 0) {	stopfeature(); }
	if (doneStopping == 0) {
		setTimeout("nextfeature()",50)
		return;
	}
	if (parseInt(document.getElementById("firstFeature2").style.top)==0) {
		topFeature = document.getElementById("firstFeature2");
		bottomFeature = document.getElementById("secondFeature2");
	} else {
		bottomFeature = document.getElementById("firstFeature2");
		topFeature = document.getElementById("secondFeature2");
	}
	if (featureForward == 0) {
		if (f==features.length-1) {
			f=1;
		} else if (f==features.length-2) {
			f=0;
		} else {
			f=f+2
		}
	}
	eval(topFeature).innerHTML = (i==0?features[features.length-1]:features[f-1]);
	eval(bottomFeature).innerHTML = features[f];
	featureStatus();
	featureForward = 1;
	if (f==features.length-1) {
		f=0;
	} else {


		f++;
	}
}*/
if (isStopped == 0) {	stopfeature(); }
	if (doneStopping == 0) {
		setTimeout("nextfeature()",50)
		return;
	}
	if (parseInt(document.getElementById("firstFeature2").style.top)==0) {
		topLayer = document.getElementById("firstFeature2");
		bottomLayer = document.getElementById("secondFeature2");
	} else {
		bottomLayer = document.getElementById("firstFeature2");
		topLayer = document.getElementById("secondFeature2");
	}
	if (featureForward == 0) {
		if (f==features.length-1) {
			f=1;
		} else if (f==features.length-2) {
			f=0;
		} else {
			f=f+2
		}
	}
	eval(topLayer).innerHTML = (f==0?features[features.length-1]:features[f-1]);
	eval(bottomLayer).innerHTML = features[f];
	featureStatus();
	featureForward = 1;
	if (f==features.length-1) {
		f=0;
	} else {
		f++;
	}
}

function backfeature() {
	/*if (isStopped == 0) {	stopfeature(); }
	if (doneStopping == 0) {
		setTimeout("backfeature()",50)
		return;
	}
	if (parseInt(document.getElementById("firstFeature2").style.top)==0) {
		topFeature = document.getElementById("firstFeature2");
		bottomFeature = document.getElementById("secondFeature2");
	} else {
		bottomFeature = document.getElementById("firstFeature2");
		topFeature = document.getElementById("secondFeature2");
	}
	if (featureForward == 1) {
		if (f==0) {
			f=features.length-2;
		} else if (f==1) {
			f=features.length-1;
		} else {
			f=f-2
		}
	}
	eval(topFeature).innerHTML = (i==0?features[features.length-1]:features[f-1]);
	eval(bottomFeature).innerHTML = features[f];
	featureStatus();
	featureForward = 0;
	if (f==0) {
		f=features.length-1;
	} else {
		f--;
	}
}*/
if (isStopped == 0) {	stopfeature(); }
	if (doneStopping == 0) {
		setTimeout("backfeature()",50)
		return;
	}
	if (parseInt(document.getElementById("firstFeature2").style.top)==0) {
		topLayer = document.getElementById("firstFeature2");
		bottomLayer = document.getElementById("secondFeature2");
	} else {
		bottomLayer = document.getElementById("firstFeature2");
		topLayer = document.getElementById("secondFeature2");
	}
	if (featureForward == 1) {
		if (f==0) {
			f=features.length-2;
		} else if (f==1) {
			f=features.length-1;
		} else {
			f=f-2
		}
	}
	eval(topLayer).innerHTML = (f==0?features[features.length-1]:features[f-1]);
	eval(bottomLayer).innerHTML = features[f];
	featureStatus();
	featureForward = 0;
	if (f==0) {
		f=features.length-1;
	} else {
		f--;
	}
}

function featureIconSwap(iconImg, what, which) {
	var imgPath = "../../includes/site_images/misc/";
	if (which == 0) {
		what.src = imgPath + iconImg + "_over.gif";
	} else {
		what.src = imgPath + iconImg + ".gif";
	}
}
document.write('<ilayer id="mainFeature" width='+featurewidth+' height='+featureheight+' bgColor='+featurebgcolor+' visibility=hide> <layer id="firstFeature" left=0 top=1 width='+featurewidth+'>');
       
if (document.layers){
	document.write(features[0]);
}
document.write('</layer><layer id="secondFeature" left=0 top=0 width='+featurewidth+' visibility=hide>');
if (document.layers){
	document.write(features[dynfeature=(features.length==1)? 0 : 1])
}
document.write('</layer></ilayer>');
if (ieFeature||domFeature){
	document.writeln('<div id="mainFeature2" style="position:relative;width:'+featurewidth+';height:'+featureheight+';overflow:hidden;">')
	document.writeln('<div style="position:absolute;width:'+featurewidth+';height:'+featureheight+';clip:rect(0 '+featurewidth+' '+featureheight+' 0);left:0px;top:0px">')
	document.writeln('<div id="firstFeature2" style="position:absolute;width:'+featurewidth+';left:0px;top:1px;">')
	document.write(features[0])
	document.writeln('</div>')
	document.writeln('<div id="secondFeature2" style="position:absolute;width:'+featurewidth+';left:0px;top:0px;visibility:hidden">')
	document.write(features[dynfeature=(features.length==1)? 0 : 1])
	document.writeln('</div>')
	document.writeln('</div>')
	document.writeln('</div>')
}
