/* JavaScript Document SetScreen.js    03-03-11    */

function setScreen(n) {
	var Wav, Hav, Pw, Ph, Lm, Tm, Sb, Tb;  		
	Wav = screen.availWidth;
	Hav = screen.availHeight;
	if (n==0) { 
	  Sb = 20; Tb = 60; Pw = 850;	Ph = 780;	
	} else {
	  Sb = 30; Tb = 60; Pw = 900;	Ph = 780;			
	}		
    /*msg = "Set Screen Help:  Wav="  + Wav + " Hav=" + Hav; alert(msg);	
	msg = "Set Screen Help:  Pw= "  + Pw + " Ph= " + Ph; alert(msg);*/			
	Lm = parseInt((Wav-Sb-Pw)/2); if (Lm<0) {Lm=0};
	Tm = parseInt((Hav-Tb-Ph)/2); if (Tm<0) {Tm=20};	

    /*msg = "Set Screen Help:  Lm="  + Lm + " Tm=" + Tm; alert(msg);*/	
	obj = document.getElementById('Content'); 
	obj = obj.style;	
	obj.left = Lm + "px";
	obj.top = Tm + "px";
}

function CenterScrn() {
	var Wav, Hav, Pw, Ph, Lm, Tm, Sb, Tb;  		
	Wav = screen.availWidth;
	Hav = screen.availHeight;    
	Sb = 30; Tb = 60; Pw = 900;	//Ph = 780;			

    /*msg = "Set Screen Help:  Wav="  + Wav + " Hav=" + Hav; alert(msg);	
	msg = "Set Screen Help:  Pw= "  + Pw + " Ph= " + Ph; alert(msg);*/			
	Lm = parseInt((Wav-Sb-Pw)/2); if (Lm<0) {Lm=0};
	/*Tm = parseInt((Hav-Tb-Ph)/2); if (Tm<0) {Tm=20};	*/
	Tm = 0

    /*msg = "Set Screen Help:  Lm="  + Lm + " Tm=" + Tm; alert(msg);*/	
	obj = document.getElementById('Content'); 
	obj = obj.style;	
	obj.left = Lm + "px";
	obj.top = Tm + "px";
}

function setScroll() {    
 	var scrlTop = document.body.scrollTop;
	var divTop = scrlTop + "px"
	document.getElementById('apDivSideBar').style.top= divTop;	 
}







