// JavaScript Document
//2011-08-16-ZHM-изменение фона кнопок по наведению/нажатию и обратно
$(document).ready(function(){ 


   $('.basket').mouseover(function() {
		$(this).css('background-image','url(../images/bg-basket_3_over.png)');
	});	
   $('.basket').mousedown(function() {
		$(this).css('background-image','url(../images/bg-basket_3_over.png)');
	});	
   $('.basket').mouseout(function() {
		$(this).css('background-image','url(../images/bg-basket_3.png)');
	});	
   $('.basket').mouseup(function() {
		$(this).css('background-image','url(../images/bg-basket_3.png)');
	});	
	

    $('.buy').mouseover(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_cart_over.png)');
	});	
    $('.more').mouseover(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_more_over.png)');
	});	


    $('.buy').mousedown(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_cart_over.png)');
	});	
    $('.more').mousedown(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_more_over.png)');
	});	


    $('.buy').mouseout(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_cart.png)');
	});	
    $('.more').mouseout(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_more.png)');
	});	


    $('.buy').mouseup(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_cart.png)');
	});	
    $('.more').mouseup(function() {
		$(this).find('.divcart').css('background-image','url(../images/bg_more.png)');
	});	
	
	
//.btn, input[type="submit"], button,  input[type="button"],btn1
    $('.btn').mouseover(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
    $('.btn').mouseout(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
	$('.btn').mousedown(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
	$('.btn').mouseup(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
//-----
    $('.btn1').mouseover(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
    $('.btn1').mouseout(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
	$('.btn1').mousedown(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
	$('.btn1').mouseup(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
//-----
    $('input[type="submit"]').mouseover(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
    $('input[type="submit"]').mouseout(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
	$('input[type="submit"]').mousedown(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
	$('input[type="submit"]').mouseup(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	

//-----
    $('input[type="button"]').mouseover(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
    $('input[type="button"]').mouseout(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
	$('input[type="button"]').mousedown(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
	$('input[type="button"]').mouseup(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
//-----
    $('button').mouseover(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
    $('button').mouseout(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	
	$('button').mousedown(function() {
		$(this).css('background-image','url(../images/bg_more_over.gif)');
	});	
	$('button').mouseup(function() {
		$(this).css('background-image','url(../images/bg_more.gif)');
	});	

	
 });
