if (!document.getElementById) {

	window.location = 'http://www.johnlewisglass.com/old_site/index.html' 
	}


if (document.images) {

img1on = new Image();
img1on.src = "/images-nav/sales_on.gif";

img1off = new Image();
img1off.src = "/images-nav/sales_off.gif";

img2on = new Image();
img2on.src = "/images-nav/architect_on.gif";

img2off = new Image();
img2off.src = "/images-nav/architect_off.gif";

img3on = new Image();
img3on.src = "/images-nav/museum_on.gif";

img3off = new Image();
img3off.src = "/images-nav/museum_off.gif";

img4on = new Image();
img4on.src = "/images-nav/projects_on.gif";

img4off = new Image();
img4off.src = "/images-nav/projects_off.gif";

img5on = new Image();
img5on.src = "/images-nav/vessels_on.gif";

img5off = new Image();
img5off.src = "/images-nav/vessels_off.gif";

img6on = new Image();
img6on.src = "/images-nav/bowls_on.gif";

img6off = new Image();
img6off.src = "/images-nav/bowls_off.gif";

img7on = new Image();
img7on.src = "/images-nav/tables_on.gif";

img7off = new Image();
img7off.src = "/images-nav/tables_off.gif";

img8on = new Image();
img8on.src = "/images-nav/benches_on.gif";

img8off = new Image();
img8off.src = "/images-nav/benches_off.gif";

img9on = new Image();
img9on.src = "/images-nav/about_on.gif";

img9off = new Image();
img9off.src = "/images-nav/about_off.gif";

img10on = new Image();
img10on.src = "/images-nav/process_on.gif";

img10off = new Image();
img10off.src = "/images-nav/process_off.gif";

img11on = new Image();
img11on.src = "/images-nav/contact_on.gif";

img11off = new Image();
img11off.src = "/images-nav/contact_off.gif";

img12on = new Image();
img12on.src = "/images-nav/home_on.gif";

img12off = new Image();
img12off.src = "/images-nav/home_off.gif";

img13on = new Image();
img13on.src = "/images-nav/contact_on-h.gif";

img13off = new Image();
img13off.src = "/images-nav/contact_off-h.gif";

img14on = new Image();
img14on.src = "/images-nav/collaborations_on.gif";

img14off = new Image();
img14off.src = "/images-nav/collaborations_off.gif";


}


function imgOn (imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "on.src");
}
}

function imgOff (imgName) {
if (document.images) {
document[imgName].src = eval(imgName + "off.src");
}
}



// WINDOW-OPENER SCRIPT 

function newWin(anchor,status,url,size,text) {

document.write('<a href="#' + anchor + '" onMouseOver="window.status=\'' + status + '\'; return true" onMouseOut="window.status=\'\'; return true"' +
'onClick=window.open("' + url +  '","","toolbar=no,location=no,directories=no,status=no,menubar=1,scrollbars=no,resizable=yes,' + size + '")' + '>' + text + '<\/a>');

}
