$(document).ready(function()
{
    var replaceSidebar = function()
    {
        var gotinside = false
        $('#sidebar').each(function(i)
        {
            gotinside = true;
            if (i < 1)
            {
                Cufon.replace('#sidebar h2');

            }
        })
        if (!gotinside)
            setTimeout(replaceh3, 0);
    }
    replaceSidebar();
		
		var replaceTitles = function()
    {
        var gotinside = false
        $('#content').each(function(i)
        {
            gotinside = true;
            if (i < 1)
            {
                Cufon.replace('#content h2');

            }
        })
        if (!gotinside)
            setTimeout(replaceTitles, 0);
    }
    replaceh3();
			
 });



/* onload method */
loadFunctionality = function() 
{
	/* dropdown hover functionality */
	var nav = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i < nav.length; i++) {
		sfEls[i].onmouseover = function() {
			this.className+=" over";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" over\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", loadFunctionality);