document.write("<style>#lNavPhoto, #banner_photo { visibility:hidden; }</style>");

var JavaScriptSchoolID = 252, bannerPhotoGroupID = 28952;

$(document).ready(function(){
	$("body").bulletin({sid:252,gid:11196});
	$("#annualFund").create_annual_fund({html:"/my_afBar.html"});
	
	if($("#lNavPhoto img").length>0){ $("#lNavPhoto img").css("border","1px solid #231d1f"); $("#lNavPhoto").css("visibility","visible"); }

	if(pdGlobal){
		switch(pdGlobal.currentPages[0].id){
			case 120812: bannerPhotoGroupID = 28952; break;
			case 120813: bannerPhotoGroupID = 28953; break;
			case 120814: bannerPhotoGroupID = 28954; break;
			case 120815: bannerPhotoGroupID = 28955; break;
			case 120816: bannerPhotoGroupID = 28956; break;
			case 120817: bannerPhotoGroupID = 28957; break;
			case 120818: bannerPhotoGroupID = 28958; break;
			case 121590: bannerPhotoGroupID = 36732; break;//CSP sdb 031610 added for athletics
		}
	}
	
	var defaultBannerPhoto = $("#banner_photo").html();
	$("#banner_photo").attr("pid",bannerPhotoGroupID).html("").getPhotoAlbums({
		maxAlbums:1,
		randomizePhotos:1,
		maxItems:1,
		hardPhotoWidth:765,
		callback2:function(){
			if($("#banner_photo img").length==0){ $("#banner_photo").html(defaultBannerPhoto); }
			$("#banner_photo").css("visibility","visible");
		}
	});
	$('#search').pdSearch({showButton:true, showButtonClass:'searchSubmit',showButtonText:''});
});
/*
function GetPhotos(pID){	
	$.ajax({
		type: "GET",
		url: "/xml/default.asp?sid=252&type=photoall&id="+pID,
		dataType: "xml",
		success: function(xml) {
			//alert(lphotos);		
				var totalphotos = parseInt($(xml).find('item').attr("totalphotos"));
				var randomNum = Math.floor(Math.random() * (totalphotos+1));
				var randCount = 0;
				$(xml).find('image').each(function(){
					
					if(randCount == randomNum){
						//set my photo						
						var path = $(this).find("path").text();												
						$("#banner_photo").css("background","url("+path+") no-repeat");						
					}
					randCount++;
				});			
		},
		error: function(request,tStatus,eThrown){
			//alert("Cant Get Photos");
		}
	});		
}
*/
/*Search Functions
function submitSearch(){ __pdSiteSearch('', document.getElementById("search").value); }
function SubmitOnEnter(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode;
	if(charCode == "13" || charCode == "26"){ submitSearch(); return false; }
} */
