// Firstword
jQuery(function(){
   
jQuery("h1").html(function(i,text){
    return text.replace(/\w+\s/, function(match){
        return '<span class="oranje">' + match + '</span>';
    });
});
    
});

// VERTICALLY ALIGN FUNCTION
(function (jQuery) {
jQuery.fn.vAlign = function() {
	return this.each(function(i){
	var ah = jQuery(this).height();
	var ph = jQuery(this).parent().height();
	var mh = (ph - ah) / 2;
	jQuery(this).css('margin-top', mh);
	});
};
})(jQuery);

jQuery('.foto-holder-left').vAlign();

// Loop icon rollover
jQuery(document).ready(function(){
	jQuery(".foto-holder-left a").append("<span></span>");
	jQuery(".foto-holder-left a").hover(function(){
		jQuery(this).children("span").fadeIn(600);
	},function(){
		jQuery(this).children("span").fadeOut(200);
	});
});

jQuery(document).ready(function(){
	jQuery(".foto-holder-regio a").append("<span></span>");
	jQuery(".foto-holder-regio a").hover(function(){
		jQuery(this).children("span").fadeIn(600);
	},function(){
		jQuery(this).children("span").fadeOut(200);
	});
});

// Screenshot
jQuery(function() {
	jQuery('#screenshots').cycle({
		fx:     'fade',
		speed:  900,
		timeout: 2250,
		pager:  '#slidernav1',
		auto: true
	});
});
