
/* 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_3='verdana,arial,sans-serif';
v_fontSize_3='10pt';
v_fontSizeNS4_3='10pt';
v_fontWeight_3='normal';
v_textDecoration_3='none';
v_textDecorationHover_3='underline';
v_paddingTop_3=2;
v_paddingLeft_3=2;
v_timeout_3=2500;
v_slideSpeed_3=30;
v_slideDirection_3=0;
v_strHead_3='';
v_strFoot_3='';
v_fontColor_3='#000099';
v_pauseOnMouseOver_3=false;
v_fontColorHover_3='#ff0000';
v_bgColor_3='#FFFFFF';
v_slideSpeed_3=7;
v_width_3=425;
v_height_3=32;

v_content_3=[		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38697','<B>Subscribe to Water Technology Print or Digital magazine today!</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38696','<B>Security worker found dead at water treatment plant</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38695','<B>EPA to oversee Kalamazoo River oil spill response</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38694','<B>UN resolution declares access to clean water as fundamental right</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38693','<B>Pentair reports double digit revenue gains</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38692','<B>iMPACT 3 Global to distribute Aquentium ozone equipment</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38691','<B>Smart Yard™ program saves more than 1.9 million gallons of water</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38690','<B>Massive storm causes 2.1 billion-gallon sewer overflow</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38689','<B>Household chemicals blamed for duck die-off</B>-7/29/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38678','<B>Massive oil spill besieges major Michigan waterway</B>-7/28/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38677','<B>Report answers questions about effects of disinfectants on PE pipe</B>-7/28/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38676','<B>California American Water appoints new engineering director</B>-7/28/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38675','<B>WRF to host workshop on California’s water-energy nexus</B>-7/28/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38674','<B>Pa. farmers urged to comply with water quality regulations</B>-7/28/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=98&SiteGroupID=121&ArticleID=38673','<B>Pure Technologies acquires PPIC</B>-7/28/2010','_blank']];

v_nS4_3=document.layers?1:0;
v_iE_3=document.all&&!window.innerWidth&&navigator.userAgent.indexOf("MSIE")!=-1?1:0;
v_oP_3=navigator.userAgent.indexOf("Opera")!=-1?1:0;
v_kN_3=navigator.userAgent.indexOf("Konqueror")!=-1?1:0;
v_mZ_3=navigator.userAgent.indexOf("Mozilla")!=-1?1:0;
v_count_3=v_content_3.length;
v_s1_3=1;
v_cur_3=1;
v_d_3=v_slideDirection_3?-1:1;
v_TIM_3=0;
v_fontSize2_3=v_nS4_3&&navigator.platform.toLowerCase().indexOf("win")!=-1?v_fontSizeNS4_3:v_fontSize_3;
v_canPause_3=0;

function v_getOS_3(a){
	return v_iE_3?document.all[a].style:v_nS4_3?document.layers['v_container_3'].document.layers[a]:document.getElementById(a).style;
}


function v_start_3(){
	var o=v_getOS_3('v_'+v_cur_3+'_3');
	if(!o)return;
	if(v_iE_3||v_oP_3){
		if(o.pixelLeft==v_paddingLeft_3){
			var oWidth=v_getAnchorX_3(v_cur_3);
			var o2=v_getOS_3('v_'+(v_cur_3<v_count_3?v_cur_3+1:1)+'_3');
			o2.pixelLeft = (oWidth>v_width_3)?oWidth*v_d_3:v_width_3*v_d_3;
			v_canPause_3=1;
			if(v_count_3>1)v_TIM_3=setTimeout("v_canPause_3=0;v_slide_3()",v_timeout_3);
			return;
		}
		o.pixelLeft-=v_d_3;
		if(o.visibility.toLowerCase()!='visible')o.visibility='visible';
		setTimeout("v_start_3()",v_slideSpeed_3);
		return;
	}
	if(parseInt(o.left)==v_paddingLeft_3){
		var oWidth=v_getAnchorX_3(v_cur_3);
		var o2=v_getOS_3('v_'+(v_cur_3<v_count_3?v_cur_3+1:1)+'_3');
		o2.left = (oWidth>v_width_3)?oWidth*v_d_3:v_width_3*v_d_3;
		v_canPause_3=1;
		if(o2.visibility.toLowerCase()!='visible')o2.visibility='visible';
		if(v_count_3>1)v_TIM_3=setTimeout("v_canPause_3=0;v_slide_3()",v_timeout_3);
		return;
	}
	o.left=parseInt(o.left)-v_d_3;
	setTimeout("v_start_3()",v_slideSpeed_3);
}

function v_slide_3(){

	var oHide=v_getOS_3('v_'+v_cur_3+'_3');
	oHide.visibility='hidden';
	var o=v_getOS_3('v_'+v_cur_3+'_3');
	var oWidth=v_getAnchorX_3(v_cur_3);
	var o2=v_getOS_3('v_'+(v_cur_3<v_count_3?v_cur_3+1:1)+'_3');
	var oWidth2=v_getAnchorX_3( (v_cur_3<v_count_3)?(v_cur_3+1):1 );
	if(!o||!o2)return;
	if(v_iE_3||v_oP_3){
		if(o.pixelLeft==v_paddingLeft_3*2-(oWidth>v_width_3?oWidth:v_width_3)*v_d_3){
			if(v_oP_3)o.visibility='hidden';
			v_cur_3=v_cur_3<v_count_3?v_cur_3+1:1;
			var o3=v_getOS_3('v_'+(v_cur_3<v_count_3?v_cur_3+1:1)+'_3');
			o3.pixelLeft = (oWidth2>v_width_3?oWidth2:v_width_3)*v_d_3;
			v_canPause_3=1;
			v_TIM_3=setTimeout("v_canPause_3=0;v_slide_3()",v_timeout_3);
			return;
		}
		o.pixelLeft-=v_d_3;
		if(o2.visibility.toLowerCase()!='visible')o2.visibility='visible';
		o2.pixelLeft-=v_d_3;
		setTimeout("v_slide_3()",v_slideSpeed_3);
		return;
	}
	if(parseInt(o.left)==v_paddingLeft_3*2-(oWidth>v_width_3?oWidth:v_width_3)*v_d_3){
		v_cur_3=v_cur_3<v_count_3?v_cur_3+1:1;
		var o3=v_getOS_3('v_'+(v_cur_3<v_count_3?v_cur_3+1:1)+'_3');
		o3.left = (oWidth2>v_width_3?oWidth2:v_width_3)*v_d_3;
		v_canPause_3=1;
		if(o3.visibility.toLowerCase()!='visible')o3.visibility='visible';
		v_TIM_3=setTimeout("v_canPause_3=0;v_slide_3()",v_timeout_3);
		return;
	}
	o.left=parseInt(o.left)-v_d_3;
	o2.left=parseInt(o2.left)-v_d_3;
	setTimeout("v_slide_3()",v_slideSpeed_3);
}

function v_getAnchorX_3(a) {
	//IE will use all
	//netscape will use document.layer.document.anchor
	//opera/mozilla will use getElementById
 var o = v_iE_3?document.all['v_end'+a+'_3']:v_nS4_3?document.layers['v_container_3'].document.layers['v_'+a+'_3'].document.anchors['v_end'+a+'_3']:document.getElementById('v_end'+a+'_3');

	//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_3?o.offsetLeft:v_nS4_3?v_width_3:o.offsetLeft;
}


function NSInit_3() {
	for(v_i_3=1;v_i_3<=v_count_3;v_i_3++) {
		var o=v_getOS_3('v_'+v_i_3+'_3');
		o.left = v_width_3*v_d_3;
		o.visibility='visible';
	}
	//setTimeout("v_start_3()",10000);
	v_start_3();
}

v_temp_3='<div '+(v_nS4_3?"name":"id")+'=v_container_3 style="position:relative;width:'+v_width_3+'px;height:'+v_height_3+'px;background-color:'+v_bgColor_3+';layer-background-color:'+v_bgColor_3+';clip:rect(0,'+v_width_3+','+v_height_3+',0);overflow:hidden">';
for(v_i_3=0;v_i_3<v_count_3;v_i_3++) {
	v_temp_3+='<div '+(v_nS4_3?"name":"id")+'="v_'+(v_i_3+1)+'_3" style="position:absolute;left:'+(v_nS4_3?v_paddingLeft_3:v_width_3*v_d_3)+'px;top:'+v_paddingTop_3+'px;height:'+(v_height_3-v_paddingTop_3*2)+'px;white-space:nowrap;'+(v_oP_3||v_kN_3||v_nS4_3?"visibility:hidden":"")+'">';
	v_temp_3+='<a href="'+v_content_3[v_i_3][0]+'" target="'+v_content_3[v_i_3][2]+'" class=vnewsticker_3'+(v_pauseOnMouseOver_3?" onmouseover=\'if(v_canPause_3&&v_count_3>1)clearTimeout(v_TIM_3)\' onmouseout=\'if(v_canPause_3&&v_count_3>1)v_TIM_3=setTimeout(\"v_canpause_3=0;v_slide_3()\","+v_timeout_3+")\'":"")+'>'+v_content_3[v_i_3][1]+'</a>';
	v_temp_3+='&nbsp;&nbsp;&nbsp;<a name="v_end'+(v_i_3+1)+'_3" id="v_end'+(v_i_3+1)+'_3">&nbsp;</a>';
	v_temp_3+='</div>';
}
v_temp_3+='</div>';



document.write('<style>.vnewsticker_3{font-family:'+v_font_3+';font-size:'+v_fontSize2_3+';color:'+v_fontColor_3+';text-decoration:'+v_textDecoration_3+';font-weight:'+v_fontWeight_3+'}.vnewsticker_3:hover{font-family:'+v_font_3+';font-size:'+v_fontSize2_3+';font-weight:'+v_fontWeight_3+';color:'+v_fontColorHover_3+';text-decoration:'+v_textDecorationHover_3+'}</style>');

document.write(v_strHead_3);
document.write(v_temp_3);
document.write(v_strFoot_3);
if(!v_kN_3&&!v_nS4_3)setTimeout("v_start_3()",1000);
if (v_nS4_3) {
	onresize=function(){location.reload()}
	setTimeout("NSInit_3()", 1000);
}

