if (document.images) {

 homeon = new Image();
 homeon.src = "/images/menu_home_on.gif";

 homeoff = new Image();
 homeoff.src = "/images/menu_home_off.gif";

 abouton = new Image();
 abouton.src = "/images/menu_about_on.gif";

 aboutoff = new Image();
 aboutoff.src = "/images/menu_about_off.gif";

 wineson = new Image();
 wineson.src = "/images/menu_wines_on.gif";

 winesoff = new Image();
 winesoff.src = "/images/menu_wines_off.gif";

 wine_clubon = new Image();
 wine_clubon.src = "/images/menu_wine_club_on.gif";

 wine_cluboff = new Image();
 wine_cluboff.src = "/images/menu_wine_club_off.gif";

 vineyardson = new Image();
 vineyardson.src = "/images/menu_vineyards_on.gif";

 vineyardsoff = new Image();
 vineyardsoff.src = "/images/menu_vineyards_off.gif";

 tastingon = new Image();
 tastingon.src = "/images/menu_tasting_on.gif";

 tastingoff = new Image();
 tastingoff.src = "/images/menu_tasting_off.gif";

 eventson = new Image();
 eventson.src = "/images/menu_events_on.gif";

 eventsoff = new Image();
 eventsoff.src = "/images/menu_events_off.gif";

 newson = new Image();
 newson.src = "/images/menu_news_on.gif";

 newsoff = new Image();
 newsoff.src = "/images/menu_news_off.gif";

 tradeon = new Image();
 tradeon.src = "/images/menu_trade_on.gif";

 tradeoff = new Image();
 tradeoff.src = "/images/menu_trade_off.gif";

 cottageon = new Image();
 cottageon.src = "/images/menu_cottage_on.gif";

 cottageoff = new Image();
 cottageoff.src = "/images/menu_cottage_off.gif";

 contacton = new Image();
 contacton.src = "/images/menu_contact_on.gif";

 contactoff = new Image();
 contactoff.src = "/images/menu_contact_off.gif";
 
 email_submiton = new Image();
 email_submiton.src = "/images/submit_on.gif";

 email_submitoff = new Image();
 email_submitoff.src = "/images/submit_off.gif";
 
 carton = new Image();
 carton.src = "/images/cart_on.gif";

 cartoff = new Image();
 cartoff.src = "/images/cart_off.gif";

 }
 
function View(id,width,height) {
LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
OpenWin = 
this.open("view.php?id="+id,"PicWindow","toolbar=no,width="+width+",height="+height+",left="+LeftPosition+",top="+TopPosition+",directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}

function ViewImage(id,width,height) {
LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
OpenWin = 
this.open("/view.php?id="+id,"PicWindow","toolbar=no,width="+width+",height="+height+",left="+LeftPosition+",top="+TopPosition+",directories=no,status=no,scrollbars=no,resize=no,menubar=no")
}


