var pagepeel = new Object();

pagepeel.ad_url = escape('http://www.dotsapothecaryshop.co.uk/contact'); // Hyperlink, this will transition when clicked on the large swf/image.

pagepeel.small_path = 'http://www.dotsapothecaryshop.co.uk/pagepeel/small.swf'; // Path for the small flash dog eared effect
pagepeel.small_image = escape('http://www.dotsapothecaryshop.co.uk/pagepeel/small.jpg'); // Path for the small image to be used for initial effect, photoshop dimensions should be 75px by 75px
pagepeel.small_width = '100'; // Sizes for divs, these are different to the images for good reason
pagepeel.small_height = '100'; // Sizes for divs, these are different to the images for good reason
pagepeel.small_params = 'ico=' + pagepeel.small_image;

pagepeel.big_path = 'http://www.dotsapothecaryshop.co.uk/pagepeel/large.swf'; // Path for the large image pull back effect
pagepeel.big_image = escape('http://www.dotsapothecaryshop.co.uk/pagepeel/sample.jpg'); // Path for the main image to be displayed after pull back of corner
pagepeel.big_width = '650'; // Sizes for divs, these are different to the images for good reason
pagepeel.big_height = '650'; // Sizes for divs, these are different to the images for good reason
pagepeel.big_params = 'big=' + pagepeel.big_image + '&ad_url=' + pagepeel.ad_url;

function sizeup987(){
	document.getElementById('pagepeelLarge').style.top = '0px'; // Displays large div
	document.getElementById('pagepeelSmall').style.top = '-1000px'; // Hides small div
}

function sizedown987(){
	document.getElementById("pagepeelSmall").style.top = "0px"; // Displays large div
	document.getElementById("pagepeelLarge").style.top = "-1000px"; // Hides small div
}

pagepeel.putObjects = function () {
// <pagepeelSmall>
document.write('<div id="pagepeelSmall" style="position:absolute;width:'+ pagepeel.small_width +'px;height:'+ pagepeel.small_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<span style="display:none;">&nbsp;</span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="pagepeelSmallObject" width="'+pagepeel.small_width+'" height="'+pagepeel.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagepeel.small_path +'?'+ pagepeel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+pagepeel.small_params+'"/>');
// embed
document.write('<embed src="'+ pagepeel.small_path + '?' + pagepeel.small_params +'" name="pagepeelSmallObject" wmode="transparent" quality="high" width="'+ pagepeel.small_width +'" height="'+ pagepeel.small_height +'" flashvars="'+ pagepeel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </pagepeelSmall>
// <pagepeelLarge>
document.write('<div id="pagepeelLarge" style="position:absolute;width:'+ pagepeel.big_width +'px;height:'+ pagepeel.big_height +'px;z-index:9999;right:0px;top:0px;">');
// object
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write(' codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="pagepeelLargeObject" width="'+ pagepeel.big_width +'" height="'+ pagepeel.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ pagepeel.big_path +'?'+ pagepeel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ pagepeel.big_params +'"/>');
// embed
document.write('<embed src="'+ pagepeel.big_path + '?' + pagepeel.big_params +'" id="pagepeelLargeEmbed" name="pagepeelLargeObject" wmode="transparent" quality="high" width="'+ pagepeel.big_width +'" height="'+ pagepeel.big_height +'" flashvars="'+ pagepeel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </pagepeelLarge>
setTimeout('document.getElementById("pagepeelLarge").style.top = "-1000px";',1000);
}
pagepeel.putObjects();