function pop_up(url,width,height,scroll,resizable) {
	if (window.nw && !window.nw.closed) { window.nw.close(); }
	nw = window.open(url,'nw','width=' + width + ',height=' + height + ',resizable=' +resizable+ ',toolbar=no,scrollbars=' +scroll+ ',menubar=no,status=no' );
	window.nw.focus();
}

function msover(mydiv) {
	$("#" + mydiv).addClass("msover");
}
function msout(mydiv) {
	$("#" + mydiv).removeClass("msover");
}


$(document).ready(function(){
    $('#login_submit').hover(
        function(){ // Change the input image's source when we "roll on"
            $(this).attr({ src : '/media/images/login.gif'});
        },
        function(){ // Change the input image's source back to the default on "roll off"
            $(this).attr({ src : '/media/images/login.gif'});
        }
    );
    $('#login_user').focus(function(){
    	if($(this).val() == 'Email Address'){
    		$(this).attr("value", "");
		}
	});
	$('#login_user').blur(function(){
		if($(this).val() == ''){
    		$(this).attr("value", "Email Address");
		}
	});
	$('#login_pass').focus(function(){
    	if($(this).val() == 'Password'){
    		//$(this).attr("value", "");
			$(this).hide();
			$('#login_pass_value').show();
			$('#login_pass_value').focus();			
		}
	});
	$('#login_pass_value').blur(function(){
		if($(this).val() == ''){
    		$(this).hide();
    		$('#login_pass').show();
		}
	});
	$('#login_pass').blur(function(){
		if($(this).val() == ''){
    		$(this).attr("value", "Password");
		}
	});
});
