// News ticker
$(function() {
    $('#ticker').ticker({
      speed: 0.10,           // The speed of the reveal
      titleText: '<h2>Recent headlines &mdash;</h2>',
      controls: false
    });
});

// Partners and mainstage scroller
$(function() {
  $('section.partners .logos').cycle({ 
      fx:     'fade',
      speed:  'slow',
      timeout: 5000,
      next:   '#next',
      prev:   '#prev',
      random: 1
  });
  $('.mainstage .images').cycle({ 
      fx:     'fade',
      speed:  'slow',
      timeout: 10000,
      random: 1
  });
});

// Fix z-index in IE7
$(function() {
       var zIndexNumber = 1000;
       // Put your target element(s) in the selector below!
       $(".ie7 div").each(function() {
               $(this).css('zIndex', zIndexNumber);
               zIndexNumber -= 10;
       });
});
