$(window).load(
    function() {
        jQuery(".trabc").removeClass('trabc');
    }
);



$(document).ready(function(){
				
				jQuery(".seltrab").change(function() {
					var str = jQuery(".seltrab option:selected").val();
					jQuery(".campourl").val(str);
					jQuery(".selmaking option:first").attr('selected', 'selected');
				
				});
				jQuery(".selmaking").change(function() {
					var str = jQuery(".selmaking option:selected").val();
					jQuery(".campourl").val(str);
					jQuery(".seltrab option:first").attr('selected', 'selected');
				});
				jQuery(".campourl").focus(function(){
					jQuery(".seltrab option:first").attr('selected', 'selected');
					jQuery(".selmaking option:first").attr('selected', 'selected');				
				});			
				
				jQuery(".cajita").colorbox({iframe:true, height:580, width:870, maxHeight:650, opacity:0.8, transition:"none"});
				jQuery(".cajapuzle").colorbox({iframe:true, height:580, width:900, maxHeight:650, opacity:0.8, transition:"none"});				
				jQuery(".cajainfo").colorbox({iframe:true, innerWidth:244, innerHeight:512, opacity: 0.8, transition:"none"});
				jQuery(".cajacontacto").colorbox({iframe:true, innerWidth:580, innerHeight:288, opacity: 0.8, transition:"none"});
		 		
					 
			 jQuery("#info").hover(
				function (){
					var src = webroot+'img/informacion_up.png';
					$(this).attr("src",src);
    		 	},
    		 	function (){
					var src = webroot+'img/informacion.png';
					$(this).attr("src",src);										    		 	
    		 	}
    		 );		
    		 jQuery("#contacto").hover(
				function (){
					var src = webroot+'img/contacta_up.png';
					$(this).attr("src",src);
    		 	},
    		 	function (){
					var src = webroot+'img/contacta.png';
					$(this).attr("src",src);										    		 	
    		 	}
    		 );		
    		 jQuery("#blog").hover(
				function (){
					var src = webroot+'img/blog_up.png';
					$(this).attr("src",src);
    		 	},
    		 	function (){
					var src = webroot+'img/blog.png';
					$(this).attr("src",src);										    		 	
    		 	}
    		 );
    		 jQuery("#facebook").hover(
				function (){
					var src = webroot+'img/facebook_up.png';
					$(this).attr("src",src);
    		 	},
    		 	function (){
					var src = webroot+'img/facebook.png';
					$(this).attr("src",src);										    		 	
    		 	}
    		 );						 
			 
			 jQuery.preloadCssImages(); //Se precargan las imágenes del css   		 
    		 
    		 
    		 
    		 
});

