
/************************************************************************************************
 Posts Category Sorting 
***********************************************************************************************/
  
jQuery(document).ready(function() {

	$('ul#filter a').click(function() {
		$(this).css('outline','none');
		$('ul#filter .current').removeClass('current');
		$(this).parent().addClass('current');
		
		var filterVal = $(this).text().toLowerCase().replace(' ','-');
				
		if(filterVal == 'all') {
			$('ul#postlist li.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			
			$('ul#postlist li').each(function() {
				if(!$(this).hasClass(filterVal)) {
					$(this).fadeOut('normal').addClass('hidden');
				} else {
					$(this).fadeIn('slow').removeClass('hidden');
				}
			});
		}
		
		return false;
	});
});

/************************************************************************************************
 END Posts Category Sorting 
***********************************************************************************************/




/**************** Supplier Category Sorting *****************/
$(function() { 
	$('ul#filtersup a').click(function() {
		$(this).css('outline','none');
		$('ul#filtersup .current').removeClass('current');
		$(this).parent().addClass('current');
		
		var filterVal = $(this).text().toLowerCase().replace(' ','-');
				
		if(filterVal == 'all') {
			$('ul#venuelist li.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			
			$('ul#venuelist li').each(function() {
				if(!$(this).hasClass(filterVal)) {
					$(this).fadeOut('normal').addClass('hidden');
				} else {
					$(this).fadeIn('slow').removeClass('hidden');
				}
			});
		}
		
		return false;
	});
});

/**************** END Supplier Category Sorting *****************/



/************************************************************************************************
 Image Resizing 
***********************************************************************************************/

/* Homepage - Slider resizing  */
  $(function() {
  $( ".homesliderresize" ).aeImageResize({ height: 440, width: 920 });
});


/* Homepage - Featured resizing  */
  $(function() {
  $( ".homefeatresize" ).aeImageResize({ height: 155, width: 270 });
});









/************************************************************************************************
 JCycle 
***********************************************************************************************/

/* Simple FadeSlide change  */

$(function() {   
    // Images   
    $('#slideshow').cycle({ 
       pause: 0,     // true to enable "pause on hover"  0 to disable
    }); 
    
    // Testimonals
    $('#textimonal').cycle({ 
       speed: 400,
       prev:   '.arrow-left', 
       next:   '.arrow-right', 
       timeout: 0, 
    }); 
            
});

/************************************************************************************************
 END JCycle 
***********************************************************************************************/

