/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$(document).ready(function(){
  $("#logo").click(function(){
  urlLoga = $('#logo').children('a').attr('href');
  document.location = urlLoga;
  })

  $('.now').click(function(){
  url = $('.nazwaGrupy').attr('href');
  document.location = url;
  })

  $('#baner_rotator_ramka').jcarousel({
    start: 1,
    offset: 1,
    scroll: 1,
    auto: 4,
//    effect: 'fade',
    wrap: 'circular',
    animation: 'slow',
    initCallback: mycarousel_initCallback
  });
})


function mycarousel_initCallback(carousel)
{
    // Disable autoscrolling if the user clicks the prev or next button.
//    carousel.buttonNext.bind('click', function() {
//        carousel.startAuto(0);
//    });
//
//    carousel.buttonPrev.bind('click', function() {
//        carousel.startAuto(0);
//    });
//
//
//
  jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    })
    // Pause autoscrolling if the user moves with the cursor over the clip.
    
    carousel.clip.hover(function() {
        carousel.stopAuto();
    }, function() {
        carousel.startAuto();
    });
};

