var windowInnerHeight, windowInnerWidth, movieHeight, movieWidth, containerHeight, containerWidth;
function getWindowAndMovieSize() {
        if (navigator.userAgent.indexOf('MSIE') != -1 && !window.opera) {
               if (document.compatMode && document.compatMode != "BackCompat") {
                       windowInnerHeight = document.documentElement.clientHeight;
                       windowInnerWidth = document.documentElement.clientWidth;
               } else {
                       windowInnerHeight = document.body.clientHeight;
                       windowInnerWidth = document.body.clientWidth;
               }       
        } else if (window.opera) {
               windowInnerHeight = window.innerHeight;
               windowInnerWidth = window.innerWidth;
               
        } else if (navigator.userAgent.indexOf('Netscape') != -1 || navigator.userAgent.indexOf('Firefox')) {
               windowInnerHeight = innerHeight;
               windowInnerWidth = innerWidth;
        } else {
               windowInnerHeight = 768;
               windowInnerWidth = 1024;
        }
        // movie size
        if (windowInnerHeight<1024) {
               movieHeight = 768;
               containerHeight = "768px";
        } else {
               if ((navigator.userAgent.indexOf('MSIE')!=-1 || navigator.userAgent.indexOf('Firefox')!=-1) && !window.opera) {
                       movieHeight = "100%";
               } else {
                       movieHeight = windowInnerHeight;
               }
               containerHeight = windowInnerHeight+"px";
        }
        if (windowInnerWidth<1024) {
               movieWidth = 1024;
               containerWidth = "1024px";
        } else {
               movieWidth = "100%";
               containerWidth = windowInnerWidth + "px";
        }       
}
function resizeMovie() {
        getWindowAndMovieSize();
        if(document.mainmovie) {document.mainmovie.height=movieHeight; document.mainmovie.width=movieWidth;}
        if(document.getElementById("mainmovie")) {document.getElementById("mainmovie").height=movieHeight; document.getElementById("mainmovie").width=movieWidth;}
        if(document.getElementById("proibitocontainer")) {
               document.getElementById("proibitocontainer").style.height=containerHeight;
               document.getElementById("proibitocontainer").style.width=containerWidth;
               document.getElementById("proibitocontainer").style.left="0px";
               document.getElementById("proibitocontainer").style.top="0px";
        }       
}
function addMovie() {    
        getWindowAndMovieSize();
        document.write('<style type="text/css">#proibitocontainer {position: absolute; z-index: 2; left: 0px; top: 0px; overflow: visible; height: '+containerHeight+'; width: '+containerWidth+';}</style>');       
        // <![CDATA[
        var so = new SWFObject("preloader3.swf", "main", "100%", "100%", "8", "#000000",true);
               so.addParam("scale", "noscale");
               so.addParam("loop", "false");
               so.addParam("menu","false");
               so.write("proibitocontainer");
        // ]]>
}