
var d = (document.getElementById)? 'document.getElementById':'document.all';

//...room photo
/*--------------------------------------------------*/
function op_room(n){
	roomwin = window.open(n,"room","resizable=1,scrollbars=1,width=700,height=500");
	roomwin.focus();
}

//...hotel select(NEW)
/*--------------------------------------------------*/

function pulldown(n){
	var v_flag = (n)? 'block':'none';
	eval(d+"('hotel-list').style.display='"+v_flag+"';");
}

function ch_id(){
	eval(d+"('hotel-select').id='pulldown';");
	
}

//...OLD
/*
function pulldown(n){
	if(eval(d+"('hotel-list')")){
		var v_flag = (n)? 'block':'none';
		eval(d+"('hotel-list').style.display='"+v_flag+"';");
	}else{
		hh = (n)? '280px' : '20px'; // 14_20
		eval(d+"('pulldown').style.height='"+hh+"';");
	}
}
function ch_id(){
	eval(d+"('hotel-select').id='pulldown';");
	if(!eval(d+"('hotel-list')")){
		eval(d+"('pulldown').style.height='20px';");
	}
}
*/


//...font-size for Mac
/*--------------------------------------------------*/
UA = navigator.userAgent;
if(UA.indexOf("Mac")>=0){
	document.write("<link rel='stylesheet' href='../common/style/macfont.css' type=\"text/css\">\n");
}

//...flash
//..................................................
function write_flash(n,w,h,id){ //...n:file_name w:width h:height
	p_loop    = "true"; //...ループ(true || false)
	p_menu    = "false"; //...右クリック時のメニュー表示(true || false)
	p_quality = "high";  //...Flashの画質(low || medium || high || best || autolow || autohigh)
	p_id      = id; //...id(object) name(embed)
	p_align   = "";      //...align(right || center || left || ...)
	
	with(document){
		write("<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"\n");
		write("codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\"\n");
		write("WIDTH=\""+w+"\" HEIGHT=\""+h+"\" id=\"test\" ALIGN=\""+p_align+"\">\n");
		write("<PARAM NAME=movie VALUE=\""+n+"\">\n");
		write("<PARAM NAME=loop VALUE="+p_loop+">\n");
		write("<PARAM NAME=menu VALUE="+p_menu+">\n");
		write("<PARAM NAME=quality VALUE="+p_quality+">\n");
		write("<EMBED src=\""+n+"\" loop="+p_loop+" menu="+p_menu+" quality="+p_quality+" WIDTH=\""+w+"\" HEIGHT=\""+h+"\" NAME=\""+p_id+"\" ALIGN=\""+p_align+"\"\n");
		write("TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED>\n");
		write("</OBJECT>\n");
	}
}

//...oshirase
//--------------------------------------------------
function oshirase(){
	if(o_title){document.write("<b class='text-l'><font color='"+o_color+"'>"+o_title+"</font></b><br>"+comment+"\n");
	}else{document.write(comment+"\n");}
}


//...campaign 無料AB
//--------------------------------------------------
function campaign(){
	if(Math.floor(Math.random()*2)){
		sc = "A"; img = "banner.gif";
	}else{
		sc = "B"; img = "banner_b.gif";
	}
	document.write(
	"<div style=\"display:block;position:relative;overflow:visible;width:0;height:0;\">\n"+
	"<a href=\"../corporate/present.html\" onclick=\"javascript:pageTracker._trackPageview('/TRACK/campaign/200910_" + sc + "');\"><img src=\"../corporate/img/present/" + img + "\" alt=\"無料宿泊券プレゼントキャンペーン\" style=\"display:block;position:absolute;top:-70px;left:0;overflow:visible;\"></a></div>\n"
	);
}

//...campaign 無料＋ポイント2倍
function campaign2(){
	if(Math.floor(Math.random()*2)){
		sc = "A"; img = "banner.gif";
	}else{
		sc = "B"; img = "banner_b.gif";
	}
	document.write(
	"<div style=\"display:block;position:relative;overflow:visible;width:0;height:0;\">\n"+
	"<a href=\"../corporate/present.html\" onclick=\"javascript:pageTracker._trackPageview('/TRACK/campaign/200910_" + sc + "');\"><img src=\"../corporate/img/present/" + img + "\" alt=\"無料宿泊券プレゼントキャンペーン\" style=\"display:block;position:absolute;top:-135px;left:0;overflow:visible;\"></a>\n"+
	"<a href=\"../corporate/cmpn_doublepoint.html\"><img src=\"../corporate/img/cmpn/doublepoint/banner.gif\" alt=\"ポイント2倍キャンペーン\" style=\"display:block;position:absolute;top:-70px;left:0;overflow:visible;\"></a>\n"+
	"</div>\n"
	);
}


