/* Grafik Krausz Common Functions <script> */

blockLinkOuts = true;

function getObjectById(objId) {
obj = (document.all) ? eval("document.all."+objId) : document.getElementById(objId);
return (typeof(obj) == "object") ? obj : false;  
}

function writemail(mb,dm,tld) { 
document.write("<a class='mailto' href='mai"+"lto:"+mb+"@"+dm+"."+tld+"'>"+mb+"@"+dm+"."+tld+"<\/a>");
}

function postload_init(commands) {
// alert(commands.indexOf("blockSlideshow"));

if (commands.indexOf("blockSlideshow") == -1) {
	currentimgobj = getObjectById("blend_div_"+gk_current_img_nr);
	gk_setZtop(currentimgobj);
	window.setTimeout("blendimg_replace()",1200);
	window.setTimeout("gk_slideshow('start')",3000);
	} // else { alert("TMP Debug-Message: Slideshow angehalten - Videomodul aktiviert"); }
}

function gk_slideshow(startstop) {
if (startstop == "start") { autofade = window.setInterval("gk_next_img()",5000); }
if (startstop == "stop") { autofade = window.clearInterval(autofade); }
}

function linkOut(link) {
if (blockLinkOuts) { 
	alert("Links auf externe Seiten können rückverfolgt werden. Daher werden sie in der Entwicklungsphase unterdrückt."); return false; 
	} 
} 

