var currentTab = "tabs01";
var getCurrentTab = new String(window.location);
if (getCurrentTab.indexOf("?tabs") == -1) {
	getCurrentTab = "tabs01";
} else {
	getCurrentTab = getCurrentTab.substring(getCurrentTab.indexOf("?")+1,getCurrentTab.length);
}

function tabSwitch(tabId) {
	if (tabId != currentTab) {
		
		tabsTexto = document.getElementById(currentTab);
		tabsTextLefto = document.getElementById(currentTab + "_l");
		tabsTextRighto = document.getElementById(currentTab + "_r");
		tabsTextListo = document.getElementById(currentTab + "_list");
		tabsTexto.className = "tabsText";
		tabsTextLefto.src="images/line_blue.jpg";
		tabsTextRighto.src="images/line_blue.jpg";
		tabsTextListo.style.display = "none";

		tabsText = document.getElementById(tabId);
		tabsTextLeft = document.getElementById(tabId + "_l");
		tabsTextRight = document.getElementById(tabId + "_r");
		tabsTextList = document.getElementById(tabId + "_list");
		tabsText.className = "tabsTextSelect";
		tabsTextLeft.src="images/line_blue.jpg";
		tabsTextRight.src="images/line_blue.jpg";
		tabsTextList.style.display = "block";

		currentTab = tabId;
	}
}
tabSwitch(getCurrentTab);