// JavaScript Document<script>

var lockSlide=false
function rotateProduct(){
	
	if (!lockSlide) {
	$("#plAkce .news:first-child").before($("#plAkce .news:last-child").hide())
	//$("#naseVyrobkyIn A::nth-child(4n)").fadeOut("slow").hide()
	$("#plAkce .news:first-child").slideDown("slow")
	
	$("#aktNews .news:first-child").before($("#aktNews .news:last-child").hide())
	//$("#naseVyrobkyIn A::nth-child(4n)").fadeOut("slow").hide()
	$("#aktNews .news:first-child").slideDown("slow")
	
	}
}

$(document).ready(function(){
	$('#flashcontent').flash( {
		swf: '/flash/carousel/carousel.swf?'+Math.random(),
		id: 'caroousel',
		width: 500,
		height: 258,
		wmode: 'transparent',
		flashvars: {
			dataPath: '/flash/carousel/carousel_asset/data.xml?r='+Math.random()
			,slide_count: isNaN(curSlideCount)?3:curSlideCount
		}
	});
	$('#topBanLeft').css('position','absolute').flash( {
		swf: '/flash/slideshow_move.swf?'+Math.random(),
		id: 'slogans',
		width: 505,
		height: 279,
		wmode: 'transparent',
		flashvars: {
			configPath: ((typeof slidedir== "undefined")?"flash":slidedir)+'/slideshow_move.xml?rnd='+Math.random()
		}
	});
	$('#ZakazniciList').load('/zakaznici.php');
});
$(window).load(function(){
	/*
	$('#ZakazniciList').load('/zakaznici.php');
	setInterval('rotateProduct()',5000)
	$('#plAkce').mouseover(function(){
		$('#plAkce .v_lines').css('position','absolute')
		$('#plAkce .v_lines').css('borderColor','silver')
		lockSlide=true
	})
	$('#plAkce').mouseout(function(){
		$('#plAkce .v_lines').css('position','relative')
		$('#plAkce .v_lines').css('borderColor','white')
		lockSlide=false
	})
	$('#aktNews').mouseover(function(){
		$('#aktNews .v_lines').css('position','absolute')
		$('#aktNews .v_lines').css('borderColor','silver')
		lockSlide=true
	})
	$('#aktNews').mouseout(function(){
		$('#aktNews .v_lines').css('position','relative')
		$('#aktNews .v_lines').css('borderColor','white')
		lockSlide=false
	})
	//Cufon.replace('#naseRealizace');
	//Cufon.replace('#naseSluzby');
	*/
})
