$(document).ready(function() {

	if($(".popup")){
	  $(".popup").fancybox({
			'overlayShow':	true,
			'overlayOpacity':0.5,
			'zoomSpeedIn':	300, 
			'zoomSpeedOut':	0
	  });
	}

	$('.stnd').blur(function() {
		if($(this).val()==''){
			$(this).val($(this).attr('alt'));
		}
	});
	$('.stnd').focus(function() {
		if($(this).val()==$(this).attr('alt')){
			$(this).val('');
		}
	});
	$('.stnd').each(function(){
		if($(this).val()==''){
			$(this).val($(this).attr('alt'));
		}
	});

});

function leesmeer(id){
	$('#leesmeer'+id).slideDown("slow");
	$('#a'+id).hide();
}

function reinit(id){
	if(id==1){
		sIFR.replace(Optima, {
			selector: '.bannerBox h2'
				,css: [
					'.sIFR-root { text-transform: uppercase; font-size: 16px; font-weight: bold; color: #5f4217; }'
				]
				,transparent: true
				,forceSingleLine: true
		});
	} else if(id==2){
		sIFR.replace(Optima, {
			selector: '.detailsBox h2'
				,css: [
					'.sIFR-root { text-transform: uppercase; font-size: 18px; font-weight: bold; color: #5f4217; }'
				]
				,transparent: true
				,forceSingleLine: true
		});
		$(".popup").fancybox({
			'overlayShow':	true,
			'overlayOpacity':0.5,
			'zoomSpeedIn':	300, 
			'zoomSpeedOut':	0
		});
	}
}
