if(window.event + "" == "undefined") event = null;
function HM_f_PopUp(){return false};
function HM_f_PopDown(){return false};
popUp = HM_f_PopUp;
popDown = HM_f_PopDown;


function open_new_window(url) {
  window.open(url,"",'width=600,height=310');
}

function mini_playlist(chan_name) {
  window.open('/pro/playlist/?'+chan_name, '','dependent=1,directories=0,height=500,width=550,location=0');
}

function breakout_frame()
{
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}

function openAllCastWindow(url) {
  window.open(url,"",'width=370,height=200');
}

function hidestatus(statusmsg){
window.status=statusmsg;
return true;
}


function getStartPosition_Array1() {					// Called by HM_Arrays, left_position parameter.
		var objImg
		objImg = document.images['menustart']
		// alert(objImg);
		if (HM_NS4){
			return eval(objImg).x;
		} else {
			return getXPosition(objImg);
		}
	}

	function getXPosition(imgElem) {						// Called by getStartPosition_Array2.
		xPos = eval(imgElem).offsetLeft;
		tempEl = eval(imgElem).offsetParent;
	  	while (tempEl != null) {
	  		xPos += tempEl.offsetLeft;
	  		tempEl = tempEl.offsetParent;
	  	}
		if(HM_MacIE5_DI) xPos = xPos+10; //specially added DI line, add 15 pixels if on IE5 Macs
		return xPos;
	}	


function getYStartPosition() {					// Called by HM_Arrays, left_position parameter.
		var objImg
		objImg = document.images['menustart']
		// alert(objImg);

		if (HM_NS4){
			return eval(objImg).y;
		} else {
			return getYPosition(objImg);
		}
	}


	function getYPosition(imgElem) {						// Called by getStartPosition_Array2.
		yPos = eval(imgElem).offsetTop;
		tempEl = eval(imgElem).offsetParent;
		while (tempEl != null) {
			yPos += tempEl.offsetTop;
			tempEl = tempEl.offsetParent;
		}

		if(HM_MacIE5_DI) yPos = yPos+15; //specially added DI line, add 15 pixels if on IE5 Macs
		return yPos;
	}