// shared.js script, version 2.0
// 11-20-02
// please always include the credits when using this file:
// Hot Pepper, Inc.
// www.hotpepper.com


// mouseover functions ============================================
function sharedPreloads ()
	{
/*	
	preload('hh',depth+'images/hh.gif');
	preload('hh_roll',depth+'images/hh_roll.gif');	
	
*/	
	preload('bn_pop_close',depth+'images/bn_pop_close.gif');
	preload('bn_pop_close_roll',depth+'images/bn_pop_close_roll.gif');	
	
	preload('bn_done1',depth+'images/bn_done1.gif');
	preload('bn_done1_roll',depth+'images/bn_done1_roll.gif');	
	
	}
	
function preload(imgObj,imgSrc) 
	{
	eval(imgObj+' = new Image()')
	eval(imgObj+'.src = "'+imgSrc+'"')
	}

function changeImage(divName,imgName,imgObj,num)
	{
	if (divName != "" && document.layers) {var div = "document."+divName+".";}
	else {var div = "";}
	eval(div+"document").images[imgName+num].src = eval(imgObj+".src");
	}
// /mouseover functions ============================================

// 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;
		}
	}
