/*
#################################################
# (c) 2002 pin Multimedia GmbH http://www.pin.de/
# Tel. 0731/93262-15 / Fax. 0731/93262-32
# Sedanstr. 10
# 89077 Ulm
########################################
# Kunde: Baumann&Partner
# Programmierung: A.Bauer / bauer@pin.de
# letzte Änderung: 07.02.2002
########################################
*/
NS = ( document.layers )?true:false
IE = ( document.all )?true:false
/*---------------------------------*/
// ACHTUNG !!! hier body tag eintragen fuer BUG in IE 4.0 !!!!!!!!!!
if (IE) document.write('<BODY onLoad="if (JSinit) JSinit()" BGCOLOR="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" alink="black">')
/*--KONSTANTEN---------------------*/
bgc = "FFFFFF";	//Hintergrund
xc = 0; 			//Diff. X-Korrdinaten
height = 16;		//Höhe
/*--NBSP-Funktion------------------*/
function nbsp(n) {var r="";var i=0;for (i=0;i<n;i++) {r+="&nbsp;"} return r}
/*---------------------------------
MENU DEFINITION
---------------------------------*/
menuInit("/images/bg_h.gif", "/images/bg_h.gif", 0, bgc, 1, 'menu')

//var CGIBINPATH="/cgi-bin";
var CGIBINPATH = "";
var docloc=document.location+""
if (docloc.substr(0, 15)=="http://preview-") CGIBINPATH="";


menuOpen( 1, "M1", 110, CGIBINPATH+"/kanzlei/", "lu", xc, 1)
menuEntry( height, 'ueber_uns.php', nbsp(5)+"&Uuml;ber uns", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'mitarbeiter.php', nbsp(5)+"Mitarbeiter", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'standorte.php', nbsp(5)+"Standorte", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'partner.php', nbsp(5)+"Partner", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'stellenangebote.php', nbsp(5)+"Stellenangebote", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuClose();

menuOpen( 1, "M2", 160, CGIBINPATH+"/leistungsspektrum/", "lu", xc, 1 );
menuEntry( height, 'steuerberechnung_privat.php', 	nbsp(3)+"Steuerber. f. Privatpersonen", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'steuerberechnung_unternehmen.php', 	nbsp(3)+"Steuerber. f. Unternehmen", 		null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'wirtschaftspruefung.php', 	nbsp(3)+"Wirtschaftspr&uuml;fung", 		null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'oc.php', 	nbsp(3)+"Online-Controlling", 		null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'finanzbuchhaltung.php', 	nbsp(3)+"Finanzbuchhaltung", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'lohnbuchhaltung.php', 	nbsp(3)+"Lohnbuchhaltung", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'beratung.php', 	nbsp(3)+"Betriebswirtsch. Beratung", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'buchstelle.php', 	nbsp(3)+"Landwirtsch. Buchstelle", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuClose();

menuOpen( 1, "M3", 160, CGIBINPATH+"/service/", "lu", xc, 1 );
menuEntry( height, 'steuerberechnungen.php', 	nbsp(4)+"Steuerberechnung", 	null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuEntry( height, 'links.php', 	nbsp(4)+"Links", 		null, null, "/images/bg_h.gif", "/images/bgarr160.gif" );
menuClose();

menuOpen( 1, "M4", 110, CGIBINPATH+"/news/", "lu", xc, 1 );
menuEntry( height, 'index.php', 	nbsp(4)+"News", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'infothek.php', 	nbsp(4)+"Infothek", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'blitzlicht.php', 	nbsp(4)+"Blitzlicht", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'zugang.php', 	nbsp(4)+"Zugang anfordern", null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
//menuEntry(height, 'news.php', 	nbsp(4)+"Mandanten-Info", 	null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuClose();

menuOpen( 1, "M5", 110, CGIBINPATH+"/kontakt/", "lu", -39, 1 );
menuEntry( height, 'formular.php', 	nbsp(4)+"Kontakt-Formular", 	null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuEntry( height, 'anfahrt.php', 	nbsp(4)+"Anfahrt", 		null, null, "/images/bg_h.gif", "/images/bgarr110.gif" );
menuClose();

menuFinish();
	
function JSinit() {
	NSreload();
	scanImages(glob );
	window.setInterval('checkMenu(1)', 400 );
}

/*-----------------------------------------------------------------------------------------
POPUP
-----------------------------------------------------------------------------------------*/
function popup(url, width, height, xPosProzent, yPosProzent, scrollbars) {
	//if (navigator.userAgent.indexOf('Mac')) return true
	if (window.newwin) {if (!window.newwin.closed) window.newwin.close()}

	if (isnull(width))			width = 500 // (default )
	if (isnull(height))			height = 400 // (default)
	if (isnull(xPosProzent))	xPosProzent= 50 // (default)
	if (isnull(yPosProzent))	yPosProzent= 50 // (default)
	if (isnull(scrollbars))		scrollbars = 1 // (default)

	var x=(screen.width -width )*xPosProzent/100
	var y=(screen.height-height)*yPosProzent/100
	var paras="resizable=0, scrollbars="+scrollbars+", toolbar=0, menubar=0, location=0, status=0, directories=0, width="+width+", height="+height
	if(document.layers)	window.newwin=window.open(url, "pinPopupWindow", paras+", screenX="+x+", screenY="+y)
	else{				window.newwin=window.open(url, "pinPopupWindow", paras);
						if (url.substr(0, 7)!='http://') window.newwin.moveTo(x, y)}
	
	if (url.substr(0, 7)!='http://') window.newwin.focus()
}

function isnull(variable){
	if (NS) return (variable==undefined)
	if (IE) return (variable==null)
	return false
}