if (document.images) {
     about_0 = new Image(120,25);
     about_0.src = "menus/main/about_0.gif";
     about_1 = new Image(120,25);
     about_1.src = "menus/main/about_1.gif";
     exhibitions_0 = new Image(120,25);
     exhibitions_0.src = "menus/main/exhibitions_0.gif";
     exhibitions_1 = new Image(120,25);
     exhibitions_1.src = "menus/main/exhibitions_1.gif";
     contact_0 = new Image(120,25);
     contact_0.src = "menus/main/contact_0.gif";
     contact_1 = new Image(120,25);
     contact_1.src = "menus/main/contact_1.gif";
     cards_0 = new Image(120,25);
     cards_0.src = "menus/main/cards_0.gif";
     cards_1 = new Image(120,25);
     cards_1.src = "menus/main/cards_1.gif";
     gallery_0 = new Image(120,25);
     gallery_0.src = "menus/main/gallery_0.gif";
     gallery_1 = new Image(120,25);
     gallery_1.src = "menus/main/gallery_1.gif";
     orders_0 = new Image(120,25);
     orders_0.src = "menus/main/orders_0.gif";
     orders_1 = new Image(120,25);
     orders_1.src = "menus/main/orders_1.gif";
     }
function nav(imgName,num) {
                 if (document.images)
                 {
                 document[imgName].src = eval(imgName + "_" + num + ".src");
                 }
         }
function setMsg(msg) {   
               window.status = msg
               return true
          }
function swap(image) {
         if (document.images) {
                 document.images[image].src =
                 'menus/main/' + image + '_1.gif';
                 }
         }
function restore(image) {
         if (document.images) {
                 document.images[image].src =
                 'menus/main/' + image + '_0.gif';
                 }
         }

function loadPainting(URL,w,h,name) {
  var width= w;
  var height=h;
  if (navigator.appName == "Microsoft Internet Explorer")
        {
                if (navigator.userAgent.indexOf("Mozilla\/4") != -1)
                {
                height = height +2
                }
        }
  else if (navigator.appName == "Netscape")
        {
                height = height +4
        }
  var newWin = open(URL,name,'width='+width+',height='+height+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
  if (navigator.userAgent.indexOf("Mozilla/2") != -1) {
    if ((navigator.userAgent.indexOf("Mac") != -1) || (navigator.userAgent.indexOf("X11") != -1)) {
      newWin = window.open(URL, name)
    }
  }
//  newWin.creator=self;
}
