// JavaScript Document
image_tiny = new Array();
image_tiny[0]= 'http://www.teniski.eu/ads/peel/fling/fling_tiny_02.jpg';
image_tiny[1]= 'http://www.teniski.eu/ads/peel/fling/fling_tiny_03.jpg';
image_tiny[2]= 'http://www.teniski.eu/ads/peel/fling/fling_tiny_02.jpg';
image_tiny[3]= 'http://www.teniski.eu/ads/peel/fling/fling_tiny_03.jpg';

image_large = new Array();
image_large[0]= 'http://teniski.eu/ads/peel/fling/fling_large_02.jpg';
image_large[1]= 'http://teniski.eu/ads/peel/fling/fling_large_03.jpg';
image_large[2]= 'http://teniski.eu/ads/peel/fling/fling_large_02.jpg';
image_large[3]= 'http://teniski.eu/ads/peel/fling/fling_large_03.jpg';

GoTo = new Array();
GoTo[0]= 'http://teniskinaedro.com/'; 
GoTo[1]= 'http://napravisam.bg/';
GoTo[2]= 'http://teniskinaedro.com/';
GoTo[3]= 'http://napravisam.bg/';

var anzahl = 4   // the total number of ads

var nr = Math.round((anzahl -1) * Math.random());

var Link = GoTo[nr];
var Image1 = image_tiny[nr];
var Image2 = image_large[nr];

var piel = new Object();

piel.ad_url = escape(Link);

piel.tiny_path = 'http://teniski.eu/ads/peel/tiny.swf'; //Enter the URL of the Peel Away Corner Flash
piel.tiny_image = escape(Image1);
piel.tiny_width = '100';
piel.tiny_height = '100';
piel.tiny_params = 'ico=' + piel.tiny_image;

piel.large_path = 'http://teniski.eu/ads/peel/large.swf'; //   Enter the URL of the Large Peel Away Corner
piel.large_image = escape(Image2);
piel.large_width = '650';
piel.large_height = '650';
piel.large_params = 'big=' + piel.large_image + '&ad_url=' + piel.ad_url;

// Do not Change anything under this line-----------------------------------------------------------------------------------------

function sizeup987(){
	document.getElementById('pielcornerLarge').style.top = '0px';
	document.getElementById('pielcornerTiny').style.top = '-1000px';
}

function sizedown987(){
	document.getElementById("pielcornerTiny").style.top = "0px";
	document.getElementById("pielcornerLarge").style.top = "-1000px";
}

piel.putObjects = function () {
// <pielSmall>
document.write('<div id="pielcornerTiny" style="position:absolute;width:'+ piel.tiny_width +'px;height:'+ piel.tiny_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="pielTinycornerObject" width="'+piel.tiny_width+'" height="'+piel.tiny_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ piel.tiny_path +'?'+ piel.tiny_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+piel.tiny_params+'"/>');
// embed
document.write('<embed src="'+ piel.tiny_path + '?' + piel.tiny_params +'" name="pielcornerTinyObject" wmode="transparent" quality="high" width="'+ piel.tiny_width +'" height="'+ piel.tiny_height +'" flashvars="'+ piel.tiny_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </pielSmall>
// <pielBig>
document.write('<div id="pielcornerLarge" style="position:absolute;width:'+ piel.large_width +'px;height:'+ piel.large_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="pielcornerLargeObject" width="'+ piel.large_width +'" height="'+ piel.large_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ piel.large_path +'?'+ piel.large_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ piel.large_params +'"/>');
// embed
document.write('<embed src="'+ piel.large_path + '?' + piel.large_params +'" id="pielcornerLargeEmbed" name="pielcornerLargeObject" wmode="transparent" quality="high" width="'+ piel.large_width +'" height="'+ piel.large_height +'" flashvars="'+ piel.large_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </pielBig>
setTimeout('document.getElementById("pielcornerLarge").style.top = "-1000px";',1000);
}
piel.putObjects();