/***********************************************
* Let it scroll by easygo (easy_gogo@web.de)
* Based on Cross browser Marquee II- © Dynamic Drive
* This notice MUST stay intact for legal use
* Visit http://www.net4seven.de for source code.
***********************************************/

var svdelay = 1000; //Specify initial delay before marquee starts vertically scrolling on page (1000 = 1 sec)
var shdelay = 2000; //Specify initial delay before marquee starts horizontally scrolling (1000 = 1 sec)
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
//Specify marquee scroll speed depending on browser type (1-10, larger is faster)
var marqueespeed = (navigator.appName == "Netscape" && !is_chrome) ? 2 : 1;
var pauseit = 1; //Pause marquee on mouse hover (0 = no, 1 = yes)

////NO NEED TO EDIT BELOW THIS LINE////

var copyspeed = marqueespeed;
var pausespeed = (pauseit==0) ? copyspeed : 0;
var actualwidth = '';
var actualheight = '';

function shmarquee(){
	if (parseInt(cross_shm.style.left)<(actualwidth*(-1)+4)) cross_shm.style.left=(parseInt(cross_shm2.style.left)+actualwidth+4)+"px";
	if (parseInt(cross_shm2.style.left)<(actualwidth*(-1)+4)) cross_shm2.style.left=(parseInt(cross_shm.style.left)+actualwidth+4)+"px";
	cross_shm2.style.left=parseInt(cross_shm2.style.left)-copyspeed+"px";
	cross_shm.style.left=parseInt(cross_shm.style.left)-copyspeed+"px";
}

function init_sh(){
	cross_shm=document.getElementById("shmarquee");
	cross_shm2=document.getElementById("shmarquee2");
	cross_shm.style.left=0;
	marqueewidth=document.getElementById("shcontainer").offsetWidth;
	actualwidth=cross_shm.firstChild.offsetWidth;
	cross_shm2.style.left=actualwidth+4+'px';
	cross_shm2.innerHTML=cross_shm.innerHTML;
	setTimeout('lefttime=setInterval("shmarquee()",30)', shdelay);
}

function svmarquee(){
	if (parseInt(cross_svm.style.top)<(actualheight*(-1)+8)) cross_svm.style.top=(parseInt(cross_svm2.style.top)+actualheight+8)+"px";
	if (parseInt(cross_svm2.style.top)<(actualheight*(-1)+8)) cross_svm2.style.top=(parseInt(cross_svm.style.top)+actualheight+8)+"px";
	cross_svm2.style.top=parseInt(cross_svm2.style.top)-copyspeed+"px";
	cross_svm.style.top=parseInt(cross_svm.style.top)-copyspeed+"px";
}

function init_sv(){
	cross_svm=document.getElementById("svmarquee");
	cross_svm2=document.getElementById("svmarquee2");
	cross_svm.style.top=0;
	marqueeheight=document.getElementById("svcontainer").offsetHeight;
	actualheight=cross_svm.firstChild.offsetHeight;
	cross_svm2.style.top=actualheight+8+'px';
	cross_svm2.innerHTML=cross_svm.innerHTML;
	setTimeout('lefttime=setInterval("svmarquee()",30)', svdelay)
}