/* Author: 

*/
// remap jQuery to $
(function($){

	// Clear search form field on focus, and return on blur 
	var searchText = "Search";
	$("#SearchForm_SearchForm_Search").focus(function(){
		$(this).val('');
	});
	$("#SearchForm_SearchForm_Search").blur(function(){
		if($(this).val() == '') $(this).val(searchText);
	});
	// end clear search form

 
  if(window.location.href.indexOf("/Security/login?BackURL=%2Fresearch") > 0) {
    var $title = $("<div id='member-login-title'></div>"),
        $form = $("#MemberLoginForm_LoginForm"),
        $p = $form.siblings("p").first();
    
    $("<h3>Member Login</h3>").appendTo($title);
    $("<p>Welcome to the Research section of the Network Roundtable. Only members have access to this section of the website. To proceed, enter the Username and Password that has been provided to you. To request access to this portion of the website, contact James Murrett <a href='mailto:JMurrett@activatenetworks.net'>JMurrett@activatenetworks.net</a>.</p>").appendTo($title);
    if($p.length == 1) {
      $p.remove();
    }
  
    $title.insertBefore($("#MemberLoginForm_LoginForm"));
    
    $("#ForgotPassword a").attr("href", "/lost-password");
  }



})(window.jQuery);



















