var behavior = "scroll" ;// can be alternate or slide
var direction = "left"; // can be right, left , up or down
var ScrollDelay = 100; // speed of scroller

function setScroll(divO,text){		
divO.innerHTML="<marquee behavior="+behavior+" direction="+direction+"scrolldelay="+ScrollDelay+">"
                 +text+"</marquee>";
}

//scroller width      
//var swidth=200;\r\n\r\n       
//scroller height\r\n        
var sheight=170;       
//background color\r\n        
var sbcolor="#ffffff";      
//scroller"s speed\r\n        
var sspeed=3;
//Your messages go below:\r\n        
var msg="";    
//End of your messages\r\n        
// Begin the ticker code\r\n\r\n        
var resumesspeed=sspeed;        

function start() {
 if (document.all) iemarquee(ticker);                
 else if (document.getElementById)
    ns6marquee(document.getElementById("ticker"));
}

function iemarquee(whichdiv){
iediv=eval(whichdiv);               
sheight += 50;               
iediv.style.pixelTop=sheight;
iediv.innerHTML=msg;                
sizeup=iediv.offsetHeight;                
ieslide();        
}

function ieslide(){
 if (iediv.style.pixelTop>=sizeup*(-1)){
    iediv.style.pixelTop-=sspeed;                        
    setTimeout("ieslide()",100);
  }
 else{                        
  iediv.style.pixelTop=sheight;                        
  ieslide();               
 }
}

function ns6marquee(whichdiv){                
 ns6div=eval(whichdiv);                
 sheight += 50;                
 ns6div.style.top=sheight + "px";                
 ns6div.innerHTML=msg;                
 sizeup=ns6div.offsetHeight;                
 ns6slide();
}

function ns6slide(){
 if (parseInt(ns6div.style.top)>=sizeup*(-1)){
     theTop = parseInt(ns6div.style.top)-sspeed;
     ns6div.style.top = theTop + "px";                        
     setTimeout("ns6slide()",100);                
   }                
   else {                        
      ns6div.style.top = sheight + "px";
      ns6slide();
   }       
}




