var winscroll;
 window.addEvent('domready', function() {
	if($('fancymenu'))
    FancyExample = new SlideList($E('ul', 'fancymenu'), {
          transition: Fx.Transitions.backOut, 
          duration: 700, 
          onClick: function(ev, item) { /*ev.stop();document.location.href=item.href;*/ }});
    new SmoothScroll();
    /*fix too wide images in content*/
    $ES('img', 'content').each(function(image, index){
          if(image.width > 500){
                image.width=400;
                image.style.cursor='SE-resize';
                image.addEvents({
                      'wheelup': function(e) {
                            e = new Event(e).stop();
                            this.width *= 1.1;
                            this.height *= 1.1;
                      },

                      'wheeldown': function(e) {
                            e = new Event(e).stop();

                            if (this.width >= 400) {
                                  this.width /= 1.1;
                                  this.height /= 1.1;
                            }
                      }
                });

          }
        winscroll = new Fx.Scroll('window');
    });
  //  new Lightbox({ autoScanLinks: false }, $('content').getElements('img'));

}); /*end dom-ready*/
function replyMsg($input,$name ){
      
      var $rc = $('response_content');
      /**
       * Description of the Variable
       * @var		string
       * @access	public
       */
      var $signature = $rc.value;
      $rc.value = "[QUOTE][B]"+$name+" skrev:[/B]"+$input.innerHTML+ '[/QUOTE]\n'+$signature;
}