/*
Youth Venture Teen Centers
by cornerstone interactive
cornerstoneinteractive.com
@cornerstone - twitter.com
*/

jQuery(document).ready(function($){
  $('.cat-slideshow').cycle({random:1});
  $('#slideshow').cycle({random:1});
  $('#pageshow').cycle({random:1});
  $('#promo').cycle({timeout: 10000,pause: 1,random:1});

  // Need to get menu ID for current menu
  // Also need to set the current top-nav based on path.
  var path = document.location.pathname;
  path = path.split('/');
  path = path[1].toLowerCase();
  $('#headerright a').each(function(){
    if (($(this).text().toLowerCase() == path)||(($(this).attr('href').toLowerCase().indexOf(path)>-1)&& path.length >0)){
      $('body').addClass(path); 
      $(this).parent().addClass('current-menu-item');
    }
  });
});

