<!--
agent = navigator.userAgent
browser = 0
selected = ''
if (agent.indexOf("a/3",1) == 6 || agent.indexOf("a/4",1) == 6) {browser = 1} else {browser = 0}
if (browser == 1) {

link1_n = new Image(50,48);
link1_n.src = "img/home.gif";
link1_h = new Image(50,48);
link1_h.src = "img/home1.gif";

}
function nt4(img) {
if (agent.indexOf("WinNT") == -1) {
                return;
        } 
                else {
                document.images[img].src = eval(img + "_c.src")
        }
}
function pass(prima,tipo) {

if (browser == 1) {

if (tipo == 's') {
                if (selected) {
                        nt4(prima)
                        document.images[selected].src = eval(selected + "_n.src")
                }
                nt4(prima)
                document.images[prima].src = eval(prima + "_s.src")
                selected=prima
                }

if (tipo == 'h') {
                if (prima != selected) {
                nt4(prima)
                document.images[prima].src = eval(prima + "_h.src")
                        }
                }

if (tipo == 'n') {
                if (prima != selected) {
                        nt4(prima)
                        document.images[prima].src = eval(prima + "_n.src")
                        }
                }

        }
}

ns4 = (document.layers) ? true : false
ie4 = (document.all) ? true : false

function openMapa(url)
{
window.open(url,'newwindow','top=100,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=0,scrollbars=1, copyhistory=0,width=400,height=350')
}

function openSlika(url)
{
window.open(url,'newwindow','top=100,left=200,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=1,scrollbars=1, copyhistory=0,width=500,height=500')
}

function tehnicke_karakteristike_print(model_id)                                   
{
        window.open('iframe_teh_karakteristike.php?printversion=1&model_id='+model_id,'_blank','top=100,left=100,toolbar=yes,location=no,directories=no,status=no,menubar=no,resizable=1,scrollbars=1,clpyhistory=0,width=650,height=500');
}

function cjenikpdf(model_id)                                   
{
        window.open('getpdf.php?model_id='+model_id,'_blank','top=100,left=100,toolbar=yes,location=no,directories=no,status=no,menubar=no,resizable=1,scrollbars=1,clpyhistory=0,width=650,height=500');
}
//-->

