
function show_more() {
document.getElementById('add_menu').style.display = "block";
return false;
}
function hide_more() {
document.getElementById('add_menu').style.display = "none";
return false;
}


function golf(){
document.write('<p><a href="http://www.chiangmai.jp/golf/"><img src="http://www.chiangmai.jp/img/golf_banner.jpg" width="300" height="100" border="0"></a></p>');
}

function oasis(){
document.write('<p><a href="http://www.chiangmai.jp/oasis/" target="_blank"><img src="http://www.chiangmai.jp/img/oasis3.jpg" width="300" height="100" border="0"></a></p>');
}

function promadv(){
document.write('<p><a href="http://www.chiangmai.jp/contact_us/?mode=prom"><img src="http://www.chiangmai.jp/img/prom.gif" width="300" height="30" border="0"></a></p>');
}


function getJsParam( fn ) {
var scripts = document.getElementsByTagName( 'script' );
var script;
var params = {};
	
	for ( var i=0; i<scripts.length; i++ ) {
		var s = scripts.item( i );
		if( s.src.indexOf( fn ) != -1 ) {
		script = s;
		break;
		}
	}
	
	if( script ) {
		script.src.match( /(.*)(\?)(.*)/ );
		if( RegExp.$3 ) {
		var a = RegExp.$3.split( '&' );
			if( a ) {
				for( var k=0; k<a.length; k++ ) {
					var p = a[ k ].split( '=' );
					if( p[0] ) {
					params[ p[0] ] = p[1];
					}
				}
			} else {
			return false;
			}
		} else {
		return false;
		}
	} else {
	return false;
	}	
	return params;
}



Array.prototype.shuffle = function() {
var i = this.length;
	while(i){
	var j = Math.floor(Math.random()*i);
	var t = this[--i];
	this[i] = this[j];
	this[j] = t;
	}
return this;
}




var thotel = new Array;
thotel[0] = '<a href="http://www.agoda.jp/asia/thailand/koh_chang_trad.html?site_id=1413972">チャーン島のホテル</a>';
thotel[1] = '<a href="http://www.agoda.jp/asia/thailand/bangkok.html?site_id=1413972">バンコクのホテル</a>';
thotel[2] = '<a href="http://www.agoda.jp/asia/thailand/phuket.html?site_id=1413972">プーケットのホテル</a>';
thotel[3] = '<a href="http://www.agoda.jp/asia/thailand/samui.html?site_id=1413972">サムイ島のホテル</a>';
thotel[4] = '<a href="http://www.agoda.jp/asia/thailand/pattaya.html?site_id=1413972">パタヤのホテル</a>';
thotel[5] = '<a href="http://www.agoda.jp/asia/thailand/krabi.html?site_id=1413972">クラビのホテル</a>';
thotel[6] = '<a href="http://www.agoda.jp/asia/thailand/hua_hin_cha_am.html?site_id=1413972">ホアヒンのホテル</a>';
thotel[7] = '<a href="http://www.agoda.jp/asia/thailand/koh_phi_phi_krabi.html?site_id=1413972">ピピ島のホテル</a>';
thotel[8] = '<a href="http://www.agoda.jp/asia/thailand/koh_lanta_krabi.html?site_id=1413972">ランタ島のホテル</a>';


//thotel[0] = '<a href="http://www.hotelscombined.jp/City/Koh_Chang.htm?a_aid=27039" target="_blank">チャーン島のホテル</a>';
//thotel[1] = '<a href="http://www.hotelscombined.jp/City/Bangkok.htm?a_aid=27039" target="_blank">バンコクのホテル</a>';
//thotel[2] = '<a href="http://www.hotelscombined.jp/City/Phuket.htm?a_aid=27039" target="_blank">プーケットのホテル</a>';
//thotel[3] = '<a href="http://www.hotelscombined.jp/City/Koh_Samui.htm?a_aid=27039" target="_blank">サムイ島のホテル</a>';
//thotel[4] = '<a href="http://www.hotelscombined.jp/City/Pattaya.htm?a_aid=27039" target="_blank">パタヤのホテル</a>';
//thotel[5] = '<a href="http://www.hotelscombined.jp/City/Krabi.htm?a_aid=27039" target="_blank">クラビのホテル</a>';
//thotel[6] = '<a href="http://www.hotelscombined.jp/City/Hua_Hin.htm?a_aid=27039" target="_blank">ホアヒンのホテル</a>';
//thotel[7] = '<a href="http://www.hotelscombined.jp/City/Phi_Phi_Island.htm?a_aid=27039" target="_blank">ピピ島のホテル</a>';
//thotel[8] = '<a href="http://www.hotelscombined.jp/City/Koh_Lanta.htm?a_aid=27039" target="_blank">ランタ島のホテル</a>';





var bhotel = new Array;
bhotel[0] = '<a href="http://www.agoda.jp/asia/china/beijing.html?site_id=1413972">北京のホテル</a>';
bhotel[1] = '<a href="http://www.agoda.jp/asia/hong_kong/hong_kong.html?site_id=1413972">香港のホテル</a>';
bhotel[2] = '<a href="http://www.agoda.jp/asia/china/shanghai.html?site_id=1413972">上海のホテル</a>';
bhotel[3] = '<a href="http://www.agoda.jp/asia/singapore.html?site_id=1413972">シンガポールのホテル</a>';
bhotel[4] = '<a href="http://www.agoda.jp/asia/malaysia.html?site_id=1413972">マレーシアのホテル</a>';
bhotel[5] = '<a href="http://www.agoda.jp/asia/vietnam.html?site_id=1413972">ベトナムのホテル</a>';
bhotel[6] = '<a href="http://www.agoda.jp/asia/taiwan.html?site_id=1413972">台湾のホテル</a>';
bhotel[7] = '<a href="http://www.agoda.jp/asia/macau.html?site_id=1413972">マカオのホテル</a>';
bhotel[8] = '<a href="http://www.agoda.jp/asia/laos.html?site_id=1413972">ラオスのホテル</a>';
bhotel[9] = '<a href="http://www.agoda.jp/asia/maldives.html?site_id=1413972">モルディブのホテル</a>';
bhotel[10] = '<a href="http://www.agoda.jp/asia/indonesia/bali.html?site_id=1413972">バリ島のホテル</a>';

//bhotel[0] = '<a href="http://www.hotelscombined.jp/City/Paris.htm?a_aid=27039" target="_blank">パリのホテル</a>';
//bhotel[1] = '<a href="http://www.hotelscombined.jp/City/New_York_City.htm?a_aid=27039" target="_blank">ニューヨーク市のホテル</a>';
//bhotel[2] = '<a href="http://www.hotelscombined.jp/City/Rome.htm?a_aid=27039" target="_blank">ローマのホテル</a>';
//bhotel[3] = '<a href="http://www.hotelscombined.jp/City/Hong_Kong.htm?a_aid=27039" target="_blank">香港のホテル</a>';
//bhotel[4] = '<a href="http://www.hotelscombined.jp/City/Singapore.htm?a_aid=27039" target="_blank">シンガポールのホテル</a>';
//bhotel[5] = '<a href="http://www.hotelscombined.jp/City/London.htm?a_aid=27039" target="_blank">ロンドンのホテル</a>';
//bhotel[6] = '<a href="http://www.hotelscombined.jp/City/Honolulu.htm?a_aid=27039" target="_blank">ホノルルのホテル</a>';
//bhotel[7] = '<a href="http://www.hotelscombined.jp/City/Barcelona.htm?a_aid=27039" target="_blank">バルセロナのホテル</a>';
//bhotel[8] = '<a href="http://www.hotelscombined.jp/City/Seoul.htm?a_aid=27039" target="_blank">ソウルのホテル</a>';
//bhotel[9] = '<a href="http://www.hotelscombined.jp/City/Las_Vegas.htm?a_aid=27039" target="_blank">ラスベガスのホテル</a>';
//bhotel[10] = '<a href="http://www.hotelscombined.jp/City/Amsterdam.htm?a_aid=27039" target="_blank">アムステルダムのホテル</a>';
//bhotel[11] = '<a href="http://www.hotelscombined.jp/City/Los_Angeles.htm?a_aid=27039" target="_blank">ロサンゼルスのホテル</a>';



function t_hotel(n){ 
thotel.shuffle();
	for (i = 0; i < n; i = i + 1){
	document.write(thotel[i]);
	}
}

function b_hotel(n){
bhotel.shuffle();
	for (i = 0; i < n; i = i + 1){
	document.write(bhotel[i]);
	}
}


