//alert(clicked);

$(document).ready(function(){
// Web Advertise page
	$('.ad-pages a').click(function(){
		$('.ad-pages li.current').removeClass('current');
		$(this).parent().addClass('current');
		
		var curIndex = $(this).parent().prevAll().length + 1;
		
		$('.ad-images > .show').fadeOut('slow',function() {
			$(this).removeClass('show');
			$('.ad-images > div:nth-child('+curIndex+')').fadeIn('normal');
			$('.ad-images > div:nth-child('+curIndex+')').addClass('show');
		});
		
		return false;
	});
// END Web Advertise page

// Rate Tables Striping
	$('table.striping').each(function(){
		$('tbody tr:odd',this).addClass('alt');
	});
// END Rate Tables Striping

// Editorial Table Striping
	$('#editorial-calendar table tr#months th:odd, #editorial-calendar table td:even').addClass('alt');
// END Editorial Table Striping
});