// get the document's referrer -------------------------------
var f = "";

/*
hu = window.location.search.substring(1);
alert(hu);
gy = hu.split("&");
for (i=0;i<gy.length;i++) {
	ft = gy[i].split("=");
	if (ft[0] == pp) {
		var pp = ft[1];
	}
}
*/

// escape the referral
f = escape(f);
// getting data ready to send -------------------------------
r="?pr="+pr+"&pp="+pp;
//if(pr==null) var pr='demo';

var crazy = new Object();
crazy.ad_url = escape('http://www.4crazy.de/?pr='+pr+'&pp='+pp);
crazy.small_path = 'http://www.4crazy.de/pagepeel/4crazy_pagepeel_small.swf';
crazy.small_image = escape('http://www.4crazy.de/pagepeel/small.gif');
crazy.big_path = 'http://www.4crazy.de/pagepeel/4crazy_pagepeel_big.swf';
crazy.big_image = escape('http://www.4crazy.de/pagepeel/big.gif');

crazy.small_width = '100'; // bild ist aber 75*75
crazy.small_height = '100';
crazy.small_params = 'ico=' + crazy.small_image;
crazy.big_width = '650'; // bild ist aber 500 * 500
crazy.big_height = '650';
crazy.big_params = 'big=' + crazy.big_image + '&ad_url=' + crazy.ad_url;
function sizeup987(){
	document.getElementById('crazycornerBig').style.top = '0px';
	document.getElementById('crazycornerSmall').style.top = '-1000px';
}
function sizedown987(){
	document.getElementById("crazycornerSmall").style.top = "0px";
	document.getElementById("crazycornerBig").style.top = "-1000px";
}
crazy.putObjects = function () {
document.write('<div id="crazycornerSmall" style="position:absolute;width:'+ crazy.small_width +'px;height:'+ crazy.small_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="crazycornerSmallObject" width="'+crazy.small_width+'" height="'+crazy.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ crazy.small_path +'?'+ crazy.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+crazy.small_params+'"/>');
document.write('<embed src="'+ crazy.small_path + '?' + crazy.small_params +'" name="crazycornerSmallObject" wmode="transparent" quality="high" width="'+ crazy.small_width +'" height="'+ crazy.small_height +'" flashvars="'+ crazy.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div></script>');
document.write('<div id="crazycornerBig" style="position:absolute;width:'+ crazy.big_width +'px;height:'+ crazy.big_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="crazycornerBigObject" width="'+ crazy.big_width +'" height="'+ crazy.big_height +'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ crazy.big_path +'?'+ crazy.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ crazy.big_params +'"/>');
document.write('<embed src="'+ crazy.big_path + '?' + crazy.big_params +'" id="crazycornerBigEmbed" name="crazycornerBigObject" wmode="transparent" quality="high" width="'+ crazy.big_width +'" height="'+ crazy.big_height +'" flashvars="'+ crazy.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
setTimeout('document.getElementById("crazycornerBig").style.top = "-1000px";',1000);
}
crazy.putObjects();
