// JavaScript Document

function printpage(page)
    {
    popup=window.open(page,'printpage','toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=660,height=480,left=100,top=160');
    popup.focus();
    popup.print();
    }



function hili()
   {
      var img = document.getElementsByTagName('IMG');

         for(var i=0; i<img.length; i++)
      {
            if(result = img[i].src.match(/menu_(.+)\./) )
         {				
               if(menue == result[1])
               img[i].src = img[i].src.replace(/\.gif/, '_mo.gif')		
         }
      }

   }



function detach(n,u,w,h) {
remote = window.open(u, n, 'width=' + w + ',height=' + h +',resizable=no,scrollbars=no');
  if (remote != null) {
    if (remote.opener == null)
        remote.opener = self;
        window.name = 'scomnavbar';
        remote.location.href = u;
        }
}



function SeiteLaden() {

   if( (location.search.length > 0) && (location.search.indexOf('Action') == -1) ) {
      var laenge = location.search.length;
      var neue_url = location.search.substring(1,laenge);
      content.location=neue_url;
   }

}



function bugfixIE50(show){
  var ua = navigator.appVersion;
    if(ua.indexOf('MSIE 5.01')> -1){
      if(show){
        document.all.content.style.display='block';
      }else{
        document.all.content.style.display='none';
      }
    }
  }

function nachladen (){
if ( (this.window == top.window) && (location.host == 'www.conova.com') ) {
    this.location='http://www.conova.com?'+this.location.pathname.substr(1);}
}


function getPos(elem){

  var pos = new Object()

  pos.x =  elem.offsetLeft;
  pos.y =  elem.offsetTop;

  if(elem.offsetParent){
    var tmp = getPos(elem.offsetParent);
    pos.x += tmp.x;
    pos.y += tmp.y;

  }

  pos.width = elem.offsetWidth;
  pos.height = elem.offsetHeight;


return pos;

}