//dealing with text resize buttons
$(document).ready(function() {
  $('span.font_buttons').click(function() {
    var $content = $('#content');
    var currentSize = $content.css('fontSize');
    var num = parseFloat( currentSize, 10 );
    var unit = currentSize.slice(-2);
    if (this.id == 'font-large') {
      num *= 1.1;
    } else if (this.id == 'font-small') {
      num /= 1.1;
    }
    $content.css('fontSize', num + unit);
  });
});

//AJAX data load from plain text
function loadContent(call,div_id)
{
  $("#"+div_id+"").load("system/functions.php?call="+call+"");
}

//menu show and hide function
$('document').ready(function(){
  $('#show_hide_menu').toggle(function() {
    $('#header').animate({height: "0px"}, 1000);
    $('#container').animate({marginLeft: "-160px"}, 1000);
    $('#top-search').hide();
    $('#status').hide();
    $('#font_buttons').hide();
    $('#show_hide_menu').text("Show Menus");
  }, function() {
    $('#header').animate({height: "150px"}, 1000);
    $('#container').animate({marginLeft: "0px"}, 1000);
    $('#top-search').show();
    $('#status').show();
    $('#font_buttons').show();
    $('#show_hide_menu').text("Hide Menus");
  });
});