var conf = {
	lang : {
		loadingMsg : false,
		loadingTitle : 'Отменить',
		focusTitle : 'Переместить наверх',
		fullExpandTitle : 'Показать реальный размер',
		restoreTitle : 'Закрыть'
	},
	build : '10092010',
	graphicsDir : '/js/img/',
	tableId : 'sm_simple_gallery',
	className : 'wide-border',
	expandCursor : '14106.cur', 
	restoreCursor : '14107.cur', 
	expandDuration : 250, 
	restoreDuration : 250
};
if(!grow){var grow={lang:conf.lang,wrapperClassName:conf.className,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:true,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:false,fullExpandPosition:'bottom right',fullExpandOpacity:1,enableKeyListener:true,openerTagNames:['a'],dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:'drop-shadow',preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:['allowSizeReduction','useBox','outlineType','outlineWhileAnimating','captionId','captionText','captionEval','captionOverlay','headingId','headingText','headingEval','headingOverlay','dragByHeading','width','height','wrapperClassName','minWidth','minHeight','maxWidth','maxHeight','slideshowGroup','easing','easingClose','fadeInOut','src'],overlays:[],idCounter:0,oPos:{x:['leftpanel','left','center','right','rightpanel'],y:['above','top','middle','bottom','below']},mouse:{},headingOverlay:{},captionOverlay:{},timers:[],pendingOutlines:{},clones:{},onReady:[],uaVersion:/Trident\/4\.0/.test(navigator.userAgent)?8:parseFloat((navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,'0'])[1]),ie:(document.all&&!window.opera),safari:/Safari/.test(navigator.userAgent),geckoMac:/Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),test:function(a,b){b=b||'all';var q='';var j=0;for(var c in a){if(b=='all'){q+=c+'='+a[c]}else{q+=c}if(j<2){q+="\t\t\t";j++}else{q+="\n";j=0}}alert(q)},$:function(a){if(a)return document.getElementById(a)},push:function(a,b){a[a.length]=b},createElement:function(a,b,c,d,e){var f=document.createElement(a);if(b)grow.extend(f,b);if(e)grow.setStyles(f,{padding:0,border:'none',margin:0});if(c)grow.setStyles(f,c);if(d)d.appendChild(f);return f},extend:function(a,b){for(var x in b)a[x]=b[x];return a},setStyles:function(a,b){for(var x in b){if(grow.ie&&x=='opacity'){if(b[x]>0.99)a.style.removeAttribute('filter');else a.style.filter='alpha(opacity='+(b[x]*100)+')'}else a.style[x]=b[x]}},animate:function(a,b,c){var d,end,unit;if(typeof c!='object'||c===null){var f=arguments;c={duration:f[2],easing:f[3],complete:f[4]}}if(typeof c.duration!='number')c.duration=250;c.easing=Math[c.easing]||Math.easeInQuad;c.curAnim=grow.extend({},b);for(var g in b){var e=new grow.fx(a,c,g);d=parseFloat(grow.css(a,g))||0;end=parseFloat(b[g]);unit=g!='opacity'?'px':'';e.custom(d,end,unit)}},css:function(c,d){if(document.defaultView){return document.defaultView.getComputedStyle(c,null).getPropertyValue(d)}else{if(d=='opacity')d='filter';var e=c.currentStyle[d.replace(/\-(\w)/g,function(a,b){return b.toUpperCase()})];if(d=='filter')e=e.replace(/alpha\(opacity=([0-9]+)\)/,function(a,b){return b/100});return e===''?1:e}},getPageSize:function(){var d=document,w=window,iebody=d.compatMode&&d.compatMode!='BackCompat'?d.documentElement:d.body;var a=grow.ie?iebody.clientWidth:(d.documentElement.clientWidth||self.innerWidth),height=grow.ie?iebody.clientHeight:self.innerHeight;grow.page={width:a,height:height,scrollLeft:grow.ie?iebody.scrollLeft:pageXOffset,scrollTop:grow.ie?iebody.scrollTop:pageYOffset}},getPosition:function(a){var p={x:a.offsetLeft,y:a.offsetTop};while(a.offsetParent){a=a.offsetParent;p.x+=a.offsetLeft;p.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){p.x-=a.scrollLeft;p.y-=a.scrollTop}}return p},expand:function(a,b,c,d){if(!a)a=grow.createElement('a',null,{display:'none'},grow.container);if(typeof a.getParams=='function')return b;try{new grow.Expander(a,b,c);return false}catch(e){return true}},focusTopmost:function(){var a=0,topmostKey=-1,expanders=grow.expanders,exp,zIndex;for(var i=0;i<expanders.length;i++){exp=expanders[i];if(exp){zIndex=exp.wrapper.style.zIndex;if(zIndex&&zIndex>a){a=zIndex;topmostKey=i}}}if(topmostKey==-1)grow.focusKey=-1;else expanders[topmostKey].focus()},getParam:function(a,b){a.getParams=a.onclick;var p=a.getParams?a.getParams():null;a.getParams=null;return(p&&typeof p[b]!='undefined')?p[b]:(typeof grow[b]!='undefined'?grow[b]:null)},getSrc:function(a){var b=grow.getParam(a,'src');if(b)return b;return a.href},getNode:function(b){var c=grow.$(b),clone=grow.clones[b],a={};if(!c&&!clone)return null;if(!clone){clone=c.cloneNode(true);clone.id='';grow.clones[b]=clone;return c}else{return clone.cloneNode(true)}},discardElement:function(d){if(d)grow.garbageBin.appendChild(d);grow.garbageBin.innerHTML=''},transit:function(a,b){var c=b=b||grow.getExpander();if(grow.upcoming)return false;else grow.last=c;try{grow.upcoming=a;a.onclick()}catch(e){grow.last=grow.upcoming=null}try{b.close()}catch(e){}return false},getWrapperKey:function(a,b){var c,re=/^growimg-wrapper-([0-9]+)$/;c=a;while(c.parentNode){if(c.id&&re.test(c.id))return c.id.replace(re,"$1");c=c.parentNode}if(!b){c=a;while(c.parentNode){if(c.tagName&&grow.isHsAnchor(c)){for(var d=0;d<grow.expanders.length;d++){var e=grow.expanders[d];if(e&&e.a==c)return d}}c=c.parentNode}}return null},getExpander:function(a,b){if(typeof a=='undefined')return grow.expanders[grow.focusKey]||null;if(typeof a=='number')return grow.expanders[a]||null;if(typeof a=='string')a=grow.$(a);return grow.expanders[grow.getWrapperKey(a,b)]||null},isHsAnchor:function(a){return(a.onclick&&a.onclick.toString().replace(/\s/g,' ').match(/grow.(htmlE|e)xpand/))},reOrder:function(){for(var i=0;i<grow.expanders.length;i++)if(grow.expanders[i]&&grow.expanders[i].isExpanded)grow.focusTopmost()},mouseClickHandler:function(e){if(!e)e=window.event;if(e.button>1)return true;if(!e.target)e.target=e.srcElement;var a=e.target;while(a.parentNode&&!(/growimg-(image|move|html|resize)/.test(a.className))){a=a.parentNode}var b=grow.getExpander(a);if(b&&(b.isClosing||!b.isExpanded))return true;if(b&&e.type=='mousedown'){if(e.target.form)return true;var c=a.className.match(/growimg-(image|move|resize)/);if(c){grow.dragArgs={exp:b,type:c[1],left:b.x.pos,width:b.x.size,top:b.y.pos,height:b.y.size,clickX:e.clientX,clickY:e.clientY};grow.addEventListener(document,'mousemove',grow.dragHandler);if(e.preventDefault)e.preventDefault();if(/growimg-(image|html)-blur/.test(b.content.className)){b.focus();grow.hasFocused=true}return false}}else if(e.type=='mouseup'){grow.removeEventListener(document,'mousemove',grow.dragHandler);if(grow.dragArgs){if(grow.styleRestoreCursor&&grow.dragArgs.type=='image')grow.dragArgs.exp.content.style.cursor=grow.styleRestoreCursor;var d=grow.dragArgs.hasDragged;if(!d&&!grow.hasFocused&&!/(move|resize)/.test(grow.dragArgs.type)){b.close()}else if(d||(!d&&grow.hasHtmlExpanders)){grow.dragArgs.exp.doShowHide('hidden')}grow.hasFocused=false;grow.dragArgs=null}else if(/growimg-image-blur/.test(a.className)){a.style.cursor=grow.styleRestoreCursor}}return false},dragHandler:function(e){if(!grow.dragArgs)return true;if(!e)e=window.event;var a=grow.dragArgs,exp=a.exp;a.dX=e.clientX-a.clickX;a.dY=e.clientY-a.clickY;var b=Math.sqrt(Math.pow(a.dX,2)+Math.pow(a.dY,2));if(!a.hasDragged)a.hasDragged=(a.type!='image'&&b>0)||(b>(grow.dragSensitivity||5));if(a.hasDragged&&e.clientX>5&&e.clientY>5){if(a.type=='resize')exp.resize(a);else{exp.moveTo(a.left+a.dX,a.top+a.dY);if(a.type=='image')exp.content.style.cursor='move'}}return false},wrapperMouseHandler:function(e){try{if(!e)e=window.event;var a=/mouseover/i.test(e.type);if(!e.target)e.target=e.srcElement;if(grow.ie)e.relatedTarget=a?e.fromElement:e.toElement;var b=grow.getExpander(e.target);if(!b.isExpanded)return;if(!b||!e.relatedTarget||grow.getExpander(e.relatedTarget,true)==b||grow.dragArgs)return;for(var i=0;i<b.overlays.length;i++)(function(){var o=grow.$('hsId'+b.overlays[i]);if(o&&o.hideOnMouseOut){if(a)grow.setStyles(o,{visibility:'visible',display:''});grow.animate(o,{opacity:a?o.opacity:0},o.dur)}})()}catch(e){}},addEventListener:function(a,b,c){if(a==document&&b=='ready')grow.push(grow.onReady,c);try{a.addEventListener(b,c,false)}catch(e){try{a.detachEvent('on'+b,c);a.attachEvent('on'+b,c)}catch(e){a['on'+b]=c}}},removeEventListener:function(a,b,c){try{a.removeEventListener(b,c,false)}catch(e){try{a.detachEvent('on'+b,c)}catch(e){a['on'+b]=null}}},init:function(){if(!grow.container){grow.getPageSize();grow.ieLt7=grow.ie&&grow.uaVersion<7;for(var x in grow.langDefaults){if(typeof grow[x]!='undefined')grow.lang[x]=grow[x];else if(typeof grow.lang[x]=='undefined'&&typeof grow.langDefaults[x]!='undefined')grow.lang[x]=grow.langDefaults[x]}grow.container=grow.createElement('div',{className:'growimg-container'},{position:'absolute',left:0,top:0,width:'100%',zIndex:grow.zIndexCounter,direction:'ltr'},document.body,true);grow.loading=grow.createElement('a',{className:'growimg-loading',title:grow.lang.loadingTitle,innerHTML:grow.lang.loadingMsg||'',href:'javascript:;'},{position:'absolute',top:'-9999px',opacity:grow.loadingOpacity,zIndex:1},grow.container);grow.garbageBin=grow.createElement('div',null,{display:'none'},grow.container);Math.linearTween=function(t,b,c,d){return c*t/d+b};Math.easeInQuad=function(t,b,c,d){return c*(t/=d)*t+b};grow.hideSelects=grow.ieLt7;grow.hideIframes=((window.opera&&grow.uaVersion<9)||navigator.vendor=='KDE'||(grow.ie&&grow.uaVersion<5.5))}},ready:function(){if(grow.isReady)return;grow.isReady=true;for(var i=0;i<grow.onReady.length;i++)grow.onReady[i]()},updateAnchors:function(){var a,els,all=[],images=[],groups={},re;for(var i=0;i<grow.openerTagNames.length;i++){els=document.getElementsByTagName(grow.openerTagNames[i]);for(var j=0;j<els.length;j++){a=els[j];re=grow.isHsAnchor(a);if(re){grow.push(all,a);if(re[0]=='grow.expand')grow.push(images,a);var g=grow.getParam(a,'slideshowGroup')||'none';if(!groups[g])groups[g]=[];grow.push(groups[g],a)}}}grow.anchors={all:all,groups:groups,images:images};return grow.anchors},getAnchors:function(){return grow.anchors||grow.updateAnchors()},close:function(a){var b=grow.getExpander(a);if(b)b.close();return false},setAFunc:function(){var q;if(q=document.getElementById(conf.tableId)){if(conf.restoreCursor)var b=grow.createElement('img',{src:conf.graphicsDir+conf.restoreCursor});if(grow.outlineType)var c=grow.createElement('img',{src:conf.graphicsDir+'drop-shadow.png'});a=q.getElementsByTagName('A');for(var d in a){var s=a[d];if(s.href&&!/html$/.test(s.href)){a[d].className='growimg';a[d].target='_parent';a[d].onclick=function(){return grow.expand(this)}}}}}};grow.fx=function(a,b,c){this.options=b;this.elem=a;this.prop=c;if(!b.orig)b.orig={}};grow.fx.prototype={update:function(){(grow.fx.step[this.prop]||grow.fx.step._default)(this);if(this.options.step)this.options.step.call(this.elem,this.now,this)},custom:function(b,c,d){this.startTime=(new Date()).getTime();this.start=b;this.end=c;this.unit=d;this.now=this.start;this.pos=this.state=0;var e=this;function t(a){return e.step(a)}t.elem=this.elem;if(t()&&grow.timers.push(t)==1){grow.timerId=setInterval(function(){var a=grow.timers;for(var i=0;i<a.length;i++)if(!a[i]())a.splice(i--,1);if(!a.length){clearInterval(grow.timerId)}},13)}},step:function(a){var t=(new Date()).getTime();if(a||t>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var b=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)b=false;if(b){if(this.options.complete)this.options.complete.call(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=this.options.easing(n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};grow.extend(grow.fx,{step:{opacity:function(a){grow.setStyles(a.elem,{opacity:a.now})},_default:function(a){try{if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}catch(e){}}}});grow.Outline=function(a,b){this.onLoad=b;this.outlineType=a;var v=grow.uaVersion,tr;this.hasAlphaImageLoader=grow.ie&&v>=5.5&&v<7;if(!a){if(b)b();return}grow.init();this.table=grow.createElement('table',{cellSpacing:0},{visibility:'hidden',position:'absolute',borderCollapse:'collapse',width:0},grow.container,true);var c=grow.createElement('tbody',null,null,this.table,1);this.td=[];for(var i=0;i<=8;i++){if(i%3==0)tr=grow.createElement('tr',null,{height:'auto'},c,true);this.td[i]=grow.createElement('td',null,null,tr,true);var d=i!=4?{lineHeight:0,fontSize:0}:{position:'relative'};grow.setStyles(this.td[i],d)}this.td[4].className=a+' growimg-outline';this.preloadGraphic()};grow.Outline.prototype={preloadGraphic:function(){var a=conf.graphicsDir+this.outlineType+".png";var b=grow.safari?grow.container:null;this.graphic=grow.createElement('img',null,{position:'absolute',top:'-9999px'},b,true);var c=this;this.graphic.onload=function(){c.onGraphicLoad()};this.graphic.src=a},onGraphicLoad:function(){var o=this.offset=this.graphic.width/4,pos=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],dim={height:(2*o)+'px',width:(2*o)+'px'};for(var i=0;i<=8;i++){if(pos[i]){if(this.hasAlphaImageLoader){var w=(i==1||i==7)?'100%':this.graphic.width+'px';var a=grow.createElement('div',null,{width:'100%',height:'100%',position:'relative',overflow:'hidden'},this.td[i],true);grow.createElement('div',null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:'absolute',width:w,height:this.graphic.height+'px',left:(pos[i][0]*o)+'px',top:(pos[i][1]*o)+'px'},a,true)}else{grow.setStyles(this.td[i],{background:'url('+this.graphic.src+') '+(pos[i][0]*o)+'px '+(pos[i][1]*o)+'px'})}if(window.opera&&(i==3||i==5))grow.createElement('div',null,dim,this.td[i],true);grow.setStyles(this.td[i],dim)}}this.graphic=null;if(grow.pendingOutlines[this.outlineType])grow.pendingOutlines[this.outlineType].destroy();grow.pendingOutlines[this.outlineType]=this;if(this.onLoad)this.onLoad()},setPosition:function(a,b,c,d,e){var f=this.exp,stl=f.wrapper.style,b=b||0,a=a||{x:f.x.pos+b,y:f.y.pos+b,w:f.x.get('wsize')-2*b,h:f.y.get('wsize')-2*b};if(c)this.table.style.visibility=(a.h>=4*this.offset)?'visible':'hidden';grow.setStyles(this.table,{left:(a.x-this.offset)+'px',top:(a.y-this.offset)+'px',width:(a.w+2*this.offset)+'px'});a.w-=2*this.offset;a.h-=2*this.offset;grow.setStyles(this.td[4],{width:a.w>=0?a.w+'px':0,height:a.h>=0?a.h+'px':0});if(this.hasAlphaImageLoader)this.td[3].style.height=this.td[5].style.height=this.td[4].style.height},destroy:function(a){if(a)this.table.style.visibility='hidden';else grow.discardElement(this.table)}};grow.Dimension=function(a,b){this.exp=a;this.dim=b;this.ucwh=b=='x'?'Width':'Height';this.wh=this.ucwh.toLowerCase();this.uclt=b=='x'?'Left':'Top';this.lt=this.uclt.toLowerCase();this.ucrb=b=='x'?'Right':'Bottom';this.rb=this.ucrb.toLowerCase();this.p1=this.p2=0};grow.Dimension.prototype={get:function(a){switch(a){case'loadingPos':return this.tpos+this.tb+(this.t-grow.loading['offset'+this.ucwh])/2;case'wsize':return this.size+2*this.cb+this.p1+this.p2;case'fitsize':return this.clientSize-this.marginMin-this.marginMax;case'maxsize':return this.get('fitsize')-2*this.cb-this.p1-this.p2;case'opos':return this.pos-(this.exp.outline?this.exp.outline.offset:0);case'osize':return this.get('wsize')+(this.exp.outline?2*this.exp.outline.offset:0);case'imgPad':return this.imgSize?Math.round((this.size-this.imgSize)/2):0}},calcBorders:function(){this.cb=(this.exp.content['offset'+this.ucwh]-this.t)/2;this.marginMax=grow['margin'+this.ucrb]},calcThumb:function(){this.t=this.exp.el[this.wh]?parseInt(this.exp.el[this.wh]):this.exp.el['offset'+this.ucwh];this.tpos=this.exp.tpos[this.dim];this.tb=(this.exp.el['offset'+this.ucwh]-this.t)/2;if(this.tpos==0||this.tpos==-1){this.tpos=(grow.page[this.wh]/2)+grow.page['scroll'+this.uclt]}},calcExpanded:function(){var a=this.exp;this.justify='auto';this.pos=this.tpos-this.cb+this.tb;if(this.maxHeight&&this.dim=='x')a.maxWidth=Math.min(a.maxWidth||this.full,a.maxHeight*this.full/a.y.full);this.size=Math.min(this.full,a['max'+this.ucwh]||this.full);this.minSize=a.allowSizeReduction?Math.min(a['min'+this.ucwh],this.full):this.full;if(a.isImage&&a.useBox){this.size=a[this.wh];this.imgSize=this.full}if(this.dim=='x'&&grow.padToMinWidth)this.minSize=a.minWidth;this.marginMin=grow['margin'+this.uclt];this.scroll=grow.page['scroll'+this.uclt];this.clientSize=grow.page[this.wh]},setSize:function(i){var a=this.exp;if(a.isImage&&(a.useBox||grow.padToMinWidth)){this.imgSize=i;this.size=Math.max(this.size,this.imgSize);a.content.style[this.lt]=this.get('imgPad')+'px'}else this.size=i;a.content.style[this.wh]=i+'px';a.wrapper.style[this.wh]=this.get('wsize')+'px';if(a.outline)a.outline.setPosition();if(this.dim=='x'&&a.overlayBox)a.sizeOverlayBox(true)},setPos:function(i){this.pos=i;this.exp.wrapper.style[this.lt]=i+'px';if(this.exp.outline)this.exp.outline.setPosition()}};grow.Expander=function(a,b,c,d){if(document.readyState&&grow.ie&&!grow.isReady){grow.addEventListener(document,'ready',function(){new grow.Expander(a,b,c,d)});return}this.a=a;this.custom=c;this.contentType=d||'image';this.isImage=!this.isHtml;grow.continuePreloading=false;this.overlays=[];grow.init();var e=this.key=grow.expanders.length;for(var i=0;i<grow.overrides.length;i++){var f=grow.overrides[i];this[f]=b&&typeof b[f]!='undefined'?b[f]:grow[f]}if(!this.src)this.src=a.href;var g=(b&&b.thumbnailId)?grow.$(b.thumbnailId):a;g=this.thumb=g.getElementsByTagName('img')[0]||g;this.thumbsUserSetId=g.id||a.id;for(var i=0;i<grow.expanders.length;i++){if(grow.expanders[i]&&grow.expanders[i].a==a){grow.expanders[i].focus();return false}}if(!grow.allowSimultaneousLoading)for(var i=0;i<grow.expanders.length;i++){if(grow.expanders[i]&&grow.expanders[i].thumb!=g&&!grow.expanders[i].onLoadStarted){grow.expanders[i].cancelLoading()}}grow.expanders[e]=this;if(!grow.allowMultipleInstances&&!grow.upcoming){if(grow.expanders[e-1])grow.expanders[e-1].close();if(typeof grow.focusKey!='undefined'&&grow.expanders[grow.focusKey])grow.expanders[grow.focusKey].close()}this.el=g;this.tpos=grow.getPosition(g);grow.getPageSize();var x=this.x=new grow.Dimension(this,'x');x.calcThumb();var y=this.y=new grow.Dimension(this,'y');y.calcThumb();this.wrapper=grow.createElement('div',{id:'growimg-wrapper-'+this.key,className:'growimg-wrapper '+this.wrapperClassName},{visibility:'hidden',position:'absolute',zIndex:grow.zIndexCounter+=2},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=grow.wrapperMouseHandler;if(this.contentType=='image'&&this.outlineWhileAnimating==2)this.outlineWhileAnimating=0;if(!this.outlineType){this[this.contentType+'Create']()}else if(grow.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+'Create']()}else{this.showLoading();var h=this;new grow.Outline(this.outlineType,function(){h.connectOutline();h[h.contentType+'Create']()})}return true};grow.Expander.prototype={error:function(e){window.location.href=this.src},connectOutline:function(){var a=this.outline=grow.pendingOutlines[this.outlineType];a.exp=this;a.table.style.zIndex=this.wrapper.style.zIndex-1;grow.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading)return;this.loading=grow.loading;var a=this;this.loading.onclick=function(){a.cancelLoading()};var a=this,l=this.x.get('loadingPos')+'px',t=this.y.get('loadingPos')+'px';setTimeout(function(){if(a.loading)grow.setStyles(a.loading,{left:l,top:t,zIndex:grow.zIndexCounter++})},100)},imageCreate:function(){var a=this;var b=document.createElement('img');this.content=b;b.onload=function(){if(grow.expanders[a.key])a.contentLoaded()};if(grow.blockRightClick)b.oncontextmenu=function(){return false};b.className='growimg-image';grow.setStyles(b,{visibility:'hidden',display:'block',position:'absolute',maxWidth:'9999px',zIndex:3});b.title=grow.lang.restoreTitle;if(grow.safari)grow.container.appendChild(b);if(grow.ie&&grow.flushImgSize)b.src=null;b.src=this.src;this.showLoading()},contentLoaded:function(){try{if(!this.content)return;this.content.onload=null;if(this.onLoadStarted)return;else this.onLoadStarted=true;var x=this.x,y=this.y;if(this.loading){grow.setStyles(this.loading,{top:'-9999px'});this.loading=null}x.full=this.content.width;y.full=this.content.height;grow.setStyles(this.content,{width:x.t+'px',height:y.t+'px'});this.wrapper.appendChild(this.content);grow.container.appendChild(this.wrapper);x.calcBorders();y.calcBorders();grow.setStyles(this.wrapper,{left:(x.tpos+x.tb-x.cb)+'px',top:(y.tpos+x.tb-y.cb)+'px'});this.getOverlays();var a=x.full/y.full;x.calcExpanded();this.justify(x);y.calcExpanded();this.justify(y);if(this.overlayBox)this.sizeOverlayBox(0,1);if(this.allowSizeReduction){this.correctRatio(a);if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();if(this.overlays.length==1)this.sizeOverlayBox()}}this.show()}catch(e){this.error(e)}},justify:function(p,a){var b,tgt=p.target,dim=p==this.x?'x':'y';var c=false;var d=p.exp.allowSizeReduction;p.pos=Math.round(p.pos-((p.get('wsize')-p.t)/2));if(p.pos<p.scroll+p.marginMin){p.pos=p.scroll+p.marginMin;c=true}if(!a&&p.size<p.minSize){p.size=p.minSize;d=false}if(p.pos+p.get('wsize')>p.scroll+p.clientSize-p.marginMax){if(!a&&c&&d){p.size=Math.min(p.size,p.get(dim=='y'?'fitsize':'maxsize'))}else if(p.get('wsize')<p.get('fitsize')){p.pos=p.scroll+p.clientSize-p.marginMax-p.get('wsize')}else{p.pos=p.scroll+p.marginMin;if(!a&&d)p.size=p.get(dim=='y'?'fitsize':'maxsize')}}if(!a&&p.size<p.minSize){p.size=p.minSize;d=false}if(p.pos<p.marginMin){var e=p.pos;p.pos=p.marginMin;if(d&&!a)p.size=p.size-(p.pos-e)}},correctRatio:function(a){var x=this.x,y=this.y,changed=false,xSize=Math.min(x.full,x.size),ySize=Math.min(y.full,y.size),useBox=(this.useBox||grow.padToMinWidth);if(xSize/ySize>a){xSize=ySize*a;if(xSize<x.minSize){xSize=x.minSize;ySize=xSize/a}changed=true}else if(xSize/ySize<a){ySize=xSize/a;changed=true}if(grow.padToMinWidth&&x.full<x.minSize){x.imgSize=x.full;y.size=y.imgSize=y.full}else if(this.useBox){x.imgSize=xSize;y.imgSize=ySize}else{x.size=xSize;y.size=ySize}changed=this.fitOverlayBox(useBox?null:a,changed);if(useBox&&y.size<y.imgSize){y.imgSize=y.size;x.imgSize=y.size*a}if(changed||useBox){x.pos=x.tpos-x.cb+x.tb;x.minSize=x.size;this.justify(x,true);y.pos=y.tpos-y.cb+y.tb;y.minSize=y.size;this.justify(y,true);if(this.overlayBox)this.sizeOverlayBox()}},fitOverlayBox:function(a,b){var x=this.x,y=this.y;if(this.overlayBox){while(y.size>this.minHeight&&x.size>this.minWidth&&y.get('wsize')>y.get('fitsize')){y.size-=10;if(a)x.size=y.size*a;this.sizeOverlayBox(0,1);b=true}}return b},show:function(){var x=this.x,y=this.y;this.doShowHide('hidden');this.changeSize(1,{wrapper:{width:x.get('wsize'),height:y.get('wsize'),left:x.pos,top:y.pos},content:{left:x.p1+x.get('imgPad'),top:y.p1+y.get('imgPad'),width:x.imgSize||x.size,height:y.imgSize||y.size}},conf.expandDuration)},changeSize:function(e,f,g){if(this.outline&&!this.outlineWhileAnimating){if(e)this.outline.setPosition();else this.outline.destroy()}if(!e)this.destroyOverlays();var h=this,x=h.x,y=h.y,easing=this.easing;if(!e)easing=this.easingClose||easing;var i=e?function(){if(h.outline)h.outline.table.style.visibility="visible";setTimeout(function(){h.afterExpand()},50)}:function(){h.afterClose()};if(e)grow.setStyles(this.wrapper,{width:x.t+'px',height:y.t+'px'});if(this.fadeInOut){grow.setStyles(this.wrapper,{opacity:e?0:1});grow.extend(f.wrapper,{opacity:e})}grow.animate(this.wrapper,f.wrapper,{duration:g,easing:easing,step:function(a,b){if(h.outline&&h.outlineWhileAnimating&&b.prop=='top'){var c=e?b.pos:1-b.pos;var d={w:x.t+(x.get('wsize')-x.t)*c,h:y.t+(y.get('wsize')-y.t)*c,x:x.tpos+(x.pos-x.tpos)*c,y:y.tpos+(y.pos-y.tpos)*c};h.outline.setPosition(d,0,1)}}});grow.animate(this.content,f.content,g,easing,i);if(e){this.wrapper.style.visibility='visible';this.content.style.visibility='visible';this.a.className+=' growimg-active-anchor'}},afterExpand:function(){this.isExpanded=true;this.focus();if(grow.upcoming&&grow.upcoming==this.a)grow.upcoming=null;this.prepareNextOutline();var p=grow.page,mX=grow.mouse.x+p.scrollLeft,mY=grow.mouse.y+p.scrollTop;this.mouseIsOver=this.x.pos<mX&&mX<this.x.pos+this.x.get('wsize')&&this.y.pos<mY&&mY<this.y.pos+this.y.get('wsize');if(this.overlayBox)this.showOverlays()},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new grow.Outline(b,function(){try{grow.expanders[a].preloadNext()}catch(e){}})},preloadNext:function(){var a=this.getAdjacentAnchor(1);if(a&&a.onclick.toString().match(/grow\.expand/))var b=grow.createElement('img',{src:grow.getSrc(a)})},getAdjacentAnchor:function(a){var b=this.getAnchorIndex(),as=hs.anchors.groups[this.slideshowGroup||'none'];return(as&&as[b+a])||null},getAnchorIndex:function(){var a=grow.getAnchors().groups[this.slideshowGroup||'none'];if(a)for(var i=0;i<a.length;i++){if(a[i]==this.a)return i}return null},cancelLoading:function(){grow.discardElement(this.wrapper);grow.expanders[this.key]=null;if(this.loading)grow.loading.style.left='-9999px'},getInline:function(a,b){for(var i=0;i<a.length;i++){var c=a[i],s=null;if(!this[c+'Id']&&this.thumbsUserSetId)this[c+'Id']=c+'-for-'+this.thumbsUserSetId;if(this[c+'Id'])this[c]=grow.getNode(this[c+'Id']);if(!this[c]&&!this[c+'Text']&&this[c+'Eval'])try{s=eval(this[c+'Eval'])}catch(e){}if(!this[c]&&this[c+'Text']){s=this[c+'Text']}if(!this[c]&&!s){this[c]=grow.getNode(this.a['_'+c+'Id']);if(!this[c]){var d=this.a.nextSibling;while(d&&!grow.isHsAnchor(d)){if((new RegExp('growimg-'+c)).test(d.className||null)){if(!d.id)this.a['_'+c+'Id']=d.id='hsId'+grow.idCounter++;this[c]=grow.getNode(d.id);break}d=d.nextSibling}}}if(!this[c]&&s)this[c]=grow.createElement('div',{className:'growimg-'+c,innerHTML:s});if(b&&this[c]){var o={position:(c=='heading')?'above':'below'};for(var x in this[c+'Overlay'])o[x]=this[c+'Overlay'][x];o.overlayId=this[c];this.createOverlay(o)}}},doShowHide:function(a){if(grow.hideSelects)this.showHideElements('SELECT',a);if(grow.hideIframes)this.showHideElements('IFRAME',a);if(grow.geckoMac)this.showHideElements('*',a)},showHideElements:function(a,b){var c=document.getElementsByTagName(a);var d=a=='*'?'overflow':'visibility';for(var i=0;i<c.length;i++){if(d=='visibility'||(document.defaultView.getComputedStyle(c[i],"").getPropertyValue('overflow')=='auto'||c[i].getAttribute('hidden-by')!=null)){var e=c[i].getAttribute('hidden-by');if(b=='visible'&&e){e=e.replace('['+this.key+']','');c[i].setAttribute('hidden-by',e);if(!e)c[i].style[d]=c[i].origProp}else if(b=='hidden'){var f=grow.getPosition(c[i]);f.w=c[i].offsetWidth;f.h=c[i].offsetHeight;var g=(f.x+f.w<this.x.get('opos')||f.x>this.x.get('opos')+this.x.get('osize'));var h=(f.y+f.h<this.y.get('opos')||f.y>this.y.get('opos')+this.y.get('osize'));var j=grow.getWrapperKey(c[i]);if(!g&&!h&&j!=this.key){if(!e){c[i].setAttribute('hidden-by','['+this.key+']');c[i].origProp=c[i].style[d];c[i].style[d]='hidden'}else if(e.indexOf('['+this.key+']')==-1){c[i].setAttribute('hidden-by',e+'['+this.key+']')}}else if((e=='['+this.key+']'||grow.focusKey==j)&&j!=this.key){c[i].setAttribute('hidden-by','');c[i].style[d]=c[i].origProp||''}else if(e&&e.indexOf('['+this.key+']')>-1){c[i].setAttribute('hidden-by',e.replace('['+this.key+']',''))}}}}},focus:function(){this.wrapper.style.zIndex=grow.zIndexCounter+=2;for(var i=0;i<grow.expanders.length;i++){if(grow.expanders[i]&&i==grow.focusKey){var a=grow.expanders[i];a.content.className+=' growimg-'+a.contentType+'-blur';a.content.style.cursor=grow.ie?'hand':'pointer';a.content.title=grow.lang.focusTitle}}if(this.outline)this.outline.table.style.zIndex=this.wrapper.style.zIndex-1;this.content.className='growimg-'+this.contentType;this.content.title=grow.lang.restoreTitle;if(conf.restoreCursor){grow.styleRestoreCursor=window.opera?'pointer':'url('+conf.graphicsDir+conf.restoreCursor+'), pointer';if(grow.ie&&grow.uaVersion<6)grow.styleRestoreCursor='hand';this.content.style.cursor=grow.styleRestoreCursor}grow.focusKey=this.key},moveTo:function(x,y){this.x.setPos(x);this.y.setPos(y)},resize:function(e){var w,h,r=e.width/e.height;w=Math.max(e.width+e.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(w-this.x.full)<12)w=this.x.full;h=w/r;if(h<Math.min(this.minHeight,this.y.full)){h=Math.min(this.minHeight,this.y.full);if(this.isImage)w=h*r}this.resizeTo(w,h)},resizeTo:function(w,h){this.y.setSize(h);this.x.setSize(w);this.wrapper.style.height=this.y.get('wsize')+'px'},close:function(){if(this.isClosing||!this.isExpanded)return;this.isClosing=true;grow.removeEventListener(document,window.opera?'keypress':'keydown',grow.keyHandler);try{this.content.style.cursor='default';this.changeSize(0,{wrapper:{width:this.x.t,height:this.y.t,left:this.x.tpos-this.x.cb+this.x.tb,top:this.y.tpos-this.y.cb+this.y.tb},content:{left:0,top:0,width:this.x.t,height:this.y.t}},conf.restoreDuration)}catch(e){this.afterClose()}},createOverlay:function(o){var a=o.overlayId;if(typeof a=='string')a=grow.getNode(a);if(o.html)a=grow.createElement('div',{innerHTML:o.html});if(!a||typeof a=='string')return;a.style.display='block';this.genOverlayBox();var b=o.width&&/^[0-9]+(px|%)$/.test(o.width)?o.width:'auto';if(/^(left|right)panel$/.test(o.position)&&!/^[0-9]+px$/.test(o.width))b='200px';var c=grow.createElement('div',{id:'hsId'+grow.idCounter++,hsId:o.hsId},{position:'absolute',visibility:'hidden',width:b,direction:'ltr',opacity:0},this.overlayBox,true);c.appendChild(a);grow.extend(c,{opacity:1,offsetX:0,offsetY:0,dur:(o.fade===0||o.fade===false||(o.fade==2&&grow.ie))?0:250});grow.extend(c,o);if(this.gotOverlays){this.positionOverlay(c);if(!c.hideOnMouseOut||this.mouseIsOver)grow.animate(c,{opacity:c.opacity},c.dur)}grow.push(this.overlays,grow.idCounter-1)},positionOverlay:function(a){var p=a.position||'middle center',offX=a.offsetX,offY=a.offsetY;if(a.parentNode!=this.overlayBox)this.overlayBox.appendChild(a);if(/left$/.test(p))a.style.left=offX+'px';if(/center$/.test(p))grow.setStyles(a,{left:'50%',marginLeft:(offX-Math.round(a.offsetWidth/2))+'px'});if(/right$/.test(p))a.style.right=-offX+'px';if(/^leftpanel$/.test(p)){grow.setStyles(a,{right:'100%',marginRight:this.x.cb+'px',top:-this.y.cb+'px',bottom:-this.y.cb+'px',overflow:'auto'});this.x.p1=a.offsetWidth}else if(/^rightpanel$/.test(p)){grow.setStyles(a,{left:'100%',marginLeft:this.x.cb+'px',top:-this.y.cb+'px',bottom:-this.y.cb+'px',overflow:'auto'});this.x.p2=a.offsetWidth}if(/^top/.test(p))a.style.top=offY+'px';if(/^middle/.test(p))grow.setStyles(a,{top:'50%',marginTop:(offY-Math.round(a.offsetHeight/2))+'px'});if(/^bottom/.test(p))a.style.bottom=-offY+'px';if(/^above$/.test(p)){grow.setStyles(a,{left:(-this.x.p1-this.x.cb)+'px',right:(-this.x.p2-this.x.cb)+'px',bottom:'100%',marginBottom:this.y.cb+'px',width:'auto'});this.y.p1=a.offsetHeight}else if(/^below$/.test(p)){grow.setStyles(a,{position:'relative',left:(-this.x.p1-this.x.cb)+'px',right:(-this.x.p2-this.x.cb)+'px',top:'100%',marginTop:this.y.cb+'px',width:'auto'});this.y.p2=a.offsetHeight;a.style.position='absolute'}},getOverlays:function(){this.getInline(['heading','caption'],true);if(this.heading&&this.dragByHeading)this.heading.className+=' growimg-move';for(var i=0;i<grow.overlays.length;i++){var o=grow.overlays[i],tId=o.thumbnailId,sg=o.slideshowGroup;if((!tId&&!sg)||(tId&&tId==this.thumbsUserSetId)||(sg&&sg===this.slideshowGroup)){this.createOverlay(o)}}var a=[];for(var i=0;i<this.overlays.length;i++){var o=grow.$('hsId'+this.overlays[i]);if(/panel$/.test(o.position))this.positionOverlay(o);else grow.push(a,o)}for(var i=0;i<a.length;i++)this.positionOverlay(a[i]);this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox)this.overlayBox=grow.createElement('div',{className:this.wrapperClassName},{position:'absolute',width:(this.x.size||(this.useBox?this.width:null)||this.x.full)+'px',height:(this.y.size||this.y.full)+'px',visibility:'hidden',overflow:'hidden',zIndex:grow.ie?4:'auto'},grow.container,true)},sizeOverlayBox:function(a,b){var c=this.overlayBox,x=this.x,y=this.y;grow.setStyles(c,{width:x.size+'px',height:y.size+'px'});if(a||b){for(var i=0;i<this.overlays.length;i++){var o=grow.$('hsId'+this.overlays[i]);var d=(grow.ieLt7||document.compatMode=='BackCompat');if(o&&/^(above|below)$/.test(o.position)){if(d){o.style.width=(c.offsetWidth+2*x.cb+x.p1+x.p2)+'px'}y[o.position=='above'?'p1':'p2']=o.offsetHeight}if(o&&d&&/^(left|right)panel$/.test(o.position)){o.style.height=(c.offsetHeight+2*y.cb)+'px'}}}if(a){grow.setStyles(this.content,{top:y.p1+'px'});grow.setStyles(c,{top:(y.p1+y.cb)+'px'})}},showOverlays:function(){var b=this.overlayBox;b.className='';grow.setStyles(b,{top:(this.y.p1+this.y.cb)+'px',left:(this.x.p1+this.x.cb)+'px',overflow:'visible'});if(grow.safari)b.style.visibility='visible';this.wrapper.appendChild(b);for(var i=0;i<this.overlays.length;i++){var o=grow.$('hsId'+this.overlays[i]);o.style.zIndex=4;if(!o.hideOnMouseOut||this.mouseIsOver){o.style.visibility='visible';grow.setStyles(o,{visibility:'visible',display:''});grow.animate(o,{opacity:o.opacity},o.dur)}}},destroyOverlays:function(){if(!this.overlays.length)return;grow.discardElement(this.overlayBox)},createFullExpand:function(){this.fullExpandLabel=grow.createElement('a',{href:'javascript:grow.expanders['+this.key+'].doFullExpand();',title:grow.lang.fullExpandTitle,className:'growimg-full-expand'});this.createOverlay({overlayId:this.fullExpandLabel,position:grow.fullExpandPosition,hideOnMouseOut:true,opacity:grow.fullExpandOpacity})},doFullExpand:function(){try{if(this.fullExpandLabel)grow.discardElement(this.fullExpandLabel);this.focus();var a=this.x.size;this.resizeTo(this.x.full,this.y.full);var b=this.x.pos-(this.x.size-a)/2;if(b<grow.marginLeft)b=grow.marginLeft;this.moveTo(b,this.y.pos);this.doShowHide('hidden')}catch(e){this.error(e)}},afterClose:function(){this.a.className=this.a.className.replace('growimg-active-anchor','');this.doShowHide('visible');if(this.outline&&this.outlineWhileAnimating)this.outline.destroy();grow.discardElement(this.wrapper);grow.expanders[this.key]=null;grow.reOrder()}};grow.langDefaults=grow.lang;var HsExpander=grow.Expander;if(grow.ie){(function(){try{document.documentElement.doScroll('left')}catch(e){setTimeout(arguments.callee,50);return}grow.ready()})()}grow.addEventListener(document,'DOMContentLoaded',grow.ready);grow.addEventListener(window,'load',grow.ready);grow.addEventListener(document,'ready',function(){if(conf.expandCursor){var d=grow.createElement('style',{type:'text/css'},null,document.getElementsByTagName('HEAD')[0]);function addRule(a,b){if(!grow.ie){d.appendChild(document.createTextNode(a+" {"+b+"}"))}else{var c=document.styleSheets[document.styleSheets.length-1];if(typeof(c.addRule)=="object")c.addRule(a,b)}}function fix(a){return'expression( ( ( ignoreMe = document.documentElement.'+a+' ? document.documentElement.'+a+' : document.body.'+a+' ) ) + \'px\' );'}if(conf.expandCursor)addRule('.growimg img','cursor: url('+conf.graphicsDir+conf.expandCursor+'), pointer !important;');addRule('a.growimg-full-expand','background: url('+conf.graphicsDir+'fullexpand.gif) no-repeat; display: block; margin: 0 10px 10px 0; width: 34px; height: 34px;');addRule('.closebutton','position: relative; top: -15px; left: 15px; width: 30px; height: 30px; cursor: pointer; background: url('+conf.graphicsDir+'close.png);');addRule('.growimg-loading','display: block; color: White; width: 88px; height: 20px; border: 1px solid white; background-color: white; background-image: url('+conf.graphicsDir+'loader.gif); background-repeat: no-repeat; background-position: 2px 4px;');addRule('.growimg-container div','font-family: Verdana, Helvetica; font-size: 10pt;');addRule('.growimg-container table','background: none;');addRule('.growimg','outline: none; text-decoration: none;');addRule('.growimg img','border: 1px solid silver;');addRule('.growimg:hover img','border-color: gray;');addRule('.growimg-active-anchor img','visibility: hidden;');addRule('.growimg-gallery .growimg-active-anchor img','border-color: black; visibility: visible; cursor: default;');addRule('.growimg-image','border-width: 2px; border-style: solid; border-color: white; background: gray;');addRule('.growimg-wrapper','.growimg-outline','background: white;');addRule('.glossy-dark','background: #111;');addRule('.growimg-number','font-weight: bold; color: gray; font-size: .9em;');addRule('.growimg-caption','display: none; font-size: 1em; padding: 5px;');addRule('.growimg-heading','display: none; font-weight: bold; margin: 0.4em;');addRule('.growimg-dimming','position: absolute; background: black;');addRule('.growimg-move','cursor: move;');addRule('.growimg-viewport','display: none; position: fixed; width: 100%; height: 100%; z-index: 1; background: none; left: 0; top: 0;');addRule('.growimg-overlay','display: none;');addRule('.hidden-container','display: none;')}});grow.addEventListener(window,'resize',function(){grow.getPageSize()});grow.addEventListener(document,'mousemove',function(e){grow.mouse={x:e.clientX,y:e.clientY}});grow.addEventListener(document,'mousedown',grow.mouseClickHandler);grow.addEventListener(document,'mouseup',grow.mouseClickHandler);grow.addEventListener(document,'ready',grow.getAnchors);grow.addEventListener(window,'load',grow.setAFunc)}
