// lazy shortcut
 
d=document;
 
if (d.images) {
 
// load images

sections = new Array("books","consulting","courses","resources","download","aboutus");
x=0;
while (x<=sections.length){
var setup = sections[x]+'over = new Image();'+sections[x]+'over.src = "images/global/nav/'+sections[x]+'_over.gif";'+sections[x]+'normal = new Image();'+sections[x]+'normal.src = "images/global/nav/'+sections[x]+'_normal.gif";'
eval(setup)
x=x+1;
}

 
// swap images

 function changeImages(a,b) { document[a].src = eval(b + ".src");}
 
}
 
// generic popwindow function, call with name of page, width, height- centered pop

function windowpop(url,name,w,h){
t=((screen.height/2)-(h/2))
l=((screen.width/2)-(w/2))
window.name="daddy";
window.open(url,name,'width='+w+',height='+h+',top='+t+',left='+l+',status=0,toolbar=0,resizable=0, noresize, fullscreen=0, directories=0, scrollbars=0');
}

