window.onload = function (){

//Set SWF defaults
var swfWidth = "930", swfHeight = "660", swfScaleMode = "noScale";

//Find the inner dimensions of the browser window
//(borrowed from PPK: http://www.quirksmode.org/viewport/compatibility.html)
var winWidth, winHeight;

if (self.innerHeight){ // all browsers except Explorer
winWidth = self.innerWidth;
winHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight){
// Explorer 6 Strict Mode
winWidth = document.documentElement.clientWidth;
winHeight = document.documentElement.clientHeight;
} else if (document.body){ // other Explorers
winWidth = document.body.clientWidth;
winHeight = document.body.clientHeight;
}

/*
//If window is too small
if(winWidth < 930 || winHeight < 700)
{

//Set up CSS as needed

//Create shortcut
var flashDiv = document.getElementById('content');
var wrapperDiv = document.getElementById('wrapper');

wrapperDiv.style.height = "90%";

//set flashcontent div to be fluid at 100% -- no pixels
flashDiv.style.width = "100%";

//Set flashcontent div to be the full height of the window
//Note: body CSS must have margin: 0 and padding: 0!
flashDiv.style.height = winHeight;

//Change SWF dimensions to be fluid
swfWidth = "100%";
swfHeight = "100%%";
swfScaleMode = "showAll";

}
*/

//Notice SWF params are variables, not hard-coded
var so = new SWFObject('./studio44.swf', 'content', swfWidth, swfHeight, '7', '#BEBEBE');

//Scale is also not hard-coded
so.addParam('scale', swfScaleMode);
//so.addParam('wmode', 'transparent'); //------ Causes the @ problem  !!!!!

//Write SWf!
so.write('content');

//For troubleshooting, display browser window dimensions
/* document.body.innerHTML += "<p style=\"color:red\">Browser's inner width: "
+winWidth +"<br/>Browser's inner height: " +winHeight
+"<br/>SWFs scale mode set to: " +swfScaleMode +"</p>";
*/


}

