$(document).ready(function() {

  //$('form.searchform input[type=text]').val('Zoeken');
  var originalSearchFieldText = '';
  $('form.searchform input[type=text]').click( function(){
    if ((this.value.toLowerCase() == 'zoeken') || (this.value.toLowerCase() == 'search'))
    {
      originalSearchFieldText = this.value;
      $(this).val('');
    }
  });

  $('form.searchform input[type=text]').blur( function()
  {
    if ( this.value == '' )
    {
      $(this).val(originalSearchFieldText);
    }
  });

  $('#print').click( function() {
    //$('#print_container').html($('#content').html());
    window.print();
  });

	$("a[rel^='prettyPhoto']").prettyPhoto();

});

var min = 10;
var max = 18;

function increaseFontSize(num) {
  // Increase the font size with factor 1.1
  var currentFontSize = num;
  currentFontSize = currentFontSize * 1;
	//var currentFontSizeNum = parseFloat(currentFontSize, 1);
  var newFontSize = currentFontSize;
  
	$('html').css('font-size', newFontSize + "em");
  $('#main_content_container').css('font-size', newFontSize + "em");
  $('ul#categorie_titles').css('font-size', newFontSize + "em");
  $('ul.links_left li').css('font-size', newFontSize + "em");
  
	return false;
}

function changeFontSize(to) {
  // 'to' can be 'increase' ( = increase the font size) or 'decrease' ( = decrease the font size) or 'default'
  switch (to)
  {
    case 'decrease':
      $('html').css('font-size', parseInt($('html').css('font-size'))-1 + 'px');
      break;
    case 'increase':
      $('html').css('font-size', parseInt($('html').css('font-size'))+1 + 'px');
      break;
    default:
      $('html').css('font-size', 14 + 'px');
  }
}
