$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c); },
            function() { $(this).removeClass(c); }
        );
        
    });
};

$.fn.clickClass = function(c) {
    return this.each(function(){
        $(this).click( 
            function() { 
            	if ($(this).attr('class') == c)
    			{
    				$(this).removeClass(c);
    			}
    			else
    			{
    				$(this).addClass(c);
    			}
             }
        );
        
    });
};

$(document).ready(
	
	function() 
	{
		/* KEEP CODE FROM HERE DOWN TO NEXT COMMENT BLOCK ON ALL PROJECTS */
		$('.confirm_anchor').click(function()
		{
			return confirm('Are you SURE you want to do this???');
		});

		$('a.new_window').click(function()
		{
			window.open($(this).attr('href'));
			return false;
		});

		/* KEEP CODE FROM HERE UP TO PREVIOUS COMMENT BLOCK ON ALL PROJECTS*/
		if(typeof sIFR == "function"){
			sIFR.replaceElement("h2.page_heading", named({sFlashSrc: "/js/sifr.swf", sWmode: "transparent", sFlashVars: "textalign=center"}));
		};

		$("label.overlabel").overlabel();

});