// JavaScript Document
startList = function() {
  if (document.all && document.getElementById) {
    allULs = document.getElementsByTagName("UL");
	for (var j=0; j<allULs.length; j++) {
        if (allULs[j].className == "dropdown" ||
          allULs[j].id == "menu") {
            navRoot = allULs[j];
            for (i=0; i<navRoot.childNodes.length; i++) {
                node = navRoot.childNodes[i];
                if (node.nodeName=="LI") {
                    node.onmouseover=function() {
                        this.className+=" over";
                    }
                    node.onmouseout=function() {
                        this.className=this.className.replace
                        (" over", "");
                    }
                }
            }
        }
    }
  }
}
window.onload=startList;

function tau__formataTitle(title) {
    // desc | cores | ref
    if (title == undefined) return '';
    var lstNomes = new Array('titulo','tecnica','dimensao','colecao','outros1','outros2');
    var strFormatado = '';
    var i,lstPartes = title.split('|');
    if (lstPartes.length < 3) {
        lstNomes = ['descricao','ref'];
    }
    for (i=0;i<lstPartes.length;i++) {
        strFormatado += '<span class="'+lstNomes[i]+'">'+lstPartes[i]+'</span> ';
    }
    return strFormatado;
}

function flipVisible(tagName,className,idHead) {
	var lstTags = document.getElementsByTagName(tagName);
	for (var count=0;count<lstTags.length;count++) {
		if (lstTags[count].className.indexOf(className)!=-1)
		  lstTags[count].style.display =
			(lstTags[count].style.display == 'block') ?
			'none' : 'block';
	}
}

