﻿function opntecaj(id) {
    window.open('Info/Tecaj/' + id, 'tecaj', 'toolbar=0,menubar=0,width=600,height=600,location=0,status=0,title=0');
    return false;
}

function marktags() {   
    var as = document.links; for (var i = 0; i < as.length; i++) {
    if (as[i] != null && as[i].hostname && as[i].protocol == "http:" && as[i].hostname != document.location.hostname) {
            as[i].className = "aout"; as[i].target = "_blank"; if (as[i].rel == null) as[i].rel = "nofollow";
            // as[i].onClick = "pageTracker._trackPageview('/outLink/" + as[i].href.replace("http://", "").replace("www.", "").replace("/", "-").replace("/", "-").replace("/", "-") + "');";
}}}

function delayload(id) {
    setTimeout("document.getElementById('"+id+"').style.display='block';chkkontrola();",2000);
    //chkkontrola();
}

function chkkontrola()
{
    var k = document.getElementById('kontrolaslike');
    var k2 = document.getElementById('kontrolaslike2');
    if (document.getElementById('content').style.display=='block')  {
        k.innerHTML = 'razkrij fotografijo';
        k2.style.display = 'none';
    } else {
        k.innerHTML = 'prikaži';
        k2.style.display = 'block';
    }
    return false;
}


function kontrolaslike()
{
    var c = document.getElementById('content');
    if ( c.style.display == "none") { c.style.display = "block"; }
    else { c.style.display = "none"; }
    chkkontrola();
    return false;
}

function prikazisliko() {
    var c = document.getElementById('content');
    c.style.display = "block";
    chkkontrola();
    return false;
}