jQuery.fn.log = function (msg) {
  console.log("%s: %o", msg, this);
  return this;
};

$loggedin = false;



jQuery(document).ready(function() { 

	$logout = $("a[href='/dia/logout.jsp?redirect=/o/5989/profile/login.jsp']");
	if ($logout.length > 0 ) { $loggedin = true; }

	if($loggedin) {

		$("#tab1Tab a").attr("href", "/o/5989/profile/my/index.jsp?my_donate_page_KEY=73");

		switch(window.location.pathname) {
			case "/o/5989/profile/my/index.jsp":
				$("h1:eq(1)").hide();
				$("hr:first").hide();
				$("a:contains('Select another campaign')").hide();
				$("br:eq(1)").hide();
				
				$("p").each (
					function (intIndex) {
						if(intIndex < 11) { $(this).hide() };
					}
				);
				
				break;
			case "/o/5989/profile/donations.jsp":
				$(".personal_fundraising h2:first").hide();
				break;
			
		}
		//$("p").each (
//			function (intIndex) {
//				if(intIndex < 11) { $(this).addClass('hide') };
//			}
//		);
		
		//$("h1:eq(1)").addClass("hide");
		
	}
	
}); 

