var timer;

function countdown() {
timer = setTimeout ("document.location.href='/main.html'", 5000);
}

function photoview(url,width,height) {
var posleft = (screen.width - width)/2;
var postop = (screen.height - height)/3;
var newwin = window.open('','','width='+width+',height='+height+',top='+postop+',left='+posleft+',location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,directories=0,hotkeys=0,copyhistory=0');
newwin.document.open();
newwin.document.write('<html><head><title>Фотоархив Сенаторского клуба</title><meta name="robots" content="noindex"><meta http-equiv="imagetoolbar" content="no"></head>');
newwin.document.write('<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" style="margin:0; padding:0; position:fixed; overflow:none;">');
newwin.document.write('<img src="'+url+'" width="'+width+'" height="'+height+'" border="0" alt=""></body></html>');
newwin.document.close();
newwin.focus();
}

function gbdate(stamp,DD,MM,YY) {
dte = new Date();
dates = new Array('января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря');
if (stamp > 0) {dte.setTime(stamp*1000+dte.getTimezoneOffset()*60000);}
else {dte.setDate(DD);dte.setMonth(MM-1);dte.setFullYear(YY);}
document.write(+dte.getDate()+' '+dates[dte.getMonth()]+' '+dte.getFullYear()+' года');
}
