//CONTROLLING EVENTS IN jQuery
function isArray(obj) {
    return obj.constructor == Array;
}
function hidemenu(names){
	if(names == null)
		names = menuList();
	for ( var i in names )
	{
		$(names[i]).hide(0);
	} 
}
function quickhide(names, speed){
	if(speed == null)
		speed = "slow";
	if(names == null)
		names = menuList();
	for ( var i in names )
	{
    	$(names[i]).hide(speed);
	} 
}
function showmenu(menuitem, names){
	if(names == null)
		names = menuList();
	hidemenu(names);
	if(isArray(menuitem)){
		for ( var i in menuitem)
		{
			$(menuitem[i]).fadeOut("slow");
		} 
		$(menuitem).fadeOut("slow");
	}
	$(menuitem).fadeIn("slow");
}
function displayNew(div){
	$(div).fadeOut("slow");
	$(div).fadeIn("slow");
	$(div).fadeOut("slow");
	$(div).fadeIn("slow");
}
$(document).ready(function(){
/*	$("#content").css({
			"opacity": "0.9"
		});
	$("#leftMenuItems").css({
			"opacity": "0.9"
	});
*/
	// Adjust the bigWrap Padding for the footer //
	$('#bigWrap').css('padding-bottom', ($('#footWrap').height()+25)+'px');
});
