<!--
var topnav_pics = new Array("mainnav_home","mainnav_shows","mainnav_faces","mainnav_news","mainnav_music","mainnav_talk","mainnav_shop","mainnav_stations");
var sche_pics = new Array("sunday","monday","tuesday","wednesday","thursday","friday");
var show_pics = new Array("s_sunday","s_monday","s_tuesday","s_wednesday","s_thursday","s_friday");
var paths = new Array("/THEWB/Images/Static/","/THEWB/Images/Static/");
var isNav4, isIE4;
var isMac;
var pathTo = "document.";
var range = "";
var styleObj = "";
var beingUsed = "";

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function openWin(html, width, height, name, scroll) {
	if (width == null)
		var width = 350;
	if (height == null)
		var height = 650;
	var nw=open( html, name, 'width='+width+',height='+height+',status=no,scrollbars='+scroll+',resizable=no,location=no,toolbar=no');
}

function openPulse(curl) {
	if (isMac) {
		openWin(curl,300,449,'pulse','yes');
	} else {
		openWin(curl,315,465,'pulse','yes');
	}
}

function openNoise(curl) {
	if (isMac) {
		openWin(curl,300,429,'noise','yes');
	} else {
		openWin(curl,315,465,'noise','yes');
	}
}

function validateFeedback() {
	var e = document.your_opinion;
	alert("*"+e.feedback_name.value+"***"+e.feedback_main.value+"---"+e);
	if (e.feedback_name.value == "" || e.feedback_main.value == "") {
		alert("Please complete the yourOPINION section before submitting.");
	} else {
		e.fp_feedback_name.value=e.feedback_name.value;
		e.fp_feedback_main.value=e.feedback_main.value;
		e.feedback_name.value="";
		e.feedback_main.value="";
		return true;
	}
	
	return false;
}

function submitFeedback(myForm,CURL) {
	myForm.action=CURL;
	myForm.target='popup';
	myForm.submit();
}

// jcl 10.18.2001
function showAd(adURL) {
	//alert(window.opener);
	var winOpener = window.opener;
	if (winOpener == null) {
		document.location.href = adURL;
	} else {
		window.opener.location.href = adURL;
	}
}

function selectOpenWin (href) {
	if (href != "") {
		openWin(href)
	}
}

function popUp(URL,NAME) {
	amznwin=window.open(URL,NAME,'location=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes,width=380,height=450,screenX=10,screenY=10,top=10,left=10');
	amznwin.focus();
}

function createAmazonURL(code) {
	popUp('http://buybox.amazon.com/exec/obidos/redirect?tag=thewbcom&link_code=qcb&creative=23424&camp=2025&path=/dt/assoc/tg/aa/xml/assoc/-/' + code + '/thewbcom/ref=ac_bb1_,_amazon');
}


// BOI, followed by one or more characters, followed by @,
// followed by one or more characters, followed by ., 
// followed by one or more characters, followed by EOI.
var reEmail = /^.+@.+..+$/
var defaultEmptyOK = false

// Check whether string s is empty.
function isEmpty(s) {
   return ((s == null) || (s.length == 0))
}

// Returns true if string s is empty or 
// whitespace characters only.
function isWhitespace (s) {
   // Is s empty?
    return (isEmpty(s) || reWhitespace.test(s));
}

// isEmail (STRING s , BOOLEAN emptyOK)
// 
// Email address must be of form a@b.c -- in other words:
// * there must be at least one character before the @
// * there must be at least one character before and after the .
// * the characters @ and . are both required
//
// For explanation of optional argument emptyOK,
// see comments of function isInteger.

function isEmail (s) {
   if (isEmpty(s)) 
       if (isEmail.arguments.length == 1) return defaultEmptyOK;
       else return (isEmail.arguments[1] == true);    
    else {
       return reEmail.test(s)
    }
}

// added to handle popups in dropdown menus -Jerry Chen 10.28.2003-
function checkPopup() {
	selected = document.talentForm.fp_relatedTalentDropdown.value;
	selectedArray = new Array();
	selectedArray = selected.split("|");
	isPopup = selectedArray[0];
	if (isPopup == "Y") {
		openWin(selectedArray[3], selectedArray[2], selectedArray[1]);
	} else {
		document.location.href=selectedArray[3];
	}
}

// for the new signin link in the widget
function WB_OpenPopup(url) {
	var popupWin;
    features = 'resizable=no,toolbar=no,location=no,width=400,height=430,directories=no,status=no,scrollbars=no,menubar=no';
    popupWin = window.open( url, 'signin', features );
    if ( popupWin ) {
		popupWin.focus();	
	}
}

//-->
