

var tabNames = new Array("overview", "tips", "hotels", "rests", "night", "acts"); // Tab Names
var thumbnails = new Array("photo1", "photo2", "photo3", "photo4", "photo5", "photo6", "photo7", "photo8", "photo9", "photo10", "photo11", "photo12", "photo13", "photo14", "photo15", "photo16", "photo17", "photo18", "photo19", "photo20" );// View Photos and Watch Videos


tab_overview_off = new Image();
tab_overview_off.src = "/travel/dynamic_templates/img/destination/destination_tab_over_low.gif";
tab_overview_on = new Image();
tab_overview_on.src = "/travel/dynamic_templates/img/destination/destination_tab_over_high.gif";

tab_tips_off = new Image();
tab_tips_off.src = "/travel/dynamic_templates/img/destination/destination_tab_tips_low.gif";
tab_tips_on = new Image();
tab_tips_on.src = "/travel/dynamic_templates/img/destination/destination_tab_tips_high.gif";

tab_hotels_off = new Image();
tab_hotels_off.src = "/travel/dynamic_templates/img/destination/destination_tab_hotel_low.gif";
tab_hotels_on = new Image();
tab_hotels_on.src = "/travel/dynamic_templates/img/destination/destination_tab_hotel_high.gif";

tab_rests_off = new Image();
tab_rests_off.src = "/travel/dynamic_templates/img/destination/destination_tab_rest_low.gif";
tab_rests_on = new Image();
tab_rests_on.src = "/travel/dynamic_templates/img/destination/destination_tab_rest_high.gif";

tab_night_off = new Image();
tab_night_off.src = "/travel/dynamic_templates/img/destination/destination_tab_night_low.gif";
tab_night_on = new Image();
tab_night_on.src = "/travel/dynamic_templates/img/destination/destination_tab_night_high.gif";

tab_acts_off = new Image();
tab_acts_off.src = "/travel/dynamic_templates/img/destination/destination_tab_act_low.gif";
tab_acts_on = new Image();
tab_acts_on.src = "/travel/dynamic_templates/img/destination/destination_tab_act_high.gif";

tmb_photo_off = new Image();
tmb_photo_off.src = "/sitewide/images/spacer.gif";
tmb_photo_on = new Image();
tmb_photo_on.src = "/travel/dynamic_templates/img/media/80x53_highlight.gif";

but_next_off = new Image();
but_next_off.src = "/travel/dynamic_templates/img/home/btn_more_dest_r.gif";
but_next_on = new Image();
but_next_on.src = "/travel/dynamic_templates/img/home/btn_more_dest_r_on.gif";

but_back_off = new Image();
but_back_off.src = "/travel/dynamic_templates/img/home/btn_more_dest_l.gif";
but_back_on = new Image();
but_back_on.src = "/travel/dynamic_templates/img/home/btn_more_dest_l_on.gif";

but_nextVert_off = new Image();
but_nextVert_off.src = "/travel/dynamic_templates/img/feature/btn_more_dest_top.gif";
but_nextVert_on = new Image();
but_nextVert_on.src = "/travel/dynamic_templates/img/feature/btn_more_dest_top_on.gif";

but_backVert_off = new Image();
but_backVert_off.src = "/travel/dynamic_templates/img/feature/btn_more_dest_bot.gif";
but_backVert_on = new Image();
but_backVert_on.src = "/travel/dynamic_templates/img/feature/btn_more_dest_bot_on.gif";

function showMoreDescription()
{
  // document.getElementById("dest-hdr-short-holder").style.height = "200px";
  document.getElementById("dest-hdr-short-holder").innerHTML = document.getElementById("dest-hdr-long-holder").innerHTML;
}

function openFlip(fid) {

popFlip('fid=' + fid + '&skin=skins/flipbook_skin_tripout.swf');

}

function launchTravelPlayer(vid) {

launchVideo('vid=' + vid + '&style_sheet=/travel/dynamic_templates/includes/mediaplayer.css');

}

function showThisButOn(whichLayer) {

	
		if (document.getElementById) {
			eval("imgFlip('but_" + whichLayer + "','but_" + whichLayer + "_on')");	
		}

}
function showThisButOff(whichLayer) {

		if (document.getElementById) {
			eval("imgFlip('but_" + whichLayer + "','but_" + whichLayer + "_off')");	
		}

}

function showThisImage(whichLayer, modNum) {

	if (modNum != null) {

		for (var i = 0; i < thumbnails[modNum].length; i++) {
			eval("imgFlip('tmb_" + thumbnails[modNum][i] + "','tmb_photo_off')");
		}
	
		if (document.getElementById) {
			eval("imgFlip('tmb_" + whichLayer + "','tmb_photo_on')");
			
		}
	
		
	} else {
		for (var i = 0; i < thumbnails.length; i++) {
			eval("imgFlip('tmb_" + thumbnails[i] + "','tmb_photo_off')");
			eval("document.getElementById('tmb_" + thumbnails[i] + "Border').style.borderWidth = '0'");
		}
		
		if (document.getElementById) {
			eval("imgFlip('tmb_" + whichLayer + "','tmb_photo_on')");
			eval("document.getElementById('tmb_" + whichLayer + "Border').style.borderWidth = '1'");
		}
	}
}

function genPop(loc,wName,attr){
	var pWin = false;
	pWin = window.open(loc,wName,attr);
	popCheck(pWin);
}
