function widthfix() {
  $('.widthfix_oneside').css('width',(1200 - 12) + "px");
}

function fullwidthadjust() {
  
  var windowwidth=$(window).width();
    
  $('.fromleft').css('left',((windowwidth/2)-600) + 'px');
  $('.fromright').css('right',((windowwidth/2)-600) + 'px');

  $('#submenu').css('left',((windowwidth/2)-363) + 'px');
  
  $('#modeswitch a:last').css('marginRight',((windowwidth/2)-600) + 'px');
  
}

function contentheightadjust() {
  // Content height
  var yheight=$('#modeswitch').offset().top;
  yheight=parseInt(yheight);
  
  $('#content').css('height',(yheight - 12) + 'px');
  
  $('.scroll').css('height', (yheight - 50) + "px");
  
  $('.scroll').jScrollPane( { 
     scrollbarWidth: 4,
     dragMaxHeight: 57
   });
  
}

function backgroundsize() {
  
  var ratio=1.725352112676056;
  
  var newx=$(window).width();
  var newy=newx/ratio;
  var newy=Math.round(newy);
  
  //var newy=$(window).height();
  //var newx=newy*ratio;
  //newx=Math.round(newx);
  
  $('#background_img').css('width',newx + 'px','height',newy + 'px');
  
}

  
  

