function flashControl(url, width, height) {
    if (width == undefined) {
        width = 384;
    }
    if (height == undefined) {
        height = 288;
    }
    document.write('<object id="flumotion_player" type="application/x-shockwave-flash" data="flumotion_Flashplayer.swf" width="' + width + '" height="' + height + '">');
    document.write('<param name="src" value="flumotion_Flashplayer.swf" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#000000" />');
    document.write('<param name="allowFullScreen" value="true" />');
    document.write('<param name="flashvars" value="fluURL=' + url + '"/>');
	document.write('<param name="wmode" value="opac" />');
	document.write('<param name="autostart" value="0" />');
	
    document.write('</object>');
}

function flashAudioControl(url, width, height) {
    if (width == undefined) {
        width = 316;
    }
    if (height == undefined) {
        height = 29;
    }
    document.write('<object id="flumotion_audio_player" type="application/x-shockwave-flash" data="flumotion_AudioFlashplayer.swf" width="' + width + '" height="' + height + '">');
    document.write('<param name="src" value="flumotion_AudioFlashplayer.swf"/>');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#000000" />');
    document.write('<param name="flashvars" value="fluURL=' + url + '"/>');
    document.write('</object>');
}

function wmControl(url, width, height) {
    if (width == undefined) {
        width = 327;
    }
    if (height == undefined) {
        height = 247;
    }
    document.write('<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" SRC="' + url + '" name="MediaPlayer1" width="' + width + '" height="' + height + '" autostart="0" AutoSize="1"  SendOpenStateChangeEvents="true" ShowStatusBar="true" ShowControls="true">');
    document.write('</embed>');
}


