
$(document).ready(function(){
						   
	
		var FontSize = $.session("FontGrote");
		if(FontSize > "0") {
		var currenstFontSizeNum = parseInt(FontSize);
		} else
		{
			currenstFontSizeNum = "16px"
		};
  	$("html").css('font-size', currenstFontSizeNum);
  	
		
		
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');

  $(".reset").click(function(){

  $("html").css('font-size', "16px");
  $.session("FontGrote", "16px");
	

  });
  // Increase Font Size
$(".groter").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.1;
	$("html").css('font-size', newFontSize);
	
	$.session("FontGrote", newFontSize);
	
	return false;
  });
  // Decrease Font Size
$(".kleiner").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$("html").css('font-size', newFontSize);
	$.session("FontGrote", newFontSize);
	
	return false;
	
  });
					   
  
  
  
    $("#afdrukken").click(function(){
								   
  $( ".tekst" ).print();
								   });
  
  
      $("#afdrukkenPop").click(function(){
								   
  $( ".tekst" ).print();
								   });
  
  
  $first = $("#premium").width();
  $second = $("#premium2").width();
   $third = $("#first").width();
	
	
	$grote = "570" - ($first + $second + $third);
	
	if ($grote < 370)
	{
	
	$('#second').css('width', $grote);
	}
	else
	{
	$('#second').css('width', '0');	
	}
	
  
  $("input[name=zoekterm]").click(function(){
										   
										   
										   
										   
			if($(this).val() == "Zoeken...") { 
				$(this).val("")
				}
				else
				{
		};
	});
  
});

