presentUrl = document.location;
urlString = presentUrl.toString();
docRoot = ''
urlString.indexOf('stage.upn.cbsig.net')>=0?docRoot='':docRoot='http://www.upn.com';

shows = new Array();
//shows['Site Map'] = docRoot+"/info/user_services/info_sitemap.shtml";
shows['UPN.com Homepage'] = docRoot+"/";
shows['Shows and Schedule'] = "http://upn.com/schedules/";
shows['UPN Affiliates'] = "http://www.upn.com/affiliates/";
shows['UPN Online Store'] = "http://store.cbs.com/upn/index.php";

shows['SHOWS'] = "";
shows['All of Us'] = docRoot+"/shows/all_of_us/";
shows['ANTM Central'] = docRoot+"/shows/top_model/";
shows['Eve'] = docRoot+"/shows/eve/";
shows['Enterprise'] = docRoot+"/shows/enterprise/";
shows['Girlfriends'] = docRoot+"/shows/girlfriends/";
shows['Half & Half'] = docRoot+"/shows/half_and_half/";
shows['Kevin Hill'] = docRoot+"/shows/kevin_hill/";
shows['One on One'] = docRoot+"/shows/one_on_one/";
shows['Missy Elliott Project'] = docRoot+"/shows/missy_elliott_project/";
shows['Second Time Around'] = docRoot+"/shows/second_time_around/";
shows['Smackdown!'] = docRoot+"/shows/wwe/";
shows['Top Model 3'] = docRoot+"/shows/top_model3/";
shows['Veronica Mars'] = docRoot+"/shows/veronica_mars/";
shows['Vibe Awards'] = docRoot+"/shows/specials/vibe_awards/";
shows[''] = "";


function findersHTML( finder ) {
	var maxlength = 22; 			// one LESS than the longest allowable line (in chars)
/* edited by afa on 11/06/02 */
if(upn.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 UPN ' + 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 	= '&#149;';
		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;
}