/*jQuery(document).ready(function() {
	jQuery('.video_slider ul').jcarousel({
		visible: 2,
		scroll: 1,
		wrap: 'circular'
	});
});*/

jQuery(document).ready(function() {
	jQuery('.video_2_col ul').jcarousel({
		visible: 2,
		scroll: 1,
		wrap: 'circular'
	});
});

jQuery(document).ready(function() {
	jQuery('.video_3_col ul').jcarousel({
		visible: 3,
		scroll: 1,
		wrap: 'circular'
	});
});

$(function(){
	$('.small_album').masonry({
	  columnWidth: 71, 
	  itemSelector: 'a' 
	});
});




$(function(){
	$('.filter_params').hide();
	
	$('.filter h2').click(function(){
		$('.filter h2').not(this).next('.filter_params').slideUp();
		$('.filter h2').not(this).removeClass('up');
		$(this).next('.filter_params').slideToggle();
		$(this).toggleClass('up');
		return false;
	});
});

/*
$(function(){
	$('.filter a').click(function(){
		$(this).toggleClass('selected');
		//return false;
	});
});
*/



$(function(){
	$('.scroll-pane').jScrollPane({showArrows:true, scrollbarWidth:19, dragMaxHeight:43});


    $('.video_frame').click(function(){
        $.ajax({
		type		: "POST",
		//cache	: false,
		url		: "/get_video_code/",
		data		: {'video_id': $(this).attr('rel')},
		success: function(text) {

            $.fancybox(text);
            
		}
	});
    });


});


$(function(){
	var xie = false;
	
	if ( $.browser.msie ) {
		if ( $.browser.version == "6" ) {
			var xie = true;
		}
	};
	
	
	if ( xie == false ) {
		$('.schedule_table').fixedtableheader(); 
	};
});

