var centerFrameWidth;
var pageLoaded=0;
function initScript(){
	page_loaded=1;

	//contextInit();
	stInit();
	//crosslinkInit();
	var mMenu= getDiv('mainMenu');
	var sMenu= getDiv('subMenu');

	//imageInit();
	explainInit();

	var centerFrame = getDiv('centerFrame');
	centerFrameWidth = centerFrame.offsetWidth;
	frameInit();
	balloonInit();
	//topInit();
	if(document.getElementById('bottomBannerCont')){
		document.getElementById('bottomBannerCont').style.zIndex=101;
	}

}

function stInit() {
	stBox = document.getElementsByClassName('stOn');
	for(i=0; i < stBox.length; i++) {
		stBox[i].style.position = 'absolute';
		stBox[i].style.visibility = 'hidden';
	}
}

function frameInit() {
	bw = new browserCheck;
	//if (bw.bw) {
		var mainCont= getDiv('mainCont');
		var contHeight = mainCont.offsetHeight;

		var mMenu= getDiv('mainMenu');
		var sMenu= getDiv('sidebarCont2');

		mmenuHeight =  mMenu ?mMenu.offsetHeight:0;
		smenuHeight =  sMenu ?sMenu.offsetHeight:0;
		var menuHeight =  mmenuHeight+ smenuHeight;
		var centerFrame = getDiv('centerFrame');
		//alert(smenuHeight);
		//追加
		var sideBarCont=getDiv('sidebarCont');
		sideBarHeight =  sideBarCont ? sideBarCont.offsetHeight:0;
		menuHeight =  menuHeight> sideBarHeight ? menuHeight: sideBarHeight;



		centerFrame.style.height = contHeight > menuHeight?contHeight:menuHeight;
		if(bw.ie){
			if(centerFrame.offsetWidth < 720){
				centerFrame.style.width= 719;
			}else{
				if(centerFrameWidth){
					centerFrame.style.width= centerFrameWidth+14;
				}
			}
		}


	//}

	//ポインタカーソルを通常に戻す
	cursorChange('auto');

}


