 var curTab = 0;

    var tabIcons = new Array();
    tabIcons[0] = "Moda";
    tabIcons[1] = "Retrato";
    tabIcons[2] = "Arquiterura";
    tabIcons[3] = "Fotojornalismo";
    tabIcons[4] = "Shows";
    var idxIncrement = 1;

    function selectTab(idx) {
      deselectTab(curTab);
      document.getElementById("tabImgLink" + idx).style.display = "none";
      document.getElementById("tabImgNoLink" + idx).style.display = "inline";
      document.getElementById("tabImg" + idx).style.backgroundColor = "#BFD0EA";

      document.getElementById("tabCaptionLink" + idx).style.display = "none";
      document.getElementById("tabCaptionNoLink" + idx).style.display = "inline";
      document.getElementById("tabCaption" + idx).style.backgroundColor = "#BFD0EA";

      if (document.getElementById("tabLeft" + (idx + idxIncrement)) != null) {
        document.getElementById("tabLeft" + (idx + idxIncrement)).style.backgroundColor = "#BFD0EA";
      }

      document.getElementById("divBody" + idx).style.display = "block";

      curTab = idx;
    }

    function deselectTab(idx) {
      document.getElementById("tabImgLink" + idx).style.display = "inline";
      document.getElementById("tabImgNoLink" + idx).style.display = "none";
      document.getElementById("tabImg" + idx).style.backgroundColor = "#E4E4E4";

      document.getElementById("tabCaptionLink" + idx).style.display = "inline";
      document.getElementById("tabCaptionNoLink" + idx).style.display = "none";
      document.getElementById("tabCaption" + idx).style.backgroundColor = "#E4E4E4";

      if (document.getElementById("tabLeft" + (idx + idxIncrement)) != null) {
        document.getElementById("tabLeft" + (idx + idxIncrement)).style.backgroundColor = "#E4E4E4";
      }

      document.getElementById("divBody" + idx).style.display = "none";
    }

/////////

function selectModa(n) {
	for (i=1;i<20;i++) {
		if (n==i) {
		document.getElementById("moda" + n).style.display = "inline";
		}else {   	
   	document.getElementById("moda" + i).style.display = "none";
		}	
	}
}

/////////////

function selectRetrato(n) {
	for (i=1;i<20;i++) {
		if (n==i) {
		document.getElementById("retrato" + n).style.display = "inline";
		}else {   	
   	document.getElementById("retrato" + i).style.display = "none";
		}	
	}
}

/////////////

function selectBanda(n) {
	for (i=1;i<20;i++) {
		if (n==i) {
		document.getElementById("banda" + n).style.display = "inline";
		}else {   	
   	document.getElementById("banda" + i).style.display = "none";
		}	
	}
}

///////////////////////

function selectShow(n) {
	for (i=1;i<20;i++) {
		if (n==i) {
		document.getElementById("show" + n).style.display = "inline";
		}else {   	
   	document.getElementById("show" + i).style.display = "none";
		}	
	}
}

///////////////////////

function selectStill(n) {
	for (i=1;i<20;i++) {
		if (n==i) {
		document.getElementById("still" + n).style.display = "inline";
		}else {   	
   	document.getElementById("still" + i).style.display = "none";
		}	
	}
}

