
 
$(document).ready(function() {
  $().piroBox_ext({
  piro_speed : 700,
    bg_alpha : 0.5,
    piro_scroll : true // pirobox always positioned at the center of the page
  });
});
$(function() {
    $('table.TablaProductos img').attr("trans","1").css("opacity","0").wrap('<div class="loader" />');
});
$(document).ready(function() {

  $("a[rel='prettyPhoto']").prettyPhoto({
    default_width: 640,
    default_height: 390,
    theme: 'facebook',
    social_tools: '<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-lang="es">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=es_LA&href='+location.href+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>'
  });
  
});  
 $(document).ready(function(){
   $("a[rel='prettyPhoto-iframe']").prettyPhoto({
      animation_speed: 'slow', 
      slideshow: 5000, 
      autoplay_slideshow: false, 
      opacity: 0.80, 
      show_title: false, 
      theme: 'dark_rounded', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
      social_tools:"",
    });
});
$(document).ready(function(){
  $("a[rel='prettyPhoto-issues']").prettyPhoto({
    default_width: 1200,
    default_height: 800,
    theme: 'facebook',
    show_title: false, 
    social_tools: '<div class="pp_social"><div class="twitter"><a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-lang="es">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></div><div class="facebook"><iframe src="http://www.facebook.com/plugins/like.php?locale=es_LA&href='+location.href+'&amp;layout=button_count&amp;show_faces=true&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:500px; height:23px;" allowTransparency="true"></iframe></div></div>'
  });
})

 

$(window).bind('load', function() {
     var i = 0;
     var imgs = $('table.TablaProductos img').length;
     var int = setInterval(function() {
         if(i >= imgs) clearInterval(int);
         $('table.TablaProductos img[trans="1"]').eq(i).fadeTo(200,"1").unwrap();
         i++;
     }, 300);
});  
$().ready(function() {

    var bannerTime = 7000;
    //Aqui pones el tiempo en milisegundo ej: 2000 equivale a 2seg
    var bannerEfecto = "easeInOutBounce";
    var demora = 950;

    $('div#mainBanner div.images ul').cycle({ 
      fx:      'fade', 
      speed:  700, 
      easeIn:  'easeInOutQuad',
      pager: "div.paginacion ul",
      timeout:7000
    });
       
   
        $("div#mainBanner div.paginacion ul li:last").attr("class", "last");
});

$().ready(function() {
    $("body").append("<div class='blackBack'>"+
   "<div class='content'>"+
     "<a href='#' class='close'></a>"+
     "<img src='' /> <div class='moves'> <a href='#' class='up'></a> <a href='#' class='down'></a> </div>"+
     "<div class='contentBox'><h6></h6>"+
       "<strong>Caracterí­sticas</strong><p class='car'></p>"+
       "<strong>Uso Recomendado</strong><p class='uso'></p></div></div></div>");

    $("a.imageZoom").live("click", function() {
        var $JqOBj = $(this);

        //Seteando valores
        $("div.blackBack img").attr("src", $JqOBj.attr("imagen"))
            $("div.blackBack p.car").text($JqOBj.attr("car"))
            $("div.blackBack p.uso").text($JqOBj.attr("rel"))

            $("div.blackBack h6").text($JqOBj.attr("title"))

            $("div.blackBack").fadeIn(300)

            $("div.blackBack .content").slideDown({
            duration: 800,
            easing: "easeInOutQuad",
            complete: function() {
                $("div.blackBack .contentBox").slideDown({
                    duration: 700,
                    easing: "easeInOutQuad"
                })
                }
        });

        return false;
    })

        $("div.blackBack a.close").live("click", function() {

        $("div.blackBack .contentBox").slideUp({
            duration: 700,
            easing: "easeInOutQuad",
            complete: function() {
                $("div.blackBack .content").slideUp({
                    duration: 800,
                    easing: "easeInOutQuad",
                    complete: function() {
                        $(this).find("img").attr("src","").end(); 
                        $("div.blackBack").fadeOut(200)
                        }
                })

                }
        });

        return false;
    });

    $("div.blackBack div.moves a").live("click", function() {
        var $JqOBj = $(this);
        var $Sleep = 70;

        if ($JqOBj.attr("class") == "down") {
            $("div.blackBack .contentBox").not(":animated").animate({
                scrollTop: "+=" + $Sleep
            }, {
                duration: 800,
                easing: "easeInOutQuad"
            });
        } else {
            $("div.blackBack .contentBox").not(":animated").animate({
                scrollTop: "-=" + $Sleep
            }, {
                duration: 800,
                easing: "easeInOutQuad"
            });
        }
        return false;
    });
})


  
  
