/* BOXTY <script> */

function writemail(mb,dm,tld,lnktxt,sbj,bdy) { 
sbj = (typeof sbj != "undefined") ? encodeURI(sbj) : "";
bdy = (typeof bdy != "undefined") ? "&body="+bdy : "";
lnktxt = (lnktxt!="" && typeof lnktxt!="undefined") ? lnktxt : mb+"@"+dm+"."+tld;

document.write("<a class='mai"+"lto' href='mai"+"lto:"+mb+"@"+dm+"."+tld+"?subject="+sbj+bdy+"'>"+lnktxt+"<\/a>");
}

function changebg(bgnr) {

for (i=1; i<5; i++) {
pgbg = (document.all) ? eval("document.all.bg_"+i) : document.getElementById("bg_"+i); 
pgbg.style.visibility = (bgnr == i) ? "visible" : "hidden";
}
}

function postload_init() {
currentimgobj = getObjectById("blend_div_"+gk_current_img_nr);
gk_setZtop(currentimgobj);
window.setTimeout("blendimg_replace('blend_img_','_img/geidorfcenter_img','jpg',8)",2000);
gk_slideshow("start");
}

function gk_slideshow(startstop) {
if (startstop == "start") { autofade = window.setInterval("gk_next_img()",12000); }
if (startstop == "stop") { autofade = window.clearInterval(autofade); }
}

function switchlang(lng) {
// if (window.location.search == "") { 
// alert("Sprache ist undefiniert / language is undefinend"); 
// window.location.href += "?lang="+lng; 
// } else { 
window.location.href = window.location.pathname + "?lang=" + lng; 
// } 
}
