var i = Math.round(300*Math.random()); 
if (i <= 50){ 
ad_image = "/pagecurl/image4.jpg"; 
advertisement_url = "http://www.cartpartsplus.com/"; 
}else if (i < 100){ 
ad_image = "/pagecurl/image5.jpg"; 
advertisement_url = "http://coast2coastcarts.com/"; 
}else if (i < 150){ 
ad_image = "/pagecurl/image3.jpg"; 
advertisement_url = "http://ec-custom-carts.com"; 
}else if (i < 250){ 
ad_image = "/pagecurl/evc.jpg"; 
advertisement_url = "http://www.everythingcarts.com";
}else if (i < 300){ 
ad_image = "/pagecurl/2.jpg"; 
advertisement_url = "http://www.3rsalesandservice.com"; 
}else{ 
ad_image = "/pagecurl/evc.jpg"; 
advertisement_url = "http://www.everythingcarts.com"; 
}

var registrationKey = "779715715801823815764168"; // your v2 registration key

var target = "_new"; // make "_new" if you want the links to open in a new browser window

var pathtoswf = "/pagecurl/"; // absolute path to .swf files. Leave blank if same directory as .html file -- e.g.:   /images/swf/



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");

}



var a='<div style="top:0px;right:0px;position:absolute;width:150px;height:160px;" name="po_pca" id="po_pca" onmouseover="showBig();"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://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 + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf + '"><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 + '&registrationKey=' + registrationKey + '&pathtoswf=' + pathtoswf +'" 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;" name="po_pcb" id="po_pcb"  onmouseover="showBig();"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://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 + '&target=' + target + '"><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 + '&target=' + target + '" 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);