/* change this ??? or at least add to the form to make it work without javascript, cos w800 need this*/
function episodeChange(list) {
	var epNumber = list.options[list.selectedIndex].value;
	window.location="/episode_guide/"+epNumber+"/";
}
/*
Note: the show/hide based on width it in size.js
*/

function HideContent(d) {
	if(d.length < 1) {
		return;
	}
	document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
	if(d.length < 1) {
		return;
	}
	document.getElementById(d).style.display = "block";
}

function addAttribute() {
	contClass = document.getElementById('container').className;
	if(contClass == 'w1024') {
		var sel = document.getElementById('sel_ep');
		sel["onmouseover"] = new Function("ShowContent(\'episodeList2\'); return true;"); 

		document.getElementById('sel_ep').setAttribute('href','#');

		var clo = document.getElementById('clo_li');
		clo["onmouseover"] = new Function("HideContent(\'episodeList2\'); return true;"); 

//		IE can't do onmouseover, or onclick or I assume an onX function with the obvious set attribute
		//see http://discuss.joelonsoftware.com/default.asp?joel.3.150866.12
//		document.getElementById('sel_ep').setAttribute('onmouseover','ShowContent(\'episodeList2\'); return true;');
//		document.getElementById('clo_li').setAttribute('onmouseover','HideContent(\'episodeList2\'); return true;');
	}
}