$(document).ready(function(){
	$("a[rel^='prettyPhoto']").prettyPhoto();
	Cufon('.nav a.fn', { fontFamily: 'BastardusSans', hover: { color: '#be292f' }});
	Cufon('H1,H2,.banner H3,.slider H3', { fontFamily: 'BastardusSans'});
	$('.lnav a').click(function () { 
		var lnk = $(this);
		if (lnk.parent().hasClass('active')) { $('.lnav li.active').children('ul').slideUp('normal', function() { $('.lnav li').removeClass('active'); }); }
		else { 
			$('.lnav li.active').children('ul').slideUp('normal', function() { $('.lnav li').removeClass('active'); });
			lnk.parent().children('ul').slideDown('normal', function() { lnk.parent().addClass('active'); }); 
		}
	});
	$("div.flogos a").hover(
		function () { 
			src = $(this).children('img').attr('src');
			if ($(this).attr('rel') != '') $(this).children('img').attr('src', $(this).attr('rel')); 
		}, 
		function () { $(this).children('img').attr('src', src); }
	);	
	$('#big-slider').cycle({ 
    		fx:      'fade', 
    		speed:    1000, 
    		timeout:  5000 
	});
	$('#small-slider-1').cycle({ 
    		fx:      'fade', 
    		speed:    1000, 
    		timeout:  5000 
	});
	$('#small-slider-2').cycle({ 
    		fx:      'fade', 
    		speed:    1000, 
    		timeout:  5000 
	});
	$('#slogan').cycle({ 
    		fx:      'fade', 
    		speed:    1000, 
    		timeout:  7000,
			cleartype: true, 
			cleartypeNoBg: true,
			random:  1			
	});
	//console.log($('.right-col h4').css('color'));
	//console.log($('.right-col h4').css('font-size'));
	//console.log($('.right-col h4').css('padding-left'));
});

function validator()
{
	error=0;
	msg='';
	if ($('input[name="row1"]').attr('value') == "") {
		msg+=("geef Uw Naam\n");
		$('input[name="row1"]').focus();
		error=1;
	}
	if ($('input[name="row2"]').attr('value') == "") {
		msg+=("geef Bedrijf\n");
		$('input[name="row2"]').focus();
		error=1;
	}if ($('input[name="row5"]').attr('value') == "") {
		msg+=("geef Telefoon\n");
		$('input[name="row5"]').focus();
		error=1;
	}if ($('input[name="row6"]').attr('value') == "") {
		msg+=("geef Email\n");
		$('input[name="row6"]').focus();
		error=1;
	}
	if(error==0){
		return true;
	}else{
		alert(msg);
		return false;
	}
	
}
