function is_msie() {
  return (navigator.appName == "Microsoft Internet Explorer");
}

function Framing(){ 
  if (this.document == top.document || top.location.host != this.location.host) {
   
   document.clear();
   
   document.open("text/html");
   document.writeln('<html>');
   document.writeln('<head>');
   document.writeln('<title>Sternenhof - und der Urlaub beginnt</title>');
   document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
   document.writeln('</head>');
   document.writeln('<frameset rows="119,*" cols="150,*,60" frameborder="NO" border="0" framespacing="0"> ');
   document.writeln('  <frame name="cornerLeftFrame" src="../frame/corner_left.htm" scrolling="NO" noresize >');
   document.writeln('  <frame name="topFrame" src="../frame/top.htm" scrolling="NO" noresize >');
   document.writeln('  <frame src="../frame/corner_right.htm" name="cornerRightFrame" scrolling="NO" noresize>');
   document.writeln('  <frame name="leftFrame" src="../frame/left.htm" noresize scrolling="AUTO" >');
   document.writeln('  <frameset rows="60,*" frameborder="NO" border="0" framespacing="0"> ');
   document.writeln('    <frame name="HeadLineFrame" scrolling="NO" noresize src="../frame/headLine.htm" >');
   document.writeln('    <frame name="mainFrame" src="'+ top.location.href + '"noresize>');
   document.writeln('  </frameset>');
   document.writeln('  <frame src="../frame/right.htm" name="rightFrame" noresize scrolling="NO">');
   document.writeln('</frameset>');
   document.writeln('<body bgcolor="#FFFFFF" text="#000000">');
   document.writeln('</body>');
   document.writeln('</noframes> ');
   document.writeln('</html>');

   document.close();
   return true;
  } 
return false;
}

function msieFraming() {
  //if (is_msie()) {
   if (Framing()) {
     window.setTimeout('top.frames["mainFrame"].location.href = '+ '"'+top.location.href+'";',10);
   }
//  }  
}

function netscFraming() {
  if (!is_msie()) Framing();
}


function writeHeadLine (curHeadLine)  
{   
   top.frames["HeadLineFrame"].document.clear();   
   top.frames["HeadLineFrame"].document.open("text/html");


   top.frames["HeadLineFrame"].document.writeln('<html>');
   top.frames["HeadLineFrame"].document.writeln('<head>');
   top.frames["HeadLineFrame"].document.writeln('<title>HeadLine</title>');
   top.frames["HeadLineFrame"].document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">');
   top.frames["HeadLineFrame"].document.writeln('<link rel="stylesheet" href="../../CSS/main.css" type="text/css">');
   //dies wird für die Bilder-Galerie benötigt. Diese sitzt einen foder Tiefer
   top.frames["HeadLineFrame"].document.writeln('<link rel="stylesheet" href="../../../CSS/main.css" type="text/css">');
   top.frames["HeadLineFrame"].document.writeln('</head>');
   top.frames["HeadLineFrame"].
   top.frames["HeadLineFrame"].document.writeln('<body bgcolor="#FFFFFF" text="#000000">');
   top.frames["HeadLineFrame"].document.writeln('<div align="center">');
   top.frames["HeadLineFrame"].document.writeln('  <h1>');
   top.frames["HeadLineFrame"].document.writeln(curHeadLine);   
   top.frames["HeadLineFrame"].document.writeln('  </h1>');   
   
   top.frames["HeadLineFrame"].document.writeln('</div>')
   top.frames["HeadLineFrame"].document.writeln('</body>');
   top.frames["HeadLineFrame"].document.writeln('</html>');
   top.frames["HeadLineFrame"].document.close();
}


function startOnLoading(curHeadLine) {
  msieFraming();
  //netscFraming();  
  writeHeadLine (curHeadLine);
  
  var Ergebnis = curHeadLine.search(/Gästebuch.+/);
  if(Ergebnis != -1)  {
    top.frames["mainFrame"].location.href = "http://gb.webmart.de/guestbook.cfm?bookid=357758";
  }    
  Ergebnis = curHeadLine.search(/Guestbook.+/);
  if(Ergebnis != -1)  {
    top.frames["mainFrame"].location.href = "http://gb.webmart.de/guestbook.cfm?bookid=357758";
  }   
}



