/*Nivo*/
$(window).load(function() {
	$('#slider').nivoSlider({
		effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
		slices:35,
		animSpeed:900,
		pauseTime:6000,
		startSlide:0,
		directionNav:false,
		directionNavHide:true,
		controlNav:false,
		controlNavThumbs:true,
		controlNavThumbsFromRel:false,
		keyboardNav:true,
		pauseOnHover:false, 
		manualAdvance:false,
	});
});
/*Light Box*/
$(function() {
	$('.catWrap ul li a').lightBox();
});
/*JQuery Fx*/
$(document).ready(function (){	
	/*seccion de al lado*/
	$("#al-lado h2").mouseover(function(event){
		$("#al-lado h2").hide("slow");
		$("#al-lado a").show("slow");
	});
	$("#al-lado a").mouseout(function(event){
		$("#al-lado h2").show("slow");
		$("#al-lado a").hide("slow");
	});
	/*Efectos secciones de servicios*/
	/*Branding*/
	$("h3.asesoramiento").click(function(){
		$("p.asesoramiento").show("slow");
		$("span.asesoramiento.cerrar").show("slow");
	});
	$("span.asesoramiento.cerrar").click(function(){
		$("p.asesoramiento").hide("slow");
	});
	$("h3.naming").click(function(){
		$("p.naming").show("slow");
		$("span.naming.cerrar").show("slow");
	});
	$("span.naming.cerrar").click(function(){
		$("p.naming").hide("slow");
	});
	$("h3.idCorp").click(function(){
		$("p.idCorp").show("slow");
		$("span.idCorp.cerrar").show("slow");
	});
	$("span.idCorp.cerrar").click(function(){
		$("p.idCorp").hide("slow");
	});
	/*Ocultar cierre*/
	$("span.cerrar").click(function(){
		$(this).hide("slow");
	});
	$("h3.naming").click(function(){
		$("p.naming").show("slow");
	});
	$("h3.idCorp").click(function(){
		$("p.idCorp").show("slow");
	});
	/*Packaging*/
	$("h3.packaging").click(function(){
		$("div.subservicios p").show("slow");
		$("span.packaging").show("slow");
	});
	$("span.packaging.cerrar").click(function(){
		$("div.subservicios p").hide("slow");
	});
	/*Desarrollo web*/
	$("h3.prog").click(function(){
		$("p.prog").show("slow");
		$("span.prog.cerrar").show("slow");
	});
	$("span.prog.cerrar").click(function(){
		$("p.prog").hide("slow");
	});
	$("h3.moviles").click(function(){
		$("p.moviles").show("slow");
		$("span.moviles.cerrar").show("slow");
	});
	$("span.moviles.cerrar").click(function(){
		$("p.moviles").hide("slow");
	});
	$("h3.ecommerce").click(function(){
		$("p.ecommerce").show("slow");
		$("span.ecommerce.cerrar").show("slow");
	});
	$("span.ecommerce.cerrar").click(function(){
		$("p.ecommerce").hide("slow");
	});
	$("h3.dominios").click(function(){
		$("p.dominios").show("slow");
		$("span.dominios.cerrar").show("slow");
	});
	$("span.dominios.cerrar").click(function(){
		$("p.dominios").hide("slow");
	});
	$("h3.online").click(function(){
		$("p.online").show("slow");
		$("span.online.cerrar").show("slow");
	});
	$("span.online.cerrar").click(function(){
		$("p.online").hide("slow");
	});
	$("h3.banners").click(function(){
		$("p.banners").show("slow");
		$("span.banners.cerrar").show("slow");
	});
	$("span.banners.cerrar").click(function(){
		$("p.banners").hide("slow");
	});
	$("h3.seo").click(function(){
		$("p.seo").show("slow");
		$("span.seo.cerrar").show("slow");
	});
	$("span.seo.cerrar").click(function(){
		$("p.seo").hide("slow");
	});
	$("h3.foros").click(function(){
		$("p.foros").show("slow");
		$("span.foros.cerrar").show("slow");
	});
	$("span.foros.cerrar").click(function(){
		$("p.foros").hide("slow");
	});
	/*Publicidad*/
	$("h3.publi-conv").click(function(){
		$("p.publi-conv").show("slow");
		$("span.publi-conv.cerrar").show("slow");
	});
	$("span.publi-conv.cerrar").click(function(){
		$("p.publi-conv").hide("slow");
	});
	$("h3.publi-no-conv").click(function(){
		$("p.publi-no-conv").show("slow");
		$("span.publi-no-conv.cerrar").show("slow");
	});
	$("span.publi-no-conv.cerrar").click(function(){
		$("p.publi-no-conv").hide("slow");
	});
	$("h3.planificacion").click(function(){
		$("p.planificacion").show("slow");
		$("span.planificacion.cerrar").show("slow");
	});
	$("span.planificacion.cerrar").click(function(){
		$("p.planificacion").hide("slow");
	});
	$("h3.mk-espect").click(function(){
		$("p.mk-espect").show("slow");
		$("span.mk-espect.cerrar").show("slow");
	});
	$("span.mk-espect.cerrar").click(function(){
		$("p.mk-espect").hide("slow");
	});
	/*Multimedia*/
	
	/*Stands y eventos*/
	$("h3.stands").click(function(){
		$("p.stands").show("slow");
		$("span.stands.cerrar").show("slow");
	});
	$("span.stands.cerrar").click(function(){
		$("p.stands").hide("slow");
	});
	$("h3.eventos").click(function(){
		$("p.eventos").show("slow");
		$("span.eventos.cerrar").show("slow");
	});
	$("span.eventos.cerrar").click(function(){
		$("p.eventos").hide("slow");
	});
});

