$(document).ready(function(){

var handle_interval;

$("#parrafo_2_show").toggle(
	function(){
	$("#parrafo_2").css({"height":"100%"});
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_2").css({"height":"115px"});
	$(this).html("ver m&aacute;s");
	});
	
$("#parrafo_3_show").toggle(
	function(){
	$("#parrafo_3").css({"height":"100%"});
	$("#parrafo_3 .contenedor").css("left","0");
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_3").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
$(".flecha_izq").mouseover(function(e) {
	flecha=this;
	imagen=$(flecha).parent().children().filter(".galeria").children().children().children().filter("img:last");
	handle_interval = window.setInterval(function(){
                        if (($(imagen).offset()["left"] + $(imagen).width() - $(flecha).parent().children().filter(".galeria").offset()["left"]) > 600) 
                            $(imagen).parent().parent().css("left", (parseInt($(imagen).parent().parent().css("left")) - 20) + "px");
                    }, 50);})
    .mouseout(function() {
               clearInterval(handle_interval);
    });
    
$(".flecha_dch").mouseover(function(e) {
	flecha=this;
	imagen=$(flecha).parent().children().filter(".galeria").children().children().children().filter("img:first");
	handle_interval = window.setInterval(function(){
                        if (($(imagen).offset()["left"] - $(flecha).parent().children().filter(".galeria").offset()["left"]) < 0) 
                            $(imagen).parent().parent().css("left", (parseInt($(imagen).parent().parent().css("left")) + 20) + "px");
                    }, 50);})
    .mouseout(function() {
               clearInterval(handle_interval);
    });

$("#parrafo_1_show").toggle(
	function(){
	$("#parrafo_1").css({"height":"100%"});
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_1").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
$("#parrafo_4_show").toggle(
	function(){
	$("#parrafo_4").css({"height":"100%"});
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_4").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
$("#parrafo_5_show").toggle(
	function(){
	$("#parrafo_5").css({"height":"100%"});
	$("#parrafo_5 .contenedor").css("left","0");
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_5").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
	
$("#parrafo_6_show").toggle(
	function(){
	$("#parrafo_6").css({"height":"100%"});
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_6").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
$("#parrafo_7_show").toggle(
	function(){
	$("#parrafo_7").css({"height":"100%"});
	$(this).html("ver menos");
	}, function() {
	$("#parrafo_7").css({"height":"80px"});
	$(this).html("ver m&aacute;s");
	});
	
if (!/android|iphone|ipod|series60|symbian|windows ce|blackberry/i.test(navigator.userAgent)) {
	jQuery(function($) {
		$("a[rel^='lightbox']").slimbox({/* Put custom options here */}, null, function(el) {
			return (this == el) || ((this.rel.length > 8) && (this.rel == el.rel));
		});
	});
}

});