$(function(){
    //$('.fancybox').fancybox({overlayShow:true});
    /*var myNewFlow = new ContentFlow('ContentFlow', {
        "circularFlow": false,
        "startItem": 0,
		"flowSpeedFactor": 0.4,
		"scaleFactor": 1.4,
		"visibleItems": 0,
		"reflectionHeight" :0
    });
    
    $('.flow a.item').click(function(){
        //if(!$(this).hasClass('active')) 
		 // $("#note").html($(this).attr("href"));
        return false;
    });*/
});
$(window).load(function(){
    updateHeight();
});

function updateHeight(){
    $('#spacer').css('height', 'auto');
    $('#sidebar').css('height', 'auto');
    var sideBarH = $('#sidebar').height();
    var contentH = $('#spacer').height();
    if (sideBarH > contentH) {
        $('#spacer').css('min-height', sideBarH);
        $('#spacer').css('height', 'auto !important');
        $('#spacer').css('height', sideBarH);
    }
    else {
        $('#sidebar').css('min-height', contentH);
        $('#sidebar').css('height', 'auto !important');
        $('#sidebar').css('height', contentH);
    }
}



