/*	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] = 'Subscribe to <em>The Christian Science Monitor</em> weekly edition';
url[0] = 'http://www.csmonitor.com/subscribe/';
/* 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] = 'Watch a video with Editor John Yemma: Who we are, what we stand for';
url[1] = 'http://www.csmonitor.com/aboutus/about_the_monitor.html';
text[2] = 'Subscribe to <em>The Christian Science Monitor</em> weekly edition';
url[2] = 'https://w1.buysub.com/servlet/OrdersGateway?cds_mag_code=CSX&cds_page_id=67239&cds_response_key=I9KCSXWT1';
document.write ('<p style="margin:0; font-size:16px; color: 369; font-family:Arial, Sans-serif; line-height:1.2em; font-weight:bold;"><a href="' + url[n] + '"style="color:#256EA1;font-family:arial, sans-serif;font-style:normal;">' + text[n] + '</a></p>');