presentUrl = document.location;
urlString = presentUrl.toString();
docRoot = ''
urlString.indexOf('stage.cbs.cbsig.net')>=0?docRoot='':urlString.indexOf('stager.cbsig.net')>=0?docRoot='':urlString.indexOf('stage.ad.cbsig.net')>=0?docRoot='':docRoot='http://www.cbs.com';

shows = new Array();
shows['CBS.com Homepage'] = docRoot+"/";
shows['CBS Online Store'] = "http://store.cbs.com/";
//shows['New Fall Lineup'] = docRoot+"/primetime/fall_preview_2007/";

shows['CBS TV/HDTV Schedule'] = docRoot+ "/info/hdtv/index.php";
shows['CBS Newsletters'] = docRoot+"/info/user_services/info_subscribe.shtml";
shows['innertube'] = docRoot+"/innertube/";

shows['PRIMETIME'] = "";
shows['The Amazing Race 12'] = "http://alpha.cbs.com/primetime/amazing_race12/";
shows['The Big Bang Theory'] = "/primetime/big_bang_theory/";
shows['Big Brother 8'] = docRoot+"/primetime/bigbrother8/";
shows['Cane'] = "/primetime/cane/";
//shows['Close to Home'] = docRoot+"/primetime/close_to_home/";
shows['Cold Case'] = docRoot+"/primetime/cold_case/";
shows['Courier 2.0'] = docRoot+"/primetime/courier2/";
shows['Criminal Minds'] = docRoot+"/primetime/criminal_minds/";
shows['CSI: Crime Scene Investigation'] = docRoot+"/primetime/csi/";
shows['CSI: Miami'] = docRoot+"/primetime/csi_miami/";
shows['CSI: NY'] =  "/primetime/csi_ny/";
shows['Dexter'] =  "/primetime/dexter/";
shows['Do You Trust Me?'] = docRoot+"/primetime/do_you_trust_me/";
shows['Ghost Whisperer'] = docRoot+"/primetime/ghost_whisperer/";
shows['How I Met Your Mother'] = "/primetime/how_i_met_your_mother/";
shows['Jericho'] = docRoot+"/primetime/jericho/";
shows['Kid Nation'] = docRoot+"/primetime/kid_nation/";
shows['Million Dollar Password'] = docRoot+"/primetime/million_dollar_password/";
shows['Moonlight'] = "/primetime/moonlight/";
shows['NCIS'] = docRoot+"/primetime/ncis/";
shows['The New Advs. of Old Christine'] = docRoot+"/primetime/old_christine/";
shows['Numb3rs'] = docRoot+"/primetime/numb3rs/";
shows['Power of 10'] = docRoot+"/primetime/powerof10/";
shows['Rules of Engagement']= docRoot+"/primetime/rules_of_engagement/";
shows['Shark'] = docRoot+"/primetime/shark/";
shows['Survivor: Fans vs. Favorites'] = docRoot+"/primetime/survivor16/";
shows['Two and a Half Men'] = docRoot+"/primetime/two_and_a_half_men/";
shows['The Unit'] = docRoot+"/primetime/the_unit/";
shows['Welcome to The Captain'] = "/primetime/the_captain/";
shows['Without a Trace'] = docRoot+"/primetime/without_a_trace/";

shows['LATENIGHT'] = ""; 
shows['Late Late Show with Craig Ferguson'] = docRoot+"/latenight/latelate/";
shows['Late Show with David Letterman'] = docRoot+"/latenight/lateshow/";

shows['DAYTIME'] = "";
shows['As the World Turns'] = docRoot+"/daytime/atwt/";
shows['The Bold and the Beautiful'] = docRoot+"/daytime/bb/";
shows['Daytime Homepage'] = docRoot+"/daytime/";
shows['Guiding Light'] = docRoot+"/daytime/gl/";
shows['The Price Is Right'] = docRoot+"/daytime/price/";
shows['The Young and the Restless'] = docRoot+"/daytime/yr/";

shows['MOVIES AND SPECIALS'] = "";
shows['50th Annual Grammy Awards']= "/specials/50grammys/";
shows['Celine Dion']= docRoot+"/specials/celine_dion/";
shows['Garth Brooks: Live in LA!']= docRoot+"/specials/garth_brooks/";
shows['My Grammy Moment']= docRoot+"/specials/my_grammy_moment/";
shows['Super Bowl&rsquo;s Greatest Commercials']= docRoot+"/specials/superbowls_greatest_commercials/";
shows['Victoria’s Secret Fashion Show']= docRoot+"/specials/victorias_secret_2006/";

shows['CBS.COM ORIGINALS'] = "";
shows['Danny Bonaduce: Life Coach']= "http://alpha.cbs.com/mobile/dblc/";
shows['InTurn']= "http://alpha.cbs.com/originals/inturn3/";
shows['Wallstrip']= "http://www.wallstrip.com/";

shows['PAST SHOWS'] = "";
shows['9th Annual A Home for the Holidays'] = "http://alpha.cbs.com/specials/home_for_the_holidays_9/";
shows['The Amazing Race 10'] = docRoot+"/primetime/amazing_race10/";
shows['The Amazing Race 9'] = docRoot+"/primetime/amazing_race9/";
shows['The Amazing Race 8'] = docRoot+"/primetime/amazing_race8/";
shows['The Amazing Race 7'] = docRoot+"/primetime/amazing_race7/";
shows['The Amazing Race 6'] = docRoot+"/primetime/amazing_race6/";
shows['The Amazing Race 5'] = docRoot+"/primetime/amazing_race5/";
shows['The Amazing Race 4'] = docRoot+"/primetime/amazing_race4/";
shows['The Amazing Race 3'] = docRoot+"/primetime/amazing_race3/";
shows['The Amazing Race 2'] = docRoot+"/primetime/amazing_race2/";
shows['The Amazing Race'] = docRoot+"/primetime/amazing_race/";
shows['BBQ Bill']= docRoot+"/originals/bbq_bill/";
shows['Big Brother: All-Stars'] = docRoot+"/primetime/bigbrother7/";
shows['Big Brother 6'] = docRoot+"/primetime/bigbrother6/";
shows['Big Brother 5'] = docRoot+"/primetime/bigbrother5/";
shows['Big Brother 4'] = docRoot+"/primetime/bigbrother4/";
shows['Big Brother 3'] = docRoot+"/primetime/bigbrother3/";
shows['Big Brother 2'] = docRoot+"/primetime/bigbrother2/";
shows['Elf']= docRoot+"/specials/elf/";
shows['Fashion Rocks '] = docRoot+"/specials/fashion_rocks_07/";
shows['Greek to Chic']= docRoot+"/originals/greek_to_chic/";
shows['The Courier'] = docRoot+"/primetime/courier/";
shows['InTurn1']= docRoot+"/originals/inturn/";
shows['InTurn2']= docRoot+"/originals/inturn2/";
shows['Movies Rock'] = "http://alpha.cbs.com/specials/movies_rock";
shows['Pirate Master '] = docRoot+"/primetime/pirate_master/";
shows['Rock Star: Supernova'] = docRoot+"/primetime/rock_star2/";
shows['Survivor: China'] = docRoot+"/primetime/survivor15/";
shows['Survivor: Fiji'] = docRoot+"/primetime/survivor14/";
shows['Survivor: Cook Islands'] = docRoot+"/primetime/survivor13/";
shows['Survivor: Exile Island'] = docRoot+"/primetime/survivor12/";
shows['Survivor: Guatemala'] = docRoot+"/primetime/survivor11/";
shows['Survivor: Palau'] = docRoot+"/primetime/survivor10/";
shows['Survivor: Vanuatu'] = docRoot+"/primetime/survivor9/";
shows['Survivor: All-Stars'] = docRoot+"/primetime/survivor8/";
shows['Survivor: Pearl Islands Panama'] = docRoot+"/primetime/survivor7/";
shows['Survivor: The Amazon'] = docRoot+"/primetime/survivor6/";
shows['Survivor: Thailand'] = docRoot+"/primetime/survivor5/";
shows['Survivor: Marquesas'] = docRoot+"/primetime/survivor4/";
shows['Survivor: Africa'] = docRoot+"/primetime/survivor3/";
shows['Survivor: Outback'] = docRoot+"/primetime/survivor2/";
//shows['Survivor: Borneo'] = docRoot+"/primetime/survivor/";

shows['SATURDAY MORNINGS'] = "";
shows['KEWLopolis on CBS'] = "http://www.kewlopolis.com";

shows['CBS NEWS'] = "";
shows['CBS News Homepage'] = "http://www.cbsnews.com/sections/home/main100.shtml";
shows['CBS Evening News'] = "http://www.cbsnews.com/sections/eveningnews/main3420.shtml";
shows['CBS News Sunday Morning'] = "http://www.cbsnews.com/sections/sunday/main3445.shtml";
shows['The Early Show'] = "http://cbsnews.cbs.com/earlyshow/";
shows['Face the Nation'] = "http://www.cbsnews.com/sections/ftn/main3460.shtml";
shows['Saturday Early Show'] = "http://www.cbsnews.com/sections/earlyshow/saturday/main3480.shtml";
shows['Up to the Minute'] ="http://www.cbsnews.com/sections/uttm/main3455.shtml";
shows['48 Hours'] ="http://www.cbsnews.com/sections/48hours/main3410.shtml";
shows['60 Minutes (Sun)'] = "http://www.cbsnews.com/sections/60minutes/main3415.shtml";
//shows['60 Minutes (Wed)'] = "http://www.cbsnews.com/sections/60II/main3475.shtml";

shows['LOCAL CBS'] = "";
shows['TV Stations'] = "http://www.cbsnews.com/stories/2002/07/31/utility/main517034.shtml";
shows['Radio Stations'] = "http://www.cbsnews.com/stories/2000/11/02/broadcasts/main246396.shtml";

function findersHTML( finder ) {
	var maxlength = 32; 			// one LESS than the longest allowable line (in chars)
/* edited by afa on 11/06/02 */
if(cbs.mac){maxlength = 23;}
/* edited by afa on 11/06/02 */
	var retval 	= '<SELECT'+ " class='showfinders'" +' NAME="' + finder + 'FINDER" onChange="locChange( this.options[this.selectedIndex].value, top )\">\n';
	retval 	       += '<OPTION SELECTED VALUE="">Choose a CBS ' + finder.charAt(0).toUpperCase() + finder.substring(1, finder.length).toLowerCase() + '</OPTION>\n';
	retval 	       += '<OPTION VALUE="">';
	for( var i=0; i<maxlength; i++ )
		retval += '-';
		retval += '</OPTION>\n';
	var sf 		= eval( finder + 's' );
	for( key in sf ) {
		var spacer 	= '';
		if( !sf[key] ) {
			retval += '<OPTION VALUE=""></OPTION>\n';
			spacer 	= '';
		}
		var start 	= 0;
		while( key.length-start > maxlength ) {
//			alert( key + " beginning at " + start )
			retval += '<OPTION VALUE="' + sf[key] + '">' + spacer + key.substring(start, key.lastIndexOf(' ', start+maxlength)) + '</OPTION>\n';
			start  = key.lastIndexOf(' ', start+maxlength);
//			alert( "start is now " + start );
			spacer 	= '&nbsp;&nbsp;';
		}
		retval 	       += '<OPTION VALUE="' + sf[key] + '">' + spacer + key.substring(start, key.length) + '</OPTION>\n';
	}
	retval 	       += '</SELECT>\n';
	return retval;
}

function locChange( newLoc, framey ) {
if( !framey ) framey = self;
if( newLoc ) framey.location = newLoc;
}
