// lazy shortcut

d=document;

//rollovers

sections = new Array("index","consumers","teachers","resorts","sports","find","gear","news","partners","helpful");

for (x=0;x<=sections.length;x++){
var setup = sections[x]+'on = new Image();'+sections[x]+'on.src = "images/global/nav/'+sections[x]+'_on.gif";'+sections[x]+'off = new Image();'+sections[x]+'off.src = "images/global/nav/'+sections[x]+'_off.gif";';
eval(setup);
}

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");}}

// window popper

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');
}