    window.onload = function()
    {
        var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
        if (!IE6)
        $('#mainmenubar').lavaLamp({fx: "anim", speed: 300});
        
        var blip = document.getElementById('blipscript');
        blip.src="http://api.blip.pl/users/seconference/statuses.json?callback=bliploaded&limit=5";
        
       
        $('.aheader').click(function(){
            var blip = $('#blipheader').next();
            var login = $('#loginheader').next();
            var current = $(this).next();
            if (current.is(':visible')) return;
            
            if (blip.is(':visible')) blip.slideUp('fast');
            else blip.slideDown('fast');
            if (login.is(':visible')) login.slideUp('fast');
            else login.slideDown('fast');
        });
		
		
		$('a#newsletterlink').click(function(){
			insertthrobber();
			$('#newsletterformcontent').hide();
			$('#newsletterformcontent').load("/newsletter/register/",waitforresp);
		});	
		
		$('a.showhidedocs').toggle(function(){$(this).next().slideDown();}, function(){$(this).next().slideUp();});     
    }
    
    jQuery.extend(jQuery.easing,{
            anim : function(x, t, b, c, d, s) 
            {
                if (s == undefined) s = 1.70158;
                return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
            }
        });
        

    function bliploaded(resp)
    {
        $('img#blipthrobber').remove();
        show_blip(resp);
    }
    
    
    function loadContent(what)
    {
        $("#leftside").load(what);
    }
	

	function insertthrobber()
	{				
		var w = $('#newsletterbox').width();
		var h = $('#newsletterbox').height();
		$('#newsletterformcontent').after('<div id="newsletterthrobber"></div>');
		$('#newsletterformcontent').hide();
		$('#newsletterthrobber').width(w);
		$('#newsletterthrobber').height(h);
	}
	
	function waitforresp()
	{
		$('#newsletterthrobber').remove();
		$('#newsletterformcontent').show();
		$("#footersitemap").hide();
	}
	
	function shownlform() {$('#newsletterformcontent').load("/newsletter/register/",function(){$('a#newsletterlink').hide();$("#footersitemap").hide();});}
	
	