$(function(){
    
    $('#formSearch input.btn').hover(function () {
        $(this).animate({ width: "38px" }, "fast");
    }, function () {
        $(this).animate({ width: "32px" }, "slow");
    });
    
    $('#tableItem p.marketBtn input').hover(function () {
        $(this).animate({ width: "140px" }, "fast");
    }, function () {
        $(this).animate({ width: "91px" }, "slow");
    });
    
    $('#col p.marketBtn input').hover(function () {
        $(this).animate({ width: "192px" }, "fast");
    }, function () {
        $(this).animate({ width: "150px" }, "slow");
    });
    
    $('#basketHeader').hover(function () {
        $(this).animate({ top: "0" }, "fast");
    }, function () {
        $(this).animate({ top: "-10px" }, "slow");
    });
    
    $('#menuCatalog>li').hover(function () {
        Cufon.replace($(this).find(">a"), { fontFamily: 'Bedrock-Cyr', color: '#fe515b' })
    }, function () {
        Cufon.replace($(this).find(">a"), { fontFamily: 'Bedrock-Cyr', color: '#ad96a5' })
    });
	
	$(".slider .banner div.wrapper").hover(function(){
		$(this).stop().animate({marginLeft: "20px"}, "fast")
	}, function(){
	   $(this).stop().animate({marginLeft: "0"}, "slow")
	}); 
	
});  

// hover для ie
function cssmenuhover()
{
	if(!document.getElementById("menuCatalog"))
		return;
	var lis = document.getElementById("menuCatalog").getElementsByTagName("LI");
	for (var i=0;i<lis.length;i++)
	{
		lis[i].onmouseover=function(){this.className+=" iehover";}
		lis[i].onmouseout=function() {this.className=this.className.replace(new RegExp(" iehover\\b"), "");}
	}
}
if (window.attachEvent)
	window.attachEvent("onload", cssmenuhover);
