//
// 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','Abyssal%20Maw.jpg','',path+'thumb/248d54b343ebe452f78c917d061fc2b5.jpg',path+'normal/248d54b343ebe452f78c917d061fc2b5.jpg',path+'full/248d54b343ebe452f78c917d061fc2b5.jpg','640','2502','345','1350',''];
gg_images[uid][1]=['1','Deephome%20Trogg%20Town.jpg','',path+'thumb/9f5e4f5d03668282791df10c4e5693a5.jpg',path+'normal/9f5e4f5d03668282791df10c4e5693a5.jpg',path+'full/9f5e4f5d03668282791df10c4e5693a5.jpg','640','2706','298','1262',''];
gg_images[uid][2]=['2','Goblin%20Mage.jpg','',path+'thumb/e33d7742d0285212138f548e2d4194f2.jpg',path+'normal/e33d7742d0285212138f548e2d4194f2.jpg',path+'full/e33d7742d0285212138f548e2d4194f2.jpg','630','1640','480','1249',''];
gg_images[uid][3]=['3','Greymane%20Townstreet.jpg','',path+'thumb/a27375e01aa566a846cd4be57a017b32.jpg',path+'normal/a27375e01aa566a846cd4be57a017b32.jpg',path+'full/a27375e01aa566a846cd4be57a017b32.jpg','640','4600','403','2900',''];
gg_images[uid][4]=['4','The%20Barrens%20Split.jpg','',path+'thumb/ec10c66c7e2ba2f562d450cac4db307a.jpg',path+'normal/ec10c66c7e2ba2f562d450cac4db307a.jpg',path+'full/ec10c66c7e2ba2f562d450cac4db307a.jpg','640','2690','289','1214',''];
gg_images[uid][5]=['5','Volcano.jpg','',path+'thumb/e3df6099df33e8e91cdfbfaa3e21e10f.jpg',path+'normal/e3df6099df33e8e91cdfbfaa3e21e10f.jpg',path+'full/e3df6099df33e8e91cdfbfaa3e21e10f.jpg','640','4000','320','2000',''];
gg_images[uid][6]=['6','Volcanoth.jpg','',path+'thumb/247385de8bdcd0e398c49e5ea5c52c80.jpg',path+'normal/247385de8bdcd0e398c49e5ea5c52c80.jpg',path+'full/247385de8bdcd0e398c49e5ea5c52c80.jpg','640','2353','443','1630',''];
gg_images[uid][7]=['7','Worgen Warrior.jpeg','',path+'thumb/35ce9dbff3598831440a2efa55009ede.jpg',path+'normal/35ce9dbff3598831440a2efa55009ede.jpg',path+'full/35ce9dbff3598831440a2efa55009ede.jpg','447','2523','480','2709',''];



 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="Abyssal%20Maw.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/248d54b343ebe452f78c917d061fc2b5.jpg" alt="Abyssal%20Maw.jpg" height="80px" width="80px"></a>'+

'<a href="#" onclick="return gg_show('+uid+',1);" title="Deephome%20Trogg%20Town.jpg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/9f5e4f5d03668282791df10c4e5693a5.jpg" alt="Deephome%20Trogg%20Town.jpg" height="80px" width="80px"></a>'+

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

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

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

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

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

'<a href="#" onclick="return gg_show('+uid+',7);" title="Worgen Warrior.jpeg"><img style="border: 0px; margin: 2px;" src="'+path+'thumb/35ce9dbff3598831440a2efa55009ede.jpg" alt="Worgen Warrior.jpeg" 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;
}

