if (typeof sIFR == "function") {

	sIFR.replaceElement(".txt", "../swf/neo_sans_normal.swf", "#0A2972", null,
			null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".txt_", "../swf/neo_sans_normal.swf", "#666666", null,
			null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".destacado_home_titulo", "../swf/neo_sans_medium.swf",
			"#0A2972", null, null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".botones", "../swf/neo_sans_normal.swf", "#0A2972",
			null, null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".botones_footer", "../swf/neo_sans_normal.swf",
			"#0A2972", null, null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".ruta", "../swf/neo_sans_normal.swf", "#B2B2B2", null,
			null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".titulo", "../swf/neo_sans_normal.swf", "#0081A9",
			null, null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".titulo_ficha", "../swf/neo_sans_normal.swf",
			"#6FCF3F", null, null, null, 0, 0, 0, 0);
	sIFR.replaceElement(".subtitulo_ficha", "../swf/neo_sans_normal.swf",
			"#0080AA", null, null, null, 0, 0, 0, 0);
};

function MM_swapImgRestore() { // v3.0
	var i, x, a = document.MM_sr;
	for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++)
		x.src = x.oSrc;
}
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 MM_findObj(n, d) { // v4.01
	var p, i, x;
	if (!d)
		d = document;
	if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
		d = parent.frames[n.substring(p + 1)].document;
		n = n.substring(0, p);
	}
	if (!(x = d[n]) && d.all)
		x = d.all[n];
	for (i = 0; !x && i < d.forms.length; i++)
		x = d.forms[i][n];
	for (i = 0; !x && d.layers && i < d.layers.length; i++)
		x = MM_findObj(n, d.layers[i].document);
	if (!x && d.getElementById)
		x = d.getElementById(n);
	return x;
}
function MM_swapImage() { // v3.0
	var i, j = 0, x, a = MM_swapImage.arguments;
	document.MM_sr = new Array;
	for (i = 0; i < (a.length - 2); i += 3)
		if ((x = MM_findObj(a[i])) != null) {
			document.MM_sr[j++] = x;
			if (!x.oSrc)
				x.oSrc = x.src;
			x.src = a[i + 2];
		}
}
function MM_goToURL() { // v3.0
	var i, args = MM_goToURL.arguments;
	document.MM_returnValue = false;
	for (i = 0; i < (args.length - 1); i += 2)
		eval(args[i] + ".location='" + args[i + 1] + "'");
}
function MM_openBrWindow(theURL, winName, features) { // v2.0
	window.open(theURL, winName, features);
}
function MM_showHideLayers() { // v9.0
	var i, p, v, obj, args = MM_showHideLayers.arguments;
	for (i = 0; i < (args.length - 2); i += 3)
		with (document)
			if (getElementById && ((obj = getElementById(args[i])) != null)) {
				v = args[i + 2];
				if (obj.style) {
					obj = obj.style;
					v = (v == 'show') ? 'visible' : (v == 'hide') ? 'hidden'
							: v;
				}
				obj.visibility = v;
			}
}

// obtener variables get
function vGet(name) {
	var regexS = "[\\?&]" + name + "=([^&#]*)";
	var regex = new RegExp(regexS);
	var tmpURL = window.location.href;
	var results = regex.exec(tmpURL);
	if (results == null)
		return "";
	else
		return results[1];
}

function mostrar_ocultar(accion, div) {
	if (accion == 'ocultar') {
		document.getElementById(div).className = 'ocultar';
	} else {
		document.getElementById(div).className = 'mostrar';
	}
}

function agregar() {
	// Para internet explorer
	if ((navigator.appName == "Microsoft Internet Explorer")
			&& (parseInt(navigator.appVersion) >= 4)) {
		var url = "http://www.whirlpool.com.ar/";
		var titulo = "Whirlpool";
		window.external.AddFavorite(url, titulo);
	}
	// Para Netscape y Firefox
	else {
		if (navigator.appName == "Netscape")
			alert("Para agregar Samsonite a tus favoritos presiona Ctrl + D");
	}
}

function postear(to, p) {

	var myForm = document.createElement("form");
	myForm.method = "post";
	myForm.action = to;
	for ( var k in p) {
		var myInput = document.createElement("input");
		myInput.setAttribute("name", k);
		myInput.setAttribute("value", p[k]);
		myForm.appendChild(myInput);
	}
	document.body.appendChild(myForm);
	myForm.submit();
	document.body.removeChild(myForm);

}

function limpiarFiltros(obj) {
	for (i = 0; i < document.forms[0].elements.length; i++) {
		if (document.forms[0].elements[i].name.indexOf('FiltroCheckBox') != -1) {
			if (document.forms[0].elements[i].checked) {

				document.forms[0].elements[i].click();
				document.forms[0].elements[i].checked = false;
				// alert(document.forms[0].elements[i].checked);
			}
		}
	}

	obj.focus();
}

function muestra_oculta(id) {
	if (document.getElementById) { // se obtiene el id
		var el = document.getElementById(id);
		// se define la variable "el" igual a nuestro div
		if(el) el.style.display = (el.style.display == 'none') ? 'block' : 'none';
		// damos un atributo display:none que oculta el div
	}
}
window.onload = function() {/*
							 * hace que se cargue la función lo que
							 * predetermina que div estará oculto hasta llamar
							 * a la función nuevamente
							 */
	muestra_oculta('div_banderas');/*
									 * "contenido_a_mostrar" es el nombre de la
									 * etiqueta DIV que deseamos mostrar
									 */
	muestra_oculta('div_pregunta_1');
	muestra_oculta('div_pregunta_2');
	muestra_oculta('div_pregunta_3');
	muestra_oculta('div_pregunta_4');
	muestra_oculta('div_pregunta_5');
	muestra_oculta('div_pregunta_6');
	muestra_oculta('div_pregunta_7');
}

function mostrarAltColor(boton, accion) {
	if (accion == 'over') {
		document.getElementById(boton).className = 'color_code' + 'Over';
	} else {
		document.getElementById(boton).className = 'color_code';
	}
}
jQuery.fn.exists = function(){return this.length>0;}
