/*
This file is for validating Trusted Web Payment Software merchants

It produces a trusted badge graphic which, when clicked, opens a pop-up window with a URL of:
https://secure.web-payment-software.com/trust/ABCDEFGHIJKLMNOPQRSTUVWXYZ123456/www.example.com/TZ-4

where the ABCDEFGHIJKLMNOPQRSTUVWXYZ123456 part of the path represents the merchant's 32 character
trust_id and www.example.com represents the host name on which the script is deployed, which must
match the trust_id. TZ-4 means the client's time zone is 4 hours behind UTC.

This script is deployed thusly:
<script type="text/javascript" language="javascript">
	var WPS_trust_id="ABCDEFGHIJKLMNOPQRSTUVWXYZ123456"; // Required!
	var WPS_image = 'trusted-90x78-dark.gif'; // Optional image with darker matte
	var WPS_image_width = '90';
	var WPS_image_height = '78';
</script>
<script type="text/javascript" language="javascript" src="//secure.web-payment-software.com/trust.js" ></script>

Optionally, some additional parameters may be set to control appearance, debugging, clickability:
<script type="text/javascript" language="javascript">
	var WPS_trust_id="ABCDEFGHIJKLMNOPQRSTUVWXYZ123456"; // Required!
	var WPS_text_color="red";
	var WPS_text_size="10px";
	var WPS_display_location=false;
	var WPS_no_click=false;
	var WPS_debug=false;
</script>

(c) 2010 Mountain Media (tm)
*/

var WPS_trust_url="//secure.web-payment-software.com/";if(window.WPS_image===undefined){var WPS_image="trusted-90x78-white.gif";}
if(window.WPS_image_width===undefined){var WPS_image_width="90";}
if(window.WPS_image_height===undefined){var WPS_image_height="78";}
var WPSBadge={url:WPS_trust_url+'trust/',badge_img_file:(WPS_trust_url+"img/"+WPS_image),badge_width:WPS_image_width,badge_height:WPS_image_height,badge_alt_text:"Web Payment Software Merchant - Click to Verify",display_url:"http://www.web-payment-software.com/",text_color:(window.WPS_text_color?window.WPS_text_color:"black"),text_size:(window.WPS_text_size?window.WPS_text_size:"9px"),line_spacing:"10px",new_window_height:"400",new_window_width:"615",current_url:"",display_location:(window.WPS_display_location===undefined?true:window.WPS_display_location),no_click:(window.WPS_no_click===undefined?false:window.WPS_no_click),debug:(window.WPS_debug===undefined?false:window.WPS_debug)};document.writeln('<style type="text/css">');document.writeln('div.WPSBadge{text-align:center;margin:0;padding:0;width:'+WPSBadge.badge_width+'px;font:normal '+WPSBadge.text_size+' arial,helvetica,san-serif;line-height:'+WPSBadge.line_spacing+';}');document.writeln('div.WPSBadge a{text-decoration:none;color:'+WPSBadge.text_color+';}');document.writeln('div.WPSBadge a:visited{color:'+WPSBadge.text_color+';}');document.writeln('div.WPSBadge a:active{color:'+WPSBadge.text_color+';}');document.writeln('div.WPSBadge a:hover{text-decoration:underline;color:'+WPSBadge.text_color+';}');document.writeln('div.WPSBadge a img{border:0px;margin:0px;text-decoration:none;}');document.writeln('</style>');if(window.WPS_trust_id){WPSBadge.url+=escape(window.WPS_trust_id)+'/';if(window.location.href){WPSBadge.current_url=window.location.href;}else if(document.URL){WPSBadge.current_url=document.URL;}
if(WPSBadge.current_url){WPSBadge.current_url=WPSBadge.current_url.replace(/^https?:\/\//i,'');WPSBadge.current_url=WPSBadge.current_url.replace(/\/.*$/i,'');WPSBadge.url+=escape(WPSBadge.current_url);var d=new Date();if(d){var gmtHours=-d.getTimezoneOffset()/60;if(gmtHours){WPSBadge.url+='/'+escape('UTC'+gmtHours);}}}
if(!WPSBadge.no_click){document.write('<a ');document.write('href="'+WPSBadge.url+'" ');if(!WPSBadge.debug){document.write('onMouseOver="window.status=\''+WPSBadge.display_url+'\'; return true;" ');document.write('onMouseOut="window.status=\'\'; return true;" ');document.write('onClick="window.open(\''+WPSBadge.url+'\',\'VerifyWebPaymentSoftware\',\'');document.write('width='+WPSBadge.new_window_width);document.write(',height='+WPSBadge.new_window_height);document.write(',dependent=yes,resizable=yes,scrollbars=yes');document.write(',menubar=no,toolbar=no,status=no,directories=no');if(WPSBadge.display_location){document.write(',location=yes');}
document.write('\'); return false;" ');}
document.write('target="_blank"');document.writeln('>');}
document.writeln('<img src="'+WPSBadge.badge_img_file+'" width="'+WPSBadge.badge_width+'" height="'+WPSBadge.badge_height+'" border="0" alt="'+WPSBadge.badge_alt_text+'">');if(!WPSBadge.no_click){document.writeln('</a>');}}
