function setUp(q) {
	switch (q) {
		case "index":
		$(document).ready(function() {
			$("#suscripcion").validationEngine({scroll:false});
			$('#slider').nivoSlider({
				effect: 'fold',
				// Specify sets like: 'fold,fade,sliceDown'
				slices: 15,
				// For slice animations
				boxCols: 8,
				// For box animations
				boxRows: 4,
				// For box animations
				animSpeed: 300,
				// Slide transition speed
				pauseTime: 10000,
				// How long each slide will show
				startSlide: 0,
				// Set starting Slide (0 index)
				directionNav: false,
				// Next & Prev navigation
				directionNavHide: false,
				// Only show on hover
				controlNav: false,
				// 1,2,3... navigation
				controlNavThumbs: false,
				// Use thumbnails for Control Nav
				controlNavThumbsFromRel: false,
				// Use image rel for thumbs
				controlNavThumbsSearch: '.jpg',
				// Replace this with...
				controlNavThumbsReplace: '_thumb.jpg',
				// ...this in thumb Image src
				keyboardNav: true,
				// Use left & right arrows
				pauseOnHover: true,
				// Stop animation while hovering
				manualAdvance: false,
				// Force manual transitions
				captionOpacity: 0.8,
				// Universal caption opacity
				prevText: '>',
				// Prev directionNav text
				nextText: '<',
				// Next directionNav text
				beforeChange: function() {},
				// Triggers before a slide transition
				afterChange: function() {},
				// Triggers after a slide transition
				slideshowEnd: function() {},
				// Triggers after all slides have been shown
				lastSlide: function() {},
				// Triggers when last slide is shown
				afterLoad: function() {} // Triggers when slider has loaded
			});
			$("ul.sf-menu").superfish();
		   $(".colorBoxLink").colorbox({iframe:true, innerWidth:425, innerHeight:344});
		});
		break;
		case "contacto":
		$(document).ready(function() {
			//
			$("#formularioContacto").validationEngine({scroll:false});
			//
			$("#btn").click(function(){
				if($('#formularioContacto').validationEngine('validate')) {
					$("#errorlog").slideDown(300);
					$("#errorlog").html("<p><strong>Enviando...</strong></p>");
					$.ajax({
					  type: 'POST',
					  url: "index.php?mod=system&func=contacto",
					  data: $('#formularioContacto').serialize(),
					  success: function(data){
//							$(this).validationEngine("hideAll");
							if(data==null || (data.error!=null && data.error!="ok")) {
								try{console.log(data);}catch(e){}
								$("#errorlog").html("<p>Intente m&aacute;s tarde por favor.</p>");
							} else {
								$("#formularioContacto input").each(function(){$(this).val("");});
								$("#formularioContacto").hide(500);
								$("#errorlog").html("<div class='destacado'><p>Gracias, su mensaje ha sido enviado satisfactoriamente.</p></div>");								
							}
						},
					  dataType: 'json'
					});
				}
			});
		});
		break;
	case "contacto_en":
		$(document).ready(function() {
			//
			$("#formularioContacto").validationEngine({scroll:false});
			//
			$("#btn").click(function(){
				if($('#formularioContacto').validationEngine('validate')) {
					$("#errorlog").slideDown(300);
					$("#errorlog").html("<p><strong>Sending message...</strong></p>");
					$.ajax({
					  type: 'POST',
					  url: "index.php?mod=system&func=contacto",
					  data: $('#formularioContacto').serialize(),
					  success: function(data){
//							$(this).validationEngine("hideAll");
							if(data==null || (data.error!=null && data.error!="ok")) {
								try{console.log(data);}catch(e){}
								$("#errorlog").html("<p style='color: #A50B00;'><strong>Please, try it later.</strong></p>");
							} else {
								$("#formularioContacto input").each(function(){$(this).val("");});
								$("#formularioContacto").hide(500);
								$("#errorlog").html("<div class='destacado'><p>Thank you, your message has been sent successfully.</p></div>");								
							}
						},
					  dataType: 'json'
					});
				}
			});
		});
	break;
	case "contacto_pr":
		$(document).ready(function() {
			//
			$("#formularioContacto").validationEngine({scroll:false});
			//
			$("#btn").click(function(){
				if($('#formularioContacto').validationEngine('validate')) {
					$("#errorlog").slideDown(300);
					$("#errorlog").html("<p><strong>A mensagem está sendo enviada...</strong></p>");
					$.ajax({
					  type: 'POST',
					  url: "index.php?mod=system&func=contacto",
					  data: $('#formularioContacto').serialize(),
					  success: function(data){
//							$(this).validationEngine("hideAll");
							if(data==null || (data.error!=null && data.error!="ok")) {
								try{console.log(data);}catch(e){}
								$("#errorlog").html("<p style='color: #A50B00;'><strong>Houve um erro, por favor tente novamente.</strong></p>");
							} else {
								$("#formularioContacto input").each(function(){$(this).val("");});
								$("#formularioContacto").hide(500);
								$("#errorlog").html("<div class='destacado'><p>Obrigado, sua mensagem foi enviada.</p></div>");								
							}
						},
					  dataType: 'json'
					});
				}
			});
		});
	break;	
	case 'acordeon':
			$(document).ready(function (){
		$(".acordeon").children("h3").next("div").data("cerrado", true);
		$(".acordeon").children("h3").css("cursor", "pointer");
			$(".acordeon").children("h3").click(function (){
				if($(this).next("div").data("cerrado")){
					$(".acordeon").children("h3").next("div").slideUp(1000);
					$(".acordeon").children("h3").next("div").data("cerrado", true);
					$(this).next("div").data("cerrado", false);
					$(this).next("div").stop(true, true).slideDown(1000);
				}
			})
		});
	break;
	default:
		break;
	}
}
