var MenuArray = new Array(
	{pageid:116740,hoffset:-1,voffset:0,animate:"true"},
	{pageid:116750,hoffset:-2,voffset:0,animate:"true"},
	{pageid:116758,hoffset:-2,voffset:0,animate:"true"},
	{pageid:116763,hoffset:-2,voffset:0,animate:"true"},
	{pageid:116764,hoffset:-2,voffset:0,animate:"true"},
	{pageid:116772,hoffset:-30,voffset:0,animate:"true"}
),
photos = new Array(), firstLoad = true;
	//this makes the beginning of the slideshow appear to be a nice slide transition (instead of just appearing)
	$.fn.cycle.defaults = {
		before: function(){
			if(firstLoad){
				$("#photoArea img").hide(); firstLoad = false;
				setTimeout(function(){ $("#photoArea img").fadeIn(1500); },100);
			}
		}
	}

$(document).ready(
	function(){
		$.ajax({
			type: "GET",
			url: "/xml/default.asp?sid=421&type=photo&id=40141", //was 26613 - client deleted
			dataType: "xml",
			success: function(xml) {
				var pcount = 0;
				$(xml).find('item').find("image").each(function(){
					photos[pcount++] = {
						path:$(this).find("path").text(),
						cap:$(this).find("cap").text()
					};
				});
			},
			complete: function() {
				if(photos.length>0){$("#photoArea").html("");}
				$.each(photos,function(){
					var $imageWrite = $(document.createElement("img"))
							.attr("src",this.path)
							.attr("height","385")
							.attr("width","772")
							.attr("alt",this.cap)
							.attr("border","0");
					$("#photoArea").append($imageWrite);
				});
				$("#photoArea").cycle({timeout:6000,speed:1500,pause:1,sync:1});
			}
		});
		
		$(window).load(
			function(){
				initMenu("hpNav","up",MenuArray,0);
				$('#quicklinks').createQuicklinks({id:11563,schoolid:421,direction:"down"});
			}
		);
	}
);