// set global for nav type
var thisNav = "ie";
if (navigator.appName.indexOf("Netscape") > -1) thisNav = "nn";
if (navigator.appName.indexOf("Netscape") > -1 && navigator.appVersion >= "5") thisNav = "nn6";
var show = (thisNav == "nn") ? "show":"visible"; // variables for browser specific VISIBILITY VALUES
var hide = (thisNav == "nn") ? "hide":"hidden"; // variables for browser specific VISIBILITY VALUES
var currentOn = ""
preload_me();

function preload_me() {
	// preload btn states
	nav_array = new Array("eat","shop","play","stay","tour","discover");
	for (loop = 0; loop < nav_array.length; loop++) {
		var an_image = new Image();
		an_image.src = '/images_topnav/' + nav_array[loop]+'_on.jpg'; 
	}
}

function swapItem(the_selection,the_state) {
		// swap thrmer down state
		if (thisNav == "nn") the_string = 'document.'+the_selection;
		if (thisNav == "nn6") the_string = 'document.getElementById("'+the_selection+'")';
		if (thisNav == "ie") the_string = 'document.'+the_selection;
		obj = eval(the_string);
		var this_state = (the_state == 1) ? "_on.jpg" : "_off.jpg";
		obj.src = '/images_topnav/'+the_selection+this_state;
}

function photo_popup(imageSrc,imageTitle,imageW,imageH) {
	fileName = '/shared_pages/photo_popup.html?' + imageSrc + '&' + escape(imageTitle);
	if (! imageW) {
	// no dimensions passed - pop open to standard width 500 x 375 + additional 20 height for copyright
		attribs="width=560,height=490,resizable=1,status=1";
	} else {
		attribs="width="+(imageW+60)+",height="+(imageH+110)+",resizable=1,status=1";
	}
	var photo_popwindow = window.open(fileName,'photo_popup',attribs);
}

function pdf_popup(filename) {
	var pdf_popwindow = window.open('/shared_pages/pdf_popup.html?'+filename,'pdf_popup','width=600,height=600,resizable=1,status=1');
}

function nn_reload() {
	if (thisNav == "nn") location.reload();
}

function do_nothing() {}

