		$(document).ready(function(){
			//set container height to the height of what is in it
			$("#services").height($("#interior").height());
			//
			$("#services").css("overflow","hidden").css("position","relative");
			//get the slider bog position absolute,set top and left
			$("#services #sliderBox").css("position","absolute").css("top","0px").css("left","0px").css("visibility","visible");
			$("#services #sliderBox > div").each(function(){
				$(this).height($(this).height());
			});
			$("#services").height($("#services #sliderBox").children("div").height());
			//place each children element
			$("#services #sliderBox").children().each(function(index,domElement){
				var placement = (index * $("#sliderBox").width())+"px";
				$(this).css("position","absolute").css("left",placement);
			});
			
			
			function scrollServices(pageId){
				//get the place to scroll to
				var gotTo = "-"+$("#"+pageId).css("left");
				var goHeight = $("#"+pageId).height()+"px";
				$("#sliderBox").animate({"left" : gotTo},"slow");
				$("#services").animate({"height" : goHeight},"slow");
			}
			
			$("#servicesNav li a").click(function(){
				//get the filename we are trying to load
				var page = $(this).attr("href");
				//strip file type and anything before it from href				
				//see if there are slashes in the link
				if(page.lastIndexOf("/") < 0){
					//or get the last / and then remove the file ext.
					var startAt = page.lastIndexOf("/")+1;
					var pageId = page.substring(startAt,page.lastIndexOf("."))
				}else{
					//if not then get the name by removing the file ext at the end of it.
					var pageId = page.substring(0,page.lastIndexOf(".")).replace("/","")
				}
				
				$("body").attr("id","page"+pageId);
				//test to see if we have made a div to oad this into yet
				if(null == $("#sliderBox").children("#"+pageId).html()){
					//get how far left to place the div so it lines up with the navigation
					var multiPlyer = ($("#servicesNav li").index($(this).parent("li")));
					var placement = (multiPlyer * $("#services").width())+"px";
					$("#sliderBox").append("<div id=\""+pageId+"\" class=\"slide\" style=\"position: absolute; left: "+placement+"\"></div>");
					$("#"+pageId).load(page + " .slide > div",function(){
						scrollServices(pageId);
					});
				}else{
					scrollServices(pageId);
				}
				
				$("#pageHead h1").html($(this).children("span").html());
				return false;
			});
			//open pdf;s in new window			
			$("a.pdfLink").livequery('click', function() { 
				window.open($(this).attr("href"));
				return false;
			});
		});