  // *************** GOLI.AT ******************
  //
  //   Script © by DI Philipp Michael Metzler
  //          URL: http://www.goli.at
  //  Online Shop: http://www.clickshopping.at
  //
  // *************** GOLI.AT ******************

/*
  function hidestatus()
  {
    window.status=''
    return true
  }
  if (document.layers)
  document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT | Event.MOUSEDOWN | Event.MOUSEUP | Event.ONCLICK )
  document.onmouseover=hidestatus
  document.onmouseout=hidestatus
  document.onmousedown=hidestatus
  document.onmouseup=hidestatus
  document.onclick=hidestatus

  myFilepath = 'fileadmin/images/';
  
  window.defaultStatus = '';
  function myStatusbar(txt)
  {
    window.status = txt;
  }
*/

  function ChangeOver(object)
  {
    tmp = document.getElementById(object);
    tmp.src = myFilepath + object + '_on.gif';
//    document[object].src = 'images/'+object+'_on.gif';
  }
  
  function ChangeOut(object)
  {
    tmp = document.getElementById(object);
    tmp.src = myFilepath + object + '_off.gif';
//    document[object].src = 'images/'+object+'_off.gif';
  } 

  function ChangeObject(object, picture)
  {
    tmp = document.getElementById(object);
    tmp.src = myFilepath + picture;
//    document[object].src = 'images/'+picture;
  }  
  
  function openWindow(theURL, winName, features) 
  { //v2.0
    window.open(theURL, winName, features);
  }

  var win = null;
  function WindowZentriert(mypage,myname,w,h,scroll)
  {
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=no,toolbar=0,location=0,directories=0,status=0,menuBar=0'
    win = window.open(mypage,myname,settings)
    if(win.window.focus)
    {
      win.window.focus();
    }
  }

