﻿
        function startscroll(size)
        {
            goTimer = true;
            timer = setTimeout('moveTimer('+size+')',20);
            moveTimer(size);
        }
        function stopscroll()
        {
            goTimer = false;
        }
        function moveTimer(size)
	    {
		    clearTimeout(timer);
            document.getElementById("scroll").scrollTop = (parseInt(document.getElementById("scroll").scrollTop) + size); 
		    if (goTimer)
			    timer = setTimeout('moveTimer('+size+')',20);
	    }
        function showNav()
	    {
		    //document.getElementById("nav").style.display = "";
	    }
        function hideNav()
	    {
            //document.getElementById("nav").style.display = "none"; 
		    goTimer = false;
	    }
	    function pageWidth() 
	    {
	        return document.documentElement != null? document.documentElement.clientWidth: window.innerWidth != null? window.innerWidth: document.body != null? document.body.clientWidth:null;
	    }
        function pageHeight() 
        {
            return document.documentElement != null? document.documentElement.clientHeight: window.innerHeight != null? window.innerHeight: document.body != null? document.body.clientHeight:null;
        }
        function adjustSize()
        {
            //if (pageHeight() && (pageHeight()-38!=<%=heightScreen %>)&&(pageWidth()-2!=<%=widthScreen %>) && (270==<%=heightScreen %>)&&(250==<%=widthScreen %>))
            //    location.href = 'ticker.aspx?'+(pageWidth()-2)+'?'+(pageHeight()-38);
        }
        setTimeout("history.go(0)", 600000);