jQuery(function() {
    //rotating rows short
    jQuery("table.sfAlternating tr:even").addClass("evenrow");
    jQuery("table.sfAlternating tr:odd").addClass("oddrow");


    //rotating rows tall
    jQuery("table.sfAlternatingTall tr:even").addClass("evenrow");
    jQuery("table.sfAlternatingTall tr:odd").addClass("oddrow");

    jQuery("a.img_caseStudyThmb").append("<span></span>");
    jQuery("a.img_caseStudyThmbVideo").append("<span></span>");

    jQuery(".img_bottomBorder").find("span").css("display", "block");
    
    jQuery(".img_bottomBorder").mouseover(function() {
        $(this).find("span").css("display", "none");
    });

    jQuery(".img_bottomBorder").mouseout(function() {
        $(this).find("span").css("display", "block");
    });

    jQuery(".colorbox").colorbox();
    jQuery(".sfvideo1").colorbox({ width: "750px", height: "470px", iframe: true });
    jQuery(".sfvideo2").colorbox({ width: "750px", height: "470px", iframe: true });
    jQuery(".sfvideo3").colorbox({ width: "750px", height: "470px", iframe: true });
    jQuery("a[rel='workPhotos']").colorbox({ transition: "none" });

    // Accordion
    jQuery('#accordion').accordion({ header: "h3", collapsible: true, active: false, autoHeight: false });


    //hover states on the static widgets
    jQuery('#dialog_link, ul#icons li').hover(
		function() { $(this).addClass('ui-state-hover'); },
		function() { $(this).removeClass('ui-state-hover'); }
	);
});
