function findPos(obj,leftOffset) {	var curleft = curtop = 0;	if (obj.offsetParent) {		curleft = obj.offsetLeft		curtop = obj.offsetTop		while (obj = obj.offsetParent) {			curleft += obj.offsetLeft			curtop += obj.offsetTop		}	}	return [curleft-leftOffset,curtop+41];}var thisMenu = new Object;var lastMenu = new Object;timers = new Array();menuArray = new Array('sheetmusicmenu','musicedmenu');function showmenu(theNavDiv,theTargetMenu,leftOffset,timerID){//for (m = 0; m < menuArray.length; menu++){clearTimeout(timers[timerID]);//}//alert(menuArray[0]);//alert(theNavDiv + ' ' + theTargetMenu);//alert('mouse over');	theDLmenu = document.getElementById(theTargetMenu);theMenuDivObj = new Object();theMenuDivObj = document.getElementById(theNavDiv);menuArray = findPos(theMenuDivObj,leftOffset);theDLmenu.style.left = menuArray[0] + "px";theDLmenu.style.top = menuArray[1] + "px";//alert(theDLmenu.offsetLeft);theDLmenu.style.visibility = "visible";}function hidemenu(theTargetMenu,timerID){thisMenu = theTargetMenu;timers[timerID] = setTimeout("clearmenu(thisMenu)",500);}function clearmenu(theMenuDiv){theDLmenu = document.getElementById(theMenuDiv);theDLmenu.style.left = "-200px";theDLmenu.style.top = "125px";theDLmenu.style.visibility = "hidden";}nsdom = (document.layers) ? true:false;iedom = (document.all) ? true:false;function getWindowWidth() {    winW = (nsdom) ? window.outerWidth : screen.width;    return winW;		}function getWindowHeight() {    winH = (nsdom) ? window.outerHeight : screen.Availheight;    return winH;		}function popIt(theFile,wName,windowW,windowH,scrolling){    bWidth = getWindowWidth();    bHeight = getWindowHeight();    bTop = (nsdom) ? this.window.screenY : 0;    bLeft = (nsdom) ? this.window.screenX : 0;    popLeft = ((bWidth - windowW)/2) + bLeft;    popTop = ((bHeight - windowH)/2) + bTop;    if (wName == null)    {        wName = 'pop';    }    if (scrolling == null){    scrolling = "auto";    }    var popWindow = window.open(theFile,wName,'width='+windowW+',height='+windowH+',top='+popTop+',left='+popLeft+',scrollbars='+scrolling+',statusbar=no,toolbar=no,resizable=yes');    popWindow.focus();}function loadParent(theUrl){	if (top.opener != null){		top.opener.location.href = theUrl;		opener.focus();	}else{				popWin(theUrl);	}		this.window.close();	}function nobots(){document.forms[0].nobots.value = "1";}