    //jQuery.noConflict();
    jQuery(document).ready(function($){
    
        //jQuery('.mcol').makeacolumnlists({cols: 3, colWidth: 305, equalHeight: 'ul', startN: 1});
        jQuery('.mcol2').makeacolumnlists({cols: 6, colWidth: 155, equalHeight: 'ul', startN: 1});
        jQuery('.textcol').makeacolumnlists({cols: 3, colWidth: 300, equalHeight: 'ul', startN: 1});
        jQuery('#about .mcol2, #texts .mcol2').css('float','right');
        
        $('.mcol').masonry({
		  itemSelector: '.article',
		  columnWidth: 30
		});
		
		$(".textcontent a[href$='jpg']").attr('rel','shadowbox');
		$(".article a[href$='jpg']").attr('rel','shadowbox');
		
		
       Shadowbox.init({
       		overlayOpacity: 0.8,
       		viewportPadding: 15
       	});
       	
       	Shadowbox.setup("a.newsletterlink", {
        content:    'http://www.andre-wagner.com/newsletter.html',
        player:     "html",
        title:      "Signup for my newsletter",
        height:     200,
        width:      350
    });

       	
       	$('#togglesidebar').toggle(function() {
       	  $('#sidebarinside').hide();
		  $('#sidebar').animate({
		    width: '10'
		  }, 500, function() {
		  	$('#togglesidebar').html('&laquo;');
		  });
		  
		}, function() {
		  $('#sidebar').animate({
		    width: '350',		   
		  }, 500, function() {
		    $('#sidebarinside').show();
		  	$('#togglesidebar').html('&raquo;');
		  });
		});

    });
