willow.ready(function($) {
  	//emergency bulletin options
	var options = {
		emButtonPosition: "right",
		emButton: false
	};
	//LIVE 12872
	//DEV 12870
	//emergency bulletin
	willow.getNews("12872",function(data){$('#Form1').bulletin(data,options);},{"backlink":window.location});
	
	//menu options
	var optionsmenu = {
		direction:"down",
		showL3s:false,
		speed:500
	};
	//menu
	willow.getMenu("119032|119046|119079|119114|119125|119143|119184|119194",function(data){
		$("#L1").menu(data.menu,optionsmenu);
	});	
	
	var caption = $("#photo_captionrotator").cycle({
		cleartypeNoBg:true,
		speed:500,
		timeout:0
	});
	
	caption.cycle('prev');
	
	$("#photo_rotator").cycle({
		before: function(){
			caption.cycle('next');
		},
		speed:500,
		timeout:5000
	});
	
	 $(".newsBrief").each(function(){
        $(this).fsplit(80);
      });
	  
	$('.ac_input').pdSearch({showButton:true, showButtonClass:'searchSubmit',showButtonText:''});
});

function openInit(){
	var thepage =  "/podium/MediaLibrary/player/default.aspx?recent=yes&mode=recent&browse=yes" //"/commoninc/media/default.asp?school_id=9854334433&mode=recent"
	var myWin = window.open(thepage, "mg", "location=no, menubar=no, scrollbar=no, status=yes, resizable=no, height=497, width=700")
}

/*Search Functions */
/*function submitSearch(){ window.location = "/podium/default.aspx?t=52392&q="+document.getElementById("search_input").value+"&pt=Search Results"; }
function SubmitOnEnter(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode
	if(charCode == "13" || charCode == "26"){
		submitSearch();
		return false;
	}
}*/




