 /* AJAX 
    Author: GC Web Studio - Gustavo Campos me@guscampos.com
	original: javascript-array.com
	Small drop down menu.
  */

			navo = {  

				timeout:500,
				closetimer:0,
				ddmenuitem:0,
				
				 mopen:function(id)
				{	
					navo.mcancelclosetime();
					
					//rid current
					if(navo.ddmenuitem) {
						navo.ddmenuitem.style.visibility = 'hidden';
					}
					try {
						navo.ddmenuitem = $(id);
						navo.ddmenuitem.style.visibility = 'visible';
						//hide flash rotator
						if(navigator.userAgent.indexOf('Safari') != -1 && $('theRotator')) {
							$('theRotator').hide();
						}
					} catch(e) {
						alert(e.description);
					}
					
				
				},
				mclose:function ()
				{
					try {
						if(navo.ddmenuitem) navo.ddmenuitem.style.visibility = 'hidden';
						//show flash rotator
						if(navigator.userAgent.indexOf('Safari') != -1 && $('theRotator')) {
							$('theRotator').show();
						}
					} catch(e) {
						alert(e);
					}
				},
				
				mclosetime: function()
				{
					navo.closetimer = setTimeout(navo.mclose, navo.timeout);
				},
				
				mcancelclosetime: function()
				{
					if(navo.closetimer)
					{
						clearTimeout(navo.closetimer);
						navo.closetimer = null;
					}
				}
				
				
			}