//**********************************************************************************/
// MENU GLS SCRIPT (OUR ORPHANS)
// The code & design were developed by Fat-Man Colectivo Ltda [Fat-Man Collective]. 
// Copyright 2006. http://www.fat-man-collective.com
//**********************************************************************************/




//function writemenu(){

var arVersion = navigator.appVersion.split("MSIE")
var version = parseFloat(arVersion[1])
if ((version >= 5.5) && (document.body.filters)){
menu_ie_ini = '<span style="width:115px; height:22px; display:inline-block; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='
menu_ie_fin = ', sizingMethod=scale);"></span>'	
}else{
menu_ie_ini = '<img src="'
menu_ie_fin = '" width=115 height=22 >'	
}

var mpre = ''
mpre = mpre + '<table border="0" cellpadding="0" cellspacing="0" id=menu  width=115px background="img/bgmmenu.png">'
mpre = mpre + '<tr>'
mpre = mpre + '	   <td><img class=img_menu src="img/menu_top.jpg"  border="0" ></td>'
mpre = mpre + '	  </tr>'
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td class=clase1 id=menu_01 onMouseOver="m_over(this.id)" onMouseOut="m_out(this.id); validaout(this.id);" onclick="top.location.href=\'index.htm\'">'+ menu_ie_ini +'img/nm_02.png'+ menu_ie_fin +'</td>  '
mpre = mpre + '	  </tr>'
mpre = mpre + '		<tr id=menu_01_sm style="display:none;">'
mpre = mpre + '		   <td >'
mpre = mpre + '		   </td>'
mpre = mpre + '		  </tr>'
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td class=clase1 id=menu_02 onMouseOver="m_over(this.id)" onMouseOut="m_out(this.id); validaout(this.id);"  onclick="funsubmenu(this.id);">'+ menu_ie_ini +'img/nm_03.png'+ menu_ie_fin +'</td> '
mpre = mpre + '	  </tr>'
mpre = mpre + '		<tr id=menu_02_sm style="display:none;">'
mpre = mpre + '		   <td >'
mpre = mpre + '			<table border="0" cellpadding="0" cellspacing="0" background="img/sub02.gif" width="115px">'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_01" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'mission.htm\'" ><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_02" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'orphanages.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_03" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'howwehelp.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_04" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'wherewehelp.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_05" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'changinglives.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			   <tr>'
mpre = mpre + '			   <td id="sub02_06" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'emergencies.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_07" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'100fororphans.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_08" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'charity.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub02_09" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'getinvolved.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			   <tr>'
mpre = mpre + '			   <td id="sub02_10" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'contactus.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			</table>'
mpre = mpre + '		   </td>'
mpre = mpre + '		  </tr>' 
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td class=clase1 id=menu_03 onMouseOver="m_over(this.id)" onMouseOut="m_out(this.id); validaout(this.id);" onclick="funsubmenu(this.id);">'+ menu_ie_ini +'img/nm_04.png'+ menu_ie_fin +'</td>'
mpre = mpre + '	  </tr>'
mpre = mpre + '	  	  <tr id=menu_03_sm style="display:none;">'
mpre = mpre + '		   <td >'
mpre = mpre + '			<table border="0" cellpadding="0" cellspacing="0" background="img/sub03.gif" width="115px">'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub03_01" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'donatenow.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub03_02" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'donateyourway.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub03_03" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'sponsoranorphan.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub03_04" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'sponsoraproject.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub03_05" class=sclase1 onMouseOver="sm_over(this.id)" onMouseOut="sm_out(this.id)" onclick="top.location.href=\'collectionboxes.htm\'" ><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			</table>'
mpre = mpre + '		   </td>'
mpre = mpre + '		  </tr>'
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td class=clase1 id="menu_04" onMouseOver="m_over(this.id)" onMouseOut="m_out(this.id); validaout(this.id);"  onclick="funsubmenu(this.id);">'+ menu_ie_ini +'img/nm_05.png'+ menu_ie_fin +'</td>'
mpre = mpre + '	  </tr>'
mpre = mpre + '	  	  <tr id=menu_04_sm style="display:none;">'
mpre = mpre + '		   <td >'
mpre = mpre + '			<table border="0" cellpadding="0" cellspacing="0" background="img/sub04.gif" width="115px">'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub04_01" class=sclase1 onMouseOver="sm_over_b(this.id)" onMouseOut="sm_out_b(this.id)" onclick="top.location.href=\'gallery.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			  <tr>'
mpre = mpre + '			   <td id="sub04_02" class=sclase1 onMouseOver="sm_over_b(this.id)" onMouseOut="sm_out_b(this.id)" onclick="top.location.href=\'orphansbios.htm\'"><img src="img/spin.gif" width="115px" height="15px"></td>'
mpre = mpre + '			   </tr>'
mpre = mpre + '			</table>'
mpre = mpre + '		   </td>'
mpre = mpre + '		  </tr>'
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td class=clase1 id="menu_05" onMouseOver="m_over(this.id)" onMouseOut="m_out(this.id); validaout(this.id);"   onclick="top.location.href=\'mailing_list.htm\'">'+ menu_ie_ini +'img/nm_06.png'+ menu_ie_fin +'</td>'
mpre = mpre + '	  </tr>'
mpre = mpre + '	    	<tr id=menu_05_sm style="display:none;">'
mpre = mpre + '		   <td >'
mpre = mpre + '		   </td>'
mpre = mpre + '		  </tr>'
mpre = mpre + '	  <tr>'
mpre = mpre + '	   <td><img class=img_menu src="img/menu_bottom.jpg" ></td>'
mpre = mpre + '	  </tr>'
mpre = mpre + '	</table>'



document.getElementById('vuemenu').innerHTML = mpre

//}


//**********************************************************************************/



	function funperini_menu(){
	    if(per_menu != 'none'){
		document.getElementById(per_menu).className = "clase2";
		//var per_menu_over = 'img/' + per_menu + '_over.gif'
		//document.getElementById(per_menu).src = per_menu_over;
	
		if(per_submenu != 'none'){
			var elsub = per_menu + '_sm'
			document.getElementById(elsub).style.display = '';
			var elover = 'img/' + per_submenu + '_over.gif'
			//document.getElementById(per_submenu).src = elover;
				
				if(per_submenu != "sub04_01" && per_submenu != "sub04_02"){
				document.getElementById(per_submenu).className = "sclase2o";
				}else{
				document.getElementById(per_submenu).className = "sclase2";
				}
		}else{
			var elsub = per_menu + '_sm'
			document.getElementById(elsub).style.display = '';
		}
	    }
	}

	function funper_menu(){
		if(per_menu != 'none'){
		//var per_menu_over = 'img/' + per_menu + '_over.gif'
		//document.getElementById(per_menu).src = per_menu_over;
		document.getElementById(per_menu).className = "clase2";
			if(per_submenu != 'none'){
				var elsub = per_menu + '_sm'
				document.getElementById(elsub).style.display = '';
				//var elover = 'img/' + per_submenu + '_over.gif'
				document.getElementById(per_submenu).className = "sclase2o";
				//document.getElementById(per_submenu).src = elover;
				if(per_submenu != "sub04_01" && per_submenu != "sub04_02"){
				document.getElementById(per_submenu).className = "sclase2o";
				}else{
				document.getElementById(per_submenu).className = "sclase2";
				}
			}
		}
	}


	function validaout(elid){
	var elsub = elid + '_sm'
	//var elperm = 'img/' + elid + '_over.gif'
	//var elup = 'img/' + elid + '.gif'
	//document.getElementById(elid).src = elup;
	document.getElementById(elid).className = "clase2";
	
		if(document.getElementById(elsub).style.display == ''){
		document.getElementById(elid).className = "clase2";
		//document.getElementById(elid).src = elperm;
		}else{
		document.getElementById(elid).className = "clase1";
		//document.getElementById(elid).src = elup;
		}
	funper_menu()	
	}
	
	
	function repsubmenus(){
		for (var i=1;i < 6 ;i++) {
		 numi = i
			if(i < 10){
			 numi = "0" + i
			 }
		  otrosub = "menu_"+numi+"_sm"
		  otrosubpar = "menu_"+numi
		  document.getElementById(otrosub).style.display = 'none';
		  m_out(otrosubpar)
		}
		eval("document.getElementById('"+per_menu+"_sm').style.display = ''");
	}
	
	function funsubmenu(elid){
		repsubmenus()
		var elsub = elid + '_sm'
		document.getElementById(elsub).style.display = '';
		m_over(elid)
	}
	


// new functions menu

function m_over(elid){
document.getElementById(elid).className = "clase2";
funper_menu()
}

function m_out(elid){
document.getElementById(elid).className = "clase1";
funper_menu()
}

function sm_over(elid){
document.getElementById(elid).className = "sclase2o";
}

function sm_out(elid){
document.getElementById(elid).className = "sclase1o";
funper_menu()
}

function sm_over_b(elid){
document.getElementById(elid).className = "sclase2";
}

function sm_out_b(elid){
document.getElementById(elid).className = "sclase1";
funper_menu()
}

// end functions menu



funperini_menu()
funperini_top_menu()




// start main banner

function actibanner(){
	 eval("AC_FL_RunContent_banner('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab','width','508','height','185','align','middle','src','"+ m_banner +"','quality','high','bgcolor','#ffffff','name','"+ m_banner +"','allowscriptaccess','sameDomain','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','"+ m_banner +"' )");
}
actibanner()



JSFX_StartEffects(); 
//**********************************************************************************/


