/*━━━━━━━━━━━━━━━━━━━━━━━━━
	JavaScript Document
	filename: DropDownMenu.js
	Day of Create: 20080514
	Created by Business Dept Section. Creative yazaki
━━━━━━━━━━━━━━━━━━━━━━━━━*/
var rolloutTimeOut = 300;
var selectTimeOut	 = 5000;
var currentLayer   = null;
var closeTimer     = null;

function popen() {
	if ( document.getElementById("pList").style.visibility == 'visible' ) {
		document.getElementById("pList").style.visibility='hidden';
		document.getElementById("cPrice").style.visibility='hidden';
//		clearInterval(tmrID);
	} else {
		document.getElementById("pList").style.visibility='visible';
		document.getElementById("cPrice").style.visibility='visible';
//		document.getElementById("cPrice").style.height=screenheight()+"px";
//		tmrID = setTimeout( "timeoutClose()", selectTimeOut );
	}
}

function timeoutClose() {
//	clearInterval(tmrID);
	document.getElementById("pList").style.visibility='hidden';
	document.getElementById("cPrice").style.visibility='hidden';
}


function screenheight() {
	var my_width  = 0;
	var my_height = 0;

/*
	if ( typeof( window.innerWidth ) == 'number' ){
		my_width  = window.innerWidth;
		my_height = window.innerHeight;
	}else if ( document.documentElement && 
			 ( document.documentElement.clientWidth ||
			   document.documentElement.clientHeight ) ){
		my_width  = document.documentElement.clientWidth;
		my_height = document.documentElement.clientHeight;
	}
	else if ( document.body && 
			( document.body.clientWidth || document.body.clientHeight ) ){
		my_width  = document.body.clientWidth;
		my_height = document.body.clientHeight;
	}
*/
	my_height = document.documentElement.scrollHeight | document.body.scrollHeight;
	return my_height;
}
