//Scroll control 
	var	 ie5  = (document.getElementById && document.all);
	var  ns6  = (document.getElementById && !document.all);
	var	 selfWidth = 776;
	var	 nSpeed = 3;
	var	 nLeft = 0;
	var	 timerTt = null;
	var  timerSt = null;

 function Statik() {
			if(ie5) {
					scrollY = document.body.scrollTop;
					innerHeight = document.body.clientHeight;
				}
			if (ie5 || ns6) {
			    selfScroll.style.width = selfWidth;
					timerSt=setTimeout(Statik, 10);
			}
	}
 	 
 function setStep(num) {
			nSpeed = num;
  }

	function TickerTape(){
			if(ie5)  innerWidth = document.body.clientWidth;
			if(ie5 || ns6) {
		    ulScroll[0].style.width = nWidth +'px';
				ulScroll[0].style.left  = nLeft + 'px';
				nLeft = nLeft - nSpeed;
				if (lWidth == 0) {
					if ( nLeft < nEnd ) nLeft = selfWidth;
				} else {
					if ( nLeft +830 < nEnd/2 ) nLeft = selfWidth;
				}

				timerTt=setTimeout(TickerTape, 30);
			}
	}

	function StopIt() {
			 clearTimeout(timerTt);
	}

	function TickerInit() {
	 	 nWidth =1850;
	 	 lWidth =0;
		 try {
				 selfScroll = document.getElementById('jobLatest');
				 ulScroll  = selfScroll.getElementsByTagName('ul');
				 liScroll  = selfScroll.getElementsByTagName('li');
				
		  } catch(error) {
				return ;
			}

			if(ie5 || ns6) {
					for (var i in liScroll) {
					 liScroll[i].onmouseover = StopIt;
					 liScroll[i].onmouseout = TickerTape;
					    if (i <=5) {
					      nWidth += liScroll[i].offsetWidth + 20;
								lWidth += nWidth;
					  }
 				}
 				
 		                     
					nEnd = -nWidth;  
					TickerTape();
					Statik();
			}

	}

