(function($) {	
	$(document).ready(function(){
		$('a.tab-header').click(function(){
			$('a.tab-header').removeClass('tab-header-active')
			$(this).addClass('tab-header-active');
		});			
		
		$('a.tab-header-other').click(function(){
			$('a.tab-header-other').removeClass('tab-header-other-active');
			$(this).addClass('tab-header-other-active');
			if($(this).attr('id')=="tab-only-overview"){
				$('div#other-tab-main-outer').addClass('other-tab-main-outer-overview-only');
			}else{
				$('div#other-tab-main-outer').removeClass('other-tab-main-outer-overview-only');
			}
		});
		var links=window.location;
		var vm_overview=links.toString().search('other-vm-overview');
		var wm_overview=links.toString().search('other-wm-overview');
		
		if(vm_overview !=-1 || wm_overview!=-1){
			$('div#other-tab-main-outer').addClass('other-tab-main-outer-overview-only');
		}
		
	});			
}) (jQuery);

