var banner = 'http://forms.cocomore.com/pampers_unicef_banner1011/banner/PG_Cocooning_Banner.swf';
var url = 'http://www.for-me-online.de/wohlfuehl-sauber/start.aspx';
var w = 0;
var h = 0;
var t = 0;
var tw = 0;
w = window.innerWidth - 20;
h = window.innerHeight;
t = h - 100;
tw = w - 50;
if (!w) {
        w = document.body.offsetWidth;
        tw = w - 100;
        wd = (w - tw) / 2;
        w = w+'px';
        tw = tw+'px';
        wd = wd+'px';
} else {
	h = h + 'px';
}
if (!h) {
	h = '100%'; 
	var hie = document.body.offsetHeight;
	t = hie -100;
} else {
	wd = (w - tw) / 2;
	wd = wd+'px';
	w = w + 'px';
	tw = tw + 'px';
}
function showBanner()
{
	document.write('<style>');
	document.write('	#container { position: absolute; top: 0px; left: 0px; z-index: 98;  width: '+w+'; height: '+h+'; max-width: '+w+'; max-height: '+h+'; overflow: hidden; background: #c0c0c0; filter:alpha(opacity=80); -moz-opacity: 0.80; opacity: 0.80; }');
	document.write('	#container2 { position: absolute; top: 0px; left: 0px; z-index: 99;  width: '+w+'; height: '+h+'; max-width: '+w+'; max-height: '+h+'; overflow: hidden; }');
	document.write('	#banner {absolute;top: 0px;width: 500px;height: 500px;z-index: 9999; filter:alpha(opacity=100); -moz-opacity: 1.00; opacity: 1.00;}');
	document.write('	</style>');
	document.write('<div id="container"></div>');
	document.write('<div id="container2"><center>');
	document.write('<div id="banner">');
	document.write('<div id="flashContent" style="position:absolute; left:0px; top:0px; z-index: 9;">');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1335" height="1000" id="swiffer_banner_01_20101112_cw" align="middle">');
	document.write('<param name="movie" value="'+banner+'" />');
	document.write('<param name="quality" value="high" />');			
	document.write('<param name="play" value="true" />');
	document.write('<param name="loop" value="true" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="menu" value="true" />');
	document.write('<param name="devicefont" value="false" />');
	document.write('<param name="salign" value="" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<!--[if !IE]>-->');
	document.write('<object type="application/x-shockwave-flash" data="'+banner+'" width="1335" height="1000">');
	document.write('<param name="movie" value="'+banner+'" />');
	document.write('<param name="quality" value="high" />');					
	document.write('<param name="play" value="true" />');
	document.write('<param name="loop" value="true" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="menu" value="true" />');
	document.write('<param name="devicefont" value="false" />');
	document.write('<param name="salign" value="" />');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<!--<![endif]-->');
	document.write('<!--[if !IE]>-->');
	document.write('</object>');
	document.write('<!--<![endif]-->');
	document.write('</object>');
	document.write('</div>');
	document.write('</div>');
	document.write('</div>');
	document.write('<div id="link" style="position: absolute; left: 390px; top: 240px; width: 600px; height: 400px; cursor: pointer; z-index: 9999; border: 0px solid red;"><a href="http://www.for-me-online.de/wohlfuehl-sauber/start.aspx" target="_blank"><img src="http://forms.cocomore.com/pampers_unicef_banner1011/blank.gif" border="0" width="600" height="400"></a></div>');
	document.write('<div id="closebtn" style="position: absolute; left: 955px; top: 130px; width: 40px; height: 40px; cursor: pointer; z-index: 9999; border: 0px solid red;"><a style="cursor:pointer;" onClick="closeBanner()"><img src="http://forms.cocomore.com/pampers_unicef_banner1011/blank.gif" border="0" width="40" height="40"></a></div>');
	document.write('</center></div>');
}

function closeBanner()
{
	document.getElementById('banner').style.display = 'none';
	document.getElementById('container').style.display = 'none';
	document.getElementById('container2').style.display = 'none';
	document.getElementById('link').style.display = 'none';
	document.getElementById('closebtn').style.display = 'none';
}

//showBanner();

//window.setTimeout("closeBanner()", 20000);


