// Aufrufparameter auslesen
var actual_page = "";
var url= window.location.href;
function next_par(suchstr) {
  var e1=url.indexOf(suchstr);
  if(e1 > 0) {
    url=url.substring(e1+suchstr.length, url.length);
    var e1=url.indexOf('&');
    if(e1 > 0) {
      return(url.substring(0, e1));
    }
    else {
      return(url.substring(0, url.length));
    }
  }
  return("");
}
actual_page=next_par("?page=");if(actual_page!=""){actual_page=parseInt(actual_page)};
//alert(actual_page);

// BrowserCheck Object
function BrowserCheck() {
var b = navigator.appName
if (b=="Netscape") this.b = "ns"
else if (b=="Microsoft Internet Explorer") this.b = "ie"
else this.b = b
this.version = navigator.appVersion
this.v = parseInt(this.version)
this.ns = (this.b=="ns" && this.v>=4)
this.ns4 = (this.b=="ns" && this.v==4)
this.ns5 = (this.b=="ns" && this.v==5)
this.ie = (this.b=="ie" && this.v>=4)
this.ie4 = (this.version.indexOf('MSIE 4')>0)
this.ie5 = (this.version.indexOf('MSIE 5')>0)
this.ie6 = (this.version.indexOf('MSIE 6')>0)
this.min = (this.ns5)||(this.ie5)||(this.ie6)
}
is = new BrowserCheck();

// --  hide Emailadresse  --

function emladr(prefix,domain) {
  document.write('<a href=\"mailto:' + prefix + '@' + domain + '\">');
  document.write(prefix + '@' + domain + '</a>');
}
function emladrtxt(prefix,domain,txt) {
  document.write('<a href=\"mailto:' + prefix + '@' + domain + '\">');
  document.write(txt + '</a>');
}


/* -- Menü Hauptseite -- */

function menuespalte_hauptseite(page)
{
if (is.min == false) { document.write('<table bgcolor="#666666" BORDER=1 CELLSPACING=0 CELLPADDING=5 WIDTH="100%"><tr><td align=center class="font-family:Arial;"><font color="#ffffff">Zur vollständigen und korrekten Ansicht benötigen Sie einen aktuellen Browser<br>(Internet Explorer 5.x bzw. Netscape 6.x oder höher)</font></td></tr></table>'); }

//document.write('<div id="firmentitellinks">');
//document.write('<span id="fliesstext">Bedachungen GmbH</span><br>');
//document.write('<b>Alexander Lauerwald</b><br>');
//document.write('<span id="fliesstext">Dachdeckermeister</span>');
//document.write('</div>');

document.write('<div id="spaltelinksrahmen">');
document.write('<div id="spaltelinks">');

hlp="menulink";if((page=="")||(page=="1")){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=1"; href="start.html" target="right">Startseite</a></p>');
hlp="menulink";if(page=="2"){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=2"; href="ziele_grundsaetze.html" target="right">Ziele & Grundsätze</a></p>');
hlp="menulink";if(page=="3"){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=3"; href="leistungsspektrum.html" target="right">Leistungsspektrum</a></p>');
hlp="menulink";if(page=="4"){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=4"; href="unternehmen.html" target="right">Das Unternehmen</a></p>');
hlp="menulink";if(page=="5"){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=5"; href="kontakt.html" target="right">Kontakt</a></p>');
hlp="menulink";if(page=="6"){hlp="menulinkactive"}
document.write('<p class="'+hlp+'"><a class="img" onclick=parent.left.location="left.html?page=6"; href="#" target="right">&nbsp;</a></p>');

document.write('</div>');
document.write('</div>');
}


