function nuevoAjax()
{
	var xmlhttp=false;
 	try {
 		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 	} catch (e) {
 		try {
 			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
 		} catch (E) {
 			xmlhttp = false;
 		}
  	}

	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
 		xmlhttp = new XMLHttpRequest();
	}
	return xmlhttp;
}


/***********Arreglar menu izquierdo y poner la fodo de abajo en su lugar**************/

    function initMasterpage() 
	{
        //top:,left:,width:,height:,right:,bottom:
        var noticiasSubMenu = $('noticiasSubMenu').getCoordinates();
        var Contenedor = $('noticiasContenido').getCoordinates();

		//alert('Contenedor.height: '+Contenedor.height+' noticiasSubMenu.height: '+ noticiasSubMenu.height);
		
        if (Contenedor.height > noticiasSubMenu.height) {
            //alert('es mayor');
            $('noticiasSubMenu').setStyles({ "height": Contenedor.height });
        }
        else {
            //alert('es menor');
        }

        /*
        //pone la imagen bottom pegada a la linea del footer
        if ($('imagenBottom')) {
            var posImgBott = $('imagenBottom').getCoordinates();
            posMenu = $('sidebar1').getCoordinates(); //saco de nuevo las cordenadas por si cambio
            /*
            alert("imagenbot top: " + posImgBott.top + " left: " + posImgBott.left + " width: " + posImgBott.width + " height: " + posImgBott.height + " right: " + posImgBott.right + " bottom: " + posImgBott.bottom + " \n"
            + "Contenido top: " + posContenido.top + " left: " + posContenido.left + " width: " + posContenido.width + " height: " + posContenido.height + " right: " + posContenido.right + " bottom: " + posContenido.bottom + " \n"
            + "sidebar1  top: " + posMenu.top + " left: " + posMenu.left + " width: " + posMenu.width + " height: " + posMenu.height + " right: " + posMenu.right + " bottom: " + posMenu.bottom);
            /
            $('mainContent').setStyles({ "height": posMenu.height });
            $('imagenBottom').setStyles({ "margin-top": (posMenu.bottom - posImgBott.bottom) });
        }
            /**/
    }

/******* Fin de Arreglar menu izquierdo y poner la fodo de abajo en su lugar**************/
