	
/* Firelog: A Wrapper Class for Firebug */
var Firelog = {
    firebug: false,
    log: function(msg) {
        alert("debug: " + msg);
    },
    info: function(msg) {
       // alert("info: " + msg);
    },
    time: function(methodName) {
        return;
    },
    timeEnd: function(methodName) {
        return;
    }
}
if (typeof console != "undefined") { // safari, firebug
    if (typeof console.debug != "undefined") { // firebug
        Firelog.log = console.debug;
        Firelog.info = console.info;
        Firelog.time = console.time;
        Firelog.timeEnd = console.timeEnd;
        Firelog.firebug = true;
    }    
}


var params = {
	wmode: "window",
	quality: "high",
	allowFullScreen: "true",
	menu: "true",
	play: "true",
	loop: "true",
	menu: "false",
	bgcolor: "#000000",
	scale: "showall",
	devicefont: "false",
	allowScriptAccess: "sameDomain"
	
};
var flashvars = {
	
};
var attributes = {
	align: "left",
  	width: "100%",
	height: "100%",
	salign: "lt",
	id: "swfobject" 
};

function initSwfObject(loc,swfid,width,height){
	swfobject.createCSS(swfid, ""+params['width']+"; "+params['height']+"");
	swfobject.embedSWF(loc, swfid, width, height, '9.0.0.0', 'media/swf/expressinstall.swf', flashvars, params, attributes);
	//swffit(swfid,550,400);
	
	/* global swf check */
	var playerVersion = swfobject.getFlashPlayerVersion(); // returns a JavaScript object

	var majorVersion = playerVersion.major;
	
}	

document.observe("dom:loaded", function() {
	if($('swfobject')){
	initSwfObject('media/swf/ironman.swf','swfobject','100%','100%', flashvars, params, attributes);
	}
	
});

