// reveals and hides the subsections of the main nav
// sets the background image of the button to highlight when selected
function showsub(id){
	document.getElementById("navsub_shop").style.display = "none";
	document.getElementById("nav_shop").style.backgroundPosition = "0px 0px";
	document.getElementById("navsub_dine").style.display = "none";
	document.getElementById("nav_dine").style.backgroundPosition = "0px 0px";
	document.getElementById("navsub_play").style.display = "none";
	document.getElementById("nav_play").style.backgroundPosition = "0px 0px";
	document.getElementById("navsub_stay").style.display = "none";
	document.getElementById("nav_stay").style.backgroundPosition = "0px 0px";
	//document.getElementById("nav_kodak").style.backgroundPosition = "0px 0px";
	//document.getElementById("nav_renaissance").style.backgroundPosition = "0px 0px";
	document.getElementById("navsub_information").style.display = "none";
	document.getElementById("nav_information").style.backgroundPosition = "0px 0px";
	//document.getElementById("nav_shuttle").style.backgroundPosition = "0px 0px";
	document.getElementById("navsub_press").style.display = "none";
	document.getElementById("nav_press").style.backgroundPosition = "0px 0px";
	
	if (document.getElementById("navsub_"+id).style.display == "") {
		status = "none";
		position = "0px 0px";
	} else {
		status = "";
		position = "-162px 0px";
	}
	document.getElementById("navsub_"+id).style.display = status;
	document.getElementById("nav_"+id).style.backgroundPosition = position;
}

// popup windows
function openwin(url,winname,w,h,attribs,center){
	if (center == true) {
		var l = parseInt((screen.availWidth-w)/2);
		var t = parseInt((screen.availHeight-h)/2);
	} else {
		var l = 50;
		var t = 50;
	}
	attribs = 'width='+w+',height='+h+',left='+l+',top='+t+(attribs!=null ? ','+attribs : '');
	var win = window.open(url, winname, attribs);
	win.focus();
	return false;
}