//
// GalaInjector
// (C) 2009, Trurl McByte, GoHa.Ru
//
// Do not edit this file!
//

if(gg_images===undefined) { var gg_images = new Array(); }
if(gg_lastid===undefined) { var gg_lastid = 3; }
if(gg_current===undefined) { var gg_current = new Array(); }
if(gg_def_size===undefined) { var gg_def_size = new Array();; }

var gg_text = new Array();
gg_text['mid']="Средний размер";
gg_text['full']="Полный размер";
gg_text['mid_desc']="Смотрите средний размер версия этого изображения.";
gg_text['full_desc']="Смотрите полный размер версия этого изображения.";


function gg_init(el) {

	var base = el.parentNode;
	var path=el.src;
	path=path.substring(0,path.lastIndexOf('/')+1);
	var galaholder = document.createElement('div');
	galaholder.style.width="100%";
	galaholder.style.display='none';
	base.appendChild(galaholder);
	var uid = ++gg_lastid; 
	gg_current[uid]=0;
	gg_def_size[uid]=1;
	gg_images[uid] = new Array();

gg_images[uid][0]=['0','balm_01.jpg','',path+'thumb/79b4676277b88880f7238801a500c55b.jpg',path+'normal/79b4676277b88880f7238801a500c55b.jpg',path+'full/79b4676277b88880f7238801a500c55b.jpg','640','1600','360','900',''];
gg_images[uid][1]=['1','balm_02.jpg','',path+'thumb/21d9dfd56ddc11e10ad27676914fcfca.jpg',path+'normal/21d9dfd56ddc11e10ad27676914fcfca.jpg',path+'full/21d9dfd56ddc11e10ad27676914fcfca.jpg','640','1600','360','900',''];
gg_images[uid][2]=['2','balm_03.jpg','',path+'thumb/ef6eeb2b37dec5db1060da77590910be.jpg',path+'normal/ef6eeb2b37dec5db1060da77590910be.jpg',path+'full/ef6eeb2b37dec5db1060da77590910be.jpg','640','1600','360','900',''];
gg_images[uid][3]=['3','balm_04.jpg','',path+'thumb/8cacbaf5092cd5faf2ed1117d62ec8c8.jpg',path+'normal/8cacbaf5092cd5faf2ed1117d62ec8c8.jpg',path+'full/8cacbaf5092cd5faf2ed1117d62ec8c8.jpg','640','1600','360','900',''];
gg_images[uid][4]=['4','balm_05.jpg','',path+'thumb/008d8d03bcec7b103f83ca4ef397be39.jpg',path+'normal/008d8d03bcec7b103f83ca4ef397be39.jpg',path+'full/008d8d03bcec7b103f83ca4ef397be39.jpg','640','2246','222','780',''];
gg_images[uid][5]=['5','balm_06.jpg','',path+'thumb/7d1139c412e4954f648cd2fffe49c6c8.jpg',path+'normal/7d1139c412e4954f648cd2fffe49c6c8.jpg',path+'full/7d1139c412e4954f648cd2fffe49c6c8.jpg','640','2381','242','900',''];
gg_images[uid][6]=['6','balm_07.jpg','',path+'thumb/10d0f59d393cfbdad273896f25755430.jpg',path+'normal/10d0f59d393cfbdad273896f25755430.jpg',path+'full/10d0f59d393cfbdad273896f25755430.jpg','640','2246','222','780',''];
gg_images[uid][7]=['7','balm_08.jpg','',path+'thumb/8bb3b9a5c251d6ba9b6622da019a24b0.jpg',path+'normal/8bb3b9a5c251d6ba9b6622da019a24b0.jpg',path+'full/8bb3b9a5c251d6ba9b6622da019a24b0.jpg','640','2625','219','900',''];



 galaholder.innerHTML='<style type="text/css">'+
'  small.gg { font-size:0.85em; }'+
'  img.gg-image { background-color:#eeeeee; border:1px solid #cccccc; }'+
'  img.gg-thumb { background-color:#eeeeee; border:0px solid #cccccc; }'+
'  img#gg-thumb-current { border-color:#f9f99f; border-left:2px solid #f9f99f; border-right:2px solid #f9f99f; }'+
'  div.gg-caption { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:13px; }'+
'  a.gg-grayout:hover { color: #a0a0a0; text-decoration: none; font-weight: bold; cursor: default; }'+
'  a.gg-grayout:active { color: #a0a0a0; text-decoration: none; font-weight: bold; cursor: default; }'+
'  a.gg-grayout:visited { color: #a0a0a0; text-decoration: none; font-weight: bold; cursor: default; }'+
'  a.gg-grayout:link { color: #a0a0a0; text-decoration: none; font-weight: bold; cursor: default; }'+
'  a.gg-grayout { color: #999999; text-decoration: none; font-weight: bold; cursor: default; }'+
'.wrapper { border:1px solid #CCC; background: #FFF url('+path+'files/loading_image.gif) no-repeat 50% 50%;}'+
'</style>'+
'<div style="padding-top: 0px;" align="center"><table summary="Image Gallery" border="0" cellpadding="0" cellspacing="0">' +
'<tbody><tr><td colspan="2"><table summary="Control Bar" cellpadding="0" cellspacing="0" width="100%"> ' +
'<tbody><tr><td align="center" nowrap="nowrap"><div style="padding-top: 2px;"><small class="gg"> &nbsp;Размер по умолчанию: <b>[</b>' +
'<a id="gg_def1_'+uid+'" href="#" title="Изменить размер изображения по умолчанию на средний размер." class="gg-grayout" onclick="return gg_defsize('+uid+',1);">Средний</a> |'+
'<a id="gg_def2_'+uid+'" href="#" title="Изменить размер изображения по умолчанию на полный размер." onclick="return gg_defsize('+uid+',2);">Полный</a>'+
'<b>]</b> </small></div></td></tr></tbody></table></td></tr><tr><td align="center">'+
'<table summary="image display area" border="0" cellpadding="2" cellspacing="0" width="100%">'+
'<tbody><tr><td><div style="padding-top: 0px;" align="center"><table summary="Gallery Navigation" cellpadding="1" cellspacing="0" width="500px">'+
'<tbody><tr><td style="white-space: nowrap; text-align: center;" width="5%"><a id="gg_first1_'+uid+'" href="#" class="gg-grayout" title="Первое изображение" onclick="return gg_first('+uid+');">|&lt;&lt;</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="14%"><a id="gg_prev1_'+uid+'" href="#" class="gg-grayout" title="Предыдущее изображение" onclick="return gg_prev('+uid+');">&lt;&lt; Предыдущий</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="30%"><a id="gg_size1_'+uid+'" href="#" title="Смотрите полный размер версия этого изображения." onclick="return gg_size('+uid+',2);">Полный размер</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="14%"><a id="gg_next1_'+uid+'" href="#" title="Следующее изображение" onclick="return gg_next('+uid+');">Следующий &gt;&gt;</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="5%"><a id="gg_last1_'+uid+'" href="#" title="Последнее изображение" onclick="return gg_last('+uid+');">&gt;&gt;|</a>'+
'</td></tr></tbody></table></div><center><div id="gg_desc_'+uid+'"></div><div style="padding-top: 2px;" align="center" id="gg_holder_'+uid+'" class="wrapper">'+
'<a href="#" title="Следующее изображение" onclick="return gg_show('+uid+',gg_current['+uid+']+1);" style="display: none;" id="gg_link_'+uid+'"><img style="border: 0px" id="gg_image_'+uid+'" class="gg-image" src="" alt="" height="480px" width="640px" onload="return gg_cshow('+uid+');"></a>'+
'</div></center><div style="padding-top: 2px;" align="center">'+
'<table summary="Gallery Navigation" cellpadding="1" cellspacing="0" width="500px">'+
'<tbody><tr><td style="white-space: nowrap; text-align: center;" width="5%">'+
'<a id="gg_first2_'+uid+'" href="#" class="gg-grayout" title="Первое изображение"  onclick="return gg_first('+uid+');">|&lt;&lt;</a></td>'+
'<td style="white-space: nowrap; text-align: center;" width="14%"><a id="gg_prev2_'+uid+'" href="#" class="gg-grayout" title="Предыдущее изображение"  onclick="return gg_prev('+uid+');">&lt;&lt; Предыдущий</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="10%"><b id="gg_count2_'+uid+'">1 of ...</b></td><td style="white-space: nowrap; text-align: center;" width="20%"> &nbsp;'+
'<a id="gg_size2_'+uid+'" href="#" title="Смотрите полный размер версия этого изображения." onclick="return gg_size('+uid+',2);">Полный размер</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="14%"><a id="gg_next2_'+uid+'" href="#" title="Следующее изображение" onclick="return gg_next('+uid+');">Следующий &gt;&gt;</a>'+
'</td><td style="white-space: nowrap; text-align: center;" width="5%"><a id="gg_last2_'+uid+'" href="#" title="Последнее изображение" onclick="return gg_last('+uid+');">&gt;&gt;|</a>'+
'</td></tr></tbody></table></div><div style="padding-top: 2px; white-space: nowrap;" align="center">'+

'<a href="#" onclick="return gg_show('+uid+',0);" title="balm_01.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/79b4676277b88880f7238801a500c55b.jpg" alt="balm_01.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',1);" title="balm_02.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/21d9dfd56ddc11e10ad27676914fcfca.jpg" alt="balm_02.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',2);" title="balm_03.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/ef6eeb2b37dec5db1060da77590910be.jpg" alt="balm_03.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',3);" title="balm_04.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/8cacbaf5092cd5faf2ed1117d62ec8c8.jpg" alt="balm_04.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',4);" title="balm_05.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/008d8d03bcec7b103f83ca4ef397be39.jpg" alt="balm_05.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',5);" title="balm_06.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/7d1139c412e4954f648cd2fffe49c6c8.jpg" alt="balm_06.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',6);" title="balm_07.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/10d0f59d393cfbdad273896f25755430.jpg" alt="balm_07.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',7);" title="balm_08.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/8bb3b9a5c251d6ba9b6622da019a24b0.jpg" alt="balm_08.jpg" height="80px" width="80px"></a></div><div style="padding-top: 2px; white-space: nowrap;" align="center">'+

'</div><div style="padding-top: 5px;" align="center">'+
'<table summary="Gallery Footer" cellpadding="1" cellspacing="0" width="100%">'+
'<tbody><tr><td nowrap="nowrap" width="20%"><div title="Site Link" style="font-size: 0.75em;">'+
'<a href="http://www.goha.ru/" title="GoHa.Ru">GoHa.Ru</a>&nbsp; </div></td>'+
'<td align="center" nowrap="nowrap" width="60%"><div title="Copyright Text" style="color: rgb(204, 204, 204); font-size: 0.75em; font-weight: normal;">'+
'Copyright GoHa.Ru © 2007. All rights reserved.</div></td><td nowrap="nowrap" width="20%">'+
'<div style="color: rgb(204, 204, 204); font-size: 0.75em; text-align: right;"> Gallery by Trurl McByte (based on Qdig Gallery)</div></td></tr>'+
'</tbody></table></div></td></tr></tbody></table></td></tr></tbody></table></div>';
 galaholder.style.display='';


  if(!document.getElementById('galainjector') || document.getElementById('galainjector')===null) {
    var gala_script = document.createElement('script');
    gala_script.type = 'text/javascript';
    gala_script.src = path+"files/goharu.js"
    gala_script.id = 'gala';
    gala_script.onload = function onload (event) { return gg_show(uid,0); };
    gala_script.onreadystatechange = function onreadystatechange (event) { if(this.readyState=='loaded') return gg_show(uid,0); };
//    var dst=document.getElementsByTagName('head')[0];
    base.appendChild(gala_script);
  } else { gg_show(uid,0); }
  return false;
}


