function getPageData ( xmlFile ) {
  	 var url = window.location.toString();
	 var pageName;
	 //get the parameters
 	 url.match(/\?(.+)$/);
     var params = RegExp.$1;
     // split up the query string and store in an
     // associative array
     var params = params.split("&");
     var queryStringList = {};
 
 	 for(var i=0;i<params.length;i++) {
 	   var tmp = params[i].split("=");
 	   queryStringList[tmp[0]] = unescape(tmp[1]);
     }
 
     // print all querystring in key value pairs
     for(var i in queryStringList){
		 if(queryStringList[i] == "undefined"){
			 
			 pageName =  "home";
		 } else {
			 pageName = queryStringList[i];
			//document.write(i+" = "+queryStringList[i]+"<br/>");
		 }
     }


	var xmlDoc;
	//var path = "http://www.shoparoundamerica.com/xml/";
	var path = "xml/copy/";
	
	if (window.XMLHttpRequest) {
		  xmlDoc=new window.XMLHttpRequest();
		  xmlDoc.open("GET",path+xmlFile,false);
		  xmlDoc.send("");
		  xmlDoc=xmlDoc.responseXML;
	} else if (ActiveXObject("Microsoft.XMLDOM")) {
		  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
		  xmlDoc.async=false;
		  xmlDoc.load(path+xmlFile);
	}
	

			
	document.write("<div class='panelLarge'>");
	var pDataNodes = xmlDoc.getElementsByTagName("page");
	for ( i=0; i<pDataNodes.length; i++) {
		if(pDataNodes[i].attributes.getNamedItem("id").value == pageName){
			document.write("<br />");
			
			document.write("<div>");
			document.write("<table width='100%'><tr><td>");
			document.write("<h3>"+pDataNodes[i].getElementsByTagName("title")[0].childNodes[0].nodeValue+"</h3>");
			document.write("</td><td><div align='right'>");
		
			
			document.write("<script type='text/javascript' src='scripts/loadPullDownMenuData.js'></script>");
			document.write("<script type='text/javascript'>getMenuData('menuXML.xml')</script>");
			document.write("</div></td><tr></table>");
			document.write("</div>");
		
			document.write("<span class='smallnormalBlack'>"+pDataNodes[i].getElementsByTagName("data")[0].childNodes[0].nodeValue+"</span>");
	
		document.write("<br /><br /><hr class='line' />");
		}
	}
	
	document.write("</div>");
	
	thisPageName = pageName;
}