
 $(function() {
  $('#navigation a').hover(function(){
   $(this).animate({left:'3px'},{queue:false,duration:200});
   $(this).animate({opacity:'1.0'},{queue:false,duration:200});
  }, function(){
   $(this).animate({left:'0px'},{queue:false,duration:500});
   $(this).animate({opacity:'0.7'},{queue:false,duration:200});
  });
 });

 $(function() {
  $('#navigation a').hover(function(){
   $(this).find('img').animate({left:'0px'},{queue:false,duration:200});
   $(this).find('img').animate({opacity:'1.0'},{queue:false,duration:200});
   $(this).find('span').animate({left:'15px'},{queue:false,duration:200});
   $(this).animate({opacity:'1.0'},{queue:false,duration:200});
  }, function(){
   $(this).find('img').animate({left:'10px'},{queue:false,duration:200});
   $(this).find('img').animate({opacity:'0.0'},{queue:false,duration:200});
   $(this).find('span').animate({left:'8px'},{queue:false,duration:200});
   $(this).animate({opacity:'0.7'},{queue:false,duration:200});
  });
 });
 
 
 $(function() {
  $('#content-right span').hover(function(){
   $(this).animate({opacity:'1.0'},{queue:false,duration:300});
   $(this).find('img').animate({ marginLeft:-45, marginTop: -75, width: '130%'}, 300);
  }, function(){
   $(this).animate({opacity:'0.8'},{queue:false,duration:500});
   $(this).find('img').animate({  marginLeft:0, marginTop: 0, width: '100%'}, 500);
  });
 });
 
 $(function() {
  $('#meret a').hover(function(){
   $(this).animate({opacity:'1.0'},300);
   $(this).find('span').animate({left: '-8px'},200);
  }, function(){
   $(this).animate({opacity:'0.6'},300);
   $(this).find('span').animate({left: '-480px'},400);
  });
 });
 
 
 
 $(function() {
  $('.tovabb').hover(function(){
   $(this).animate({opacity:'1.0'},{queue:false,duration:300});
   $(this).find('.nyil_ki').animate({opacity:'0.0'},100);
   $(this).find('.nyil_be').animate({opacity:'1.0'},400);
  }, function(){
   $(this).animate({opacity:'0.8'},{queue:false,duration:300});
   $(this).find('.nyil_ki').animate({opacity:'1.0'},400);
   $(this).find('.nyil_be').animate({opacity:'0.0'},100);
  });
 });
 
 
  $(function() {
  $('.letoltes').hover(function(){
   $(this).animate({opacity:'1.0'},{queue:false,duration:300});
   $(this).find('.nyilacska').animate({opacity:'1.0'},100);
   $(this).find('.nyilacska').animate({top:'30px'},{queue:false,duration:300});
  }, function(){
   $(this).animate({opacity:'0.8'},{queue:false,duration:300});
   $(this).find('.nyilacska').animate({opacity:'0.0'},400);
   $(this).find('.nyilacska').animate({top:'0px'},{queue:false,duration:300});
  });
 });
 
 
 
 

 
 
 
$(document).ready(function(){  
var widthDelta = $('#content-right').width();
$('#content-right .sidepic').css('height', widthDelta *1.3);
});
















 // Reset Font Size
  var originalFontSize = $('body').css('font-size');
  $(".resetFont").click(function(){
  $('body').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('body').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	$('body').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('body').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$('body').css('font-size', newFontSize);
	return false;
  });











