var inmenu=false;
var lastmenu=0;
function Menu(current) {
if (!document.getElementById) return;
inmenu=true;
oldmenu=lastmenu;
lastmenu=current;
if (oldmenu) Erase(oldmenu);
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.left= m.offsetLeft;
box.style.top= m.offsetTop + m.offsetHeight;
box.style.visibility="visible";
m.style.backgroundColor="#7a2e40";
box.style.backgroundColor="#FFFFC0";
box.style.width="208px";
}
function Erase(current) {
if (!document.getElementById) return;
if (inmenu && lastmenu==current) {
return;
}
m=document.getElementById("menu-" + current);
box=document.getElementById(current);
box.style.visibility="hidden";
m.style.backgroundColor="#7a2e40";
}
function Timeout(current) {
inmenu=false;
window.setTimeout("Erase('" + current + "');",500);
}
function Highlight(menu,item) {
if (!document.getElementById) return;
inmenu=true;
lastmenu=menu;
obj=document.getElementById(item);
obj.style.backgroundColor="Silver";
}
function UnHighlight(menu,item) {
if (!document.getElementById) return;
Timeout(menu);
obj=document.getElementById(item);
obj.style.backgroundColor="#FFFFC0";
}
IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
bVer = parseInt(navigator.appVersion);

var newWin=null;

function popup(loc, name, width, height) {
        var _params = "width="+width+",height="+height+",resizable=no,scrollbars=no,location=no,status=no";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;

        newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && bVer<5) )
                newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}
function MM_openBrWindow(theURL,winName,features) {
	nw = window.open(theURL, winName, 'width=340,height=390,dependent=yes,titlebar=no,toolbar=no,location=no,directories=no,status=no,scrollbar=yes,resizable=no,copyhistory=no,menubar=no');
	nw.focus();
}
function vidclip(theList) {
	//sample is 23630...
	if (theList.name == "selVid") {
	theVID = document.form1.selVid.options[document.form1.selVid.selectedIndex].value;
	} else if (theList.name == "selVid2") {
	theVID = document.form1.selVid2.options[document.form1.selVid2.selectedIndex].value;
	} else if (theList.name == "selVid3") {
	theVID = document.form1.selVid3.options[document.form1.selVid3.selectedIndex].value;
	} else if (theList.name == "selVid4") {
	theVID = document.form1.selVid4.options[document.form1.selVid4.selectedIndex].value;
	}
	//theLink = "http://bureau.espeakers.com/prof/movie.php?sid=8054&aid=" + theVID + "&respondingto=6295" ;
	//MM_openBrWindow(theLink,'video','');
	theLink = "http://bureau.espeakers.com/simp/movie.php?sid=8054&aid=" + theVID;
	MM_openBrWindow(theLink,'movie','');
}