/*	subscribe.js
	Function to display a rotating subscription ad message at top of story
	JA 11-1-04 */
	
/* Modified 12-22-04 to show only donations link promo   TM */

/* Modified 01-03-05 to subscription promos   TM */
/* Modified 08-29-05 changed codes to reflect top links. Added Paul Bermel idea of 6 weeks instead of 32 issues  KK */
/* Modified 10-16-06 added Monitor Mall ad to the mix AK */
/* Modified 02-06-07 fixed rotation to be 2/3 "subscribe" and 1/3 "mall" AK */
var text = new Array(3), url = new Array(3), n = Math.floor (Math.random()*3);


text[0] = 'Special Offer: Subscribe to the Monitor and get 32 issues RISK-FREE!';
url[0] = 'https://www.csmonitorservices.com/csmonitor/subscription/print_sub.jhtml?I04TT05';
/* text[1] = 'Special Offer: Subscribe to the Monitor and get 6 weeks FREE!';
url[1] = 'https://www.csmonitorservices.com/csmonitor/subscription/print_sub.jhtml?I04TT11';
text[2] = 'Special Offer: Subscribe to the Monitor for just 43 cents an issue.';
url[2] = 'https://www.csmonitorservices.com/csmonitor/subscription/print_sub.jhtml?I04TT08';
text[3] = 'Special Offer: Get 3 months of the Monitor for just $27!';
url[3] = 'https://www.csmonitorservices.com/csmonitor/subscription/print_sub.jhtml?I04TT09'; */
text[1] = 'Special Offer: Subscribe to the Monitor and get 32 issues RISK-FREE!';
url[1] = 'https://www.csmonitorservices.com/csmonitor/subscription/print_sub.jhtml?I04TT05';
text[2] = 'Monitor Mall.  Shop for a cause - support The Christian Science Monitor.';
url[2] = 'http://www.csmonitormall.com/?s=csmonitor&attr=rottext';
document.write ('<a href="' + url[n] + '" style="font-weight:bold; color:#256EA1;">' + text[n] + '</a>');