$(document).ready(function() {
    var bIgnore = false;

    $(".ignore_click").click(function() {
        bIgnore = true;
    });

    $(".expanded_block_link").click(function() {
        if (jQuery.browser.msie && jQuery.browser.version < 8) {
            $(this).parents(".expanded_block").hide();
            $(this).parents(".bulleted_black").prev().show();
            $("#cat_search_cont").toggle().toggle();
        } else {
            $(this).parents(".expanded_block").slideUp(100);
            $(this).parents(".bulleted_black").prev().slideDown(100);
        }
    });

    $(".rolledup").click(function() {
        if (!bIgnore) {
            if (jQuery.browser.msie && jQuery.browser.version < 8) {
                $(this).next(".bulleted_black").show(100);
                $(this).hide();
                $("#cat_search_cont").toggle().toggle();
            } else {
                $(this).next(".bulleted_black").slideDown(100);
                $(this).slideUp(100);
            }
        } else {
            bIgnore = false;
        }
    });

    $('#scroller_cont').clickScroll({
	speed: 500,
	easing: 'easeInSine',
	lessBtn: '#scroll_up',
	moreBtn: '#scroll_down',
	btnFadeSpeed: 500,
	horizontal: false,
	autoHideNav: true
    });
    
    $('#scroller_cont_main').hide();
    $('#cat_search_cont').show();
});