$(function () {
    if (navigator.userAgent.match(/iPhone/i) != null || navigator.userAgent.match(/iPad/i) != null) {
        $('body').addClass('iPhone');
    }
    $(".b-menu_list_item").hover(function () {
        $('.b-dropdown_menu', this).css('display', 'block');
        var itemsCount = $(this).find('td').length;
        $(this).children('.b-dropdown_menu_services').css('width', itemsCount * 135);
        if (itemsCount == 6) {
            $(this).children('.b-dropdown_menu_services').css('margin-left', (5 - itemsCount) * 126 + 'px');
        }
        else if (itemsCount == 7) {
            $(this).children('.b-dropdown_menu_services').css({ 'width': '969px', 'margin-left': '-272px' });
        }
    }, function () {
        $('.b-dropdown_menu', this).css('display', 'none');
        $(this).children('.b-dropdown_menu').css('margin-left', 0);
    });
});



function ChangeImages() {        
        /*var link = $("link")[0];
        $(link).attr("href", "../styles/jquery.fancybox-1.3.4.css");*/
}


function ChangeImagesBack() {

}



