hs4Arr=[]

			dir			= 0 // 0 = left 1 = right
			speed		= 5
			imageSize	= 100  // % set to zero to use fixedWidth and fixedHeight values
			fixedWidth	= 191 // set a fixed width
			fixedHeight	= 90 // set a fixed height
			spacerWidth	= 30 // space between images

			alwaysCenter= 1 // center the popup 0 = no 1 = yes
			//popupLeft	= 1 // popup default left, use if not centering
			//popupTop	= 0 // popup default top, use if not centering

			biggest		= 0
			ieBorder	= 0
			totalWidth	= 0
			hs4Timer	= null

			preload=new Array()
			function fnpreload(){
				for(var i=0;i<hs4Arr.length;i++) {
					preload[i]=new Image()
					preload[i].src=hs4Arr[i][0]
				}
			}
			fnpreload();

			function initHS4(){
				try {
					scroll1=document.getElementById("scroller1")
				} catch(e) {
					setTimeout('initHS4()',3000);
					return;
				}
				//Header='';
				//Innner='';
				//Footer='';
				for(var j=0;j<hs4Arr.length;j++) {
					scroll1.innerHTML+='<'+'a href="'+hs4Arr[j][1]+'"><'+'img id="pic'+j+'" src="'+preload[j].src+'" border=0><'+'/a>';
					//Innner+='<'+'td><'+'a class="news6" href="'+hs4Arr[j][2]+'"><'+'img id="pic'+j+'" src="'+preload[j].src+'"><'+'/a><'+'/td>'
					//Header+='<'+'td><'+'a class="news6" href="'+hs4Arr[j][2]+'">'+hs4Arr[j][1]+'<'+'/a><'+'/td>'
					//Footer+='<'+'td>&nbsp;'+hs4Arr[j][3]+'<'+'/td>'
				}
				//scroll1.innerHTML='<'+'table class="sample" width="100%"><'+'tr>'+Header+'<'+'/tr><'+'tr>'+Innner+'<'+'/tr><'+'tr>'+Footer+'<'+'/tr><'+'/table>';
				//alert(scroll1.innerHTML);
				for(var j=0;j<hs4Arr.length;j++) {
					if(imageSize!=0) { // use percentage size
						newWidth=preload[j].width/100*imageSize
						newHeight=preload[j].height/100*imageSize
					}
					else { // use fixed size
						newWidth=fixedWidth
						newHeight=fixedHeight
					}
					document.getElementById("pic"+j).style.width=newWidth+"px"
					document.getElementById("pic"+j).style.height=newHeight+"px"
					if(document.getElementById("pic"+j).offsetHeight>biggest) {
						biggest=document.getElementById("pic"+j).offsetHeight
					}
					document.getElementById("pic"+j).style.marginLeft=spacerWidth/2+"px"
					document.getElementById("pic"+j).style.marginRight=spacerWidth/2+"px"
					totalWidth+=document.getElementById("pic"+j).offsetWidth+spacerWidth
				}
				totalWidth+=1
				for(var k=0;k<hs4Arr.length;k++) { // vertically center images
					document.getElementById("pic"+k).style.marginBottom = (biggest-document.getElementById("pic"+k).offsetHeight)/2+"px"
				}
				scrollBox=document.getElementById("scroll_box")
				if(document.uniqueID && scrollBox.currentStyle && document.compatMode!="CSS1Compat") {
					ieBorder=parseInt(scrollBox.currentStyle.borderWidth)*2
				} 
				if(document.getElementById&&document.all) {
					ieBorder=parseInt(scrollBox.style.borderTopWidth)*2
				}
				scrollBox.style.height	= "60px"//biggest+ieBorder+"px"
				scroll1.style.width		= totalWidth+"px"
				scroll2					= document.getElementById("scroller2")
				scroll2.innerHTML		= scroll1.innerHTML
				scroll2.style.left		= scroll1.offsetWidth+"px"
				scroll2.style.top		= 0+"px"
				scroll2.style.width		= totalWidth+"px"
				if(dir==1){
					speed = -speed
				}
				scrollHS4()
			}

			function scrollHS4() {
				if(paused==1){return}
				clearTimeout(hs4Timer)
				scroll1Pos=parseInt(scroll1.style.left)
				scroll2Pos=parseInt(scroll2.style.left)
				scroll1Pos-=speed
				scroll2Pos-=speed
				scroll1.style.left=scroll1Pos+"px"
				scroll2.style.left=scroll2Pos+"px"
				hs4Timer=setTimeout("scrollHS4()",50)
				if(dir==0) {
					if(scroll1Pos< -scroll1.offsetWidth) {
						scroll1.style.left=scroll1.offsetWidth+"px"
					}
					if(scroll2Pos< -scroll1.offsetWidth){
						scroll2.style.left=scroll1.offsetWidth+"px"
					}
				}
				if(dir==1) {
					if(scroll1Pos>parseInt(scrollBox.style.width)) {
						scroll1.style.left=scroll2Pos+ (-scroll1.offsetWidth)+"px"
					}
					if(scroll2Pos>parseInt(scrollBox.style.width)) {
						scroll2.style.left=scroll1Pos+ (-scroll2.offsetWidth)+"px"
					}
				}
			}

			st=null
			function pause(){
				clearTimeout(hs4Timer)
				clearTimeout(st)
			}

			function reStartHS4(){
				clearTimeout(st)
				st=setTimeout("scrollHS4()",100)
			}

			paused=0
			window.onfocus=function() {
				paused=0
				scrollHS4()
			}