  Event.observe(window, 'load', initImg);

  function initImg()
    {
    var showdiv = "mb";
    var i1 = new ImgOver( "i1" , "../images/design_st_beg_over.gif", "javascript:", 110, 110, showdiv, "");
    i1.init();
    var i2 = new ImgOver( "i2" , "../images/design_st_verlae_over.gif", "javascript:", 110, 110, showdiv, "");
    i2.init();
    var i3 = new ImgOver( "i3" , "../images/design_st_kun_over.gif", "javascript:", 110, 110, showdiv, "");
    i3.init();
    var i4 = new ImgOver( "i4" , "../images/design_st_auf_over.gif", "javascript:", 110, 110, showdiv, "");
    i4.init();
    var i5 = new ImgOver( "i5" , "../images/design_st_pro_over.gif", "LeistungenProcurement.html", 110, 110, showdiv, "");
    i5.init();
    var i6 = new ImgOver( "i6" , "../images/design_st_cus_over.gif", "LeistungenCustomer_Care.html", 110, 110, showdiv, "");
    i6.init();
    var i7 = new ImgOver( "i7" , "../images/design_st_ver_over.gif", "javascript:", 110, 110, showdiv, "");
    i7.init();
    var i8 = new ImgOver( "i8" , "../images/design_st_war_over.gif", "LeistungenWarehousing.html", 110, 110, showdiv, "");
    i8.init();
    var i9 = new ImgOver( "i9" , "../images/design_st_deb_over.gif", "LeistungenDebitoren_management.html", 110, 110, showdiv, "");
    i9.init();
    var i10 = new ImgOver( "i10" , "../images/design_st_it_over.gif", "LeistungenIT__e_Shop.html", 110, 110, showdiv, "");
    i10.init();
    var i11 = new ImgOver( "i11" , "../images/design_st_rev_over.gif", "LeistungenReverse_Logistics.html", 110, 110, showdiv, "");
    i11.init();
    var i12 = new ImgOver( "i12" , "../images/design_st_dis_over.gif", "LeistungenDebitoren_management.html", 110, 110, showdiv, "");
    i12.init();
    }


  function ImgOver(idi,src,href,width,height,div,alt)
    {
    this.idi = idi;
    this.src = src;
    this.href = href;
    this.width = width;
    this.height = height;
    this.div = div;
    this.alt = alt;

    this.mo = function()
      {
      $(this.idi).absolutize();
      var iwidth = $(this.idi).getWidth();
      var iheight = $(this.idi).getHeight();

      var l = $(this.idi).getStyle("left").replace("px","");
      if( $(this.width) > iwidth )
        l = l -  Math.floor( (this.width-iwidth) / 2 ) ;

      var t = $(this.idi).getStyle("top").replace("px","");
      if( $(this.height) > iheight )
        t = t -  Math.floor( (this.height-iheight) / 2 ) ;

      $(this.idi).relativize();
      $(this.div).update('<a href="'+ this.href +'"><img src="' + this.src + '" border="0" alt="' + this.alt + '" title="' + this.alt + '" width="' + this.width + '" height="' + this.height + '"></a>');
      $(this.div).setStyle( {left: l, top: t, width: this.width, height: this.height} );
      $(this.div).show();

      }//noitcnuf

    this.mout = function()
      {
      $(this.div).hide();
      $(this.div).setStyle( {left: 0, top: 0, width: 0, height: 0} );
      }//noitcnuf

    this.init = function()
      {
      if($(this.idi))
        Event.observe( $(this.idi), "mouseover", this.mo.bindAsEventListener(this) );
      Event.observe( $(this.div), "mouseout", this.mout.bindAsEventListener(this) );
      }//noitcnuf

    }//noitcnuf

  function fromLeft()
    {
    var w = 1000; //width
    var l = 71;  //from left
    var x = w;
    if (self.innerHeight) // all except Explorer
    	x = self.innerWidth;
    else if (document.documentElement && document.documentElement.clientHeight)
    	x = document.documentElement.clientWidth;
    else if (document.body) // other Explorers
    	x = document.body.clientWidth;

    if( x > w )
      return ( (x-w)/2 )+l;
    else
      return l;
    }//noitcnuf


  function fromTop()
    {
    var h = 588; //height
    var t = 23; //from top
    var y = h;
    if (self.innerHeight) // all except Explorer
    	y = self.innerHeight;
    else if (document.documentElement && document.documentElement.clientHeight)
    	y = document.documentElement.clientHeight;
    else if (document.body) // other Explorers
    	y = document.body.clientHeight;

    if( y > h )
      return ( Math.floor((y-h)/2) )+ t;
    else
      return t;
    }//noitcnuf

