function getPageSize(){
	
		var xScroll, yScroll;
		
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = window.innerWidth + window.scrollMaxX;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}
		
		var windowWidth, windowHeight;
		if (self.innerHeight) {	// all except Explorer
			if(document.documentElement.clientWidth){
				windowWidth = document.documentElement.clientWidth; 
			} else {
				windowWidth = self.innerWidth;
			}
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}	
		
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
			pageHeight = windowHeight;
		} else { 
			pageHeight = yScroll;
		}
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){	
			pageWidth = xScroll;		
		} else {
			pageWidth = windowWidth;
		}
		arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight) 
		return arrayPageSize;
	} 
	var previous_box="";
	function showBox(name) {
		if(typeof(name_hide)!="undefined") {
			if(name_hide!="") {
				new Effect.Opacity("div_"+name_hide,{duration:.8,from:1,to:0});
				setTimeout('$("div_'+name_hide+'").style.visibility="hidden";',800);
			}
		}
		previous_box = name;
		var page_arr = getPageSize();
		$("div_body_disable").style.width=page_arr[0]+"px";
		$("div_body_disable").style.height=page_arr[1]+"px";
		$("div_body_disable").style.display="";
		$("div_"+name).style.zIndex=1001;
 
		$("div_"+name).style.top = ((page_arr[3]/2) - ($("div_"+name).offsetHeight/2))+document.documentElement.scrollTop + "px";
		$("div_"+name).style.left = ((page_arr[2]/2) - ($("div_"+name).offsetWidth/2)) + "px";
		new Effect.Opacity("div_"+name,{duration:.8,from:0,to:1});
		setTimeout('$("div_'+name+'").style.visibility="visible";',100);
	}
	function hideBox(name) {
		new Effect.Opacity("div_"+name,{duration:.8,from:1,to:0});
		setTimeout('$("div_'+name+'").style.visibility="hidden";$("div_body_disable").style.display="none";',800);
		previous_box="";
		//$("div_"+name).style.visibility="hidden";
		//$("div_body_disable").style.display="none";
	}