/*----------------------------------------------------------------------------\
|                             DHTML Menu 4.23                                 |
|-----------------------------------------------------------------------------|
|                         Created by Erik Arvidsson                           |
|                  (http://webfx.eae.net/contact.html#erik)                   |
|                      For WebFX (http://webfx.eae.net/)                      |
|-----------------------------------------------------------------------------|
| A menu system for Internet Explorer 5.5+ Win32 that allows menus to extend  |
| outside the browser window limits.                                          |
|-----------------------------------------------------------------------------|
|                  Copyright (c) 1999 - 2002 Erik Arvidsson                   |
|-----------------------------------------------------------------------------|
| This software is provided "as is", without warranty of any kind, express or |
| implied, including  but not limited  to the warranties of  merchantability, |
| fitness for a particular purpose and noninfringement. In no event shall the |
| authors or  copyright  holders be  liable for any claim,  damages or  other |
| liability, whether  in an  action of  contract, tort  or otherwise, arising |
| from,  out of  or in  connection with /*-----------------------------------------------------------*/
 /*     Crea un objeto DOM xml (sirve para ie y firefox)      */
 /*-----------------------------------------------------------*/

function _XML(xmlString)
{
 var oDom;
 if (document.implementation.createDocument)
 { 
  var parser = new DOMParser(); 
  if (xmlString != ''  && xmlString != undefined)
  {
   oDom = parser.parseFromString(xmlString, "text/xml"); 
  }
 }
 else if (window.ActiveXObject)
 {
  oDom = new ActiveXObject("Microsoft.XMLDOM"); 

  if (xmlString != '' && xmlString != undefined)
  {
   oDom.async="false";
   oDom.loadXML(xmlString);
  }
 }

 if (xmlString == '' || xmlString == undefined)
 {
  xmlRoot = oDom.createElement('root');
  oDom.appendChild(xmlRoot);
 }
 
 return oDom;
}

function _XMLHTTP()
{
var oXMLHTTP=null;
// code for Mozilla, etc.
if (window.XMLHttpRequest)
  {
  oXMLHTTP=new XMLHttpRequest();
  }
// code for IE
else if (window.ActiveXObject)
  {
  oXMLHTTP=new ActiveXObject("Microsoft.XMLHTTP");
  }
if (oXMLHTTP!=null)
  {
  	return oXMLHTTP;

  }
else
  {
  alert("Your browser does not support XMLHTTP.");
  }
}

function _get(id){
var obj = null;
if(document.getElementById){
/* Prefer the widely supported W3C DOM method, if
available:-
*/
obj = document.getElementById(id);
}else if(document.all){
/* Branch to use document.all on document.all only
browsers. Requires that IDs are unique to the page
and do not coincide with NAME attributes on other
elements:-
*/
obj = document.all[id];
}
/* If no appropriate element retrieval mechanism exists on
this browser this function always returns null:-
*/
if (obj == null) alert("No se encontro el elemento:" +  id );
return obj;
}