newimage0 = new Image();
newimage0.src = "/images/home-up.gif";
newimage1 = new Image();
newimage1.src = "/images/home-dn.gif";
newimage2 = new Image();
newimage2.src = "/images/company-up.gif";
newimage3 = new Image();
newimage3.src = "/images/company-dn.gif";
newimage4 = new Image();
newimage4.src = "/images/products-up.gif";
newimage5 = new Image();
newimage5.src = "/images/products-dn.gif";
newimage6 = new Image();
newimage6.src = "/images/services-up.gif";
newimage7 = new Image();
newimage7.src = "/images/services-dn.gif";
newimage8 = new Image();
newimage8.src = "/images/order-up.gif";
newimage9 = new Image();
newimage9.src = "/images/order-dn.gif";
newimage10 = new Image();
newimage10.src = "/images/contact-up.gif";
newimage11 = new Image();
newimage11.src = "/images/contact-dn.gif";

function msover(img,ref) {
    if (document.images) {
        document.images[img].src = ref;
	}
}

function msout(img,ref) {
    if (document.images) {
        document.images[img].src = ref;
	}
}

function openwin1(page) {
var W = 640;
var H = 300;
var T = 10;
var L = (screen.width - W) / 2;
options = 'menubar=0,toolbar=1,directories=0,location=0,status=0,scrollbars=1,resizable=1,width='+ W +',height='+ H +',left='+ L +',top='+ T +',';
openwin = window.open(page,'WindowName',options);
}

function openpop1(page) {
var W = 450;
var H = 420;
var L = (screen.width - W) / 2;
var T = (screen.height - H) / 2;
options = 'menubar=0,toolbar=0,directories=0,location=0,status=0,scrollbars=1,resizable=1,width='+ W +',height='+ H +',left='+ L +',top='+ T +',';
openwin = window.open(page,'WindowName',options);
}

function closego(page) {
     window.opener.top.location = (page);
     window.close();
}

function photoback() {
    if (which > 0) {
        window.status = '';
        which --;
        document.images.photoslider.src = photos[which];
    }
}

function photonext() {
    if (which < photos.length - 1) {
        which ++;
        document.images.photoslider.src = photos[which];
    }
    else window.status = 'End of gallery';
}

function preview1(URL) {
    windowprops = "left=50,top=50,width=200,height=200";
    text = "<html><head><title>Preview</title></head>";
    text += "<body onLoad=\"setTimeout('window.close()',10000);\" topmargin='0' leftmargin'0' marginheight='0' marginwidth='0'>";
    text += "<center><table align='center' border='0' cellpadding='15' cellspacing='0' width='100%'><tr><td><p align='center'><img src='" + URL + "'></td></tr>";
    text += "<tr><td align='center'><p align='center'><a href='javascript:window.close()'><img src='/images/buttons/close1.gif' alt='Close Window' border='0' width='100' height='20'></a></p></td></tr></table></center>";
    text += "</body></html>";
    preview = window.open("", "preview", windowprops);
    preview.document.write(text);
	preview.document.close();
}

function estimate() {
window.open('/gizmos/wbestimator.shtml','WindowName','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=245,width=640,left=80,top=10')
}

function calendar() {
window.open('/gizmos/wbcalendar.shtml','WindowName','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,height=210,width=660,left=70,top=10')
}