/* Author: Pascal Kluivers @ Kees-TM

*/
var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}


  
/* =========== CUFON =========== */
Cufon.replace('h1, h2, h3, h5, .title, ul#nav li a, .btn',{hover:true}, { fontFamily: 'chocolatebox' });

$("#contactform").validate();

$("label").inFieldLabels();

/* =========== SUBNAVIGATIE =========== */

$('.2,.3,.4,.5,.6,.7,.8').hide();

$("#1").click(function(){
	$('.1').fadeIn();
	$('.2,.3,.4,.5,.6,.7,.8').fadeOut();
});

$("#2").click(function(){
	$('.2').fadeIn();
	$('.1,.3,.4,.5,.6,.7,.8').fadeOut();
});

$("#3").click(function(){
	$('.3').fadeIn();
	$('.1,.2,.4,.5,.6,.7,.8').fadeOut();
});

$("#4").click(function(){
	$('.4').fadeIn();
	$('.1,.2,.3,.5,.6,.7,.8').fadeOut();
});

$("#5").click(function(){
	$('.5').fadeIn();
	$('.1,.2,.3,.4,.6,.7,.8').fadeOut();
});

$("#6").click(function(){
	$('.6').fadeIn();
	$('.1,.2,.3,.4,.7,.8').fadeOut();
});

$("#7").click(function(){
	$('.7').fadeIn();
	$('.1,.2,.3,.5,.6,.8').fadeOut();
});

$("#8").click(function(){
	$('.8').fadeIn();
	$('.1,.2,.3,.5,.6,.7').fadeOut();
});


$(".sub").click(function(){
	$(".sub").removeClass("active");
	$(this).addClass("active");
});

/* =========== SUBNAVIGATIE =========== */


$('#image-section').cycle({
	fx:		'fade',
	timeout:  4000,
	cleartype: true,
	cleartypeNoBg: true
});


// usage: log('inside coolFunc', this, arguments);
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
function log(){
  log.history = log.history || [];   // store logs to an array for reference
  log.history.push(arguments);
  arguments.callee = arguments.callee.caller;  
  if(this.console) console.log( Array.prototype.slice.call(arguments) );
};
// make it safe to use console.log always
(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});


