
function swapImages(i,fileSm, fileLg, widthSm, heightSm, widthLg, heightLg){
if (i.src.indexOf('2') > 0){
	i.src=fileLg;
	i.alt="Уменьшить...";
	i.width=widthLg;
	i.height=heightLg;
	document.reload;
}
else {
	i.src=fileSm;
	i.alt="Увеличить...";
	i.width=widthSm;
	i.height=heightSm;
}
return false;
}
function writeStatus(t) {
self.status=t;
//self.defaultStatus = '  ';
}

function TimeStamp(key) {
	var d = new Date(document.lastModified);
	(key == 1) ? t="Last modified: "  : t = "Последнее изменение: ";
	document.write(t+d.getDate()+'.'+(d.getMonth()+1)+'.'+d.getFullYear());
return true;
}

function o(p,n,w,h) {
var wx = (screen.width-w/2)/2;
var wy = (screen.height-h/2)/2;
var wpos = "left="+wx+",top="+wy;
a=window.open(p,n,'resizable=yes,width='+w+',height='+h+',fullscreen=0,status=no,scrollbars=yes,location=no,toolbar=yes,'+wpos); 
}

