$(document).ready(function(){							
	$.localScroll.hash({
		target: '#Contenido',
		axis:'xy',
		//queue:true,
		duration:1000
	});
	$.localScroll({
   	target:'#Contenido',
		axis:'yx', 
		//queue:true,
		duration:1000,
		onBefore:function( e, anchor, $target ){
			if( this.blur ) this.blur();
		}
	});
	
	
	$(document).pngFix();

	$('a').click(function() {
		if( this.blur ) this.blur();					 
	});
	$("dd").hide();

	
	$("dt").click(function(){
		$("dd:visible").hide("slow");
		$(this).next().show("slow");
		$(this).toggleClass("active");
		$(this).siblings("dt").removeClass("active");
	});
	
	$("#videoPresentacion").hide();
	$("a#videopre, img#videopre2").click(function(){
		$("#videoPresentacion").show(function(){										  
			$('<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/y9LlnLTH87U&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/y9LlnLTH87U&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>').appendTo("#video");
		});
		return false;
	});
	$("a#cerrarvideo").click(function(){
		$("#video").empty()
		$("#videoPresentacion").hide("normal");
		return false;
	});
});

