//Copyright 2009 AdminDaily.com all rights reserved.
//For support, instructions or if your just completely lost please go to http://admindaily.com/free-random-corner-peel-ad-script.html
//
image_small = new Array();
image_small[0]= 'http://www.buildnichewebsites.com/peel/images/chere_blue_small.jpg';  //The URL where the small image is located
image_small[1]= 'http://www.buildnichewebsites.com/peel/images/chere_blue_small.jpg';  //The URL where the small image is located
// To add more images continue  numbering.

image_big = new Array();
image_big[0]= 'http://www.buildnichewebsites.com/peel/images/500x500viral_peel_ad.jpg';  //The URL where the big image is located.
image_big[1]= 'http://www.buildnichewebsites.com/peel/images/500x500viral_peel_ad.jpg';  //The URL where the big image is located.
// To add more images continue numbering.

GoTo = new Array();
GoTo[0]= 'http://www.healthyblendjuice.com'; 		//The page where the user is taken when clicking on the ad.
GoTo[1]= 'http://www.healthyblendjuice.com'; 		//The page where the user is taken when clicking on the ad.
// To add more URLS continue numbering .

var number = 2   //Quantity of ads.

var nb = Math.round((number -1) * Math.random());

var Link = GoTo[nb];
var Pic1 = image_small[nb];
var Pic2 = image_big[nb];

var xrep = new Object();

xrep.ad_url = escape(Link);

xrep.small_path = 'http://www.buildnichewebsites.com/peel/peelsmall.swf'; //URL of the Peel Away Corner Flash
xrep.small_image = escape(Pic1);
xrep.small_width = '100';
xrep.small_height = '100';
xrep.small_params = 'ico=' + xrep.small_image;

xrep.big_path = 'http://www.buildnichewebsites.com/peel/peelbig.swf'; // URL of the Large Peel Away Corner Flash
xrep.big_image = escape(Pic2);
xrep.big_width = '650';
xrep.big_height = '650';
xrep.big_params = 'big=' + xrep.big_image + '&ad_url=' + xrep.ad_url;

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

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

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

xrep.putObjects = function () {
// <xrepSmall>
document.write('<div id="xrepcornerSmall" style="position:fixed;width:'+ xrep.small_width +'px;height:'+ xrep.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="xrepSmallcornerObject" width="'+xrep.small_width+'" height="'+xrep.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ xrep.small_path +'?'+ xrep.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+xrep.small_params+'"/>');
// embed
document.write('<embed src="'+ xrep.small_path + '?' + xrep.small_params +'" name="xrepcornerSmallObject" wmode="transparent" quality="high" width="'+ xrep.small_width +'" height="'+ xrep.small_height +'" flashvars="'+ xrep.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </xrepSmall>
// <xrepBig>
document.write('<div id="xrepcornerBig" style="position:fixed;width:'+ xrep.big_width +'px;height:'+ xrep.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="xrepcornerBigObject" width="'+ xrep.big_width +'" height="'+ xrep.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ xrep.big_path +'?'+ xrep.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ xrep.big_params +'"/>');
// embed
document.write('<embed src="'+ xrep.big_path + '?' + xrep.big_params +'" id="xrepcornerBigEmbed" name="xrepcornerBigObject" wmode="transparent" quality="high" width="'+ xrep.big_width +'" height="'+ xrep.big_height +'" flashvars="'+ xrep.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('<div id="peelcredit" style="position:relative; bottom: 0px; width: 100%;"><div style="font-size:9px; color:#e3e3e3; text-align: center;"><a href="http://admindaily.com" title="free peel ad">free peel ad</a> by admindaily.com</div></div>');
// </xrepBig>
setTimeout('document.getElementById("xrepcornerBig").style.top = "-1000px";',1000);
}
xrep.putObjects();