 
	var anext = new Array();
	var rnext = new Array();
	function next_obj(article_id,title,link,date){
		 this.article_id=article_id;
		this.link=link;
		 this.title=title;
		 this.date=date;
	}
	
	function get_next_article_link_embedded(jsID,jsType) {
				var nextList = anext;
		var nextString = '';
		if (jsType=="review") {
			nextList = rnext;
			if (nextList[jsID] == null) {
				nextList = anext;
			}
		}  
		

		if (nextList[jsID] != null) {
			var obj = nextList[jsID];
		
			var link = obj.link;
			var title= obj.title;

			var nextString = '<a href="' + link +'">'+ title +'</a>'
		
		} 
		return nextString
		
		
	}
	
	function get_next_article_link(jsID,jsType) {
		var nextList = anext;
		var nextString = '';
		var defaultName = 'firstIdanext';
		if (jsType=="review") {
			nextList = rnext;
			defaultName = 'firstIdrnext'
			if (nextList[jsID] == null) {
				nextList = anext;
			}
		}  
		

		if (nextList[jsID] != null) {
			var obj = nextList[jsID];
		} else {
			var did = eval(defaultName);
			var obj = nextList[did];
		}
			var link = obj.link;
			var title= obj.title;

			 
		if (jsType=="review") {	

			var nextString = '<div class="nextreview"><div class="title" title="Next Review">Next Review</div> <div class="link"><a href="' + link +'">'+ title +'</a></div><div style="clear:both;"></div></div>'; 
	 	} 
		if (jsType=="article") {	

			var nextString = '<div class="nextarticle"><div class="title" title="Next Article">Next Article</div> <div class="link"><a href="' + link +'">'+ title +'</a></div><div style="clear:both;"></div></div>'; 
	 	} 
	
	 return nextString
	}
	

var anext = new Array();
		var firstIdanext = '20315882';
		 anext["20315882"] = new next_obj('20315769','TV on DVD: Now in stores','/ew/article/0,,20315769,00.html','10/27/2009 05:40PM');
		 anext["20315769"] = new next_obj('20315444','Battlestar Galactica: The Plan','/ew/article/0,,20315444,00.html','10/26/2009 03:00PM');
		 anext["20315444"] = new next_obj('20314443','Orphan','/ew/article/0,,20314443,00.html','10/21/2009 11:00AM');
		 anext["20314443"] = new next_obj('20314442','Il Divo','/ew/article/0,,20314442,00.html','10/21/2009 11:00AM');
		 anext["20314442"] = new next_obj('20314441','Z','/ew/article/0,,20314441,00.html','10/21/2009 11:00AM');
		 anext["20314441"] = new next_obj('20314384','John Cleese shills for \'Fawlty Towers\'','/ew/article/0,,20314384,00.html','10/20/2009 10:00PM');
		 anext["20314384"] = new next_obj('20312208','Whatever Works','/ew/article/0,,20312208,00.html','10/14/2009 12:00PM');
		 anext["20312208"] = new next_obj('20311910','It\'s Garry Shandling\'s Show','/ew/article/0,,20311910,00.html','10/13/2009 12:00PM');
		 anext["20311910"] = new next_obj('20310790','Drag Me to Hell','/ew/article/0,,20310790,00.html','10/07/2009 12:00PM');
		 anext["20310790"] = new next_obj('20310788','Audition','/ew/article/0,,20310788,00.html','10/07/2009 12:00PM');
		 anext["20310788"] = new next_obj('20310785','The Proposal','/ew/article/0,,20310785,00.html','10/07/2009 12:00PM');
		 anext["20310785"] = new next_obj('20310724','TV on DVD: Now in stores','/ew/article/0,,20310724,00.html','10/06/2009 11:00PM');
		 anext["20310724"] = new next_obj('20310553','Jackass: The Lost Tapes','/ew/article/0,,20310553,00.html','10/06/2009 03:00PM');
		 anext["20310553"] = new next_obj('20309057','The Mary Tyler Moore Show: The Complete Fifth Season','/ew/article/0,,20309057,00.html','09/29/2009 05:00PM');
		 anext["20309057"] = new next_obj('20309056','Ally McBeal: The Complete Series','/ew/article/0,,20309056,00.html','09/29/2009 05:00PM');
		 anext["20309056"] = new next_obj('20308269','The new season of \'Dexter\' leads the Must List','/ew/article/0,,20308269,00.html','09/25/2009 03:00PM');
		 anext["20308269"] = new next_obj('20308226','Must List: Week of September 27, 2009','/ew/article/0,,20308226,00.html','09/25/2009 10:00AM');
		 anext["20308226"] = new next_obj('20307926','TV on DVD: Now in stores','/ew/article/0,,20307926,00.html','09/24/2009 04:00PM');
		 anext["20307926"] = new next_obj('20303815','TV on DVD: Now in stores','/ew/article/0,,20303815,00.html','09/10/2009 11:55PM');
		 anext["20303815"] = new next_obj('20301940','Must List: Week of September 6, 2009','/ew/article/0,,20301940,00.html','09/02/2009 11:00AM');
		 anext["20301940"] = new next_obj('20301843','Must List: Week of August 30, 2009','/ew/article/0,,20301843,00.html','09/01/2009 04:00PM');
		 anext["20301843"] = new next_obj('20298567','empty shell','/ew/article/0,,20298567,00.html','08/14/2009 10:00AM');
		 anext["20298567"] = new next_obj('20297701','Must List: Week of August 16, 2009','/ew/article/0,,20297701,00.html','08/13/2009 12:00PM');
		 anext["20297701"] = new next_obj('20296474','Must List: Week of August 9, 2009','/ew/article/0,,20296474,00.html','08/06/2009 04:00PM');
		 anext["20296474"] = new next_obj('20315882','The Taking of Pelham 1 2 3','/ew/article/0,,20315882,00.html','10/28/2009 11:00AM');
		var rnext = new Array();
		var firstIdrnext = '20315882';
		 rnext["20315882"] = new next_obj('20315444','Battlestar Galactica: The Plan','/ew/article/0,,20315444,00.html','10/26/2009 03:00PM');
		 rnext["20315444"] = new next_obj('20314443','Orphan','/ew/article/0,,20314443,00.html','10/21/2009 11:00AM');
		 rnext["20314443"] = new next_obj('20314442','Il Divo','/ew/article/0,,20314442,00.html','10/21/2009 11:00AM');
		 rnext["20314442"] = new next_obj('20314441','Z','/ew/article/0,,20314441,00.html','10/21/2009 11:00AM');
		 rnext["20314441"] = new next_obj('20312208','Whatever Works','/ew/article/0,,20312208,00.html','10/14/2009 12:00PM');
		 rnext["20312208"] = new next_obj('20311910','It\'s Garry Shandling\'s Show','/ew/article/0,,20311910,00.html','10/13/2009 12:00PM');
		 rnext["20311910"] = new next_obj('20310790','Drag Me to Hell','/ew/article/0,,20310790,00.html','10/07/2009 12:00PM');
		 rnext["20310790"] = new next_obj('20310788','Audition','/ew/article/0,,20310788,00.html','10/07/2009 12:00PM');
		 rnext["20310788"] = new next_obj('20310785','The Proposal','/ew/article/0,,20310785,00.html','10/07/2009 12:00PM');
		 rnext["20310785"] = new next_obj('20310553','Jackass: The Lost Tapes','/ew/article/0,,20310553,00.html','10/06/2009 03:00PM');
		 rnext["20310553"] = new next_obj('20309057','The Mary Tyler Moore Show: The Complete Fifth Season','/ew/article/0,,20309057,00.html','09/29/2009 05:00PM');
		 rnext["20309057"] = new next_obj('20309056','Ally McBeal: The Complete Series','/ew/article/0,,20309056,00.html','09/29/2009 05:00PM');
		 rnext["20309056"] = new next_obj('20315882','The Taking of Pelham 1 2 3','/ew/article/0,,20315882,00.html','10/28/2009 11:00AM');
		 








