browserName = navigator.appName;
browserVer = parseInt(navigator.appVersion);

ns3up = (browserName == "Netscape" && browserVer >= 3);
ie4up = (browserName.indexOf("Microsoft") >= 0 && browserVer >= 4);

function doPic(imgName) {
if (ns3up || ie4up) {
imgOn = ("" + imgName);
document.mainpic.src = imgOn;
   }
}
var newwindow = ''
function popitup1(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'Galerija','width=700,height=467,resizable=0');}
}

function popitupStandUp1(url) {
if (newwindow.location && !newwindow.closed) {
    newwindow.location.href = url;
    newwindow.focus(); }
else {
    newwindow=window.open(url,'Galerija','width=467,height=700,resizable=0');}
}
function popitupStandUp(url) {
    newwindow=window.open(url,'Galerija','width=467,height=700,resizable=0');
	newwindow.focus();
}
function popitup(url) {
    newwindow=window.open(url,'Galerija','width=700,height=467,resizable=0');
	newwindow.focus();
}

function tidy() {
if (newwindow.location && !newwindow.closed) {
   newwindow.close(); }
}
