$(document).ready(function() {
	
	setTimeout(function() {$("#logoimg").show("drop");} , 1000);
	
	
	$('#imgslide').cycle({ 
	    fx:      'fade', 
	    speed:    1500,
	    cssAfter: {
			width: 980,
			height: 278
		},
	    timeout:  4000
	});
	
	 DD_belatedPNG.fix(".fix");
	
});



function showSites(id) {
	$(".listElements").hide();
	$("#category_"+id).show("fold");
}


// pokazuje ktora strona z menu zostala wybrana
function selectSite(id_cat, id_site) {
	
	$(".listElements").hide();
	$("#category_"+id_cat).show();
	
	
	$("#site_"+id_site).css("background-color", "#444444");
	
}

function intro() {
	
	// pobierz adres i zamien na tablice
	var site = document.URL.split('#');
	
	
	if(site[1] == undefined || site[1] != 'nointro') {

		
		$("#filmBack").show();
		$("#allBlack").show();

		
		setTimeout(function() {
			$("#introCard1").fadeIn(1000);
		} , 2000);

		setTimeout(function() {
			$("#introCard2").fadeIn(1000);
		} , 4000);

		setTimeout(function() {
			$("#introCard3").fadeIn(1000);
		} , 6000);

		setTimeout(function() {
			$("#introCard4").fadeIn(1000);
		} , 8000);

		setTimeout(function() {
			$("#introCard5").fadeIn(1000);
		} , 10000);

		setTimeout(function() {		
			$("#filmBack").hide("fold");
			$("#allBlack").hide("fold");
		} , 12000)
		
		
//		setTimeout(function() {		$("#slideshow").fadeOut(1500,  function() { $("#slideshow").css("background-position", "-570px 25px"); });
//									
//									$("#slideshow").fadeIn(1500);
//								} , 4000);
		
//		setTimeout(function() {		$("#slideshow").fadeOut(1500,  function() { $("#slideshow").css("background-position", "-1150px 25px"); } );
//									$("#slideshow").fadeIn(1500);
//								} , 8000);
//		
//		setTimeout(function() {		$("#slideshow").fadeOut(1500,  function() {$("#slideshow").css("background-position", "-1730px 25px");} );
//								
//								$("#slideshow").fadeIn(1500);
//							} , 12000);
//		
//		setTimeout(function() {		$("#slideshow").fadeOut(1500,  function() { $("#slideshow").css("background-position", "-2310px 25px"); });
//									
//									$("#slideshow").fadeIn(1500);
//								} , 16000);
//	
//	
//		setTimeout(function() {		$("#filmBack").hide("fold");
//									$("#allBlack").hide("fold");
//								} , 20000);
	}
}
