<!-- Entry Selector-->
//Left Nav Java Script









var cindex=-1;

var ac;

var unsel="/gi/img/assets/3602/CLEAR.GIF";  // when entry is unselected

var sel="/gi/img/assets/3602/nav_arrow2.gif";      // when entry is selected

var oversel="/gi/img/assets/3602/nav_arrow2.gif"; // when mouse is over a selection





function unload(){

  window.status="Oo-roo mate ...";

  if (cindex != -1)

    eval("document.imgform.sel"+cindex+".src=\""+sel+"\"");

  return true;

}



function load()

{

  // set cindex to the default entry here ..

  cindex=-1;

  if (cindex != -1)

    eval("document.imgform.sel"+cindex+".src=\""+sel+"\"");        

    

}



// a new entry is selected

function selectChange(index)

{

  if (cindex != -1)        

    eval("document.imgform.sel"+cindex+".src=\""+unsel+"\"");     

  eval("document.imgform.sel"+index+".src=\""+sel+"\"");        

  cindex=index;   

  // do other things here ...

}



// mouse just moved away from this selection

function selectOut(index)

{

  if (index == cindex) // change to current selection

    eval("document.imgform.sel"+index+".src=\""+sel+"\"");

  else // unselect

    eval("document.imgform.sel"+index+".src=\""+unsel+"\"");

  window.status="";

  return true;

}



// mouse is over this selection

function selectOver(index) { 

  eval("document.imgform.sel"+index+".src=\""+oversel+"\""); 

  // window.status=url; 
 return true;

}



function beginEntry()

{

  document.writeln("<FORM name=\"imgform\">\n<table border=3>");

  ac=1;

}



function anEntry(cc,flags, selection)

{

  document.writeln("<TR><TD><IMG NAME=sel"+cc+" WIDTH=7 HEIGHT=7 SRC="../../../elecciones/glosarioelec_files/+unsel+"></TD>");

  document.writeln("<TD><a "+flags+" onMouseOut=\"return selectOut("+cc+");\"" +
  " onMouseOver=\"return selectOver("+cc+");\"" +
  " href=\"javascript:selectChange("+cc+")\">"+selection+"</A></TD></TR>")

}



function newEntry(selection)

{

  anEntry(ac,"",selection);

  ac++;

}



function newEntryFlag(flags,selection)

{

  anEntry(ac,flags,selection);

  ac++;

}



function endEntry()

{

  document.writeln("</TABLE></FORM>");

}

// end -->