/**
	Dieses Script soll den FlashBanner für die Garantiewochen einbinden
**/



hasFlash = false;
	strVersion = null;
	if (typeof(navigator.plugins["Shockwave Flash"]) == "object") {
		var description = navigator.plugins["Shockwave Flash"].description;
		strVersion = description.substr(16, (description.indexOf(".", 16) - 16));
	} else if (typeof(ActiveXObject) == "function") {
		for (var i = 2; i < 8; i ++) {
			try {
				if (typeof(new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i)) == "object") {
					strVersion = i;
				}
			}
			catch(error){
			}
		}
	}
	if (strVersion)
		hasFlash = true;
	//alert("Flash vorhanden: " + hasFlash);

var intervalShow;
var intervalClose;
var show = true;

function show_layer() {
	if (show)
		document.getElementById("teaserTop").style.visibility = "visible";
}

function close_layer() {
	document.getElementById("teaserTop").style.visibility = "hidden";
}

function first_close() {
	close_layer();
	intervalClose = window.setInterval('close_layer()', 50000);
}

function first_show() {
	show_layer();
	intervalShow = window.setInterval('show_layer()', 50000);
}

function close_forever() {
	show = false;
	close_layer();
}


//hasFlash = false;
if (hasFlash) {	
	//alert("writing...");
	document.write('<div id="teaserTop" style="position:absolute; top:0px; left:353px; width:520px; height:150px; z-index:10; ">');
	document.write('<p>');
	document.write('<object classid="CLSID:D27CDB6E-AE6D-11cf-96B8-444553540000" width="520" height="150">');
	document.write('<param name="movie" value="/kundencenter/export/de/business/resources/swf/alice_garantiewochen/garantie_520x150_mx3.swf">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="scale" value="exactfit">');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="menu" value="false" />');
	document.write('<embed src="/kundencenter/export/de/business/resources/swf/alice_garantiewochen/garantie_520x150_mx3.swf" quality="high" scale="exactfit" wmode="transparent" width="520" height="150" swLiveConnect="false" type="application/x-shockwave-flash">');
	document.write('</embed>');
	document.write('</object>');
	document.write('</p>');
	document.write('</div>');
} else {
	document.write('<div id="teaserTop" style="position:absolute; top:0px; left:353px; width:526px; height:145px; z-index:10; background-image: url(/kundencenter/export/de/business/resources/images/alice_garantiewochen/garantie_banner2b.gif); ">');
	document.write('<a href="/kundencenter/export/de/business/loesungen_fuer_unternehmen/alice_garantiewochen/"><div style="cursor: pointer; width: 500px; height: 135px; "></div></a>');
	document.write('<a href="#"  onclick="javascript: close_forever()" style="position: absolute; left: 396px; top: 15px; "><div style="cursor: pointer; width: 80px; height: 16px; "></div></a>');
	document.write('</div');
}
