function retrieveTitle() {
		searchString = location.search.slice(1);
		searchString = unescape(searchString);
		//Converts + signs to a space
		formString = searchString.replace(/\+/g, " ");
		//Converts / to an &
		formString = formString.replace(/\//g, "&");
		data = formString.split(/[&=]/g);
		var myfolder = data[0];
		var myselection = data[1];
		var subselection = data[2];
		var searchItem = data[3];
				
		//our_services				
		if (myselection == "our_services"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f58.jpg' width='578' height='41' border='0' alt='Our services'>");
		}	
		
		//healthcare				
		if (myselection == "healthcare"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f55.jpg' width='578' height='41' border='0' alt='Healthcare'>");
		}	
		
		//education				
		if (myselection == "education"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f56.jpg' width='578' height='41' border='0' alt='Education'>");
		}	
				
		//open_cash_donation				
		if (myselection == "open_cash_donation" & subselection == null || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f9.jpg' width='578' height='41' border='0' alt='Open cash donation'>");
		}
		
		//sponsors_a_child				
		if (myselection == "sponsors_a_child"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f10.jpg' width='578' height='41' border='0' alt='Sponsors a child'>");
		}
		
		//monthly_donations				
		if (myselection == "monthly_donations"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f11.jpg' width='578' height='41' border='0' alt='Monthly donations'>");
		}
		
		//gift_giving_catalogue				
		if (myselection == "gift_giving_catalogue"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f12.jpg' width='578' height='41' border='0' alt='Gift giving catalogue'>");
		}		  
		
		//donations_of_food				
		if (myselection == "donations_of_food"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f13.jpg' width='578' height='41' border='0' alt='Donations of food'>");
		}
		
		//what_is_a_bequest	
		if (myselection == "what_is_a_bequest"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f14.jpg' width='578' height='41' border='0' alt='What is a bequest'>");
		}
		
		//types_of_bequests	
		if (myselection == "types_of_bequests"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f15.jpg' width='578' height='41' border='0' alt='Types of bequests'>");
		}
		
		//prepare_change_your_will	
		if (myselection == "prepare_change_your_will"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f16.jpg' width='578' height='41' border='0' alt='Prepare change your will'>");
		}
		
		//common_questions	
		if (myselection == "common_questions"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f17.jpg' width='578' height='41' border='0' alt='Common questions'>");
		}
		
		//legal_information	
		if (myselection == "legal_information"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f18.jpg' width='578' height='41' border='0' alt='Legal information'>");
		}
		
		//the_exodus_society	
		if (myselection == "the_exodus_society"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f19.jpg' width='578' height='41' border='0' alt='The Exodus Society'>");
		}
		
		//about_volunteering	
		if (myselection == "about_volunteering"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f20.jpg' width='578' height='41' border='0' alt='About volunteering'>");
		}
		
		//become_a_volunteer	
		if (myselection == "become_a_volunteer"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f21.jpg' width='578' height='41' border='0' alt='Become a volunteer'>");
		}
		
		//sunday_night_crews	
		if (myselection == "sunday_night_crews"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f22.jpg' width='578' height='41' border='0' alt='Sunday Night Crews'>");
		}
		
		//guests	
		if (myselection == "guests"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f23.jpg' width='578' height='41' border='0' alt='Guests'>");
		}
		
		//music	
		if (myselection == "music"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f24.jpg' width='578' height='41' border='0' alt='Music'>");
		}
		
		//feedback	
		if (myselection == "feedback"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f25.jpg' width='578' height='41' border='0' alt='Feedback'>");
		}
		
		//podcasts	
		if (myselection == "podcasts"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f26.jpg' width='578' height='41' border='0' alt='Podcasts'>");
		}
		
		//news_tips	
		if (myselection == "news_tips"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f27.jpg' width='578' height='41' border='0' alt='News tips'>");
		}
		
		//rev_bill_crews_biography	
		if (myselection == "rev_bill_crews_biography"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f28.jpg' width='578' height='41' border='0' alt='Rev. Bill Crews biography'>");
		}
		
		//our_mission	
		if (myselection == "our_mission"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f29.jpg' width='578' height='41' border='0' alt='Our mission'>");
		}
		
		//the_people_we_help	
		if (myselection == "the_people_we_help"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f30.jpg' width='578' height='41' border='0' alt='The people we help'>");
		}
		
		//success_stories	
		if (myselection == "success_stories"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f31.jpg' width='578' height='41' border='0' alt='Success stories'>");
		}
		
		//history	
		if (myselection == "history"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f32.jpg' width='578' height='41' border='0' alt='History'>");
		}
		
		//about_corporate_partnerships	
		if (myselection == "about_corporate_partnerships"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f33.jpg' width='578' height='41' border='0' alt='About corporate partnerships'>");
		}
		
		//our_corporate_partners	
		if (myselection == "our_corporate_partners"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f34.jpg' width='578' height='41' border='0' alt='Our corporate partners'>");
		}
		
		//become_a_corporate_partner	
		if (myselection == "become_a_corporate_partner"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f35.jpg' width='578' height='41' border='0' alt='Become a corporate partner'>");
		}
		
		//media_room	
		if (myfolder == "search" && myselection == "Press release" || myfolder == "media_room"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f36.jpg' width='578' height='41' border='0' alt='Media room'>");
		}
		
		//register	
		if (myselection == "register"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f37.jpg' width='578' height='41' border='0' alt='Register'>");
		}
		
		//contact	
		if (myselection == "contact"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f38.jpg' width='578' height='41' border='0' alt='Contact'>");
		}
		
		//Media room search directed from frontpage	
		if (myfolder == "search" && myselection == "sitesearch"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f39.jpg' width='578' height='41' border='0' alt='Search'>");
		}
		
		//thankyou_donation	
		if (myselection == "thankyou_donation"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f40.jpg' width='578' height='41' border='0' alt='Thankyou'>");
		}
		
		//latest_news
		if (myfolder == "latest_news" || myfolder == "search" && myselection == "latest_news"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f41.jpg' width='578' height='41' border='0' alt='Latest news'>");
		}
		
		//webpoll
		if (myselection == "webpoll"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f42.jpg' width='578' height='41' border='0' alt='Latest news'>");
		}


		//community_welfare
		if (myselection == "community_welfare"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f46.jpg' width='578' height='41' border='0' alt='Community welfare'>");
		}


		//exodus_youth
		if (myselection == "exodus_youth"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f47.jpg' width='578' height='41' border='0' alt='Exodus Youth programme'>");
		}

		//blog
		if (myselection == "blog"){	
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f48.jpg' width='578' height='41' border='0' alt='Rev. Bill Crews blog'>");
		}
		
		//winter_appeal_donation				
		if (myselection == "open_cash_donation" & subselection == "donation to the Winter appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f52.jpg' width='578' height='41' border='0' alt='Open cash donation'>");
		}
		
		//spring_appeal_donation				
		if (myselection == "open_cash_donation" & subselection == "donation to the Spring appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f53.jpg' width='578' height='41' border='0' alt='Open cash donation'>");
		}
		
		//xmas_appeal_donation				
		if (myselection == "open_cash_donation" & subselection == "donation to the Christmas appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f9.jpg' width='578' height='41' border='0' alt='Open cash donation'>");
		}
		//$1.5million_appeal_donation				
		if (myselection == "open_cash_donation" & subselection == "donation to the 1.5 million dollar appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f9.jpg' width='578' height='41' border='0' alt='Donation to the 1.5 million dollar appeal'>");
		}
		//easter_appeal_donation				
		if (myselection == "open_cash_donation" & subselection == "donation to the Easter appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f9.jpg' width='578' height='41' border='0' alt='Donation to the 1.5 million dollar appeal'>");
		}
		
		//enatalem_orphanage				
		if (myselection == "open_cash_donation_enatalem" & subselection == "donation to the Enatalem Orphanage" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f60.jpg' width='578' height='41' border='0' alt='Donation to the Enateeum Orphanage'>");
		}
		//philippines_typhoon				
		if (myselection == "open_cash_donation_philippines" & subselection == "donation to the Philippines typhoon appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f61.jpg' width='578' height='41' border='0' alt='Donation to the Enateeum Orphanage'>");
		}
		//samoa				
		if (myselection == "open_cash_donation_samoa" & subselection == "donation to the Samoa tsunami appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f62.jpg' width='578' height='41' border='0' alt='Donation to the Enateeum Orphanage'>");
		}
		//haiti				
		if (myselection == "open_cash_donation_haiti" & subselection == "donation to the Haiti earthquake appeal" || myselection == "privacy" || myselection == "refund"){		
		document.write("<img name=myselection id='title' src='../images/exodus_slice32_f63.jpg' width='578' height='41' border='0' alt='Donation to the Haiti earthquake appeal'>");
		}

}


function textContent() {
		searchString = location.search.slice(1);
		searchString = unescape(searchString);
		//Converts + signs to a space
		formString = searchString.replace(/\+/g, " ");
		//Converts / to an &
		formString = formString.replace(/\//g, "&");
		data = formString.split(/[&=]/g);
		
		var myfolder = data[0];
		var myselection = data[1];
		var subselection = data[2];
		var searchItem = data[3];
		if (myselection == "media_room") {
			myselection = myselection + "/" + subselection;
		}
		//Writes in text content with reference to whether or not a search function has been called by the exodus_frontpage
		switch (myfolder + '_' + myselection) {
			
		case "search_Press release": document.write("<iframe id='iframeName' name='iframeName' src='../search/search_template.html' frameborder='0' scrolling='no' align='top' height='400' width='578' marginwidth='0'></iframe>"); break;
		case "search_latest_news": document.write("<iframe id='iframeName' name='iframeName' src='../search/search_template.html' frameborder='0' scrolling='no' align='top' height='400' width='578' marginwidth='0'></iframe>"); break;
		case "search_sitesearch": document.write("<iframe id='iframeName' name='iframeName' src='../search/search_template.html' frameborder='0' scrolling='no' align='top' height='400' width='578' marginwidth='0'></iframe>"); break;
		case "misc_blog": document.write("<iframe id='iframeName' name='iframeName' src='http://www.billcrews.typepad.com/' frameborder='0' scrolling='no' align='top' width='578' height='518' marginwidth='0' onload='blogheight()'></iframe>"); break;		
		default: document.write("<iframe id='iframeName' name='iframeName' src='../htm/" + myfolder + "/" + myselection + ".html' frameborder='0' scrolling='no' align='top' height='400' width='578' marginwidth='0'></iframe>");
		}		
}

function blogheight() {	
		setInterval('listener()', 1000);
		var id = 'iframeName';
		var theheight = 0;
		var theheight = location.hash;
		var theheight = theheight.replace(/\#/g, "");		 
		switch (navigator.appName) {
		case "Opera": var theheight = parseInt(theheight)+50; break;
		case "Netscape": var theheight = parseInt(theheight)+120; break;		
		default: var theheight = parseInt(theheight)-40;
		}
		parent.document.getElementById(id).style.height=theheight+"px";
		if (!window.opera && !document.mimeType && document.all && document.getElementById){
		parent.document.getElementById(id).style.height=theheight+"px";
		}		
		else if(document.getElementById){
		parent.document.getElementById(id).style.height=theheight+"px";		
		}
}

function listener() {
		var id = 'iframeName';
		var post = location.hash;
		var post = post.replace(/\#/g, "");		
		if (post == 'post'){
		parent.document.getElementById(id).style.height=520+"px";
		if (!window.opera && !document.mimeType && document.all && document.getElementById){
		parent.document.getElementById(id).style.height=520+"px";
		}		
		else if(document.getElementById){
		parent.document.getElementById(id).style.height=520+"px";		
		}
		this.window.scroll(0,0);
		parent.location = "http://www.billcrews.com.au/htm/exodus.htm?misc/blog#520";
		}
}