// code for printing out a window

function printout()
{
if (navigator.appVersion.substring(0,1) >= '4') window.print() ;  
else
alert("This function is not supported by your browser; please use the Print button to print this page");
}

// New window function (popup)
function newWindow(targetURL){
newWindow=window.open(targetURL, "popup", "status=no,width=640,height=400,scrollbars=yes,resizable=yes,menubar=no");
}

// code for window popup 

function openWin(URL){
aWindow=window.open(URL, "thewindow", "width=550,height=500,status=no,menu=no,scrollbars=yes,resizable=yes");
}

// code for image rollover
var base = "images/";

if (document.images) {
// off state

img1off = new Image();  img1off.src = base + "history.gif";
img2off = new Image();  img2off.src = base + "menu.gif";
img3off = new Image();  img3off.src = base + "location.gif";
img4off = new Image();  img4off.src = base + "contact.gif";
img5off = new Image();  img5off.src = base + "home.gif";
img6off = new Image();  img6off.src = base + "links.gif";

// on state
img1on = new Image();   img1on.src = base + "1history.gif";
img2on = new Image();   img2on.src = base + "1menu.gif";
img3on = new Image();   img3on.src = base + "1location.gif";
img4on = new Image();   img4on.src = base + "1contact.gif";
img5on = new Image();   img5on.src = base + "1home.gif";
img6on = new Image();   img6on.src = base + "1links.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");
}
}
