
  $(document).ready(function(){
    try{
      $('div.storycontent a.images').lightBox();
    }catch(e){
      void(0);
    }
    
    try{
      $('span.toggle').bind('click',function(){
        $(this).parent().next().slideToggle(700);
        if($(this).html() == 'close'){
          $(this).html('open');
        }else{
          $(this).html('close');
        }
      });
    }catch(e){
      void(0);
    }
    
    try{
      $('.meta').corner("10px");
    }catch(e){
      void(0);
    }
    
    try{
      $('span.minus').bind('click',function(){
        var children = $(this).parent().next().children();
        $.each(children,function(index,value){
          var actualSize = parseInt($(value).css('font-size'));
          $(value).css({'font-size':(actualSize-1)+"px"});
        });
      });
    }catch(e){
      void(0);
    }
    
    try{
      $('span.plus').bind('click',function(){
        var children = $(this).parent().next().children();
        $.each(children,function(index,value){
          var actualSize = parseInt($(value).css('font-size'));
          $(value).css({'font-size':(actualSize+1)+"px"});
        });
      });
    }catch(e){
      void(0);
    }
    
    try{
      dp.SyntaxHighlighter.ClipboardSwf = 'http://razorblade.netsons.org/flash/clipboard.swf';
      dp.SyntaxHighlighter.HighlightAll('code');
    }catch(e){
      void(0);
    }
    
    /*try{
      function sideHeight(e){
        var paddinMargin = 10;
        var cHeight = parseInt($('#content').height());
        var height = cHeight+paddinMargin;
        $('#sidebar').css({'height':height+"px"});
      }
      $(window).bind('load',sideHeight);
      $(window).bind('resize',sideHeight);
    }catch(e){
      void(0);
    }*/

  });
