var  orgchildfund = orgchildfund || {

		defaults : {},

    init : function(defaults) {
		  
		  this.tallestElement = null;
			
			setActive();
			
			$('#main_menu > li').bind('mouseover', swapIn).bind('mouseout', swapOut);
			
			setLeftNav();
			
			window.onload = setElementHeight;
			
			$('div.figure').each(function(){
    	  $(this).css('width', $(this).children('img').width());
  		});
			
			// $('a.offsiteLink').click(function(){
				// window.open(this.href);
				// return false;
			// });
				
    },
		
  	recordOutboundLink : function(link, category, action, label) {
			if(!label && link) { label = link.href };
			try{
				_gaq.push(['_setAccount', 'UA-4558480-2']);
				_gaq.push(['_trackEvent', category, action, label]);
				setTimeout("document.location='" + link.href + "'", 100);
  		}	catch(err){}
		}
		

};

$(document).ready(function() { orgchildfund.init(); });

