var OcultarAyudas = function() {	$("p.Intro").show("slow");	$(".Caracteristicas").hide("fast");}var MostrarAyudas = function() {	$("p.Intro").hide("slow");	$(".Caracteristicas").show("slow");}var Ayudas = function(nombre) {	$(nombre + " p.Intro").slideToggle("slow");	$(nombre + " .Caracteristicas").slideToggle("slow");}/*var fnCredito = function() {	t = $("#t").val();	if (t <= 5000) {				$('#c').val( t * 60 );			} else {		$("#t").val(5000);		fnCredito();	}	$('#d').html( fnFormatoNumero( $('#c').val() ) );}*/var fnCredito = function() {	var t = $("#t").val();	if ((t <= 5000)&&(t >9)) {				$('#c').val( t * 60 );			} 	else {			if ((t <10)&&(t >0))			{				$('#c').val( 420 );					}			else			{				if (t==0)				{				$('#c').val( 0 );									}				else				{				$("#t").val(5000);			    fnCredito();				}			}	}	$('#d').html( fnFormatoNumero( $('#c').val() ) );}var fnFormatoNumero = function(num) {	num = num.toString().replace(/\$|\,/g,'');	if(isNaN(num)) { num = "0"; }	sign = (num == (num = Math.abs(num)));	num = Math.floor(num * 100 + 0.50000000001);	cents = num % 100;	num = Math.floor(num / 100).toString();	if(cents < 10) { cents = "0" + cents; }	for (var i = 0; i < Math.floor((num.length - ( 1 + i ) ) / 3); i++)	num = num.substring(0,num.length-(4*i+3))+'.'+	num.substring(num.length-(4*i+3));	return (((sign)?'':'-') + num + ',' + cents + '€' );}var fnImagenAleatoria = function (imagen, n, id) {	var sCarpeta = 'images/cabeceras/';	var sExt = '.jpg';	var nAleatorio = fnNumeroAleatorio(n);	$(id).html($("<img/>").attr('src', sCarpeta + imagen + nAleatorio + sExt));	}var fnNumeroAleatorio = function(b) { return Math.floor(Math.random() * b + 1) - 1; }var fnBannerSoluciones = function (imagen2) {	var sCarpeta2 = 'images/soluciones/';	var sLink = 'soluciones-formacion.html#Solucion';	var sExt2 = '.jpg';	var nAleatorioSol1 = fnNumeroAleatorio(10);	var nAleatorioSol2 = fnNumeroAleatorio(10);	for (; nAleatorioSol1 == nAleatorioSol2; ) { nAleatorioSol2 = fnNumeroAleatorio(10); }	$('#BannerSolucion1').html( 		$("<a/>").attr('href', sLink + (nAleatorioSol1 + 1)).html(			$("<img/>").attr('src', sCarpeta2 + imagen2 + nAleatorioSol1 + sExt2)		)	);	$('#BannerSolucion2').html( 		$("<a/>").attr('href', sLink + (nAleatorioSol2 + 1)).html(			$("<img/>").attr('src', sCarpeta2 + imagen2 + nAleatorioSol2 + sExt2)		)	);	}$(document).ready(function(){ 	$('ul.LogosAyudas').cycle({fx:'fade',speed:1000,timeout:2000});	fnImagenAleatoria('cabecera', 5, '#IMG_CABECERA');	fnBannerSoluciones('solucion');	$("p.Intro").show("slow");	$(".Caracteristicas").hide("fast");	$("#newsletter").validate({		submitHandler: function(form){			var oForm = {Nombre:$('#Nombre').val(), Empresa:$('#Empresa').val(), Cargo:$('#Cargo').val(), Telefono:$('#Telefono').val(), Email: $('#Email').val()}			$(".ModNewsletter").html( $("<img/>").attr('src', '/images/cargando.gif') ); 			$.get("http://elogospymes.educalogos.net/newsletter.asp", oForm, function(data){				if (!data) { 					$("#newsletter").html( $("<p/>").html("Su solicitud se ha realizado correctamente") ); 				} else { 					$("#newsletter").html( $("<p/>").html("Ha habido un error en su solicitud, inténtelo de nuevo más tarde. Disculpe las molestias." + data) ); 				}			});			return false;		},							  		rules:{			Nombre: { required: true },			Telefono: { required: "#Email[value=]", number: true, minlength: 9 },			Email: { required: "#Telefono[value=]", email:true }		}	});});