//Java script functions for use with the website
//of the European Association of Zoos and Aquaria
//Author: Frank Princee, EAZA Executive Office
 
function MonthName(mymonth)
{
if(mymonth == 0)
     month = " January "
else if(mymonth ==1)
     month = " February "
else if(mymonth ==2)
     month = " March "
else if(mymonth ==3)
     month = " April "
else if(mymonth ==4)
     month = " May "
else if(mymonth ==5)
     month = " June "
   else if(mymonth ==6)
     month = " July "
   else if(mymonth ==7)
     month = " August "
   else if(mymonth ==8)
     month = " September "
   else if(mymonth ==9)
     month = " October "
   else if(mymonth ==10)
     month = " November "
   else if(mymonth ==11)
     month = " December "
   return month;
}


function Copyright()
{
var dateMod = new Date(document.lastModified);
var hours = dateMod.getHours();
var minutes = dateMod.getMinutes();
var year = dateMod.getFullYear();

var timeValue = ", " + ((hours < 10) ? "0" : "") + hours;

timeValue += ((minutes < 10) ? ":0" : ":") + minutes + " hours";
if (year==1903) year=2003;

document.write("<TABLE WIDTH='100%'>"); 
document.write("<TR><TD class='smallfont'>");
document.write("<A HREF='../index.html' TARGET='_top'>");
document.write("<IMAGE SRC='../graphics/button/EAZAfooter.gif' ALIGN='left' BORDER='0'ALT='Home'></A></TD>");
document.write("<TD ALIGN='right' CLASS='smallfont'>&copy;"+ year);
document.write(" European Association of Zoos and Aquaria<BR>");
//document.write("updated on ");
//document.write(dateMod.getDate() + MonthName(dateMod.getMonth()) + year + timeValue);

document.write("</TD><TR>");
document.write("</TABLE>"); 
}

function changePages(toolbarURL,mainURL)
{
parent.topmenu.location.href=toolbarURL;
parent.main.location.href=mainURL;
}

function multiLoad(doc1,doc2) 
{ 
parent.topmenu.location.href=doc1; 
parent.main.location.href=doc2; 
} 

function hide(id) {
document.getElementById(id).style.visibility = "hidden"
}
function unhide(id) {
document.getElementById(id).style.visibility = "visible"
}


function EAZAlinks(ThisCountry,Footer)
{
var country = ["Austria","Belgium","Croatia","Czech Republic","Denmark","Estonia","Finland","France","Germany","Greece","Hungary","Ireland","Israel","Italy","Kazakstan","Kuwait","Latvia","Lithuania","Luxemburgh","Netherlands","Norway","Poland","Portugal","Qatar","Russia","Slovakia","Slovenia","Spain","Sweden","Switzerland","Turkey","Ukraine","United Arab Emirates","United Kingdom","United States"];




var x = 0;

/* create filename */


if (Footer == 1)
{
  document.write("<TABLE WIDTH='100%' BORDER=0>");
  document.write("<TR><TD align='top' class='smallfont'>");
  
}
/*document.write("Members of EAZA can be found in:<br>");*/

  for (var x = 0; x <34 ; x++)
  { 
   aTmpCountry = country[x].split(' ');  
   if (aTmpCountry.length > 1) { 
      HTMLfile = '4' + aTmpCountry[0]+ '_' + aTmpCountry[1]+'.html';
   } else {
      HTMLfile = '4' + aTmpCountry[0]+'.html';
   }
   if (country[x] == ThisCountry) 
      document.write("[" + ThisCountry + "]  ")
   else
      document.write("<A HREF=" + HTMLfile + " TARGET='_self'>" + country[x] + "</A>  ");
   if (Footer == 0) document.write("<BR>");
 };
 if (Footer == 1) document.write("</TD></TR></TABLE>");
}


