
function ImagePreload()
{
    sPath = '/bitrix/templates/autolive_main/images/';
    img1 = new Image();
    img1.src = sPath+'top_menu_hover_right.png';
    img2 = new Image();
    img2.src = sPath+'top_menu_hover_left.png';
    img3 = new Image();
    img3.src = sPath+'right_menu_test_item_right.png';
    img4 = new Image();
    img4.src = sPath+'right_menu_test_item_left.png'; 
    img5 = new Image();
    img5.src = sPath+'right_menu_manager_item_left.png';
    img6 = new Image();
    img6.src = sPath+'right_menu_manager_item_right.png';   
    /*img3 = new Image();
    img3.src = sPath+'auto-choose-infinity-hover.png';   
    img4 = new Image();
    img4.src = sPath+'auto-choose-lexus-hover.png'; */   
} 

function AutoFadeIn()
{              
    jQuery(this).find("img.auto-hover").fadeIn(500);
}
function AutoFadeOut()
{
    jQuery(this).find("img.auto-hover").fadeOut(500);
}
function CarFadeIn()
{              
    jQuery(this).find("img.car-hover").fadeIn(500);
}
function CarFadeOut()
{
    jQuery(this).find("img.car-hover").fadeOut(500);
}
