// JavaScript Document
var destVisivel_topo;
var timeToDest_topo = 8000;
var resTimer_topo;

function IEHoverPseudo_topo() {

	var navItems_topo = document.getElementById("primary-nav").getElementsByTagName("li");
	
	for (var i = 0; i < navItems_topo.length; i++) {
		if(navItems_topo[i].className == "menuparent") {
			navItems_topo[i].onmouseover=function() { this.className += " over"; }
			navItems_topo[i].onmouseout=function() { this.className = "menuparent"; }
		}
	}

}

window.onload = IEHoverPseudo_topo;

function showDest_topo(id)
{
	if(gE_topo('d_'+destVisivel_topo)) gE_topo('d_'+destVisivel_topo).className = "";
	if(gE_topo('d_'+id))
	{
		destVisivel_topo = id;
		gE_topo('d_'+id).className = "show";
	}
}

function gE_topo(tI) { var d_topo=document, r_topo, n_topo, i;
  if (tI instanceof Array) {
    for (n_topo=tI.length, i = 0; i < n_topo; i++) r_topo[r_topo.length]=d_topo.getElementById ? d_topo.getElementById(tI) : d_topo.all ? d_topo.all[tI] : false; return r_topo;
  } else { return (d_topo.getElementById) ? d_topo.getElementById(tI) : (d_topo.all) ? d_topo.all[tI] : false; }
}

destVisivel_topo = 0;

function timerDest_topo()
{
	if(timeToDest_topo != 0) resTimer_topo = setTimeout("nextDest_topo(); timerDest_topo();", timeToDest_topo);
}

timerDest_topo();
