window.onerror=errorhandler;

var pindex=0;
function switchpic()
{
pindex++;
pindex %= image.length;
document.photo.src=image[pindex].src;
document.forms[0].photobutton.value= 'Change photo - ' + (pindex + 1) + ' of ' + image.length;
}

var popwin;
function popup(name, photo)
{
popwin=window.open('popup.htm?' + name + '&' + photo, 'popwin', 'width=450,height=360,scrollbars=yes,resize=yes');
popwin.focus();
}

function infoWindow()
{
var info=window.open('info.htm','','width=550,height=320,left=10,top=10,scrollbars=yes,resize=no');
}

if (parent.frames[1]) parent.location.href=self.location.href;


function newwin(url)
{
var winparams='toolbar,directories,location,status,scrollbars,resizable,menubar';
window.open(url,'newwindow',winparams);
}

function errorhandler()
{
return false;
}

