var stageW = 500;
var stageH = 105; 
var cacheBuster = Date.parse(new Date());

var params = {};
params.bgcolor = "#000000";
params.allowfullscreen = "true";	

var flashvars = {};			
flashvars.pathToFiles = "player/";
flashvars.componentWidth = 500;

flashvars.settingsPath = "xml/settings.xml";

// if you want to automatically read the information from a folder, use the php file instead
//flashvars.xmlPath = "scan.php?dir=songs";
flashvars.xmlPath = "xml/playlist.xml";

// EMBED CODE
swfobject.embedSWF("player/preview.swf?t="+cacheBuster, "FlabellComponent", stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);

function loadContent(url, containerid) {
   var page_request = false
   if (window.XMLHttpRequest) // if Mozilla, Safari etc
      page_request = new XMLHttpRequest()
   else if (window.ActiveXObject) { // if IE
      try {
         page_request = new ActiveXObject("Msxml2.XMLHTTP")
      }
      catch (e) {
         try {
            page_request = new ActiveXObject("Microsoft.XMLHTTP")
         }
         catch (e) {
         }
      }
   }
   else
      return false

   page_request.onreadystatechange=function() {
      loadpage(page_request, containerid)
   }

   page_request.open('GET', url, true)
   page_request.send(null)
}

function loadpage(page_request, containerid) {
   if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
      document.getElementById(containerid).innerHTML=page_request.responseText
}

function xmlHttp(page_request, id) {
   if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
      document.getElementById(id).innerHTML=page_request.responseText
}

startList = function() {
   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", "");
            }
         }
      }
   }
}
