// JavaScript Document
$(document).ready(function(){ 
	$(document).bind("contextmenu",function(e){
		return false;
	});
	
	var slideshow = $("#slideshow");
	if(slideshow) {
		slideshow.delay(3000,function() {
			$("#slideshow").cycle({
				fx: 'fade',
				//continuous: 1,
				speed: 1000,
				timeout: 4000,
				random: true
			});											
		});
		
		$("div.slide").each(function () {
			var parts = this.id.split('-');
			var id = parseInt(parts[1]);
			if(id>0) {
				$("#"+this.id).load("slide_incl.php?id="+id);
			}
		});
	}
	
	$(".lightbox").lightBox();
	
});
