	  var TabbedBoxID="TabbedBox1";
		var TabNames=new Array();
		  TabNames[1]="Tab1";
			TabNames[2]="Tab2";
			TabNames[3]="Tab3";
			TabNames[4]="Tab4";
		var TabContents=new Array();
		  TabContents[1]="TabContents/Featured/ThumbNail.html";
			TabContents[2]="TabContents/History/History.html";
			TabContents[3]="TabContents/InTheNews/InTheNews.html";
			TabContents[4]="TabContents/Events/WOFselection.html";
			
			
		var TabOpen = 1;
		var nTabs = 4;
		
	  function TchangeTabOpen(n)
		{
			document.getElementById(TabNames[TabOpen]+"l").style.borderBottom="1px solid #C0C0C0";
			document.getElementById(TabNames[TabOpen]).style.borderBottom="1px solid #C0C0C0";
			document.getElementById(TabNames[TabOpen]+"r").style.borderBottom="1px solid #C0C0C0";
			document.getElementById(TabNames[TabOpen]).style.color="#0080C0";
			document.getElementById(TabNames[n]+"l").style.borderBottom="none";	
			document.getElementById(TabNames[n]).style.borderBottom="none";	
			document.getElementById(TabNames[n]+"r").style.borderBottom="none";	
			document.getElementById(TabNames[n]).style.color="#00FF00";
			document.getElementById(TabbedBoxID).src=TabContents[n];
			TabOpen=n;
		}

		function onclickSetUp()
		{
		  for (i=1;i<=nTabs;i++)
			{
		  document.getElementById(TabNames[i]).onclick=Tonclick;
			}
		}
		
		function Tonclick(e)
		{
		  var tTarget;
			if (!e) e=window.event;
			
			if (e.target)
  			{
  			tTarget=e.target;
  			}
			else if (e.srcElement)
  		  {
  			tTarget=e.srcElement;
  			}
			if (tTarget.nodeType==3) // defeat Safari bug
  		  {
  			tTarget = tTarget.parentNode;
  			}
			
			var tID=tTarget.id;
			var i=0;
			i=tID.replace("Tab","");
			
			if (i>0 && i<=nTabs) TchangeTabOpen(i);
		}
	
		
		window.onload=onclickSetUp;
		