$(document).ready(function(){
	          
	            $('.zebra-table').find('tr:odd').addClass('odd');
				$('.zebra-table').find('tr:even').addClass('even');
				$(".player-table tr").each(function(){
													$(this).find("td:first").css({"border-right":"1px solid #023668"});
													});
				$(".zebra-table").each(function(){
													$(this).find("tr th:first").css({"border-right":"1px solid #fff"});
													});
													
				  $('#gallery ul').cycle({ 
									fx:     'scrollLeft', 
									speed:  500, 
									timeout: 6000, 
									pager:  '#gallery-pager',
									pagerAnchorBuilder: function(idx, slide) {
											return '<li><a href="#"><span>'+slide.title+'</span></a></li>';
											}
								});
				 $('#welcome-nav #pause').click(function() { 
							$('#gallery ul').cycle('pause');
							return false;
						});
				  $('#welcome-nav a:not(#pause)').click(function() { 
				            var a=$('#welcome-nav a:not(#pause)').index($(this));
							$('#gallery ul').cycle(a);
							$('#gallery ul').cycle('pause');
							return false;
						});
                /*
				$('.section_container').serialScroll({
							items:'div.section',
							prev:'#baseball_prev',
							next:'#baseball_next',
							//offset:-230, //when scrolling to photo, stop 230 before reaching it (from the left)
							//start:1, //as we are centering it, start at the 2nd
							duration:500,
							force:true,
							stop:true,
							lock:false,
							cycle:false, //don't pull back once you reach the end
							//easing:'easeOutQuart', //use this easing equation for a funny effect
							jump: true //click on the images to scroll to them
					});
				  */
				  $('#sports-pager').cycle({ 
									        fx: 'scrollLeft',
											speed:500,
											timeout:0,
											pager:"#sports",
											
									        pagerAnchorBuilder: function(idx, slide) {
											return '<li><a href="#"><span>'+slide.title+'</span></a></li>';
											}
								});
				 
					
					$('#sports-pager  li .section_container .inner_section').cycle({ 
						fx: 'scrollLeft',
						speed:500,
						timeout:0,
						after:function(){
							 $(this).siblings('.section').hide();
							},
						next:'.sports-next',
						prev: '.sports-prev'
					 });

				  $('.threeTab a').click(function(){
											  var index=$(this).parents('.tab').find('a').index(this);
											  var tab=$(this).parents('.tab');
											  tab.next('.tabContentContainer').find('.tabContent').hide();
											  tab.next('.tabContentContainer').find('.tabContent').eq(index).show();
											  tab.css('background','url(/images/template/3tab_'+index+'.gif) left top no-repeat');
											  $(this).parents('ul').find('li').removeClass('current');
											  $(this).parent('li').addClass('current');
											  return false;
										   });
				  $('.fourTab a').click(function(){
											  var index=$(this).parents('.tab').find('a').index(this);
											  var tab=$(this).parents('.tab');
											  tab.next('.tabContentContainer').find('.tabContent').hide();
											  tab.next('.tabContentContainer').find('.tabContent').eq(index).show();
											  tab.css('background','url(/images/template/4tab_'+index+'.png) left top no-repeat');
											  $(this).parents('ul').find('li').removeClass('current');
											  $(this).parent('li').addClass('current');
											  return false;
										   });
		          $('#comments .tabContent').hide();
				  $('#comments .tabContent').eq(0).show();
				
												
});