/*Lòõûø¢õýøõ ¯þªþ*/
function zoomfoto (src) 
{
	src=src+"_f";
	window.open('base/popup.php?foto='+src,'zoomfoto','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1,height=1,top=0,left=0');
}

function zoom (src) 
{
	src=src+"_f";
	window.open('base/popup.php?foto='+src,'zoomfoto','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1,height=1,top=0,left=0');
}

/* +ñ¨ðªýð  ¸ò ÷¹*/
function tell_zak()
{
	var error = 0;
	var msg = "¦¨ø ÷ðÿþûýõýøø ¯þ¨üv òv ôþÿº¸ªøûø þ°øñúº\n";
	nick = document.gb.gb_name.value;
	message = document.gb.gb_text.value;
	mail = document.gb.gb_mail.value;
//	tel = document.gb.gb_tel.value;
	if(!nick) { error = 1; msg += " - =õ ºúð÷ðûø øü \n"; }
	if(!mail) { error = 1; msg += " - =õ ºúð÷ðûø e-mail\n"; }
//	if(!tel) { error = 1; msg += " - =õ ºúð÷ðûø ªõûõ¯þý\n"; }
	if(!message) { error = 1; msg += " - =õ òòõûø ¸þþñ•õýøõ\n"; }
	if(!error) { document.gb.submit(); }
	else { alert(msg); }
}

String.prototype.printAddr = 
function (_hamper,_prefix,_postfix,_face)
{
  _hamper=
  _prefix+
  "@"+
  this+
  (_postfix || '')
//  document.write((_face||_hamper).link("mailto:"+_hamper));
  document.write((_face||_hamper));
}
function tell()
{
	var error = 0;
	var msg = "¦¨ø ÷ðÿþûýõýøø ¯þ¨üv òv ôþÿº¸ªøûø þ°øñúº\n";
	nick = document.gb.gb_name.value;
	message = document.gb.gb_text.value;
	captcha = document.gb.gb_kod.value;
	/*captcha = document.gb.gb_kod.value;*/
	if(!nick) { error = 1; msg += " - =õ ºúð÷ðûø øü \n"; }
	if(!message) { error = 1; msg += " - =õ òòõûø ¸þþñ•õýøõ\n"; }
	if(!captcha) { error = 1; msg += " - =õ òòõûø úþô\n"; }
	if(!error) { document.gb.submit(); }
	else { alert(msg); }
}
function FormShow(Click_Menu){
	Click_Menu.style.display = ''
}
function Show(Click_Menu){
	if (Click_Menu.style.display == 'none')
	{
		Click_Menu.style.display = '' 
	}
	else
	{
		Click_Menu.style.display = 'none'
	}
}
function ShowOtvet(i)
{
	var div_otvet = document.getElementById('gb'+i);
	var div_vopros = document.getElementById('gb_vopr'+i);
	var image_otvet = document.getElementById('gb_im'+i);
	if (div_otvet) 
	{
		if (div_otvet.style.display == '') 
		{			
			div_otvet.style.display='none';
			div_vopros.style.color='#334D90';
			//image_otvet.src='skin/gb_na.gif';
		} else 
		{
			div_otvet.style.display='';
			div_vopros.style.color='#707070';
			//image_otvet.src='skin/gb_a.gif';
		}
	}
}

$.Lightbox.construct({
         "text": {
             // For translating
             "image":        "Èçîáðàæåíèå",
             "of":           "èç",
             "close":        "Çàêðûòü X",
             "closeInfo":    "Âû ìîæåòå êëèêíóòü çà ïðåäåëû èçîáðàæåíèÿ, ÷òîáû çàêðûòü îêíî.",
             "download":     "Ñêà÷àòü.",
             "help": {
                 "close":    "Êëèêíèòå, ÷òîáû çàêðûòü",
                 "interact": ""
             },
             "about": {
                 "text":     "jQuery Lightbox Plugin (balupton edition)",
                 "title":    "Licenced under the GNU Affero General Public License.",
                 "link":     "http://www.balupton.com/projects/jquery-lightbox"
             }
         }
});

