var browser = navigator.appName;
var browserNum = parseInt(navigator.appVersion);
var layerRef;
var endLayerRef;
var styleRef;
var newwin;

if((browser == "Netscape") && (browserNum < 5))
{
	//Netscape 4.x
		layerRef = "document.layers['";
		endLayerRef = "'}";
		styleRef = "";
	
}else if((browser == "Netscape") && (browserNum >= 5))
{
	//Netscape 6
		layerRef = "document.geElementById('";
		endLayerRef = "')";
		styleRef = ".style";
}
else
{
	//InternetExplorer
		layerRef = "document.all['";
		endLayerRef = "']";
		styleRef = ".style";
}

////Feature ODC Control
function changeLiveColor(color, hand)
{
	eval(layerRef + "liveTable" + endLayerRef  + ".className = 'livefeature_" + color + "'");
	eval(layerRef + "liveFooter" + endLayerRef  + ".className = 'livefeature_" + color + "'");
}
function changeODCColor(color)
{
	eval(layerRef + "odcTable" + endLayerRef  + ".className = 'vodfeature_" + color + "'");
	eval(layerRef + "odcFooter" + endLayerRef  + ".className = 'vodfeature_" + color + "'");
}
function changeRadioColor(color)
{
	eval(layerRef + "radioTable" + endLayerRef  + ".className = 'radiofeature_" + color + "'");
	eval(layerRef + "radioFooter" + endLayerRef  + ".className = 'radiofeature_" + color + "'");
}
function changeTVColor(color)
{	
	eval(layerRef + "tvTable" + endLayerRef  + ".className = 'tvfeature_" + color + "'");
	eval(layerRef + "tvFooter" + endLayerRef  + ".className = 'tvfeature_" + color + "'");
}


function open_win2(page,openwidth,openheight) {
	//width=(screen.width/2)-(openwidth/2);
	//height=(screen.height/2)-(openheight/2);
	 window.open(page,'main','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width=792,height=550,left=0,top=0');
}


function showListing(listing) {
	if (listing=='tv') {
		tvtab.style.visibility='visible';
		radiotab.style.visibility='hidden';
		livetab.style.visibility='hidden';
		listing_tv.style.visibility='visible';
		listing_radio.style.visibility='hidden';
		listing_live.style.visibility='hidden';
	} else if (listing=='radio') {
		tvtab.style.visibility='hidden';
		radiotab.style.visibility='visible';
		livetab.style.visibility='hidden';
		listing_tv.style.visibility='hidden';
		listing_radio.style.visibility='visible';
		listing_live.style.visibility='hidden';
	} else if (listing=='live') {
		tvtab.style.visibility='hidden';
		radiotab.style.visibility='hidden';
		livetab.style.visibility='visible';
		listing_tv.style.visibility='hidden';
		listing_radio.style.visibility='hidden';
		listing_live.style.visibility='visible';
		}
	}
	
	//function launchwin(alias,openwidth,openheight) {
	//width=(screen.width/2)-(openwidth/2);
	//height=(screen.height/2)-(openheight/2);
	//page = "http://10.0.2.36/viewer/systemcheck.aspx?alias=" + alias;
	//window.open(page,'','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width='+openwidth+',height='+openheight+',left='+width+',top='+height);
	//}
	
	
	function launchwin(LaunchCode,winname,winfeatures)
	{
	var winname;
	var winurl;
	winfeatures = "width=792, height=550, resizable=yes, top=0, left=0,"
	newwin = window.open(LaunchCode,winname,winfeatures);//"/MMNWeb_Presentation" +
	if(javascript_version > 1.0)
	{
 		setTimeout('newwin.focus();',250);
	}
	}
	
	
	function open_win(page,openwidth,openheight) {
	width=(screen.width/2)-(openwidth/2);
	height=(screen.height/2)-(openheight/2);
	window.open(page,'','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width='+openwidth+',height='+openheight+',left='+width+',top='+height);
	
	}
	
	
	function quickflashlink(url) {
	openwidth = "792";
	openheight = "500";
	width=(screen.width/2)-(openwidth/2);
	height=(screen.height/2)-(openheight/2);
	window.open(url,'','toolbar=0,scrollbars=1,location=0,status=0,menubars=0,resizable=1,width='+openwidth+',height='+openheight+',left='+width+',top='+height);
	
	}