
// This file is designated to fix browsers problems
// that couldn't be solved in the Css/BrowserCompatibility.css file
// when Firefox, Safari and Opera have different CSS interpretation.

function detectBrowser()
{

    if (navigator.userAgent.indexOf('Safari') != -1){
        //alert ("SAFARI!");
        /*
        if (document.getElementById('main-section-item-right-column-banners'))
            document.getElementById('main-section-item-right-column-banners').style.margin = "-80px 20px 0px 0px !important";
        if (document.getElementById('search-left-column-bottom'))
            document.getElementById('search-left-column-bottom').style.margin = "-20px 0px 0px 0px !important";
        if (document.getElementById('header-main-top-links'))
            document.getElementById('header-main-top-links').style.width = "345px !important";
        if (document.getElementsByClassName('product-children-internal-box-content-right-column')[0])
            document.getElementsByClassName('product-children-internal-box-content-right-column')[0].style.margin = "4px 0px 0px 0px !important";
        if (document.getElementsByClassName('product-children-internal-box-content-right-column')[1])
            document.getElementsByClassName('product-children-internal-box-content-right-column')[1].style.margin = "4px 0px 0px 0px !important";
        if (document.getElementsByClassName('product-children-internal-box-content-right-column')[2])
            document.getElementsByClassName('product-children-internal-box-content-right-column')[2].style.margin = "4px 0px 0px 0px !important";
        */
        
        if (document.getElementsByClassName('header-cart-count')[0])
            document.getElementsByClassName('header-cart-count')[0].style.margin = "-22px 0px 0px 10px !important";
    }
    
    if (navigator.userAgent.indexOf('Firefox') != -1)
    {
        //alert ("Firefox!");
        //document.getElementById('main-section-item-right-column-banners').style.margin = "-50px 20px 0px 0px !important";
    }
    
    if (navigator.userAgent.indexOf('Chrome') != -1)
    {
        //alert ("Chrome!");
        
        
        /*
        if (document.getElementById('main-section-item-right-column-banners'))
            document.getElementById('main-section-item-right-column-banners').style.margin = "-80px 20px 0px 0px !important";
        if (document.getElementById('search-left-column-bottom'))
            document.getElementById('search-left-column-bottom').style.margin = "-20px 0px 0px 0px !important";
        */
        if (document.getElementsByClassName('header-cart-count')[0])
            document.getElementsByClassName('header-cart-count')[0].style.margin = "-22px 0px 0px 10px !important";
    }
    
    if (navigator.userAgent.indexOf('Opera') != -1)
    {
        //alert ("Opera!");
        /*
        if (document.getElementById('search-left-column-bottom'))
            document.getElementById('search-left-column-bottom').style.margin = "-20px 0px 0px 0px !important";
        */
    
    }
    
}

