<!--

// Set Browser-Type:
NS4 = (document.layers) ? 1 : 0;
IE4 = (document.all) ? 1 : 0;
ver4 = (NS4 || IE4) ? 1 : 0;

function OpenWin(filename, DimX, DimY, Ifscroll)
{
  if(filename.indexOf(".") == -1 )
  {
    var OrgURL = filename + ".html";
  }
  else
  {
    var OrgURL = filename;
  }
  if(Ifscroll == 'scroll')
     Hnd_Window = window.open(OrgURL,'What','dependent=yes,resizable=yes,width='+DimX+',height='+DimY+',locationbar=no,menubar=no,scrollbars=yes');
  else
     Hnd_Window = window.open(OrgURL,'What','dependent=yes,resizable=yes,width='+DimX+',height='+DimY+',locationbar=no,menubar=no,scrollbars=no');
  if(document.layers)
     Hnd_Window.focus();
  else
     Hnd_Window.focus();

}

function insertImg( ImgURL, WhatImg, x, y )
{
  for(i=0;i<document.images.length;++i)
  {
    if(document.images[i].name == WhatImg)
    {
       document.images[i].src = ImgURL;
       document.images[i].width  = x;
       document.images[i].height = y;
    }
  }
}

function adjustFrameTop()
{
  var leftmarg, topmarg;
  if(navigator.appName.indexOf("Netscape") > -1)
  {
	leftmarg = 1;
	topmarg  = -41;
  }
  if(navigator.appName.indexOf("Microsoft") > -1)
  {
	leftmarg = -4;
	topmarg  = -8;
  }

  document.write("<style type='text/css'>");
  document.write("body { margin-left:"+leftmarg+"px; margin-right:6px; margin-top:"+topmarg+"px; background-color: #F0D033; }");
  document.write("</style>");
}

function ShowOverByName(BildName, Gifdatei, HintText)
{
// Problem: -> document.BildName.src=Gifdatei; <- funzt nicht bei NS + <div>...</div>!
var i;
// alert("Anzahl images in "+document.name+"=" + document.images.length);

  // Aufsuchen dasjenige Bildobject im document, dessen Name der bergebene ist:
  // Problem.2: funzt nicht wenn image innerhalb <div>...</div> !!
  for(i=0;i<document.images.length;i++)
  {
    if( document.images[i].name == BildName )
    {
      document.images[i].src=Gifdatei;
      window.status = 'Gnstiger an Ihre Traum-Immobilie - mit www.private-home.com!';
    }
  }
  window.status = 'Gnstiger an Ihre Traum-Immobilie - mit www.private-home.com!';
}

function ShowOverByLayer(LayerName,BildName,BildDatei)	// by name of Layers - Nur bei Netsacape!
{
  window.document.layers[LayerName].document.images[BildName].src = BildDatei;
}

function showHint( What )
{
  if( What == '' )
     window.status = 'Fahren Sie mit der Maus ber die bunten Punkte';	// NOK (&uuml; funzt nicht, deshalb in Gen_Str, 'Intellilink', wird Text direkt angegeben (kein showHint() mehr). 
  else
  {
    if( What.substr(0,1) == '#' )
       window.status = ' ';
    else
       window.status = What;
  }
}

function ExitWin( URL )
{
  URL = "http://" + URL;

//  window.close();

  Hnd_Window = window.open(URL,'What','dependent=no,resizable=yes,width=760,height=600,locationbar=yes,menubar=yes');
  Hnd_Window.focus();
}

function closeWin()
{
  window.close();
}


// Diese beiden Funktionen wurden von Xara Webstyler generiert:
function turn_off(ImageName) {
        if (document.images != null) {
                document[ImageName].src = eval(ImageName + "_off.src");
        }
}

function turn_over(ImageName) {
        if (document.images != null) {
                document[ImageName].src = eval(ImageName + "_over.src");

        }
}

function ToggleImage(ImgName1,ImgName2)	// wechselweise wird Bild1 oder Bild2 angezeigt
{
  // isolieren Filename only (stripp off path):
  Offset1 = document.images.Main.src.lastIndexOf("/");	// img-Tag muss 'name="Main"' haben!
  CurImgname = document.images.Main.src.substr(++Offset1);

  if( CurImgname == ImgName2 )
    Imgname = ImgName1;
  else
    Imgname = ImgName2;
  document.images.Main.src=Imgname;
}

function DoNada() {
   return "";
}
//-->
  