/*
	Show and hide div content when clicking a link
	Version 1.0
	Last revision: 24.11.2009
	Modification of code found here: http://www.webmasterworld.com/forum91/441.htm by ashkosh
*/


function showhide(id){ 
		if (document.getElementById){ 
		var divobj = document.getElementById(id);
		var linkobj = document.getElementById("tabs").getElementsByTagName("a");
		var divcontentobj = document.getElementById("tab-content").getElementsByTagName("div");
		} 
		
		for (var i=0; i<divcontentobj.length; i++) { 
					if (divcontentobj.className!="selected-tab"){ 
					divcontentobj[i].className="un-selected-tab";
					} 
		}	
		
		
		for (var i=0; i<linkobj.length; i++) { 
			if (linkobj[i].title == divobj.id){ 
				linkobj[i].className="chosen";
				if (linkobj[i].className="chosen"){
				divobj.className="selected-tab";
				}
			 
			} else { 
				linkobj[i].className="unchosen";
				
			} 
		}
		
		

}  
