// JavaScript Document
//en vez de $ usé v... y la solución se presentó sola o_O
jQuery(document).ready(function(v){ 
    // make the background of the nav bar transparent 
    v("#slide-background").fadeTo(0,0.65);
    
    // instantiate the slideshow
    v('#slideshow_1').show();
    // define the slideshow parameters (see http://malsup.com/jquery/cycle/ for more info)
    v('#slideshow_1').cycle({
        fx:         'fade', 
        timeout:     5000, 
        pager:      '#slidenav', 
        // callback fn that creates the links for navigation 
        pagerAnchorBuilder: function(idx, slide) { 
            return '<a href="#" style="font-size:9px">'+slide.title+'</a>'; 
        }, 
        pagerEvent: 'mouseover', 
        fastOnEvent: true,
        fit:         1,
        pause: 1,
        pauseOnPagerHover: 1 
    });

    // code for the pause button
    v("#pbtn").click(function () { 
      var pbtn = v("#pbtn").html();
      if(pbtn.toLowerCase() == '<a>||</a>'){
        v("#slideshow_1").cycle('pause');
        v("#pbtn").html('<a>&gt;</a>');
      } else{
        v("#slideshow_1").cycle('resume');
        v("#pbtn").html('<a>||</a>');
      }
    });
     
    // slide down the navigation links 
    v('#slide-text').slideDown();
});


jQuery(document).ready(function(v){ 
    // make the background of the nav bar transparent 
    v("#slide-background").fadeTo(0,0.65);
    
    // instantiate the slideshow
    v('#slideshow_2').show();
    // define the slideshow parameters (see http://malsup.com/jquery/cycle/ for more info)
    v('#slideshow_2').cycle({
        speed:  4000,
        fx:         'scrollDown', 
        timeout:     5000, 
        pager:      '#slidenav', 
        // callback fn that creates the links for navigation 
        pagerAnchorBuilder: function(idx, slide) { 
            return '<a href="#" style="font-size:9px">'+slide.title+'</a>'; 
        }, 
        pagerEvent: 'mouseover', 
        fastOnEvent: true,
        fit:         1,
        pause: 2,
        pauseOnPagerHover: 1 
    });

    // code for the pause button
    v("#pbtn").click(function () { 
      var pbtn = v("#pbtn").html();
      if(pbtn.toLowerCase() == '<a>||</a>'){
        v("#slideshow_2").cycle('pause');
        v("#pbtn").html('<a>&gt;</a>');
      } else{
        v("#slideshow_2").cycle('resume');
        v("#pbtn").html('<a>||</a>');
      }
    });
     
    // slide down the navigation links 
    v('#slide-text').slideDown();
});