<!--
function pid(pid){
	
	var p = pid;
	var r = "&r=NoReferrer";
	if(document.referrer){
		var r = '&r='+ urlencode (document.referrer);	
	}
	
	object = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="1" height="1" id="shared1" align="middle">';
	url = '<param name="movie" value="http://dooddy.com/optimizer/vid.swf?pid='+p+r+'" />';
	param1 ='<param name="allowScriptAccess" value="always" />';
	param2 ='<param name="allowFullScreen" value="false" />';
	param3 ='<param name="quality" value="high" />';
	param4 ='<param name="wmode" value="transparent" />';
	object2 ='</object>';
	embed = '<embed src="http://dooddy.com/optimizer/vid.swf?pid='+p+r+'" width="1" height="1" quality="high" allowscriptaccess="true" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" name="shared1"></embed>';

	document.write(object);
	document.write(url);
	document.write(param1);
	document.write(param2);
	document.write(param3);
	document.write(param4);	
	document.write(embed);
	document.write(object2);
	
}
function urlencode (str) {
    //this function expects to encode into UTF-8 encoded strings, as found on pages served as UTF-8
    str = (str+'').toString();  
    // Tilde should be allowed unescaped in future versions of PHP (as reflected below), but if you want to reflect current
    // PHP behavior, you would need to add ".replace(/~/g, '%7E');" to the following.
    return encodeURIComponent(str).replace(/!/g, '%21').replace(/'/g, '%27').replace(/\(/g, '%28').
                                                                    replace(/\)/g, '%29').replace(/\*/g, '%2A').replace(/%20/g, '+');
}

// -->