// shared.js script, version 2.1, 08-13-03, Hot Pepper, Inc., http://www.hotpepper.com

// global vars ======================================================


var loc = location.pathname.split('/');
loc.length = loc.length - 1; // removes filename 

var d = location.pathname.replace(/\/[^\/]*/g,'../'); // return one depth too deep, see next line for fix
d = d.substring(0,(d.length-3)); // turns this: ../../ into this ../
// /global vars ======================================================

// img preloads =====================================================
/*
hh = new Image(); hh.src = "/pix/hh.gif"; hh_roll = new Image(); hh_roll.src = "/pix/hh_roll.gif";
*/	
// /img preloads =====================================================

// popup window functions ==========================================
function popFlex(URL,winName,W,H,scroll) {
	if (scroll == "no")
		{scroll = "scrollbars=no";}
	else if (scroll == "yes")
		{scroll = "scrollbars";}
	window.open(URL, winName,"top=0,left=30,width="+W+",height="+H+",resizable=no,"+scroll+"");
	}	
// /popup window functions ==========================================

var ver5up = false;
if (document.getElementById) {ver5up = true;}
function showhide(display,divid) {
	// call like this: <a href="" onmouseover="showHide('block','myDiv');" onmouseout="showHide('none','myDiv');"
	if (ver5up) {
		document.getElementById(divid).style.display = display;
		}
	}

function quickNav(newLoc) {
	nextPage = "./?f=" + newLoc.options[newLoc.selectedIndex].value;
	if (nextPage != "") {
		window.location.href = nextPage;
	}
}

