function mostrarfaq(){
	window.location = '#top';
	cargarfaq();
	document.getElementById('oscurito').style.display = '';
	$('#div_subnav').fadeIn('slow');
}

function ocultarfaq(){
	$('#div_subnav').fadeOut('fast');
	
}

function cargarfaq(){
	$('#div_subnav_contenido').load('faq_detail.php', {},flexfaq);
}

function flexfaq(){
	CSBfleXcroll('mycustomscrolle');
	cambiaTextofaq();
}

function quitarfaq(){
	$('#div_subnav').fadeOut('slow');
	document.getElementById('oscurito').style.display = 'none';
}

function cambiaTextofaq(){
	if(typeof sIFR == "function"){
	// This is the preferred "named argument" syntax
	 sIFR.replaceElement(named({sSelector:".tituloFlash", sFlashSrc:"others/fonts/titulo.swf", sColor:"#ffffff", sLinkColor:"#ffffff", sWmode:"transparent", sBgColor:"#FFFFFF", sHoverColor:"#ffffff", sCase: "upper"}));
	 sIFR.replaceElement(named({sSelector:".tit-events", sFlashSrc:"others/fonts/titulo.swf", sColor:"#ffffff", sLinkColor:"#ffffff", sWmode:"transparent", sBgColor:"#FFFFFF", sHoverColor:"#ffffff", sCase: "upper"}));
	 sIFR.replaceElement(named({sSelector:".h3", sFlashSrc:"others/fonts/titulo.swf", sColor:"#b30739", sLinkColor:"#ffffff", sWmode:"transparent", sBgColor:"#FFFFFF", sHoverColor:"#ffffff", sCase: "upper"}));
	// This is the older, ordered syntax
	};
}

function pagina(val,param){
	$("#ajax_cont").load('all_list.php?tb='+param+'&pag='+val, finito);
}

function pagina2(val,param){
	$("#ajax_cont").load('all_list2.php?tb='+param+'&pag='+val, finito);
}

function finito(){
	cambiaTexto();
}
