if(parent.location.href.indexOf("index.php5")==-1 && ! parent.location.pathname.match(/\/$/)){
	loc = parent.location;	
	if(loc.hostname == "localhost" ){
		rootIndex = loc.pathname.indexOf("/", 1)
		hostRoot = loc.pathname.substr(0, rootIndex+1);
		pagePath = loc.pathname.substr(rootIndex+1);
	}
	else{
		hostRoot = "/";
		pagePath = loc.pathname.substr(1);
	}
}

function layoutTransparentBlock(){
	var centerHeight = parent.mainFrameH - parent.headHeight;
	var transBG = document.getElementById('tBlock');
	var cBlock = document.getElementById('content');
	//var cTop, cLeft, cHeight, cWidth;
	cHeight = cBlock.offsetHeight;
	cWidth = cBlock.offsetWidth;
	cTop = (cHeight>parent.mainFrameH) ? 0 : (parent.mainFrameH - cHeight) / 2;
	cLeft = (cWidth>parent.w) ? 0 : (parent.w - cWidth) / 2;
	
	transBG.style.top = cBlock.style.top = cTop +'px';
	transBG.style.left = cBlock.style.left = cLeft +'px';
	transBG.style.height = cHeight +'px';
	transBG.style.width = cWidth +'px';
	document.getElementById('container').style.visibility = cBlock.style.visibility = 'visible';
}