$(document).ready(function() {
	$('a.lightbox').lightBox({
		overlayBgColor: "#000",
		overlayOpacity: 0.6,
		imageLoading: "/public/images/lightbox/loading.gif",
		imageBtnClose: "/public/images/lightbox/close.gif",
		imageBtnPrev: "/public/images/lightbox/prev.gif",
		imageBtnNext: "/public/images/lightbox/next.gif",
		imageBlank: "/public/images/lightbox/blank.gif", 
		containerResizeSpeed: 350,
		txtImage: "",
		txtOf: "of"
	});
	
    $('#indexSlideshow').cycle({
		fx: 'fade'
	});
});


// Hard coded image rotator (SEO)

$(document).ready(function() {

	var so = new SWFObject('/public/flash/imagerotator.swf','mpl','855','167','8');
	so.addParam('allowscriptaccess','always');
	//so.addParam('allowfullscreen','true');
	so.addVariable("shuffle","false");
	so.addVariable("repeat","true");
	so.addVariable('width','855');
	so.addVariable('height','167');
	so.addVariable('file','http://www.bossuytwi.be/nl/index/slideshow/format/xml/dir/slideshow');
	so.addVariable('id','xxrotatordiv');
	so.addVariable('transition','fade');
	so.addVariable('shownavigation','false');
	so.addVariable('showicons','false');
	so.addVariable('rotatetime','4');
	so.addVariable("overstretch","true");
	so.addVariable("linktarget","_self");
	so.addVariable('linkfromdisplay','true');
	so.addVariable('autostart','true');
	so.addParam('wmode','transparent');
	so.addVariable("backcolor","16777215");
	so.write('rotatordiv');
	
	if($('#bossuytcontactForm').length) {
		$('#naam').focus();
	}

});
