var win;
var flashMovie;
var HTMLcontent;
var html


if ( swfobject.getFlashPlayerVersion().major >= 8 )
{
	html = document.getElementsByTagName("html")[0]
	html.className="hasFlash"

}
else
	document.location.href = "install_flash.html" 

   		
function writeFlash()
{
	swfobject.flashvars =
	{
        lang: lang,
        JSURL: document.location.toString().substring( (document.location.host + "http://").length)
	};
	swfobject.params = { menu: "false" };
	swfobject.attributes = { id: "fls", name: "fls" };

	swfobject.embedSWF(movie, "flash", "100%", "100%", "8", null, swfobject.flashvars, swfobject.params, swfobject.attributes); 
}

function popup(url)
{
  imagePop = open(url,"images","width=450, height=400,scrollbars=1, resizable=yes") 
	if(!imagePop)
		alert("Debes permitir que se abran popups para un correcto funcionamiento")
	imagePop.focus()
	return false
}