var slider_id='',slider_time=0,slider_left=new Array(),slider_plus=0,slider_limit=0;

var stxt='';

function slider(id,pos,lim)
{
	if (slider_time==0)
	{
		slider_id=id;

		if (typeof(slider_left[slider_id])=='undefined') {slider_left[slider_id]=0;}

		if ((pos>0 && slider_left[slider_id]<lim) || (pos<0 && slider_left[slider_id]>lim))
		{
			slider_plus=pos;

			slider_limit=lim;
		
			slider_move();
		}
	}
}

function slider_move()
{
	if (slider_time==0)
	{
		var rtime=new Date();

		slider_time=rtime.getTime();
	}

	var rtime=new Date();

	var r=Math.round(Math.sin((rtime.getTime()-slider_time)/1000)*slider_plus);

	if ((slider_plus>0 && r>=slider_plus) || (slider_plus<0 && r<=slider_plus))
	{
		slider_left[slider_id]+=slider_plus;

		slider_time=0;

		r=slider_left[slider_id];

		if (slider_left[slider_id]==0)
		{
			document.getElementById(slider_id+'left').className='sliderleftoff';
		}
		else
		{
			document.getElementById(slider_id+'left').className='sliderlefton';
		}

		if (slider_left[slider_id]<=-1050)
		{
			document.getElementById(slider_id+'right').className='sliderrightoff';
		}
		else
		{
			document.getElementById(slider_id+'right').className='sliderrighton';
		}
	}
	else
	{
		setTimeout("slider_move()",20);

		r+=slider_left[slider_id];
	}

	document.getElementById(slider_id).style.left=r+"px";
}

function send_xmlhttprequest(state_change,method,url,content,headers)
{
	var xmlhttp=(window.XMLHttpRequest ? new XMLHttpRequest() : (window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false));

	if (!xmlhttp)
	{
		return false;
	}

	xmlhttp.open(method,url);

	xmlhttp.onreadystatechange=function ()
	{
		state_change(xmlhttp);
	};

	if (headers)
	{
		for (var key in headers)
		{
			xmlhttp.setRequestHeader(key,headers[key]);
		}
	}

	xmlhttp.send(content);

	return true;
}

var autocompleter_id=0;

var autocompleter_value='';

function autocompleter(value,event)
{
	kc=event.keyCode;

	if (value=='')
	{
		autocompleter_id=0;

		autocompleter_value='';

		document.getElementById('autocompleter').innerHTML='';
	}
	else
	{
		if (kc==40 || kc==38)
		{
			for(i=1;i<=10;i++) {if (document.getElementById('ac'+i)) {document.getElementById('ac'+i).style.backgroundColor="";var id_max=i;}}

			if (kc==38)
			{
				autocompleter_id--;

				if (autocompleter_id<1) {autocompleter_id=id_max;}
			}

			if (kc==40)
			{
				autocompleter_id++;

				if (autocompleter_id>id_max) {autocompleter_id=1;}
			}
		
			if (document.getElementById('ac'+autocompleter_id)) {document.getElementById('ac'+autocompleter_id).style.backgroundColor="#B6E2FF";}
		}
		else
		{
			if (autocompleter_value!=value)
			{
				autocompleter_value=value;

				setTimeout(function ()
				{
					if (autocompleter_value!=value)
					{
						return false;
					}
					send_xmlhttprequest(function (xmlhttp)
					{
						if (xmlhttp.readyState==4 && xmlhttp.status==200 && autocompleter_value==value)
						{
							autocompleter_id=0;

							document.getElementById('autocompleter').innerHTML=xmlhttp.responseText;
						}
					},'GET','autocompleter.php?word='+encodeURIComponent(autocompleter_value));
				},500);
			}
		}
	}
}

function autocompleter_submit()
{
	if (autocompleter_id>0 && document.getElementById('ah'+autocompleter_id))
	{
		location.href=document.getElementById('ah'+autocompleter_id).href;

		return false;
	}
}

function treeview(mainid,id)
{
	im=document.getElementById('tree'+mainid+id+'i');

	if (im.src.indexOf("txm.gif")==-1)
	{
		im.src='images/txm.gif';

		if (document.getElementById('tree'+mainid+id+'p').innerHTML=='')
		{
			send_xmlhttprequest(function (xmlhttp)
			{
				if (xmlhttp.readyState==4 && xmlhttp.status==200)
				{
					var response=eval('('+xmlhttp.responseText+')');

					if (response.data.length>0)
					{
						mainid=response.mainid;

						var str='';

						for(i=0;i<response.data.length;i++)
						{
							id=response.data[i].id;

							str+='<div id="tree'+mainid+id+'" class="treediv">';

							if (response.data[i].items>0)
							{
								str+='<img id="tree'+mainid+id+'i" src="images/txp.gif" onclick="treeview('+mainid+','+id+')" alt="" />';
							}
							else
							{
								str+='<img src="images/tx.gif" alt="" />';
							}

							str+='<a href="'+response.data[i].rewriter+'">'+response.data[i].name+'</a>';

							str+='</div>';

							str+='<div id="tree'+mainid+id+'p" class="hid treediv"></div>';
						}

						document.getElementById('tree'+mainid+response.id+'p').innerHTML=str;
					}
				}
			},'GET','conf/treeview/treeview.php?mainid='+mainid+'&id='+id);
		}

		document.getElementById('tree'+mainid+id+'p').style.display="block";
	}
	else
	{
		im.src='images/txp.gif';

		document.getElementById('tree'+mainid+id+'p').style.display="none";
	}
}

function generate_alias(str)
{
	vs_sada1="ì¹èø¾ýáíéúù»òïóë¶¼³±º¿µàâãæçêëîñôõûþÌ©ÈØ®ÝÁÍÉÚÙ«ÒÏÓË¦¬£¡ª¯¥ÀÂÃÅÆÇÊÎÐÑÔÕÛÞ";
	vy_sada1="escrzyaieuutndoeszlaszlraacceeinooutESCRZYAIEUUTNDOESZLASZLRAALCCEIDNOOUT";
	vs_sada2="ßöäüÖÄÜ";
	vy_sada2="ssoeaeueOEAEUE";

	var new_str="";
	for(i=0;i<str.length;i++)
	{
		is2char=false;
		if (i<str.length)
		{
			for(j=0;j<vy_sada2.length;j++)
			{
				if(str.substr(i,1)==vs_sada2.substr(j,1))
				{
					new_str+=vy_sada2.substr(j*2,2);
					i++;
					is2char=true;
				}
			}
		}

		if(!is2char)
		{
			var c=str.substr(i,1);
			var pos=vs_sada1.indexOf(c);
			if (pos<0) 
			{
				new_str+=c;
			}
			else
			{
				new_str+=vy_sada1.substr(pos,1);
			}
		}
	}

	new_str=new_str.replace(/^ /g,"");
	new_str=new_str.replace(/ $/g,"");
	new_str=new_str.replace(/-+/g,"XXXXX");
	new_str=new_str.replace(/ +/g,"XXXXX");
	new_str=new_str.replace(/_+/g,"XXXXX");
	new_str=new_str.replace(/\W/g,"");
	new_str=new_str.replace(/XXXXX/g,"-");
	new_str=new_str.replace(/-+/g,"-");
	new_str=new_str.replace(/^-/g,"");
	new_str=new_str.replace(/-$/g,"");

	return new_str.toLowerCase();
}

if(!ix){var ix={lang:{cssDirection:'ltr',loadingText: 'Naèítá se...',loadingTitle: 'Kliknìte pro zru¹ení',focusTitle:'Kliknìte pro pøenesení do popøedí',fullExpandTitle: 'Zvìt¹it na pùvodní velikost',creditsText: '',creditsTitle: '',previousText: 'Pøedchozí',nextText: 'Dal¹í',moveText: 'Pøesunout',closeText: 'Zavøít',closeTitle: 'Zavøít (esc)',resizeTitle: 'Zmìnit velikost',playText: 'Pøehrát',playTitle: 'Pøehrát slideshow (mezerník)',pauseText: 'Pozastavit',pauseTitle: 'Pozastavit slideshow (mezerník)',previousTitle: 'Pøedchozí (¹ipka vlevo)',nextTitle: 'Dal¹í (¹ipka vpravo)',moveTitle: 'Pøesunout',fullExpandText: 'Plná velikost',number: 'Image %1 of %2',restoreTitle: 'Kliknìte pro zavøení obrázku, kliknìte a táhnìte pro jeho pøesunutí. Pou¾ijte ¹ipky na klávesnici pro pøesun na dal¹í a pøedchozí.'},graphicsDir:"conf/ix/",expandCursor:"zoomin.cur",restoreCursor:"zoomout.cur",expandDuration:250,restoreDuration:250,marginLeft:15,marginRight:15,marginTop:15,marginBottom:15,zIndexCounter:1001,loadingOpacity:0.75,allowMultipleInstances:false,numberOfImagesToPreload:5,outlineWhileAnimating:2,outlineStartOffset:3,padToMinWidth:false,fullExpandPosition:"bottom right",fullExpandOpacity:1,showCredits:true,creditsHref:"",creditsTarget:"_self",enableKeyListener:true,openerTagNames:["a"],transitions:[],transitionDuration:250,dimmingOpacity:0.2,dimmingDuration:100,anchor:"auto",align:"auto",targetX:null,targetY:null,dragByHeading:true,minWidth:200,minHeight:200,allowSizeReduction:true,outlineType:"drop-shadow",skin:{controls:'<div class="ix-controls"><ul><li class="ix-previous"><a href="#" title="{ix.lang.previousTitle}"><span>{ix.lang.previousText}</span></a></li><li class="ix-play"><a href="#" title="{ix.lang.playTitle}"><span>{ix.lang.playText}</span></a></li><li class="ix-pause"><a href="#" title="{ix.lang.pauseTitle}"><span>{ix.lang.pauseText}</span></a></li><li class="ix-next"><a href="#" title="{ix.lang.nextTitle}"><span>{ix.lang.nextText}</span></a></li><li class="ix-move"><a href="#" title="{ix.lang.moveTitle}"><span>{ix.lang.moveText}</span></a></li><li class="ix-full-expand"><a href="#" title="{ix.lang.fullExpandTitle}"><span>{ix.lang.fullExpandText}</span></a></li><li class="ix-close"><a href="#" title="{ix.lang.closeTitle}" ><span>{ix.lang.closeText}</span></a></li></ul></div>'},preloadTheseImages:[],continuePreloading:true,expanders:[],overrides:["allowSizeReduction","useBox","anchor","align","targetX","targetY","outlineType","outlineWhileAnimating","captionId","captionText","captionEval","captionOverlay","headingId","headingText","headingEval","headingOverlay","creditsPosition","dragByHeading","autoplay","numberPosition","transitions","dimmingOpacity","width","height","wrapperClassName","minWidth","minHeight","maxWidth","maxHeight","pageOrigin","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:[],slideshows:[],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),$:function(a){if(a){return document.getElementById(a)}},push:function(a,b){a[a.length]=b},createElement:function(a,f,e,d,c){var b=document.createElement(a);if(f){ix.extend(b,f)}if(c){ix.setStyles(b,{padding:0,border:"none",margin:0})}if(e){ix.setStyles(b,e)}if(d){d.appendChild(b)}return b},extend:function(b,c){for(var a in c){b[a]=c[a]}return b},setStyles:function(b,c){for(var a in c){if(ix.ieLt9&&a=="opacity"){if(c[a]>0.99){b.style.removeAttribute("filter")}else{b.style.filter="alpha(opacity="+(c[a]*100)+")"}}else{b.style[a]=c[a]}}},animate:function(f,a,d){var c,g,j;if(typeof d!="object"||d===null){var i=arguments;d={duration:i[2],easing:i[3],complete:i[4]}}if(typeof d.duration!="number"){d.duration=250}d.easing=Math[d.easing]||Math.easeInQuad;d.curAnim=ix.extend({},a);for(var b in a){var h=new ix.fx(f,d,b);c=parseFloat(ix.css(f,b))||0;g=parseFloat(a[b]);j=b!="opacity"?"px":"";h.custom(c,g,j)}},css:function(a,c){if(a.style[c]){return a.style[c]}else{if(document.defaultView){return document.defaultView.getComputedStyle(a,null).getPropertyValue(c)}else{if(c=="opacity"){c="filter"}var b=a.currentStyle[c.replace(/\-(\w)/g,function(e,d){return d.toUpperCase()})];if(c=="filter"){b=b.replace(/alpha\(opacity=([0-9]+)\)/,function(e,d){return d/100})}return b===""?1:b}}},getPageSize:function(){var f=document,b=window,e=f.compatMode&&f.compatMode!="BackCompat"?f.documentElement:f.body,g=ix.ie&&(ix.uaVersion<9||typeof pageXOffset=="undefined");var c=g?e.clientWidth:(f.documentElement.clientWidth||self.innerWidth),a=g?e.clientHeight:self.innerHeight;ix.page={width:c,height:a,scrollLeft:g?e.scrollLeft:pageXOffset,scrollTop:g?e.scrollTop:pageYOffset};return ix.page},getPosition:function(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a.offsetParent){a=a.offsetParent;b.x+=a.offsetLeft;b.y+=a.offsetTop;if(a!=document.body&&a!=document.documentElement){b.x-=a.scrollLeft;b.y-=a.scrollTop}}return b},expand:function(b,g,d,c){if(!b){b=ix.createElement("a",null,{display:"none"},ix.container)}if(typeof b.getParams=="function"){return g}try{new ix.Expander(b,g,d);return false}catch(f){return true}},getElementByClass:function(e,c,d){var b=e.getElementsByTagName(c);for(var a=0;a<b.length;a++){if((new RegExp(d)).test(b[a].className)){return b[a]}}return null},replaceLang:function(c){c=c.replace(/\s/g," ");var b=/{ix\.lang\.([^}]+)\}/g,d=c.match(b),e;if(d){for(var a=0;a<d.length;a++){e=d[a].replace(b,"$1");if(typeof ix.lang[e]!="undefined"){c=c.replace(d[a],ix.lang[e])}}}return c},focusTopmost:function(){var c=0,b=-1,a=ix.expanders,e,f;for(var d=0;d<a.length;d++){e=a[d];if(e){f=e.wrapper.style.zIndex;if(f&&f>c){c=f;b=d}}}if(b==-1){ix.focusKey=-1}else{a[b].focus()}},getParam:function(b,d){b.getParams=b.onclick;var c=b.getParams?b.getParams():null;b.getParams=null;return(c&&typeof c[d]!="undefined")?c[d]:(typeof ix[d]!="undefined"?ix[d]:null)},getSrc:function(b){var c=ix.getParam(b,"src");if(c){return c}return b.href},getNode:function(e){var c=ix.$(e),d=ix.clones[e],b={};if(!c&&!d){return null}if(!d){d=c.cloneNode(true);d.id="";ix.clones[e]=d;return c}else{return d.cloneNode(true)}},discardElement:function(a){if(a){ix.garbageBin.appendChild(a)}ix.garbageBin.innerHTML=""},dim:function(d){if(!ix.dimmer){a=true;ix.dimmer=ix.createElement("div",{className:"ix-dimming ix-viewport-size",owner:"",onclick:function(){ix.close()}},{visibility:"visible",opacity:0},ix.container,true);if(/(Android|iPad|iPhone|iPod)/.test(navigator.userAgent)){var b=document.body;function c(){ix.setStyles(ix.dimmer,{width:b.scrollWidth+"px",height:b.scrollHeight+"px"})}c();ix.addEventListener(window,"resize",c)}}ix.dimmer.style.display="";var a=ix.dimmer.owner=="";ix.dimmer.owner+="|"+d.key;if(a){if(ix.geckoMac&&ix.dimmingGeckoFix){ix.setStyles(ix.dimmer,{background:"url("+ix.graphicsDir+"geckodimmer.png)",opacity:1})}else{ix.animate(ix.dimmer,{opacity:d.dimmingOpacity},ix.dimmingDuration)}}},undim:function(a){if(!ix.dimmer){return}if(typeof a!="undefined"){ix.dimmer.owner=ix.dimmer.owner.replace("|"+a,"")}if((typeof a!="undefined"&&ix.dimmer.owner!="")||(ix.upcoming&&ix.getParam(ix.upcoming,"dimmingOpacity"))){return}if(ix.geckoMac&&ix.dimmingGeckoFix){ix.dimmer.style.display="none"}else{ix.animate(ix.dimmer,{opacity:0},ix.dimmingDuration,null,function(){ix.dimmer.style.display="none"})}},transit:function(a,d){var b=d||ix.getExpander();d=b;if(ix.upcoming){return false}else{ix.last=b}ix.removeEventListener(document,window.opera?"keypress":"keydown",ix.keyHandler);try{ix.upcoming=a;a.onclick()}catch(c){ix.last=ix.upcoming=null}try{if(!a||d.transitions[1]!="crossfade"){d.close()}}catch(c){}return false},previousOrNext:function(a,c){var b=ix.getExpander(a);if(b){return ix.transit(b.getAdjacentAnchor(c),b)}else{return false}},previous:function(a){return ix.previousOrNext(a,-1)},next:function(a){return ix.previousOrNext(a,1)},keyHandler:function(a){if(!a){a=window.event}if(!a.target){a.target=a.srcElement}if(typeof a.target.form!="undefined"){return true}var b=ix.getExpander();var c=null;switch(a.keyCode){case 70:if(b){b.doFullExpand()}return true;case 32:c=2;break;case 34:case 39:case 40:c=1;break;case 8:case 33:case 37:case 38:c=-1;break;case 27:case 13:c=0}if(c!==null){if(c!=2){ix.removeEventListener(document,window.opera?"keypress":"keydown",ix.keyHandler)}if(!ix.enableKeyListener){return true}if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}if(b){if(c==0){b.close()}else{if(c==2){if(b.slideshow){b.slideshow.hitSpace()}}else{if(b.slideshow){b.slideshow.pause()}ix.previousOrNext(b.key,c)}}return false}}return true},registerOverlay:function(a){ix.push(ix.overlays,ix.extend(a,{ixId:"ixId"+ix.idCounter++}))},addSlideshow:function(b){var d=b.slideshowGroup;if(typeof d=="object"){for(var c=0;c<d.length;c++){var e={};for(var a in b){e[a]=b[a]}e.slideshowGroup=d[c];ix.push(ix.slideshows,e)}}else{ix.push(ix.slideshows,b)}},getWrapperKey:function(c,b){var e,d=/^ix-wrapper-([0-9]+)$/;e=c;while(e.parentNode){if(e.ixKey!==undefined){return e.ixKey}if(e.id&&d.test(e.id)){return e.id.replace(d,"$1")}e=e.parentNode}if(!b){e=c;while(e.parentNode){if(e.tagName&&ix.isixAnchor(e)){for(var a=0;a<ix.expanders.length;a++){var f=ix.expanders[a];if(f&&f.a==e){return a}}}e=e.parentNode}}return null},getExpander:function(b,a){if(typeof b=="undefined"){return ix.expanders[ix.focusKey]||null}if(typeof b=="number"){return ix.expanders[b]||null}if(typeof b=="string"){b=ix.$(b)}return ix.expanders[ix.getWrapperKey(b,a)]||null},isixAnchor:function(b){return(b.onclick&&b.onclick.toString().replace(/\s/g," ").match(/ix.(htmlE|e)xpand/))},reOrder:function(){for(var a=0;a<ix.expanders.length;a++){if(ix.expanders[a]&&ix.expanders[a].isExpanded){ix.focusTopmost()}}},mouseClickHandler:function(d){if(!d){d=window.event}if(d.button>1){return true}if(!d.target){d.target=d.srcElement}var b=d.target;while(b.parentNode&&!(/ix-(image|move|html|resize)/.test(b.className))){b=b.parentNode}var f=ix.getExpander(b);if(f&&(f.isClosing||!f.isExpanded)){return true}if(f&&d.type=="mousedown"){if(d.target.form){return true}var a=b.className.match(/ix-(image|move|resize)/);if(a){ix.dragArgs={exp:f,type:a[1],left:f.x.pos,width:f.x.size,top:f.y.pos,height:f.y.size,clickX:d.clientX,clickY:d.clientY};ix.addEventListener(document,"mousemove",ix.dragHandler);if(d.preventDefault){d.preventDefault()}if(/ix-(image|html)-blur/.test(f.content.className)){f.focus();ix.hasFocused=true}return false}}else{if(d.type=="mouseup"){ix.removeEventListener(document,"mousemove",ix.dragHandler);if(ix.dragArgs){if(ix.styleRestoreCursor&&ix.dragArgs.type=="image"){ix.dragArgs.exp.content.style.cursor=ix.styleRestoreCursor}var c=ix.dragArgs.hasDragged;if(!c&&!ix.hasFocused&&!/(move|resize)/.test(ix.dragArgs.type)){f.close()}else{if(c||(!c&&ix.hasHtmlExpanders)){ix.dragArgs.exp.doShowHide("hidden")}}ix.hasFocused=false;ix.dragArgs=null}else{if(/ix-image-blur/.test(b.className)){b.style.cursor=ix.styleRestoreCursor}}}}return false},dragHandler:function(c){if(!ix.dragArgs){return true}if(!c){c=window.event}var b=ix.dragArgs,d=b.exp;b.dX=c.clientX-b.clickX;b.dY=c.clientY-b.clickY;var f=Math.sqrt(Math.pow(b.dX,2)+Math.pow(b.dY,2));if(!b.hasDragged){b.hasDragged=(b.type!="image"&&f>0)||(f>(ix.dragSensitivity||5))}if(b.hasDragged&&c.clientX>5&&c.clientY>5){if(b.type=="resize"){d.resize(b)}else{d.moveTo(b.left+b.dX,b.top+b.dY);if(b.type=="image"){d.content.style.cursor="move"}}}return false},wrapperMouseHandler:function(c){try{if(!c){c=window.event}var b=/mouseover/i.test(c.type);if(!c.target){c.target=c.srcElement}if(!c.relatedTarget){c.relatedTarget=b?c.fromElement:c.toElement}var d=ix.getExpander(c.target);if(!d.isExpanded){return}if(!d||!c.relatedTarget||ix.getExpander(c.relatedTarget,true)==d||ix.dragArgs){return}for(var a=0;a<d.overlays.length;a++){(function(){var e=ix.$("ixId"+d.overlays[a]);if(e&&e.hideOnMouseOut){if(b){ix.setStyles(e,{visibility:"visible",display:""})}ix.animate(e,{opacity:b?e.opacity:0},e.dur)}})()}}catch(c){}},addEventListener:function(a,c,b){if(a==document&&c=="ready"){ix.push(ix.onReady,b)}try{a.addEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b);a.attachEvent("on"+c,b)}catch(d){a["on"+c]=b}}},removeEventListener:function(a,c,b){try{a.removeEventListener(c,b,false)}catch(d){try{a.detachEvent("on"+c,b)}catch(d){a["on"+c]=null}}},preloadFullImage:function(b){if(ix.continuePreloading&&ix.preloadTheseImages[b]&&ix.preloadTheseImages[b]!="undefined"){var a=document.createElement("img");a.onload=function(){a=null;ix.preloadFullImage(b+1)};a.src=ix.preloadTheseImages[b]}},preloadImages:function(c){if(c&&typeof c!="object"){ix.numberOfImagesToPreload=c}var a=ix.getAnchors();for(var b=0;b<a.images.length&&b<ix.numberOfImagesToPreload;b++){ix.push(ix.preloadTheseImages,ix.getSrc(a.images[b]))}if(ix.outlineType){new ix.Outline(ix.outlineType,function(){ix.preloadFullImage(0)})}else{ix.preloadFullImage(0)}if(ix.restoreCursor){var d=ix.createElement("img",{src:ix.graphicsDir+ix.restoreCursor})}},init:function(){if(!ix.container){ix.ieLt7=ix.ie&&ix.uaVersion<7;ix.ieLt9=ix.ie&&ix.uaVersion<9;ix.getPageSize();for(var a in ix.langDefaults){if(typeof ix[a]!="undefined"){ix.lang[a]=ix[a]}else{if(typeof ix.lang[a]=="undefined"&&typeof ix.langDefaults[a]!="undefined"){ix.lang[a]=ix.langDefaults[a]}}}ix.container=ix.createElement("div",{className:"ix-container"},{position:"absolute",left:0,top:0,width:"100%",zIndex:ix.zIndexCounter,direction:"ltr"},document.body,true);ix.loading=ix.createElement("a",{className:"ix-loading",title:ix.lang.loadingTitle,innerHTML:ix.lang.loadingText,href:"javascript:;"},{position:"absolute",top:"-9999px",opacity:ix.loadingOpacity,zIndex:1},ix.container);ix.garbageBin=ix.createElement("div",null,{display:"none"},ix.container);ix.viewport=ix.createElement("div",{className:"ix-viewport ix-viewport-size"},{visibility:(ix.safari&&ix.uaVersion<525)?"visible":"hidden"},ix.container,1);Math.linearTween=function(f,e,h,g){return h*f/g+e};Math.easeInQuad=function(f,e,h,g){return h*(f/=g)*f+e};Math.easeOutQuad=function(f,e,h,g){return -h*(f/=g)*(f-2)+e};ix.hideSelects=ix.ieLt7;ix.hideIframes=((window.opera&&ix.uaVersion<9)||navigator.vendor=="KDE"||(ix.ieLt7&&ix.uaVersion<5.5))}},ready:function(){if(ix.isReady){return}ix.isReady=true;for(var a=0;a<ix.onReady.length;a++){ix.onReady[a]()}},updateAnchors:function(){var a,c,k=[],h=[],b={},l;for(var e=0;e<ix.openerTagNames.length;e++){c=document.getElementsByTagName(ix.openerTagNames[e]);for(var d=0;d<c.length;d++){a=c[d];l=ix.isixAnchor(a);if(l){ix.push(k,a);if(l[0]=="ix.expand"){ix.push(h,a)}var f=ix.getParam(a,"slideshowGroup")||"none";if(!b[f]){b[f]=[]}ix.push(b[f],a)}}}ix.anchors={all:k,groups:b,images:h};return ix.anchors},getAnchors:function(){return ix.anchors||ix.updateAnchors()},close:function(a){var b=ix.getExpander(a);if(b){b.close()}return false}};ix.fx=function(b,a,c){this.options=a;this.elem=b;this.prop=c;if(!a.orig){a.orig={}}};ix.fx.prototype={update:function(){(ix.fx.step[this.prop]||ix.fx.step._default)(this);if(this.options.step){this.options.step.call(this.elem,this.now,this)}},custom:function(e,d,c){this.startTime=(new Date()).getTime();this.start=e;this.end=d;this.unit=c;this.now=this.start;this.pos=this.state=0;var a=this;function b(f){return a.step(f)}b.elem=this.elem;if(b()&&ix.timers.push(b)==1){ix.timerId=setInterval(function(){var g=ix.timers;for(var f=0;f<g.length;f++){if(!g[f]()){g.splice(f--,1)}}if(!g.length){clearInterval(ix.timerId)}},13)}},step:function(d){var c=(new Date()).getTime();if(d||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var a=true;for(var b in this.options.curAnim){if(this.options.curAnim[b]!==true){a=false}}if(a){if(this.options.complete){this.options.complete.call(this.elem)}}return false}else{var e=c-this.startTime;this.state=e/this.options.duration;this.pos=this.options.easing(e,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};ix.extend(ix.fx,{step:{opacity:function(a){ix.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(b){}}}});ix.Outline=function(g,e){this.onLoad=e;this.outlineType=g;var a=ix.uaVersion,f;this.hasAlphaImageLoader=ix.ie&&ix.uaVersion<7;if(!g){if(e){e()}return}ix.init();this.table=ix.createElement("table",{cellSpacing:0},{visibility:"hidden",position:"absolute",borderCollapse:"collapse",width:0},ix.container,true);var b=ix.createElement("tbody",null,null,this.table,1);this.td=[];for(var c=0;c<=8;c++){if(c%3==0){f=ix.createElement("tr",null,{height:"auto"},b,true)}this.td[c]=ix.createElement("td",null,null,f,true);var d=c!=4?{lineHeight:0,fontSize:0}:{position:"relative"};ix.setStyles(this.td[c],d)}this.td[4].className=g+" ix-outline";this.preloadGraphic()};ix.Outline.prototype={preloadGraphic:function(){var b=ix.graphicsDir+(ix.outlinesDir||"outlines/")+this.outlineType+".png";var a=ix.safari&&ix.uaVersion<525?ix.container:null;this.graphic=ix.createElement("img",null,{position:"absolute",top:"-9999px"},a,true);var c=this;this.graphic.onload=function(){c.onGraphicLoad()};this.graphic.src=b},onGraphicLoad:function(){var d=this.offset=this.graphic.width/4,f=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],c={height:(2*d)+"px",width:(2*d)+"px"};for(var b=0;b<=8;b++){if(f[b]){if(this.hasAlphaImageLoader){var a=(b==1||b==7)?"100%":this.graphic.width+"px";var e=ix.createElement("div",null,{width:"100%",height:"100%",position:"relative",overflow:"hidden"},this.td[b],true);ix.createElement("div",null,{filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+this.graphic.src+"')",position:"absolute",width:a,height:this.graphic.height+"px",left:(f[b][0]*d)+"px",top:(f[b][1]*d)+"px"},e,true)}else{ix.setStyles(this.td[b],{background:"url("+this.graphic.src+") "+(f[b][0]*d)+"px "+(f[b][1]*d)+"px"})}if(window.opera&&(b==3||b==5)){ix.createElement("div",null,c,this.td[b],true)}ix.setStyles(this.td[b],c)}}this.graphic=null;if(ix.pendingOutlines[this.outlineType]){ix.pendingOutlines[this.outlineType].destroy()}ix.pendingOutlines[this.outlineType]=this;if(this.onLoad){this.onLoad()}},setPosition:function(g,e,c,b,f){var d=this.exp,a=d.wrapper.style,e=e||0,g=g||{x:d.x.pos+e,y:d.y.pos+e,w:d.x.get("wsize")-2*e,h:d.y.get("wsize")-2*e};if(c){this.table.style.visibility=(g.h>=4*this.offset)?"visible":"hidden"}ix.setStyles(this.table,{left:(g.x-this.offset)+"px",top:(g.y-this.offset)+"px",width:(g.w+2*this.offset)+"px"});g.w-=2*this.offset;g.h-=2*this.offset;ix.setStyles(this.td[4],{width:g.w>=0?g.w+"px":0,height:g.h>=0?g.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{ix.discardElement(this.table)}}};ix.Dimension=function(b,a){this.exp=b;this.dim=a;this.ucwh=a=="x"?"Width":"Height";this.wh=this.ucwh.toLowerCase();this.uclt=a=="x"?"Left":"Top";this.lt=this.uclt.toLowerCase();this.ucrb=a=="x"?"Right":"Bottom";this.rb=this.ucrb.toLowerCase();this.p1=this.p2=0};ix.Dimension.prototype={get:function(a){switch(a){case"loadingPos":return this.tpos+this.tb+(this.t-ix.loading["offset"+this.ucwh])/2;case"loadingPosXfade":return this.pos+this.cb+this.p1+(this.size-ix.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=ix["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=(ix.page[this.wh]/2)+ix.page["scroll"+this.uclt]}},calcExpanded:function(){var a=this.exp;this.justify="auto";if(a.align=="center"){this.justify="center"}else{if(new RegExp(this.lt).test(a.anchor)){this.justify=null}else{if(new RegExp(this.rb).test(a.anchor)){this.justify="max"}}}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"&&ix.padToMinWidth){this.minSize=a.minWidth}this.target=a["target"+this.dim.toUpperCase()];this.marginMin=ix["margin"+this.uclt];this.scroll=ix.page["scroll"+this.uclt];this.clientSize=ix.page[this.wh]},setSize:function(a){var b=this.exp;if(b.isImage&&(b.useBox||ix.padToMinWidth)){this.imgSize=a;this.size=Math.max(this.size,this.imgSize);b.content.style[this.lt]=this.get("imgPad")+"px"}else{this.size=a}b.content.style[this.wh]=a+"px";b.wrapper.style[this.wh]=this.get("wsize")+"px";if(b.outline){b.outline.setPosition()}if(this.dim=="x"&&b.overlayBox){b.sizeOverlayBox(true)}if(this.dim=="x"&&b.slideshow&&b.isImage){if(a==this.full){b.slideshow.disable("full-expand")}else{b.slideshow.enable("full-expand")}}},setPos:function(a){this.pos=a;this.exp.wrapper.style[this.lt]=a+"px";if(this.exp.outline){this.exp.outline.setPosition()}}};ix.Expander=function(k,f,b,l){if(document.readyState&&ix.ie&&!ix.isReady){ix.addEventListener(document,"ready",function(){new ix.Expander(k,f,b,l)});return}this.a=k;this.custom=b;this.contentType=l||"image";this.isImage=!this.isHtml;ix.continuePreloading=false;this.overlays=[];this.last=ix.last;ix.last=null;ix.init();var m=this.key=ix.expanders.length;for(var g=0;g<ix.overrides.length;g++){var c=ix.overrides[g];this[c]=f&&typeof f[c]!="undefined"?f[c]:ix[c]}if(!this.src){this.src=k.href}var d=(f&&f.thumbnailId)?ix.$(f.thumbnailId):k;d=this.thumb=d.getElementsByTagName("img")[0]||d;this.thumbsUserSetId=d.id||k.id;for(var g=0;g<ix.expanders.length;g++){if(ix.expanders[g]&&ix.expanders[g].a==k&&!(this.last&&this.transitions[1]=="crossfade")){ix.expanders[g].focus();return false}}if(!ix.allowSimultaneousLoading){for(var g=0;g<ix.expanders.length;g++){if(ix.expanders[g]&&ix.expanders[g].thumb!=d&&!ix.expanders[g].onLoadStarted){ix.expanders[g].cancelLoading()}}}ix.expanders[m]=this;if(!ix.allowMultipleInstances&&!ix.upcoming){if(ix.expanders[m-1]){ix.expanders[m-1].close()}if(typeof ix.focusKey!="undefined"&&ix.expanders[ix.focusKey]){ix.expanders[ix.focusKey].close()}}this.el=d;this.tpos=this.pageOrigin||ix.getPosition(d);ix.getPageSize();var j=this.x=new ix.Dimension(this,"x");j.calcThumb();var h=this.y=new ix.Dimension(this,"y");h.calcThumb();this.wrapper=ix.createElement("div",{id:"ix-wrapper-"+this.key,className:"ix-wrapper "+this.wrapperClassName},{visibility:"hidden",position:"absolute",zIndex:ix.zIndexCounter+=2},null,true);this.wrapper.onmouseover=this.wrapper.onmouseout=ix.wrapperMouseHandler;if(this.contentType=="image"&&this.outlineWhileAnimating==2){this.outlineWhileAnimating=0}if(!this.outlineType||(this.last&&this.isImage&&this.transitions[1]=="crossfade")){this[this.contentType+"Create"]()}else{if(ix.pendingOutlines[this.outlineType]){this.connectOutline();this[this.contentType+"Create"]()}else{this.showLoading();var e=this;new ix.Outline(this.outlineType,function(){e.connectOutline();e[e.contentType+"Create"]()})}}return true};ix.Expander.prototype={error:function(a){if(ix.debug){alert("Line "+a.lineNumber+": "+a.message)}else{window.location.href=this.src}},connectOutline:function(){var a=this.outline=ix.pendingOutlines[this.outlineType];a.exp=this;a.table.style.zIndex=this.wrapper.style.zIndex-1;ix.pendingOutlines[this.outlineType]=null},showLoading:function(){if(this.onLoadStarted||this.loading){return}this.loading=ix.loading;var c=this;this.loading.onclick=function(){c.cancelLoading()};var c=this,a=this.x.get("loadingPos")+"px",b=this.y.get("loadingPos")+"px";if(!d&&this.last&&this.transitions[1]=="crossfade"){var d=this.last}if(d){a=d.x.get("loadingPosXfade")+"px";b=d.y.get("loadingPosXfade")+"px";this.loading.style.zIndex=ix.zIndexCounter++}setTimeout(function(){if(c.loading){ix.setStyles(c.loading,{left:a,top:b,zIndex:ix.zIndexCounter++})}},100)},imageCreate:function(){var b=this;var a=document.createElement("img");this.content=a;a.onload=function(){if(ix.expanders[b.key]){b.contentLoaded()}};if(ix.blockRightClick){a.oncontextmenu=function(){return false}}a.className="ix-image";ix.setStyles(a,{visibility:"hidden",display:"block",position:"absolute",maxWidth:"9999px",zIndex:3});a.title=ix.lang.restoreTitle;if(ix.safari&&ix.uaVersion<525){ix.container.appendChild(a)}if(ix.ie&&ix.flushImgSize){a.src=null}a.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 j=this.x,g=this.y;if(this.loading){ix.setStyles(this.loading,{top:"-9999px"});this.loading=null}j.full=this.content.width;g.full=this.content.height;ix.setStyles(this.content,{width:j.t+"px",height:g.t+"px"});this.wrapper.appendChild(this.content);ix.container.appendChild(this.wrapper);j.calcBorders();g.calcBorders();ix.setStyles(this.wrapper,{left:(j.tpos+j.tb-j.cb)+"px",top:(g.tpos+j.tb-g.cb)+"px"});this.initSlideshow();this.getOverlays();var f=j.full/g.full;j.calcExpanded();this.justify(j);g.calcExpanded();this.justify(g);if(this.overlayBox){this.sizeOverlayBox(0,1)}if(this.allowSizeReduction){this.correctRatio(f);var k=this.slideshow;if(k&&this.last&&k.controls&&k.fixedControls){var h=k.overlayOptions.position||"",a;for(var c in ix.oPos){for(var b=0;b<5;b++){a=this[c];if(h.match(ix.oPos[c][b])){a.pos=this.last[c].pos+(this.last[c].p1-a.p1)+(this.last[c].size-a.size)*[0,0,0.5,1,1][b];if(k.fixedControls=="fit"){if(a.pos+a.size+a.p1+a.p2>a.scroll+a.clientSize-a.marginMax){a.pos=a.scroll+a.clientSize-a.size-a.marginMin-a.marginMax-a.p1-a.p2}if(a.pos<a.scroll+a.marginMin){a.pos=a.scroll+a.marginMin}}}}}}if(this.isImage&&this.x.full>(this.x.imgSize||this.x.size)){this.createFullExpand();if(this.overlays.length==1){this.sizeOverlayBox()}}}this.show()}catch(d){this.error(d)}},justify:function(f,b){var g,h=f.target,e=f==this.x?"x":"y";if(h&&h.match(/ /)){g=h.split(" ");h=g[0]}if(h&&ix.$(h)){f.pos=ix.getPosition(ix.$(h))[e];if(g&&g[1]&&g[1].match(/^[-]?[0-9]+px$/)){f.pos+=parseInt(g[1])}if(f.size<f.minSize){f.size=f.minSize}}else{if(f.justify=="auto"||f.justify=="center"){var d=false;var a=f.exp.allowSizeReduction;if(f.justify=="center"){f.pos=Math.round(f.scroll+(f.clientSize+f.marginMin-f.marginMax-f.get("wsize"))/2)}else{f.pos=Math.round(f.pos-((f.get("wsize")-f.t)/2))}if(f.pos<f.scroll+f.marginMin){f.pos=f.scroll+f.marginMin;d=true}if(!b&&f.size<f.minSize){f.size=f.minSize;a=false}if(f.pos+f.get("wsize")>f.scroll+f.clientSize-f.marginMax){if(!b&&d&&a){f.size=Math.min(f.size,f.get(e=="y"?"fitsize":"maxsize"))}else{if(f.get("wsize")<f.get("fitsize")){f.pos=f.scroll+f.clientSize-f.marginMax-f.get("wsize")}else{f.pos=f.scroll+f.marginMin;if(!b&&a){f.size=f.get(e=="y"?"fitsize":"maxsize")}}}}if(!b&&f.size<f.minSize){f.size=f.minSize;a=false}}else{if(f.justify=="max"){f.pos=Math.floor(f.pos-f.size+f.t)}}}if(f.pos<f.marginMin){var c=f.pos;f.pos=f.marginMin;if(a&&!b){f.size=f.size-(f.pos-c)}}},correctRatio:function(c){var a=this.x,g=this.y,e=false,d=Math.min(a.full,a.size),b=Math.min(g.full,g.size),f=(this.useBox||ix.padToMinWidth);if(d/b>c){d=b*c;if(d<a.minSize){d=a.minSize;b=d/c}e=true}else{if(d/b<c){b=d/c;e=true}}if(ix.padToMinWidth&&a.full<a.minSize){a.imgSize=a.full;g.size=g.imgSize=g.full}else{if(this.useBox){a.imgSize=d;g.imgSize=b}else{a.size=d;g.size=b}}e=this.fitOverlayBox(this.useBox?null:c,e);if(f&&g.size<g.imgSize){g.imgSize=g.size;a.imgSize=g.size*c}if(e||f){a.pos=a.tpos-a.cb+a.tb;a.minSize=a.size;this.justify(a,true);g.pos=g.tpos-g.cb+g.tb;g.minSize=g.size;this.justify(g,true);if(this.overlayBox){this.sizeOverlayBox()}}},fitOverlayBox:function(b,c){var a=this.x,d=this.y;if(this.overlayBox){while(d.size>this.minHeight&&a.size>this.minWidth&&d.get("wsize")>d.get("fitsize")){d.size-=10;if(b){a.size=d.size*b}this.sizeOverlayBox(0,1);c=true}}return c},show:function(){var a=this.x,b=this.y;this.doShowHide("hidden");if(this.slideshow&&this.slideshow.thumbstrip){this.slideshow.thumbstrip.selectThumb()}this.changeSize(1,{wrapper:{width:a.get("wsize"),height:b.get("wsize"),left:a.pos,top:b.pos},content:{left:a.p1+a.get("imgPad"),top:b.p1+b.get("imgPad"),width:a.imgSize||a.size,height:b.imgSize||b.size}},ix.expandDuration)},changeSize:function(d,i,b){var k=this.transitions,e=d?(this.last?this.last.a:null):ix.upcoming,j=(k[1]&&e&&ix.getParam(e,"transitions")[1]==k[1])?k[1]:k[0];if(this[j]&&j!="expand"){this[j](d,i);return}if(this.outline&&!this.outlineWhileAnimating){if(d){this.outline.setPosition()}else{this.outline.destroy()}}if(!d){this.destroyOverlays()}var c=this,h=c.x,g=c.y,f=this.easing;if(!d){f=this.easingClose||f}var a=d?function(){if(c.outline){c.outline.table.style.visibility="visible"}setTimeout(function(){c.afterExpand()},50)}:function(){c.afterClose()};if(d){ix.setStyles(this.wrapper,{width:h.t+"px",height:g.t+"px"})}if(this.fadeInOut){ix.setStyles(this.wrapper,{opacity:d?0:1});ix.extend(i.wrapper,{opacity:d})}ix.animate(this.wrapper,i.wrapper,{duration:b,easing:f,step:function(n,l){if(c.outline&&c.outlineWhileAnimating&&l.prop=="top"){var m=d?l.pos:1-l.pos;var o={w:h.t+(h.get("wsize")-h.t)*m,h:g.t+(g.get("wsize")-g.t)*m,x:h.tpos+(h.pos-h.tpos)*m,y:g.tpos+(g.pos-g.tpos)*m};c.outline.setPosition(o,0,1)}}});ix.animate(this.content,i.content,b,f,a);if(d){this.wrapper.style.visibility="visible";this.content.style.visibility="visible";this.a.className+=" ix-active-anchor"}},fade:function(f,h){this.outlineWhileAnimating=false;var c=this,j=f?ix.expandDuration:0;if(f){ix.animate(this.wrapper,h.wrapper,0);ix.setStyles(this.wrapper,{opacity:0,visibility:"visible"});ix.animate(this.content,h.content,0);this.content.style.visibility="visible";ix.animate(this.wrapper,{opacity:1},j,null,function(){c.afterExpand()})}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex;var b=f||-1,d=this.outline.offset,a=f?3:d,g=f?d:3;for(var e=a;b*e<=b*g;e+=b,j+=25){(function(){var i=f?g-e:a-e;setTimeout(function(){c.outline.setPosition(0,i,1)},j)})()}}if(f){}else{setTimeout(function(){if(c.outline){c.outline.destroy(c.preserveContent)}c.destroyOverlays();ix.animate(c.wrapper,{opacity:0},ix.restoreDuration,null,function(){c.afterClose()})},j)}},crossfade:function(g,m,o){if(!g){return}var f=this,p=this.last,l=this.x,k=this.y,d=p.x,b=p.y,a=this.wrapper,i=this.content,c=this.overlayBox;ix.removeEventListener(document,"mousemove",ix.dragHandler);ix.setStyles(i,{width:(l.imgSize||l.size)+"px",height:(k.imgSize||k.size)+"px"});if(c){c.style.overflow="visible"}this.outline=p.outline;if(this.outline){this.outline.exp=f}p.outline=null;var h=ix.createElement("div",{className:"ix-"+this.contentType},{position:"absolute",zIndex:4,overflow:"hidden",display:"none"});var j={oldImg:p,newImg:this};for(var e in j){this[e]=j[e].content.cloneNode(1);ix.setStyles(this[e],{position:"absolute",border:0,visibility:"visible"});h.appendChild(this[e])}a.appendChild(h);if(c){c.className="";a.appendChild(c)}h.style.display="";p.content.style.display="none";if(ix.safari&&ix.uaVersion<525){this.wrapper.style.visibility="visible"}ix.animate(a,{width:l.size},{duration:ix.transitionDuration,step:function(u,r){var x=r.pos,q=1-x;var w,s={},t=["pos","size","p1","p2"];for(var v in t){w=t[v];s["x"+w]=Math.round(q*d[w]+x*l[w]);s["y"+w]=Math.round(q*b[w]+x*k[w]);s.ximgSize=Math.round(q*(d.imgSize||d.size)+x*(l.imgSize||l.size));s.ximgPad=Math.round(q*d.get("imgPad")+x*l.get("imgPad"));s.yimgSize=Math.round(q*(b.imgSize||b.size)+x*(k.imgSize||k.size));s.yimgPad=Math.round(q*b.get("imgPad")+x*k.get("imgPad"))}if(f.outline){f.outline.setPosition({x:s.xpos,y:s.ypos,w:s.xsize+s.xp1+s.xp2+2*l.cb,h:s.ysize+s.yp1+s.yp2+2*k.cb})}p.wrapper.style.clip="rect("+(s.ypos-b.pos)+"px, "+(s.xsize+s.xp1+s.xp2+s.xpos+2*d.cb-d.pos)+"px, "+(s.ysize+s.yp1+s.yp2+s.ypos+2*b.cb-b.pos)+"px, "+(s.xpos-d.pos)+"px)";ix.setStyles(i,{top:(s.yp1+k.get("imgPad"))+"px",left:(s.xp1+l.get("imgPad"))+"px",marginTop:(k.pos-s.ypos)+"px",marginLeft:(l.pos-s.xpos)+"px"});ix.setStyles(a,{top:s.ypos+"px",left:s.xpos+"px",width:(s.xp1+s.xp2+s.xsize+2*l.cb)+"px",height:(s.yp1+s.yp2+s.ysize+2*k.cb)+"px"});ix.setStyles(h,{width:(s.ximgSize||s.xsize)+"px",height:(s.yimgSize||s.ysize)+"px",left:(s.xp1+s.ximgPad)+"px",top:(s.yp1+s.yimgPad)+"px",visibility:"visible"});ix.setStyles(f.oldImg,{top:(b.pos-s.ypos+b.p1-s.yp1+b.get("imgPad")-s.yimgPad)+"px",left:(d.pos-s.xpos+d.p1-s.xp1+d.get("imgPad")-s.ximgPad)+"px"});ix.setStyles(f.newImg,{opacity:x,top:(k.pos-s.ypos+k.p1-s.yp1+k.get("imgPad")-s.yimgPad)+"px",left:(l.pos-s.xpos+l.p1-s.xp1+l.get("imgPad")-s.ximgPad)+"px"});if(c){ix.setStyles(c,{width:s.xsize+"px",height:s.ysize+"px",left:(s.xp1+l.cb)+"px",top:(s.yp1+k.cb)+"px"})}},complete:function(){a.style.visibility=i.style.visibility="visible";i.style.display="block";ix.discardElement(h);f.afterExpand();p.afterClose();f.last=null}})},reuseOverlay:function(d,c){if(!this.last){return false}for(var b=0;b<this.last.overlays.length;b++){var a=ix.$("ixId"+this.last.overlays[b]);if(a&&a.ixId==d.ixId){this.genOverlayBox();a.reuse=this.key;ix.push(this.overlays,this.last.overlays[b]);return true}}return false},afterExpand:function(){this.isExpanded=true;this.focus();if(this.dimmingOpacity){ix.dim(this)}if(ix.upcoming&&ix.upcoming==this.a){ix.upcoming=null}this.prepareNextOutline();var c=ix.page,b=ix.mouse.x+c.scrollLeft,a=ix.mouse.y+c.scrollTop;this.mouseIsOver=this.x.pos<b&&b<this.x.pos+this.x.get("wsize")&&this.y.pos<a&&a<this.y.pos+this.y.get("wsize");if(this.overlayBox){this.showOverlays()}},prepareNextOutline:function(){var a=this.key;var b=this.outlineType;new ix.Outline(b,function(){try{ix.expanders[a].preloadNext()}catch(c){}})},preloadNext:function(){var b=this.getAdjacentAnchor(1);if(b&&b.onclick.toString().match(/ix\.expand/)){var a=ix.createElement("img",{src:ix.getSrc(b)})}},getAdjacentAnchor:function(c){var b=this.getAnchorIndex(),a=ix.anchors.groups[this.slideshowGroup||"none"];if(a&&!a[b+c]&&this.slideshow&&this.slideshow.repeat){if(c==1){return a[0]}else{if(c==-1){return a[a.length-1]}}}return(a&&a[b+c])||null},getAnchorIndex:function(){var a=ix.getAnchors().groups[this.slideshowGroup||"none"];if(a){for(var b=0;b<a.length;b++){if(a[b]==this.a){return b}}}return null},getNumber:function(){if(this[this.numberPosition]){var a=ix.anchors.groups[this.slideshowGroup||"none"];if(a){var b=ix.lang.number.replace("%1",this.getAnchorIndex()+1).replace("%2",a.length);this[this.numberPosition].innerHTML='<div class="ix-number">'+b+"</div>"+this[this.numberPosition].innerHTML}}},initSlideshow:function(){if(!this.last){for(var c=0;c<ix.slideshows.length;c++){var b=ix.slideshows[c],d=b.slideshowGroup;if(typeof d=="undefined"||d===null||d===this.slideshowGroup){this.slideshow=new ix.Slideshow(this.key,b)}}}else{this.slideshow=this.last.slideshow}var b=this.slideshow;if(!b){return}var a=b.expKey=this.key;b.checkFirstAndLast();b.disable("full-expand");if(b.controls){this.createOverlay(ix.extend(b.overlayOptions||{},{overlayId:b.controls,ixId:"controls",zIndex:5}))}if(b.thumbstrip){b.thumbstrip.add(this)}if(!this.last&&this.autoplay){b.play(true)}if(b.autoplay){b.autoplay=setTimeout(function(){ix.next(a)},(b.interval||500))}},cancelLoading:function(){ix.discardElement(this.wrapper);ix.expanders[this.key]=null;if(ix.upcoming==this.a){ix.upcoming=null}ix.undim(this.key);if(this.loading){ix.loading.style.left="-9999px"}},writeCredits:function(){if(this.credits){return}this.credits=ix.createElement("a",{href:ix.creditsHref,target:ix.creditsTarget,className:"ix-credits",innerHTML:ix.lang.creditsText,title:ix.lang.creditsTitle});this.createOverlay({overlayId:this.credits,position:this.creditsPosition||"top left",ixId:"credits"})},getInline:function(types,addOverlay){for(var i=0;i<types.length;i++){var type=types[i],s=null;if(!this[type+"Id"]&&this.thumbsUserSetId){this[type+"Id"]=type+"-for-"+this.thumbsUserSetId}if(this[type+"Id"]){this[type]=ix.getNode(this[type+"Id"])}if(!this[type]&&!this[type+"Text"]&&this[type+"Eval"]){try{s=eval(this[type+"Eval"])}catch(e){}}if(!this[type]&&this[type+"Text"]){s=this[type+"Text"]}if(!this[type]&&!s){this[type]=ix.getNode(this.a["_"+type+"Id"]);if(!this[type]){var next=this.a.nextSibling;while(next&&!ix.isixAnchor(next)){if((new RegExp("ix-"+type)).test(next.className||null)){if(!next.id){this.a["_"+type+"Id"]=next.id="ixId"+ix.idCounter++}this[type]=ix.getNode(next.id);break}next=next.nextSibling}}}if(!this[type]&&!s&&this.numberPosition==type){s="\n"}if(!this[type]&&s){this[type]=ix.createElement("div",{className:"ix-"+type,innerHTML:s})}if(addOverlay&&this[type]){var o={position:(type=="heading")?"above":"below"};for(var x in this[type+"Overlay"]){o[x]=this[type+"Overlay"][x]}o.overlayId=this[type];this.createOverlay(o)}}},doShowHide:function(a){if(ix.hideSelects){this.showHideElements("SELECT",a)}if(ix.hideIframes){this.showHideElements("IFRAME",a)}if(ix.geckoMac){this.showHideElements("*",a)}},showHideElements:function(c,b){var e=document.getElementsByTagName(c);var a=c=="*"?"overflow":"visibility";for(var f=0;f<e.length;f++){if(a=="visibility"||(document.defaultView.getComputedStyle(e[f],"").getPropertyValue("overflow")=="auto"||e[f].getAttribute("hidden-by")!=null)){var h=e[f].getAttribute("hidden-by");if(b=="visible"&&h){h=h.replace("["+this.key+"]","");e[f].setAttribute("hidden-by",h);if(!h){e[f].style[a]=e[f].origProp}}else{if(b=="hidden"){var k=ix.getPosition(e[f]);k.w=e[f].offsetWidth;k.h=e[f].offsetHeight;if(!this.dimmingOpacity){var j=(k.x+k.w<this.x.get("opos")||k.x>this.x.get("opos")+this.x.get("osize"));var g=(k.y+k.h<this.y.get("opos")||k.y>this.y.get("opos")+this.y.get("osize"))}var d=ix.getWrapperKey(e[f]);if(!j&&!g&&d!=this.key){if(!h){e[f].setAttribute("hidden-by","["+this.key+"]");e[f].origProp=e[f].style[a];e[f].style[a]="hidden"}else{if(h.indexOf("["+this.key+"]")==-1){e[f].setAttribute("hidden-by",h+"["+this.key+"]")}}}else{if((h=="["+this.key+"]"||ix.focusKey==d)&&d!=this.key){e[f].setAttribute("hidden-by","");e[f].style[a]=e[f].origProp||""}else{if(h&&h.indexOf("["+this.key+"]")>-1){e[f].setAttribute("hidden-by",h.replace("["+this.key+"]",""))}}}}}}}},focus:function(){this.wrapper.style.zIndex=ix.zIndexCounter+=2;for(var a=0;a<ix.expanders.length;a++){if(ix.expanders[a]&&a==ix.focusKey){var b=ix.expanders[a];b.content.className+=" ix-"+b.contentType+"-blur";b.content.style.cursor=ix.ieLt7?"hand":"pointer";b.content.title=ix.lang.focusTitle}}if(this.outline){this.outline.table.style.zIndex=this.wrapper.style.zIndex-1}this.content.className="ix-"+this.contentType;this.content.title=ix.lang.restoreTitle;if(ix.restoreCursor){ix.styleRestoreCursor=window.opera?"pointer":"url("+ix.graphicsDir+ix.restoreCursor+"), pointer";if(ix.ieLt7&&ix.uaVersion<6){ix.styleRestoreCursor="hand"}this.content.style.cursor=ix.styleRestoreCursor}ix.focusKey=this.key;ix.addEventListener(document,window.opera?"keypress":"keydown",ix.keyHandler)},moveTo:function(a,b){this.x.setPos(a);this.y.setPos(b)},resize:function(d){var a,b,c=d.width/d.height;a=Math.max(d.width+d.dX,Math.min(this.minWidth,this.x.full));if(this.isImage&&Math.abs(a-this.x.full)<12){a=this.x.full}b=a/c;if(b<Math.min(this.minHeight,this.y.full)){b=Math.min(this.minHeight,this.y.full);if(this.isImage){a=b*c}}this.resizeTo(a,b)},resizeTo:function(a,b){this.y.setSize(b);this.x.setSize(a);this.wrapper.style.height=this.y.get("wsize")+"px"},close:function(){if(this.isClosing||!this.isExpanded){return}if(this.transitions[1]=="crossfade"&&ix.upcoming){ix.getExpander(ix.upcoming).cancelLoading();ix.upcoming=null}this.isClosing=true;if(this.slideshow&&!ix.upcoming){this.slideshow.pause()}ix.removeEventListener(document,window.opera?"keypress":"keydown",ix.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}},ix.restoreDuration)}catch(a){this.afterClose()}},createOverlay:function(e){var d=e.overlayId,a=(e.relativeTo=="viewport"&&!/panel$/.test(e.position));if(typeof d=="string"){d=ix.getNode(d)}if(e.html){d=ix.createElement("div",{innerHTML:e.html})}if(!d||typeof d=="string"){return}d.style.display="block";e.ixId=e.ixId||e.overlayId;if(this.transitions[1]=="crossfade"&&this.reuseOverlay(e,d)){return}this.genOverlayBox();var c=e.width&&/^[0-9]+(px|%)$/.test(e.width)?e.width:"auto";if(/^(left|right)panel$/.test(e.position)&&!/^[0-9]+px$/.test(e.width)){c="200px"}var b=ix.createElement("div",{id:"ixId"+ix.idCounter++,ixId:e.ixId},{position:"absolute",visibility:"hidden",width:c,direction:ix.lang.cssDirection||"",opacity:0},a?ix.viewport:this.overlayBox,true);if(a){b.ixKey=this.key}b.appendChild(d);ix.extend(b,{opacity:1,offsetX:0,offsetY:0,dur:(e.fade===0||e.fade===false||(e.fade==2&&ix.ie))?0:250});ix.extend(b,e);if(this.gotOverlays){this.positionOverlay(b);if(!b.hideOnMouseOut||this.mouseIsOver){ix.animate(b,{opacity:b.opacity},b.dur)}}ix.push(this.overlays,ix.idCounter-1)},positionOverlay:function(e){var f=e.position||"middle center",c=(e.relativeTo=="viewport"),b=e.offsetX,a=e.offsetY;if(c){ix.viewport.style.display="block";e.ixKey=this.key;if(e.offsetWidth>e.parentNode.offsetWidth){e.style.width="100%"}}else{if(e.parentNode!=this.overlayBox){this.overlayBox.appendChild(e)}}if(/left$/.test(f)){e.style.left=b+"px"}if(/center$/.test(f)){ix.setStyles(e,{left:"50%",marginLeft:(b-Math.round(e.offsetWidth/2))+"px"})}if(/right$/.test(f)){e.style.right=-b+"px"}if(/^leftpanel$/.test(f)){ix.setStyles(e,{right:"100%",marginRight:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p1=e.offsetWidth}else{if(/^rightpanel$/.test(f)){ix.setStyles(e,{left:"100%",marginLeft:this.x.cb+"px",top:-this.y.cb+"px",bottom:-this.y.cb+"px",overflow:"auto"});this.x.p2=e.offsetWidth}}var d=e.parentNode.offsetHeight;e.style.height="auto";if(c&&e.offsetHeight>d){e.style.height=ix.ieLt7?d+"px":"100%"}if(/^top/.test(f)){e.style.top=a+"px"}if(/^middle/.test(f)){ix.setStyles(e,{top:"50%",marginTop:(a-Math.round(e.offsetHeight/2))+"px"})}if(/^bottom/.test(f)){e.style.bottom=-a+"px"}if(/^above$/.test(f)){ix.setStyles(e,{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=e.offsetHeight}else{if(/^below$/.test(f)){ix.setStyles(e,{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=e.offsetHeight;e.style.position="absolute"}}},getOverlays:function(){this.getInline(["heading","caption"],true);this.getNumber();if(this.heading&&this.dragByHeading){this.heading.className+=" ix-move"}if(ix.showCredits){this.writeCredits()}for(var a=0;a<ix.overlays.length;a++){var d=ix.overlays[a],e=d.thumbnailId,b=d.slideshowGroup;if((!e&&!b)||(e&&e==this.thumbsUserSetId)||(b&&b===this.slideshowGroup)){this.createOverlay(d)}}var c=[];for(var a=0;a<this.overlays.length;a++){var d=ix.$("ixId"+this.overlays[a]);if(/panel$/.test(d.position)){this.positionOverlay(d)}else{ix.push(c,d)}}for(var a=0;a<c.length;a++){this.positionOverlay(c[a])}this.gotOverlays=true},genOverlayBox:function(){if(!this.overlayBox){this.overlayBox=ix.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:ix.ie?4:"auto"},ix.container,true)}},sizeOverlayBox:function(f,d){var c=this.overlayBox,a=this.x,h=this.y;ix.setStyles(c,{width:a.size+"px",height:h.size+"px"});if(f||d){for(var e=0;e<this.overlays.length;e++){var g=ix.$("ixId"+this.overlays[e]);var b=(ix.ieLt7||document.compatMode=="BackCompat");if(g&&/^(above|below)$/.test(g.position)){if(b){g.style.width=(c.offsetWidth+2*a.cb+a.p1+a.p2)+"px"}h[g.position=="above"?"p1":"p2"]=g.offsetHeight}if(g&&b&&/^(left|right)panel$/.test(g.position)){g.style.height=(c.offsetHeight+2*h.cb)+"px"}}}if(f){ix.setStyles(this.content,{top:h.p1+"px"});ix.setStyles(c,{top:(h.p1+h.cb)+"px"})}},showOverlays:function(){var a=this.overlayBox;a.className="";ix.setStyles(a,{top:(this.y.p1+this.y.cb)+"px",left:(this.x.p1+this.x.cb)+"px",overflow:"visible"});if(ix.safari){a.style.visibility="visible"}this.wrapper.appendChild(a);for(var c=0;c<this.overlays.length;c++){var d=ix.$("ixId"+this.overlays[c]);d.style.zIndex=d.zIndex||4;if(!d.hideOnMouseOut||this.mouseIsOver){d.style.visibility="visible";ix.setStyles(d,{visibility:"visible",display:""});ix.animate(d,{opacity:d.opacity},d.dur)}}},destroyOverlays:function(){if(!this.overlays.length){return}if(this.slideshow){var d=this.slideshow.controls;if(d&&ix.getExpander(d)==this){d.parentNode.removeChild(d)}}for(var a=0;a<this.overlays.length;a++){var b=ix.$("ixId"+this.overlays[a]);if(b&&b.parentNode==ix.viewport&&ix.getExpander(b)==this){ix.discardElement(b)}}ix.discardElement(this.overlayBox)},createFullExpand:function(){if(this.slideshow&&this.slideshow.controls){this.slideshow.enable("full-expand");return}this.fullExpandLabel=ix.createElement("a",{href:"javascript:ix.expanders["+this.key+"].doFullExpand();",title:ix.lang.fullExpandTitle,className:"ix-full-expand"});this.createOverlay({overlayId:this.fullExpandLabel,position:ix.fullExpandPosition,hideOnMouseOut:true,opacity:ix.fullExpandOpacity})},doFullExpand:function(){try{if(this.fullExpandLabel){ix.discardElement(this.fullExpandLabel)}this.focus();var c=this.x.size,a=this.y.size;this.resizeTo(this.x.full,this.y.full);var b=this.x.pos-(this.x.size-c)/2;if(b<ix.marginLeft){b=ix.marginLeft}var f=this.y.pos-(this.y.size-a)/2;if(f<ix.marginTop){f=ix.marginTop}this.moveTo(b,f);this.doShowHide("hidden")}catch(d){this.error(d)}},afterClose:function(){this.a.className=this.a.className.replace("ix-active-anchor","");this.doShowHide("visible");if(this.outline&&this.outlineWhileAnimating){this.outline.destroy()}ix.discardElement(this.wrapper);this.destroyOverlays();if(!ix.viewport.childNodes.length){ix.viewport.style.display="none"}if(this.dimmingOpacity){ix.undim(this.key)}ix.expanders[this.key]=null;ix.reOrder()}};ix.Slideshow=function(c,b){if(ix.dynamicallyUpdateAnchors!==false){ix.updateAnchors()}this.expKey=c;for(var a in b){this[a]=b[a]}if(this.useControls){this.getControls()}if(this.thumbstrip){this.thumbstrip=ix.Thumbstrip(this)}};ix.Slideshow.prototype={getControls:function(){this.controls=ix.createElement("div",{innerHTML:ix.replaceLang(ix.skin.controls)},null,ix.container);var b=["play","pause","previous","next","move","full-expand","close"];this.btn={};var c=this;for(var a=0;a<b.length;a++){this.btn[b[a]]=ix.getElementByClass(this.controls,"li","ix-"+b[a]);this.enable(b[a])}this.btn.pause.style.display="none"},checkFirstAndLast:function(){if(this.repeat||!this.controls){return}var c=ix.expanders[this.expKey],b=c.getAnchorIndex(),a=/disabled$/;if(b==0){this.disable("previous")}else{if(a.test(this.btn.previous.getElementsByTagName("a")[0].className)){this.enable("previous")}}if(b+1==ix.anchors.groups[c.slideshowGroup||"none"].length){this.disable("next");this.disable("play")}else{if(a.test(this.btn.next.getElementsByTagName("a")[0].className)){this.enable("next");this.enable("play")}}},enable:function(d){if(!this.btn){return}var c=this,b=this.btn[d].getElementsByTagName("a")[0],e=/disabled$/;b.onclick=function(){c[d]();return false};if(e.test(b.className)){b.className=b.className.replace(e,"")}},disable:function(c){if(!this.btn){return}var b=this.btn[c].getElementsByTagName("a")[0];b.onclick=function(){return false};if(!/disabled$/.test(b.className)){b.className+=" disabled"}},hitSpace:function(){if(this.autoplay){this.pause()}else{this.play()}},play:function(a){if(this.btn){this.btn.play.style.display="none";this.btn.pause.style.display=""}this.autoplay=true;if(!a){ix.next(this.expKey)}},pause:function(){if(this.btn){this.btn.pause.style.display="none";this.btn.play.style.display=""}clearTimeout(this.autoplay);this.autoplay=null},previous:function(){this.pause();ix.previous(this.btn.previous)},next:function(){this.pause();ix.next(this.btn.next)},move:function(){},"full-expand":function(){ix.getExpander().doFullExpand()},close:function(){ix.close(this.btn.close)}};ix.Thumbstrip=function(k){function p(i){ix.extend(f||{},{overlayId:r,ixId:"thumbstrip",className:"ix-thumbstrip-"+m+"-overlay "+(f.className||"")});if(ix.ieLt7){f.fade=0}i.createOverlay(f);ix.setStyles(r.parentNode,{overflow:"hidden"})}function c(i){d(undefined,Math.round(i*r[h?"offsetWidth":"offsetHeight"]*0.7))}function d(L,M){if(L===undefined){for(var K=0;K<j.length;K++){if(j[K]==ix.expanders[k.expKey].a){L=K;break}}}if(L===undefined){return}var G=r.getElementsByTagName("a"),z=G[L],w=z.parentNode,y=h?"Left":"Top",N=h?"Right":"Bottom",I=h?"Width":"Height",B="offset"+y,H="offset"+I,x=n.parentNode.parentNode[H],F=x-s[H],v=parseInt(s.style[h?"left":"top"])||0,C=v,D=20;if(M!==undefined){C=v-M;if(F>0){F=0}if(C>0){C=0}if(C<F){C=F}}else{for(var K=0;K<G.length;K++){G[K].className=""}z.className="ix-active-anchor";var J=L>0?G[L-1].parentNode[B]:w[B],A=w[B]+w[H]+(G[L+1]?G[L+1].parentNode[H]:0);if(A>x-v){C=x-A}else{if(J<-v){C=-J}}}var E=w[B]+(w[H]-g[H])/2+C;ix.animate(s,h?{left:C}:{top:C},null,"easeOutQuad");ix.animate(g,h?{left:E}:{top:E},null,"easeOutQuad");l.style.display=C<0?"block":"none";t.style.display=(C>F)?"block":"none"}var j=ix.anchors.groups[ix.expanders[k.expKey].slideshowGroup||"none"],f=k.thumbstrip,m=f.mode||"horizontal",u=(m=="float"),o=u?["div","ul","li","span"]:["table","tbody","tr","td"],h=(m=="horizontal"),r=ix.createElement("div",{className:"ix-thumbstrip ix-thumbstrip-"+m,innerHTML:'<div class="ix-thumbstrip-inner"><'+o[0]+"><"+o[1]+"></"+o[1]+"></"+o[0]+'></div><div class="ix-scroll-up"><div></div></div><div class="ix-scroll-down"><div></div></div><div class="ix-marker"><div></div></div>'},{display:"none"},ix.container),e=r.childNodes,n=e[0],l=e[1],t=e[2],g=e[3],s=n.firstChild,a=r.getElementsByTagName(o[1])[0],b;for(var q=0;q<j.length;q++){if(q==0||!h){b=ix.createElement(o[2],null,null,a)}(function(){var v=j[q],i=ix.createElement(o[3],null,null,b),w=q;ix.createElement("a",{href:v.href,title:v.title,onclick:function(){if(/ix-active-anchor/.test(this.className)){return false}ix.getExpander(this).focus();return ix.transit(v)},innerHTML:ix.stripItemFormatter?ix.stripItemFormatter(v):v.innerHTML},null,i)})()}if(!u){l.onclick=function(){c(-1)};t.onclick=function(){c(1)};ix.addEventListener(a,document.onmousewheel!==undefined?"mousewheel":"DOMMouseScroll",function(i){var v=0;i=i||window.event;if(i.wheelDelta){v=i.wheelDelta/120;if(ix.opera){v=-v}}else{if(i.detail){v=-i.detail/3}}if(v){c(-v*0.2)}if(i.preventDefault){i.preventDefault()}i.returnValue=false})}return{add:p,selectThumb:d}};ix.langDefaults=ix.lang;var ixExpander=ix.Expander;if(ix.ie&&window==window.top){(function(){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,50);return}ix.ready()})()}ix.addEventListener(document,"DOMContentLoaded",ix.ready);ix.addEventListener(window,"load",ix.ready);ix.addEventListener(document,"ready",function(){if(ix.expandCursor||ix.dimmingOpacity){var d=ix.createElement("style",{type:"text/css"},null,document.getElementsByTagName("HEAD")[0]),c=document.compatMode=="BackCompat";function b(f,g){if(ix.ie&&(ix.uaVersion<9||c)){var e=document.styleSheets[document.styleSheets.length-1];if(typeof(e.addRule)=="object"){e.addRule(f,g)}}else{d.appendChild(document.createTextNode(f+" {"+g+"}"))}}function a(e){return"expression( ( ( ignoreMe = document.documentElement."+e+" ? document.documentElement."+e+" : document.body."+e+" ) ) + 'px' );"}if(ix.expandCursor){b(".ix img","cursor: url("+ix.graphicsDir+ix.expandCursor+"), pointer !important;")}b(".ix-viewport-size",ix.ie&&(ix.uaVersion<7||c)?"position: absolute; left:"+a("scrollLeft")+"top:"+a("scrollTop")+"width:"+a("clientWidth")+"height:"+a("clientHeight"):"position: fixed; width: 100%; height: 100%; left: 0; top: 0")}});ix.addEventListener(window,"resize",function(){ix.getPageSize();if(ix.viewport){for(var a=0;a<ix.viewport.childNodes.length;a++){var b=ix.viewport.childNodes[a],c=ix.getExpander(b);c.positionOverlay(b);if(b.ixId=="thumbstrip"){c.slideshow.thumbstrip.selectThumb()}}}});ix.addEventListener(document,"mousemove",function(a){ix.mouse={x:a.clientX,y:a.clientY}});ix.addEventListener(document,"mousedown",ix.mouseClickHandler);ix.addEventListener(document,"mouseup",ix.mouseClickHandler);ix.addEventListener(document,"ready",ix.getAnchors);ix.addEventListener(window,"load",ix.preloadImages)};

if (ix.addSlideshow) ix.addSlideshow({interval: 5000,repeat: false,useControls: true,fixedControls: 'fit',overlayOptions: {opacity: .75,position: 'bottom center',hideOnMouseOut: true}});
