//********************************************************************************************************************
// PowerUpMySite.com Page Curl Pro v2 
//********************************************************************************************************************

// STANDARD SETTINGS
var advertisement_url = "http://www.naplestech.com/shopcart/windows7.asp"; // where you want your visitors to be delivered when they click your ad
var ad_image = "pagecurl-large-win7release.jpg"; // a JPG or SWF file that you want to use as your advertisement. 
var ad_image_small = "pagecurl-small-win7release.jpg"; // optional. Use if you have a second image for when the page curl is closed
if (document.domain=="naplestech.com" || document.domain=="www.naplestech.com" || document.domain=="naplestech.net" || document.domain=="www.naplestech.net"){
	var registrationKey = "722815786793694";
}else if (document.domain=="quadstations.com" || document.domain=="www.quadstations.com"){
	var registrationKey = "891654899764786853";
}else if (document.domain=="i7processors.com" || document.domain=="www.i7processors.com"){
	var registrationKey = "431860743786860883";
}else if (document.domain=="multiplemonitorcomputers.com" || document.domain=="www.multiplemonitorcomputers.com"){
	var registrationKey = "860845793736815779868764815883793883";
}else if (document.domain=="multimonitorcomputers.com" || document.domain=="www.multimonitorcomputers.com"){
	var registrationKey = "860845771823823853743823915779222";
}else if (document.domain=="stocktradingsystem.net" || document.domain=="www.stocktradingsystem.net"){
	var registrationKey = "899743838750708764938899743";
}else if (document.domain=="stocktradingcomputers.com" || document.domain=="www.stocktradingcomputers.com"){
	var registrationKey = "899743838750708764743823915779222";
}else if (document.domain=="globaloffice.us" || document.domain=="www.globaloffice.us"){
	var registrationKey = "750736708764722674";
}else if (document.domain=="naplestechnology.com" || document.domain=="www.naplestechnology.com"){
	var registrationKey = "722815786793694823808845";
}else if (document.domain=="ntioffice.com" || document.domain=="www.ntioffice.com"){
	var registrationKey = "860786701701171";
}else if (document.domain=="naplesteck.com" || document.domain=="www.naplesteck.com"){
	var registrationKey = "722815786793715";
}else if (document.domain=="naplestec.com" || document.domain=="www.naplestec.com"){
	var registrationKey = "722815786793165";
}else if (document.domain=="naplestek.com" || document.domain=="www.naplestek.com"){
	var registrationKey = "722815786793192";
}else if (document.domain=="falcontradingcomputers.com" || document.domain=="www.falcontradingcomputers.com"){
	var registrationKey = "667722823891654779687815883793883";
}else if (document.domain=="quadcards.com" || document.domain=="www.quadcards.com" || document.domain=="quadcards.us" || document.domain=="www.quadcards.us" || document.domain=="quadcards.net" || document.domain=="www.quadcards.net"){
	var registrationKey = "891654647771222";
}else if (document.domain=="quadvideo.net" || document.domain=="www.quadvideo.net"){
	var registrationKey = "891654838680207";
}else if (document.domain=="multiple-display-poker.com" || document.domain=="www.multiple-display-poker.com" || document.domain=="multiple-display-poker.net" || document.domain=="www.multiple-display-poker.net" ){
	var registrationKey = "860845793736354815815801415801779";
}else if (document.domain=="multipledisplaypoker.com" || document.domain=="www.multipledisplaypoker.com" || document.domain=="multipledisplaypoker.net" || document.domain=="www.multipledisplaypoker.net" ){
	var registrationKey = "860845793736708868708915801779";
}else if (document.domain=="digitalsingage.com" || document.domain=="www.digitalsingage.com" || document.domain=="digitalsingage.net" || document.domain=="www.digitalsingage.net" ){
	var registrationKey = "708729764838779674701";
}else if (document.domain=="digitalsings.com" || document.domain=="www.digitalsings.com" || document.domain=="digitalsings.net" || document.domain=="www.digitalsings.net" ){
	var registrationKey = "708729764838779801";
}else if (document.domain=="digitalsignagesources.com" || document.domain=="www.digitalsignagesources.com" || document.domain=="v.net" || document.domain=="www.digitalsignagesources.net" ){
	var registrationKey = "708729764838729722701860899674222";
}

// 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 = ""; // use a .JPG or .SWF as your custom reflection. Leave blank to "reflect" your ad_image.
var hideadshadow = false; // do you want to hide the shadow which appears above your advertisement? true/false
var whichcorner = "upperright"; // options are "upperright" and "upperleft"
var pathtoswf = ""; // 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");
}

v_hideadshadow = hideadshadow ? 1 : 0;
v_usereflection = usereflection ? 1 : 0;

if (whichcorner == "upperleft"){
var a='<div style="top:0px;left:0px;position:absolute;width:150px;height:160px;z-index:1000000" name="po_pca" id="po_pca"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="150" height="160" id="po_pca_i" align="middle"><param name="flashvars" value="ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + pathtoswf + 'PageCurlProv2_Small_upperleft.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="' + pathtoswf + 'PageCurlProv2_Small_upperleft.swf" flashvars="ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="150" height="160" name="po_pca_i" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>';

var b='<div style="top:-1000px;left:0px;position:absolute;width:700px;height:700px;z-index:1000000" name="po_pcb" id="po_pcb"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="700" id="po_pcb_i" align="middle"><param name="allowScriptAccess" value="always" /><param name="swLiveConnect" value="true"><param name="flashvars" value="openOnStart=true&registrationKey=' + registrationKey + '&url=' + enc(advertisement_url) + '&ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&target=' + target + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '"><param name="movie" value="' + pathtoswf + 'PageCurlProv2_upperleft.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="' + pathtoswf + 'PageCurlProv2_upperleft.swf" quality="high" flashvars="openOnStart=true&registrationKey=' + registrationKey + '&url=' + enc(advertisement_url) + '&ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&target=' + target + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '" swLiveConnect="true" wmode="transparent" bgcolor="#ffffff" width="700" height="700" name="po_pcb_i" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>';
}else{
var a='<div style="top:0px;right:0px;position:absolute;width:150px;height:160px;z-index:1000000" name="po_pca" id="po_pca"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="150" height="160" id="po_pca_i" align="middle"><param name="flashvars" value="ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + pathtoswf + 'PageCurlProv2_Small.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="' + pathtoswf + 'PageCurlProv2_Small.swf" flashvars="ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '" quality="high" wmode="transparent" bgcolor="#ffffff" width="150" height="160" name="po_pca_i" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>';

var b='<div style="top:-1000px;right:0px;position:absolute;width:700px;height:700px;z-index:1000000" name="po_pcb" id="po_pcb"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="700" id="po_pcb_i" align="middle"><param name="allowScriptAccess" value="always" /><param name="swLiveConnect" value="true"><param name="flashvars" value="openOnStart=true&registrationKey=' + registrationKey + '&url=' + enc(advertisement_url) + '&ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&target=' + target + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '"><param name="movie" value="' + pathtoswf + 'PageCurlProv2.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="' + pathtoswf + 'PageCurlProv2.swf" quality="high" flashvars="openOnStart=true&registrationKey=' + registrationKey + '&url=' + enc(advertisement_url) + '&ad_image=' + ad_image + '&ad_image_small=' + ad_image_small + '&target=' + target + '&tabsize=' + tabsize + '&usereflection=' + v_usereflection + '&hideadshadow=' + v_hideadshadow + '&customreflection=' + customreflection + '" swLiveConnect="true" wmode="transparent" bgcolor="#ffffff" width="700" height="700" name="po_pcb_i" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object></div>';
}
document.write(a);
document.write(b);