$(function()
{

$("#mostrar").click(function(event) {
		//alert("aa");
event.preventDefault();
$("#caja").slideToggle();
});

$("#cerrar").click(function(event) {
	//alert("aa");
	
event.preventDefault();
$("#caja").slideUp();
});
});

$(document).ready(function() {	
	$('.slideshow').cycle({
		fx: 'fade' 
	});
});

function resize(img,nuevoAncho,nuevoAlto) {
img.width = nuevoAncho;
img.height = nuevoAlto;
}  


$(document).ready(function(){

//Larger thumbnail preview 

$(".services").hover(

	function() {
	$(this).css({'z-index' : '10'});
	$(this).find('img').addClass("hover").stop()
		.animate({
			marginTop: '-110px', 
			marginLeft: '-110px', 
			top: '90%', 
			left: '95%', 
			width: '113px', 
			height: '120px',
			padding: '0px' 
		}, 300);
	} , 
	
	function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0px', 
			marginLeft: '0px',
			top: '0px', 
			left: '0px', 
			width: '103px', 
			height: '110px', 
			
		}, 400);
		
});
 
});


$(document).ready(function(){

//Larger thumbnail preview 

$("services.a").hover(
	
	function() {
		alert("aaa");
		
	$(this).css({'z-index' : '10'});
	$(this).find('ul.thumb li img').addClass("hover").stop()
		.animate({
			marginTop: '-110px', 
			marginLeft: '-110px', 
			top: '90%', 
			left: '95%', 
			width: '113px', 
			height: '120px',
			padding: '0px' 
		}, 300);
	} , 
	
	function() {
	$(this).css({'z-index' : '0'});
	$(this).find('img').removeClass("hover").stop()
		.animate({
			marginTop: '0', 
			marginLeft: '0',
			top: '0', 
			left: '0', 
			width: '103px', 
			height: '110px', 
			
		}, 400);
		
});
 
});


    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-24928315-1']);
    _gaq.push(['_trackPageview']);

    (function() {
      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

