
var currentTabMC = '1';    
	
	function highlightTabsMC(tabMC) {
		document.getElementById('mediaCenterTab_'+currentTabMC).style.background='transparent';
		document.getElementById('mediaCenterTab_'+tabMC).style.background='#1C84DB';      
		
		currentTabMC = tabMC;
	}
	
jQuery(document).ready(function()  { 
if(jQuery("#mediaCenterContent_1").length>0) {
	if (jQuery("#FRM_POS_POSITION_ID option:selected").length)
    	jQuery("#FRM_POS_POSITION_ID option[value='']").attr('selected', 'selected');
	
	if (jQuery("#FRM_ORDER option:selected").length)
    	jQuery("#FRM_ORDER option[value='40']").attr('selected', 'selected');

	sendValue("","40");  


 
        jQuery('#mediaCenterContent_1').show(); 		
		jQuery('#mediaCenterContent_2').hide();
		jQuery('#mediaCenterContent_3').hide();
		jQuery('#mediaCenterContent_4').hide();	
		jQuery('#mediaCenterContent_5').hide();	
		
		highlightTabsMC(1);
		    
    jQuery("#Tabs .link").click(function() {
        jQuery("#Tabs .link").removeClass("selected");
    	jQuery(this).addClass("selected");    	
    });

		jQuery('#mediaCenterTab_1').click(function() {
		 highlightTabsMC(currentTabMC); 
		jQuery('#mediaCenterContent_1').show();
		jQuery('#mediaCenterContent_2').hide();
		jQuery('#mediaCenterContent_3').hide();
		jQuery('#mediaCenterContent_4').hide();	
		jQuery('#mediaCenterContent_5').hide();	
	   });
	
	
	jQuery('#mediaCenterTab_2').click(function() {
		jQuery('#mediaCenterContent_2').show();
		jQuery('#mediaCenterContent_1').hide();
		jQuery('#mediaCenterContent_3').hide();
		jQuery('#mediaCenterContent_4').hide();
        jQuery('#mediaCenterContent_5').hide();		
	});
	
	
	jQuery('#mediaCenterTab_3').click(function() {
			jQuery('#mediaCenterContent_3').show();
		jQuery('#mediaCenterContent_1').hide();
		jQuery('#mediaCenterContent_2').hide();
		jQuery('#mediaCenterContent_4').hide();	
		jQuery('#mediaCenterContent_5').hide();	
	});
	
	jQuery('#mediaCenterTab_4').click(function() {
		jQuery('#mediaCenterContent_4').show();
		jQuery('#mediaCenterContent_1').hide();
		jQuery('#mediaCenterContent_2').hide();
		jQuery('#mediaCenterContent_3').hide();
		jQuery('#mediaCenterContent_5').hide();	
	});
	
	jQuery('#mediaCenterTab_5').click(function() {
		jQuery('#mediaCenterContent_5').show();
		jQuery('#mediaCenterContent_1').hide();
		jQuery('#mediaCenterContent_2').hide();
		jQuery('#mediaCenterContent_3').hide();
		jQuery('#mediaCenterContent_4').hide();	
	});
	}
 if(jQuery("#NewsArea").length>0) {  	
	jQuery('#NewsArea').show();   
       jQuery('#NewsScroller').cycle({
         fx: 'scrollVert',   
         timeout: 0 ,    
         speed:   500,
        prev:    '#NewsControlsPrev',
        next:    '#NewsControlsNext'           
    });       
   
    }
   

   if(jQuery("#TestimonialArea").length>0) {    
   jQuery('#TestimonialScroll').show();
    jQuery('#TestimonialScroll').cycle({
        fx:     'fade', 
        speed:  'slow', 
        timeout: 5000, 
        prev:    '#TestPrev',
        next:    '#TestNext' 
    });   
    }
    
    
		
		    
    jQuery("#TabsSCH .linkSch").click(function() {
        jQuery("#TabsSCH .linkSch").removeClass("active");
    	jQuery(this).addClass("active");    	
    });
        jQuery('#ScheduleContent_1').show();
		jQuery('#ScheduleContent_2').hide();

	jQuery('#ScheduleTab_1').click(function() {
		jQuery('#ScheduleContent_1').show();
		jQuery('#ScheduleContent_2').hide();
	   });
	
	
	jQuery('#ScheduleTab_2').click(function() {
		jQuery('#ScheduleContent_2').show();
		jQuery('#ScheduleContent_1').hide();	
	});
	
	
	
 if(jQuery("#SchArea").length>0) { 	
	jQuery('#SchArea').show();   
       jQuery('#SchScroller').cycle({
         fx: 'scrollVert',   
         timeout: 0 ,    
         speed:   500,
        prev:    '#SchControlsPrev',
        next:    '#SchControlsNext'           
    }); 
    }
    
    
    
 
   
});

var currentTabREC = '1';    

function highlightTabsREC(tabREC) {
	document.getElementById('Tab_'+currentTabREC).style.background='transparent';
	document.getElementById('Tab_'+tabREC).style.background='#1C84DB';      
	
	currentTabREC = tabREC;
}
	
	
	
jQuery(document).ready(function()  { 	   
  if(jQuery("#Content_1").length>0) {
    jQuery('#Content_1').show();
    jQuery('#Content_2').hide();
    jQuery('#Content_3').hide();
    jQuery('#Content_4').hide();
    highlightTabsREC(1);
    
    jQuery('#Tab_1').click(function() {
        jQuery('#Content_1').show();
        jQuery('#Content_2').hide();
        jQuery('#Content_3').hide();
        jQuery('#Content_4').hide();
    });
    
      jQuery('#Tab_2').click(function() {
        jQuery('#Content_2').show();
		jQuery('#Content_1').hide();        
        jQuery('#Content_3').hide();
        jQuery('#Content_4').hide();
    });
    
    
    jQuery('#Tab_3').click(function() {
        jQuery('#Content_3').show();
        jQuery('#Content_1').hide();
        jQuery('#Content_2').hide();
        jQuery('#Content_4').hide();	
    });
	       
  jQuery('#Tab_4').click(function() {
        jQuery('#Content_4').show();
        jQuery('#Content_3').hide();
        jQuery('#Content_2').hide();
        jQuery('#Content_1').hide();	
    });
    }
   
});	
	
	

/*Notable Alums*/
function thecarousel_initCallback(carousel) {
    
    jQuery('#thecarousel-next').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#thecarousel-prev').click(function() {
        carousel.prev();
        return false;
    });
    return false;
};


/*Featured*/
function thecarousel_initCallback2(carousel) {
    
    jQuery('#thecarousel-next2').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#thecarousel-prev2').click(function() {
        carousel.prev();
        return false;
    });
    return false;
};




/*Radar*/
function thecarousel_initCallback3(carousel) {
    
    jQuery('#thecarousel-next3').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#thecarousel-prev3').click(function() {
        carousel.prev();
        return false;
    });
    return false;
};



/*Records Slider*/
function thecarousel_initCallback4(carousel) {
    
    jQuery('#thecarousel-next4').click(function() {
        carousel.next();
       return false;
    });

    jQuery('#thecarousel-prev4').click(function() {
        carousel.prev();
        return false;
    });
    return false;
};


/*Records Slider*/
jQuery(document).ready(function() {

   if(jQuery("#carouselArea4").length>0) {
  jQuery('#carouselArea4').show(); 
     jQuery("#thecarousel4").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: thecarousel_initCallback4,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    
}
}); 



/*Notable Alums*/
jQuery(document).ready(function() {

   if(jQuery("#carouselArea").length>0) {
  jQuery('#carouselArea').show(); 
     jQuery("#thecarousel").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: thecarousel_initCallback,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    

}



/*Featured*/
   if(jQuery("#carouselArea2").length>0) {
  jQuery('#carouselArea2').show(); 
     jQuery("#thecarousel2").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: thecarousel_initCallback2,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    
}

/*Radar*/
   if(jQuery("#carouselArea3").length>0) {
  jQuery('#carouselArea3').show(); 
     jQuery("#thecarousel3").jcarousel({      
        start:1,
        scroll: 1,     
        initCallback: thecarousel_initCallback3,         
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null
    });    
}




});



function SectPlayerPos(){
sendValue(jQuery("#FRM_POS_POSITION_ID").val(),jQuery("#FRM_ORDER").val()); 
}


function SectPlayerOrd(){
sendValue(jQuery("#FRM_POS_POSITION_ID").val(),jQuery("#FRM_ORDER").val());  
}


function getBaseUrl() {
	urlTokens = window.location.href.split('/');
	url = urlTokens[0]+'//'+urlTokens[2];	
	return url;
}


// Function to handle ajax. 
//SANFORD data: "DB_OEM_ID=23100&SPID=45199&SPSID=132415&POSITION="+pos+"&ORDER="+ord, 
//PROD  data: "DB_OEM_ID=23100&SPID=71530&SPSID=602056&POSITION="+pos+"&ORDER="+ord,
function sendValue(pos, ord){
  jQuery.ajax({
        type:"post",
        url: getBaseUrl()+"/positionSelect.dbml",  
        data: "DB_OEM_ID=23100&SPID=71530&SPSID=602056&POSITION="+pos+"&ORDER="+ord,
      	success: function(html){   	
		   	        jQuery('#display').html(html);   	      

		   		}
  
    });   
}




