﻿// JScript File
 
var $ID = function (sFieldID){  
  return document.getElementById(sFieldID); 
}
var speed1=18
$ID("rollright1").innerHTML=$ID("rollleft1").innerHTML 
function Marquee1(){ 
if($ID("rollright1").offsetWidth-$ID("roll1").scrollLeft<=0) 
$ID("roll1").scrollLeft-=$ID("rollleft1").offsetWidth 
else{ 
$ID("roll1").scrollLeft++ 
} 
} 
var MyMar1=setInterval(Marquee1,speed1) 
$ID("roll1").onmouseover=function() {clearInterval(MyMar1)} 
$ID("roll1").onmouseout=function() {MyMar1=setInterval(Marquee1,speed1)}



var speed2=20
$ID("rollrightIMG").innerHTML=$ID("rollleftIMG").innerHTML
function Marquee2(){
if($ID("rollrightIMG").offsetWidth-$ID("rollIMG").scrollLeft<=0)
$ID("rollIMG").scrollLeft-=$ID("rollleftIMG").offsetWidth
else{ 
$ID("rollIMG").scrollLeft++
}
}
var MyMar2=setInterval(Marquee2,speed2)
$ID("rollIMG").onmouseover=function() {clearInterval(MyMar2)}
$ID("rollIMG").onmouseout=function() {MyMar2=setInterval(Marquee2,speed2)}
