 function toggleDivContent(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].visibility = "show"
else if (document.all) document.all[''+id+''].style.visibility = "visible"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "visible"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].visibility = "hide"
else if (document.all) document.all[''+id+''].style.visibility = "hidden"
else if (document.getElementById) document.getElementById(''+id+'').style.visibility = "hidden"
}
}

numberofDivs=8
function DivSwitchContent  (x) {
   for (i=1;i<=numberofDivs;i++) {
      toggleDivContent('Nav'+i,0);
   }
   toggleDivContent('Nav'+x,1);
} 


function toggleDiv(id,flagit) {
if (flagit=="1"){
if (document.layers) document.layers[''+id+''].backgroundImage = "show"
else if (document.all) document.all[''+id+''].style.backgroundImage = "url(http://www.touchpointassociates.com/images/navigation_selected_bg_content.png)"
else if (document.getElementById) document.getElementById(''+id+'').style.backgroundImage = "url(http://www.touchpointassociates.com/images/navigation_selected_bg_content.png)"

if (document.layers) document.layers[''+id+''].color = "show"
else if (document.all) document.all[''+id+''].style.color = "#2B447F"
else if (document.getElementById) document.getElementById(''+id+'').style.color = "#2B447F"
}
else
if (flagit=="0"){
if (document.layers) document.layers[''+id+''].backgroundImage = "hide"
else if (document.all) document.all[''+id+''].style.backgroundImage = "none"
else if (document.getElementById) document.getElementById(''+id+'').style.backgroundImage = "none"


if (document.layers) document.layers[''+id+''].color = "hide"
else if (document.all) document.all[''+id+''].style.color = "#8a2e3d"
else if (document.getElementById) document.getElementById(''+id+'').style.color = "#8a2e3d"
}
}

numberofNavOptions=8
function DivSwitch  (x) {
   for (i=1;i<=numberofNavOptions;i++) {
      toggleDiv('toggle'+i,0);
   }
   toggleDiv('toggle'+x,1);
}

