jQuery(document).ready(function(){
	// popup init
	disclaimerpop();
	disclaimerpopClose();
	
	// tracking addthis share links
	if(typeof addthis != 'undefined'){
		addthis.addEventListener('addthis.menu.share', function(e){
			try{ crmEvent99(); }catch(e){}
		});
	}
	
	// tracking social footer links
	jQuery('#social-footer').delegate('a', 'click', function(e){
		var social = jQuery(this).attr('rel');
		try{ crmEvent98({ social: social }); }catch(e){}
	});
});

/* disclaimer popups
------------------------------------------------------------------------------------*/
function disclaimerpop(){
	jQuery(".disclaimerlink").click(function(){
		jQuery("#disclaimerpop").toggle();
		return false;
	});
	
	jQuery(".disclaimerlink2").click(function(){
		jQuery("#disclaimerpop2").toggle();
		return false;
	});
}
function disclaimerpopClose(){
	jQuery("#disclaimerpop .close").click(function(){
		jQuery("#disclaimerpop").hide();
		return false;
	});

	jQuery("#disclaimerpop2 .close").click(function(){
		jQuery("#disclaimerpop2").hide();
		return false;
	});
}
