jQuery(document).ready(function() {
    setfocus();
});

function goto_link(URL){
if(URL.value!='999999')window.location.href = URL.value;
}

function set_value(obj_,val){
    obj_.value=val;
}

function SetHome(o) {
 o.style.behavior='url(#default#homepage)';
 o.setHomePage('http://ecamera.com.ua');
 return false;
}

function AddFavorite() {
    if(/MSIE/.test(navigator.userAgent)) {
        window.external.AddFavorite(document.location.href,document.title);
        return false;
    }
    else if(/Mozilla/.test(navigator.userAgent)){
            if (typeof window.sidebar == "object")
            window.sidebar.addPanel (document.title, document.location.href, "");
            return false;
    }
    else if(/Opera/.test(navigator.userAgent)) {
            var a = document.createElement('A');
            if (!a) return false;
            a.setAttribute('rel','sidebar');
            a.setAttribute('href',document.location.href);
            a.setAttribute('title',document.title);
            a.click();
            return true;
    }
    else return false;
}

function setfocus(){
    var scroll_top = document.getElementById('pos').value;

    if (scroll_top != 0) {
        document.getElementById('lmenubox').scrollTop = scroll_top;
    } else { return false; }
}

