
	<!-- this page/portion generated by: strweb2-11.websys.aol.com|www.pathfinder.com:80|/ew/promotion/editorial/tout|6073|0~1-~0~0--> 
	
	      

        
	 function random_number(random_limit) {
			today = new Date();
			num = today.getTime();
			num = Math.round(Math.abs(Math.sin(num) * 1000000)) % random_limit;
			return num;
		}
	
		//create a new object to hold the touts
		function tout_obj(picture, picture_width, picture_height, modifier, pre_link, url, link, summary, credit, pos9, pos10, pos11, class_name, ary_pos){
			 this.picture=picture;
			 this.picture_width=picture_width;
			 this.picture_height=picture_height;
			 this.modifier=modifier;
			 this.pre_link=pre_link;
			 this.url=url;
			 this.link=link;
			 this.summary=summary;
			 this.credit=credit;
			 this.pos9=pos9;
			 this.pos10=pos10;
			 this.pos11=pos11;
			 this.class_name=class_name;
			 this.ary_pos=ary_pos;
		}
	
		//create products and store in stock array
		var tout_ary=new Array();
		 
			  tout_ary[0]=new tout_obj("/ew/covergallery/img/1999/apr91999_480.jpg", "80", "103", "", "", "/r0/ew/CrossPromoToutClik/in?/ew/covergallery/index.html", "Entertainment Weekly Cover Gallery", "Every EW cover since the first in 1990", "", "", "/ew/covergallery/index.html", "EW Magazine Cover Gallery", "tout-cross-promo", "1");
			 
			  tout_ary[1]=new tout_obj("/ew/img/page/whattowatch_s.gif", "45", "45", "TV Watch", "", "/r0/ew/CrossPromoToutClik/in?/ew/tvwatch/0,9983,~3~~,00.html", "EW\'s morning-after take on the hottest shows", "<br />· Buffy<br />· West Wing<br />· Survivor<br />· Temptation Island<br />· Enterprise<br />· and more", "", "642 883 561 403 507", "/ew/tvwatch/0,9983,~3~~,00.html", "TV Watch", "tout-cross-promo", "2");
			 
			  tout_ary[2]=new tout_obj("/ew/features/011223/yearend2001/img/hub_shrek.jpg", "96", "112", "Best of 2001", "", "/r0/ew/CrossPromoToutClik/in?/ew/features/011223/yearend2001/bestmovies.html", "10 Best Movies of 2001", "", "", "", "/ew/features/011223/yearend2001/bestmovies.html", "", "tout-cross-promo", "3");
			 
			  tout_ary[3]=new tout_obj("/ew/img/page/crit.gif", "53", "51", "Critical Mass", "", "/r0/ew/CrossPromoToutClik/in?/r0/ew/~1~~?/ew/critmass/index.html", "Grade the Movies", "Been to the movies? Grade them in EW\'s Critcal Mass Movies", "", "638 879 557 399 503", "/r0/ew/~1~~?/ew/critmass/index.html", "Grade Movies", "tout-cross-promo", "4");
			 
			  tout_ary[4]=new tout_obj("/ew/features/011223/yearend2001/img/kidman_s.jpg", "45", "45", "Best of 2001", "", "/r0/ew/CrossPromoToutClik/in?/ew/article/commentary/0,6115,188494~7~0~nicolekidmanis2001s,00.html", "Nicole Kidman is 2001\'s entertainer of the year", "", "Nicole Kidman Photograph by Andrew MacPherson", "563 1151 1161 1906", "188494", "", "tout-cross-promo", "5");
			 
			  tout_ary[5]=new tout_obj("/ew/img/review/010907/maryj_s.jpg", "45", "45", "Best of 2001", "", "/r0/ew/CrossPromoToutClik/in?/ew/features/011223/yearend2001/bestmusic.html", "10 Best Albums", "", "Mary J. Blige: Phil Knott/Camera Press/Retna", "", "/ew/features/011223/yearend2001/bestmusic.html", "", "tout-cross-promo", "6");
			 
			  tout_ary[6]=new tout_obj("/ew/img/daily/631/terminator_s.jpg", "45", "45", "", "", "/r0/ew/CrossPromoToutClik/in?/ew/report/0,6115,190090~1~0~secretsofterminator3,00.html", "The secrets of \'\'Terminator 3\'\'", "What you\'re not supposed to know (yet) about the long-awaited sequel", "Terminator 2: Kobal Collection", "638 1147", "190090", "", "tout-cross-promo", "7");
			 
			  tout_ary[7]=new tout_obj("/ew/bestdvd/football/2001/img/longestyard_cover.jpg", "70", "100", "5 Best DVDs", "", "/r0/ew/CrossPromoToutClik/in?/ew/article/commentary/0,6115,189418~2~0~ewcomcountsdowntop,00.html", "EW.com counts down the top football movies", "", "", "562 1161 1906 2714", "189418", "", "tout-cross-promo", "8");
			 
			  tout_ary[8]=new tout_obj("/ew/img/daily/631/lordrings_s.jpg", "45", "45", "Movie of the Year", "", "/r0/ew/CrossPromoToutClik/in?/ew/report/0,6115,189462~1~0~allaboutlordof,00.html", "All About \'\'The Lord of the Rings\'\'", "Get all of EW\'s coverage", "Lord of the Rings: Pierre Vinet", "638 1147", "189462", "", "tout-cross-promo", "9");
			  function get_random_tout() {
			ary_num=random_number(9);
			tout_html=create_tout_html(ary_num)
			return tout_html;
		}
	
		function create_tout_html (a_tout_num) {
			var spacerDIV = '<div id="vertical-spacer-4pxs">&nbsp;</div>';
			var img="", br='', the_tout_html="";
			if (tout_ary[a_tout_num].picture != "")	{
				img = '<a id="'+tout_ary[a_tout_num].class_name+'-imglink-'+tout_ary[a_tout_num].ary_pos+'" class="toutimglink" href="'+tout_ary[a_tout_num].url+'"><img src="http://a552.g.akamai.net/f/552/606/1d/image.pathfinder.com'+tout_ary[a_tout_num].picture+'" width="'+tout_ary[a_tout_num].picture_width+'" height="'+tout_ary[a_tout_num].picture_height+'" border="0" alt="" align="left" id="'+tout_ary[a_tout_num].class_name+'-img-'+tout_ary[a_tout_num].ary_pos+'" class="toutimg" /></a>';
				if (tout_ary[a_tout_num].picture_width > 60)	{
					img = img + "<br clear=all>"
				}
				
				//br='<br clear="all" />';
			}
			the_tout_html='<div id="'+tout_ary[a_tout_num].class_name+ '-' +tout_ary[a_tout_num].ary_pos+'" class="tout-'+tout_ary[a_tout_num].ary_pos+'" >'+img+'<span id="'+tout_ary[a_tout_num].class_name+'-modifier-'+tout_ary[a_tout_num].ary_pos+'" class="cross-promo-tout-subsection">'+tout_ary[a_tout_num].modifier+'</span> <br clear="all" /><span id="'+tout_ary[a_tout_num].class_name+'-prelink-'+tout_ary[a_tout_num].ary_pos+'" class="toutprelink">'+tout_ary[a_tout_num].pre_link+'</span><a class="cross-promo-tout-link" href="'+tout_ary[a_tout_num].url+'">'+tout_ary[a_tout_num].link+'</a>&nbsp;<img src="http://a552.g.akamai.net/f/552/606/1d/image.pathfinder.com/ew/img/arrows/orng_arrw_sm.gif" width="3" height="6" border="0"><br /><span class="cross-promo-tout">' + br + tout_ary[a_tout_num].summary + '</span></div>' + spacerDIV;
			//alert(the_tout_html);
			return the_tout_html;
		}
	var crossPromoBox1 ='<img src="http://a552.g.akamai.net/f/552/606/1d/image.pathfinder.com/ew/img/page/more_ew_top.gif" width="120" height="19" alt="More EW.com"><br />\n<table border="0" cellpadding="0" cellspacing="0" width="120" bgcolor="#ffffff">\n<tr>\n\n<td bgcolor="#000000" width="1">\n<span class="horizontal-spacer-1px">&nbsp;</span>\n</td>\n<td width="5">&nbsp;</td>\n<td valign="middle">\n<div id="vertical-spacer-5px">&nbsp;</div>\n';
	var crossPromoBox2 ='</td>\n<td width="5">&nbsp;</td>\n<td bgcolor="#000000" width="1">\n<span class="horizontal-spacer-1px">&nbsp;</span>\n</td>\n</tr>\n</table>\n<img src="http://a552.g.akamai.net/f/552/606/1d/image.pathfinder.com/ew/img/page/more_ew_bot.gif" width="120" height="5"><br />';
	document.write(crossPromoBox1);
	document.write(get_random_tout());
	document.write(crossPromoBox2);
	//alert('mj:'+crossPromoBox1);
	
	

