function doMenu() {
  return;

  jQuery('li.dropdown a').click(function(e) {
    e.preventDefault();
    
    if (jQuery(this).parent().children('ul:visible').length) {
      jQuery(this).parent().removeClass('dropdown');
      jQuery(this).addClass('dropdown');

      jQuery(this).parent().css({position: 'relative', height: (jQuery.rumors.menuh)+'px', width: (jQuery.rumors.menuw)+'px'});
      jQuery(this).parent().children('ul').hide();
    } else {
      jQuery(this).removeClass('dropdown');
      jQuery(this).parent().addClass('dropdown');

      var width=jQuery(this).parent().width();
      var height=jQuery(this).parent().height();
      jQuery.rumors.menuw=width;
      jQuery.rumors.menuh=height;
      var ulheight=jQuery(this).parent().children('ul').height();
      //alert(height + ulheight);
      jQuery(this).parent().css({zIndex: 10000, position: 'absolute', width: width+'px', height: (height + ulheight)+'px'});
      jQuery(this).parent().children('ul').show();
    }
  });

  return;

  jQuery('ul#mainmenu > li').each(function(i, val){
    c=jQuery(val).children('ul');
    if (c[0]) {
      //jQuery(c).css({paddingTop: '0', paddingBottom: '0'});
      //jQuery(c).find('li').css({width: '100%'});

      pos=parseInt(jQuery(val).children('a').position().top);
      h=parseInt(jQuery(c).height())-pos;

      //jQuery(c).css({visibility: 'hidden', position: 'absolute', left: parseInt(jQuery(this).position().left)+'px', width: 'auto'});
      jQuery(c).css({top: (jQuery(val).height()+pos)+'px', height: 'auto'});
    }

    jQuery(val).hover(function(e){
      jQuery(val).addClass('hover');
      //jQuery(this).children('a').css({color: '#ffffff', backgroundColor: '#4d4d4d'});
      p=jQuery(this).children('ul');
      
      if (p[0]) {
        //jQuery('div.post').find('embed').css({position: 'relative', zIndex: 1010});
        //jQuery('div.post').find('object').css({position: 'relative', zIndex: 1010});
        jQuery(p).css({visibility: 'visible', zIndex: 1000});
        jQuery(p).find('ul').css({visibility: 'visible'});
      }
    }, function(){
      jQuery(val).removeClass('hover');
      //jQuery(this).children('a').css({backgroundColor: 'transparent', color: '#ffffff'});
      p=jQuery(this).children('ul');
      
      if (p[0]) {
        jQuery(p).css({visibility: 'hidden'});
        jQuery(p).find('ul').css({visibility: 'hidden'});
      }
    });
  })
  
}

function doShareBox() {
  jQuery('#cformsform').append('<a href="#" id="presendbutton">Share</a>');
  
  jQuery('#cformsform').find('#presendbutton').click(function(e) {
    e.preventDefault();
    jQuery(this).css('visibility', 'hidden');
    jQuery('#cformsform').find('#sendbutton').css('visibility', 'visible');
    jQuery('#cformsform').find('fieldset').show();
  });
}

jQuery(document).ready(function() {
  jQuery.rumors={};
  jQuery.rumors.menuh=0;

  doMenu();
  
  doShareBox();

  var owtscrollw=jQuery(".scrollable").width();
  jQuery(".scrollable").find(".row").css('width',owtscrollw+'px');
  jQuery(".scrollable").scrollable({ vertical: false, next: '.scrollnext', prev: '.scrollprev' });

//  jQuery("#new-topic-post #forum-topic-form .mceLayout").width("100%");

  /*
  jQuery('#additionalmenu').css({ width: jQuery('#dropdown').width()+30 });
  jQuery('a#dropdown').overlay({
//    left: jQuery('#dropdown').position().left,
//    top: jQuery('#dropdown').position().top,
    left: jQuery('#dropdown').position().left+jQuery('#dropdown').parent().parent().parent().position().left-15,
    top: jQuery('#dropdown').position().top+jQuery('#dropdown').parent().parent().parent().position().top,
    fixed: false,
    closeOnClick: true
  });
  */

  Cufon.now();
});


