(function($) {	
	$(document).ready(function(){

		
		//hide sub-tab-other
		//showHide('other-subtab','other-subtab-1','ul');
		/*
		$('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);

function activeTab(linkClass, linkId, DivClass, divId, tabActive){
	//alert($(linkObj).attr("class"));
	//alert(linkClass);
	$('a.'+linkClass).removeClass(tabActive);
	$("#"+linkId).addClass(tabActive);
	$("div."+DivClass).hide();
	$("#"+divId).show();
}
function activeTabOther(linkClass, linkId, DivClass, divId, tabActive, number){
	//alert($(linkObj).attr("class"));
	//alert(number);
	$('a.'+linkClass).removeClass(tabActive);
	$("#"+linkId).addClass(tabActive);
	$("div."+DivClass).hide();
	$("#"+divId).show();
	if(divId=="othertabscontent-outer-1"){
		$("#other-mmg-overview").show();
		$("#other-mmg-lighter").hide();
		
	}
}
function showHide(hideClass, showId, tagHTMl){
	$("ul."+hideClass).hide();
	$("#"+showId).show();
}
 
function simpleTab(parent, id, show, hide){
	
	$('#'+parent+" li a").removeClass('tab-header-sub-active');
	$('#'+id).addClass('tab-header-sub-active');
	$('#'+show).show();
	$('#'+hide).hide();
	//sub-tabother	
}
