function loadXMLDocOld(){
	var $docname = "carlos_pedroza_downloads.xml";
	//var $docname = "note.xml";
var $xmlDoc;
// code for IE

if (window.ActiveXObject)
{
$xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}

// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument)
{
	//document.write("Got here!!!");
$xmlDoc=document.implementation.createDocument("","",null);
}
else
{
alert('Your browser cannot handle this script');
}

$xmlDoc.async=false;
$xmlDoc.load($docname);
return($xmlDoc);
 
}
function loadXMLDoc(){
	var docname = "carlos_pedroza_downloads.xml";
	//var $docname = "note.xml";
var xmlDoc;

if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
	xmlhttp=new XMLHttpRequest()
	}
	
else // Internet Explorer// code for IE6, IE5
	{
	xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
xmlhttp.open("GET","carlos_pedroza_downloads.xml",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;


return(xmlDoc);
 
}
//---------------------------------------------------------------------------------------
//---------------------------------------------------------------------------------------
function getDownloads(){
var $xmlDoc= loadXMLDoc();	
var $filesArray = $xmlDoc.getElementsByTagName("file");
var $numberOfFilesItems = $filesArray.length;

 for($i=0 ;$i< $numberOfFilesItems;$i++)
 	{
 	var $currentFile = $filesArray[$i];
 	var $currentFileName =  $currentFile.getElementsByTagName("name")[0].childNodes[0].nodeValue ;	
 	var $currentFilePath =  $currentFile.getElementsByTagName("path")[0].childNodes[0].nodeValue ;
 	var $currentFileDescription =  $currentFile.getElementsByTagName("description")[0].childNodes[0].nodeValue ;
	var $currentFileType =  $currentFile.getElementsByTagName("type")[0].childNodes[0].nodeValue ; 	
 	
 	 var $downloadsSectionHTML ="<table width='80%'><tr>" ;	
	 $downloadsSectionHTML = $downloadsSectionHTML+="<td width='135' valign='top' align='right'><span >"; 
	 $downloadsSectionHTML = $downloadsSectionHTML+="<a   class='linkNameStyle' href='" + $currentFilePath + "'>"; 
	 $downloadsSectionHTML = $downloadsSectionHTML+=$currentFileName  + "</a></span></td>"; 
	 		
 	 //$linksSectionHTML = $linksSectionHTML+="<td width='160' valign='top'><span class='newsHeaderStyle'>" +  $currentLinkURL  + "</span></td>";	
 	 $downloadsSectionHTML = $downloadsSectionHTML+="<td width='350' valign='top'><span class='newsBodyStyle'>" +  $currentFileDescription  + "</span></td>";
 	 $downloadsSectionHTML = $downloadsSectionHTML+="</tr></table>";				
			
 	document.write($downloadsSectionHTML);	
 	}	
	
}	
//--------------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------------
	
