$(document).ready(function() {
									
	$("a[accesskey='A']").hover(function() {
		$('img', this).attr('src', $('img', this).attr('src').replace(/\./g, "_h."));
	}, function() {
		$('img', this).attr('src', $('img', this).attr('src').replace(/\_h/g, ""));
	});
	
	
	$("#b_1").hover(function() {
		$(this).css('background-position', '0px -41px');
	}, function() {
		$(this).css('background-position', '0px 0px');
	})
	
	$("#b_2").hover(function(){
		$(this).css('background-position', '0px -41px');
	},function(){
		$(this).css('background-position', '0px 0px');
	})
	
	$("#b_5").hover(function(){
		$(this).css('background-position', '0px -41px');
	},function(){
		$(this).css('background-position', '0px 0px');
	})
	
	$("#b3").hover(function(){
		$(this).css('background-position', '0px -28px');
	},function(){
		$(this).css('background-position', '0px 0px');
	})
	
	
	$('.acc_container').hide();
	$('.acc_trigger:first').addClass('active').next().show();
	$('.acc_trigger').click(function(){
		if( $(this).next().is(':hidden') ) {
			$('.acc_trigger').removeClass('active').next().slideUp(); 
			$(this).toggleClass('active').next().slideDown();
		}
		return false; 
	});
		
});


var max;
var min;
function increaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 14;
      }
      p[i].style.fontSize = s+"px"
   }
}
function normaleFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s = 12;
      }
      p[i].style.fontSize = s+"px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('div');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s = 10;
      }
      p[i].style.fontSize = s+"px"
   }   
}


