<!--
function eMailing(eName,eHost,subject){
	if (subject!=null){
		document.location="mailto:"+eName+"@"+eHost+"?subject="+subject;
	} else {
		document.location="mailto:"+eName+"@"+eHost;
	}
	
}
function sendEmail(eName,eHost,subject){
	if (subject!=null){
		document.location="mailto:"+eName+"@"+eHost+"?subject="+subject;
	} else {
		document.location="mailto:"+eName+"@"+eHost;
	}
}
function openWindow(theUrl, theName, theProp){
    window.open(theUrl, theName, theProp);
}
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function dropDown() { //v6.0
    var i,p,v,obj,args=dropDown.arguments;
 	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { 
		p=args[i+1];
		v=args[i+2];
		if (obj.style) { 
			obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;
			
		}
		obj.visibility=v;
		//Position the layer
		//First get the positin where it has to be according to the width of the visitors page
		var widthTable=766;
		if (window.innerWidth){
			var windowWidthNow=(((window.innerWidth*1)-widthTable)/2);	
		}else{
			if (document.body.clientWidth){
				var windowWidthNow=(((document.body.clientWidth*1)-widthTable)/2);
			} else {
				if (document.documentElement.clientWidth){
					var windowWidthNow=(((document.documentElement.clientWidth*1)-widthTable)/2);
				} else {
					var windowWidthNow=0;
				}
			}
		}
		//if the window of the visitor is too small, it set the position to CERO
		if (windowWidthNow < 0){
			var windowWidthNow=0;
		}
		obj.left=windowWidthNow+p;
	}
}

function createLayers(drop){
	var tableTitle ='<div id="'+layerProp[drop]['nameT']+'" style="position:absolute; left:0px; top:65px; z-index:3; visibility: hidden; width: 10px; height: 10px;">';
		tableTitle =tableTitle+'<table width="'+layerProp[drop]['widthT1']+'" border="0" cellspacing="0" cellpadding="0"><tr> <td width="'+layerProp[drop]['widthT2']+'" height="21" align="center" background="http://www.iucn.org/wl/grafics/bg-titles-orange.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0">';
		tableTitle =tableTitle+'<tr><td width="100%" align="center" ><a href="#menu" class="11-green" onClick=\'dropDown('+layerProp[drop]['action']+')\'><strong>'+layerProp[drop]['showT']+'</strong><img src="http://www.iucn.org/wl/grafics/arrow-drop-green.gif" width="9" height="7" border="0"></a></td>';
		tableTitle =tableTitle+'</tr></table></td><td align="left">&nbsp;</td></tr><tr><td height="1" bgcolor="#FFFFFF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td>';
		tableTitle =tableTitle+'<td bgcolor="#FFFFFF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr></table>';
		tableTitle =tableTitle+'</div>';

	var tableHead='<table width="100%"  border="0" cellspacing="0" cellpadding="4"><tr>';
		tableHead=tableHead+'<td valign="bottom" height="35"><a href="'+layerProp[drop]['headLink']+'" class="13-green">&nbsp;<strong>'+layerProp[drop]['headShow']+'</strong>&nbsp;<img src="http://www.iucn.org/wl/shared_images/bullet-more-green.gif" width="15" height="11" border="0"></a></td>';
		tableHead=tableHead+'<td align="right" valign="top"><a href="#menu" class="09-navy" onClick=\'dropDown('+layerProp[drop]['action']+')\'>[close]</a></td></tr><tr><td colspan="2" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
		tableHead=tableHead+'<tr><td background="http://www.iucn.org/wl/grafics/line-dot-green-b.gif"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr></table></td></tr></table>';
	
	var tableList='<table width="100%"  border="0" cellspacing="0" cellpadding="3"><tr>';
		var cellCount=0;
		while (cellCount<(contList[drop].length-1)){ //Creates the four cells
			cellCount=cellCount+1;
			tableList=tableList+'<td valign="top" width="25%">';
			tableList=tableList+'<table width="100%"  border="0" cellspacing="0" cellpadding="1"><tr><td valign="top" class="11-green"><strong>'+contList[drop][cellCount][0]['show']+'</strong></td></tr><tr><td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="1">';
			var lineCount=0;
			while (lineCount<(contList[drop][cellCount].length-1)){
				lineCount=lineCount+1;
				tableList=tableList+'<tr valign="top"><td width="5"><img src="http://www.iucn.org/wl/grafics/bullet-drops.gif" width="5" height="11"></td><td><a href="'+contList[drop][cellCount][lineCount]['link']+'" target="'+contList[drop][cellCount][lineCount]['pageTarget']+'" class="11-navy">'+contList[drop][cellCount][lineCount]['show']+'</a></td></tr>';
			}
			tableList=tableList+'</table></td></tr><tr><td height="10" valign="middle"><table width="100%"  border="0" cellspacing="0" cellpadding="0"><tr>';	
			tableList=tableList+'<td background="http://www.iucn.org/wl/grafics/line-dot-green-b.gif"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr></table></td></tr></table>';
			tableList=tableList+'</td>';		
		}	
		tableList=tableList+'</tr></table>';
	
	var tableContent ='<div id="'+layerProp[drop]['nameL']+'" style="position:absolute; left:0px; top:87px; z-index:2; visibility: hidden; width: 10px; height: 10px;">';
		tableContent=tableContent+'<table border="0" cellpadding="0" cellspacing="0"><tr><td width="25" valign="top" background="http://www.iucn.org/wl/grafics/transp.gif" >&nbsp;</td>';
		tableContent=tableContent+'<td valign="top" bgcolor="#FFFFFF"><table width="'+layerProp[drop]['widthL']+'"  border="0" align="center" cellpadding="0" cellspacing="0" id="whole-feature">';
		tableContent=tableContent+'<tr><td width="1" bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td><td bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td>';
		tableContent=tableContent+'<td width="1" bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr><tr><td valign="bottom" bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td>';
		tableContent=tableContent+'<td valign="top" background="http://www.iucn.org/wl/grafics/bg-titles-orange.gif">'+tableHead+tableList+'</td><td bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr><tr>';
		tableContent=tableContent+'<td width="1" valign="bottom" bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td><td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">';
		tableContent=tableContent+'<tr><td align="left" valign="bottom" bgcolor="#FFFFFF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="5" height="5"></td></tr></table></td><td bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td>';
		tableContent=tableContent+'</tr><tr><td><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td><td bgcolor="#749BBF"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td>';
		tableContent=tableContent+'<td width="1"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="1" height="1"></td></tr></table></td>';
		tableContent=tableContent+'<td width="25" valign="top" background="http://www.iucn.org/wl/grafics/transp.gif" >&nbsp;</td></tr><tr><td valign="top" background="http://www.iucn.org/wl/grafics/transp.gif"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="25" height="25"></td><td height="25" valign="top" background="http://www.iucn.org/wl/grafics/transp.gif">&nbsp;</td>';
		tableContent=tableContent+'<td valign="top" background="http://www.iucn.org/wl/grafics/transp.gif"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="25" height="25"></td></tr></table>';
		tableContent=tableContent+'</div>';

	document.write(tableTitle);	
	document.write(tableContent);	
}

function createDeleter(){
	var tableDeleter ='<div id="deleter" style="position:absolute; left:0px; top:0; z-index:1; visibility: hidden; width: 759px; height: 265px;" >';
		tableDeleter=tableDeleter+'<table width="759" height="480" border="0" cellpadding="0" cellspacing="0"> <tr>';
		tableDeleter=tableDeleter+'<td height="216" valign="top"><a href="#" onMouseOver="dropDown(\'our-work-t\',177,\'hide\',\'our-work-l\',3,\'hide\',\'regions-t\',0,\'hide\',\'regions-l\',0,\'hide\',\'deleter\',3,\'hide\')"><img src="http://www.iucn.org/wl/grafics/spacer.gif" width="759" height="480" border="0"></a></td>';
		tableDeleter=tableDeleter+' </tr></table>';
		tableDeleter=tableDeleter+'</div>';
	document.write(tableDeleter);
}
//-->