$(document).ready(function () {
    var tabContainers = $('.tabContainer');
    tabContainers.hide().filter(':first').show();
    
    $('div.tabs ul.tabNavigation a').click(function () {
        tabContainers.hide();
        tabContainers.filter(this.hash).show();
        $('div.tabs ul.tabNavigation a').removeClass('selected');
        $(this).addClass('selected');
        return false;
    }).filter(':first').click();

	var tabContainersP = $('.tabContainerP');
    tabContainersP.hide().filter(':first').show();
    
    $('div.tabs ul.tabNavigationP a').click(function () {
        tabContainersP.hide();
        tabContainersP.filter(this.hash).show();
        $('div.tabs ul.tabNavigationP a').removeClass('selected');
        $(this).addClass('selected');
        return false;
    }).filter(':first').click();

	$("#featured").tabs({fx:{opacity: "toggle"}}).tabs("rotate", 5000, true);  
		$(".ui-tabs-panel img").toggle(  
		function() {  
			$("#featured").tabs("rotate",0,true);  
		},  
		function() {  
		$("#featured").tabs("rotate",5000,true);  
	}); 

	bname = navigator.userAgent.toLowerCase();
	if (bname.indexOf('chrome') != -1){
		document.getElementById('headerblank').height = 84;
	}
});
