// Correctly handle CCS menus in MsIE.

function startList() {
//startList = function() {
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
	//ieupdate();
}

window.onload=startList;

function videoHandler(videoURL) {
	frames['player'].document.MediaPlayerA.URL = videoURL;
	// now for the Gecko browsers;
	if (frames['player'].document.getElementById('embed')) {
		frames['player'].document.getElementById('embed').innerHTML = '<embed type="application/x-mplayer2"'
					+ ' pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/MediaPlayer/"'
					+ ' width="384" height="350"'
					+ ' src="' + videoURL + '"'
					+ ' autostart="True" '
					+ ' showcontrols="True" '
					+ ' showstatusbar="True" '
					+ ' showdisplay="False" '
					+ ' autorewind="True" '
					+ ' name="NSPlay" '
					+ ' id="NSPlay" ></embed>';
	}
}

