
/* 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=105&SiteGroupID=128&ArticleID=38215','<B>Custodian dies after lawnmower fire</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38214','<B>Mary Kay Henry named president of the SEIU</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38213','<B>Kimberly-Clark awards $1.3 million in scholarships</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38212','<B>Paul Davis National comes to the rescue of flooded store</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38211','<B>xpedx Cleveland to host free training this Wednesday</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38210','<B>Cleanrite-Buildrite appoints new branch manager</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38209','<B>Monday\'s Ask the Experts: Odorous drains</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38208','<B>Nichols Paper & Supply hires three</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38207','<B>Discussion of the Week: Mischievous employees</B>-5/10/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38198','<B>\'Green\' housekeeping shows returns</B>-5/7/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38197','<B>Survey allows office workers to voice opinions</B>-5/7/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38196','<B>xpedx hosting seminar on cost reduction in Pittsburgh</B>-5/7/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38195','<B>Water damage restoration companies flooded with calls</B>-5/7/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38194','<B>http://cmmonline.com/news.asp?N_ID=74950</B>-5/7/2010','_blank'],		
			['http://news.ntpinc.com/syndicatepro.asp?Task=Click&SiteID=105&SiteGroupID=128&ArticleID=38193','<B>Georgia-Pacific brings job security to Green Bay</B>-5/7/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);
}

