function swf(file, name, width, height, wmode, bgcolor, vars){
    
	document.write("<object id='" + name + "' classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0' width='" + width + "' height='" + height + "'>");
    
	document.write("<param name='movie' value='" + file + "?"+ vars +"' />");
	
	document.write("<param name='bgcolor' value='" + bgcolor +"' />");
	
	document.write("<param name='wmode' value='" + wmode + "' />");
	

	document.write("<param name='allowFullScreen' value='true' />");
    
	document.write("<embed src='" + file + "?"+ vars +"' name='" + name + "' wmode='" + wmode + "' bgcolor='" + bgcolor + "' allowFullScreen='true' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' name='"+ file +"' width='" + width + "' height='" + height + "'></embed>");
    
	document.write("</object>");

}

//Escript de controle de ativação para ie 6 e 7

// When the page loads:
window.onload = function(){
    if (document.getElementsByTagName) {
        // Get all the tags of type object in the page.
        var objs = document.getElementsByTagName("object");
        
        for (i=0; i<objs.length; i++) {
        // Get the HTML content of each object tag and replace it with itself.
            objs[i].outerHTML = objs[i].outerHTML;
        }
    }
}
    
// When the page unloads:
window.onunload = function() {
    if (document.getElementsByTagName) {
        //Get all the tags of type object in the page.
        var objs = document.getElementsByTagName("object");
        for (i=0; i<objs.length; i++) {
            // Clear out the HTML content of each object tag to prevent an IE memory leak issue.
            objs[i].outerHTML = "";
        }
    }
}