//////////////////////////////////////////////////////////////////////////////

//COOKIE
///////////////////////////////////////////////////////////////////////////////
/*
   name - name of the cookie
   value - value of the cookie
   [expires] - expiration date of the cookie
     (defaults to end of current session)
   [path] - path for which the cookie is valid
     (defaults to path of calling document)
   [domain] - domain for which the cookie is valid
     (defaults to domain of calling document)
   [secure] - Boolean value indicating if the cookie transmission requires
     a secure transmission
   * an argument defaults when it is assigned null as a placeholder
   * a null placeholder is not required for trailing omitted arguments
*/

function setCookie(name, value, expires, path, domain, secure) {
  var curCookie = name + "=" + escape(value) +
      ((expires) ? "; expires=" + expires.toGMTString() : "") +
      ((path) ? "; path=" + path : "") +
      ((domain) ? "; domain=" + domain : "") +
      ((secure) ? "; secure" : "");
  document.cookie = curCookie;

}


/*
  name - name of the desired cookie
  return string containing value of specified cookie or null
  if cookie does not exist
*/

function getCookie(name) {
  var dc = document.cookie;
  var prefix = name + "=";
  var begin = dc.indexOf("; " + prefix);
  var cookie;
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;

  cookie =unescape(dc.substring(begin + prefix.length, end));
 
  if (cookie.length==0) cookie="en";

  return cookie;
}


/*
   name - name of the cookie
   [path] - path of the cookie (must be same as path used to create cookie)
   [domain] - domain of the cookie (must be same as domain used to
     create cookie)
   path and domain default if assigned null or omitted if no explicit
     argument proceeds
*/

function deleteCookie(name, path, domain) {
  if (getCookie(name)) {
    document.cookie = name + "=" +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    "; expires=Thu, 01-Jan-70 00:00:01 GMT";
  }
}

// date - any instance of the Date object
// * hand all instances of the Date object to this function for "repairs"

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

//////////////////////////////////////////////////////////////////////////////

//COOKIE
///////////////////////////////////////////////////////////////////////////////

function getlanguageNavigator(){
    language=window.navigator.language;

    alert(language);
    if(language){language=language.substring(0,2);}
    else{language="z";}

    switch (language){
       case "es" :      setCookie('language', "es");   break;
       default :        setCookie('language', "en");
    }
}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function imprimePres(){
var x;
    if (getCookie('language')=="en"){
           document.write(this.status[1]);
           document.write(this.topic[1]);
           document.write(this.addr[1]);
           document.write(this.tlf[1]);
           document.write(this.fax[1]);
        //   document.write(this.event[1]);

    }
    else { menu=this.menuEn;
           document.write(this.status[0]);
           document.write(this.topic[0]);
           document.write(this.addr[0]);
           document.write(this.tlf[0]);
           document.write(this.fax[0]);
        //   document.write(this.event[0]);
     }

   document.write("<marquee class=scroll behavior=scroll width=400 align=left  direction=up height=68 scrollamount=1 scrolldelay=25 truespeed onmouseover=this.stop() onmouseout=this.start()> <font size=2>");

//	for (indice=0;indice<5;indice++) document.write("* "+this.eventI[indice]+"<br><br>");

       // for (indice in this.eventI) document.write("* "+this.eventI[indice]+"<br><br>");
	//document.write("* "+this.eventI[0]+"<br><br>");
	//document.write("* "+this.eventI[1]+"<br><br>");
    document.write("</font> </marquee>");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function imprimeEv(){
var x;

    if (getCookie('language')=="en"){
           document.write(this.event[1]);

    }
    else { menu=this.menuEn;
           document.write(this.event[0]);
     }

    document.write("<marquee class=scroll behavior=scroll width=400 align=left  direction=up height=68 scrollamount=1 scrolldelay=25 truespeed onmouseover=this.stop() onmouseout=this.start()> <font size=2>");

	for (indice=0;indice<5;indice++) document.write("* "+this.eventI[indice]+"<br><br>");

       // for (indice in this.eventI) document.write("* "+this.eventI[indice]+"<br><br>");
	//document.write("* "+this.eventI[0]+"<br><br>");
	//document.write("* "+this.eventI[1]+"<br><br>");
    document.write("</font> </marquee>");
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function presentation (){


    this.status = new Array(2);
    this.topic  = new Array(2);
    this.addr   = new Array(2);
    this.tlf    = new Array(2);
    this.fax    = new Array(2);
    this.event  = new Array(2);

    this.eventI  = new Array(2);

     this.status[0] = "<B>:: Profesor Contratado Doctor ::  <br> :: Miembro Grupo Investigación <a href=http://www.gisum.uma.es/ target=_blank>Gisum</a> :: </B><br><a href=http://www.lcc.uma.es target=_blank>Dpto. Lenguajes y Ciencias de la Computación</a><br><a href=http://www.informatica.uma.es target=_blank>ETSI Informática</a>. <a href=http://www.uma.es target=_blank>Universidad de Málaga </a><BR><br>";
     this.status [1] = "<B>:: Associate Professor :: <br> :: Member of <a href=http://www.gisum.uma.es/ target=_blank>Gisum</a> (Software engineering Group) :: </B><br><a href=http://www.lcc.uma.es target=_blank>Computer Science Departament</a><br><a href=http://www.informatica.uma.es target=_blank>ETSI Informatica</a>. <a href=http://www.uma.es target=_blank>University of Malaga </a><BR><br>";

     this.topic [0] = "<table> <td> <B>:: ExInvestigador PostDoctoral :: </B><BR> <a href=http://csrc.nist.gov/ target=_blank>Computer Security Division</a>, <a href=http://www.itl.nist.gov/ target=_blank>ITL</a> <br> <a href=http://www.nist.gov/ target=_blank>Nat. Inst. Standard & Technology (NIST)</a><BR><br></td><td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=http://redfulbright.es/ target=_blank><img border=0 src=images/fulbright.jpg hspace=0 vspace=0></a></td></table>";
     this.topic [1] = "<table> <td> <B>:: Former Guest Researcher :: </B><BR> <a href=http://csrc.nist.gov/ target=_blank>Computer Security Division</a>, <a href=http://www.itl.nist.gov/ target=_blank>ITL</a> <br> <a href=http://www.nist.gov/ target=_blank>Nat. Inst. Standard & Technology (NIST)</a><BR><br></td><td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=http://redfulbright.es/ target=_blank><img border=0 src=images/fulbright.jpg hspace=0 vspace=0></td></table>";

     this.addr [0] = "<B>Áreas de Interés: </B> <br> <a href=http://www.nist.gov/sigmaxi/2008%20Posters/64.%20JoseAMontenegroAbstract.htm target=_blank>Criptografía Aplicada</a><br><a href=http://openpmi.sourceforge.net target=_blank> Inf. Autenticación y Autorización</a><br><br>";
     this.addr [1] = "<B>Topics: </B><br><a href=http://www.nist.gov/sigmaxi/2008%20Posters/64.%20JoseAMontenegroAbstract.htm target=_blank>Applied Cryptography</a> <br><a href=http://openpmi.sourceforge.net target=_blank>  Authentication and Authorization Inf.</a><br><br>";


//    this.addr  [0]= "<b>Dirección: </b> Computer Security Division, Room B352. <br> 100 Bureau Drive, Stop 8930. Gaithersburg, MD 20899-8930, USA <br><br>";
//    this.addr  [1]= "<b>Address: </b>  Computer Security Division, Room B352. <br> 100 Bureau Drive, Stop 8930. Gaithersburg, MD 20899-8930, USA <br><br>";

 //   this.status[0] = "<B>:: Ayudante :: </B><BR>Dpto. Lenguajes y Ciencias de la Computación.<br>  ETSI Informática. Universidad de Málaga <BR><br>";
 //   this.status[1] = "<B>:: Assistant Professor :: </B><BR>Computer Science Departament.<br>  ETSI Informatica. University of Malaga <BR><br>";

//    this.addr  [0]= "<b>Dirección: </b> <br> ETSI Informática, Campus Teatinos.<br> Universidad de Málaga. 29071 Málaga <br><br>";
//    this.addr  [1]= "<b>Address: </b> <br> ETSI Informatica, Campus Teatinos. <br> University of Malaga. 29071 Malaga, Spain <br><br>";

 //   this.tlf   [0]= "<b>Teléfono - Fax:</b> &nbsp;&nbsp;&nbsp;952 13 71 63 / 952 13 13 97 <br><br>";
 //   this.tlf   [1]= "<b>Phone - Fax: </b>  &nbsp;&nbsp;&nbsp;+34 952 13 71 63 / +34 952 13 13 97<br><br>";

	this.tlf   [0]= "<b>Teléfono - Email:</b> &nbsp;&nbsp;&nbsp; 952-13-2898 / monte(at)lcc.uma.es <br><br>";
      this.tlf   [1]= "<b>Phone - Email:</b> &nbsp;&nbsp;&nbsp;(34) 952-13-2898 / monte(at)lcc.uma.es <br><br>";

	this.fax   [0]= "<a href=https://twitter.com/monteDocencia target=_blank><img border=0 src=images/seguir.png hspace=0 vspace=0></a> <br>";
      this.fax   [1]= "<a href=https://twitter.com/monteDocencia target=_blank><img border=0 src=images/follow.png hspace=0 vspace=0></a> <br>";


 //   this.event [0]  = "<b>Eventos y Noticias: </b><br>";
 //   this.event [1]  = "<b>Events and News: </b><br>";

    this.imprimete= imprimePres;


//    this.eventI [0]= " PostDoctoral Fulbright Grant (NIST) --> (<a href='http://www.itl.nist.gov/div893/' target=_blank>Go</a>)";


//    this.eventI [0]= " Conference on Information Security and Cryptology --> (<a href='http://www.icisc.org/' target=_blank>Go</a>)";
//    this.eventI [1]= " Cloud Computing Conference --> (<a href='http://www.cloudcom.org/' target=_blank>Go</a>)";
//    this.eventI [2]= " Reviewer EuroCrypt 2009 --> (<a href='http://www.iacr.org/conferences/eurocrypt2009/' target=_blank>Go</a>)";
//    this.eventI [3]= " Reviewer Journal of Systems and Software --> (<a href='http://www.elsevier.com/wps/find/journaldescription.cws_home/505732/description#description' target=_blank>Go</a>)";
//    this.eventI [4]= " OpenPMI Portal --> (<a href='http://openPmi.sourceforge.net' target=_blank>Go</a>)  ";
//    this.eventI [5]= " Photos --> (<a href='http://www.flickr.com/photos/jose_a_montenegro/' target=_blank>Go</a>)";


}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function eventos (){


    this.event  = new Array(2);

    this.eventI  = new Array(4);

    this.event [0]  = "<b>Eventos y Noticias: </b><br>";
    this.event [1]  = "<b>Events and News: </b><br>";

  //  this.imprimete= imprimeEv;


//    this.eventI [0]= " PostDoctoral Fulbright Grant (NIST) --> (<a href='http://www.itl.nist.gov/div893/' target=_blank>Go</a>)";



    this.eventI [0]= " Conference on Information Security and Cryptology  --> (<a href='http://www.icisc.org//' target=_blank>Go</a>)";
    this.eventI [1]= " Cloud Computing Conference --> (<a href='http://www.cloudcom.org/' target=_blank>Go</a>)";
    this.eventI [2]= " Reviewer EuroCrypt 2009 --> (<a href='http://www.iacr.org/conferences/eurocrypt2009/' target=_blank>Go</a>)";
    this.eventI [3]= " Reviewer Journal of Systems and Software --> (<a href='http://www.elsevier.com/wps/find/journaldescription.cws_home/505732/description#description' target=_blank>Go</a>)";
    this.eventI [4]= " OpenPMI Portal --> (<a href='http://openPmi.sourceforge.net' target=_blank>Go</a>)  ";
    this.eventI [5]= " More photos --> (<a href='http://www.flickr.com/photos/jose_a_montenegro/' target=_blank>Go</a>)";


}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////


var sURL = unescape(window.location.pathname);


function statusPage (){
    this.actual =  0;
    this.language= "en";
}

	
function changeLanguage(language){
    setCookie('language', language);
    window.location.replace( sURL );
}

function cambiaIframeIni (){
    //getlanguageNavigator();
    if (getCookie('status2')) document.getElementById("iframe").src=getCookie('status2');
}

function cambiaIframe (nuevo){

    var x=document.getElementById('menu').rows[0].cells;

    for (j=1;j<7;j++) x[j].className='borde';

    if (nuevo=='index.es.html')     status.actual=0;
    if (nuevo=='public.es.html')    status.actual=1;
    if (nuevo=='formac.es.html')    status.actual=2;
    if (nuevo=='proyec.es.html')    status.actual=3;
    if (nuevo=='doc.es.html')       status.actual=4;
    if (nuevo=='eve.es.html')       status.actual=5;

    setCookie('status', status.actual);
    setCookie('status2',nuevo);


    if (getCookie('language')=="en") document.label.textbox.value=menu[status.actual].menuEn;
    else document.label.textbox.value=menu[status.actual].menu;

    document.getElementById("iframe").src=nuevo;

    x[status.actual+1].className='seccionactual';

}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////

function imprimete(){

    var seccion;
    var menu,link;

    menu=this.menu; link= this.enlace;

    if (getCookie('language')=="en"){menu=this.menuEn; link= this.enlace;}
    else { menu=this.menu; link= this.enlace; }

    //alert(menu);
    //alert(document.getElementById("iframe").src);

    if (status.actual==this.number)
        document.write("<TD class=seccionactual style='BORDER-TOP-STYLE: solid; BORDER-RIGHT-STYLE: solid;");
    else
        document.write("<TD class=borde style='BORDER-TOP-STYLE: solid; BORDER-RIGHT-STYLE: solid;");

    if (this.number==0) document.write("BORDER-LEFT-STYLE: solid;");
    else  document.write("BORDER-LEFT-STYLE: none;");

    document.write("BORDER-BOTTOM-STYLE: solid;' width="+this.length+">&nbsp;");
    seccion="<A class=seccion href=javascript:cambiaIframe('"+link+"')>"+menu+"</A></TD>";

    document.write(seccion);

}


function enlace (number, menu, enlace, length){
    this.number=number;
    this.menu = menu;
    this.enlace = enlace;
    this.length = length;
    this.menuEn =null;
    this.content =null;
    this.imprimete = imprimete;
}

//creamos un enlace
enlace1 = new enlace(0,"Inicio","index.es.html",100);
enlace1.menuEn="Home";

enlace2 = new enlace(1,"Publicaciones","public.es.html",100)
enlace2.menuEn="Publications";

enlace3 = new enlace(2,"Formación","formac.es.html",100)
enlace3.menuEn="Education";

enlace4 = new enlace(3,"Proyectos","proyec.es.html",100)
enlace4.menuEn="Projects";

enlace5 = new enlace(4,"Docencia","doc.es.html",100)
enlace5.menuEn="Teaching";

enlace6 = new enlace(5,"Eventos Científicos","eve.es.html",110)
enlace6.menuEn="Scientific Events";

var menu= new Array(6);
menu[0]=enlace1;menu[1]=enlace2;menu[2]=enlace3;
menu[3]=enlace4;menu[4]=enlace5;menu[5]=enlace6;


var status= new statusPage();

//////////////////////////////////////////////////////////////////////////
 function getTitleMenu(){

    document.write("&nbsp;<INPUT  readonly=yes TYPE=text  style='BORDER-RIGHT: #000000 0px none; BORDER-TOP: #000000 1px none; BORDER-LEFT: #000000 1px none; COLOR: #ffffff; BORDER-BOTTOM: #000000 1px none; FONT-FAMILY: Verdana; FONT-WEIGHT: bold; FONT-SIZE: 9pt; BACKGROUND-COLOR: #FFFFFF ' VALUE=");

    if (getCookie('language')=="en") document.write(menu[status.actual].menuEn);
    else document.write(menu[status.actual].menu);

   document.write(" NAME=textbox SIZE=25>");
 }

//////////////////////////////////////////////////////////////////////////

function imprimeMenu(){


    document.write("<br><TABLE id='menu' cellSpacing=0 cellPadding=0 width='100%'><TBODY><TR><TD width=0>&nbsp;</TD>");
        for (i=0;i<menu.length;i++){
           menu[i].imprimete();
        }
    document.write("<TD>&nbsp;</TD></TR>      <TR></TR></TBODY></TABLE>");

    if (getCookie('language')=="en") document.title="PhD Jose A. Montenegro";
    else document.title="Dr Jose A. Montenegro";
}
/////////////////////////////////////////////////////////////////////////

function publication (section, title, authors, congress, editorial,pdf){

    this.section   = section;
    this.title     = title;

    this.authors   = authors;
    this.congress  = congress;

    this.editorial = editorial;

   if (pdf!="null") this.pdf = pdf;
    else 	this.pdf = "null";

    this.imprimete = printPublication;

}

/////////////////////////////////////////////////////////////////////////

function googleLink(link){

	_uacct = "UA-1378314-1";
	urchinTracker();
	window.open(link.href, link.target, 'width=800,height=800'); 
}

/////////////////////////

function printPublication(){

  document.write(" <TABLE cellSpacing=0 cellPadding=1 width=99% align=left border=0><TBODY><TR>");
  document.write(" <TD class=Cabpub>"+this.title);

  if (this.pdf=="null")   document.write("<br>");
  else  document.write(" (<a href='papers/"+this.pdf+"' target=on_blank onClick= googleLink(this); return false;>PDF</a>)<br>");


  document.write(" <TABLE cellSpacing=0 cellPadding=3 width=100% border=0> <TBODY>  <TR> <TD class=Cuepub>");
  document.write(" <b>"+this.authors+"<br></b>");
  document.write(this.congress+"<br>");
  document.write(this.editorial+"<br>");
  document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR><BR><br><br>");

}

/////////////////////////////////////////////////////////////////////////


    function sectionPub (section, level){

        this.section   = section;
        this.level     = level;

        this.imprimete = printSecPub;
        this.sectionEn =null;

        this.publications = null;
    }

    function printSecPub(){

        if (getCookie('language')=="en")  document.write(" <p class=TipoPub>" +this.sectionEn+ "</p>");
        else          document.write(" <p class=TipoPub>" +this.section+ "</p>");

        if (this.publications!=null)
        {
//          alert(this.publications.length);
            for (i=this.publications.length-1;i>-1;i--)  this.publications[i].imprimete();
        }
    }


/////////////////////////////END - PUBLICATION////////////////////////////////////////////

/////////////////////////////INI - PROJECTS ////////////////////////////////////////////


function project (section, title, founded, partners, duration,link){

    this.section   = section;
    this.title     = title;
    this.founded   = founded;
    this.partners  = partners;
    this.duration = duration;

   if (link!="null") this.link = link;
   else this.link = "null";

    this.imprimete = printProject;

}

/////////////////////////////////////////////////////////////////////////

function printProject(){

  document.write(" <TABLE cellSpacing=0 cellPadding=1 width=99% align=left border=0><TBODY><TR>");
  document.write(" <TD class=Cabpub>"+this.title);

  if (this.link=="null")   document.write("<br>");
  else  
	if (getCookie('language')=="en")  document.write(" (<a href='"+this.link+"' target=on_blank return false;>Project's WebSite</a>)<br>");
	else 				    	    document.write(" (<a href='"+this.link+"' target=on_blank return false;>Web del Proyecto</a>)<br>");

  document.write(" <TABLE cellSpacing=0 cellPadding=3 width=100% border=0> <TBODY>  <TR> <TD class=Cuepub>");

	if (getCookie('language')=="en")  {
	  document.write(" <b> Founded: </b>"+this.founded+"<br>");

	document.write(" <b> Partners: </b>"+this.partners+"<br>");


	  document.write(" <b> Duration: </b>"+this.duration+"<br>");


	}
	else{
	  document.write(" <b> Fondos: </b>"+this.founded+"<br>");
	  document.write(" <b> Participantes: </b>"+this.partners+"<br>");
	  document.write(" <b> Duración: </b>"+this.duration+"<br>");
	}
  
if (this.partners.length > 350) document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR><BR><br><br><br><br><br>");
else  
if (this.partners.length > 150) document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR><BR><br><br><br><br>");
	else  document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR><BR><br><br>");

}
/////////////////////////////////////////////////////////////////////////

    function sectionProj (section, level){

        this.section   = section;
        this.level     = level;

        this.imprimete = printSecProj;
        this.sectionEn =null;

        this.projects = null;
        this.projectsEn = null;

    }
/////////////////////////////////////////////////////////////////////////

    function printSecProj(){

        if (getCookie('language')=="en")  {
			document.write(" <p class=TipoPub>" +this.sectionEn+ "</p>");
		      if (this.projectsEn!=null) for (i=this.projectsEn.length-1;i>-1;i--)  this.projectsEn[i].imprimete();
		}
        else    {
		      document.write(" <p class=TipoPub>" +this.section+ "</p>");
			if (this.projects!=null) for (i=this.projects.length-1;i>-1;i--)  this.projects[i].imprimete();
	  }
        
        
    }

/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

function MasterThesis (id, title, titulo, author){

    this.id  	= id;
    this.title     = title;
    this.titulo    = titulo;
    this.author   = author;

    this.imprimete = printMastherThesis;

}
/////////////////////////////////////////////////////////////////////////

function printMastherThesis(){


  document.write(" <TABLE cellSpacing=0 cellPadding=1 width=99% align=left border=0><TBODY><TR>");
	if (getCookie('language')=="en")  
		  document.write(" <TD class=Cabpub>"+this.title+"<br>");
	else   document.write(" <TD class=Cabpub>"+this.titulo+"<br>");

  document.write(" <TABLE cellSpacing=0 cellPadding=3 width=100% border=0> <TBODY>  <TR> <TD class=Cuepub>");

	if (getCookie('language')=="en")  {
	  document.write(" <b> Author: </b>"+this.author+"<br>");  
	  document.write(" University of Malaga. Computer Science Dpt. (Spain)<br>");  
	}
	else{
	  document.write(" <b> Autor: </b>"+this.author+"<br>");
	  document.write(" Universidad de Málaga. Dpto. Lenguajes y Ciencias Computación<br>");  
	}
  
    document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR><BR>");

}
/////////////////////////////////////////////////////////////////////////
    function sectionMasterThesis (section, id){

        this.section   = section;
        this.id     = id;

        this.imprimete = printMasterThesis;
        this.sectionEn =null;
        this.masterTh= null;

    }
/////////////////////////////////////////////////////////////////////////

    function printMasterThesis(){


	

        if (getCookie('language')=="en")  document.write(" <p class=TipoPub>" +this.sectionEn+ "</p>");
        else		      		document.write(" <p class=TipoPub>" +this.section+ "</p>");
              
	  for (i=this.masterTh.length-1;i>-1;i--)  this.masterTh[i].imprimete();

	  
    }

/////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////

function Miscelanea (id, title, titulo, second, segundo){

    this.id  	= id;
    this.title     = title;
    this.titulo    = titulo;
    this.second   = second;
    this.segundo   = segundo;

    this.imprimete = printMiscelaneaP;

}
/////////////////////////////////////////////////////////////////////////

function printMiscelaneaP(){


  document.write(" <TABLE cellSpacing=0 cellPadding=1 width=99% align=left border=0><TBODY><TR>");
	if (getCookie('language')=="en")  
		  document.write(" <TD class=Cabpub>"+this.title+"<br>");
	else   document.write(" <TD class=Cabpub>"+this.titulo+"<br>");

  document.write(" <TABLE cellSpacing=0 cellPadding=3 width=100% border=0> <TBODY>  <TR> <TD class=Cuepub>");

	if (getCookie('language')=="en")  {
	  document.write(this.second+"<br>");  
	}
	else{
	  document.write(this.segundo+"<br>");
	}
  
    document.write(" </td></tr> </TBODY></TABLE>  </TD></TR> </TBODY></TABLE><BR><BR><BR>");

}
/////////////////////////////////////////////////////////////////////////
    function sectionMiscelanea (section, id){

        this.section   = section;
        this.id     = id;

        this.imprimete = printMiscelanea;
        this.sectionEn =null;
        this.mis= null;

    }
/////////////////////////////////////////////////////////////////////////

    function printMiscelanea(){
        if (getCookie('language')=="en")  document.write(" <p class=TipoPub>" +this.sectionEn+ "</p>");
        else		      		document.write(" <p class=TipoPub>" +this.section+ "</p>");
              
	  for (i=this.mis.length-1;i>-1;i--)  this.mis[i].imprimete();

	  
    }


