//******* ini ********

//LayerCenterIni
var layWidth = 750;
var layHeight = 0;

//showLayer
function showLAYER(idName){ 
	if(document.getElementById){//NN6,Mozilla,IE5
		document.getElementById(idName).style.visibility = 'visible';
	}else if(document.all){//IE4
		document.all(idName).style.visibility = 'visible';
	}else if(document.layers){//NN4
		document.layers[idName].visibility = 'show';
	}
}

//hideLayer
function hideLAYER(idName){
	if(document.getElementById){//NN6,Mozilla,IE5
		document.getElementById(idName).style.visibility = 'hidden';
	}else if(document.all){//IE4
		document.all(idName).style.visibility = 'hidden';
	}else if(document.layers){//NN4
		document.layers[idName].visibility = 'hide';
	}
}

// **** LayerCenterPark ****

function layCenterpark(idName){

	var lcWidth, lcHeight;
	
	// * WindowWidth *
	if(window.innerWidth){//NN6,Mozilla,N4,Safari?
		lcWidth = window.innerWidth/2;
	}else if(window.document.body.clientWidth){//IE
		lcWidth = window.document.body.clientWidth/2;
	}else {//other
		//非対応処理
	}
	
	if(document.getElementById){//NN6,Mozilla,IE5

		document.getElementById(idName).style.left = (lcWidth -layWidth/2 + 21) +"px";

	}else if(document.all){//IE4
		document.all(idName).style.left = (lcWidth -layWidth/2 + 21) +"px";
	}else if(document.layers){//NN4
		document.layers[idName].left = (lcWidth -layWidth/2 + 21) +"px";
	}
}

// **** LayerCenterMokuteki ****

function layCentermokuteki(idName){

	var lcWidth, lcHeight;
	
	// * WindowWidth *
	if(window.innerWidth){//NN6,Mozilla,N4,Safari?
		lcWidth = window.innerWidth/2;
	}else if(window.document.body.clientWidth){//IE
		lcWidth = window.document.body.clientWidth/2;
	}else {//other
		//非対応処理
	}
	
	if(document.getElementById){//NN6,Mozilla,IE5
		document.getElementById(idName).style.left = (lcWidth - layWidth/2 + 218) + "px";
	}else if(document.all){//IE4
		document.all(idName).style.left = (lcWidth - layWidth/2 + 218) + "px";
	}else if(document.layers){//NN4
		document.layers[idName].left = (lcWidth - layWidth/2 + 218) + "px";
	}
}

// **** LayerCenterTomaru ****

function layCentertomaru(idName){

	var lcWidth, lcHeight;
	
	// * WindowWidth *
	if(window.innerWidth){//NN6,Mozilla,N4,Safari?
		lcWidth = window.innerWidth/2;
	}else if(window.document.body.clientWidth){//IE
		lcWidth = window.document.body.clientWidth/2;
	}else {//other
		//非対応処理
	}
	
	if(document.getElementById){//NN6,Mozilla,IE5
		document.getElementById(idName).style.left = (lcWidth - layWidth/2 + 354) + "px";
	}else if(document.all){//IE4
		document.all(idName).style.left = (lcWidth - layWidth/2 + 354) + "px";
	}else if(document.layers){//NN4
		document.layers[idName].left = (lcWidth - layWidth/2 + 354) + "px";
	}
}

// **** LayerCenterToku ****

function layCentertoku(idName){

	var lcWidth, lcHeight;
	
	// * WindowWidth *
	if(window.innerWidth){//NN6,Mozilla,N4,Safari?
		lcWidth = window.innerWidth/2;
	}else if(window.document.body.clientWidth){//IE
		lcWidth = window.document.body.clientWidth/2;
	}else {//other
		//非対応処理
	}
	
	if(document.getElementById){//NN6,Mozilla,IE5
		document.getElementById(idName).style.left = (lcWidth - layWidth/2 + 397) +"px";
	}else if(document.all){//IE4
		document.all(idName).style.left = (lcWidth - layWidth/2 + 397) +"px";
	}else if(document.layers){//NN4
		document.layers[idName].left = (lcWidth - layWidth/2 + 397) +"px";
	}
}
