var pathExpressInstallFile = escape("/lib/flash/expressInstall.swf");

function initPopups() {

    $.fn.nyroModal.settings.regexImg = '[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$|image.aspx';
    $.fn.nyroModal.settings.minWidth = 0;
    $.fn.nyroModal.settings.minHeight = 0;

}

function initContentFlash() {
	$('#flash').flashembed(
            {
            	src: '/lib/flash/ContentSlideshow.swf',
            	version: [9, 0],
            	expressInstall: pathExpressInstallFile,
            	wmode: 'transparent',
            	scale: 'noscale'
            }, { xmlPath: '/lib/xml/slideshow.ashx?id=@strucuurid@' }
        )
}

function initContactForm(){
    
    $('#frmContact').validate();
}


function initpanels(){
	$(document).ready(function() {

		// select #flowplanes and make it scrollable. use circular and navigator plugins
		$("#flowpanes").scrollable({ size: 1 }).circular().autoscroll(4000).navigator({

			// select #flowtabs to be used as navigator
			navi: "#flowtabs",

			// select A tags inside the navigator to work as items (not direct children)
			naviItem: 'a',

			// assign "current" class name for the active A tag inside navigator
			activeClass: 'current'

		});
	});

}

$(document).ready(function() {

	//Initialiseer hier je scripts
	initContentFlash();
	initPopups();
	initContactForm();
	initpanels();
});
