$(document).ready(function(){
	
	/* MAP */
	$("#map").gMap({
		markers: [{ latitude: 52.618651,
 		longitude: 4.631356 }],
 		maptype: G_HYBRID_MAP,
 		controls: false,
	   	zoom: 17
 	});
 	
 	/* SLIDER */
 	$('#slider').anythingSlider({
 		  hashTags: false
 	});
	
	/* PLACEHOLDER */ 	
 	$('[placeholder]').focus(function() {
	  var input = $(this);
	  if (input.val() == input.attr('placeholder')) {
	    input.val('');
	    input.removeClass('placeholder');
	  }
	}).blur(function() {
	  var input = $(this);
	  if (input.val() == '' || input.val() == input.attr('placeholder')) {
	    input.addClass('placeholder');
	    input.val(input.attr('placeholder'));
	  }
	}).blur().parents('form').submit(function() {
	  $(this).find('[placeholder]').each(function() {
	    var input = $(this);
	    if (input.val() == input.attr('placeholder')) {
	      input.val('');
	    }
	  })
	});
	
	/* FONTSIZE TOGGLE */
	$('#fontsize-toggle a').click(function(){
	
		var size = $(this).attr('class');
		var text = $('#main, #sidebar .text');
		
		if(size == 'small') {
			$(text).css('font-size', 11);
		}
		if(size == 'medium') {
			$(text).css('font-size', 14);
		}
		if(size == 'large') {
			$(text).css('font-size', 18);
		}
	});
	$(".gallery-icon a").attr('rel', 'group');
	/* FANCYBOX */
	$(".gallery-icon a").fancybox();
 	
});
