function showVideo(moviepath, imgpath, mywidth, myheight) {
    // Build Flash OBJECT item
    var newHeight = parseInt(myheight) + 20;
    var outputHTML = "";
    outputHTML += "<object type=\"application/x-shockwave-flash\" width=\"" + mywidth + "\" height=\"" + newHeight + "\" data=\"/resources/flash/mediaplayer/player.swf?file=" + moviepath + "&autostart=false&fullscreen=true&backcolor=#EEEEEE&image=" + imgpath + "\" wmode=\"transparent\" allowScriptAccess=\"always\" allowfullscreen=\"true\">";
    outputHTML += "<param name=\"movie\" value=\"/resources/flash/mediaplayer/player.swf?file=" + moviepath + "&autostart=false&fullscreen=true&backcolor=#EEEEEE&image=" + imgpath + "\" />";
    outputHTML += "<param name=\"wmode\" value=\"transparent\" />";
    outputHTML += "<param name=\"allowScriptAccess\" value=\"always\" />";
    outputHTML += "<param name=\"allowfullscreen\" value=\"true\" />";
    outputHTML += "</object>";
    // Add new video item
    document.write(outputHTML);
}

var myTextExtraction = function(node) {
    // Check to see if there is a header item
    var sortItem = $(node).find("h1 h2 h3 h4 h5 h6").eq(0).text();
    if (!$(sortItem).length) {
        sortItem = $(node).text();
    }
    return sortItem;
}

$(document).ready(function() {
    $(".tablesorter").tablesorter( {textExtraction: myTextExtraction} );
});
