/*

Page Peel Ads with multiple rotator function 

To add a new link + image:

add a line under links[somenumber] and big_images[somenumber] and small_images[somenumber]

e.g:

links[3] = escape('http://www.borzack.com'); // 3rd URL when Page Peel Script Ads is clicked on
...
big_images[3]   = './pagepeelads/images/big3.jpg';
...
small_images[3] = './pagepeelads/images/small3.jpg';

the number should be one bigger than the last

enter the final number in numLinks

so for example, with the addition of links[3] and big_images[3] and small_images[3], numLinks = 3

*/


var links = new Array();
links[1] = escape('http://www.mygwebd.com/packages.htm'); // 1st URL when Page Peel Script Ads is clicked on
links[2] = escape('http://mygwebd.com/plugger-logo.htm'); // 2nd URL when Page Peel Script Ads is clicked on

var big_images = new Array();
big_images[1] = 'http://www.mygwebd.com/pagepeelads/images/large.jpg'; // Large Image 1 after hover (.jpg, .gif, .png) - 500X500
big_images[2] = 'http://www.mygwebd.com/pagepeelads/images/large1.jpg'; // Large Image 2 after hover (.jpg, .gif, .png) - 500X500

var small_images = new Array();
small_images[1] = 'http://www.mygwebd.com/pagepeelads/images/small.jpg'; // Small Image 1 before hover (.jpg, .gif, .png) - 75X75
small_images[2] = 'http://www.mygwebd.com/pagepeelads/images/small2.jpg'; // Small Image 2 before hover (.jpg, .gif, .png) - 75X75

var numLinks = 2;
var randomKey = Math.floor(Math.random()*(numLinks + 1));

var pagepeelads = new Object();

pagepeelads.ad_url = links[randomKey];

pagepeelads.small_path = 'http://www.mygwebd.com/pagepeelads/small.swf'; // Path where you placed the small.swf
pagepeelads.small_image = small_images[randomKey];
pagepeelads.small_width = '100';
pagepeelads.small_height = '100';
pagepeelads.small_params = 'ico=' + pagepeelads.small_image;

pagepeelads.big_path = 'http://www.mygwebd.com/pagepeelads/big.swf'; // Path where you placed the big.swf
pagepeelads.big_image = big_images[randomKey];
pagepeelads.big_width = '650';
pagepeelads.big_height = '650';
pagepeelads.big_params = 'big=' + pagepeelads.big_image + '&ad_url=' + pagepeelads.ad_url;

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

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

pagepeelads.putObjects = function () {
// <PagePeelSmall>
document.write('<div id="PagePeelSmall" style="position:absolute;width:'+ pagepeelads.small_width +'px;height:'+ pagepeelads.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="PagePeelSmallObject" width="'+pagepeelads.small_width+'" height="'+pagepeelads.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagepeelads.small_path +'?'+ pagepeelads.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+pagepeelads.small_params+'"/>');
// embed
document.write('<embed src="'+ pagepeelads.small_path + '?' + pagepeelads.small_params +'" name="PagePeelSmallObject" wmode="transparent" quality="high" width="'+ pagepeelads.small_width +'" height="'+ pagepeelads.small_height +'" flashvars="'+ pagepeelads.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </PagePeelSmall>
// <PagePeelBig>
document.write('<div id="PagePeelBig" style="position:absolute;width:'+ pagepeelads.big_width +'px;height:'+ pagepeelads.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="PagePeelBigObject" width="'+ pagepeelads.big_width +'" height="'+ pagepeelads.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagepeelads.big_path +'?'+ pagepeelads.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ pagepeelads.big_params +'"/>');
// embed
document.write('<embed src="'+ pagepeelads.big_path + '?' + pagepeelads.big_params +'" id="PagePeelBigEmbed" name="PagePeelBigObject" wmode="transparent" quality="high" width="'+ pagepeelads.big_width +'" height="'+ pagepeelads.big_height +'" flashvars="'+ pagepeelads.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </PagePeelBig>
setTimeout('document.getElementById("PagePeelBig").style.top = "-1000px";',1000);
}
pagepeelads.putObjects();
