function RecommendChange(obj)
{
	document.getElementById("recomLON").style.display="none";
	document.getElementById("recomPAR").style.display="none";
	document.getElementById("recomROM").style.display="none";
	document.getElementById("recomMIL").style.display="none";
	document.getElementById("recomFAR").style.display="none";

	document.getElementById(obj).style.display="block";

}

function GoRecommendHotel(ItemCode, CityCode, ItemNo, CheckInDate, ItemName)
{
	if(ItemNo == null)
		ItemNo = "0";
	if(CheckInDate == null)
		CheckInDate = "";

	location.href = "/ASPX/Common/Loading.aspx?page=HotelProducts/HotelInformation.aspx&ItemCode=" + ItemCode + "&CityCode=" + CityCode + "&ItemNo=" + ItemNo + "&CheckInDate=" + CheckInDate + "&SearchType=URL_SEARCH";
	//location.href = "/ASPX/Common/Loading.aspx?page=HotelProducts/HotelSearchResult.aspx&ItemCode=" + ItemCode + "&CityCode=" + CityCode + "&ItemNo=" + ItemNo + "&CheckInDate=" + CheckInDate + "&ItemName=" + ItemName + "&SearchType=URL_SEARCH";
}

function GoRecommendHotel01(ItemCode, CityCode, ItemNo, CheckInDate, ItemName)
{
	if(ItemNo == null)
		ItemNo = "0";
	if(CheckInDate == null)
		CheckInDate = "";

	location.href = "/ASPX/Common/Loading.aspx?page=HotelProducts/HotelInformation.aspx&ItemCode=" + ItemCode + "&CityCode=" + CityCode + "&ItemNo=" + ItemNo + "&CheckInDate=" + CheckInDate + "&SearchType=URL_SEARCH";
	//location.href = "/ASPX/Common/Loading.aspx?page=HotelProducts/HotelSearchResult.aspx&ItemCode=" + ItemCode + "&CityCode=" + CityCode + "&ItemNo=" + ItemNo + "&CheckInDate=" + CheckInDate + "&ItemName=" + ItemName + "&SearchType=URL_SEARCH";
}

function MakeFlashString(source,id,width,height,name,wmode,ScriptAccess, otherParam)
{	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+" name="+name+"><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" allowScriptAccess="+ScriptAccess+" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}
function BBC_EU_Flash()
{
	DocumentWrite(MakeFlashString('/Language/KR/default/_images/flash/FlashMain/Europe_main.swf?dataURL=/Language/KR/default/_images/flash/MainMap/eu_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="always" />'));
}

function BBC_ASIA_Flash()
{
	DocumentWrite(MakeFlashString('/Language/KR/default/_images/flash/FlashMain/asia_main.swf?dataURL=/Language/KR/default/_images/flash/MainMap/Asia_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="always" />'));
}
function BBC_CHINA_Flash()
{
	DocumentWrite(MakeFlashString('/Language/KR/default/_images/flash/FlashMain/China_main.swf?dataURL=/Language/KR/default/_images/flash/MainMap/china_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="always" />'));
}
function BBC_OCEANIA_Flash()
{

	DocumentWrite(MakeFlashString('/Language/KR/default/_images/flash/FlashMain/Oceania.swf?dataURL=/Language/KR/default/_images/flash/MainMap/Ocea_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="always" />'));
}
function BBC_JP_Flash()
{
	DocumentWrite(MakeFlashString('/Language/KR/default/_images/Flash/FlashMain/japan_map.swf?dataURL=/Language/KR/default/_images/flash/MainMap/Jap_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="sameDomain" />'));
}

function BBC_US_Flash()
{
	DocumentWrite(MakeFlashString('/Language/KR/default/_images/flash/FlashMain/usmp_main.swf?dataURL=/Language/KR/default/_images/flash/MainMap/us_link.txt','map','520','374','map','transparent','always','<param name=FlashVars VALUE="move_on=1&xpos=-100&ypos=-100"/><param name="allowScriptAccess" value="always" />'));
}

function DocumentWrite(obj)
{
	document.write(obj);
}


var arrEuropeTitleList = new Array('LON', 'PAR','ROM','MIL','FRA');
var arrUSTitleList =new Array('NYC','LAX','SFO','LAS','YVR');
var arrAsiaTitleList = new Array('BKK','SIN','PYX','KUL','HKT');
var arrJapanTitleList = new Array('TYO','OSA','FUK','NGO','UKY');
var arrOceaniaTitleList = new Array('SYD','BNE','MEL','OOL','AKL');
var arrChinaTitleList = new Array('HKG','MFM','BJS','SHA','TPE');

function Select_IMG_Us(obj)
{
	for(i=0; i<arrUSTitleList.length; i++)
	{
		document.getElementById("us_"+arrUSTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_us_"+arrUSTitleList[i]+"_off.gif";
		document.getElementById("us_"+arrUSTitleList[i]).value = "0";
	}
	
	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";
	
	for(i=0; i<arrUSTitleList.length; i++)
	{
		document.getElementById("recom"+arrUSTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(3,6);
	document.getElementById("recom"+Location).style.display="block";
}

function Select_IMG_Asia(obj, SiteCode)
{
	for(i=0; i<arrAsiaTitleList.length; i++)
	{
		document.getElementById("asia_"+arrAsiaTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_asia_"+arrAsiaTitleList[i]+"_off.gif";
		document.getElementById("asia_"+arrAsiaTitleList[i]).value = "0";

	}

	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";

	for(i=0; i<arrUSTitleList.length; i++)
	{
		document.getElementById("recom"+arrAsiaTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(5,8);
	document.getElementById("recom"+Location).style.display="block";
}

function Select_IMG_japan(obj)
{
	for(i=0; i<arrJapanTitleList.length; i++)
	{

		document.getElementById("japan_"+arrJapanTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_japan_"+arrJapanTitleList[i]+"_off.gif";
		document.getElementById("japan_"+arrJapanTitleList[i]).value = "0";
	}
	
	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";

	for(i=0; i<arrJapanTitleList.length; i++)
	{
		document.getElementById("recom"+arrJapanTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(6,9);
	document.getElementById("recom"+Location).style.display="block";

}

function Select_IMG_europe(obj)
{
	for(i=0; i<arrEuropeTitleList.length; i++)
	{

		document.getElementById("europe_"+arrEuropeTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_europe_"+arrEuropeTitleList[i]+"_off.gif";
		document.getElementById("europe_"+arrEuropeTitleList[i]).value = "0";
	}
	
	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";

	for(i=0; i<arrEuropeTitleList.length; i++)
	{
		document.getElementById("recom"+arrEuropeTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(7,10);
	document.getElementById("recom"+Location).style.display="block";

}

function Select_IMG_oceania(obj)
{
	for(i=0; i<arrOceaniaTitleList.length; i++)
	{

		document.getElementById("oceania_"+arrOceaniaTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_oceania_"+arrOceaniaTitleList[i]+"_off.gif";
		document.getElementById("oceania_"+arrOceaniaTitleList[i]).value = "0";
	}
	
	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";

	for(i=0; i<arrOceaniaTitleList.length; i++)
	{
		document.getElementById("recom"+arrOceaniaTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(8,11);
	document.getElementById("recom"+Location).style.display="block";
}

function Select_IMG_china(obj, SiteCode)
{
	for(i=0; i<arrChinaTitleList.length; i++)
	{
		document.getElementById("china_"+arrChinaTitleList[i]).src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_china_"+arrChinaTitleList[i]+"_off.gif";
		document.getElementById("china_"+arrChinaTitleList[i]).value = "0";
	}
	
	var tmp = obj.id;
	obj.src="http://images.rts.co.kr/B2B2C/Language/KR/Default/_images/HotelProducts/tab_"+tmp+"_on.gif";
	obj.value="1";

	for(i=0; i<arrChinaTitleList.length; i++)
	{
		document.getElementById("recom"+arrChinaTitleList[i]).style.display="none";
	}
	var Location = tmp.substring(6,9);
	document.getElementById("recom"+Location).style.display="block";
}


