function cufonCode()
{
	Cufon.replace("div#left a", {hover:true});
	Cufon.replace("div#middle a", {hover:true});
	Cufon.replace("h2");
	Cufon.replace("h3");
	Cufon.replace("a.site", {hover:true});
}



function fixFlash()
{
	var wmode = "opaque";
	
	$("embed").attr("wmode", wmode);

	var embedTag;
    $("embed").each(function(i) {
        embedTag = $(this).attr("outerHTML");
        if ((embedTag != null) && (embedTag.length > 0)) {
            embedTag = embedTag.replace(/embed /gi, "embed wmode=\"" + wmode + "\" ");
            $(this).attr("outerHTML", embedTag);
        }
        // This "else" was added
        else {
            $(this).wrap("<div></div>");
        }
    });
}

$(document).ready( function() {
	fixFlash();
	cufonCode();
	
	$.fn.colorbox.settings.bgOpacity = "0.9";
	$("a.colorbox").colorbox({transition:"fade"});
});
