var dogear = new Object();

dogear.ad_url = escape('http://www.crusadersails.co.uk/current_offers.htm'); // Hyperlink, this will transition when clicked on the large swf/image.

dogear.small_path = 'template/small.swf'; // Path for the small flash dog eared effect
dogear.small_image = escape('template/small.jpg'); // Path for the small image to be used for initial effect, photoshop dimensions should be 75px by 75px
dogear.small_width = '100'; // Sizes for divs, these are different to the images for good reason
dogear.small_height = '100'; // Sizes for divs, these are different to the images for good reason
dogear.small_params = 'ico=' + dogear.small_image;

dogear.big_path = 'template/large.swf'; // Path for the large image pull back effect
dogear.big_image = escape('template/large.jpg'); // Path for the main image to be displayed after pull back of corner
dogear.big_width = '650'; // Sizes for divs, these are different to the images for good reason
dogear.big_height = '650'; // Sizes for divs, these are different to the images for good reason
dogear.big_params = 'big=' + dogear.big_image + '&ad_url=' + dogear.ad_url;

function sizeup987(){
	document.getElementById('dogearLarge').style.top = '0px'; // Displays large div
	document.getElementById('dogearSmall').style.top = '-1000px'; // Hides small div
}

function sizedown987(){
	document.getElementById("dogearSmall").style.top = "0px"; // Displays large div
	document.getElementById("dogearLarge").style.top = "-1000px"; // Hides small div
}

dogear.putObjects = function () {
// <dogearSmall>
document.write('<div id="dogearSmall" style="position:absolute;width:'+ dogear.small_width +'px;height:'+ dogear.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="dogearSmallObject" width="'+dogear.small_width+'" height="'+dogear.small_height+'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ dogear.small_path +'?'+ dogear.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+dogear.small_params+'"/>');
// embed
document.write('<embed src="'+ dogear.small_path + '?' + dogear.small_params +'" name="dogearSmallObject" wmode="transparent" quality="high" width="'+ dogear.small_width +'" height="'+ dogear.small_height +'" flashvars="'+ dogear.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
document.write('</script>');
// </dogearSmall>
// <dogearLarge>
document.write('<div id="dogearLarge" style="position:absolute;width:'+ dogear.big_width +'px;height:'+ dogear.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="dogearLargeObject" width="'+ dogear.big_width +'" height="'+ dogear.big_height +'">');
// object params
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ dogear.big_path +'?'+ dogear.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ dogear.big_params +'"/>');
// embed
document.write('<embed src="'+ dogear.big_path + '?' + dogear.big_params +'" id="dogearLargeEmbed" name="dogearLargeObject" wmode="transparent" quality="high" width="'+ dogear.big_width +'" height="'+ dogear.big_height +'" flashvars="'+ dogear.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div>');
// </dogearLarge>
setTimeout('document.getElementById("dogearLarge").style.top = "-1000px";',1000);
}
dogear.putObjects();