/** START:BROWSER DETECTION ********************/
_d=document;
_nv=navigator.appVersion.toLowerCase();
_f=false;_t=true;
ie4=(!_d.getElementById&&_d.all)?_t:_f;
ie5=(_nv.indexOf("msie 5.0")!=-1)?_t:_f;
ie55=(_nv.indexOf("msie 5.5")!=-1)?_t:_f;
ie6=(_nv.indexOf("msie 6.0")!=-1)?_t:_f;
ie7=(_nv.indexOf("msie 7.0")!=-1)?_t:_f;
isIE=(ie5||ie55||ie6||ie7)?_t:_f;
/** END:BROWSER DETECTION ********************/
var tc;

function scrollup(o,d,c){
	if(o.childNodes[0]==null)return;
	if(d==c){
		var t=o.childNodes[0].cloneNode(true);
		o.removeChild(o.childNodes[0]);o.appendChild(t);
		if(isIE)
		{	
			t.style.marginTop=o.childNodes[0].style.marginTop='0px';
		}
		hscroll(o);
	}
	else{
		ch=false;var s=3,c=c+s,l=(c>=d?c-d:0);
		if(isIE)
		{	
			o.childNodes[0].style.marginTop=-c+l+'px';
		}
		window.setTimeout(function(){scrollup(o,d,c-l)},50);
	}
}

function hscroll(o){
	if(o.childNodes[0]==null)return;
	var w1=o.childNodes[0].offsetWidth,w2=o.offsetWidth;
	if(w1<=w2)return;
	tc=window.setTimeout(function(){hs(o,w1-w2,0,w1-w2)},3500);
}

function hs(o,d,c,p){
	if(o.childNodes[0]==null)return;
	c++;var t=(c>0?-c:c);o.childNodes[0].style.marginLeft=t+'px';
	if(c==d){if(d==0){tc=window.setTimeout(function(){hs(o,p,0,p)},2500);}else tc=window.setTimeout(function(){hs(o,0,-p,p)},3500);}
	else tc=window.setTimeout(function(){hs(o,d,c,p)},5);
}


function marqrun(){
	var o=document.getElementById('infozone');
	hscroll(o);
	if(o.childNodes[0]){
	window.setInterval(function(){window.clearTimeout(tc);
	if(isIE)
	{
		o.childNodes[0].style.marginLeft='0px';
	}
	scrollup(o,20,0);},5000);
	}
}