   var pics;
   var names;
   pics=new Array();
   names=new Array();
   var objs = 0;
   function preload(first, second, third) {
        pics[0] = new Array(4);
        pics[0][0] = new Image();
        pics[0][0].src = first;
        pics[0][1] = new Image();
        pics[0][1].src = second;
        pics[0][2] = new Image();
        pics[0][2].src = third;
    }

    function addName(name){
        names[objs] = name;
        objs++;
    }

    function onmover(name){

      for (i = 0; i < objs; i++) {
        if ((document.images[names[i]] != null) && (document.images[names[i]].src != pics[0][2].src))
          if (name != names[i]) {
            if (pics[0][0].complete) document.images[names[i]].src = pics[0][0].src;
          } else {
              if (pics[0][1].complete) document.images[names[i]].src = pics[0][1].src;
          }
      }
    }

    function onout(){
      for (i = 0; i < objs; i++) {
        if ((document.images[names[i]] != null) && (document.images[names[i]].src != pics[0][0].src))
          if (pics[0][0].complete)
            document.images[names[i]].src = pics[0][0].src;
      }
    }

    function onmbdown(name){
      for (i = 0; i < objs; i++) {
        if (document.images[names[i]] != null) document.images[names[i]].src = pics[0][0].src;
        if ((document.images[names[i]] != null) && (document.images[names[i]].src != pics[0][2].src))
        if (name != names[i]) {
          document.images[names[i]].src = pics[0][0].src;
        } else {
          document.images[names[i]].src = pics[0][2].src;
        }
      }
    }

    preload("../menu/arrowh.gif", "../menu/arrow.gif", "../menu/arrow.gif");

    addName("home");
    addName("overview");
    addName("features");
    addName("screenshots");
    addName("download");
    addName("register");
    addName("kontakt");
    addName("links");
    addName("support");
    addName("products");
    addName("impressum");
    addName("photoartifex");
    addName("panoramastudio");


    for (i = 0; i < objs; i++) {
        if (document.images[names[i]] != null) document.images[names[i]].src = pics[0][0].src;
        if ((document.images[names[i]] != null) && (document.images[names[i]].src != pics[0][2].src))
        if (name != names[i]) {
          document.images[names[i]].src = pics[0][0].src;
        } else {
          document.images[names[i]].src = pics[0][2].src;
        }
    }
