// JavaScript Document
pln.events.addListener(document,'__documentReady', null, timeOutInitSlideshow);
function timeOutInitSlideshow (){
	setTimeout(initSlideshow, 3000);
}

function initSlideshow(){
	if (jQuery('#slideshow').length<=0) return;
				
	jQuery('#slideshow').cycle({
		fx		: 'fade',
		timeout	: 4000,
		speed	: 600,
		delay	: 200
	});
}

pln.events.addListener(document,'__documentReady', null, initLightbox);
function initLightbox (){
	if (jQuery(".lightbox").length<=0) return;
			
	jQuery('.lightbox').each(function (index, element){
		jQuery(element).find('a[href]').colorbox({rel:'group'+index});
	});
}
