
	/*

	www.bavse.eu

	Refresh:	05/03/2009
	Author:		Michal Schuh
	Version:	1.1

	*/


	$(document).ready(function(){


		/* shuffle */
		$("#shuffle-left").click(function(){ 
			
			$("#shuffle-set")
				.animate({opacity: 0.5}, 500 ) 
				.animate( { marginLeft: "0px" }, 1000) 
				.animate( { opacity: 1 } , 500 ); 
		
		});

    	$("#shuffle-right").click(function(){
    
    		$("#shuffle-set")
    			.animate({opacity: 0.5}, 500 )
    			.animate( { marginLeft: "-960px" }, 1000)
    			.animate( { opacity: 1 } , 500 );
    
    	});


		/* random */
		$("#random-left").click(function(){
		
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "0px" }, 500)
				.animate( { opacity: 1 } , 500 );
						$("#random-left").show();
      $("#random-left2").hide();
      $("#random-left3").hide();
      $("#random-left4").hide();
			$("#random-right").show();
			$("#random-right2").hide();
			$("#random-right3").hide();
			$("#random-right4").hide();
		
		});

    		$("#random-left2").click(function(){
		
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-440px" }, 500)
				.animate( { opacity: 1 } , 500 );
					$("#random-left").show();
      $("#random-left2").hide();
      $("#random-left3").hide();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").show();
			$("#random-right3").hide();
			$("#random-right4").hide();
		});
		
		    		$("#random-left3").click(function(){
		
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-880px" }, 500)
				.animate( { opacity: 1 } , 500 );
				$("#random-left").hide();
      $("#random-left2").show();
      $("#random-left3").hide();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").hide();
			$("#random-right3").show();
			$("#random-right4").hide();
		});
		
		    		$("#random-left4").click(function(){
		
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-1320px" }, 500)
				.animate( { opacity: 1 } , 500 );
					                                      
      $("#random-left").hide();
      $("#random-left2").hide();
      $("#random-left3").show();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").hide();
			$("#random-right3").hide();
			$("#random-right4").show();
		});
		
		
		
		$("#random-right").click(function(){
			
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-440px" }, 500)
				.animate( { opacity: 1 } , 500 );
	                                      
      $("#random-left").show();
      $("#random-left2").hide();
      $("#random-left3").hide();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").show();
			$("#random-right3").hide();
			$("#random-right4").hide();
		});	
		
		$("#random-right2").click(function(){
			
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-880px" }, 500)
				.animate( { opacity: 1 } , 500 );

        $("#random-left").hide();
      $("#random-left2").show();
      $("#random-left3").hide();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").hide();
			$("#random-right3").show();
			$("#random-right4").hide();
		});	
		
		
				$("#random-right3").click(function(){
			
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-1320px" }, 500)
				.animate( { opacity: 1 } , 500 );

        $("#random-left").hide();
      $("#random-left2").hide();
      $("#random-left3").show();
      $("#random-left4").hide();
			$("#random-right").hide();
			$("#random-right2").hide();
			$("#random-right3").hide();
			$("#random-right4").show();
		});	
		
		
				$("#random-right4").click(function(){
			
			$("#random-set")
				.animate({opacity: 0.5}, 500 )
				.animate( { marginLeft: "-1760px" }, 500)
				.animate( { opacity: 1 } , 500 );

        $("#random-left").hide();
      $("#random-left2").hide();
      $("#random-left3").hide();
      $("#random-left4").show();
			$("#random-right").hide();
			$("#random-right2").hide();
			$("#random-right3").hide();
			$("#random-right4").show();
		});	
		
		
		

		/* list */
		$("#list-li1").click(function(){
		
			$("#list-li1").addClass("active");
			$("#list-li2").removeClass("active");
			$("#list-li3").removeClass("active");
			$("#list-set1").show();
			$("#list-set2").hide();
			$("#list-set3").hide();
			return false;
		
		});

		$("#list-li2").click(function(){
		
			$("#list-li1").removeClass("active");
			$("#list-li2").addClass("active");
			$("#list-li3").removeClass("active");
			$("#list-set1").hide();
			$("#list-set2").show();
			$("#list-set3").hide();
			return false;

		});

		$("#list-li3").click(function(){
		
			$("#list-li1").removeClass("active");
			$("#list-li2").removeClass("active");
			$("#list-li3").addClass("active");
			$("#list-set1").hide();
			$("#list-set2").hide();
			$("#list-set3").show();
			return false;
		
		});

		
		/* videos */
		$("#videos-li1").click(function(){
			
			$("#videos-li1").addClass("active");
			$("#videos-li2").removeClass("active");
			$("#videos-li3").removeClass("active");
			$("#videos-set1").show();
			$("#videos-set2").hide();
			$("#videos-set3").hide();
			return false;
		
		});

    	$("#videos-li2").click(function(){
    		
    		$("#videos-li1").removeClass("active");
    		$("#videos-li2").addClass("active");
    		$("#videos-li3").removeClass("active");
    		$("#videos-set1").hide();
    		$("#videos-set2").show();
    		$("#videos-set3").hide();
    		return false;
     	
     	});

    	$("#videos-li3").click(function(){
    	
    		$("#videos-li1").removeClass("active");
    		$("#videos-li2").removeClass("active");
    		$("#videos-li3").addClass("active");
    		$("#videos-set1").hide();
    		$("#videos-set2").hide();
    		$("#videos-set3").show();
    		return false;
		
		});


	});

