// JavaScript Document
window.defaultStatus = 'Faeber Lighting Systems';

function ExtendedEmbedObject(x, y, swfpath, nome, fullscreen, usaloop, autoplay, bgcolor) {
    x = escape(x);
    y = escape(y);
    var querystring = location.search;
    document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + x + '" height="' + y + '">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="allowFullScreen" value="' + fullscreen + '" />');
    document.write('<param name="movie" value="' + swfpath + '" />');
    document.write('<param name="play" value="' + autoplay + '" />');
    document.write('<param name="loop" value="' + usaloop + '" />');
    document.write('<param name="menu" value="false" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="wmode" value="transparent" />');
    document.write('<param name="bgcolor" value="' + bgcolor + '" />');
    document.write('<embed src="' + swfpath + '" loop="' + usaloop + '" play="' + autoplay + '" allowFullScreen="' + fullscreen + '" menu="false" quality="high" wmode="transparent" bgcolor=' + bgcolor + '" width="' + x + '" ');
    document.write('height="' + y + '" name="' + nome + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}
function GetWindowSize() {
    var myWidth = 0, myHeight = 0;
    if (typeof (window.innerWidth) == 'number') {
        //Non-IE
        myWidth = window.innerWidth;
        myHeight = window.innerHeight;
    } else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
        //IE 6+ in 'standards compliant mode'
        myWidth = document.documentElement.clientWidth;
        myHeight = document.documentElement.clientHeight;
    } else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
    }
    return myWidth + "x" + myHeight;
}

function fullWin(name, url) {
    // IE PC
    if ((navigator.appName == "Microsoft Internet Explorer") && (navigator.platform != "MacPPC")) {

        fenetre = window.open(url, name, 'fullscreen=no,resizable=yes');
    }
    // safari mac
    else {
        height = screen.availHeight;
        width = screen.availWidth;

        try {
            tmp = window.open(url, null, "height=" + height + "px,width=" + width + "px,top=0,left=0,resizable=yes,location=0,menubar=0,scrollbars=0,toolbar=0");
            tmp.resizeTo(width, height);
        } catch (e) { }
    }
}
