function initMenu()
{
var _nav = document.getElementById("nav");
if (_nav) {
   var nodes = _nav.getElementsByTagName("li");
   for (var i=0; i<nodes.length; i++) {
      nodes[i].onmouseover = function()
      {
         if (this.className.indexOf('hover') == -1)
            this.className += " hover";
      }
      nodes[i].onmouseout = function()
      {
         this.className = this.className.replace(" hover", "");
      }
   }
}
}
if (document.all && !window.opera) attachEvent("onload", initMenu);

function popJuke(audioTags, visibleTracks, tintColor, isShuffled) {
	var width = 220;
	var height = (visibleTracks * 30) + 145;
	var left = screen.width - width;
	var top = 0;
	
	jukewindow = window.open("/blog/wp-content/themes/startrak/popjuke.html?tags=" + audioTags + "&numtracks=" + visibleTracks + "&tint=" + tintColor + "&shuffled=" + isShuffled, "popjuke", 
'toolbar=no,location=no,directories=no,menubar=no,status=no,width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',resizable=no,scrollbars=no');

	if (window.focus)
		jukewindow.focus();
}


function classic() {
	var width = 100;
	var height = 100;
	var left = screen.width - width;
	var top = 0;
	
	classicwindow = window.open("/blog/wp-content/themes/startrak/soundtrack.html", "classic", 
'toolbar=no,location=no,directories=no,menubar=no,status=no,width=' + width + ',height=' + height + ',top=' + top + ',left=' + left + ',resizable=no,scrollbars=no');

	if (window.focus)
		classicwindow.focus();

}