var NSsound = navigator.plugins && navigator.plugins.length>0 && navigator.javaEnabled();
var IEsound = navigator.plugins && document.all;
var audioEnabled = NSsound || IEsound;
var win="";

function launchCenteredWindow(url, name, height, width) {
  var astr = "height="+height+",innerheight="+height;
  astr += ",width="+width+",innerwidth="+width;
    if (window.screen) {
       var ah = screen.height - 30;
       var aw = screen.width - 10;
       var xc = (aw - width) / 2;
       var yc = (ah - height) / 2;
       astr += ",left="+xc+",screenX="+xc;
       astr += ",top="+yc+",screenY="+yc;
       }
 return window.open(url, name, astr);
}

function openDep() {
  win=launchCenteredWindow("formailin.htm","dep", 320, 300);
}

function closeDep() {
  if (win && win.open && !win.closed) win.close();
}

function makeSong_Pic(songurl, name, picurl) {
	this.songurl = songurl;
	this.name = name;
        this.picurl = picurl;
}

function openJuke(artistId) {
//  alert("artistid= "+artistId+" ");  
   songoptionsel = artistId;
 jukewin=launchCenteredWindow("jukebox2x.htm","jukeform",280,205);
}

function closeJuke() {
  if (jukewin && jukewin.open && !jukewin.closed) jukewin.close();
} 

function fixMenu4ie() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function showPic(photoNum) {
 if (document.getElementById) {
    document.getElementById('pic_container').src = photoDir + photoArray[photoNum][0];
    document.getElementById('pic_container').height = photoArray[photoNum][1];
    document.getElementById('pic_container').width = photoArray[photoNum][2];
    document.getElementById('pic_container').alt = photoArray[photoNum][3];
    document.getElementById('caption').childNodes[0].nodeValue = photoArray[photoNum][3];
    }
}



function startList() {
  fixMenu4ie();
}  

