self.name = "articulo";
var win = null;
ie4=(document.all&&!document.getElementById)?true:false;
nn4=(document.layers)?true:false;
ie5=(document.getElementById)?true:false;
nn6=(document.getElementsByTagName&&!document.all)?true:false;

function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function movein(which,html){
if (ie4) eval("document.all."+which+".innerHTML=html");
else if(ie5)  document.getElementById(which).innerHTML = html;
else if (nn4) {
eval('document.c'+which+'.document.i'+which+'.document.write(html)');
eval('document.c'+which+'.document.i'+which+'.document.close()');
}
}

function camestilo(cual,nuevo) {
if(document.all) {
var natural = document.all(cual);
if (natural.length != null) {
for (i=0; i<natural.length; i++)
natural(i).className = nuevo;
} else if(natural) {
natural.className = nuevo;
} } }
function mOvr(src,cl) { if(ie5) src.bgColor = cl; }
function mOut(src) { if(ie5) src.bgColor = ''; }
function mClk(src) { if(event.srcElement.tagName=='TD') src.children.tags('A')[0].click(); }

function printdiv() {
   var sOption="toolbar=yes,location=no,directories=yes,menubar=yes,";
       sOption+="scrollbars=yes,width=750,height=600,left=100,top=25"; 

   var sWinHTML = document.getElementById('div_articulo').innerHTML;

   var winprint=window.open("","",sOption);
       winprint.document.open();
       winprint.document.write('<html><body><div id="imprimir"></div></body></html>');
       winprint.document.close();
       winprint.focus();
       winprint.document.getElementById('imprimir').innerHTML=sWinHTML;
}

function ab_dic(uri) {
	NewWindow(uri+'?top=1','DicZOOnario','330','380','yes')
}
function ab_foto(uri) {
	NewWindow(uri,'Fotos','1000','560','yes')
}

startList = function() {
if (document.all && document.getElementById) {
navRoot = document.getElementById("nav");
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", "");
   }
   }
  }
 }
}
//var div_activo,arg;
function desplegar(des_div) {
	obj=document.getElementById(des_div)
	obj.style.display == "block" ? obj.style.display = "none" : obj.style.display = "block";
}
function modiv(c,dis){document.getElementById(c).style.display=dis;}

function submitonce(theform){
if (document.all||document.getElementById){
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset") {
	tempobj.disabled=true;
	tempobj.value='Aguarde por favor';
}	
}}}
