jQuery(document).ready(function(){
	
jQuery(".tabsbox:not(:first)").hide();

	//to fix u know who
	jQuery(".tabsbox:first").show();
	
	jQuery("#tab ul li a").click(function(){
		stringref = jQuery(this).attr("href").split('#')[1];

		jQuery('.tabsbox:not(#'+stringref+')').hide();

		if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
			jQuery('.tabsbox#' + stringref).show();
		}
		else 
			jQuery('.tabsbox#' + stringref).fadeIn();
		

		//clear highlight from previous tab title
		jQuery('#tab ul li a:not(#' + stringref + 't)').removeClass('currentnav');
		//highlight currenttab title
		jQuery('#tab ul li a[href=#' + stringref + ']').addClass('currentnav');
	
		return false;
	});
	
	//FOR COUNTRY GROUP TABS

	jQuery(".tabsbox1:not(:first)").hide();

	//to fix u know who
	jQuery(".tabsbox1:first").show();
	
	jQuery("#tab1 ul li a").click(function(){
		stringref = jQuery(this).attr("href").split('#')[1];

		jQuery('.tabsbox1:not(#'+stringref+')').hide();

		if (jQuery.browser.msie && jQuery.browser.version.substr(0,3) == "6.0") {
			jQuery('.tabsbox1#' + stringref).show();
		}
		else 
			jQuery('.tabsbox1#' + stringref).fadeIn();
		

		//clear highlight from previous tab title
		jQuery('#tab1 ul li a:not(#' + stringref + 't)').removeClass('currentnav');
		//highlight currenttab title
		jQuery('#tab1 ul li a[href=#' + stringref + ']').addClass('currentnav');
	
		return false;
	});
	
	
//	// LOGIN REGISTER FORM SLIDE
//
//	// Expand Panel
//	$("#open").click(function(){
//		$("div#joinus").slideDown("slow");	
//	});	
// 
//	// Collapse Panel
//	$("#close").click(function(){
//		$("div#joinus").slideUp("slow");	
//	});		
// 
//	// Switch buttons from "Log In | Register" to "Close Panel" on click
//	$("#toggle a").click(function () {
//		$("#toggle a").toggle();
//	});	
//
//	// Expand Panel
//	$("#open1").click(function(){
//		$("div#login").slideDown("slow");	
//	});	
// 
//	// Collapse Panel
//	$("#close1").click(function(){
//		$("div#login").slideUp("slow");	
//	});		
// 
//	// Switch buttons from "Log In | Register" to "Close Panel" on click
//	$("#toggle1 a").click(function () {
//		$("#toggle1 a").toggle();
//	});	



});
