var ajaxWait = '';

jQuery(document).ready(function($){
	if($('.login').val())
		$('.login').removeClass('login');
	if($('.password').val())
		$('.password').removeClass('password');
	
	ajaxWait = '<img src="' + baseURL + '/public/images/wait.gif" alt="Czekaj" />';
	
	var preload = ['wait.gif', 'top/blank.gif'];
	for(var i=0; i<preload.length; i++){
		var tmp = preload[i];
		preload[i] = new Image();
		preload[i].src = tmp;
	}
});

function monitorLoginFields(field){
	if(!jQuery(field).val()){
		if(jQuery(field).attr('type') == 'text')
			jQuery(field).addClass('login');
		else jQuery(field).addClass('password');
	}
	else jQuery(field).removeClass('login password');
}