 $(function(){

function formatText(index,panel) {return index+"";}
$('.anythingSlider').anythingSlider({
		easing:"easeInOutExpo",
		autoPlay:true,
		delay:3500,
		startStopped:false,
		animationTime:600,
		hashTags:true,
		buildNavigation:true,
		pauseOnHover:true,
		startText:"start playing",
		stopText:"stop playing",
		navigationFormatter:formatText
	});
	$("#slide-jump").click( function() {
		$('.anythingSlider').anythingSlider(6);
	});

$(".slidingObj1").hover(function(){
	//$('.slidingDesc').fadeIn(500); 	
	$(".slidingDesc").addClass("showThis");
	$(".anythingSlider .arrow").addClass("showThisImportant");
	
       // $(this).addClass("liTopBorder");
    }, function(){
    	//$('.slidingDesc').fadeOut(500);    	
    	$(".slidingDesc").removeClass("showThis");
    	$(".anythingSlider .arrow").removeClass("showThisImportant");

      //  $(this).removeClass("liTopBorder"); 
    });


$(".slidingDesc").hover(function(){
		//$(".anythingSlider .arrow").addClass("showThisImportant");
    }, function(){    
    	    	//$(".anythingSlider .arrow").removeClass("showThisImportant");	
    	//$(".slidingDesc").removeClass("showThis");
      //  $(this).removeClass("liTopBorder"); 
    });


$(".anythingSlider .arrow").hover(function(){
		$(this).addClass("showThisImportant");
		$(".slidingDesc").addClass("showThis");
    }, function(){    
    	    	$(this).removeClass("showThisImportant");	
    	    	$(".slidingDesc").removeClass("showThis");
    	//$(".slidingDesc").removeClass("showThis");
      //  $(this).removeClass("liTopBorder"); 
    });
 



/* ###########################   ListIsotopeAction ####################### */

 var $container = $('#container'),
        filters = {};

    $container.isotope({
      itemSelector : '.color-shape',
      masonry: {
        columnWidth: 240
      }
    });

    // filter buttons
    $('.filter a').click(function(){
      var $this = $(this);
      // don't proceed if already selected
      if ( $this.hasClass('selected') ) {
        return;
      }
      
      var $optionSet = $this.parents('.option-set');
      // change selected class
      $optionSet.find('.selected').removeClass('selected');
      $this.addClass('selected');
      
      // store filter value in object
      // i.e. filters.color = 'red'
      var group = $optionSet.attr('data-filter-group');
      filters[ group ] = $this.attr('data-filter-value');
      // convert object into array
      var isoFilters = [];
      for ( var prop in filters ) {
        isoFilters.push( filters[ prop ] )
      }
      var selector = isoFilters.join('');
      $container.isotope({ filter: selector });

      return false;
});


$(".color-shape").hover(function(){
	//$(".color-shape img").addClass("animWide");
	
    }, function(){
    	// $(".color-shape img").removeClass("animWide");

    });





}); /* end function */

