// lazy shortcut
d=document;

// set up nav array
if (d.images) {

nav = new Array("contact","resources","terms","about","retailers","suppliers","events");
for (x=0;x<=nav.length-1;x++){
var setup = nav[x]+'on = new Image();'+nav[x]+'on.src = "images/global/nav/'+nav[x]+'_on.gif";'+nav[x]+'off = new Image();'+nav[x]+'off.src = "images/global/nav/'+nav[x]+'_off.gif";'
eval(setup)
}

}

// rollover functions

function on(which){if (d.images){document[which].src = eval(which + "on.src");}}
function off(which){if (d.images){document[which].src = eval(which + "off.src");}}

// generic popwin function

function popwin(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',location=0,status=0,scrollbars=0,toolbar=0,resizeable=no,noresize');
}

function popprint(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',location=0,status=0,scrollbars=1,toolbar=1,resizeable=yes');
}

function popscroll(url,name,width,height){
var t=(screen.height-height)/2;
var l=(screen.width-width)/2;
window.open(url,name,'width='+width+',height='+height+',top='+t+',left='+l+',location=0,status=0,scrollbars=1,toolbar=0,resizeable=no,noresize');
}

function writeHTML(movie,w,h)
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+w+'" height="'+h+'"><param name=movie value="'+movie+'"><param name=quality value=high><param name="BGCOLOR" value="#ffffff"><embed src="'+movie+'" quality=high pluginspage="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" bgcolor="#ffffff"></embed></object>');
}

function popBrochure()
{
	popwin( 'brochure.html', 'brochure', screen.width, screen.width );
}

