// nima veze s sliko, druga scripta za izbor v meniju

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->


// popup za zemljevide
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=711,height=532,left = 44.5,top = 30');");
}
// End -->






// Script Source: CodeLifter.com
// Copyright 2003
// Do not remove this notice.

// SETUPS:
// ===============================

// Set the horizontal and vertical position for the popup

PositionX = 20;
PositionY = 10;

// Set these value approximately 20 pixels greater than the
// size of the largest image to be used (needed for Netscape)

defaultWidth  = 500;
defaultHeight = 500;

// Set autoclose true to have the window close automatically
// Set autoclose false to allow multiple popup windows

var AutoClose = true;

// Do not edit below this line...
// ================================
if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var isChrome = navigator.userAgent.toLowerCase().indexOf("chrome") > -1;
var isOpera = navigator.userAgent.toLowerCase().indexOf("opera") > -1;
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
function popImage(imageURL,imageTitle){

if (isChrome) {imgWin=window.open('about:blank','',optIE);}
else if (isNN) {imgWin=window.open('about:blank','',optNN);}
else if (isIE) {imgWin=window.open('about:blank','',optIE);}
else if (isOpera) {imgWin=window.open('about:blank','',optIE);}
else {imgWin=window.open('about:blank','',optNN);}

with (imgWin.document){
writeln('<html><head><title>Loading...</title><style>body{margin:0px;}</style>');
writeln('<sc'+'ript>');
writeln('var isNN,isIE;');
writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
writeln('isNN=(navigator.appName=="Netscape")?1:0;');
writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
writeln('isChrome = navigator.userAgent.toLowerCase().indexOf("chrome") > -1;');
writeln('isOpera = navigator.userAgent.toLowerCase().indexOf("opera") > -1;');
writeln('function reSizeToImage(){');
writeln('if (isIE){');
writeln('window.resizeTo(500,500);');
writeln('width=500-(document.body.clientWidth-document.images[0].width);');
writeln('height=500-(document.body.clientHeight-document.images[0].height);');
writeln('window.resizeTo(width,height);');
writeln('}');
//writeln('if (isNN){');
writeln('else {');
writeln('iWidth=document.images["ShowImage"].width;');
writeln('iHeight=document.images["ShowImage"].height;');
writeln('window.innerWidth=iWidth;');
writeln('window.innerHeight=iHeight;');
writeln('if (isChrome){');
//writeln('alert("width: " + window.outerWidth + "; height: " + window.outerHeight);');
//writeln('window.resizeBy(iWidth, iHeight);');
//writeln('window.resizeTo(10, 10);');
writeln('window.resizeTo(iWidth + 10, iHeight + 58);');
writeln('}');
writeln('if (isOpera){');
//writeln('alert("width: " + window.outerWidth + "; height: " + window.outerHeight);');
//writeln('window.resizeBy(iWidth, iHeight);');
//writeln('window.resizeTo(10, 10);');
writeln('window.resizeTo(iWidth + window.outerWidth - 150, iHeight + window.outerHeight - 100);');
writeln('}');
writeln('}');
writeln('}');
writeln('function doTitle(){document.title="'+imageTitle+'";}');
writeln('</sc'+'ript>');
if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()">');
writeln('<img name="ShowImage" src='+imageURL+' style="display:block"></body></html>');
close();		
}}


