if (navigator.platform == "MacIntel")document.write("<style>ul.header_bottom_nav li a {margin: 0;padding: 0 30px 0 39px;}</style>");
jQuery().ready(function () {
    jQuery("#country_id2").selectbox();
    jQuery("#country_id").selectbox();
    jQuery(".sbOptions a").last().css('border', 'none');
    jQuery(".sbOptions a").last().css('border', 'none');

    jQuery("#slider").easySlider({
        auto:true,
        continuous:false,
        prevId:'slider1left',
        nextId:'slider1next',
        nextText:'&nbsp;',
        prevText:'&nbsp;',
        numeric:true,
        numericId:'controls1',
        pause:5000,
        continuous:true

    });

});

jQuery().ready(function ($) {

    $('.nav_btn').click(function () {
        var parent = $(this).parents('.left_nav');
        $('.Op').not(this).click();

        if (parent.is('.opened')) {
            parent.animate({width:"28px"}, 'high', 'linear', function () {
                parent.removeClass('opened');
                parent.find('.nav_body_inner').hide();
                parent.find('.nav_body').hide();

            });
            $(this).removeClass('Op');

        } else {
            width = (parent.is('.site_nav')) ? '646px' : '367px';
            parent.find('.nav_body_inner').show();
            parent.find('.nav_body').show();
            parent.animate({width:width}, 'high', 'linear', function () {
                $(this).parents('.left_nav').removeClass('opened');
            });
            $(this).addClass('Op');
            parent.addClass('opened');
        }

    });
    $(document).mousedown(function (e) {
        t = e.target;
        p = $(t).parents('.left_nav');
        if (p.length > 0) {
            //alert('ss');
        } else {
            $('.Op').click();
        }
    });
});
