/*loadajax*/
		var loadedobjects=""
		var rootdomain="http://"+window.location.hostname

		function ajaxpage(url, containerid){

			var page_request = false
			if (window.XMLHttpRequest) // if Mozilla, Safari etc
			page_request = new XMLHttpRequest()
			else if (window.ActiveXObject){ // if IE
			try {
			page_request = new ActiveXObject("Msxml2.XMLHTTP")
			} 
			catch (e){
			try{
			page_request = new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
			}
			}
			else
			return false
			page_request.onreadystatechange=function(){
				if(url == 'tab-contents/photos.html'){
					loadpage_photo(page_request, containerid)
				} else{
					loadpage(page_request, containerid)
				}
			}

			if(url == 'tab-contents/ah-edge.html') make_selected_home('sub_ahedge','sub_ourcompany','sub_purchaseonline','sub_faq');
			if(url == 'tab-contents/our-company.html') make_selected_home('sub_ourcompany','sub_ahedge','sub_purchaseonline','sub_faq');
			if(url == 'tab-contents/purchase-online.php') make_selected_home('sub_purchaseonline','sub_ahedge','sub_ourcompany','sub_faq');
			if(url == 'tab-contents/faq.html') make_selected_home('sub_faq','sub_ahedge','sub_ourcompany','sub_purchaseonline');

			if(url == 'tab-contents/our-water.html') make_selected_water('sub_ourwater','sub_ahpurity','sub_ahionic','sub_ahalkaline');
			if(url == 'tab-contents/ah-purity.html') make_selected_water('sub_ahpurity','sub_ourwater','sub_ahionic','sub_ahalkaline');
			if(url == 'tab-contents/ah-ionic.html') make_selected_water('sub_ahionic','sub_ourwater','sub_ahpurity','sub_ahalkaline');
			if(url == 'tab-contents/ah-alkaline.html') make_selected_water('sub_ahalkaline','sub_ourwater','sub_ahpurity','sub_ahionic');

			if(url == 'tab-contents/testimonials.html') make_selected_believers('sub_testimonials');

			page_request.open('GET', url, true)
			page_request.send(null)
		}

		function make_selected_home(divid,id1,id2,id3){
			document.getElementById(divid).style.color = '#ff9902';
			document.getElementById(id1).style.color = '#3171ce';
			document.getElementById(id2).style.color = '#3171ce';
			document.getElementById(id3).style.color = '#3171ce';
		}

		function make_selected_water(divid,id1,id2,id3){
			document.getElementById(divid).style.color = '#ff9902';
			document.getElementById(id1).style.color = '#3171ce';
			document.getElementById(id2).style.color = '#3171ce';
			document.getElementById(id3).style.color = '#3171ce';
		}

		function make_selected_believers(divid){
			document.getElementById(divid).style.color = '#ff9902';
		}

		function loadpage_photo(page_request, containerid){
			if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
			document.getElementById(containerid).innerHTML=page_request.responseText
			initGalleryScript();
		}

		function loadpage(page_request, containerid){
			if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
			document.getElementById(containerid).innerHTML=page_request.responseText
		}

		function loadobjs(){
			if (!document.getElementById)
			return
			for (i=0; i<arguments.length; i++){
			var file=arguments[i]
			var fileref=""
			if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
			if (file.indexOf(".js")!=-1){ //If object is a js file
			fileref=document.createElement('script')
			fileref.setAttribute("type","text/javascript");
			fileref.setAttribute("src", file);
			}
			else if (file.indexOf(".css")!=-1){ //If object is a css file
			fileref=document.createElement("link")
			fileref.setAttribute("rel", "stylesheet");
			fileref.setAttribute("type", "text/css");
			fileref.setAttribute("href", file);
			}
			}
			if (fileref!=""){
			document.getElementsByTagName("head").item(0).appendChild(fileref)
			loadedobjects+=file+" " //Remember this object as being already added to page
			}
			}
		}

