
$(function(){
	$.extend($.fn.disableTextSelect = function() {
		return this.each(function(){
			if($.browser.mozilla){//Firefox
				$(this).css('MozUserSelect','none');
			}else if($.browser.msie){//IE
				$(this).bind('selectstart',function(){return false;});
			}else{//Opera, etc.
				$(this).mousedown(function(){return false;});
			}
		});
	});
});
/* call jquery onload */
$(document).ready(function(){
	var bodyHeight =  $(document).height() - 30;
	$("#footer").css({'top': bodyHeight});

	// disable rightmouseclick
	//$("#container, #footer").noContext();
	//$("#container, #footer").disableTextSelect();//No text selection on elements with a class of 'noSelect'
	
	// toggle menu
	$("#nav_ul li").hover(function(){
		$(this).children("ul").css({"display":"block"});        
	}, function(){
		$(this).children("ul").css({"display":"none"});        
	});
	
	$.superbox.settings = {
		overlayOpacity: .8,
		closeTxt: "Close",
		loadTxt: "Loading...",
		nextTxt: "Next",
		prevTxt: "Previous"
	};
	$.superbox();

}); 