	function ActivateTab(iTab)
	{
		document.getElementById('TabsBannerInner').innerHTML=DisplayNames[iTab];
		if(iTab == 0)
		{
			
			if(!ContentLoaded[0])
			{
				document.getElementById("StoreReviews_at").innerHMTL = "Loading....";
				GetAjax("Ajax/AuthorTabs.asp", "type=StoreReviews&id="+AuthorID+"&widgetStart=2000", "StoreReviews_at", "StartUp(2000);");
				ContentLoaded[0] = true;
			}
			
			document.getElementById('StoreReviews_at').style.display='block';
			SetActive('StoreReviews');
		}
		else
		{
			document.getElementById('StoreReviews_at').style.display='none';
			SetUnActive('StoreReviews');
		}
	
		if(iTab == 1)
		{
			
			if(!ContentLoaded[1])
			{
				document.getElementById("RecipeReviews_at").innerHMTL = "Loading....";
				GetAjax("Ajax/AuthorTabs.asp", "type=RecipeReviews&id="+AuthorID+"&widgetStart=2000", "RecipeReviews_at", "StartUp(2000);");
				ContentLoaded[1] = true;
			}
			
			document.getElementById('RecipeReviews_at').style.display='block';
			SetActive('RecipeReviews');
		}
		else
		{
			document.getElementById('RecipeReviews_at').style.display='none';
			SetUnActive('RecipeReviews');
		}
		
		if(iTab == 2)
		{
			if(!ContentLoaded[2])
			{
				document.getElementById("Recipes_at").innerHMTL = "Loading....";
				GetAjax("Ajax/AuthorTabs.asp", "type=recipes&id="+AuthorID+"&widgetStart=2000", "Recipes_at", "StartUp(2000);");
				ContentLoaded[2] = true;
			}
		
			document.getElementById('Recipes_at').style.display='block';
			SetActive('Recipes');
		}
		else
		{
			document.getElementById('Recipes_at').style.display='none';
			SetUnActive('Recipes');
		}
		
		iView = iTab;
	}
	
	function RefreshReviews(author,type,sort,page)
	{
		if(type == "RecipeReviews")
		{
			document.getElementById("RecipeReviews_at").innerHMTL = "Loading....";
			GetAjax("Ajax/AuthorTabs.asp", "type=RecipeReviews&id="+author+"&sort="+sort+"&page="+page+"&widgetStart=2000", "RecipeReviews_at", "StartUp(2000);");
			ContentLoaded[1] = true;
		}else{
			document.getElementById("StoreReviews_at").innerHMTL = "Loading....";
			GetAjax("Ajax/AuthorTabs.asp", "type=StoreReviews&id="+author+"&sort="+sort+"&page="+page+"&widgetStart=2000", "StoreReviews_at", "StartUp(2000);");
			ContentLoaded[0] = true;	
		}
	}
	
	function RefreshRecipies(author, page,sort)
	{
	
		document.getElementById("Recipes_at").innerHMTL = "Loading....";
		GetAjax("Ajax/AuthorTabs.asp", "type=Recipes&id="+author+"&sort="+sort+"&page="+page+"&widgetStart=2000", "Recipes_at", "StartUp(2000);");
		ContentLoaded[2] = true;
	}