// JavaScript Document
function showUnderDiv(){
	document.getElementById("underdiv").style.display="block";
	document.getElementById("underdiv").style.left="0px";
document.getElementById("underdiv").style.top="0px";
//document.getElementById("underdiv").style.width=document.documentElement.clientWidth+"px";
document.getElementById("underdiv").style.width=document.documentElement.scrollWidth+"px";
document.getElementById("underdiv").style.height=document.documentElement.scrollHeight+"px";
	}
/*show div start*/
function showdiv(mytitle){
document.getElementById("thediv").style.display="block";
document.getElementById("thediv").style.top=document.documentElement.scrollTop+100+"px";
document.getElementById("thediv").style.left=(document.documentElement.scrollWidth-document.getElementById("thediv").offsetWidth)/2+"px";
showUnderDiv();
}
function hiddendiv(){
document.getElementById("thediv").style.display="none";
document.getElementById("underdiv").style.display="none";
}
/*download mask form show end*/
/*hotel map mask div show start*/
function showMapDiv(mytitle){
document.getElementById("theMapDiv").style.display="block";
document.getElementById("theMapDiv").style.top=document.documentElement.scrollTop+100+"px";
document.getElementById("theMapDiv").style.left=(document.documentElement.scrollWidth-document.getElementById("theMapDiv").offsetWidth)/2+"px";
showUnderDiv();
}
function hiddenMapDiv(){
document.getElementById("theMapDiv").style.display="none";
document.getElementById("underdiv").style.display="none";
}
/*enewsletter mask div show start*/
function showEnewsDiv(mytitle){
document.getElementById("theEnewsDiv").style.display="block";
document.getElementById("theEnewsDiv").style.top=document.documentElement.scrollTop+100+"px";
document.getElementById("theEnewsDiv").style.left=(document.documentElement.scrollWidth-document.getElementById("theEnewsDiv").offsetWidth)/2+"px";
showUnderDiv();
}
function hiddenEnewsDiv(){
document.getElementById("theEnewsDiv").style.display="none";
document.getElementById("underdiv").style.display="none";
}
/*====show enewsletter pic div========*/
function showEnewsPic(cursel,n){
for(i=1;i<=n;i++){
var menu=document.getElementById("enews_nav_"+i);
var con=document.getElementById("enewsletter_pic_"+i);
menu.className=i==cursel?"hover":"";
con.style.display=i==cursel?"block":"none";
}
}
/*=====show other currency rate div=======*/
function showCurrencyDiv(mytitle){
document.getElementById("theCurrencyDiv").style.display="block";
document.getElementById("theCurrencyDiv").style.top=document.documentElement.scrollTop+(document.documentElement.clientHeight-document.getElementById("theCurrencyDiv").offsetHeight)/2+"px";
document.getElementById("theCurrencyDiv").style.left=(document.documentElement.scrollWidth-document.getElementById("theCurrencyDiv").offsetWidth)/2+"px";
showUnderDiv();
}
function hiddenCurrencyDiv(){
document.getElementById("theCurrencyDiv").style.display="none";
document.getElementById("underdiv").style.display="none";
}
/*--------for index page pupup for left image-----------*/
//var noticeWindow;
function popupNoticePage(content,scrollbar)
{
var height=screen.availHeight;
var width=screen.availWidth;
//var left=(document.documentElement.clientWidth-350)/2;
var left;
if(screen.availWidth>970)
{left = (screen.availWidth - 970)/2 + 20;}
else 
{
 left = 20;
}
if(scrollbar==1)
	{
	var newWindow=window.open(content,"blank","height=175,width=290,resizable=0,top=150,left="+left+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
	}
if(scrollbar==0)
{
	var	noticeWindow=window.open(content,"notice","height=175,width=290,resizable=0,top=150,left="+left+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
	}
if(scrollbar=="auto")
{
	var	noticeWindow=window.open(content,"notice","resizable=0,top=0,left="+left+",scrollbars=0,menubar=0,toolbar=0,location=0,status=0");
	}
}