$(document).ready(function() {	 
	$(".gallery-case li a").click(function() {
		$("#next").click();
		return false;
 })
 
 
 $('.umelci .line:not(.line2)').css({cursor:"pointer"}).hover(function(){
			$(this).addClass("line2");
	},function(){
		$(this).removeClass("line2");
			
	}).click(function(){		
		location.href=$(this).children("a").attr("href");
	});
 
 
})

$(window).load(function(){
	
	 $('.gallery-case ul').cycle({
		    fx:     'fade',
		    prev:   '#prev',
		    next:   '#next',
		    after:   onAfter,        
		    speed: 500,
		   timeout: 0
			});
	 	 
	 function onAfter(){
	 }
	 
	 $('#movie').flash({
         src: "uploads/files/flash/player.swf",
         height: 405,
         width: 644,
         wmode: "transparent",
         bgcolor: '#e78bb4',
         flashvars: {
				 videoPath: $("#movie a").attr("href") 
			}            
	 });

})
