
function check_cdfs(form) {
	return true;
}


// sets width of support block
function setSupport(){
        if($('body').width() < $('#wrapper').width()){
                $('#support').width($('#wrapper').width() - $('#page').width() + 150);
        }
        else{
                $('#support').width($('body').width() - $('#page').width() + 148);
        }
}

$(document).ready(function(){
        FLIR.init({path:'/_assets/facelift/'});
        
        $('#blogList h4, #aside h2, #blogList .blog h5, #blogList .blog .blogDesc, #header h2').each(function(){
                FLIR.replace(this);
        });

        setSupport();

        $(window).resize(function(){
                setSupport();
        });

		$('.top_tweet').tweet({
				avatar_size: 48,
				count: 1,
				username: ["jeremyhilton", "marcelleturner", "jennifercarey", "digidestruct"],
				loading_text: "loading tweet&hellip;"
		});
		
		$('.button').click(function(){
			if (check_cdfs(document.survey)) {
				window.open('','signup','resizable=1,scrollbars=0,width=300,height=150');
				document.survey.submit();
			}
			return;
		});
		
		$('a[href^=http]').not('[href*=http://blogs.mindcomet.com/]').bind("click", function(){
							return !window.open(this.href);
		});		
});
