/*form filter sorting*/
function filterContent(){
		var filterVal = $('#select').val();

		if(filterVal == 'alphabetical') {
$("#set div").tsort("table .category", {order:"asc"});
		}	
		
		if(filterVal == 'credits') {
$("#set div").tsort(".list .credits", {order:"asc"});
		}	
				
	}

/*custom scroll*/
$(function(){
		   
		$('#pane1').jScrollPane({animateTo:true, animateInterval:0, animateStep:-1, showArrows:true, scrollbarWidth:20});

				$('a.scroll-to-element-demo').bind(
					'click',
					function()
					{
						$this = $(this);
						var destinationSelector = $(this).attr('rel');
						$('.scroll-pane', $this.parent().parent().parent()).each(
							function()
							{
								this.scrollTo(destinationSelector);
							}
						);
						return false;
					}
				);
				
			});				
		

$(document).ready(function() {
						   
	$(function(){
		$('form').jqTransform({imgPath:'images/transform/'});
		
	});	
	

	
	
/*cycler gallery*/	
	$(function() {
		$('.cycler').cycle({
			speed:   1000,
			timeout: 5000,
			pager:  '#pager'
		});
	});
	
	$('iframe').height(($(window).height())-($('#container').height()));
	
	
});




