// JavaScript Document

$(document).ready(function() {
	var top = 20
	var actual = "gnc";
	
 	 $("#banamexClick").click(function() {
		if(actual != "banamex"){
			top++
			actual = "banamex";
  			$("#banamexImg").css("z-index", top);
			$("#banamexImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Banamex");
			$("#linkProyecto").html("");
			$("#linkProyecto").attr("href", "");
		}
	});
	
	$("#gncClick").click(function() {
  		if(actual != "gnc"){
			top++
			actual = "gnc";
			$("#gncImg").css("z-index", top);
			$("#gncImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("GNC");
			$("#linkProyecto").html("http://gnc.com.mx/gracias/");
			$("#linkProyecto").attr("href", "http://gnc.com.mx/gracias/");
		}
	});
	
	$("#conductorClick1").click(function() {
		if(actual != "conductor1"){
			top++
			actual = "conductor1";
  			$("#conductorImg1").css("z-index", top);
			$("#conductorImg1").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Simulador de Manejo");
			$("#linkProyecto").html("http://conductordesignado.com.mx/simulador/");
			$("#linkProyecto").attr("href", "http://conductordesignado.com.mx/simulador/");
		}
	});
	
	$("#conductorClick2").click(function() {
		if(actual != "conductor2"){
			top++
			actual = "conductor2";
  			$("#conductorImg2").css("z-index", top);
			$("#conductorImg2").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Conductor Designado");
			$("#linkProyecto").html("http://conductordesignado.com.mx/");
			$("#linkProyecto").attr("href", "http://conductordesignado.com.mx/");
		}
	});
	
	$("#conductorClick3").click(function() {
		if(actual != "conductor3"){
			top++
			actual = "conductor3";
  			$("#conductorImg3").css("z-index", top);
			$("#conductorImg3").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Conductor Designado");
			$("#linkProyecto").html("http://apps.facebook.com/expertoenalcohol/");
			$("#linkProyecto").attr("href", "http://apps.facebook.com/expertoenalcohol/");
		}
	});
	
	$("#vinotecaClick").click(function() {
		if(actual != "vinoteca"){
			top++
			actual = "vinoteca";
  			$("#vinotecaImg").css("z-index", top);
			$("#vinotecaImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Haz la prueba");
			$("#linkProyecto").html("http://www.hazlaprueba.com/");
			$("#linkProyecto").attr("href", "http://www.hazlaprueba.com/");
		}
	});
	
	$("#hiredClick").click(function() {
		if(actual != "hired"){
			top++
			actual = "hired";
  			$("#hiredImg").css("z-index", top);
			$("#hiredImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("You are hired!");
			$("#linkProyecto").html("http://sweetandsourstudio.com/youarehired/");
			$("#linkProyecto").attr("href", "http://sweetandsourstudio.com/youarehired/");
		}
	});
	
	$("#afirmeClick").click(function() {
		if(actual != "afirme"){
			top++
			actual = "afirme";
  			$("#afirmeImg").css("z-index", top);
			$("#afirmeImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Afirme Sudáfrica");
			$("#linkProyecto").html("http://sweetandsourstudio.com/afirmesudafrica/");
			$("#linkProyecto").attr("href", "http://sweetandsourstudio.com/afirmesudafrica/");
		}
	});
	
	$("#palacioClick").click(function() {
		if(actual != "palacio"){
			top++
			actual = "palacio";
  			$("#palacioImg").css("z-index", top);
			$("#palacioImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Palacio de Hierro");
			$("#linkProyecto").html("");
			$("#linkProyecto").attr("href", "");
		}
	});
	
	$("#bienalClick1").click(function() {
		if(actual != "bienal1"){
			top++
			actual = "bienal1";
  			$("#bienalImg1").css("z-index", top);
			$("#bienalImg1").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("IX Bienal Femsa");
			$("#linkProyecto").html("");
			$("#linkProyecto").attr("href", "");
		}
	});
	
	$("#santaClick").click(function() {
		if(actual != "santa"){
			top++
			actual = "santa";
  			$("#santaImg").css("z-index", top);
			$("#santaImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Santa Isabel");
			$("#linkProyecto").html("http://www.santa-isabel.mx/");
			$("#linkProyecto").attr("href", "http://www.santa-isabel.mx/");
		}
	});
	
	$("#micropolisClick").click(function() {
		if(actual != "micropolis"){
			top++
			actual = "micropolis";
  			$("#micropolisImg").css("z-index", top);
			$("#micropolisImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Micropolis");
			$("#linkProyecto").html("http://micropolis.com.mx/");
			$("#linkProyecto").attr("href", "http://micropolis.com.mx/");
		}
	});
	
	$("#columbiaClick").click(function() {
		if(actual != "columbia"){
			top++
			actual = "columbia";
  			$("#columbiaImg").css("z-index", top);
			$("#columbiaImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Columbia");
			$("#linkProyecto").html("http://columbiaredalumni.org/");
			$("#linkProyecto").attr("href", "http://columbiaredalumni.org/");
		}
	});
	
	$("#bienalClick2").click(function() {
		if(actual != "bienal2"){
			top++
			actual = "bienal2";
  			$("#bienalImg2").css("z-index", top);
			$("#bienalImg2").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Colección Femsa");
			$("#linkProyecto").html("http://www.coleccionfemsa.com/");
			$("#linkProyecto").attr("href", "http://www.coleccionfemsa.com/");
		}
	});
	
	$("#nacionalClick").click(function() {
		if(actual != "nacional"){
			top++
			actual = "nacional";
  			$("#nacionalImg").css("z-index", top);
			$("#nacionalImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("La Nacional");
			$("#linkProyecto").html("http://www.lanacional.net/");
			$("#linkProyecto").attr("href", "http://www.lanacional.net/");
		}
	});
	
	$("#rdlpClick").click(function() {
		if(actual != "rdlp"){
			top++
			actual = "rdlp";
  			$("#rdlpImg").css("z-index", top);
			$("#rdlpImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("rdlp");
			$("#linkProyecto").html("http://rdlparquitectos.com/");
			$("#linkProyecto").attr("href", "http://rdlparquitectos.com/");
		}
	});
	
	$("#wiseClick").click(function() {
		if(actual != "wise"){
			top++
			actual = "wise";
  			$("#wiseImg").css("z-index", top);
			$("#wiseImg").stop(true).hide().fadeIn("slow");
			$("#nombreProyecto").html("Wise");
			$("#linkProyecto").html("http://www.wiseinsight.com.mx/");
			$("#linkProyecto").attr("href", "http://www.wiseinsight.com.mx/");
		}
	});
});
