$(window).load(function(){
	$('.item-container h1 span.titleNormal').each(function(){
		var title = $(this).html().toLowerCase();
		if(title!=''){
			var color = '0x343834';
			var size = '30';
			$(this).flash({
				src: '/flash/viotitle.swf?m='+Math.random(),
				width: 625,
				height: 35,
				wmode: 'high',
				flashvars: {'t':title, 'color':color, 'size':size}
			}); 
		}
	});
	
	$('.item-vacature span.email').each(function(){
		var email = $(this).html().toLowerCase();
		if(email!=''){
			var color = '0x828413';
			var size = '11';
			$(this).flash({
				src: '/flash/vioemail.swf?m='+Math.random(),
				width: 470,
				height: 17,
				wmode: 'high',
				flashvars: {'e':email, 'color':color, 'size':size}
			});
		}
		$('.email div.alt').remove();
	});
});

$(function() {
	$('.item-text-image a').lightBox({
		overlayBgColor: '#000',
		overlayOpacity: 0.6,
		imageLoading: '/images/lightbox-ico-loading.gif',
		imageBtnClose:'/images/lightbox-btn-close.gif',
		imageBtnPrev: '/images/lightbox-btn-prev.gif',
		imageBtnNext: '/images/lightbox-btn-next.gif',
		containerResizeSpeed: 350,
		txtImage: 'afbeelding',
		txtOf: 'van'
	});
});
