// JavaScript Document
function displayMode ( name, mode ) {
	//ie6用の分岐を入れて、elseで以下の処理
	if (typeof document.body.style.maxHeight != "undefined") {
		// IE 7, mozilla, safari, opera 9
		document.getElementById(name).style.display = mode;
	} else {
		// IE6, older browsers
		var winSize = GetWindowSize_AN('width');
		var salon_menu_y = winSize - (winSize - 882) /2 - 156;
		document.getElementById('salon_menu').style.position = 'absolute';
		document.getElementById('salon_menu').style.top = '252px';
		document.getElementById('salon_menu').style.left = salon_menu_y +'px';
		document.getElementById(name).style.display = mode;
	}
}

function GetWindowSize_AN(hiki){
	var iWindowWidth, iWindowHeight;
	
	// all except Explorer
	if(self.innerHeight){
		iWindowWidth = self.innerWidth;
		iWindowHeight = self.innerHeight;
	// Explorer 6 Strict Mode
	}else if(document.documentElement && document.documentElement.clientHeight){
		iWindowWidth = document.documentElement.clientWidth;
		iWindowHeight = document.documentElement.clientHeight;
	// other Explorers
	}else if(document.body){
		iWindowWidth = document.body.clientWidth;
		iWindowHeight = document.body.clientHeight;
	}
	
	if(hiki == "width"){
		return (iWindowWidth);
	} else {
		return (iWindowHeight);
	}
}