
/* USE WORDWRAP AND MAXIMIZE THE WINDOW TO SEE THIS FILE
========================================
 V-NewsTicker v1.2
 License : Freeware (Enjoy it!)
 (c)2003 VASIL DINKOV- PLOVDIV, BULGARIA
========================================
 For IE4+, NS4+ & Opera5+
========================================
 Get the NewsTicker script at:
 http://www.smartmenus.org/other.php
 and don't wait to get the Great SmartMenus script at:
 http://www.smartmenus.org
 LEAVE THESE NOTES PLEASE - delete the comments if you want */

v_font_4='verdana,arial,sans-serif';
v_fontSize_4='10pt';
v_fontSizeNS4_4='10pt';
v_fontWeight_4='normal';
v_textDecoration_4='none';
v_textDecorationHover_4='underline';
v_paddingTop_4=2;
v_paddingLeft_4=2;
v_timeout_4=2500;
v_slideSpeed_4=30;
v_slideDirection_4=0;
v_strHead_4='';
v_strFoot_4='';
v_fontColor_4='#ffffff';
v_pauseOnMouseOver_4=false;
v_fontColorHover_4='#ff0000';
v_bgColor_4='#000000';
v_slideSpeed_4=7;
v_width_4=425;
v_height_4=32;

v_content_4=[		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38688','<B>WCA announces keynote speakers for tradeshow</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38687','<B>Report: Carwashes help with water-saving goals</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38686','<B>Mark VII names management team for Canada</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38685','<B>Carwash reopens following $1.5M makeover</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38684','<B>Another online directory for carwashes goes live</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38683','<B>Carwash may pay $16K a year for wastewater fee</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38682','<B>Thirty-six-year-old wash to get major makeover</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38681','<B>Is this carwash a historic landmark?</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38680','<B>Waterless carwash has more customers in Abu Dhabi</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38679','<B>Board recommends Valvoline discontinue ad claims</B><br>7/29/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38646','<B>WA county looks to build Earth-friendly washes</B><br>7/22/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38645','<B>Crime report: Thefts reported from coast to coast</B><br>7/22/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38644','<B>SECWA Road Show is this Sunday in Memphis</B><br>7/22/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38643','<B>Carwash sells winning lottery ticket</B><br>7/22/2010<br>','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=2&SiteGroupID=21&ArticleID=38642','<B>Suds Car Wash is the “best” in El Dorado Hills</B><br>7/22/2010<br>','_blank']];

v_nS4_4=document.layers?1:0;
v_iE_4=document.all&&!window.innerWidth&&navigator.userAgent.indexOf("MSIE")!=-1?1:0;
v_oP_4=navigator.userAgent.indexOf("Opera")!=-1?1:0;
v_kN_4=navigator.userAgent.indexOf("Konqueror")!=-1?1:0;
v_mZ_4=navigator.userAgent.indexOf("Mozilla")!=-1?1:0;
v_count_4=v_content_4.length;
v_s1_4=1;
v_cur_4=1;
v_d_4=v_slideDirection_4?-1:1;
v_TIM_4=0;
v_fontSize2_4=v_nS4_4&&navigator.platform.toLowerCase().indexOf("win")!=-1?v_fontSizeNS4_4:v_fontSize_4;
v_canPause_4=0;

function v_getOS_4(a){
	return v_iE_4?document.all[a].style:v_nS4_4?document.layers['v_container_4'].document.layers[a]:document.getElementById(a).style;
}


function v_start_4(){
	var o=v_getOS_4('v_'+v_cur_4+'_4');
	if(!o)return;
	if(v_iE_4||v_oP_4){
		if(o.pixelLeft==v_paddingLeft_4){
			var oWidth=v_getAnchorX_4(v_cur_4);
			var o2=v_getOS_4('v_'+(v_cur_4<v_count_4?v_cur_4+1:1)+'_4');
			o2.pixelLeft = (oWidth>v_width_4)?oWidth*v_d_4:v_width_4*v_d_4;
			v_canPause_4=1;
			if(v_count_4>1)v_TIM_4=setTimeout("v_canPause_4=0;v_slide_4()",v_timeout_4);
			return;
		}
		o.pixelLeft-=v_d_4;
		if(o.visibility.toLowerCase()!='visible')o.visibility='visible';
		setTimeout("v_start_4()",v_slideSpeed_4);
		return;
	}
	if(parseInt(o.left)==v_paddingLeft_4){
		var oWidth=v_getAnchorX_4(v_cur_4);
		var o2=v_getOS_4('v_'+(v_cur_4<v_count_4?v_cur_4+1:1)+'_4');
		o2.left = (oWidth>v_width_4)?oWidth*v_d_4:v_width_4*v_d_4;
		v_canPause_4=1;
		if(o2.visibility.toLowerCase()!='visible')o2.visibility='visible';
		if(v_count_4>1)v_TIM_4=setTimeout("v_canPause_4=0;v_slide_4()",v_timeout_4);
		return;
	}
	o.left=parseInt(o.left)-v_d_4;
	setTimeout("v_start_4()",v_slideSpeed_4);
}

function v_slide_4(){

	var oHide=v_getOS_4('v_'+v_cur_4+'_4');
	oHide.visibility='hidden';
	var o=v_getOS_4('v_'+v_cur_4+'_4');
	var oWidth=v_getAnchorX_4(v_cur_4);
	var o2=v_getOS_4('v_'+(v_cur_4<v_count_4?v_cur_4+1:1)+'_4');
	var oWidth2=v_getAnchorX_4( (v_cur_4<v_count_4)?(v_cur_4+1):1 );
	if(!o||!o2)return;
	if(v_iE_4||v_oP_4){
		if(o.pixelLeft==v_paddingLeft_4*2-(oWidth>v_width_4?oWidth:v_width_4)*v_d_4){
			if(v_oP_4)o.visibility='hidden';
			v_cur_4=v_cur_4<v_count_4?v_cur_4+1:1;
			var o3=v_getOS_4('v_'+(v_cur_4<v_count_4?v_cur_4+1:1)+'_4');
			o3.pixelLeft = (oWidth2>v_width_4?oWidth2:v_width_4)*v_d_4;
			v_canPause_4=1;
			v_TIM_4=setTimeout("v_canPause_4=0;v_slide_4()",v_timeout_4);
			return;
		}
		o.pixelLeft-=v_d_4;
		if(o2.visibility.toLowerCase()!='visible')o2.visibility='visible';
		o2.pixelLeft-=v_d_4;
		setTimeout("v_slide_4()",v_slideSpeed_4);
		return;
	}
	if(parseInt(o.left)==v_paddingLeft_4*2-(oWidth>v_width_4?oWidth:v_width_4)*v_d_4){
		v_cur_4=v_cur_4<v_count_4?v_cur_4+1:1;
		var o3=v_getOS_4('v_'+(v_cur_4<v_count_4?v_cur_4+1:1)+'_4');
		o3.left = (oWidth2>v_width_4?oWidth2:v_width_4)*v_d_4;
		v_canPause_4=1;
		if(o3.visibility.toLowerCase()!='visible')o3.visibility='visible';
		v_TIM_4=setTimeout("v_canPause_4=0;v_slide_4()",v_timeout_4);
		return;
	}
	o.left=parseInt(o.left)-v_d_4;
	o2.left=parseInt(o2.left)-v_d_4;
	setTimeout("v_slide_4()",v_slideSpeed_4);
}

function v_getAnchorX_4(a) {
	//IE will use all
	//netscape will use document.layer.document.anchor
	//opera/mozilla will use getElementById
 var o = v_iE_4?document.all['v_end'+a+'_4']:v_nS4_4?document.layers['v_container_4'].document.layers['v_'+a+'_4'].document.anchors['v_end'+a+'_4']:document.getElementById('v_end'+a+'_4');

	//IE will use offsetLeft
	//opera/mozilla will use offsetLeft
	//netscape 4 will use x (but netscape 4 sucks, so we'll return the width of the container)
	return v_iE_4?o.offsetLeft:v_nS4_4?v_width_4:o.offsetLeft;
}


function NSInit_4() {
	for(v_i_4=1;v_i_4<=v_count_4;v_i_4++) {
		var o=v_getOS_4('v_'+v_i_4+'_4');
		o.left = v_width_4*v_d_4;
		o.visibility='visible';
	}
	//setTimeout("v_start_4()",10000);
	v_start_4();
}

v_temp_4='<div '+(v_nS4_4?"name":"id")+'=v_container_4 style="position:relative;width:'+v_width_4+'px;height:'+v_height_4+'px;background-color:'+v_bgColor_4+';layer-background-color:'+v_bgColor_4+';clip:rect(0,'+v_width_4+','+v_height_4+',0);overflow:hidden">';
for(v_i_4=0;v_i_4<v_count_4;v_i_4++) {
	v_temp_4+='<div '+(v_nS4_4?"name":"id")+'="v_'+(v_i_4+1)+'_4" style="position:absolute;left:'+(v_nS4_4?v_paddingLeft_4:v_width_4*v_d_4)+'px;top:'+v_paddingTop_4+'px;height:'+(v_height_4-v_paddingTop_4*2)+'px;white-space:nowrap;'+(v_oP_4||v_kN_4||v_nS4_4?"visibility:hidden":"")+'">';
	v_temp_4+='<a href="'+v_content_4[v_i_4][0]+'" target="'+v_content_4[v_i_4][2]+'" class=vnewsticker_4'+(v_pauseOnMouseOver_4?" onmouseover=\'if(v_canPause_4&&v_count_4>1)clearTimeout(v_TIM_4)\' onmouseout=\'if(v_canPause_4&&v_count_4>1)v_TIM_4=setTimeout(\"v_canpause_4=0;v_slide_4()\","+v_timeout_4+")\'":"")+'>'+v_content_4[v_i_4][1]+'</a>';
	v_temp_4+='&nbsp;&nbsp;&nbsp;<a name="v_end'+(v_i_4+1)+'_4" id="v_end'+(v_i_4+1)+'_4">&nbsp;</a>';
	v_temp_4+='</div>';
}
v_temp_4+='</div>';



document.write('<style>.vnewsticker_4{font-family:'+v_font_4+';font-size:'+v_fontSize2_4+';color:'+v_fontColor_4+';text-decoration:'+v_textDecoration_4+';font-weight:'+v_fontWeight_4+'}.vnewsticker_4:hover{font-family:'+v_font_4+';font-size:'+v_fontSize2_4+';font-weight:'+v_fontWeight_4+';color:'+v_fontColorHover_4+';text-decoration:'+v_textDecorationHover_4+'}</style>');

document.write(v_strHead_4);
document.write(v_temp_4);
document.write(v_strFoot_4);
if(!v_kN_4&&!v_nS4_4)setTimeout("v_start_4()",1000);
if (v_nS4_4) {
	onresize=function(){location.reload()}
	setTimeout("NSInit_4()", 1000);
}

