home_on = new Image(33,98);
media_on = new Image(33,98);
press_on = new Image(33,98);
testimonials_on = new Image(33,98);
book_on = new Image(33,98);

home = new Image(33,98);
media = new Image(33,98);
press = new Image(33,98);
testimonials = new Image(33,98);
book = new Image(33,98);

home_on = "images/home_on.jpg";
media_on = "images/media_on.jpg";
press_on = "images/press_on.jpg";
testimonials_on = "images/testimonials_on.jpg";
book_on = "images/book_on.jpg";

home_off = "images/home.jpg";
media_off = "images/media.jpg";
press_off = "images/press.jpg";
testimonials_off = "images/testimonials.jpg";
book_off = "images/book.jpg";

//functions to swap images
function push(imgName) {
    if (document.images)
      document[imgName].src = eval(imgName + '_on');  
}
function release(imgName) {
  if (document.images)
    document[imgName].src = eval(imgName + "_off");  
}

function popwin(wname,name,h,w) {
	t=10;
	l=10;
	var url = name;
	window.name="pops";
	window.open(url,wname,'width='+w+',height='+h+',top='+t+',left='+l+',status=0,toolbar=0,resizable=0,scrollbars=0');
}

function popimg(type,name,h,w,alt,lpos,tpos) {
	newWindow = window.open("","newWindow","width="+w+",height="+h+",scrollbars=no,left="+lpos+",top="+tpos);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" onBlur="self.close()">'); 
	newWindow.document.write('<img src=\"'+name+'\" width='+w+' height='+h+' alt=\"'+alt+'\">'); 	
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}
