
/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

(function($) {
	$.fn.extend({
		pause: function(milli,type) {
			milli = milli || 1000;
			type = type || "fx";
			return this.queue(type,function(){
				var self = this;
				setTimeout(function(){
					$(self).dequeue();
				},milli);
			});
		},
		clearQueue: function(type) {
			return this.each(function(){
				type = type || "fx";
				if(this.queue && this.queue[type]) {
					this.queue[type].length = 0;
				}
			});
		},
		unpause: $.fn.clearQueue
	});
})(jQuery);

var cambridge = {

	ajaxloadingmsg: '<center><div style="font-weight: bold; margin: 0px 0px 0px 225px; height: 250px;"><img src="images/ajax-loader.gif" style="vertical-align: middle" /> <br /> <br /> Please wait, as we load your requested page</div></center>', //customize HTML to show while fetching Ajax content

	// Loads a dynamic ajax page
	loadPage:function(page, div){
		$(div).html(this.ajaxloadingmsg);
		$.ajax({
		  url: page,
		  cache: false,
		  success: function(content){
			$(div).html(content);
		  }
		});
	},

	initLoad:function(page, div) {
		this.loadPage(page, div);
	}
};
