
/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
var actualheight2=''

function scrollmarquee(){

if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){

cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee
function MM_openBrWindow(theURL,winName,features) { //v2.0
	  alert("Scroll");	
	window.open(theURL,winName,features);
}


/*

<script type="text/javascript">

/***********************************************
* Object Oriented Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
* Modified in http://www.dynamicdrive.com/forums by jscheuer1
* For multiple use and functionality in Opera and NS 7
***********************************************/
/*
//////// NO NEED TO EDIT ////////////
function cross_marquee(delayb4scroll, marqueespeed, pauseit){
if(!cross_marquee.ar)
cross_marquee.ar=[];
cross_marquee.ar[this.mqid=cross_marquee.ar.length]=this;
this.delayb4scroll=delayb4scroll;
this.marqueespeed=marqueespeed;
this.pauseit=pauseit;


this.copyspeed=this.marqueespeed
this.pausespeed=(this.pauseit==0)? this.copyspeed: 0;
this.actualheight=''
document.write('<div id="marqueecontainer'+this.mqid+'" onMouseover="cross_marquee.ar['+this.mqid+'].copyspeed=cross_marquee.ar['+this.mqid+'].pausespeed" onMouseout="cross_marquee.ar['+this.mqid+'].copyspeed=cross_marquee.ar['+this.mqid+'].marqueespeed">\n'+
'<div id="vmarquee'+this.mqid+'" style="position: absolute; width: 98%;">')

this.cross_marquee=document.getElementById("vmarquee"+this.mqid)
this.cross_marquee.style.top=0
this.marqueeheight=document.getElementById("marqueecontainer"+this.mqid).offsetHeight
var cacheobj=this;
setTimeout(function(){cacheobj.lefttime=setInterval("cross_marquee.ar["+cacheobj.mqid+"].scrollmarquee()",30)}, cacheobj.delayb4scroll)
}

cross_marquee.prototype.scrollmarquee=function(){
this.actualheight=this.cross_marquee.offsetHeight
if (parseInt(this.cross_marquee.style.top)>(this.actualheight*(-1)-28))
this.cross_marquee.style.top=parseInt(this.cross_marquee.style.top)-this.copyspeed+"px"
else
this.cross_marquee.style.top=parseInt(this.marqueeheight)+8+"px"
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
</script>
*/
