// JavaScript Document
function loadSwf(){
	/*object = document.createElement("object");
	param1 = document.createElement("param");
	param2 = document.createElement("param");
	param3 = document.createElement("param");
	embed = document.createElement("embed");
	
	object.setAttribute("classid", "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000");
	object.setAttribute("codebase", "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0");
	object.setAttribute("width", "100%");
	object.setAttribute("height", "100%");
	document.body.appendChild(object);
	
	param1.setAttribute("name", "movie");
	param1.setAttribute("value", "fotos.swf");
	object.appendChild(param1);
	
	param2.setAttribute("name", "quality");
	param2.setAttribute("value", "high");
	object.appendChild(param2);
	
	param3.setAttribute("name", "WMode");
	param3.setAttribute("value", "Transparent");
	object.appendChild(param3);
	
	embed.setAttribute("src", "fotos.swf");
	embed.setAttribute("quality", "high");
	embed.setAttribute("pluginspage", "http://www.macromedia.com/go/getflashplayer");
	embed.setAttribute("type", "application/x-shockwave-flash");
	embed.setAttribute("width", "100%");
	embed.setAttribute("height", "100%");
	object.appendChild(embed);*/
	
	arq = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">\
		<param name="movie" value="fotos.swf" />\
		<param name="quality" value="high" />\
		<param name="WMode" value="Transparent" />\
		<embed src="fotos.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>\
	</object>';
	
	document.write(arq);
}

function change(strurl, intWidth, intHeight){
	swf = window.open(strurl, "janela", "width="+intWidth+", height="+intHeight+", top="+(screen.height/2-intHeight/2)+", left="+(screen.width/2-intWidth/2));
	swf.document.write('<html>\
					   <head>\
					   <script src="js/loadSwf.js"></script>\
					   <style>\
					   	body {\
							margin: 0;\
							padding: 0;\
						}\
					   </style>\
					   </head>\
					   <body>\
					   <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">\
		<param name="movie" value="'+strurl+'" />\
		<param name="quality" value="high" />\
		<param name="WMode" value="Transparent" />\
		<embed src="'+strurl+'" quality="high" WMode="Transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%"></embed>\
	</object>');
	
}

function hide(){
	
	window.close();
	
}
