
startList = function() {
	// Set the rollover affects for IE
	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", "");
				}
			}
		}
	}
	
	// Close the Music Catalog items by default;
	var musicCatalogRoot = document.getElementById("navLeftList");		
	
	// Go through the music catalog list items and hide the ul tags (they will be displayed via onclick Javascript)
	for (i=0; i<musicCatalogRoot.childNodes.length; i++) 
	{
		// Get all of the children of the Music Catalog root
		var musicCategoryNode = musicCatalogRoot.childNodes[i];

		if (musicCategoryNode.nodeName == "LI") 
		{
			// Look for the ul tags under this category and hide them
			for (j=0; j<musicCategoryNode.childNodes.length; j++) 
			{
				// Get the items under the category (genre)
				var musicSubitemsListNode = musicCategoryNode.childNodes[j];

				if (musicSubitemsListNode.nodeName == "UL") 
				{
					if (musicSubitemsListNode.style)
						musicSubitemsListNode.style.display = 'none';
					else
						musicSubitemsListNode.display = 'none';				
				}
			
			}
		}	
	}

	// Set the page to handle links that should open in other windows
	if (document.getElementsByTagName) {
		var anchors = document.getElementsByTagName("a");
		for (var i=0; i<anchors.length; i++) {
			var anchor = anchors[i];
			if ((anchor.getAttribute("href")) && (anchor.getAttribute("rel") == "external"))
				anchor.target = "_blank";
		}
	}	
	
}
window.onload=startList;


function MM_findObj(n, d) { //v4.01
	var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
		for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
		if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_displayHideLayers() { //v6.0
	var i,p,v,obj,args=MM_displayHideLayers.arguments;
	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { obj=obj.style; v=(v=='list-item')?'list-item':(v=='none')?'none':v; }
		obj.display=v; }
}
MM_displayHideLayers();