window.onload = function()
	{
		if(document.getElementById('vid_lt') != null)
		{
			var vid_lt = document.getElementById('vid_lt');
			vid_lt.style.left = ((document.documentElement.clientWidth-735)/2) + "px";
			vid_lt.style.top = ((document.documentElement.clientHeight-450)/2) + "px";
		}
		//=======================
		
      if(document.getElementById('vid_lt1') != null)
		{
			var vid_lt1 = document.getElementById('vid_lt1');
			vid_lt1.style.left = ((document.documentElement.clientWidth-735)/2) + "px";
			vid_lt1.style.top = ((document.documentElement.clientHeight-450)/2) + "px";
		}
	}
	
function ResetScroll()
{
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
 var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number

 if (ieversion==6)
 {window.scrollTo(0,0);}
}
}		
	
function view()
{	
		//document.getElementById('divlight').style.display='block';
		//var videohtml = $("#divlight .video_clip").html();
		//$("#divlight .video_clip").html(videohtml);
		$("#divlight").fadeIn();
		ResetScroll();
}

function third_go()
{
		document.getElementById('divlight').style.display='none';			
		var videohtml = $("#divlight .video_clip").html();
		$("#divlight .video_clip").html(videohtml);
			//$("#divlight").fadeOut();
}
	
function viewsessiontimeout()
{	
		$("#divsession").fadeIn();
		ResetScroll();		
}

function third_gosession()
{
		document.getElementById('divsession').style.display='none';
		window.location=SERVER_HTTP_HOST()+"/default.aspx";		
}	

 function SERVER_HTTP_HOST(){  
    var url = window.location.href;  
    url = url.replace("http://", "");   
      
    var urlExplode = url.split("/");  
     var serverName = urlExplode[0];  
      
    serverName = 'http://'+serverName;  
    return serverName;  
 } 
	
