/*
SlipTabs 1.3.0	Version Date: 2010-03-17

"SlipTabs" is a Joomla module which provides tabbed display of articles. The tabs can on left, right, top or bottom of the content. It also supports the load module plugin.
Copyright (C) 2009-2010  Jino Varghese Chacko
	
This file is part of SlipTabs.

SlipTabs is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SlipTabs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SlipTabs.  If not, see <http://www.gnu.org/licenses/>.
*/
function showContentDesc(modid, ind, pos)
{
		i = 0;
		switch(pos)
		{
			case "top":
				thisstyle=document.getElementById("menu_" + modid + "_" + ind).style.borderBottom;
				while (document.getElementById("content_" + modid + "_" + i) != null) {
					document.getElementById("content_" + modid + "_" + i).style.display = "none";
					document.getElementById("menu_" + modid + "_" + i).style.borderBottom = thisstyle;
					document.getElementById("menu_" + modid + "_" + i).className= "sliptabs-top-menuitem-container";
					i++;
				}
				document.getElementById("menu_" + modid + "_" + ind).style.borderBottom = "none";
				document.getElementById("menu_" + modid + "_" + ind).className= "activetab";

				
				break;
			case "bottom":
				thisstyle=document.getElementById("menu_" + modid + "_" + ind).style.borderTop;
				while (document.getElementById("content_" + modid + "_" + i) != null) {
					document.getElementById("content_" + modid + "_" + i).style.display = "none";
					document.getElementById("menu_" + modid + "_" + i).style.borderTop = thisstyle;
					i++;
				}
				document.getElementById("menu_" + modid + "_" + ind).style.borderTop = "none";
				break;
			case "right":
				thisstyle=document.getElementById("menu_" + modid + "_" + ind).style.borderLeft;
				while (document.getElementById("content_" + modid + "_" + i) != null) {
					document.getElementById("content_" + modid + "_" + i).style.display = "none";
					document.getElementById("menu_" + modid + "_" + i).style.borderLeft = thisstyle;
					i++;
				}
				document.getElementById("menu_" + modid + "_" + ind).style.borderLeft = "none";
				break;
			case "left":
			default:
				thisstyle=document.getElementById("menu_" + modid + "_" + ind).style.borderRight;
				while (document.getElementById("content_" + modid + "_" + i) != null) {
					document.getElementById("content_" + modid + "_" + i).style.display = "none";
					document.getElementById("menu_" + modid + "_" + i).style.borderRight = thisstyle;
					i++;
				}
				document.getElementById("menu_" + modid + "_" + ind).style.borderRight = "none";
				break;
		}
		document.getElementById("content_" + modid + "_" + ind).style.display = "inline";
}

