// JavaScript Document
// Javascript Fehler unterdruecken
onerror = stopError;
function stopError()
{
return true;
}

// Browser variables
var ns = (navigator.appName == 'Netscape'); 
var ie =  (navigator.appName == 'Microsoft Internet Explorer');
var agent=navigator.userAgent.toLowerCase();
var ver = parseInt(navigator.appVersion);
if (navigator.appVersion.substring (0,4) == "4.05") var detectns40asns3 = true;
var subver = parseInt(navigator.appVersion.substring (2,3));
var ns4 = false,ns6=false;
if ((ns) && (ver >= 4)) var ns4 = true;
if (detectns40asns3 && subver == 0) var ns4 = false;
var op5=((agent.indexOf("opera 5") != -1)+(agent.indexOf("opera/5") != -1));
var op=(agent.indexOf("opera") != -1);
if (op5) {ie=false; ns=false;}
var ie4 = ie && ver >= 4;
var ie3 = true;
var ie5 = (navigator.appVersion.indexOf ("MSIE 5") > 0);
if (ie4 || ie5) ie3 = false;
var v4 = (ns4 || ie4);
if (op5) v4=true;
if ((ns) && (ver >= 5)) {var ns6 =true; ns4=false; v4=true;}
var mac = (navigator.appVersion.indexOf("Mac") != -1);
var ko= (navigator.appVersion.indexOf("Konqueror") != -1);
myload=0;

// NN4 - Header anzeigen


nn4web="";

if (ns4)
	{
	nav='<a href="../start/index.html" class="bottonn">Start</a> <a href="../philosophie/index.html" class="bottonn">Philosophie</a> <a href="../leistungen/index.html" class="bottonn">Leistungen</a> <a href="../preise/index.html" class="bottonn">Preise</a> <a href="../referenzen/index.html" class="bottonn">Referenzen</a> <a href="../kontakt/index.html" class="bottonn">Kontakt</a> <a href="../service/index.html" class="bottonn">Service</a> <a href="../suche/index.html" class="bottonn">Suche</a>'; 
	nn4web='<table width="100%" height="68" border="0" cellspacing="0" cellpadding="0"><tr><td background="../images/bg3.jpg" valign="top" align="right"><image width="205" height="59" src="../images/webdesign3.gif" alt="underline webdesign berlin"></td></tr><tr><td bgcolor="#2198E9">&nbsp;'+nav+'</td></tr></table>';
	}


function fokus()
	{
	if (!ns4) document.forms[0].elements[0].focus();
	}

// stylepath bei Formularen festlegen

stylepath="../scripts/";

	if (ie) document.write('<link href="' + stylepath + 'ie.css" rel="StyleSheet" type="text/css">');
	if (ns4) document.write('<link href="' + stylepath + 'ns4.css" rel="StyleSheet" type="text/css">');
	if (ns6) document.write('<link href="' + stylepath + 'ns6.css" rel="StyleSheet" type="text/css">');
	if (op) document.write('<link href="' + stylepath + 'op.css" rel="StyleSheet" type="text/css">');
	if (ko) document.write('<link href="' + stylepath + 'ko.css" rel="StyleSheet" type="text/css">');

	
// Formular per Image-Button abschicken

function Go()
	{
	document.forms[0].submit();
	}

// Bookmark setzen

function bm()
	{
	if (ns4) alert('Als Netscape-UserIn einfach die Tastenkombination: "STRG"+"D" drücken!')
	else if (ns6) alert('Als Netscape-UserIn einfach die Tastenkombination: "STRG"+"G" drücken!')
	else if (op) alert('Als Opera-UserIn einfach die Tastenkombination: "STRG"+"T" drücken!')
	else window.external.AddFavorite('http://www.webdesign-underline.de/service/browser.html','Aktuelle Browser-Download-Links - underline webdesign berlin')
	}

// NS - Resize

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) {location.reload();}
}
MM_reloadPage(true);

// IE Onclick-Rahmen ausblenden

function nix(x)
	{
	if ((ns6)+(ie)) x.blur();
	}

// Frame Reset

if (self != top) top.location=self.location;


