//popup window function
function oWin(page, name, iX, iY)
{
window.open(page, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, screenX=5, screenY=5, width='+iX+', height='+iY);
}


function oWinC(page, name, iX, iY)
{
    x = (800 - iX)/2, y = (600 - iY)/2;

    if (screen) {
        y = (screen.availHeight - iY)/2;
        x = (screen.availWidth - iX)/2;
    }

    //window.open('nextpage.htm','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
	window.open(page, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, screenX='+x+', screenY='+y+', width='+iX+', height='+iY);
}


//display the site title
window.status='Parket Monting';


//popup window function
function oWin(page, name, iX, iY)
{
window.open(page, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, screenX=5, screenY=5, width='+iX+', height='+iY);
}


function oWinC(page, name, iX, iY)
{
    x = (800 - iX)/2, y = (600 - iY)/2;

    if (screen) {
        y = (screen.availHeight - iY)/2;
        x = (screen.availWidth - iX)/2;
    }

    //window.open('nextpage.htm','newWin','width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x);
	window.open(page, name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no, screenX='+x+', screenY='+y+', width='+iX+', height='+iY);
}


//display the site title
window.status='Parket Monting';

function right(e)
{
	var msg = "Slika je u vlasništvu tvrtke Parket Monting.Zabranjena je bilo kakva vrsta obrade i korištenja bez znanja i dozvole autora!";
	if (navigator.appName == 'Netscape' && e.which == 3)
	{
		alert(msg);
		return false;
	}
	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2)
	{
		alert(msg);
		return false;
	}
	else
		return true;
	alert("test");
}

function trap() {
  if(document.images)
    {
    for(i=0;i<document.images.length;i++)
      {
      document.images[i].onmousedown = right;
      document.images[i].onmouseup = right;
      }
    }
}

