var GeoIP = new Array();
GeoIP["REMOTE_IP"] = "89.142.77.119";
GeoIP["COUNTRY_CODE"] = "SI";
GeoIP["REGION"] = "04";
GeoIP["CITY"] = "Ljubljana";
GeoIP["DMA_CODE"] = "0";
GeoIP["AREA_CODE"] = "0";
GeoIP["LATITUDE"] = "46.055302";
GeoIP["LONGITUDE"] = "14.514400";
GeoIP["MAYA_COUNTRY_CODE"] = 180;

for (var lhb_geo_data in GeoIP) {
    var lhb_geo_override = lhb_readCookie("GEOIP_"+lhb_geo_data);
    if (null != lhb_geo_override) {
        GeoIP[lhb_geo_data] = lhb_geo_override;
    }
}

function lhb_readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for (var i=0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {c = c.substring(1,c.length);}
        if (c.indexOf(nameEQ) == 0) {
            return c.substring(nameEQ.length,c.length);
        }
    }
    return null;
}

function lhb_getEscapedHeaderHTML() {
    return "%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20hdrBr%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22hdrBr%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20hdrBrBck%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22hdrBrBck%22%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20hdrBrBck%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20genHdr%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22genHdr%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20general%20lnks%20--%3E%3Cdiv%20id%3D%22genLnks%22%3E%3Ca%20href%3D%22http%3A%2F%2Fwww.lycos.com%2F%22%20target%3D%22_top%22%3ELycos%20Home%3C%2Fa%3E%26nbsp%3B%26nbsp%3B%3Cspan%20class%3D%22vert%22%3E%7C%3C%2Fspan%3E%26nbsp%3B%26nbsp%3B%3Cimg%20src%3D%22http%3A%2F%2Fly.lygo.com%2Fly%2Fhb%2Fimg%2Fmail.gif%22%20width%3D%2214%22%20height%3D%229%22%20alt%3D%22Lycos%20Mail%22%20class%3D%22mailImg%22%2F%3E%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%22http%3A%2F%2Fmail.lycos.com%2F%22%20class%3D%22mail%22%20target%3D%22_top%22%3ELycos%20Mail%3C%2Fa%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20general%20lnks%20--%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20tR%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22tR%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20srchFrm%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cform%20id%3D%22srchFrm%22%20action%3D%22http%3A%2F%2Fsearch.lycos.com%2Findex.php%22%20target%3D%22_top%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20srch%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20class%3D%22srch%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchRow1Ctnt%22%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchLab%22%3E%3Cdiv%20id%3D%22labImg%22%3E%3C%2Fdiv%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchTxt%22%3ESearch%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchField%22%3E%3Cinput%20type%3D%22text%22%20name%3D%22query%22%20class%3D%22fld%22%20value%3D%22%22%2F%3E%3Cinput%20type%3D%22hidden%22%20name%3D%22src%22%20value%3D%22hb7%22%20%2F%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchBtn%22%3E%3Cinput%20type%3D%22image%22%20class%3D%22srchImg%22%20src%3D%22http%3A%2F%2Fc.lygo.com%2Fs.gif%22%20alt%3D%22%22%20%2F%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cdiv%20id%3D%22srchRow1Shdw%22%3E%3Cimg%20src%3D%22http%3A%2F%2Fc.lygo.com%2Fs.gif%22%20width%3D%221%22%20height%3D%221%22%20border%3D%220%22%20alt%3D%22%22%20%2F%3E%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20srch%20--%3E%3C%2Fform%3E%3C%21--END%20srchFrm%20--%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20tR%20--%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20genHdr%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20END%20hdrBr%20--%3E%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%21--%20BEGIN%20setup%20space%20--%3E%3Cdiv%20id%3D%22spc%22%3E%3C%2Fdiv%3E%3C%21--%20END%20setup%20space%20--%3E";
}

function lhb_drawHeader() {
    if (!lhb_handleCanada()) {
        lhb_insertStyleSheets();
        document.write(unescape(lhb_getEscapedHeaderHTML()));
    }
}

function lhb_handleCanada() {
    return false;
}

function lhb_insertStyleSheets() {
    lhb_insertStylesheet("http://hb.lycos.com/css/hb.css");
    lhb_insertStylesheet("http://hb.lycos.com/css/about.css");
}


function lhb_createHeaderElement() {
    header = Document.createElement("div");
    header.innerHTML = unescape(lhb_getEscapedHeaderHTML());
    return header;
}

function lhb_getEscapedFooterHTML() {
    return "%3C%21--%20BEGIN%20footer%20--%3E%0A%3Cdiv%20id%3D%22lyFtr%22%3E%0A%3Ca%20href%3D%22http%3A%2F%2Finfo.lycos.com%2Foverview.php%22%3EAbout%20Lycos%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Finfo.daum.net%2FDaumEng%2F%22%3EAbout%20Daum%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Finfo.lycos.com%2Fprivacy.php%22%3EPrivacy%20Policy%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Finfo.lycos.com%2Ftos.php%22%3ETerms%20of%20Service%20%3Cfont%20color%3D%27red%27%3E%5BUPDATED%5D%3C%2Ffont%3E%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Finfo.lycos.com%2Fjobs.php%22%3EJobs%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Fadvertising.lycos.com%2Fcontactus.html%22%3EAdvertise%20With%20Us%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Fwww.lycos.com%2Fretriever.html%22%3ERetriever%3C%2Fa%3E%26%23160%3B%26%23160%3B%7C%26%23160%3B%26%23160%3B%3Ca%20href%3D%22http%3A%2F%2Fwww.help.lycos.com%22%3EHelp%3C%2Fa%3E%0A%3Cbr%2F%3ECopyright%20%26%23169%3B%202009%20Lycos%20Inc.%20All%20Rights%20Reserved.%3Cbr%2F%3E%3C%2Fdiv%3E%0A%3C%21--%20END%20footer%20--%3E";
}

function lhb_drawFooter() {
    document.write(unescape(lhb_getEscapedFooterHTML()));
}

function lhb_createFooterElement() {
    footer = document.createElement("p");
    footer.innerHTML = unescape(lhb_getEscapedFooterHTML());
    return footer;
}

function lhb_insertStylesheet(style_uri) {
    if (document.createStyleSheet) {
        this.document.createStyleSheet(style_uri);
    } else {
        var link = document.createElement("link");
        link.rel = "stylesheet";
        link.type = "text/css";
        link.href = style_uri;
        link.media = "screen";
        document.getElementsByTagName('head')[0].appendChild(link);
    }
}

function lhb_insertScript(url) {
    var script = document.createElement("script");
    script.setAttribute("type","text/javascript");
    script.setAttribute("src", url);
    document.getElementsByTagName("head")[0].appendChild(script);
}



