//
// ChristianityToday.com JavaScript
// Version 1.1
// Copyright © 2006 Christianity Today International
//

// variables
	// user-agent identity
	var version = parseInt(navigator.appVersion);
	var isNS  = (navigator.appName.indexOf('Netscape') >= 0);
	var isNS4 = (isNS && version == 4);
	var isNS5 = (isNS && version > 4);
	var isFF  = (navigator.userAgent.indexOf('Firefox') >= 0);
	var isIE  = !isNS;
	var isIE4 = (isIE && version == 4);
	var isIE5 = (isIE && version > 4);
	var isMac = (navigator.appVersion.indexOf('Macintosh') >= 0);
	var isWin = !isMac;
	var isAOL = (navigator.userAgent.indexOf('AOL') >= 0);

	// Flash detection; minimum: version 4.0
	var flashVersion = 0;
	for (var i = 4; i <= 10; i++)
	{
		if (isIE)
		{
			document.write('<script language="VBScript" type="text/vbscript">\n');
			document.write('On Error Resume Next\n');
			document.write('CreateObject("ShockwaveFlash.ShockwaveFlash." & i)\n');
			document.write('If Err = 0 Then\n');
			document.write('flashVersion = i\n');
			document.write('End If\n');
			document.write('</script>\n');
		}
		else
		{
			var plugin = navigator.mimeTypes['application/x-shockwave-flash'].enabledPlugin;
			if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf('.') - 1)) >= i)
			{
				flashVersion = i;
			}
		}
	}

	// events
	var clickURL;
	var mouseX = 0;
	var mouseY = 0;
	var pageWidth = 0;
	var pageHeight = 0;
	
	// settings
	var menuDelay = 100;
	var allowFrame = true;
	var menuDivArray = new Array('globalMenu', 'channelMenu');

	// page tools
	var windowArray = new Array();
	var pageURL = (window != top) ? document.referrer : location.href;
	var emailURL = 'email.html?title=%%title%%&url=%%url%%';
	var printURL = '/print.html?id=%%id%%';
	var similarURL = '/search.html?similar=%%url%%';
	var contextStyles =
	[
		['intro', 'cite', 'ital-off'],
		['bio', 'cite', 'ital-off']
	];

// cookie management
	function readCookie(name)
	{
		var cookieArray = document.cookie.split('; ');
		for (var i = 0; i < cookieArray.length; i++)
		{
			var nameValueArray = cookieArray[i].split('=', 2);
			if (nameValueArray[0] == name) return(nameValueArray[1]);
		}
		return(null);
	}

	function writeCookie(name, value, expires)
	{
		if (expires)
		{
			document.cookie = name + '=' + value + '; expires=' + expires.toGMTString();
		}
		else
		{
			document.cookie = name + '=' + value;
		}
	}
	
// query extraction
	function getQueryVariable(name)
	{
		var query = window.location.search.substring(1);
		var vars = query.split('&');
		for (var i = 0; i < vars.length; i++)
		{
			var pair = vars[i].split('=');
			if (pair[0] == name)
			{
				return pair[1];
			}
		}
		return null;
	}

// event capturing
	if (isNS4)
	{
		window.captureEvents(Event.ONLOAD);
		window.onLoad = pageLoad;
		window.captureEvents(Event.ONUNLOAD);
		window.onUnload = pageUnload;
		document.captureEvents(Event.CLICK);
		document.onClick = mouseClick;
		document.captureEvents(Event.MOUSEMOVE);
		document.onMouseMove = mouseMove;
	}

	if (isNS5)
	{
		window.addEventListener('load', pageLoad, false);
		window.addEventListener('unload', pageUnload, false);
		document.addEventListener('click', mouseClick, false);
		document.addEventListener('mousemove', mouseMove, false);
	}

	if (isIE)
	{
		window.attachEvent('onload', pageLoad);
		window.attachEvent('onunload', pageUnload);
		document.attachEvent('onclick', mouseClick);
		document.attachEvent('onmousemove', mouseMove);
	}

// event handlers
	function pageLoad(evt)
	{
		// frame break
		if (window != top && allowFrame != true) top.location.replace(location.href);

		// create menu divs
		createMenuDivs();

		// display hover
		if (window.showPromo) showPromo();

		// set contextual styles
		setContextStyles();

		if (window.channelLoad) channelLoad();
	}

	function pageUnload(evt)
	{
		// close child windows
		for (var i = 0; i < windowArray.length; i++)
		{
			if (typeof windowArray[i] == 'object' && !windowArray[i].closed) windowArray[i].close();
		}

		if (window.channelUnload) channelUnload();
	}

	function mouseOver(evt)
	{
		obj = (evt.target) ? evt.target : evt.srcElement;
		if (obj.over) obj.src = obj.over.src;
		if (obj.tip) showTip(obj);
		if (obj.menu) showMenu(obj, evt);
	}

	function mouseOut(evt)
	{
		obj = (evt.target) ? evt.target : evt.srcElement;
		if (obj.out) obj.src = obj.out.src;
		if (obj.tip) hideTip(obj);
		if (obj.menu) delayHideMenu();
	}

	function mouseClick(evt)
	{
		if (isNS4)
		{
			clickURL = evt.target.href;
		}
		else if (isNS5)
		{
			node = evt.target;
			while (node.tagName != 'A' && node.tagName != 'HTML')
			{
				node = node.parentNode;
			}
			clickURL = node.href;
		}
		else if (isIE)
		{
			element = evt.srcElement;
			while (element.tagName != 'A' && element.tagName != 'HTML')
			{
				element = element.parentElement;
			}
			clickURL = element.href;
		}

		if (clickURL == null) clickURL = '';
	}

	function mouseMove(evt)
	{
		if (isNS)
		{
			mouseX = evt.pageX;
			mouseY = evt.pageY;
			pageWidth = window.innerWidth;
			pageHeight = window.innerHeight;
		}
		else
		{
			mouseX = evt.clientX;
			mouseY = evt.clientY + document.body.scrollTop;
			
			if (document.compatMode && document.compatMode == 'CSS1Compat')
			{
				pageWidth = document.body.parentNode.clientWidth;
				pageHeight = document.body.parentNode.clientHeight;
			}
			else
			{
				pageWidth = document.body.clientWidth;
				pageHeight = document.body.clientHeight;
			}
		}
		
		if (tipVisible)
		{
			moveTip();
		}
	}

	function addMouseEvents(obj)
	{
		if (isNS5)
		{
			obj.addEventListener('mouseover', mouseOver, false);
			obj.addEventListener('mouseout', mouseOut, false);
		}
		if (isIE)
		{
			obj.detachEvent('onmouseover', mouseOver);
			obj.attachEvent('onmouseover', mouseOver);
			obj.detachEvent('onmouseout', mouseOut);
			obj.attachEvent('onmouseout', mouseOut);
		}
	}

// mouseovers; incompatible with NS4
	//
	// Usage:
	// <a href="LINK"><img src="IMAGE.EXT" onload="mouseLoad(this);" width="WIDTH" height="HEIGHT" title="ALT" /></a>
	// 
	// Note: mouseover image must be named IMAGE_over.EXT
	//
	function mouseLoad(obj)
	{
		if (isNS4 || obj.out) return;
		
		obj.out = new Image();
		obj.out.src = obj.src;
		obj.over = new Image();
		obj.over.src = obj.src.replace(/.gif$/, '_over.gif').replace(/.jpg$/, '_over.jpg');
		
		addMouseEvents(obj);
	}

// dropdown menu
	//
	// Usage:
	// <img src="IMAGE.EXT" onload="menuLoad(this, 'MENU_NAME', 'WIDTH', 'LEFT|RIGHT');" width="WIDTH" height="HEIGHT" title="ALT" />
	//
	// Note: create menu items in a separate JavaScript file
	//
	
	var menu = new Array();
	var menuTimeout;

	function createMenuDivs()
	{
		if (!isNS4)
		{
			for (var i = 0; i < menuDivArray.length; i++)
			{
				var newDiv = document.createElement('div');
				newDiv.setAttribute('id', menuDivArray[i]);
				newDiv.setAttribute('style', 'display: none; width: 0px;');
				if (isNS5)
				{
					newDiv.addEventListener('mouseover', clearHideMenu, false);
					newDiv.addEventListener('mouseout', delayHideMenu, false);
				}
				if (isIE)
				{
					newDiv.attachEvent('onmouseover', clearHideMenu);
					newDiv.attachEvent('onmouseout', delayHideMenu);
				}
				document.body.appendChild(newDiv);
			}
		}
	}

	function menuLoad(obj, name, width, align)
	{
		if (isNS4 || obj.menu) return;

		obj.menu = menu[name];
		obj.menuName = name;
		obj.menuWidth = width;
		obj.menuAlign = align;
		
		addMouseEvents(obj);
	}
	
	function showMenu(obj, evt)
	{
		var menuObject;
		if (isNS4 || ! obj.menu) return;

		if (window.event)
		{
			event.cancelBubble = true;
		}
		else if (evt.stopPropagation)
		{
			evt.stopPropagation();
		}
		clearHideMenu();

		var menuDiv = 'channelMenu';
		if (obj.menuName.indexOf('global_') == 0)
		{
			menuDiv = 'globalMenu';
		}
	  
		menuObject = document.getElementById ? document.getElementById(menuDiv) : document.all[menuDiv];
		
		if (menuObject)
		{
			menuObject.innerHTML = obj.menu.join('');

			menuObject.style.width = obj.menuWidth + 'px';
			if (evt.type == 'click' && obj.visibility == hidden || evt.type == 'mouseover')
			{
				menuObject.style.display = 'block';
			}
			else if (evt.type == 'click')
			{
				menuObject.style.display = 'none';
			}
	
			var horizontalOffset;
			var verticalOffset;
			if (obj.menuAlign == 'right')
			{
				horizontalOffset = obj.offsetLeft + obj.offsetWidth;
			}
			else
			{
				horizontalOffset = obj.offsetLeft;
			}
			verticalOffset = obj.offsetTop + obj.offsetHeight;
			
			var parentElement = obj.offsetParent;
			while (parentElement != null)
			{
				horizontalOffset = horizontalOffset + parentElement.offsetLeft;
				verticalOffset = verticalOffset + parentElement.offsetTop;
				parentElement = parentElement.offsetParent;
			}
			if (obj.menuAlign == 'right')
			{
				menuObject.x = horizontalOffset - obj.menuWidth;
			}
			else
			{
				menuObject.x = horizontalOffset;
			}
			menuObject.y = verticalOffset;
			menuObject.style.left = menuObject.x;
			menuObject.style.top = menuObject.y;
		}
	}

	function delayHideMenu()
	{
		if (isNS4) return;

		menuTimeout = setTimeout('hideMenu()', menuDelay);
	}

	function hideMenu()
	{
		if (isNS4) return;

		var menuObject;

		for (var i = 0; i < menuDivArray.length; i++)
		{
			menuObject = document.getElementById ? document.getElementById(menuDivArray[i]) : document.all[menuDivArray[i]];
			if (menuObject)
			{
				menuObject.style.display = 'none';
			}
		}
	}

	function clearHideMenu()
	{
		if (typeof menuTimeout != 'undefined') clearTimeout(menuTimeout);
	}

	document.onclick = hideMenu;

// help tips
	//
	// Usage:
	// <img src="IMAGE.EXT" onload="tipLoad(this, 'MESSAGE', 'LEFT|RIGHT', WIDTH, OFFSET);" width="WIDTH" height="HEIGHT" title="ALT" />
	// <a href="LINK" onmouseover="showTip(this, 'MESSAGE', 'LEFT|RIGHT', WIDTH, OFFSET);" />
	//		the ALIGN, WIDTH, and OFFSET can be left out and they will be set to default values
	//		if ALIGN is right, the OFFSET should be set to ensure proper positioning
	//
	var tipVisible = false;
	
	function tipLoad(obj, message, align, width, offset)
	{
		if (isNS4) return;
		
		if (! obj.tip)
		{
			obj.tip = message;
			if (align == null)
			{
				align = 'left';
			}
			obj.tipAlign = align;
			if (width == null)
			{
				width = 200;
			}					
			obj.tipWidth = width;
			if (offset == null)
			{
				offset = 210;
			}	
			obj.tipRightOffset = offset;
			addMouseEvents(obj);
			if (obj.nodeName == "A")
			{
				showTip(obj);
			}
		}
	}
	
	function showTip(obj)
	{
		if (isNS4) return;

		tipVisible = true;
		
		var tipDiv = document.getElementById('tip');
		
		if (!tipDiv)
		{
			tipDiv = document.createElement('div');
			tipDiv.setAttribute('id', 'tip');
			document.body.appendChild(tipDiv);
		}

		if (tipDiv)
		{
			tipDiv.innerHTML = obj.tip;
			moveTip();
			tipDiv.style.width = obj.tipWidth + 'px';
			tipDiv.style.visibility = 'visible';
		}
	}

	function hideTip()
	{
		if (isNS4) return;

		tipVisible = false;

		var tipDiv = document.getElementById('tip');

		if (tipDiv)
		{
			tipDiv.style.visibility = 'hidden';
		}
	}
	
	function moveTip()
	{
		var tipDiv = document.getElementById('tip');	
		if (tipDiv)
		{
			if(obj.tipAlign == 'left')
			{	
				var tipX = (((mouseX) > pageWidth) ? (pageWidth) : mouseX) + 10;
			} else {
				var tipX = (((mouseX) > pageWidth) ? (pageWidth) : mouseX) - obj.tipRightOffset;
			}
			var tipY = mouseY + 25;
			
			if (isNS4)
			{
				tipDiv.left = tipX;
				tipDiv.top = tipY;
			}
			else
			{
				tipDiv.style.left = tipX;
				tipDiv.style.top = tipY;
			}
		}
	}

// page tools
	//
	// email this page
	// Usage:
	// <a href="javascript:emailPage();">LINK</a>
	//
	function emailPage(url)
	{
		if (url != null)
		{
			windowArray[windowArray.length] = window.open(url);
		}
		else
		{			
			thisURL = emailURL.replace('%%title%%', escape(document.title)).replace('%%url%%', escape(pageURL));
			windowArray[windowArray.length] = window.open(thisURL, 'emailWindow', 'width=520,height=350,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0');
		}
	}

	//
	// print this page
	// Usage:
	// <a href="javascript:printPage(ID);">LINK</a>
	//
	function printPage(id)
	{
		windowArray[windowArray.length] = window.open(printURL.replace('%%id%%', id), 'printWindow', 'width=800,height=400,toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1');
	}
	
	//
	// print this page
	// Usage:
	// <a href="#" onclick="printPageSection('printpagesection'); return false;">LINK</a>
	//	
	function printPageSection(obj) 
	{
			newwin = window.open('');
		//newwin.document.write(document.getElementById(obj).innerHTML);
		//newwin.document.createStyleSheet('/myaccount/inc/global.css.css');
		//newwin.document.createStyleSheet('/myaccount/inc/channel.css');		
			newwin.document.write('<html>\n');
			newwin.document.write('<head>\n');
			newwin.document.write('<title>Printing...</title>\n');
			newwin.document.write('<link href="/myaccount/inc/global.css" rel="stylesheet" type="text/css" />\n')
			newwin.document.write('<link href="/myaccount/inc/channel.css" rel="stylesheet" type="text/css" />\n')
			newwin.document.write('</head>\n')
			newwin.document.write('<body style="background-color: #fff;">\n');
			newwin.document.write(document.getElementById(obj).innerHTML);
			newwin.document.write('</body>\n');
			newwin.document.write('</html>');			
			newwin.print();
	}
				
	//
	// bookmark this page (compatible with IE only)
	// Usage:
	// <a href="javascript:bookmarkPage();">LINK</a>
	//
	function bookmarkPage()
	{
		if (isMac || isAOL)
		{
			alert('Sorry, this feature is not supported by your browser.');
			return;
		}

		if (!isNS)
		{
			window.external.AddFavorite(this.location.href, document.title);
		}
		else
		{
			alert('Click "OK", then type CTRL-D to add this page to your list of bookmarks.');
		}
	}
	
	//
	// set as homepage (compatible with IE only)
	// Usage:
	// <a href="javascript:setHomepage();">LINK</a>
	//
	function setHomepage()
	{
		if (!isIE || isAOL)
		{
			alert('Sorry, this feature is not supported by your browser.');
			return;
		}
	
		document.body.style.behavior = 'url(#default#homePage)';
		document.body.setHomePage(pageURL);
	}

	//
	// find similar pages
	// Usage:
	// <a href="javascript:findSimilar();">LINK</a>
	//
	function findSimilar()
	{
		top.location.href = similarURL.replace('%%url%%', pageURL);
	}

	//
	// adjust font size (incompatible with NS4)
	// Usage:
	// <a href="javascript:fontSize(-1|+1);">LINK</a>
	//
	function fontSize(amt)
	{
		if (isNS4)
		{
			alert('Sorry, this feature is not supported by your browser.');
			return;
		}

		if (amt == 1)
		{
			
		}
		else if (amt == -1)
		{
			
		}
	}

	//
	// toggle highlighting (incompatible with NS4)
	// Usage:
	// <a href="javascript:toggleHighlight();">LINK</a>
	//
	function toggleHighlight()
	{
		if (isNS4)
		{
			alert('Sorry, this feature is not supported by your browser.');
			return;
		}

		var elementList = document.getElementsByTagName('*');
		for (i = 0; i < elementList.length; i++)
		{
			elementList[i].className = (elementList[i].className == 'highlight') ? 'highlight_disabled' : 'highlight';
		}
		writeCookie('highlight', ((readCookie('highlight') != 'false') ? 'false' : 'true'));
	}

// page load routines
	// set contextual styles (incompatible with NS4)
	function setContextStyles()
	{
		if (isNS4) return;

		var elementList = document.getElementsByTagName('*');
		for (i = 0; i < elementList.length; i++)
		{
			for (j = 0; j < contextStyles.length; j++)
			{
				if (elementList[i].className == contextStyles[j][0])
				{
					currentNode = elementList[i].firstChild;
					while (currentNode)
					{
						if (currentNode.className == contextStyles[j][1])
						{
							switch (contextStyles[j][2])
							{
						case 'ital-off':
									currentNode.style.fontStyle = 'normal';
									break;
						case 'ital-on':
									currentNode.style.fontStyle = 'italic';
									break;
						case 'bold-off':
									currentNode.style.fontWeight = 'normal';
									break;
						case 'bold-on':
									currentNode.style.fontWeight = 'bold';
									break;
								default:
									break;
							}
						}
						currentNode = currentNode.nextSibling;
					}
				}
			}
		}
	}

// global dropdown menus
	// MEMBERSHIPS menu
	menu['global_memberships'] = new Array();
	menu['global_memberships'][0] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.buildingchurchleaders.com/">Building Church Leaders</a>';
	menu['global_memberships'][1] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianleadershipalliance.com/">Christian Leadership Alliance</a>';
	menu['global_memberships'][2] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.ctlibrary.com/">Christianity Today Library</a>';
	menu['global_memberships'][3] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.preachingtoday.com/">Preaching Today</a>';
	menu['global_memberships'][4] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.reducingtherisk.com/">Reducing the Risk</a>';
	menu['global_memberships'][5] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.smallgroups.com/">Small Groups</a>';
	
	// CTPLUS STORES menu
	menu['global_stores'] = new Array();
	menu['global_stores'][0] = '<a href="http://store.yahoo.com/cgi-bin/clink?biblestudies+URLhWF+index.html">Bible Studies</a>';
	menu['global_stores'][1] = '<a href="http://www.christianbook.com/html/static/home_page.html?p=1029826">Books</a>';
	menu['global_stores'][2] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.buildingchurchleaders.com/">Building Church Leaders</a>';
	menu['global_stores'][3] = '<a href="http://store.yahoo.com/cgi-bin/clink?ctclassifieds+WjDUxz+index.html">Classifieds</a>';
	menu['global_stores'][4] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.faithvisuals.com/">Faith Visuals</a>';
	menu['global_stores'][5] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/free/features/magazines.html">Magazines</a>';
	menu['global_stores'][6] = '<a href="http://store.yahoo.com/cgi-bin/clink?yhst-17370374580338+2Pv8j7+index.html">Movie Discussion Guides</a>';
	menu['global_stores'][7] = '<a href="http://www.christianbook.com/html/static/music.html?p=1029826">Music</a>';
	menu['global_stores'][8] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.preachingtoday.com/">Preaching Today</a>';
	menu['global_stores'][9] = '<a href="http://www.christianbook.com/html/specialty/1007.html?p=1029826">Video/DVD</a>';

	// MAGAZINES menu
	menu['global_magazines'] = new Array();
	menu['global_magazines'][0] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/ct/">Christianity Today</a>';
	menu['global_magazines'][1] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/books/">Books &amp; Culture</a>';
	menu['global_magazines'][2] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/history/">Christian History &amp; Biography</a>';
	menu['global_magazines'][3] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.ctlibrary.com/">Christianity Today Library</a>';
	menu['global_magazines'][4] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/lawandtax/">Church Law &amp; Tax Report</a>';
	menu['global_magazines'][5] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.churchlawtoday.com/ctainfo.php">Church Finance Today</a>';
	menu['global_magazines'][6] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/teens/">Ignite Your Faith</a>';
	menu['global_magazines'][7] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/leaders/">Leadership</a>';
	menu['global_magazines'][8] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/marriage/">Marriage Partnership</a>';
	menu['global_magazines'][9] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/men/">Men of Integrity</a>';
	menu['global_magazines'][10] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/parenting/">MOMSense</a>';
	menu['global_magazines'][11] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/todayschristian/">Today&#39;s Christian</a>';
	menu['global_magazines'][12] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/tcw/">Today&#39;s Christian Woman</a>';
	menu['global_magazines'][13] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/cbg/">Your Church</a>';
	menu['global_magazines'][14] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/free/features/magazines.html">Subscribe</a>';
	menu['global_magazines'][15] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/help/features/contact.html#mag">Customer Care</a>';
	menu['global_magazines'][16] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.cti-advertising.com/">Advertise with Us</a>';

	// FREE menu
	menu['global_free'] = new Array();
	menu['global_free'][0] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/free/features/magazines.html">Magazines</a>';
	menu['global_free'][1] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.PreachingTodayAudio.com/free.html">Audio Sermons</a>';
	menu['global_free'][2] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://store.yahoo.com/biblestudies/freesamples.html">Bible Studies</a>';
	menu['global_free'][3] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/ecards/">E-cards</a>';
	menu['global_free'][4] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://buildingchurchleaders.com/store/freesamples.html">Leader Training</a>';
	menu['global_free'][5] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/free/features/newsletters.html">Newsletters</a>';
	menu['global_free'][6] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.christianitytoday.com/help/features/rss.html">RSS Feeds</a>';
	menu['global_free'][7] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.preachingtoday.com/illustrations/search.html?type=keyword&query=&filterid=6198">Sermon Illustrations</a>';
	menu['global_free'][8] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://www.preachingtoday.com/sermons/">Sermons</a>';
	menu['global_free'][9] = '<a href="http://www.christianitytoday.com/dispatch.html?code=navigation&url=http://faithvisuals.com/content/freevideo.html">Video Clips</a>';
