//********************************************************************************************************************
// PowerUpMySite.com Page Curl Pro v2 
//
// Please refer to PDF documentation included with package for detailed instructions
// For help or support, visit our forum at http://powerupmysite.com/forum or write to us at support@powerupmysite.com
//********************************************************************************************************************

// STANDARD SETTINGS
var advertisement_url = "https://digital.crochetmagazine.com/order_form.php?source=MSTPGCL"; // where you want your visitors to be delivered when they click your ad
var ad_image = "/scripts/PageCurlPROv2/CF-page_peel.swf"; // a JPG or SWF file that you want to use as your advertisement.
var ad_image_small = "/scripts/PageCurlPROv2/CF-page_peel_small_left.jpg"; // optional. Use if you have a second image for when the page curl is closed
var registrationKey = "764743708853674808779171"; // your v2 registration key. Use "demo" to sample on an unregistered domain. Use "808647757860226" for localhost if you are testing on your own machine and have a web server set up.

// ADDITIONAL OPTIONS
var target = ""; // enter "_new" if you want the links to open in a new browser window
var tabsize = 100; // how big do you want the page curl tab to be? You may enter any number from 50-100
var usereflection = true; // do you want the ad to be "reflected" onto the curled page? true/false. Also use "true" if you are using a custom reflection
var customreflection = "/scripts/PageCurlPROv2/bg-reflection.jpg"; // use a .JPG or .SWF as your custom reflection. Leave blank to "reflect" your ad_image.
var hideadshadow = true; // do you want to hide the shadow which appears above your advertisement? true/false
var whichcorner = "upperleft"; // options are "upperright" and "upperleft"
var pathtoswf = "/scripts/PageCurlPROv2/"; // ADVANCED USE ONLY. The path to your Page Curl PRO v2 files (if not in the same directory as your .HTML file). See documentation

// _________________________________________________________________________________________________
// DO NOT MODIFY BELOW THIS LINE

function showBig(){
	document.getElementById('po_pcb').style.top = "0px";
	document.getElementById('po_pca').style.top = "-1000px";
}

function closeNow(){
	document.getElementById('po_pcb').style.top = "-1000px";
	document.getElementById('po_pca').style.top = "0px";
}

function badKey(reg){
	alert("Your Page Curl Pro v2 registration key does not appear to be valid. Please visit powerupmysite.com to obtain a valid registration key for this domain.");
}

function enc(url){
	return url.replace(/&/g,"%26");
}
