﻿// JScript File
function highlightRow(row,toggle)
{
    if (toggle) {
        row.style.backgroundColor = "#E8A713";
    } else {
        row.style.backgroundColor = "#006BB7";
    }
}


function menuHover(theImage,toggle) {
    var rollText = "_rollover";
    var imgType = ".gif";
    
    if (toggle == 1) {
        theImage.src = theImage.src.replace(imgType,rollText + imgType);
    } else {
        theImage.src = theImage.src.replace(rollText + imgType,imgType);
    }
}

function createMP3Player(mediaURL,target,autostart) {
    if (document.getElementById(target) != null) {
        var width = 110;
        var so = new SWFObject("/mornings/common/player.swf", "Player", width, "20", "8", "#FFFFFF");

        so.addVariable("file",mediaURL);
        so.addVariable('backcolor','EEEEEE');
        so.addVariable('frontcolor','FF6600');
        so.addVariable('lightcolor','F6AF00');
        so.addVariable("autostart",autostart);    
        so.addVariable("showdownload","false");
        so.addVariable('skin','/mornings/common/simple.swf');
        so.addParam("allowfullscreen","false");
        so.write(target);
        
    } else {
        alert("There was an error with the page.");
    }
}


