		//This credit MUST stay intact for use
		var ie4=document.all
		var ns6=document.getElementById&&!document.all
		var ns4=document.layers

		var linkset=new Array()
		var linkset_Bdy=new Array()

		//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT
		
		var aDate = sCurrentPage;
		var spDate = aDate.split("_");
		Filepath = '.\\Web\\DayIndex\\';
		Filepath = Filepath + spDate[2] + "\\" + spDate[1] + "\\" + spDate[0] + "_" + spDate[1] +"_"+ spDate[2] +".xml";
		file = Filepath
		
		function loadXML() {			
			try{
				BlankXml.async="false";
				BlankXml.onreadystatechange=verify;
				if (BlankXml) {
					BlankXml.load(file);
				}
			}
			catch(e) {
				alert(e.message);
			}
			
		}
		
		function verify() { 
			try {
				if(BlankXml.readyState!=4)
					return false; 
			} catch(e) {
				alert(e.message);
			}
		}
		
		var strUA = window.navigator.userAgent.toUpperCase()
		var ie = false; ns = false; ff = false;
		
		if (strUA.indexOf('FIREFOX') > 0) // Checking for FireFox
			ff = true;

		if (window.ActiveXObject) // IE
		{
			var BlankXml = new ActiveXObject("MSXML2.DOMDocument.3.0");
			loadXML();
			var tree=BlankXml.documentElement;
			ie = true;
		}
		else
			if (window.XMLHttpRequest && ff) // FireFox
			{
				var BlankXml = document.implementation.createDocument("","",null);
				BlankXml.async = false;
				BlankXml.load(file);
				var tree=BlankXml.documentElement;
			}
			else
				if (window.XMLHttpRequest) // NetScape
				{
					var BlankXml = new XMLHttpRequest();
					req.open('GET', 'http://www.mozilla.org/', false); 
					req.send(null);
					if(req.status == 200)
					dump(req.responseText);

					var BlankXml = document.implementation.createDocument("","",null);
					BlankXml.async = false;
					BlankXml.load(file);
					var tree=BlankXml.documentElement;
					//var tree=BlankXml.getElementsByTagName('DayIndex');
					ns = true;
					alert(tree.nodeName)
					if(tree.nodeName)
						alert('t')
					else
						alert('f')
				}
		
		var m=0;
		var n=0;	
		var l=0;

		if (ie || ff) // IE or FireFox
		{
			for(var i=0; i<tree.childNodes.length; i++) // Loop All Pages
			{
				if(tree.childNodes[i].hasChildNodes()) {
					for(var j=0; j<tree.childNodes[i].childNodes.length; j++) // Loop All Articles
					{	
						if(tree.childNodes[i].childNodes[j].hasChildNodes()) {
							for(var k=0; k<tree.childNodes[i].childNodes[j].childNodes.length; k++) // Loop All Article Titles
							{	
								var atr1 = "ArticleText.aspx"
								var atr2 = tree.childNodes[i].childNodes[j].attributes[0].nodeValue
								var atr3 = tree.childNodes[i].childNodes[j].attributes[1].nodeValue
								var atr4 = tree.childNodes[i].childNodes[j].attributes[2].nodeValue

								if(tree.childNodes[i].childNodes[j].childNodes[k].hasChildNodes()) {
									if (tree.childNodes[i].childNodes[j].childNodes[k].nodeName == "ArticleTitle"){
										if (n==0){
											if (tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue!= ''){
												if (chck == "False") {
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}else{
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']); onclick=javascript:openArticle("'+atr1+'","'+atr2+'",'+atr3+','+atr4+',0);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}												
												n+=1;
												l+=1;
											}										
										}else {	
											if (tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue!= ''){										
												if (chck == "False") {
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]+='<div class="lftMenuItems" style="border:black 1px solid; border-bottom:0px;border-left:0px; cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}else{
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]+='<div class="lftMenuItems" style="border:black 1px solid; border-bottom:0px;border-left:0px; cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']); onclick=javascript:openArticle("'+atr1+'","'+atr2+'",'+atr3+','+atr4+',0);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}
												l+=1;
											}
										}									
									}
								}
							}
						}						
					}										
				}else
				{	
					linkset[m]='No Article Titles'				
				}
				m+=1;	
				n=0;
			}
		} // End if part
		else if (ns) // NetScape code for building DIVs
		{
			alert(2)
			alert(tree.childNodes.length)
			for(var i=0; i<tree.childNodes.length; i++) // Loop All Pages
			{
				if(tree.childNodes[i].hasChildNodes()) {
					for(var j=0; j<tree.childNodes[i].childNodes.length; j++) // Loop All Articles
					{	
						if(tree.childNodes[i].childNodes[j].hasChildNodes()) {
							for(var k=0; k<tree.childNodes[i].childNodes[j].childNodes.length; k++) // Loop All Article Titles
							{	
								var atr1 = "ArticleText.aspx"
								var atr2 = tree.childNodes[i].childNodes[j].attributes[0].text
								var atr3 = tree.childNodes[i].childNodes[j].attributes[1].text
								var atr4 = tree.childNodes[i].childNodes[j].attributes[2].text

								if(tree.childNodes[i].childNodes[j].childNodes[k].hasChildNodes()) {
									if (tree.childNodes[i].childNodes[j].childNodes[k].nodeName == "ArticleTitle"){
										if (n==0){
											if (tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue!= ''){
												if (chck == "False") {
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}else{
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']); onclick=javascript:openArticle("'+atr1+'","'+atr2+'",'+atr3+','+atr4+',0);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}												
												n+=1;
												l+=1;
											}										
										}else {	
											if (tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue!= ''){										
												if (chck == "False") {
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]+='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}else{
													var artBody = trim(tree.childNodes[i].childNodes[j].childNodes[k+1].childNodes[0].nodeValue)
													linkset_Bdy[l]='<div>'+artBody+'</div>'
													linkset[m]+='<div class="lftMenuItems" style="border:black 1px solid;border-bottom:0px;border-left:0px;  cursor:hand;" onmouseover=javascript:showsubmenu(event,linkset_Bdy['+l+']); onclick=javascript:openArticle("'+atr1+'","'+atr2+'",'+atr3+','+atr4+',0);>'+tree.childNodes[i].childNodes[j].childNodes[k].childNodes[0].nodeValue+'</div>'
												}
												l+=1;
											}
										}									
									}
								}
							}
						}						
					}										
				}else
				{	
					linkset[m]='No Article Titles'				
				}
				m+=1;	
				n=0;
			}
		} // End else part
		
			function ltrim(argvalue) 
			{
				while (1) {
					if (argvalue.substring(0, 1) != " ")
					break;
					argvalue = argvalue.substring(1, argvalue.length);
				}
				return argvalue;
			}

			function rtrim(argvalue) 
			{
				while (1) {
					if (argvalue.substring(argvalue.length - 1, argvalue.length) != " ")
					break;
					argvalue = argvalue.substring(0, argvalue.length - 1);
				}
				return argvalue;
			}


			function trim(argvalue) {
				var tmpstr = ltrim(argvalue);
				return rtrim(tmpstr);
			}


			function showDiv(v,b,nn){	
				if (nn==0){
					linkset_Bdy[b]='<div>'+v+'</div>'
				}else
				{
					linkset_Bdy[b]+='<div>'+v+'</div>'
				}
			}

	
		////No need to edit beyond here
		
		function showmenu(e,which){	
			
			if (!document.all&&!document.getElementById&&!document.layers)
			return
			
			clearhidemenu()

			menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
			menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

			if (ie4||ns6){				
				if (which != 'no') {
					if (ie4)
						menuobj.innerHTML='<div style="cursor:hand;background-color:#FFFFFF">'+which+'</div>'					
					else if (ns6)
						menuobj.innerHTML='<div style="cursor:pointer;background-color:#FFFFFF">'+which+'</div>'					
				}
			}else{
				menuobj.document.write('<layer name=gui bgColor=#FFFFFF width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
				menuobj.document.close()
			}
			menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
			menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
			eventX=ie4? event.clientX : ns6? e.clientX : 0
			eventY=ie4? event.clientY : ns6? e.clientY : 0

			//Find out how close the mouse is to the corner of the window
			var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
			var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

			//if the horizontal distance isn't enough to accomodate the width of the context menu
			if (rightedge<menuobj.contentwidth)
			//move the horizontal position of the menu to the left by it's width
			
			menuobj.thestyle.left=ie4? 177 : ns6? 177 : 177
			//menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
			else
			//position the horizontal position of the menu where the mouse was clicked
			menuobj.thestyle.left=ie4? 177 : ns6? 177 : 177
			//menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

			//same concept with the vertical position
			if (bottomedge<menuobj.contentheight)
			menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
			else
			menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY

			menuobj.thestyle.visibility="visible"
			return false
		}

		function showsubmenu(e1,which1)
		{		//alert(which1);
			if (!document.all&&!document.getElementById&&!document.layers)
			return
			
			clearhidemenu()

			menuobj1=ie4? document.all.popmenu1 : ns6? document.getElementById("popmenu1") : ns4? document.popmenu1 : ""
			menuobj1.thestyle=(ie4||ns6)? menuobj1.style : menuobj1

			if (ie4||ns6){				
				if (which1 != 'no') {
					menuobj1.innerHTML = '<div style="border:black 1px solid; background-color:#f0f8ff">'+which1+'</div>'
				}
			}else{
				menuobj1.document.write('<layer name=gui1 bgColor=#f0f8ff width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which1+'</layer>')
				menuobj1.document.close()
			}
			
			menuobj1.contentwidth=(ie4||ns6)? menuobj1.offsetWidth : menuobj1.document.gui.document.width
			menuobj1.contentheight=(ie4||ns6)? menuobj1.offsetHeight : menuobj1.document.gui.document.height
			
			eventX=ie4? event.clientX : ns6? e1.clientX : 0
			eventY=ie4? event.clientY : ns6? e1.clientY : 0

			//Find out how close the mouse is to the corner of the window
			var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
			var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY

			//if the horizontal distance isn't enough to accomodate the width of the context menu
			if (rightedge<menuobj1.contentwidth)
			//move the horizontal position of the menu to the left by it's width
			
			menuobj1.thestyle.left=ie4? 470 : ns6? 470 : 470
			//menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
			else
			//position the horizontal position of the menu where the mouse was clicked
			menuobj1.thestyle.left=ie4? 470 : ns6? 470 : 470
			//menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX

			//same concept with the vertical position
			if (bottomedge<menuobj1.contentheight)
				menuobj1.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj1.contentheight-15 : ns6? window.pageYOffset+eventY-menuobj1.contentheight-15 : eventY-menuobj1.contentheight-15
			else
				//menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
				menuobj1.thestyle.top=ie4? document.body.scrollTop+event.clientY-15 : ns6? window.pageYOffset+eventY-15 : eventY-15
			
			menuobj1.thestyle.visibility="visible"
			return false
		}

		function contains_ns6(a, b) {
		//Determines if 1 element in contained in another- by Brainjar.com
		while (b.parentNode)
			if ((b = b.parentNode) == a)
				return true;
			return false;
		}

		function hidemenu(){
			if (window.menuobj)
			{
				try{
					menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
					menuobj1.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
				}catch(e) {
				}				
			}			
		}

		function dynamichide(e)
		{
			if (ie4&&!menuobj.contains(e.toElement))
				hidemenu()
			else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
			hidemenu()
		}

		function delayhidemenu()
		{
			if (ie4||ns6||ns4)
			delayhide=setTimeout("hidemenu()",500)
		}

		function clearhidemenu()
		{
			if (window.delayhide)
			clearTimeout(delayhide)
		}

		function highlightmenu(e,state)
		{
			if (document.all)
				source_el=event.srcElement
			else if (document.getElementById)
				source_el=e.target
			if (source_el.className=="lftMenuItems")
			{
				source_el.id=(state=="on")? "mouseoverstyle" : ""
			}else{
				while(source_el.id!="popmenu" && source_el.id!=null)
				{
					source_el=document.getElementById? source_el.parentNode : source_el.parentElement
					if (source_el.className=="lftMenuItems"){
						source_el.id=(state=="on")? "mouseoverstyle" : ""
					}
				}
			}
		}

		if (ie4||ns6)
		document.onclick=hidemenu