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['CBS TV/HDTV Schedule'] = docRoot+ "/info/hdtv/index.php";
shows['CBS Newsletters'] = docRoot+"/info/user_services/info_subscribe.shtml";

shows['PRIMETIME'] = "";
shows['The Amazing Race 7'] = docRoot+"/primetime/amazing_race7/";
shows['Cold Case'] = docRoot+"/primetime/cold_case/";
shows['CSI: Crime Scene Investigation'] = docRoot+"/primetime/csi/";
shows['CSI: Miami'] = docRoot+"/primetime/csi_miami/";
shows['CSI: NY'] = docRoot+"/primetime/csi_ny/";
shows['The Cut'] = docRoot+"/primetime/the_cut/";
shows['Everybody Loves Raymond'] = docRoot+"/primetime/everybody_loves_raymond/";
shows['JAG'] = docRoot+"/primetime/jag/";
shows['Joan of Arcadia'] = docRoot+"/primetime/joan_of_arcadia/";
shows['Judging Amy'] = docRoot+"/primetime/judging_amy/";
shows['The King of Queens'] = docRoot+"/primetime/king_of_queens/";
shows['Listen Up'] = docRoot+"/primetime/listen_up/";
shows['NCIS'] = docRoot+"/primetime/navy_ncis/";
shows['Numb3rs'] = docRoot+"/primetime/numb3rs/";
shows['Still Standing'] = docRoot+"/primetime/still_standing/";
shows['Survivor: Palau'] = docRoot+"/primetime/survivor10/";
shows['Two and a Half Men'] = docRoot+"/primetime/two_and_a_half_men/";
shows['Wickedly Perfect'] = docRoot+"/primetime/wickedly_perfect/";
shows['Without a Trace'] = docRoot+"/primetime/without_a_trace/";
shows['Yes, Dear'] = docRoot+"/primetime/yes_dear/";

shows['LATENIGHT'] = ""; 
shows['Late Late Show with Craig Ferguson'] = docRoot+"/latenight/latelate/";
shows['Late Show with David Letterman'] = docRoot+"/latenight/lateshow/";

shows['DAYTIME'] = "";
shows['Daytime Homepage'] = docRoot+"/daytime/";
shows['As the World Turns'] = docRoot+"/daytime/atwt/";
shows['The Bold and the Beautiful'] = docRoot+"/daytime/bb/";
shows['Guiding Light'] = docRoot+"/daytime/gl/";
shows['The Young and the Restless'] = docRoot+"/daytime/yr/";
shows['The Price is Right'] = docRoot+"/daytime/price/";
shows['Daytime Emmy Awards'] = docRoot+"/daytime/specials/emmys_2005/";

shows['MOVIES AND SPECIALS'] = "";
shows['Academy of Country Music Awards']= docRoot+"/specials/40acma/";
shows['Amber Frey: Witness for the Prosecution']= docRoot+"/specials/amber_frey/";
shows['CBS at 75']= docRoot+"/specials/cbs_75/";
shows['A Dr. Phil Primetime Special']= docRoot+"/specials/dr_phil/";
shows['Elvis']= docRoot+"/specials/elvis/";
shows['Elvis by the Presleys']= docRoot+"/specials/elvis_by_the_presleys/";
shows['Locusts']= docRoot+"/specials/locusts/";
shows['Peoples Choice Awards'] = "http://www.pcavote.com";
shows['Riding the Bus with My Sister']= docRoot+"/specials/riding_the_bus_with_my_sister/";
shows['Rob and Amber Get Married']= docRoot+"/specials/rob_amber/";
shows['The 59th Annual Tony Awards']= docRoot+"/specials/59tonys/";


shows['PAST SHOWS'] = "";
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['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['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['Nick and Nick Jr. on CBS'] = "http://www.nickjr.com/home/nickjr_cbs.jhtml";

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 = 30; 			// one LESS than the longest allowable line (in chars)
/* edited by afa on 11/06/02 */
if(cbs.mac){maxlength = 17;}
/* edited by afa on 11/06/02 */
	var retval 	= '<SELECT'+ " class='showfinders'" +' NAME="' + finder + 'FINDER" onChange="locChange( this.options[this.selectedIndex].value, self )\">\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;
}

