
$(document).ready(function() {

$('#banner').cycle({ 
	 fx: 'scrollHorz', 
     timeout:  10000, 
     prev:    '#prev', 
     next:    '#next'
    
});


$(".menu ul li").hover(
		function () {
			 $(this).addClass("on");
		  },
		  function () {
		    $(this).removeClass("on");
		  }
);

$(".menu ul li.current_page_item").hover(
		function () {
			 $(this).addClass("off");
		  },
		  function () {
		    $(this).removeClass("off");
		  }
);


$("#fns ul li:first").addClass("first");


if ( $('#banner').children().size() < 2 ) {
	$('#prev').css('display', 'none');
	$('#next').css('display', 'none');
}

$("#issues div:odd").addClass("right");



$(".sociable ul li:first").addClass("twitter");
$(".sociable ul li:nth-child(2)").addClass("facebook");
$(".sociable ul li:nth-child(3)").addClass("delicious");
$(".sociable ul li:nth-child(4)").addClass("digg");
$(".sociable ul li:nth-child(5)").addClass("redit");


$('#content .audio-item span.excerpt a').each(function(){
var strlink = $(this).attr('href');
var splitlink = strlink.split('http://www.merrionstreet.ie/wp-content/uploads/')
$(this).attr('href', 'http://www.merrionstreet.ie/wp-content/uploads/' + 'force-download.php?file=' + splitlink[1]) 

})





});



