function PlayFLV(div_id, flv_path, img_path, width, height, auto) {
    var so = new SWFObject('/Data/flash/mediaplayer.swf', 'MediaPlayer', width, height, '8');
    so.addParam('allowscriptaccess', 'always');
    so.addParam('allowfullscreen', 'true');
    so.addParam('wmode', 'transparent');
    so.addVariable('width', width);
    so.addVariable('height', height);
    so.addVariable('file', flv_path);

    so.addVariable('autostart', auto);

    if (img_path != '') {
        so.addVariable('image', img_path);
    }
    so.write(div_id);
}

function getNodeValue(o) {
    try {
        return o.item(0).firstChild.nodeValue;
    }
    catch (err) {
        return '';
    }
}
