
		<!--
			var theGreaterPath = window.location.protocol + "//" + window.location.host;
			pathArray = window.location.pathname.split( '/' );
			newPathname = "";
			for ( i = 0; i < (pathArray.length)-1; i++ ) {
				
				newPathname += pathArray[i];
				newPathname += "/";
			}
			theGreaterPath+=newPathname;
			
			function changePage(theURL) {
				window.location.href=theURL;	
			}
			
			function createXMLHttpRequest() {
				var therequest = false;
				
				if (window.XMLHttpRequest){
					
					if(typeof XMLHttpRequest != 'undefined')
						try {
							therequest = new XMLHttpRequest();
						} catch (e) {
							therequest = false;
						}
				} else if (window.ActiveXObject) {
						try {
							therequest = new ActiveXObject('Msxml2.XMLHTTP');
						} catch (e) {
							try {
							therequest = new ActiveXObject('Microsoft.XMLHTTP');
							} catch (e) {
								therequest = false;
							}
						}
					
				}
					
				return therequest;
			}
			
			thecontentdivs = new Array();
			thecontentdivs[0] = '1';

			
			function parseTheResponse() {
				if (therequest.readyState == 4) {
					if (therequest.status == 200) {

						var response = therequest.responseXML;
						var topicsList = response.getElementsByTagName('topic');
						var thePreviousNodeValue='';
						var outAll = '<ul>';
						var alphaCount = 0;
						var theNavText = '<div id=\"exploreNavInner\">';
						for (var iNode = 0; iNode < topicsList.length; iNode++) {
							
							var theNodeValue=topicsList[iNode].getAttribute('name');
							theNodeValue = theNodeValue.charAt(0);
							
								if (theNodeValue.match(/[a-zA-Z]+/)){
									
									theNodeValue = theNodeValue.toLowerCase();
									if (thecontentdivs.length==0 || theNodeValue != thePreviousNodeValue){
										var out = '<ul>';
										thecontentdivs.push(theNodeValue);
										
										
									}
	
									out += '<li id=\"'+topicsList[iNode].getAttribute('id')+'\" name=\"'+topicsList[iNode].getAttribute('id')+'\" onmouseout=\"changeBackOff(\''+topicsList[iNode].getAttribute('id')+'\')\" onmouseover=\"changeBack(\''+topicsList[iNode].getAttribute('id')+'\')\" onclick=\"showQuestion(\''+topicsList[iNode].getAttribute('questions')+'\',\''+topicsList[iNode].getAttribute('id')+'\',\''+topicsList[iNode].getAttribute('id')+'\')\"><span>' + topicsList[iNode].getAttribute('name') + '</span></li>';
									outAll += '<li id=\"all'+topicsList[iNode].getAttribute('id')+'\" name=\"all'+topicsList[iNode].getAttribute('id')+'\" onmouseout=\"changeBackOff(\'all'+topicsList[iNode].getAttribute('id')+'\')\" onmouseover=\"changeBack(\'all'+topicsList[iNode].getAttribute('id')+'\')\" onclick=\"showQuestion(\''+topicsList[iNode].getAttribute('questions')+'\',\'all'+topicsList[iNode].getAttribute('id')+'\',\''+topicsList[iNode].getAttribute('id')+'\')\"><span>' + topicsList[iNode].getAttribute('name') + '</span></li>';
									thePreviousNodeValue = theNodeValue;
									if (theNodeValue != thePreviousNodeValue){
										out += '</ul>';
									}
									
								
									document.getElementById(theNodeValue+'Topic').innerHTML = out;
								}
							
						}
						
						var Alphabet = new Array('1','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
						
						for (var alphabetNo = 1; alphabetNo < Alphabet.length; alphabetNo++){
							
							theSearchAlpha = thecontentdivs.toString();
							theSearchAlpha = stripCharacter(theSearchAlpha,',');
							theSearchAlpha = stripCharacter(theSearchAlpha,'1');
							if (theSearchAlpha.search(Alphabet[alphabetNo])>=0){
								
								theNavText += "<span><a id=\""+Alphabet[alphabetNo]+"Link\" href=\"javascript:void(switchme('"+Alphabet[alphabetNo]+"'))\">"+Alphabet[alphabetNo].toUpperCase()+"</a></span>";	
							}else{
								theNavText += "<span>"+Alphabet[alphabetNo].toUpperCase()+"</span>"
							}	
						}
						
						document.getElementById('allTopic').innerHTML = outAll+'</ul>';
						document.getElementById('exploreNav').innerHTML = document.getElementById('exploreNav').innerHTML+theNavText+"<span><a id=\"allLink\" href=\"javascript:void(switchme('all'))\">Show&nbsp;All</a></span></div>";
						document.getElementById('allTopic').className='visible';
						
					}
					therequest=null;
				}
			}
			
			function stripCharacter(words,character) {
				
				  var spaces = words.length;
				  for(var x = 1; x<spaces; ++x){
				   words = words.replace(character, "");
				 }
				 return words;
			   }
			
			function changeBack(theLi){
			
				document.getElementById(theLi).className = 'back';
			}
			
			function changeBackOff(theLi){
			
				document.getElementById(theLi).className = 'backoff';
			}
			
			function parseTheQuestion() {
				if (therequest.readyState == 4) {
					if (therequest.status == 200) {

						var response = therequest.responseXML;
						var questionList = response.getElementsByTagName('question');
						
						var out = '<ul>';
						for (var iNode = 0; iNode < questionList.length; iNode++) {
							
							var theNodeValue=questionList[iNode].getAttribute('name');

							out += '<li id=\"q'+questionList[iNode].getAttribute('id')+'\" name=\"q'+questionList[iNode].getAttribute('id')+'\" onmouseout=\"changeBackOff(\'q'+questionList[iNode].getAttribute('id')+'\')\" onmouseover=\"changeBack(\'q'+questionList[iNode].getAttribute('id')+'\')\" onclick=\"changePage(\''+questionList[iNode].getAttribute('story')+'\')\"><span>' + questionList[iNode].getAttribute('name') + '</span></li>';
								
						}
						out += '</ul>';
						document.getElementById('exploreQuestions').innerHTML = out;
						document.getElementById('exploreQuestions').className='visible';
						
					}
					therequest=null;
				}
			}
			function parseTheStory() {
				
				if (therequest.readyState == 4) {
					if (therequest.status == 200) {

						var response = therequest.responseXML;
						var storyList = response.getElementsByTagName('question');
						
						var out = '';
						for (var iNode = 0; iNode < storyList.length; iNode++) {
							out += '<div class=\"question\">';
							out += '<div class=\"questionImg\"><img src=\"';
							out += storyList[iNode].getAttribute('image');
							out += '\" /></div>';
							out += '<div class=\"questionBlurb\"><h3>';
							out += storyList[iNode].getAttribute('name')+'</h3>';
							out += storyList[iNode].firstChild.nodeValue;	
							out += '</div>';
							out += '</div>';

						}
						
						document.getElementById('questions').innerHTML = out;
						
					}
					therequest=null;
				}
			}
			
			function showQuestion(thePath,theTopicValue,topicID){
				document.getElementById('exploreQuestions').innerHTML = "<p style=\"text-align:center;\">LOADING QUESTIONS...</p><p style=\"text-align:center;\">please wait</p>";
				document.getElementById('exploreQuestions').className='loading';
				document.getElementById(theTopicValue).onmouseout = function(){document.getElementById(theTopicValue).className = 'backset';}
				therequest = createXMLHttpRequest();newPath = "http://blogs.momtourage.com/advice/";

				if (therequest) {
				//alert(theGreaterPath);	
					therequest.open('GET',newPath+thePath, true);
                                        //therequest.open('GET',theGreaterPath+thePath, true);

					therequest.onreadystatechange = parseTheQuestion;
					therequest.send('test');
				}
				var theChildren = document.getElementById(theTopicValue).parentNode.childNodes;
				for (var i = 0; i < theChildren.length; i++) 
   				{
   					if (theChildren[i].getAttribute('id')!= theTopicValue){
   						document.getElementById(theChildren[i].getAttribute('id')).onmouseout = function (){changeBackOff(this.getAttribute('id'))};
   						changeBackOff(theChildren[i].getAttribute('id'));
   					}
   						
   				}
   				
				document.getElementById(theTopicValue).onmouseout = function(){document.getElementById(theTopicValue).className = 'backset';}
			}
			
			
			var therequest = createXMLHttpRequest();
			
			function switchme(theDiv){

				for (i=1;i<thecontentdivs.length;i++){
					
					document.getElementById(thecontentdivs[i]+'Topic').className='hidden';
					document.getElementById('exploreQuestions').className='hidden';
				}
				document.getElementById('allTopic').className='hidden';
				document.getElementById(theDiv+'Topic').className='visible';		
		
			}
			
			function theClock(theURL){
				
                 
		
				if (therequest) {
					thenewURL = "http://blogs.momtourage.com/advice/xml/topics.xml";
					theURLLength = theURL.length;
					if (theURL.substr(theURLLength-1,theURLLength-1)=="/"){
						//theURL = theURL.substr(0,theURLLength-1);
                                        
					}	
					//therequest.open('GET',theGreaterPath+theURL, true);
					
					therequest.open('GET',thenewURL, true);
					therequest.onreadystatechange = parseTheResponse;
					therequest.send('test');
				}
			
			}
		//-->
