function tabSwitcher(whichOne){
	var flag;
	if(whichOne == 'omgeopress'){
		whichOne = 'press';
		flag = 'omgeo';
	}
		createdTabID = whichOne + "Tab";
		if (createdTabID != currentTab){
			document.getElementById(createdTabID).className='current';
			document.getElementById(currentTab).className='';
			currentTab = createdTabID;
		}
		createdContainerId = whichOne + 'Container';
		if (currentContainer != createdContainerId){
			document.getElementById(createdContainerId).style.display='block';
			document.getElementById(currentContainer).style.display='none';
			currentContainer = createdContainerId;
		}
// Used on the LOB Landing Page		
		if (whichOne == 'news' ){
			document.getElementById("viewAllContainer").innerHTML='<a href="/news/newsletters/index.php" class="more moreAll">View All News</a>'
		}
		if (whichOne == 'press' ){
			if(flag == 'omgeo'){
				document.getElementById("viewAllContainer").innerHTML='<a href="http://www.omgeo.com/pressroom/" target="_blank" class="more moreAll">View All Press</a>'
			} else {
				document.getElementById("viewAllContainer").innerHTML='<a href="/news/press/releases/index.php" class="more moreAll">View All Press</a>'
			}
		}
		if (whichOne == 'careers' ){
			document.getElementById("viewAllContainer").innerHTML='<a href="/careers/job_search/index.php" class="more moreAll">View All Careers</a>'
		}
		if (whichOne == 'notices' ){
			document.getElementById("viewAllContainer").innerHTML='<a href="/legal/imp_notices/index.php" class="more moreAll">View All Notices</a>'
		}
		if (whichOne == 'announcements' ){
			document.getElementById("viewAllContainer").innerHTML=announce_link;
		}
// Used on the issues page		
		if (whichOne == 'one' ){
			document.getElementById("viewAllContainer").innerHTML=tab_one_link;
		}
		if (whichOne == 'two' ){
			document.getElementById("viewAllContainer").innerHTML=tab_two_link;
		}
		if (whichOne == 'three' ){
			document.getElementById("viewAllContainer").innerHTML=tab_three_link;
		}
		if (whichOne == 'four' ){
			document.getElementById("viewAllContainer").innerHTML=tab_four_link;
		}
		if (whichOne == 'five' ){
			document.getElementById("viewAllContainer").innerHTML=tab_five_link;
		}
		if (whichOne == 'six' ){
			document.getElementById("viewAllContainer").innerHTML=tab_six_link;
		}
		
}
function setTab(whichFiles, link) {
	link = link.replace(/pub:/, "");
	outstr = '<a href="'+link+'" class="more moreAll">View All '+whichFiles+'</a>';
	return outstr;
}

