<!-- скриптец
// url - адрес картинки, которую требуется открыть 
// width - ширина картинки
// height - высота картинки
function foto(pic_url,pic_width,pic_height){
var params='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width='+pic_width+',height='+pic_height;
foto1=window.open('','',params);
foto1.document.write("<html><head><meta http-equiv='Content-Type' content='text/html'><meta name='author' content=''><meta name='copiright' content=''><meta name='generator' content='GrandMotors'><title>изображение</title></head><body bgcolor=black leftmargin='0' topmargin='0'><table width=100% height=100% border='0' cellspacing='0' cellpadding='0'><tr><td align=center valign=center><img src=",pic_url," onclick=window.close()></td></tr></table></body></html>");
foto1.focus();
foto1.document.close();
 }

function gallery(array_name,array_id){
var params='toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=650,height=650';
var galleryURL='/gallery/?show='+array_name+'&id='+array_id;
window.open(galleryURL,'',params);
}

// -->