/**
 * @author nbalsaras
 * @version 1.00.00
 */

function fusePlayer(file, id, width, height, video, aspect, config){
    var myVars = {
        myVideo: video,
        myConfig: config,
        aspect: aspect
    };
    var params = {
        scale: "noscale",
        wmode: "transparent",
        allowFullScreen: "true",
        salign: "tl"
    };
    var attribs = {};
    swfobject.embedSWF(file, id, width, height, "9.0.0", null, myVars, params, attribs, outputStatus);

    function outputStatus(e) {
        /*if (e.success == false) {
            var container = document.getElementById(e.id);

            var xmlhttp;
            if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari
                xmlhttp = new XMLHttpRequest();
            }
            else {// code for IE6, IE5
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }

            xmlhttp.onreadystatechange = function () {
                if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                    container.innerHTML = '        <video width="' + width + '" height="' + height + '" controls="controls">\n            <source src="'+xmlhttp.responseText+'" type="video/mp4" />\n            Your browser does not support the video tag.\n        </video>';

                $(container).attr('src', xmlhttp.responseText);
		$(container)[0].load();

		}
            }

            xmlhttp.open("GET", "/xml/fusePlayer_html5.asp", true);
            xmlhttp.send();
        }*/
    } 
}
