﻿

//ova funkcija ispravlja za IE UI
function CorrectByBrowser() {

    $.browser.chrome = /chrome/.test(navigator.userAgent.toLowerCase());
    $.browser.safari = /safari/.test(navigator.userAgent.toLowerCase());


    if (Sys.Browser.agent == Sys.Browser.InternetExplorer && Sys.Browser.version < 8) {
        
        var najave = document.getElementById("najavaDiv");
        if (najave != undefined && najave != null) {

           
            najave.style.marginLeft = 20 + "px";
            najave.style.height = 235 + "px";
           
            najave.style.position = "relative";
        }




        var opsirnije = document.getElementById("divOpširnije");
        
        if (opsirnije != undefined && opsirnije != null) {
           

            opsirnije.style.marginTop = 10 + "px";
            opsirnije.style.marginLeft = 12 + "px";
        }



        var searchText = document.getElementById("ctl00_TextBoxKeyWords");
        if (searchText != undefined && searchText != null) {

            searchText.style.top = 0 + "px";
        }



        var meniSjena = document.getElementById("meniSjena");
       
      
        if (meniSjena != undefined && meniSjena != null) {


            meniSjena.width = 580;

            if (Sys.Browser.version == 6) {
                meniSjena.style.position = "relative";
                meniSjena.style.left = -3 + "px";
            }

        }
        $('.ImageGalleryShort').css("margin-top", "37px");
        $('#divOpširnije').css("margin-top", "0px");





    }

    if ($.browser.chrome) {
        $('.SearchTextBox ').css('top', '0px');
        $('#divOpširnije ').css('margin-top', '10px');

        $('#reklamaHeadDiv').css('left', '-120px');

    }


    if ($.browser.safari) {


        $('#reklamaHeadDiv').css('left', '-120px');

    }

   


} 
