﻿function loadFlash() {
    var myWidth = "800";
    var myHeight = "350";
    var myBkgdColor = "#000000";
    var so = new SWFObject("flash/lee_intro.swf", "player", myWidth, myHeight, "6,0,47,0", myBkgdColor);
    so.addParam("scale", "noscale");
    so.addParam("loop", "false");
    so.addParam("quality", "high");
    so.addParam("wmode", "opaque");
    so.addParam("swfversion", "6.0.65.0");
    so.write("divFlash");
}
function hideFlash() {
    // display album cover instead of flash movie
    document.getElementById("divFlash").innerHTML = '<img src="img/Jonathan_Lee-Let_Them_Hear_400x401.jpg" width="400" height="401" alt="Album Cover: Let Them Hear" />';
    document.getElementById("divFlash").style.height = 401;    
    document.getElementById("divSkipIntro").style.display = "none";
    document.getElementById("divSkipIntro").style.visibility = "hidden";
}
loadFlash();
// if browser is NOT IE then add transparency
var ie;
ie = navigator.userAgent.indexOf("IE");
if (ie == -1) {
    document.getElementById("divMenuHeader").style.opacity = .5;
    document.getElementById("divMenuHeader").style.backgroundColor = "#596666";
    document.getElementById("divMenuItems").style.opacity = .5;
}
else {
    document.getElementById("divLogo").style.display = "block";
    document.getElementById("divMenuItems").style.backgroundColor = "";
    document.getElementById("divMenuItemsContainer").style.backgroundColor = "#555";
}