﻿document.write('<div id="thesite">\n');
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + w + '" height="' + h + '" id="one" align="middle">\n');
document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
document.write('<param name="allowFullScreen" value="false" />\n');
document.write('<param name="movie" value="' + swf + '" />\n');
document.write('<param name="quality" value="high" />\n');
document.write('<param name="bgcolor" value="#000000" />\n');
document.write('<embed src="' + swf + '" quality="high" bgcolor="#000000" width="' + w + '" height="' + h + '" name="one" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />\n');
document.write('</object>\n');
document.write('</div>\n');
repos();
function repos(){

    var inW;
    var inH;
    var myX;
    var myY;
    if (parseInt(navigator.appVersion) > 3) {
        if (navigator.appName == "Netscape") {
            inW = window.innerWidth;
            inH = window.innerHeight;
        }
        if (navigator.appName.indexOf("Microsoft") != -1) {
            inW = document.body.offsetWidth;
            inH = document.body.offsetHeight;
        }
    }
    if (inW < w) {
        myX = 0;
    }
    else {
        myX = .5 * (inW - w);
    }
    if (inH < h) {
        myY = 0;
    }
    else {
        myY = .5 * (inH - h);
    }
    document.getElementById("thesite").style.position = "absolute";
    document.getElementById("thesite").style.left = myX + "px";
    document.getElementById("thesite").style.top = myY + "px";
    
}
window.onresize = repos;
