/**
* Additional routines for favorites menu
* $HeadURL: svn://svn/islive_site/trunk/docs/custom/_splash1/_default/js/favorites.js $
* @version $Rev: 1448 $
* @author $Author: willem $
*/

$(document).ready(function($) {

	// Handle event and trigger ajax call
	$(".filter_field").live('change', function (event){				
        $(".favorites_view").removeClass('active');
	});		

	// Tab panes on top of the page
	$(".cam_list_view").click(function(event){
        $(".favorites_view").removeClass('active');
	});
	
    $('.favorites_view').live('click', function(event){
        $("#backmain").removeClass('hidden');	
	
        // simulate thumbnail click...
        $(".cam_list_view").removeClass('active');
        $("a.sort_button").removeClass('active');
        $("a.sort_box").removeClass('active');
        $.hasher.clearHash();
        closeSortBox();
        $('#cams,#zoeken').hide();
        $(this).addClass('active');
        $('#favorites-placeholder').show();
    });
    
    $('.cam_list_view, .sort_button').live('click', function(event){
        $('#favorites-placeholder').hide();
        $('#cams,#zoeken').show();
    });
});

// EOF

