// JavaScript Document

//小窓用関数です。ｘはリンク先アドレス、ｎはウィンドウ名（複数使用時は別名を使って下さい）、ｗは窓幅、ｈは高さです。
function subWin1(x,n,w,h){
window.open(x,n,"scrollbars=yes,width="+w+",height="+h+",scrollbars=yes");
}

function areajump1(){
selectmenu=document.menu1.menuitem1.selectedIndex;
url=document.menu1.menuitem1.options[selectmenu].value;
window.location.href=url;
}

function areajump2(){
selectmenu=document.menu2.menuitem2.selectedIndex;
url=document.menu2.menuitem2.options[selectmenu].value;
window.location.href=url;
}

function areajump3(){
selectmenu=document.menu3.menuitem3.selectedIndex;
url=document.menu3.menuitem3.options[selectmenu].value;
window.location.href=url;
}

//トップ画面読み込み時の画像プレロードです。
function preloaded(){
	MM_preloadImages('img-index/t_hokkaido2b.gif','img-index/t_tohoku2b.gif','img-index/t_tokyo2b.gif','img-index/t_niigata2b.gif','img-index/t_hokuriku2b.gif','img-index/t_nagoya2b.gif','img-index/t_chugoku2b.gif','img-index/t_shikoku2b.gif','img-index/t_kyushu2b.gif','img-index/t_okinawa2b.gif','img-index/t_hokkaido3b.jpg','img-index/t_tohoku3b.jpg','img-index/t_tokyo3b.jpg','img-index/t_niigata3b.jpg','img-index/t_hokuriku3b.jpg','img-index/t_nagoya3b.jpg','img-index/t_chugoku3b.jpg','img-index/t_shikoku3b.jpg','img-index/t_kyushu3b.jpg','img-index/t_okinawa3b.jpg');
}

//Ciao検索フォーム用スクリプトです。
function areajump_ciao(FORM){
	n = FORM.ciao_area.selectedIndex;
	area = FORM.ciao_area.options[n].value;
	if(area == ''){
		alert('エリアを選択してください。');
	    return false;
	}else{
		area = area + '/';
	}
	n = FORM.country.selectedIndex;
	country = FORM.country.options[n].value;
	n = FORM.city.selectedIndex;
	city = FORM.city.options[n].value;
	if(city != ''){ city = '_' + city; }
	window.location.href = 'http://e.his-j.com/trip/ciao/dest/04A_30/' + area + country + city;
}

//今がチャ〜ンスの別窓用スクリプトです。
function subWin11(){
window.open("info/now_chance.html","window2","scrollbars=yes,resizable=no,menubar=no,directories=no,status=no,location=no,width=740,height=560,left=260,top=50");
}

// トップ画像切り替え用（マウスオーバー）のスクリプトです。
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


// h3タグ：ビジネスクラス用プルダウン　2009/6/5　おかむら
var hide1;


function pdmenu(x,y) {
	clearTimeout(y);
	document.getElementById('submenu' + x).style.visibility="visible";
}

function pdmenuhide(x) {
	document.getElementById('submenu' + x).style.visibility="hidden";
}
