//
// 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','ss1_hires.jpg','',path+'thumb/70c796af0b13da6d5468d083dfb24d3b.jpg',path+'normal/70c796af0b13da6d5468d083dfb24d3b.jpg',path+'full/70c796af0b13da6d5468d083dfb24d3b.jpg','640','2048','480','1536',''];
gg_images[uid][1]=['1','ss2_hires.jpg','',path+'thumb/92c82c4ee2441e6e49de8c97ddddec72.jpg',path+'normal/92c82c4ee2441e6e49de8c97ddddec72.jpg',path+'full/92c82c4ee2441e6e49de8c97ddddec72.jpg','640','2048','480','1536',''];
gg_images[uid][2]=['2','ss3_hires.jpg','',path+'thumb/337720de13329cd03d020de24dbacf99.jpg',path+'normal/337720de13329cd03d020de24dbacf99.jpg',path+'full/337720de13329cd03d020de24dbacf99.jpg','640','2048','480','1536',''];
gg_images[uid][3]=['3','ss4_hires.jpg','',path+'thumb/3d22e0f6eaa68fc0460632a3447d2d31.jpg',path+'normal/3d22e0f6eaa68fc0460632a3447d2d31.jpg',path+'full/3d22e0f6eaa68fc0460632a3447d2d31.jpg','640','2012','480','1509',''];
gg_images[uid][4]=['4','ss5_hires.jpg','',path+'thumb/d6e12d56f14d950afb8ba80a00454ad3.jpg',path+'normal/d6e12d56f14d950afb8ba80a00454ad3.jpg',path+'full/d6e12d56f14d950afb8ba80a00454ad3.jpg','640','2048','480','1536',''];
gg_images[uid][5]=['5','ss6_hires.jpg','',path+'thumb/5e2fa982047ceacb525a0a8d3ac7ade1.jpg',path+'normal/5e2fa982047ceacb525a0a8d3ac7ade1.jpg',path+'full/5e2fa982047ceacb525a0a8d3ac7ade1.jpg','640','2012','480','1509',''];
gg_images[uid][6]=['6','ss7_hires.jpg','',path+'thumb/e62f308b613e6015bdbc957c0bdf7729.jpg',path+'normal/e62f308b613e6015bdbc957c0bdf7729.jpg',path+'full/e62f308b613e6015bdbc957c0bdf7729.jpg','640','1512','480','1134',''];
gg_images[uid][7]=['7','ss8_hires.jpg','',path+'thumb/8d9c32a2afa51fe5708d7e16e57ae154.jpg',path+'normal/8d9c32a2afa51fe5708d7e16e57ae154.jpg',path+'full/8d9c32a2afa51fe5708d7e16e57ae154.jpg','640','2048','480','1536',''];
gg_images[uid][8]=['8','ss10_hires.jpg','',path+'thumb/eadf45169bf72bc8f1bf4de39af7be4f.jpg',path+'normal/eadf45169bf72bc8f1bf4de39af7be4f.jpg',path+'full/eadf45169bf72bc8f1bf4de39af7be4f.jpg','640','2048','480','1536',''];
gg_images[uid][9]=['9','ss11_hires.jpg','',path+'thumb/57b8746319efb1d62e938cd399297217.jpg',path+'normal/57b8746319efb1d62e938cd399297217.jpg',path+'full/57b8746319efb1d62e938cd399297217.jpg','640','2048','480','1536',''];
gg_images[uid][10]=['10','ss12_hires.jpg','',path+'thumb/5a5bd2619f2a4d555f040de4314ccf7c.jpg',path+'normal/5a5bd2619f2a4d555f040de4314ccf7c.jpg',path+'full/5a5bd2619f2a4d555f040de4314ccf7c.jpg','640','2048','480','1536',''];
gg_images[uid][11]=['11','ss13_hires.jpg','',path+'thumb/b27312733dd81440d3b78b086f8cf3de.jpg',path+'normal/b27312733dd81440d3b78b086f8cf3de.jpg',path+'full/b27312733dd81440d3b78b086f8cf3de.jpg','640','2048','480','1536',''];
gg_images[uid][12]=['12','ss14_hires.jpg','',path+'thumb/a9fba8183153ecf954a402facca2fd9f.jpg',path+'normal/a9fba8183153ecf954a402facca2fd9f.jpg',path+'full/a9fba8183153ecf954a402facca2fd9f.jpg','640','2012','480','1509',''];
gg_images[uid][13]=['13','ss15_hires.jpg','',path+'thumb/e3bedcf4d4e7bef4bd940b5b1afcf450.jpg',path+'normal/e3bedcf4d4e7bef4bd940b5b1afcf450.jpg',path+'full/e3bedcf4d4e7bef4bd940b5b1afcf450.jpg','640','2012','480','1509',''];
gg_images[uid][14]=['14','ss16_hires.jpg','',path+'thumb/08b957822764ab0eb67dcf9d73a6957f.jpg',path+'normal/08b957822764ab0eb67dcf9d73a6957f.jpg',path+'full/08b957822764ab0eb67dcf9d73a6957f.jpg','640','2012','480','1509',''];
gg_images[uid][15]=['15','ss17_hires.jpg','',path+'thumb/b1d986159f4960566fcabb118493689c.jpg',path+'normal/b1d986159f4960566fcabb118493689c.jpg',path+'full/b1d986159f4960566fcabb118493689c.jpg','640','2012','480','1509',''];
gg_images[uid][16]=['16','ss18_hires.jpg','',path+'thumb/e080d01f0d75fd8fdf1a57230c592dc8.jpg',path+'normal/e080d01f0d75fd8fdf1a57230c592dc8.jpg',path+'full/e080d01f0d75fd8fdf1a57230c592dc8.jpg','640','2012','480','1509',''];



 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="ss1_hires.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/70c796af0b13da6d5468d083dfb24d3b.jpg" alt="ss1_hires.jpg" height="80px" width="80px"></a>'+

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

'</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;
}

