(function($) { //* hide the namespace
$(document).ready(function() {
	
	// Expand Panel
	$("#openTellAFriend").click(function(){
		$("div#panelTellAFriend").slideDown("slow");
	
	});	
	
	// Collapse Panel
	$("#closeTellAFriend").click(function(){
		$("div#panelTellAFriend").slideUp("slow");
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggleTellAFriend a").click(function () {
		$("#remote_toggleTellAFriend a").toggle();
		$("#toggleTellAFriend a").toggle();
	});		
	
	// Expand Panel
	$("#remote_openTellAFriend").click(function(){
	$("div#panelTellAFriend").slideDown("slow");
	});	

	// Collapse Panel
	$("#remote_closeTellAFriend").click(function(){
		$("div#panelTellAFriend").slideUp("slow");	
	});		

	// Switch remote login buttons on click
	$("#remote_toggleTellAFriend a").click(function () {
		$("#remote_toggleTellAFriend a").toggle();
		$("#toggleTellAFriend a").toggle();
	});		

});
})(jQuery); //* hide the namespace
