function checkCanDoSwitcher() {
	if (navigator.userAgent.indexOf("MSIE") != -1 && navigator.userAgent.indexOf("Mac") != -1) {return false;}
	else {return true;}
}

var canDoSwitcher = checkCanDoSwitcher();

function startListClickTV(startChan) {
//alert("startChan" +startChan);

//#p_cin, #p_radio4, #p_lifeline, #p_bluepeter, #p_sportrelief, #p_wildlife, #p_nireland, #p_wales, #p_localradio, #p_fameacademy
	if (!(startChan == "p_cin" || startChan == "p_radio4" || startChan == "p_lifeline" || startChan == "p_bluepeter" || startChan == "p_sportrelief" || startChan == "p_wildlife" || startChan == "p_nireland" || startChan == "p_wales"  || startChan == "p_localradio" || startChan == "p_fameacademy")) {startChan = "p_cin";}
	var lastTV = document.getElementById(startChan);
	document.getElementById(startChan).className = "show";
	if (document.getElementById && canDoSwitcher) {
		var listRoot = document.getElementById("chanchanger");
		for (i=0; i<listRoot.childNodes.length; i++) {
			var node = listRoot.childNodes[i];
			if (node.nodeName == "LI") {
				for (j=0; j<node.childNodes.length; j++) {
					var subnode = node.childNodes[j];
						if (document.all && navigator.userAgent.indexOf("Opera") == -1) {
							if (subnode.getAttribute("className") == "chanlogo") {
								subnode.onmouseover = function() {
									if (lastTV!="") {lastTV.className = "";}
									this.parentNode.className = "show";
									lastTV=this.parentNode;
									return false;
								}
							}
						}
						else if (subnode.nodeName == "DIV" && subnode.getAttribute("class") == "chanlogo") {
						subnode.onmouseover = function() {
							if (lastTV!="") {lastTV.className = "";}
							this.parentNode.className = "show";
							lastTV=this.parentNode;
							return false;
						}
					}
				}
			}
		}
	}
}

function popwin(aPage, aTarget, w, h, var1, var2){window.open(aPage,aTarget,'status=no,scrollbars=' +((var1=='scroll' || var2=='scroll')? 'yes' : 'no')+ ',resizable=' +((var1=='resize' || var2=='resize')? 'yes' : 'no')+ ',width='+w+',height='+h);}