
  $(document).ready(function(){

	$('a#sidebartoggle').click(function(){
		$('#sidebartext').slideToggle(400);
                 if( $('#cxcontent').is('.cxcontentnormal') ) {
                           $('#cxcontent').removeClass('cxcontentnormal');
                        $('#cxcontent').addClass('cxcontentwide');
                 }
                 else {                   
                         $('#cxcontent').removeClass('cxcontentwide');
                         $('#cxcontent').addClass('cxcontentnormal');

                 }
                 return false;

  	});

	$('li#tag_cloud').click(function() {
    		$('#tag_cloud a').slideToggle(600);
				return false;
  	});

	$('a#kommentar-toggle').click(function() {
    		$('#kommentarblender').slideToggle(400);
   		 return false;
  	});
	$('a#kommentarpost-toggle').click(function() {
    		$('#kommentarpostblender').slideToggle(400);
   		 return false;
  	});
	
	$('a.topper').click(function() {
    		$('html').animate({scrollTop:0}, 'slow'); 
   		 return false;
  	});



  });


$(function() {
        $('.gallery a').lightBox();
		$('a.lightbox').lightBox();
    });


