/***********************************************
	* 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=1000; //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)?
	var tim;
	////NO NEED TO EDIT BELOW THIS LINE////////////
	
       <!-- Copyright 2006,2007 Bontrager Connection, LLC
// http://bontragerconnection.com/ and http://www.willmaster.com/
// Version: July 28, 2007

        var cX = 0;
        var cY = 0;
        var rX = 0;
        var rY = 0;

        function UpdateCursorPosition(e) { cX = e.pageX; cY = e.pageY; }
        function UpdateCursorPositionDocAll(e) { cX = event.clientX; cY = event.clientY; }
        if (document.all) { document.onmousemove = UpdateCursorPositionDocAll; }
        else { document.onmousemove = UpdateCursorPosition; }
        function AssignPosition(d) {
            if (self.pageYOffset) {
                rX = self.pageXOffset;
                rY = self.pageYOffset;
            }
            else if (document.documentElement && document.documentElement.scrollTop) {
                rX = document.documentElement.scrollLeft;
                rY = document.documentElement.scrollTop;
            }
            else if (document.body) {
                rX = document.body.scrollLeft;
                rY = document.body.scrollTop;
            }
            if (document.all) {
                cX += rX;
                cY += rY;
            }
            d.style.left = (cX + 100) + "px";
            d.style.top = (cY) + "px";
        }
        function HideContent(d) {
            if (d.length < 1) { return; }
            document.getElementById(d).style.display = "none";
            
        }
        function ShowContent(d) {

        if((navigator.userAgent.match(/ipad/i))
            || (navigator.userAgent.match(/ipod/i)||navigator.userAgent.match(/iphone/i))
            || (navigator.userAgent.match(/android/i))
            || (navigator.userAgent.match(/opera mini/i))
            || (navigator.userAgent.match(/blackberry/i))
            || (navigator.userAgent.match(/(pre\/|palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine)/i))
            || (navigator.userAgent.match(/(iris|3g_t|windows ce|opera mobi|windows ce; smartphone;|windows ce; iemobile)/i))
            || (navigator.userAgent.match(/(mini 9.5|vx1000|lge |m800|e860|u940|ux840|compal|wireless| mobi|ahong|lg380|lgku|lgu900|lg210|lg47|lg920|lg840|lg370|sam-r|mg50|s55|g83|t66|vx400|mk99|d615|d763|el370|sl900|mp500|samu3|samu4|vx10|xda_|samu5|samu6|samu7|samu9|a615|b832|m881|s920|n210|s700|c-810|_h797|mob-x|sk16d|848b|mowser|s580|r800|471x|v120|rim8|c500foma:|160x|x160|480x|x640|t503|w839|i250|sprint|w398samr810|m5252|c7100|mt126|x225|s5330|s820|htil-g1|fly v71|s302|-x113|novarra|k610i|-three|8325rc|8352rc|sanyo|vx54|c888|nx250|n120|mtk |c5588|s710|t880|c5005|i;458x|p404i|s210|c5100|teleca|s940|c500|s590|foma|samsu|vx8|vx9|a1000|_mms|myx|a700|gu1100|bc831|e300|ems100|me701|me702m-three|sd588|s800|8325rc|ac831|mw200|brew |d88|htc\/|htc_touch|355x|m50|km100|d736|p-9521|telco|sl74|ktouch|m4u\/|me702|8325rc|kddi|phone|lg |sonyericsson|samsung|240x|x320|vx10|nokia|sony cmd|motorola|up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|psp|treo)/i))
 ){
  }
        else {

            if (d.length < 1) { return; }
            var dd = document.getElementById(d);
            AssignPosition(dd);
            dd.style.display = "block";
        }           

        }
        function ReverseContentDisplay(d) {
            if (d.length < 1) { return; }
            var dd = document.getElementById(d);
            AssignPosition(dd);
            if (dd.style.display == "none") {
                dd.style.display = "block";
                
            }
            else { dd.style.display = "none"; }
        }

        

        


	var copyspeed=marqueespeed;
	var pausespeed=(pauseit==0)? copyspeed: 0;
	var actualheight='';
	
	function scrollmarquee(){
		//document.write(parseInt(cross_marquee.style.top));
			//if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
		if (document.getElementById('track').value == "") {
			if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px";
				//alert(actualheight);
			}
			else {
				//alert(parseInt(marqueeheight));
				cross_marquee.style.top=parseInt(marqueeheight)-8+"px";
			}
		}
	}
	
	//press down
	function pressdown() {
		document.getElementById('track').value = "yes";
		
			if (parseInt(cross_marquee.style.top)<(actualheight)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)+ 10 +"px";
				//alert(parseInt(cross_marquee.style.top) + "---" + actualheight + " marqueeheight: " + parseInt(marqueeheight) );
				//alert(actualheight);
				tim = setTimeout("pressdown()", 150);
			}
			else {
				//alert(parseInt(marqueeheight));
				cross_marquee.style.top=parseInt(marqueeheight)*(-1)+"px";
				tim = setTimeout("pressdown()", 150);
			}
	}
	
	//press up
	function pressup() {
		document.getElementById('track').value = "yes";
		//cross_marquee.style.top=parseInt(cross_marquee.style.top)+10+"px";
		//alert(document.getElementById('track').value);
		
			if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) {
				cross_marquee.style.top=parseInt(cross_marquee.style.top)-10 +"px";
				//alert(parseInt(cross_marquee.style.top) + "---" + actualheight + " marqueeheight: " + parseInt(marqueeheight) );
				//alert(actualheight);
				tim = setTimeout("pressup()", 150);
			}
			else {
				
				cross_marquee.style.top=parseInt(marqueeheight)-8+"px";
				tim = setTimeout("pressup()", 150);
				//alert(cross_marquee.style.top);
			}
	}
	
	//on mouse out
	function mouse_out() {
		document.getElementById('track').value = "";
		clearTimeout(tim);
		//alert(document.getElementById('track').value);
		scrollmarquee;
	}
	
	//init()
	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()",35)', delayb4scroll);
	}
	
	//event listener
	if (window.addEventListener) {
		window.addEventListener("load", initializemarquee, false);
	}
	else if (window.attachEvent) {
		window.attachEvent("onload", initializemarquee);
	}
	else if (document.getElementById) {
		window.onload=initializemarquee;
	}

