
$(document).ready(function() {
	
	$('.b-btn').hover(
		function() {
			var el = $(this),
				id = el.attr('id'),
				title = el.attr('title');
				
			if( id == 'lPay' ) 	el.css('background-image', 'url(../images/buttons/btnpay_hvr.png)');
			else if( id == 'lRepay') el.css('background-image', 'url(../images/buttons/btnrepay_hvr.png)');		
			$('#loginTips').text(title).show();		
				
		},function() {
			var el = $(this),
				id = el.attr('id'),
				title = el.attr('title');
				
			if( id == 'lPay' ) el.css('background-image', 'url(../images/buttons/btnpay.png)');
			else if( id == 'lRepay') el.css('background-image', 'url(../images/buttons/btnrepay.png)');	
			$('#loginTips').hide();			
			
		}).mousedown(function() {
			var el = $(this),
				id = el.attr('id');
				
			if( id == 'lPay' ) el.css('background-image', 'url(../images/buttons/btnpay_put.png)');
			else if( id == 'lRepay') el.css('background-image', 'url(../images/buttons/btnrepay_put.png)');		
									
		}).mouseup(function() {
			var el = $(this),
				id = el.attr('id');
				
			if( id == 'lPay' ) el.css('background-image', 'url(../images/buttons/btnpay.png)');
			else if( id == 'lRepay') el.css('background-image', 'url(../images/buttons/btnrepay.png)');			
		
		}).click(function() {
			var el = $(this),
				id = el.attr('id');
			
			if( id == 'uLogout') 
				if(!confirm('Вы уверены')) return false ;
			
		});
		
		
		
		
});





