    $(function() {
        $("#1, #2, #3").lavaLamp({
            fx: "backout", 
            speed: 700,
            click: function(event, menuItem) {
            return true;
            }
        });

    });

	$(document).ready(function(){
	// AJAX CONTENT
	$('.ajax').ajaxContent();
		$('.ajaxload').ajaxContent({
			loaderType:'img',
			loadingMsg: 'loading.gif',
			target:'#leftColumn'
		});
	});
	
	// Load url from my Link
	function load(mylink) {
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	   $.ajax({ url: mylink });
	return false;
	}
	
    // unblock when ajax activity stops 
    $().ajaxStop($.unblockUI); 
	
    // UI BLOCK
	$(document).ready(function() { 
        $('.ajaxload').click(function() { 
            $.blockUI('<strong>Loading...</strong><br /><img src=images/loadingAnimation.gif /><br />Please wait a moment'); 
            load(mylink); 
        }); 
    });
	
	//ui tabs
	$(document).ready(function(){ 
        $('#container-1 > ul').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
    }); 
	
	$(document).ready(function(){
	   $("#container-2 > ul").tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
	});
	
	$(document).ready(function(){
	
	//hide message_body after the first one
	$(".message_list .message_body:gt(0)").hide();
	
	//hide message li after the 5th
	$(".message_list li:gt(4)").hide();

	
	//toggle message_body
	$(".message_head").click(function(){
		$(this).next(".message_body").slideToggle(500)
		return false;
	});

	//collapse all messages
	$(".collpase_all_message").click(function(){
		$(".message_body").slideUp(500)
		return false;
	});

	//show all messages
	$(".show_all_message").click(function(){
		$(this).hide()
		$(".show_recent_only").show()
		$(".message_list li:gt(4)").slideDown()
		return false;
	});

	//show recent messages only
	$(".show_recent_only").click(function(){
		$(this).hide()
		$(".show_all_message").show()
		$(".message_list li:gt(4)").slideUp()
		return false;
	});

	});
