
function randomPhoto(){

/* 	alert(	$('.xxl').length ); */
	if ( $('.xxl').length == 0 ){
		var randomNR = Math.floor( Math.random()*8 + 1 );
		var photoName = "/img/header/img-photo-" + randomNR + ".jpg";
	} else {
		var randomNR = Math.floor( Math.random()*9 + 1 );
		var photoName = "/img/headerhome/img-photo-" + randomNR + ".jpg";
	}
	
	var image = new Image();
    	image.src = photoName;
    
	$("#slideshow").empty().append( image );
};

$(document).ready(function(){

	 randomPhoto();
	
	$('.header h2').fadeIn(1500);
	$('#slideshow').fadeIn(1500).innerfade({
			animationtype: 'fade',
			speed: 1500,
			timeout: 4000,
			type: 'sequence',
			containerheight: '260px'
		});

	if ( $('#ifmail').length > 0 ){
		$('#ifmail').click(function(){
			var sName = "info";
			var sDomain = "iftechnology";
			var sTld = ".nl";
			document.location.href = "mailto:" + sName + "@" + sDomain + sTld;
		});
	};
	
	
					
});
