// Browsercheck
var macie = false;
if (navigator.userAgent.indexOf("Mac") != -1 && navigator.userAgent.indexOf("MSIE") != -1) macie = true;
var safari = false;
if (navigator.userAgent.indexOf("Safari") != -1) safari = true;
var nn4 = false;
if (navigator.appName.indexOf("Netscape") != -1 && navigator.appVersion.substring(0,1) < 5) nn4 = true;
var nn6 = false;
if (navigator.userAgent.indexOf("Netscape6") != -1) nn6 = true;
var mozilla = false;
if (navigator.userAgent.indexOf("Mozilla") != -1 && navigator.appVersion.substring(0,1) >= 5) mozilla = true;
var counter = 1;
// Workaround for IE6-multiple-pic-error and preload for submenu-line
blindGif = new Image; blindGif.src = "../_gfx/1px.gif";
greyGif = new Image; greyGif.src = "../_gfx/grey.gif";
// Button-Preload
bt_home_pas = new Image; bt_home_pas.src = "../_gfx/_bt/bt_home_p.gif";
bt_home_ovr = new Image; bt_home_ovr.src = "../_gfx/_bt/bt_home_o.gif";
bt_konzerte_pas = new Image; bt_konzerte_pas.src = "../_gfx/_bt/bt_konzerte_p.gif";
bt_konzerte_ovr = new Image; bt_konzerte_ovr.src = "../_gfx/_bt/bt_konzerte_o.gif";
bt_musik_pas = new Image; bt_musik_pas.src = "../_gfx/_bt/bt_musik_p.gif";
bt_musik_ovr = new Image; bt_musik_ovr.src = "../_gfx/_bt/bt_musik_o.gif";
bt_buecher_pas = new Image; bt_buecher_pas.src = "../_gfx/_bt/bt_buecher_p.gif";
bt_buecher_ovr = new Image; bt_buecher_ovr.src = "../_gfx/_bt/bt_buecher_o.gif";
bt_vita_pas = new Image; bt_vita_pas.src = "../_gfx/_bt/bt_vita_p.gif";
bt_vita_ovr = new Image; bt_vita_ovr.src = "../_gfx/_bt/bt_vita_o.gif";
bt_presse_pas = new Image; bt_presse_pas.src = "../_gfx/_bt/bt_presse_p.gif";
bt_presse_ovr = new Image; bt_presse_ovr.src = "../_gfx/_bt/bt_presse_o.gif";
bt_kontakt_pas = new Image; bt_kontakt_pas.src = "../_gfx/_bt/bt_kontakt_p.gif";
bt_kontakt_ovr = new Image; bt_kontakt_ovr.src = "../_gfx/_bt/bt_kontakt_o.gif";
bt_links_pas = new Image; bt_links_pas.src = "../_gfx/_bt/bt_links_p.gif";
bt_links_ovr = new Image; bt_links_ovr.src = "../_gfx/_bt/bt_links_o.gif";
bt_newsletter_pas = new Image; bt_newsletter_pas.src = "../_gfx/_bt/bt_newsletter_p.gif";
bt_newsletter_ovr = new Image; bt_newsletter_ovr.src = "../_gfx/_bt/bt_newsletter_o.gif";
bt_arrow_pas = new Image; bt_arrow_pas.src = "../_gfx/_bt/bt_arrow_p.gif";
bt_arrow_ovr = new Image; bt_arrow_ovr.src = "../_gfx/_bt/bt_arrow_o.gif";
bt_arrow1_pas = new Image; bt_arrow1_pas.src = "../_gfx/_bt/bt_arrow1_p.gif";
bt_arrow1_ovr = new Image; bt_arrow1_ovr.src = "../_gfx/_bt/bt_arrow1_o.gif";
bt_arrow2_pas = new Image; bt_arrow2_pas.src = "../_gfx/_bt/bt_arrow2_p.gif";
bt_arrow2_ovr = new Image; bt_arrow2_ovr.src = "../_gfx/_bt/bt_arrow2_o.gif";
bt_arrow3_pas = new Image; bt_arrow3_pas.src = "../_gfx/_bt/bt_arrow3_p.gif";
bt_arrow3_ovr = new Image; bt_arrow3_ovr.src = "../_gfx/_bt/bt_arrow3_o.gif";
// Funktionen zum Umschalten der Buttons
function ovr(imgName) {
if (document.all || nn6 == true || mozilla == true) {
document[imgName].src = eval(imgName + "_ovr.src");
} else {
document.images[imgName].src = eval(imgName + "_ovr.src");
}
}
function pas(imgName) {
if (document.all || nn6 == true || mozilla == true) {
document[imgName].src = eval(imgName + "_pas.src");
} else {
document.images[imgName].src = eval(imgName + "_pas.src");
}
}
function showsm() {
if (document.all) {
document.all.sub_agentur.style.visibility = "visible";
document.line_agentur.src = greyGif.src;
} else {
if (document.getElementById) {
document.getElementById('sub_agentur').style.visibility = "visible";
document.images.line_agentur.src = greyGif.src;
} else {
document.layers.sub_agentur.visibility = "show";
document.images.line_agentur.src = greyGif.src;
}
}
}
function hidesm() {
if (document.all) {
if (document.all.sub_agentur) {
document.all.sub_agentur.style.visibility = "hidden";
document.line_agentur.src = blindGif.src;
}
} else {
if (document.getElementById('sub_agentur')) {
document.getElementById('sub_agentur').style.visibility = "hidden";
document.images.line_agentur.src = blindGif.src;
} else {
if (document.layers.sub_agentur) {
document.layers.sub_agentur.visibility = "hide";
document.layers.sub_agentur.document.images.line_agentur.src = blindGif.src;
}
}
}
}
// Statusanzeige
window.defaultStatus = "manfredsiebald.org ::";
function statustext(text) {
window.status = "manfredsiebald.org :: " + text;
}
// Funktion fuer die Input-Felder und das Texteingabefeld
function inputField(formname,name,value,opttxt,title,laenge,maxlaenge) {
bgStandard = '#FFFFFF';
bdStandard = '#F75210';
txStandard = '#F75210';
bgHighlight = '#DFE9F2';
bdHighlight = '#F75210';
txHighlight = '#F75210';
colStyle = '';
if (opttxt) {
colStyle = ' style="color:#b2bdd2;"';
optMeldung = ' onfocus="if (this.value==\''+opttxt+'\') { this.value=\'\'; this.style.color=\''+txHighlight+'\'; } if (this.style) { this.style.backgroundColor=\''+bgHighlight+'\'; this.style.borderColor=\''+bdHighlight+'\'; this.style.color=\''+txHighlight+'\'; }" onblur="if (this.value==\'\') { this.value=\''+opttxt+'\'; } if (this.style) { this.style.backgroundColor=\''+bgStandard+'\'; this.style.borderColor=\''+bdStandard+'\'; if (this.value != \''+opttxt+'\') { this.style.color=\''+txStandard+'\'; } else { this.style.color=\'#94B5D3\'; } }"';
} else {
optMeldung = ' onfocus="if (this.style) { this.style.backgroundColor=\''+bgHighlight+'\'; this.style.borderColor=\''+bdHighlight+'\'; this.style.color=\''+txHighlight+'\'; }" onblur="if (this.style) { this.style.backgroundColor=\''+bgStandard+'\'; this.style.borderColor=\''+bdStandard+'\'; this.style.color=\''+txStandard+'\'; }"';
}
if (macie == true) { laenge = Math.ceil(laenge*0.75); }
else { if (safari == true) { laenge = Math.ceil(laenge*0.78); }
else { if (nn6 == true) { laenge = Math.ceil(laenge*0.56); }
else { if (mozilla) { laenge = laenge; }
else { if (document.all) { laenge = laenge; }
else { laenge = Math.ceil(laenge*0.62); }
}
}
}
}
document.write ('')
}
function textArea(areaName,cols,rows) {
bgStandard = '#FFFFFF';
bdStandard = '#F75210';
txStandard = '#F75210';
bgHighlight = '#DFE9F2';
bdHighlight = '#F75210';
txHighlight = '#F75210';
if (!cols) cols = 43;
if (!rows) rows = 9;
if (macie == true) { cols = Math.ceil(cols*0.7); }
else { if (safari == true) { cols = Math.ceil(cols*0.85); }
else { if (nn6 == true) { cols = Math.ceil(cols*0.547); }
else { if (mozilla) { cols = Math.ceil(cols*0.96); }
else { if (document.all) { cols = cols; }
else { cols = Math.ceil(cols*0.43); }
}
}
}
}
document.write ('