$(document).ready(function() {
	if ($.browser.msie) {
		// IE Fixes
		$('#case_studies .case_study_services ul li:nth-child(3n+1)').css('margin-left', '0px');
	}

    // Home page flash piece
    if ($('#home_hero').length > 0) {
        swfobject.embedSWF('_assets/swf/home_hero.swf', 'home_hero', '920', '462', '9.0.0', '_assets/swf/expressInstall.swf', {}, { wmode:'transparent' }, {});
    }

	// Sidebar accordion plugin
	$('.sidebar_accordion').sidebarAccordion();

	// Placeholder input fields
	$('.js_placeholder').each(function() {
        var $this = $(this);
        var defaultVal = $this.attr('data-placeholder');

        $this.focus(function() {
            if ($this.val() === defaultVal) {
                $this.val('');
            }
        });

        $this.blur(function() {
            if ($this.val().length === 0) {
                $this.val(defaultVal);
            }
        });
    });
});	

