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:25, showPostDate: true }); //jaredharbour
	

	//twitter plugin
	//var options = {
		//account:"from:BerkeleyPrep",
		//account:"whipplehill",
		//tweetCount:50,
	//};
	//$('#tweets').tweets(options);
	
	var options = {
		//search:{user:"jquery",list:"team"},
	    search:"@BerkeleyPrep",
	    //search:"#patriots",
	    //search:"patriots",
	    //search:"",
	    fromRSS:true,
	    maxTweets:3,
	    displaySource:true,
	    displayDate:true,
	    useRelativeTime:true,
	    css:{
	    	tweetContainer:"tweet-container"
	    }
	};
	$(".tweets").simpleTweet(options);
});

$(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; }
}