var ie = document.all ? true : false;
var ns = document.layers ? true : false;
if(parseInt(navigator.appVersion) >= 5 && navigator.appName == "Netscape") { var ns6 = true; }

function show(l)
{
  if (ns6) document.getElementById(l).style.visibility =  'visible';
  else if (ie) document.all[l].style.visibility = 'visible';
  else if (ns) document[l].visibility = 'show';
}
function hide(l)
{
  if (ns6) document.getElementById(l).style.visibility =  'hidden';
  else if (ie) document.all[l].style.visibility = 'hidden';
  else if (ns) document[l].visibility = 'hide';
}
function move(l,x,y)
{
  if (ns6) { if(x) document.getElementById(l).style.pageX=x; if(y) document.getElementById(l).style.pageY=y; }
  else if (ie) { if(x) document.all[l].style.posLeft=x; if(y) document.all[l].style.posTop=y; }
  else if (ns) { if(x) document[l].pageX=x; if(y) document[l].pageY=y; }
}

function showHideLayers() { //v3.0
  if (ns6) {
          if (arguments[2]=='show') {
          show(arguments[0])
          if (arguments[5]=='hide') hide(arguments[3])  }
        else if (arguments[2]=='hidden')
          hide(arguments[0])

          if (arguments[5]=='show')
          show(arguments[3])
        else if (arguments[5]=='hidden')
          hide(arguments[3])
  }
  else
  {
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3)
          if ((obj=findObj(args[i]))!=null) {
                v=args[i+2];
            if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
            obj.visibility=v;
        }
  }
}

function findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}

function zufall() {
        zufi = Math.random();
        var m=1;
        var n=7;
        zufall2 = Math.round(zufi * n) + m;
        return zufall2;
}

/* PopUp */
function Fenster(WinWidth,WinHeight,Link,WindowName) {
        window.open(Link,WindowName,'toolbar=0,width='+WinWidth+',height='+WinHeight+',location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,copyhistory=0');
}

/* Verlinkung von PopUp */
function do_jump(num) {
                        top.opener.top.location.href = eval("ziel_" + num);
                        top.self.close();
                }

/* neues Fenster fuer scout24.com */
function dotcom() {
                window.open('http://www.scout24.com/', 'scout24', 'toolbar=1,width=1024,height=768,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=1');
                window.parent.location.href="/default.asp";
                }

/* neues Fenster fuer affiliate.scout24.de */
function affiliate() {
                window.open('http://affiliate.scout24.de', 'affilinet', 'toolbar=1,width=1024,height=768,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1,copyhistory=1');
                window.parent.location.href="/default.asp";
                }
