document.write("<style>.load { background:url(/images/numbers/blur.gif) top left no-repeat; }</style>");

var	JavaScriptSchoolID = 428, EM_ID = 11658, addthis_pub="49074b1407fb94f1",
	timeoutLength,
	MenuArray = new Array(
		{pageid:121487,hoffset:-16,voffset:-4},
		{pageid:121488,hoffset:-30,voffset:-4},
		{pageid:121489,hoffset:-29,voffset:-4},
		{pageid:121490,hoffset:-7,voffset:-4},
		{pageid:121491,hoffset:-34,voffset:-4}
	);

$(function(){
	$("body").bulletin({sid:JavaScriptSchoolID, gid:EM_ID});
	$("#banner").menu({ sid:JavaScriptSchoolID, settings:MenuArray, currentL1:0, showL3s:false });
	$('#twits').tweets({ account:"from:berkeleyprep", tweetCount:3, showPostDate: true }); //jaredharbour
		
});

$(window).load(function(){
		setTimeout(function(){
			$("#dollar").removeClass("load");
			setTimeout(function(){
				$("#millions").removeClass("load");
				setTimeout(function(){
					$("#hundredthousands").removeClass("load");
					setTimeout(function(){
						$("#tenthousands").removeClass("load");
						setTimeout(function(){
							$("#thousands").removeClass("load");
							setTimeout(function(){
								$("#hundreds").removeClass("load");
								setTimeout(function(){
									$("#tens").removeClass("load");
									setTimeout(function(){
										$("#ones").removeClass("load");
										setTimeout(function(){
											$("#percent").removeClass("load");
										},250);
									},250);
								},250);
							},250);
						},250);
					},250);
				},250);
			},250);
		},250);
	});


function submitSearch(){ window.location = "/podium/default.aspx?t=52392&q="+document.getElementById("search").value+"&pt=Berkeley Preparatory School Search"; }
function SubmitOnEnter(evt){
	var charCode = (evt.which) ? evt.which : event.keyCode;
	if(charCode == "13" || charCode == "26"){ submitSearch(); return false; }
}