//slider	    
$('#slider').cycle({ 
  fx:     'fade',
  speed:   1400,
  timeout: 6000
});

//colorbox
$(document).ready(function(){
	//Examples of how to assign the ColorBox event to elements
	$(".single").colorbox();
	$(".colorbox").colorbox();
	
	$("a[rel='lightbox']").colorbox({preloading:true});
	$("a[rel]").colorbox({preloading:true});
	$("a.kontakty").colorbox({width:"65%", height:"65%", iframe:true});
	$("a.mapy").colorbox({width:"80%", height:"80%", iframe:true});
	
	$(".youtube").colorbox({iframe:true, width:650, height:550});

	$(".inline").colorbox({width:"50%", inline:true, href:"#inline_example1"});
				
	//Example of preserving a JavaScript event for inline calls.
	$("#click").click(function(){ 
	$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
	return false;
	});
});


