//alert("ABSLEFT MGR");
var absoluteleft = 0; 
var absolutetop = 0;
var leftoffset = 0;
var topoffset = 0;

function get_innerwidth(){

			if (document.body){
				if ((document.body.clientWidth)||(document.body.clientHeight)){
					//alert("document.body");
					return document.body.clientWidth;
				} else if (window.innerWidth){
					//alert("innerWidth");
					return window.innerWidth; 
				} else {
					return 0;
				}//					
			} else {
				if (window.innerWidth){
					//alert("innerWidth");
					return window.innerWidth; 
				} else {
					return 0;
				}//		
			
			}//end if

}//end function get_innerwidth()

function get_innerheight(){
	if(navigator.appName.indexOf("Microsoft") != -1){
		if ((document.body.clientHeight)){
			return document.body.clientHeight; 
		} else {
			return 0;
		}//
	} else {
		//this function needs to be readjusted for NS
		return document.height - 10;		
	}//
}//end function get_innerheight()

function set_absoluteleft(swidth){
	if (get_innerwidth() <= 0){
		absoluteleft = 0;
	} else {
		if (get_innerwidth() <= swidth){
			absoluteleft = 0;
		} else {
			absoluteleft = ((get_innerwidth() - swidth)/2);
		}
	}//end if
}//end function set_absoluteleft()

function set_absolutetop(sheight){
	if (get_innerheight() <= 0){
		absolutetop = 0;
	} else {
		if (get_innerheight() <= sheight){
			absolutetop = 0;
		} else {
			absolutetop = ((get_innerheight() - sheight)/2);
		}
	}//end if
}//end function set_absolutetop()

function set_offsetpoints(){

  if (document.all){
  	leftoffset = document.body.scrollLeft;
  	topoffset = document.body.scrollTop;
  } else if (document.getElementById){
  	leftoffset =  window.pageXOffset;
  	topoffset =  window.pageYOffset;
  } else if (document.layers){
  	leftoffset =  window.pageXOffset;
  	topoffset =  window.pageYOffset;
  }//end conditions
}//end function set_offsetpoints()
