var defaultFontSize = 76;
var currentFontSize = defaultFontSize;
var tnt = 6;

//Color de fondo para el estado activo, imagen y link para la imagen
var bgColor1 = ["#003873", "#003873", "images/home.jpg", "http://www.tvolucion.com/fundacion-televisa/"];
var bgColor2 = ["#0179CB", "#0179CB", "images/stage_02.jpg"];
var bgColor3 = ["#FF4F07", "#FF4F07", "images/home2.jpg", "salud/anahi-contra-la-bulimia-y-anorexia.html"];
var bgColor4 = ["#009933", "#009933", "images/stage_04.jpg"];
var bgColor5 = ["#A62E2F", "#A62E2F", "images/stage_05.jpg"];
var bgColor6 = ["#7E4100", "#7E4100", "images/stage_06.jpg"];

//Arreglo multidimensional con los links de cada seccion
var navCont = [new Array(
					new Array("Enlaces",
						new Array("Misi&oacute;n", "http://www.fundaciontelevisa.org/mision.html"),
						new Array("Informe 2008", "http://www.fundaciontelevisa.org/informe-2008.html")
					),
					new Array("",
						new Array("Noticias", "http://www.fundaciontelevisa.org/noticias/noticias-2009.html"),
						new Array("Campa&ntilde;as de la Fundaci&oacute;n en TV", "http://www.fundaciontelevisa.org/tv/campanas-sociales-fundacion-televisa-en-tv.html")
						)
				),
				new Array(
					new Array("Tecnolog&iacute;a para la educaci&oacute;n",
						new Array("Goles por M&eacute;xico", "http://www.fundaciontelevisa.org/educacion/aulas-de-medios-goles-por-mexico.html"),
						new Array("<b>Redondeo</b>", "http://www.fundaciontelevisa.org/redondeo/"),
						new Array("Touchdown por la educaci&oacute;n", "http://www.fundaciontelevisa.org/educacion/touchdowns-con-causa-aulas-de-medios.html")
					),
					new Array("Becas",
						new Array("<b>B&eacute;calos</b>", "http://www.becalos.com"),
						new Array("Capacitaci&oacute;n a profesores", "http://www.becalos.com")
					),
					new Array("Promoci&oacute;n a la lectura",
						new Array("Goles por M&eacute;xico", "http://www.fundaciontelevisa.org/educacion/bibliotecas-escolares-goles-por-mexico.html"),
						new Array("Carreras con causa", "http://www.fundaciontelevisa.org/educacion/carreras-por-la-educacion.html"),
						new Array("Leer para so&ntilde;ar", "http://www.fundaciontelevisa.org/educacion/leer-para-sonar.html")
					),
					new Array("Otros",
						new Array("<b>Valores</b>", "http://www.valores.com.mx"),
						new Array("Olimpiadas del conocimiento", "http://www.fundaciontelevisa.org/educacion/olimpiadas-del-conocimiento.html")
					)
				),
				new Array(
					new Array("Trasplantes de &oacute;rganos",
						new Array("Trasplante de c&oacute;rneas", "http://www.fundaciontelevisa.org/salud/transplante-de-corneas-goles-por-mexico.html"),
						new Array("Trasplante de ri&ntilde;&oacute;n", "http://www.fundaciontelevisa.org/salud/transplante-de-rinon-goles-por-mexico.html"),
						new Array("Donamor", "http://www.fundaciontelevisa.org/salud/donamor.html")
					),
					new Array("Debilidad auditiva",
						new Array("Carrera TD", "http://www.fundaciontelevisa.org/salud/auxiliares-auditivos-carrera-televisa-deportes.html"),
						new Array("Goles por M&eacute;xico", "http://www.fundaciontelevisa.org/salud/auxiliares-auditivos-goles-por-mexico.html"),
						new Array("Touchdowns con causa", "http://www.fundaciontelevisa.org/salud/touchdowns-con-causa-auxiliares-auditivos.html"),
						new Array("D&iacute;a internacional del ni&ntilde;o", "http://www.fundaciontelevisa.org/salud/dia-internacional-del-nino.html")
					),
					new Array("Salud y Nutrici&oacute;n",
						new Array("<b>Anah&iacute; contra la anorexia y la bulimia</b>", "http://www.fundaciontelevisa.org/salud/anahi-contra-la-bulimia-y-anorexia.html"),
						new Array("Si lo sue&ntilde;as es posible", "http://www.fundaciontelevisa.org/salud/si-lo-suenas-es-posible.html"),
						new Array("<b>VIH/SIDA</b>", "http://www.fundaciontelevisa.org/salud/vih-sida/index.html"),
						new Array("Goles por M&eacute;xico", "http://www.fundaciontelevisa.org/nutricion/goles-por-mexico.html")
					),
					new Array("Desastres naturales",
						new Array("<b>Unidos por ellos</b>", "http://www.fundaciontelevisa.org/unidosporellos/")
					)
				),
				new Array(
					new Array("Vivienda",
						new Array("Goles por M&eacute;xico", "http://www.fundaciontelevisa.org/vivienda/goles-por-mexico.html"),
						new Array("Alianzas que construyen", "http://www.fundaciontelevisa.org/vivienda/alianzas-que-construyen.html")
					),
					new Array("Medio ambiente",
						new Array("<b>Televisa Verde</b>", "http://www.televisaverde.com.mx")
					)
				),
				new Array(
					new Array("Enlaces",
						new Array("<b>Colecciones fotogr&aacute;ficas</b>", "http://www.coleccionfotografica.com"),
						new Array("<b>Colecci&oacute;n Prehisp&aacute;nica</b>", "http://www.fundaciontelevisa.org/coleccion-prehispanica/index.html"),
						new Array("<b>Katharsis</b>", "http://www.fundaciontelevisa.org/coleccionfotografica/katharsis/index.html"),
						new Array("<b>Exposición Fotogr&aacute;fica a 50 a&ntilde;os de la Ola francesa</b>", "http://www.fundaciontelevisa.org/coleccionfotografica/exposicion-ola-francesa/index.html")
					)
				),
				new Array(
					new Array("Difusión cultural en medios",
						new Array("GuiArte", "http://www.fundaciontelevisa.org/cultura/index.html"),
						new Array("1:cultura - Nicol&aacute;s Alvarado", "http://www.fundaciontelevisa.org/cultura/index.html"),
						new Array("Imaginantes - Jos&eacute; Gordon", "http://www.fundaciontelevisa.org/cultura/imaginantes.html")
						),
					new Array("",
						new Array("Poes&iacute;a hablada", "http://www.fundaciontelevisa.org/cultura/poesia-hablada.html"),
						new Array("M&aacute;s que palabras", "http://www.fundaciontelevisa.org/tv/mas-que-palabras.html"),
						new Array("Ciclo de cine: Gabriel Figueroa", "http://www.fundaciontelevisa.org/tv/ciclo-de-cine-gabriel-figueroa.html")
					)
				)
				];


function MM_preloadImages() { //v3.0
	var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}


function pimg() {
	MM_preloadImages(bgColor1[2], bgColor2[2], bgColor3[2], bgColor4[2], bgColor5[2], bgColor6[2]);
	showNav(1);
}

var cLabel = 1;
function callExternalInterface(label) {
	if(cLabel != label){
		swfMc("car_stage").overMenu(label);
		cLabel = label;
	}
}

function swfMc(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
		return document[movieName]
	}
}

function showNav(idItem) {
	var tdWidth = Math.round(100 / navCont[idItem - 1].length);
	var out = '';
	out = '<table width="100%" border="0" cellpadding="0" cellspacing="10" class="nav_item' + idItem + '"><tr>';
	for(var i = 0; i < navCont[idItem - 1].length; i++){
		if( navCont[idItem - 1].length > 1){
			if(navCont[idItem - 1][i][0] != ""){
				out += '<td class="titulo_navcell">' + navCont[idItem - 1][i][0] + '</td>';
			} else {
				out += '<td class="titulo_navcell">&nbsp;</td>';
			}
		} else {
			out += '<td colspan="' + navCont[idItem - 1][i].length + '" class="titulo_navcell">' + navCont[idItem - 1][i][0] + '</td>';
		}
	}
	out += '</tr><tr>';
	for(var i = 0; i < navCont[idItem - 1].length; i++){
		if( navCont[idItem - 1].length > 1){
			out += '<td><ul>';
			for(var j = 1; j < navCont[idItem - 1][i].length; j++){
				out += '<li><a href="' + navCont[idItem - 1][i][j][1] +'">' + navCont[idItem - 1][i][j][0] + '</a></li>';
			}
			out += '</ul></td>';
		} else {
			for(var j = 1; j < navCont[idItem - 1][i].length; j++){
				out += '<td><ul><li><a href="' + navCont[idItem - 1][i][j][1] +'">' + navCont[idItem - 1][i][j][0] + '</a></ul></li></td>';
			}
		}
	}
	out += '</tr></table>';
	
	//VAR PARA ESTILOS
	if (document.getElementById || document.all) {		
		var el = (document.getElementById) ? document.getElementById("subNavInline"): document.all["subNavInline"];
		if (el && typeof el.innerHTML != "undefined") el.innerHTML = out;
		
		for(var i = 0; i < tnt; i++){
			var navItem =  (document.getElementById) ? document.getElementById("main_nav" + (i + 1)): document.all["main_nav" + (i + 1)];	
			navItem.style.backgroundColor= eval("bgColor" + (i + 1))[0];
			navItem.style.borderBottom = "solid #FFFFFF 1px";
		}
		
		navItem =  (document.getElementById) ? document.getElementById("main_nav" + idItem): document.all["main_nav" + idItem];
		navItem.style.backgroundColor= eval("bgColor" + idItem)[1];
		navItem.style.borderBottom = "none";
		
	}
	callExternalInterface(idItem);
}


function writeFecha(){
	monthNames = new Array(
	"enero",
	"febrero",
	"marzo",
	"abril",
	"mayo",
	"junio",
	"julio",
	"agosto",
	"sept.",
	"octubre",
	"noviembre",
	"diciembre"
	);
	theDate = new Date();
	document.write(theDate.getDate() + " de " + monthNames[theDate.getMonth()] + " de " + theDate.getFullYear());
}

function showPlayer(flv, autoplay){
	var FO = {
		movie:'http://www.fundaciontelevisa.org/images/svideoplayer.swf',
		width:352,
		height:314,
		majorversion:"8", 
		build:"0",
		flashvars: 'file=' + flv + '&autoplay=' + autoplay,
		wmode:"opaque",
		quality:"high"};
		
	UFO.create(FO, 'flvplayer');
}

function showPlayerNT(flv, autoplay){
	var FO = {
		movie:'http://www.fundaciontelevisa.org/images/svideoplayer.swf',
		width:490,
		height:418,
		majorversion:"8", 
		build:"0",
		flashvars: 'file=' + flv + '&autoplay=' + autoplay,
		wmode:"opaque",
		quality:"high"};
		
	UFO.create(FO, 'flvplayer');
}

function setStage(){
	var FO = {
		movie:'images/img_st.swf',
		width:748,
		height:245,
		majorversion:'8', 
		build:'0',
		id:'car_stage',
		name:'car_stage',
		allowScriptAccess:'sameDomain',
		flashvars:'img1=' + bgColor1[2] + '&img2=' + bgColor2[2] + '&img3=' + bgColor3[2] + '&img4=' + bgColor4[2] + '&img5=' +  bgColor5[2] + '&img6=' + bgColor6[2] +
				  '&lnk1=' + bgColor1[3] + '&lnk2=' + bgColor2[3] + '&lnk3=' + bgColor3[3] + '&lnk4=' + bgColor4[3] + '&lnk5=' + bgColor5[3] + '&lnk6=' + bgColor6[3],
		wmode:'transparent',
		quality:'high'};
		
	UFO.create(FO, 'stage');
}

/*	Unobtrusive Flash Objects (UFO) v3.12 <http://www.bobbyvandersluis.com/ufo/>
	Copyright 2005, 2006 Bobby van der Sluis
	This software is licensed under the CC-GNU LGPL <http://creativecommons.org/licenses/LGPL/2.1/>
*/

var UFO = {
	requiredAttrParams: ["movie", "width", "height", "majorversion", "build"],
	optionalAttrEmb: ["name", "swliveconnect", "align"],
	optionalAttrObj: ["id", "align"],
	optionalAttrParams: ["play", "loop", "menu", "quality", "scale", "salign", "wmode", "bgcolor", "base", "flashvars", "devicefont", "allowscriptaccess", "seamlesstabbing"],
	ximovie: "ufo.swf",
	xiwidth: "215",
	xiheight: "138",
	
	is_w3cdom: (typeof document.getElementById != "undefined" && typeof document.getElementsByTagName != "undefined" && (typeof document.createElement != "undefined" || typeof document.createElementNS != "undefined")),
	is_ie: (navigator.userAgent.toLowerCase().indexOf("msie") != -1 && navigator.userAgent.toLowerCase().indexOf("opera") == -1),
	is_safari: (navigator.userAgent.toLowerCase().indexOf("safari") != -1),
	is_win: (navigator.userAgent.toLowerCase().indexOf("win") != -1),
	is_mac: (navigator.userAgent.toLowerCase().indexOf("mac") != -1),
	is_XML: (typeof document.contentType != "undefined" && document.contentType.indexOf("xml") > -1),
	
	foList: [],
		
	create: function(FO, id) {
		if (!UFO.is_w3cdom) return;
		UFO.foList[id] = UFO.updateFO(FO);
		UFO.createStyleRule("#" + id, "visibility:hidden;");
		UFO.domLoad(id);
	},

	updateFO: function(FO) {
		if (typeof FO.xi != "undefined" && FO.xi == "true") {
			if (typeof FO.ximovie == "undefined") FO.ximovie = UFO.ximovie;
			if (typeof FO.xiwidth == "undefined") FO.xiwidth = UFO.xiwidth;
			if (typeof FO.xiheight == "undefined") FO.xiheight = UFO.xiheight;
		}
		else {
			FO.xi = false;
		}
		FO.domLoaded = false;
		return FO;
	},

	domLoad: function(id) {
		var timer = setInterval(function() { // doesn't work in IE/Mac
			if((document.getElementsByTagName("body")[0] != null || document.body != null) &&  document.getElementById(id) != null) {
				UFO.main(id);
				clearInterval(timer);
			}
		}, 250);
		if (typeof document.addEventListener != "undefined") {
			document.addEventListener("DOMContentLoaded", function() { UFO.main(id); clearInterval(timer); } , null); // Mozilla only
		}
	},

	main: function(id) {
		var FO = UFO.foList[id];
		if (FO.domLoaded) return; // for Mozilla, only execute once
		UFO.foList[id].domLoaded = true;
		document.getElementById(id).style.visibility = "hidden";
		if (UFO.hasRequiredAttrParams(id)) {
			if (UFO.hasFlashVersion(FO.majorversion, FO.build)) {
				if (typeof FO.setcontainercss != "undefined" && FO.setcontainercss == "true") {
					UFO.setContainerCSS(id);
				}
				UFO.writeFlashObject(id);
			}
			else if (FO.xi && UFO.hasFlashVersion("6", "65")) {
				UFO.createModalDialog(id);
			}
		}
		document.getElementById(id).style.visibility = "visible";
	},
	
	createStyleRule: function(selector, declaration) {
		if (UFO.is_ie && UFO.is_mac) return; // bugs in IE/Mac
		var head = document.getElementsByTagName("head")[0]; 
		var style = UFO.createElement("style");
		if (!(UFO.is_ie && UFO.is_win)) {
			var styleRule = document.createTextNode(selector + " {" + declaration + "}");
			style.appendChild(styleRule); // bugs in IE/Win
		}
		style.setAttribute("type", "text/css");
		style.setAttribute("media", "screen"); 
		head.appendChild(style);
		if (UFO.is_safari && UFO.is_XML) { head.innerHTML += ""; } // force Safari repaint for MIME type application/xhtml+xml
		if (UFO.is_ie && UFO.is_win && document.styleSheets && document.styleSheets.length > 0) {
			var lastStyle = document.styleSheets[document.styleSheets.length - 1];
			if (typeof lastStyle.addRule == "object") {
				lastStyle.addRule(selector, declaration);
			}
		}
	},
	
	setContainerCSS: function(id) {
		var FO = UFO.foList[id];
		var wUnit = (FO.width.indexOf("%") == -1) ? "px" : "";
		var hUnit = (FO.height.indexOf("%") == -1) ? "px" : "";
		UFO.createStyleRule("#" + id, "width:" + FO.width + wUnit +"; height:" + FO.height + hUnit +";");
		if (FO.width == "100%") {
			UFO.createStyleRule("body", "margin-left:0; margin-right:0; padding-left:0; padding-right:0;");
		}
		if (FO.height == "100%") {
			UFO.createStyleRule("html", "height:100%; overflow:hidden;");
			UFO.createStyleRule("body", "margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;");
		}
	},

	createElement: function(el) {
		return (typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", el) : document.createElement(el);
	},

	hasRequiredAttrParams: function(id) {
		var FO = UFO.foList[id];
		for (var i = 0; i < UFO.requiredAttrParams.length; i++) {
			if (typeof FO[UFO.requiredAttrParams[i]] == "undefined") return false;
		}
		return true;
	},
	
	hasFlashVersion: function(majorVersion, buildVersion) {
		var reqVersion = parseFloat(majorVersion + "." + buildVersion);
		if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
			var desc = navigator.plugins["Shockwave Flash"].description;
			if (desc) {
				var versionStr = desc.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				var major = parseInt(versionStr.replace(/^(.*)\..*$/, "$1"));
				var build = (versionStr.indexOf("r") == -1) ? 0 : parseInt(versionStr.replace(/^.*r(.*)$/, "$1"));
				var flashVersion = parseFloat(major + "." + build);
			}
		}
		else if (window.ActiveXObject) {
			try {
				var flashObj = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
				var desc = flashObj.GetVariable("$version");
				if (desc) {
					var versionArr = desc.replace(/^\S+\s+(.*)$/, "$1").split(",");
					var major = parseInt(versionArr[0]);
					var build = parseInt(versionArr[2]);
					var flashVersion = parseFloat(major + "." + build);
				}
			}
			catch(e) {}
		}
		if (typeof flashVersion != "undefined"){
			return (flashVersion >= reqVersion ? true : false); 
		}
		return false;
	},

	writeFlashObject: function(id) {
		var el = document.getElementById(id);
		if (typeof el.innerHTML == "undefined") return;
		var FO = UFO.foList[id];
		if (navigator.plugins && typeof navigator.plugins["Shockwave Flash"] == "object") {
			try	{ // older versions of Gecko only support innerHTML get and not set
				el.innerHTML = "ufo-test";
			}
			catch (e) {}
			if (el.innerHTML != "ufo-test") {
				while(el.hasChildNodes()) {
					el.removeChild(el.firstChild);
				}
				var embed = UFO.createElement("embed");
				embed.setAttribute("type", "application/x-shockwave-flash");
				embed.setAttribute("pluginspage", "http://www.macromedia.com/go/getflashplayer");
				embed.setAttribute("src", FO.movie);
				embed.setAttribute("width", FO.width);
				embed.setAttribute("height", FO.height);
				for (var i = 0; i < UFO.optionalAttrEmb.length; i++) {
					if (typeof FO[UFO.optionalAttrEmb[i]] != "undefined") {
						embed.setAttribute(UFO.optionalAttrEmb[i], FO[UFO.optionalAttrEmb[i]]);
					}
				}
				for (var i = 0; i < UFO.optionalAttrParams.length; i++) {
					if (typeof FO[UFO.optionalAttrParams[i]] != "undefined") {
						embed.setAttribute(UFO.optionalAttrParams[i], FO[UFO.optionalAttrParams[i]]);
					}
				}	
				el.appendChild(embed);
			}
			else {
				var embHTML = "";
				for (var i = 0; i < UFO.optionalAttrEmb.length; i++) {
					if (typeof FO[UFO.optionalAttrEmb[i]] != "undefined") {
						embHTML += ' ' + UFO.optionalAttrEmb[i] + '="' + FO[UFO.optionalAttrEmb[i]] + '"';
					}
				}
				for (var i = 0; i < UFO.optionalAttrParams.length; i++) {
					if (typeof FO[UFO.optionalAttrParams[i]] != "undefined") {
						embHTML += ' ' + UFO.optionalAttrParams[i] + '="' + FO[UFO.optionalAttrParams[i]] + '"';
					}
				}
				el.innerHTML = '<embed type="application/x-shockwave-flash" src="' + FO.movie + '" width="' + FO.width + '" height="' + FO.height + '" pluginspage="http://www.macromedia.com/go/getflashplayer"' + embHTML + '></embed>';
			}
		}
		else {
			var objAttrHTML = "";
			for (var i = 0; i < UFO.optionalAttrObj.length; i++) {
				if (typeof FO[UFO.optionalAttrObj[i]] != "undefined") {
					objAttrHTML += ' ' + UFO.optionalAttrObj[i] + '="' + FO[UFO.optionalAttrObj[i]] + '"';
				}
			}
			var objParamHTML = "";
			for (var i = 0; i < UFO.optionalAttrParams.length; i++) {
				if (typeof FO[UFO.optionalAttrParams[i]] != "undefined") {
					objParamHTML += '<param name="' + UFO.optionalAttrParams[i] + '" value="' + FO[UFO.optionalAttrParams[i]] + '" />';
				}
			}
			var protocol = (window.location.protocol == "https:" ? "https:" : "http:");
			el.innerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + objAttrHTML + ' width="' + FO.width + '" height="' + FO.height + '" codebase="' + protocol + '//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + FO.majorversion + ',0,' + FO.build + ',0"><param name="movie" value="' + FO.movie + '" />' + objParamHTML + '</object>';
		}
	},
	
	cleanupIELeaks: function() {
		var objects = document.getElementsByTagName("OBJECT");
		for (var i = 0; i < objects.length; i++) {
			for (var x in objects[i]) {
				if (typeof objects[i][x] == "function") {
					objects[i][x] = null;
				}
			}
		}
	},

	createModalDialog: function(id) {
		var FO = UFO.foList[id];
		UFO.createStyleRule("html", "height:100%; overflow:hidden;");
		UFO.createStyleRule("body", "height:100%; overflow:hidden;");
		UFO.createStyleRule("#xi-con", "position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#333; filter:alpha(opacity:50); -khtml-opacity:0.5; -moz-opacity:0.5; opacity:0.5;");
		UFO.createStyleRule("#xi-mod", "position:absolute; left:50%; top:50%; margin-left: -" + (parseInt(FO.xiwidth)/2) + "px; margin-top: -" + (parseInt(FO.xiheight)/2) + "px; width:" + FO.xiwidth + "px; height:" + FO.xiheight + "px;");
		var body = document.getElementsByTagName("body")[0];
		var container = UFO.createElement("div");
		container.setAttribute("id", "xi-con");
		var dialog = UFO.createElement("div");
		dialog.setAttribute("id", "xi-mod");
		container.appendChild(dialog);
		body.appendChild(container);
		var MMredirectURL = window.location;
		document.title = document.title.slice(0, 47) + " - Flash Player Installation";
		var MMdoctitle = document.title;
		var MMplayerType = (UFO.is_ie && UFO.is_win) ? "ActiveX" : "PlugIn";
		var xiUrlCancel = (typeof FO.xiurlcancel != "undefined") ? "&xiUrlCancel=" + FO.xiurlcancel : "";
		var xiUrlFailed = (typeof FO.xiurlfailed != "undefined") ? "&xiUrlFailed=" + FO.xiurlfailed : "";
		UFO.foList["xi-mod"] = { movie:FO.ximovie, width:FO.xiwidth, height:FO.xiheight, majorversion:"6", build:"65", flashvars:"MMredirectURL=" + MMredirectURL + "&MMplayerType=" + MMplayerType + "&MMdoctitle=" + MMdoctitle + xiUrlCancel + xiUrlFailed };
		UFO.writeFlashObject("xi-mod");
	},

	expressInstallCallback: function() {
		var body = document.getElementsByTagName("body")[0];
		var dialog = document.getElementById("xi-con");
		body.removeChild(dialog);
		UFO.createStyleRule("body", "height:auto; overflow:auto;");
		UFO.createStyleRule("html", "height:auto; overflow:auto;");
	}

};

if (typeof window.attachEvent != "undefined" && UFO.is_ie && UFO.is_win) {
	window.attachEvent("onunload", UFO.cleanupIELeaks);
}