function serv() 
{
	document.getElementById('serv+').style.display='none';
	document.getElementById('serv-').style.display='block';
}
function serv_fecha() 
{
	document.getElementById('serv-').style.display='none';
	document.getElementById('serv+').style.display='block';
}

function openPop1(){
	window.open('../entrevistas/entrevistas.asp?v=fatimaturci','','scrollbars=no,menubar=no,width=319,height=277,resizable=no,toolbar=no,location=no,status=no');
}

function openPop2(){
	window.open('../entrevistas/entrevistas.asp?v=alshop','','scrollbars=no,menubar=no,width=319,height=277,resizable=no,toolbar=no,location=no,status=no');
}

function trocaClasse(e){
    if(typeof(e)=='undefined')var e=window.event
    source=e.target?e.target:e.srcElement
    if(source.nodeType == 3)source = source.parentNode
    o=source.parentNode
    o.className=(o.className=="aberto")?"fechado":"aberto"
    return false
}

window.onload=function(){

    l=document.getElementById("itens")
    for(var i=0;i<l.childNodes.length;i++)
	if(l.childNodes[i].nodeType==1) {
            if(l.childNodes[i].className == "aberto" || l.childNodes[i].className == "fechado") {
	        l.childNodes[i].childNodes[0].onclick=trocaClasse
            }
	}

}

function trocaClasse(f){
    if(typeof(f)=='undefined')var f=window.event
    source=f.target?f.target:f.srcElement
    if(source.nodeType == 3)source = source.parentNode
    p=source.parentNode
    p.className=(p.className=="aberto")?"fechado":"aberto"
    return false
}

window.onload=function(){

    m=document.getElementById("itens")
    if(m)
    {
    for(var i=0;i<m.childNodes.length;i++)
	if(m.childNodes[i].nodeType==1) {
            if(m.childNodes[i].className == "aberto" || m.childNodes[i].className == "fechado") {
	        m.childNodes[i].childNodes[0].onclick=trocaClasse
            }
	}
    }
}
