/**
 * @version		1.5.1 March 18, 2010
 * @author		RocketTheme, LLC http://www.rockettheme.com
 * @copyright 	Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license		http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
 */

var RokBuildSpans=function(g,j,k){(g.length).times(function(i){var e="."+g[i];var f=function(a){a.setStyle('visibility','visible');var b=a.getText();var c=b.split(" ");first=c[0];rest=c.slice(1).join(" ");html=a.innerHTML;if(rest.length>0){var d=a.clone().setText(' '+rest),span=new Element('span').setText(first);span.inject(d,'top');a.replaceWith(d)}};$$(e).each(function(c){j.each(function(h){c.getElements(h).each(function(b){var a=b.getFirst();if(a&&a.getTag()=='a')f(a);else f(b)})})})})};


/**
 * @version		1.5.1 March 18, 2010
 * @author		RocketTheme, LLC http://www.rockettheme.com
 * @copyright 	Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license		http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
 */

window.addEvent('domready', function() {
	new SmoothScroll();
});

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('c m=u,3;g.k(\'14\',5(){c p=$(\'13-12\');2(p){m=7 J.15(g);p.a(\'16\',\'B\').k(\'o\',5(e){7 z(e).y();m.R()})};2(g.18){c r=$(\'17-11\').10(\'.h\');2(r.q){r.S(5(h,i){2(h.U(\'G\'))h.T(\'h-G\')})}}3=7 A(g.Z);c n=$$(\'.Y 19\');2(n.q){2(g.1a)n.a(\'-1m-I-E\',\'K\');2(g.H)n.a(\'-H-I-E\',\'K\')}});c A=7 1d({4:{\'8\':\'\',\'t\':u,\'j\':1c,\'v\':0.9,\'p\':s,\'M\':s,\'C\':s},1e:5(4){1.1f(4);2(!1.4.8.q)d;1.8=$$(1.4.8);1.3=$(\'D-3\');1.l=$(\'D-3-6\');1.f=\'6\';2(!1.3)d;2(!1.4.C&&1.l)1.l.a(\'1h\',\'B\');2(1.4.t)1.3.a(\'1o\',\'1n\');1.x(1.3);1.w=7 J.X(1.3,\'v\',{1k:u,1j:1i}).1g(0);1.N(1.8)},x:5(3){2(!1.4.t)d;c j=1.4.j;d 3.a(\'j\',j)},N:5(8){2(1.l){1.l.k(\'o\',5(e){7 z(e).y();1.6()}.O(1))};2(1.4.M){1.3.k(\'o\',1.6.O(1))}8.S(5(P){P.k(\'o\',1.Q.1b(1))},1)},Q:5(e){7 z(e).y();1[(1.f==\'b\')?\'6\':\'b\']()},b:5(){2(1.f=="b")d;1.x(1.3);2(m)m.R();1.w.L(1.4.v);1.f=\'b\';1.F(\'b\')},6:5(){2(1.f==\'6\')d;1.w.L(0);1.f=\'6\';1.F(\'6\')}});A.W(7 V,7 1l);',62,87,'|this|if|panel|options|function|close|new|hooks||setStyle|open|var|return||status|window|separator||height|addEvent|panelClose|rokscroll|styles|click|scrollToTop|length|separators|true|fixedHeight|false|opacity|fx|setHeight|stop|Event|showcasePanel|none|showCloseButton|showcase|radius|fireEvent|daddy|webkit|border|Fx|12px|start|closeByClick|addEvents|bind|hook|toggle|toTop|each|addClass|hasClass|Options|implement|Style|styleslist|showcasePanelOptions|getElements|menu|scroll|top|domready|Scroll|outline|horiz|ie6|div|gecko|bindWithEvent|337|Class|initialize|setOptions|set|display|300|duration|wait|Events|moz|hidden|overflow'.split('|'),0,{}))


// IE6 bad looking hack :)
if (window.ie6) {
	window.addEvents({
		'domready': function() {
			$(document.body).addClass('ie-please-wait').setStyle('visibility', 'hidden');
		},
	
		'load': function() {
			(function() {$(document.body).removeClass('ie-please-wait').setStyle('visibility', 'visible');}).delay(10);
			var arrow = $$('.feature-arrow-r')[0], li = $$('ul.menutop').getFirst()[0];
			if (arrow) arrow.fireEvent('mouseleave', false, 500);
			if (li) li.addEvents({
				'mouseenter': function() {
					li.setStyle('padding-right', 1);
				},
				'mouseleave': function() {
					li.setStyle('padding-right', 0);
				}
			});
			
		},
		
		'unload': function() {
			$(document.body).addClass('ie-please-wait').setStyle('visibility', 'hidden');
		}
	});
}

// IE7 RokStories Hack
if (window.ie) {
	window.addEvent('domready', function() {
		
		var rokstories = $$('.rokstories-layout2 .desc-container'), list = [];
		rokstories.each(function(rokstory, i) {
			if (!rokstory.getElements('.description span').length) list.push(i);
		});
		if (list.length) list.each(function(value) {
			rokstories[value].setStyle('display', 'none');
		});

	});
}

/**
 * @version		1.5.1 March 18, 2010
 * @author		RocketTheme, LLC http://www.rockettheme.com
 * @copyright 	Copyright (C) 2007 - 2010 RocketTheme, LLC
 * @license		http://www.rockettheme.com/legal/license.php RocketTheme Proprietary Use License
 */

var InputsExclusion = ['.content_vote'];

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 3={12:1.5,L:4(){3.8=13 14({\'B\':[]});6 b=$$(\'t[u=C]\');6 c=$$(M.N(\' t[u=C], \')+\' t[u=C]\');c.x(4(a){b=b.O(a)});b.x(4(a,i){3.y(\'8\',\'B\',a);0(3.8.P(a.7))3.y(\'8\',a.7,a);9 3.8.D(a.7,[a]);3.E(a,\'Q\').p(a,\'Q\')});b=$$(\'t[u=F]\');6 c=$$(M.N(\' t[u=F], \')+\' t[u=F]\');c.x(4(a){b=b.O(a)});b.x(4(a,i){3.y(\'8\',\'B\',a);0(3.8.P(a.7))3.y(\'8\',a.7,a);9 3.8.D(a.7,[a]);3.E(a,\'G\').p(a,\'G\')})},E:4(a,b){6 c=a.q(),2=a.r(),7=a.7.R(\'[\',\'\').R(\']\',\'\');0(c&&c.m()==\'n\'){a.S(\'T\',\'U\');c.o(\'j\'+b+\' j\'+7);0(a.v)c.o(\'j\'+b+\'-w\')}9 0(2&&2.m()==\'n\'){a.S(\'T\',\'U\');2.o(\'j\'+b+\' j\'+7);0(a.v)2.o(\'j\'+b+\'-w\')}H 3},p:4(a,b){a.p(\'z\',4(){0(s.k){0(a.k)3.I(a,b);a.k=J}9 3.I(a,b)});0(s.k||s.V||(a.q()&&!a.q().W(\'X\'))){6 c=a.q(),2=a.r();0(c&&c.m()==\'n\'&&(s.V||(s.k&&!a.k))){c.p(\'z\',4(){0(s.k&&!a.k)a.k=15;a.Y(\'z\')})}9 0(2&&2.m()==\'n\'||(a.r()&&!a.r().W(\'X\'))){2.p(\'z\',4(){a.Y(\'z\')})}}H 3},I:4(d,e){0(e==\'G\'){6 f=d.q(),2=d.r(),l="j"+e+"-w";6 g=((f)?f.m()==\'n\':J);6 h=((2)?2.m()==\'n\':J);0(g||h){0(g){0(f.A(l)&&g)f.K(l);9 0(!f.A(l)&&g)f.o(l)}9 0(h){0(2.A(l)&&h)2.K(l);9 0(!2.A(l)&&h)2.o(l)}}}9{3.8.Z(d.7).x(4(a){6 b=a.q(),2=a.r();6 c=d.q(),10=d.r();$$(b,2).K(\'j\'+e+\'-w\');0(b&&b.m()==\'n\'&&c==b){a.11(\'v\',\'v\');b.o(\'j\'+e+\'-w\')}9 0(2&&2.m()==\'n\'&&10==2){2.o(\'j\'+e+\'-w\');a.11(\'v\',\'v\')}})}},y:4(a,b,c){6 d=3[a].Z(b);d.16(c);H 3[a].D(b,d)}};s.p(\'17\',3.L);',62,70,'if||parent|InputsMorph|function||var|name|list|else||||||||||rok|opera|cls|getTag|label|addClass|addEvent|getNext|getParent|window|input|type|checked|active|each|setArray|click|hasClass|all|radio|set|morph|checkbox|checks|return|switchReplacement|false|removeClass|init|InputsExclusion|join|remove|hasKey|radios|replace|setStyle|display|none|ie|getProperty|for|fireEvent|get|radioparent|setProperty|version|new|Hash|true|push|domready'.split('|'),0,{}))

/**
 * RokStories Module
 *
 * @package		Joomla
 * @subpackage	RokStories Module
 * @copyright Copyright (C) 2009 RocketTheme. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see RT-LICENSE.php
 * @author RocketTheme, LLC
 *
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('n 1G=g 2q({2r:1.5,7:{1H:0,15:2s,1I:2t,U:0.3,1q:16,17:2u,1J:\'s\',j:\'2v\',1K:k,1L:k,1r:16,1M:{x:0,y:0},1N:{x:0,y:0}},1s:4(a,b){2.2w(b);2.m=$(a)||V;2.j=2.7.j;6(!2.m)1t;2.G=V;2.o=2.7.1H;2.A=2.m.L(\'.1u-p\')[0];2.p=1O[\'u-\'+2.7.1v];2.h=2.m.L(\'.1u-h 2x\');2.W=2.m.L(\'.1P-1Q .2y\');6(2.j==\'18\')2.19=2.m.L(\'.19-1R .M-2z-1R\');6(!2.p.8||!2.h.8||!2.W.8)1t;2.1w=1O[\'u-\'+2.7.1v];2.X=[];6(2.j==\'18\'){2.Y=[];2.1x=2.m.1a(\'.M-1S-l\');2.1y=2.m.1a(\'.M-1S-r\');6(2.1x&&2.1y)2.1T();(2.19.8).1U(4(i){2.Y.1b(g C.N(2.19[i],{D:k,E:O}).q({\'e\':0}))}.1z(2))}1A 6(2.j==\'1V\'||2.j==\'1c\'){2.h.1d(\'2A\',\'2B\');2.m.1a(\'.1P-1Q\').H(2.A).2C({\'2D\':\'2E\',\'z-2F\':5});6(2.j==\'1c\')2.m.1a(\'.M-2G\').H(2.A);2.I=2.m.L(\'.M-I-1W\');6(2.j==\'1c\')2.I=2.m.L(\'.M-1X-1W\');6(2.I.8==2.h.8)2.1Y();1A 2H g 2I(\'2J 2K\\\'t 2L 2M 1X 2N 1w\');}(2.1w.8).1U(4(i){2.X.1b(V)}.1z(2));2.P=[];2.Z=[];6(2.p.8!=2.h.8&&2.p.8!=2.W.8)1t;2.8=2.p.8;2.1Z=2.h[0].20();2.1e=2.W[0].20();2.A.F(\'u-10\');2.1e.F(\'u-10\');2.h.1d(\'e\',2.7.U);2.21=g C.N(2.1e,{D:k,E:O}).q({v:0});2.1f=g C.N(2.A,{D:k,E:O}).q({v:0});6(!1g.2O&&!1g.2P)2.1f.q({\'w\':(1g.2Q)?\'2R%\':2.7.15});2.1f.f({v:2.7.1I});2.22();2.1B=16},23:4(){n c=2;2.h.J(4(b,i){c.P.1b(g C.N(b,{D:k,E:O}).q({\'e\':c.7.U}));b.1h({\'s\':4(){$1i(c.G);c.A.F(\'u-10\');c.X.J(4(a){6(a)a.f({\'e\':0})});6(c.7.j==\'1V\'||c.7.j==\'1c\')c.1C(i);c.1D(i)},\'11\':4(){6(c.7.1J==\'11\')b.Q(\'s\');6(i!=c.o)c.P[i].f({\'e\':1})},\'1j\':4(){6(i!=c.o)c.P[i].f({\'e\':c.7.U})}})})},1Y:4(){2.I.J(4(a,i){a.24(\'s\',4(){2.h[i].Q(\'s\');2.1C(i)}.1z(2))},2)},1C:4(i){2.I.B(\'25\');2.I[i].F(\'25\')},1T:4(){n c=2.1x,K=2.1y,9=2;c.1h({\'11\':4(){c.F(\'12-1k\')},\'1j\':4(){c.B(\'12-1k\').B(\'12-R\')},\'26\':4(){c.F(\'12-R\')},\'27\':4(){c.B(\'12-R\')},\'s\':4(){9.28();6(9.1l){9.1l.29();9.1l.Q(\'1m\')}}});K.1h({\'11\':4(){K.F(\'13-1k\')},\'1j\':4(){K.B(\'13-1k\').B(\'13-R\')},\'26\':4(){K.F(\'13-R\')},\'27\':4(){K.B(\'13-R\')},\'s\':4(){9.14();6(9.1n){9.1n.29();9.1n.Q(\'1m\')}}});6(2.7.1L){2.1l=g 2a(c,{2b:\'u\',2c:9.7.1r,2d:9.7.1M,1s:4(){2.1o=g 2e(\'2f\',{\'2g\':\'2h-2i\'}).H(2.1p);2.S=g C.2j(2.1p,\'e\',{E:2k,D:k}).q(0)},1m:4(a){n b=9.o-1;6(b<0)b=9.h.8-1;9.h[b].2l().H(2.1o.2m());2.S.f(1)},2n:4(a){2.S.f(0)}});2.1n=g 2a(K,{2b:\'u\',2c:9.7.1r,2d:9.7.1N,1s:4(){2.1o=g 2e(\'2f\',{\'2g\':\'2h-2i\'}).H(2.1p);2.S=g C.2j(2.1p,\'e\',{E:2k,D:k}).q(0)},1m:4(a){n b=9.o+1;6(b>9.h.8-1)b=0;9.h[b].2l().H(2.1o.2m());2.S.f(1)},2n:4(a){2.S.f(0)}})}},1D:4(a){n b=2;6($2S(2.p[a])!=\'2T\'){b.2o(a,2.p[a]);b.1B=k}1A{g 2U.1u(2.p[a],{2V:4(){$1i(b.G);b.p[a]=2.H(b.A);6(b.7.1K){2.1d(\'2W\',\'2X\').24(\'s\',4(){1g.2Y=2Z[\'u-\'+b.7.1v][a].30(/&31;/32,"&")})};b.X[a]=g C.N(b.p[a],{D:k,E:O}).q({\'e\':0});b.1E.17(33,b);b.1D(a);b.1B=k}})}},2o:4(b,c){n d=2;2.1f.T().q({\'w\':c.w}).f({v:c.v});d.A.B(\'u-10\');d.Z.J(4(a){a.f({\'e\':0})});d.P.J(4(a){a.f({\'e\':d.7.U})});6(d.j==\'18\')d.Y.J(4(a){a.f({\'e\':0})});d.X[b].T().f({\'e\':1});6(d.j==\'18\'&&d.Y.8)d.Y[b].T().f({\'e\':1});d.Z[b].T().f({\'e\':1});d.P[b].T().f({\'e\':1});d.o=b;6(d.7.1q&&!d.1F)d.G=d.14.2p(d.7.17,d)},22:4(){n a=2;2.1E();2.23();6(2.7.1q){2.m.1h({\'11\':4(){$1i(a.G);a.1F=16},\'1j\':4(){$1i(a.G);a.1F=k;a.G=a.14.2p(a.7.17,a)}})};2.14(2.o)},1E:4(){n c={w:0,v:0};2.1Z.1d(\'w\',(2.7.15==\'34\')?2.A.35(\'w\'):2.7.15);2.W.J(4(a){6(2.Z.8<2.8)2.Z.1b(g C.N(a,{D:k,E:O}).q({\'e\':0}));n b=a.36().37;6(b.x>c.w)c.w=b.x;6(b.y>c.v)c.v=b.y},2);2.21.T().q(\'w\',c.w).f({v:c.v});2.1e.B(\'u-10\')},14:4(a){n b=(a!=V)?a:2.o+1;6(b>2.8-1)b=0;2.o=b;2.h[b].Q(\'s\')},28:4(a){n b=(a!=V)?a:2.o-1;6(b<0)b=2.8-1;2.o=b;2.h[b].Q(\'s\')}});1G.38(g 39);',62,196,'||this||function||if|options|length|self|||||opacity|start|new|small||layout|false||element|var|current|full|set||click||rokstories|height|width||||fullParent|removeClass|Fx|wait|duration|addClass|timer|inject|circles|each|right|getElements|feature|Styles|400|smallFx|fireEvent|down|fx|stop|thumbsOpacity|null|descs|fullFx|labelsFx|descsFx|spinner|mouseenter|arrowleft|arrowright|next|startWidth|true|delay|layout2|labels|getElement|push|layout4|setStyle|descsParent|fullParentFx|window|addEvents|clear|mouseleave|hover|tipsLeft|onShow|tipsRight|rokTip|toolTip|autorun|fixedThumb|initialize|return|image|id|images|arrowLeft|arrowRight|bind|else|loading|circleSwitch|load|setDescSizes|pause|RokStories|startElement|startHeight|mousetype|linkedImgs|showThumbs|thumbLeftOffsets|thumbRightOffsets|RokStoriesImage|desc|container|title|arrow|arrowsEvents|times|layout3|sub|number|circlesEvents|smallParent|getParent|descsParentFx|setSizes|addThumbsEvents|addEvent|active|mousedown|mouseup|previous|hide|Tips|className|fixed|offsets|Element|div|class|tip|wrapper|Style|300|clone|empty|onHide|transition|periodical|Class|version|410|200|3000|layout1|setOptions|img|description|block|display|none|setStyles|position|absolute|index|numbers|throw|Error|Circles|don|match|the|of|webkit|gecko|ie|100|type|string|Asset|onload|cursor|pointer|location|RokStoriesLinks|replace|amp|gi|70|auto|getStyle|getSize|size|implement|Options'.split('|'),0,{}))

		//<![CDATA[
		window.addEvent('domready', function() {
			var modules = ['side-mod', 'showcase-panel', 'moduletable', 'article-rel-wrapper'];
			var header = ['h3','h2','h1'];
			RokBuildSpans(modules, header);
		});
		InputsExclusion.push('.content_vote')
		//]]>




jQuery("document").ready(function(){
	// register ajax gallery-navigation listeners
	jQuery("a.page-numbers").click(function(e) {
		return ngg_ajax_navigation(e, this);
	});
	jQuery("a.prev").click(function(e) {
		return ngg_ajax_navigation(e, this);
	});
	jQuery("a.next").click(function(e) {
		return ngg_ajax_navigation(e, this);
	});
	
	// register ajax browser-navigation listeners
	jQuery("a.ngg-browser-next").click(function(e) {
		return ngg_ajax_browser_navigation(e, this);
	});
	jQuery("a.ngg-browser-prev").click(function(e) {
		return ngg_ajax_browser_navigation(e, this);
	});
});

function ngg_ajax_navigation(e, obj) {
	// try to find page number
	var pageNumber = 0;
	if (jQuery(obj).hasClass("page-numbers")) {
		pageNumber = jQuery(obj).contents()[0].data;
	} else if (jQuery(obj).hasClass("prev")) {
		pageNumber = jQuery(obj).attr("id").substr(9);
	} else if (jQuery(obj).hasClass("next")) {
		pageNumber = jQuery(obj).attr("id").substr(9);
	}
	
	// try to find gallery number by checking the parents ID until we find a matching one
	var currentNode = obj;
	while (null != currentNode.parentNode && !jQuery.nodeName(currentNode.parentNode, "body") && "ngg-gallery-" != jQuery(currentNode.parentNode).attr("id").substring(0, 12)) {
		currentNode = currentNode.parentNode;
	}
	
	if (jQuery(currentNode.parentNode).attr("id")) {
		var gallery = jQuery(currentNode.parentNode);

		// we found a gallery, let's extract the post id & gallery id
		var payload = gallery.attr("id").substring(12);
		var separatorPosition = parseInt(payload.indexOf("-"));
		
		var galleryId = payload.substr(0, separatorPosition);
		var postId = payload.substr(separatorPosition + 1);

		if ( (galleryId.length == 0) || (postId.length == 0) ) {
			return true;
		}
				
		ngg_show_loading(e);
		
		// load gallery content
		jQuery.get(ngg_ajax.callback, {p: postId, galleryid: galleryId, nggpage: pageNumber, type: "gallery"}, function (data, textStatus) {
			
			// delete old content
			gallery.children().remove();
			
			// add new content
			gallery.replaceWith(data);
			
			// add ajax-navigation, again
			jQuery("document").ready(function(){
				// remove old listeners to avoid double-clicks
				jQuery("a.page-numbers").unbind("click");
				jQuery("a.prev").unbind("click");
				jQuery("a.next").unbind("click");
				
				// add shutter-listeners again
				shutterReloaded.init('sh');
				
				jQuery("a.page-numbers").click(function(e) {
					return ngg_ajax_navigation(e, this);
				});
				jQuery("a.prev").click(function(e) {
					return ngg_ajax_navigation(e, this);
				});
				jQuery("a.next").click(function(e) {
					return ngg_ajax_navigation(e, this);
				});
				
				ngg_remove_loading();
			});
		});
		
		// deactivate HTML link
		return false;
	}
	
	// an error occurred, use traditional HTML link
	return true;
};

function ngg_ajax_browser_navigation(e, obj) {
	

	// try to find gallery number
	if ("ngg-prev-" == jQuery(obj).attr("id").substr(0, 9) || "ngg-next-" == jQuery(obj).attr("id").substr(0, 9)) {
		
		// extract the image-id
		var imageNumber = jQuery(obj).attr("id").substr(9);

		// find the image-browser-container
		var currentNode = obj;
		while (null != currentNode.parentNode && !jQuery.nodeName(currentNode.parentNode, "body") && !jQuery(currentNode.parentNode).hasClass("ngg-imagebrowser")) {
			currentNode = currentNode.parentNode;
		}
		
		if (jQuery(currentNode.parentNode).hasClass("ngg-imagebrowser")) {
			var gallery = jQuery(currentNode.parentNode);

			// let's extract the post id & gallery id
			var payload = gallery.attr("id").substring(17);
			var separatorPosition = parseInt(payload.indexOf("-"));
			
			var galleryId = payload.substr(0, separatorPosition);
			var postId = payload.substr(separatorPosition + 1);
			
			if ( (galleryId.length == 0) || (postId.length == 0) ) {
				return true;
			}
			
			ngg_show_loading(e);
			
			// get content
			jQuery.get(ngg_ajax.callback, {p: postId, galleryid: galleryId, pid: imageNumber, type: "browser"}, function (data, textStatus) {
				// delete old content
				gallery.children().remove();
				
				// add new content
				gallery.replaceWith(data);
				
				// add ajax-navigation, again
				jQuery("document").ready(function(){
					// remove old listeners to avoid double-clicks
					jQuery("a.ngg-browser-next").unbind("click");
					jQuery("a.ngg-browser-prev").unbind("click");
					
					// add shutter-listeners again
					shutterReloaded.init('sh');
					
					// register ajax browser-navigation listeners
					jQuery("a.ngg-browser-next").click(function(e) {
						return ngg_ajax_browser_navigation(e, this);
					});
					jQuery("a.ngg-browser-prev").click(function(e) {
						return ngg_ajax_browser_navigation(e, this);
					});
					
					ngg_remove_loading();
				});
			});
	
			// deactivate HTML link
			return false;
		}
	}
	
	return true;
}

var loadingImage;
function ngg_show_loading(obj) {
	loadingImage = jQuery(document.createElement("img")).attr("src", ngg_ajax.path + "images/ajax-loader.gif").attr("alt", ngg_ajax.loading);

	jQuery("body").append(loadingImage);
	
	jQuery(loadingImage).css({
		position: "absolute",
		top: (obj.pageY + 15) + "px",
		left: (obj.pageX + 15) + "px"
	});
	
	jQuery(document).mousemove(function(e) {
		loadingImage.css({
			top: (e.pageY + 15) + "px",
			left: (e.pageX + 15) + "px"
		});
	});
}

function ngg_remove_loading() {
	jQuery(document).unbind("mousemove");
	
	jQuery(loadingImage).remove();
}



var TINY={};

function tid(i){return document.getElementById(i)}
function tag(e,p){p=p||document; return p.getElementsByTagName(e)}

TINY.slideshow=function(n){
	this.infoSpeed=this.imgSpeed=this.speed=10;
	this.thumbOpacity=this.navHover=70;
	this.navOpacity=25;
	this.scrollSpeed=5;
	this.letterbox='#000';
	this.n=n;
	this.c=0;
	this.a=[]
};

TINY.slideshow.prototype={
	init:function(s,z,b,f,q){
		s=tid(s);
		var m= tag('li',s), i=0, w=0;
		this.l=m.length;
		this.q=tid(q);
		this.f=tid(z);
		this.r=tid(this.info);
		this.o=parseInt(TINY.style.val(z,'width'));
		
		if(this.thumbs){
			var u=tid(this.left), r=tid(this.right);
			u.onmouseover=new Function('TINY.scroll.init("'+this.thumbs+'",-1,'+this.scrollSpeed+')');
			u.onmouseout=r.onmouseout=new Function('TINY.scroll.cl("'+this.thumbs+'")');
			r.onmouseover=new Function('TINY.scroll.init("'+this.thumbs+'",1,'+this.scrollSpeed+')');
			this.p=tid(this.thumbs)
		}
		
		for(i;i<this.l;i++){
			this.a[i]={};
			var h=m[i], a=this.a[i];
			a.t= tag('h3',h)[0].innerHTML;
			a.d= tag('p',h)[0].innerHTML;
			a.l= tag('a',h)[0]? tag('a',h)[0].href:'';
			a.p= tag('span',h)[0].innerHTML;
			if(this.thumbs){
				var g = tag('img',h)[0];
				this.p.appendChild(g);
				w+=parseInt(g.offsetWidth);
				if(i!=this.l-1){
					g.style.marginRight=this.spacing+'px';
					w+=this.spacing
				}
				this.p.style.width=w+'px';
				g.style.opacity=this.thumbOpacity/100;
				g.style.filter='alpha(opacity='+this.thumbOpacity+')';
				g.onmouseover=new Function('TINY.alpha.set(this,100,5)');
				g.onmouseout=new Function('TINY.alpha.set(this,'+this.thumbOpacity+',5)');
				g.onclick=new Function(this.n+'.pr('+i+',1)')
			}
		}
		if(b&&f){
			b=tid(b);
			f=tid(f);
			b.style.opacity=f.style.opacity=this.navOpacity/100;
			b.style.filter=f.style.filter='alpha(opacity='+this.navOpacity+')';
			b.onmouseover=f.onmouseover=new Function('TINY.alpha.set(this,'+this.navHover+',5)');
			b.onmouseout=f.onmouseout=new Function('TINY.alpha.set(this,'+this.navOpacity+',5)');
			b.onclick=new Function(this.n+'.mv(-1,1)');
			f.onclick=new Function(this.n+'.mv(1,1)')
		}
		this.auto?this.is(0,0):this.is(0,1)
	},
	mv:function(d,c){
		var t=this.c+d;
		this.c=t=t<0?this.l-1:t>this.l-1?0:t;
		this.pr(t,c)
	},
	pr:function(t,c){
		clearTimeout(this.lt);
		if(c){
			clearTimeout(this.at)
		}
		this.c=t;
		this.is(t,c)
	},
	is:function(s,c){
		if(this.info){
			TINY.height.set(this.r,1,this.infoSpeed/2,-1)
		}
		var i=new Image();
		i.style.opacity=0;
		i.style.filter='alpha(opacity=0)';
		this.i=i;
		i.onload=new Function(this.n+'.le('+s+','+c+')');
		i.src=this.a[s].p;
		if(this.thumbs){
			var a= tag('img',this.p), l=a.length, x=0;
			for(x;x<l;x++){
				a[x].style.borderColor=x!=s?'':this.active
			}
		}
	},
	le:function(s,c){
		this.f.appendChild(this.i);
		var w=this.o-parseInt(this.i.offsetWidth);
		if(w>0){
			var l=Math.floor(w/2);
			this.i.style.borderLeft=l+'px solid '+this.letterbox;
			this.i.style.borderRight=(w-l)+'px solid '+this.letterbox
		}
		TINY.alpha.set(this.i,100,this.imgSpeed);
		var n=new Function(this.n+'.nf('+s+')');
		this.lt=setTimeout(n,this.imgSpeed*100);
		if(!c){
			this.at=setTimeout(new Function(this.n+'.mv(1,0)'),this.speed*1000)
		}
		if(this.a[s].l != ""){
			this.q.onclick = new Function('window.location="'+this.a[s].l+'"');
			this.q.onmouseover = new Function('this.className="'+this.link+'"');
			this.q.onmouseout = new Function('this.className=""');
			this.q.style.cursor = 'pointer';
		}else{
			this.q.onclick=this.q.onmouseover=null;
			this.q.style.cursor='default';
		}
		var m= tag('img',this.f);
		if(m.length > 2){
			this.f.removeChild(m[0])
		}
	},
	nf:function(s){
		if(this.info){
			s=this.a[s];
			tag('h3',this.r)[0].innerHTML=s.t;
			tag('p',this.r)[0].innerHTML=s.d;
			this.r.style.height='auto';
			var h=parseInt(this.r.offsetHeight);
			this.r.style.height=0;
			TINY.height.set(this.r,h,this.infoSpeed,0)
		}
	}
};

TINY.scroll=function(){
	return{
		init:function(e,d,s){
			e=typeof e=='object'?e: tid(e); var p=e.style.left||TINY.style.val(e,'left'); e.style.left=p;
			var l=d==1?parseInt(e.offsetWidth)-parseInt(e.parentNode.offsetWidth):0; e.si=setInterval(function(){TINY.scroll.mv(e,l,d,s)},20)
		},
		mv:function(e,l,d,s){
			var c=parseInt(e.style.left); if(c==l){TINY.scroll.cl(e)}else{var i=Math.abs(l+c); i=i<s?i:s; var n=c-i*d; e.style.left=n+'px'}
		},
		cl:function(e){e=typeof e=='object'?e: tid(e); clearInterval(e.si)}
	}
}();

TINY.height=function(){
	return{
		set:function(e,h,s,d){
			e=typeof e=='object'?e:tid(e); var oh=e.offsetHeight, ho=e.style.height||TINY.style.val(e,'height');
			ho=oh-parseInt(ho); var hd=oh-ho>h?-1:1; clearInterval(e.si); e.si=setInterval(function(){TINY.height.tw(e,h,ho,hd,s)},20)
		},
		tw:function(e,h,ho,hd,s){
			var oh=e.offsetHeight-ho;
			if(oh == h){clearInterval(e.si)}else{if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}}
		}
	}
}();

TINY.alpha=function(){
	return{
		set:function(e,a,s){
			e=typeof e=='object'?e:tid(e); var o=e.style.opacity||TINY.style.val(e,'opacity'),
			d=a>o*100?1:-1; e.style.opacity=o; clearInterval(e.ai); e.ai=setInterval(function(){TINY.alpha.tw(e,a,d,s)},20)
		},
		tw:function(e,a,d,s){
			var o=Math.round(e.style.opacity*100);
			if(o==a){clearInterval(e.ai)}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d; e.style.opacity=n/100; e.style.filter='alpha(opacity='+n+')'}
		}
	}
}();

TINY.style=function(){return{val:function(e,p){e=typeof e=='object'?e:tid(e); return e.currentStyle?e.currentStyle[p]:document.defaultView.getComputedStyle(e,null).getPropertyValue(p)}}}();


/* Fusion Menu
 *
 * @package		Joomla
 * @subpackage	Fusion Menu
 * @copyright Copyright (C) 2009 RocketTheme. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see RT-LICENSE.php
 * @author RocketTheme, LLC
 *
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('A 2A=W 2B({3j:"1.9.2",4:{1S:1a,1b:{x:0,y:0},T:{x:0,y:0},1o:1T,t:{x:\'C\',y:\'1p\'},M:\'U 1d 13\',14:\'1c\',u:1,2C:3k,1e:{18:3l,19:1q.2D.3m.2E},1j:{18:3n,19:1q.2D.3o.2E}},2F:7(e,f){3.N=$$(e)[0];3.o=$$(\'.1f\')[0];5(3.o)3.o=3.o.o;3.2G(f);A g=3.N.1r(\'.15\'),2e=3.4;3.O=$(1g.1k).1l(\'t\')==\'O\';5(3.O){3.4.t.x=\'p\';3.4.1b.x*=-1;3.4.T.x*=-1}5(3.4.1o){A h=W 1C(\'1D\',{\'1s\':\'1f-1o-l\'}).1U(3.N,\'3p\').G(\'D\',\'F\'),1t=3;W 1C(\'1D\',{\'1s\':\'1f-1o-r\'}).1U(h);3.2H=3.N.1r(\'.H\');A j=3.N.2f(\'.3q\');3.1V=h.1l(\'q-p\').2g()+h.1l(\'q-C\').2g();5(!j){3.4.1o=1a}m{h.G(\'D\',\'1x\');3.1W={\'p\':j.2h,\'s\':j.2i-3.1V};3.1j=W 1q.1E(h,{18:2e.1j.18,19:2e.1j.19,1F:1a}).B(3.1W);A k=3.2H.2j(7(a){X!a.2I(\'2k\')});$$(k).2l({\'2m\':7(){1t.1X=1T;1t.1j.I({\'p\':3.2h,\'s\':3.2i-1t.1V})},\'2n\':7(){1t.1X=1a;1t.1j.I(1t.1W)}})}};3.1G={};3.1u={};3.6={};3.2o={};3.1Y=[];3.1H=1Z;3.2p=1;g.1y(7(a,i){a.2J();3.1G[a.o]=a.J().2K(\'3r\',3.N).2f(\'.15\');3.6[a.o]=a.21(\'1f-1I-2q\',\'1s\')||a.21(\'22\')||a.21(\'2L\');5(3.6[a.o])a.1J=3.6[a.o].K();5(3.6[a.o]&&Y.16){A b=3.6[a.o].2f(\'22\');5(b){A c=b.1l(\'2r-1K\').2g()||0;a.1J.Q+=c}}A d=\'23\';5($(a.1L(\'1f-1I-2q\',\'1s\')||a.1L(\'22\')||a.1L(\'2L\'))===3.N)d=\'R\';3.2o[a.o]=d},3);3.2s=W 1C(\'1D\',{\'o\':3.o,\'1s\':\'1f-2M-3s 3t\'}).1U(1g.1k);A l=3.N.1r(\'.1f-1I-2q\');5(!l.3u)l=3.N.1r(\'22\');l.1y(7(a,b){A c=W 1C(\'1D\',{\'1s\':\'1f-2M-3v\'}).1U(3.2s).3w(a)},3);3.2s.1r(\'.15\').3x(\'3y\',\'-1\');g.1y(7(b,i){5(!3.6[b.o]){X}3.6[b.o]=3.6[b.o].1L(\'1D\');3.1Y.3z(3.6[b.o]);A c=[];3.1G[b.o].1y(7(a,i){c.2N(3.6[a.o])},3);3.1u[b.o]=c;A d=W 2t(3.4,3,b)},3)}});2A.2O(W 2P);A 2t=W 2B({4:{2Q:(7(a){}),2R:(7(a){}),2S:(7(a){}),2T:(7(a){}),2U:(7(a){}),2V:(7(a){}),2W:(7(a){}),2X:(7(a){}),2Y:(7(a){}),2Z:(7(a){}),30:(7(a){}),31:(7(a){}),32:(7(a){}),33:(7(a){})},H:1Z,8:1Z,34:1T,n:1Z,2F:7(c,d,f){3.2G(c);3.H=d;3.8=$(f);3.6=$(d.6[f.o]);3.P=d.2o[f.o];3.1u=$$(d.1u[f.o]);3.1G=$$(d.1G[f.o]);3.3A=$(3.1u[0]);3.24={};3.S={};3.O=d.O;3.4.1b=3.H.4.1b;3.4.T=3.H.4.T;3.4.1S=3.H.4.1S;3.6.V=\'17\';3.4.2Q(3);3.6.35(\'2u\',3.36.v(3));3.6.35(\'25\',3.26.v(3));A g=3.6;5(3.4.M){3.n=W 1q.1E(3.6.1v(),{18:3.4.1e.18,19:3.4.1e.19,1F:1a,3B:7(){5(Y.16)3.N.G(\'D\',\'1x\')},3C:7(){5(g.V==\'17\'){5(!Y.16){g.G(\'D\',\'F\')}m{3.N.G(\'D\',\'F\')}}}})}5(3.4.M==\'U\'||3.4.M==\'U 1d 13\'){5(3.P==\'R\'&&3.4.14==\'1c\')3.n.B({\'q-E\':\'0\'});m{5(!3.O)3.n.B({\'q-p\':\'0\'});m 3.n.B({\'q-C\':\'0\'})}}m 5(3.4.M==\'13\'||3.4.M==\'U 1d 13\')3.n.B({\'u\':0});5(3.4.M!=\'13\'&&3.4.M!=\'U 1d 13\')3.n.B({\'u\':3.4.u});A h=$(3.6).1r(\'.15\').2j(7(a,b){X!d.6[a.o]});h.1y(7(a,b){$(a).J().1m(\'f-1I-15\');a.J().2l({\'2m\':7(e){3.6.1M(\'25\');3.1h();3.1N()}.v(3),\'37\':7(e){3.6.1M(\'25\');3.1h();3.1N()}.v(3),\'2n\':7(e){3.1h();3.1O()}.v(3),\'38\':7(e){3.1h();3.1O()}.v(3)})},3);3.8.1z(\'1f-1I-15\');5(3.P==\'R\')3.8.J().1m(\'f-3D-2k\');m 3.8.J().1m(\'f-2k-15\');3.8.J().2l({\'2m\':7(e){3.1h();3.1N();3.26();5(3.P==\'R\'&&3.4.27&&3.4.1P){5(!3.S[3.8.o])3.S[3.8.o]={};5(!3.S[3.8.o][\'1i\'])3.S[3.8.o][\'1i\']=W 1q.1E(3.8,{\'18\':3.4.1e.18,19:3.4.1e.19,1F:1a});3.S[3.8.o][\'1i\'].I(3.4.1P)}}.v(3),\'37\':7(e){3.1h();3.1N();3.26();5(3.P==\'R\'&&3.4.27&&3.4.1P){5(!3.S[3.8.o])3.S[3.8.o]={};5(!3.S[3.8.o][\'1i\'])3.S[3.8.o][\'1i\']=W 1q.1E(3.8,{\'18\':3.4.1e.18,19:3.4.1e.19,1F:1a});3.S[3.8.o][\'1i\'].I(3.4.1P)}}.v(3),\'2n\':7(e){3.1h();3.1O()}.v(3),\'38\':7(e){3.1h();3.1O()}.v(3)});3.4.2R(3)},39:7(){5(3.3a||3.P===\'23\'){X}3.4.2S(3);A f=3.8.K().s;3.6.1r(\'.15\').1y(7(a,b){A c=28(3.6.1v().1l(\'2v-p-s\'))+28(3.6.1v().1l(\'2v-C-s\'));A d=28(a.1l(\'2r-p\'))+28(a.1l(\'2r-C\'));A e=c+d;5(f>a.K().s){a.G(\'s\',f-e);a.G(\'q-C\',-c)}}.v(3));3.s=3.8.1J.s;3.3a=1T;3.4.2T(3)},36:7(){5(3.6.V===\'17\'){X}3.4.2U(3);5(3.P==\'R\'){5(3.4.27&&3.4.1P){5(!3.S[3.8.o])3.S[3.8.o]={};5(!3.S[3.8.o][\'1i\'])3.S[3.8.o][\'1i\']=W 1q.1E(3.8,{\'18\':3.4.1e.18,19:3.4.1e.19,1F:1a});3.S[3.8.o][\'1i\'].I(3.4.27).L(7(){3.8.J().1z(\'f-1A-1Q\');3.8.J().1m(\'f-1A-15\')}.v(3))}m{3.8.J().1z(\'f-1A-1Q\');3.8.J().1m(\'f-1A-15\')}}m{3.8.J().1z(\'f-29-1Q\');3.8.J().1m(\'f-29-15\')}3.6.G(\'z-3b\',1);5(3.4.M&&3.4.M.3E()===\'U\'){5(3.P==\'R\'&&3.4.14==\'1c\'&&3.4.t.y==\'1p\'){3.n.I({\'q-E\':-3.Q}).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.P==\'R\'&&3.4.14==\'1c\'&&3.4.t.y==\'1w\'){3.n.I({\'q-E\':3.Q}).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.4.t.x==\'C\'){5(!3.O)w={\'q-p\':-3.s};m w={\'q-C\':3.s};3.n.I(w).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.4.t.x==\'p\'){5(!3.O)w={\'q-p\':3.s};m w={\'q-C\':-3.s};3.n.I(w).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}}m 5(3.4.M==\'13\'){3.n.I({\'u\':0}).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.4.M==\'U 1d 13\'){5(3.P==\'R\'&&3.4.14==\'1c\'&&3.4.t.y==\'1p\'){3.n.I({\'q-E\':-3.Q,u:0}).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.P==\'R\'&&3.4.14==\'1c\'&&3.4.t.y==\'1w\'){3.n.I({\'q-E\':3.Q,u:0}).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.4.t.x==\'C\'){5(!3.O)w={\'q-p\':-3.s,\'u\':0};m w={\'q-C\':3.s,\'u\':0};3.n.I(w).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}m 5(3.4.t.x==\'p\'){5(!3.O)w={\'q-p\':3.s,\'u\':0};m w={\'q-C\':-3.s,\'u\':0};3.n.I(w).L(7(){5(3.6.V==\'17\'){5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}}.v(3))}}m{5(!Y.16){3.n.B({\'D\':\'F\'})}m{3.n.N.G(\'D\',\'F\')}}3.6.V=\'17\';3.4.2V(3)},1N:7(){3.4.2W(3);5(!3.24[3.8.o]){3.24[3.8.o]=$$(3.H.1Y.2j(7(a){X!3.H.1u[3.8.o].3F(a)&&a!=3.6}.v(3)))}3.1u.1M(\'25\');3.24[3.8.o].1M(\'2u\');3.4.2X(3)},1O:7(){3.4.2Y(3);$2w(3.H.1H);3.H.1H=(7(){$2w(3.1H);3.n.3G();5(3.H.4.1o&&!3.H.1X)3.H.1j.I(3.H.1W);$$(3.H.1Y).1M(\'2u\')}).v(3).3H(3.4.2C);3.4.2Z(3)},1h:7(){$2w(3.H.1H)},26:7(a){5(3.H.4.1o&&3.P==\'R\'){3.H.1X=1a;3.H.1j.I({\'p\':3.8.J().2h,\'s\':3.8.J().2i-3.H.1V})};5(3.6.V===\'3c\'){X}3.4.32(3);5(3.P==\'R\'){3.8.J().1z(\'f-1A-15\');3.8.J().1m(\'f-1A-1Q\')}m{3.8.J().1z(\'f-29-15\');3.8.J().1m(\'f-29-1Q\')}3.H.2p++;3.6.1R({\'D\':\'1x\',\'2a\':\'34\',\'z-3b\':3.H.2p});5(!3.s||!3.Q){3.s=3.8.1J.s;3.Q=3.8.1J.Q;3.6.1v().G(\'Q\',3.Q,\'2v\');5(3.4.M==\'U\'||3.4.M==\'U 1d 13\'){5(3.P==\'R\'&&3.4.14==\'1c\'){3.6.1v().G(\'q-E\',\'0\');5(3.4.t.y==\'1p\'){3.n.B({\'q-E\':-3.Q})}m 5(3.4.t.y==\'1w\'){3.n.B({\'q-E\':3.Q})}}m{5(3.4.t.x==\'p\'){5(!3.O)w={\'q-p\':3.s};m w={\'q-C\':-3.s};3.n.B(w)}m{5(!3.O)w={\'q-p\':-3.s};m w={\'q-C\':3.s};3.n.B(w)}}}}3.39();3.3d();5(3.4.M==\'U\'){3.6.1R({\'D\':\'1x\',\'2a\':\'2x\'});5(3.P===\'R\'&&3.4.14===\'1c\'){5(a)3.n.B({\'q-E\':0}).L(7(){3.Z()}.v(3));m 3.n.I({\'q-E\':0}).L(7(){3.Z()}.v(3))}m{5(!3.O)w={\'q-p\':0};m w={\'q-C\':0};5(a)3.n.B(w).L(7(){3.Z()}.v(3));m 3.n.I(w).L(7(){3.Z()}.v(3))}}m 5(3.4.M==\'13\'){5(a)3.n.B({\'u\':3.4.u}).L(7(){3.Z()}.v(3));m 3.n.I({\'u\':3.4.u}).L(7(){3.Z()}.v(3))}m 5(3.4.M==\'U 1d 13\'){3.6.1R({\'D\':\'1x\',\'2a\':\'2x\'});3.6.1v().1R({\'p\':0});5(3.P==\'R\'&&3.4.14==\'1c\'){5(a)3.n.B({\'q-E\':0,\'u\':3.4.u}).L(7(){3.Z()}.v(3));m 3.n.I({\'q-E\':0,\'u\':3.4.u}).L(7(){3.Z()}.v(3))}m{5(!3.O)w={\'q-p\':0,\'u\':3.4.u};m w={\'q-C\':0,\'u\':3.4.u};5(a){5(3.4.t.x==\'C\'){3.n.B(w).L(7(){3.Z()}.v(3))}m 5(3.4.t.x==\'p\'){3.n.B(w).L(7(){3.Z()}.v(3))}}m{5(3.4.t.x==\'C\'){3.n.B({\'q-p\':-3.s,\'u\':3.4.u});3.n.I(w).L(7(){3.Z()}.v(3))}m 5(3.4.t.x==\'p\'){3.n.B({\'q-p\':3.s,\'u\':3.4.u});3.n.I(w).L(7(){3.Z()}.v(3))}}}}m{3.6.1R({\'D\':\'1x\',\'2a\':\'2x\'});3.Z(3)}3.6.V=\'3c\'},Z:7(){3.4.33(3)},3d:7(){3.4.30(3);3.6.G(\'s\',3.s);3.6.1v().G(\'s\',3.s);5(3.P==\'23\'){3.4.t.x=\'C\';3.4.t.2b=\'p\';3.4.t.y=\'1p\';3.4.t.3e=\'1w\';5(3.O){3.4.t.x=\'p\';3.4.t.2b=\'C\'}}A a;A b;5(3.P==\'R\'){5(3.4.t.y==\'1w\'){5(3.4.14==\'3f\')a=3.8.K().1K-3.Q+3.4.1b.y;m a=3.8.K().E-3.Q+3.4.1b.y;3.6.10.E=a+\'11\'}m 5(3.4.14==\'1c\')3.6.10.E=3.8.K().1K+3.4.1b.y+\'11\';m 5(3.4.14==\'3f\'){a=3.8.1B().y+3.4.1b.y;5((a+3.6.12().y)>=$(1g.1k).12().2c.y){b=(a+3.6.12().y)-$(1g.1k).12().2c.y;a=a-b-20}3.6.10.E=a+\'11\'}5(3.4.14==\'1c\'){A c=3.8.1B().x+3.4.1b.x;5(3.O){c=3.8.1B().x+3.8.12().1n.x-3.6.12().1n.x}5(3.4.1S){A d=3.8.12().1n.x;A e=3.6.12().1n.x;A f=3g.3I(d,e),2y=3g.2y(d,e);1n=(f-2y)/2;5(!3.O)c-=1n;m c+=1n}3.6.10.p=c+\'11\'}m 5(3.4.t.x==\'p\'){3.6.10.p=3.8.1B().x-3.6.K().s+3.4.1b.x+\'11\'}m 5(3.4.t.x==\'C\'){3.6.10.p=3.8.K().C+3.4.1b.x+\'11\'}}m 5(3.P==\'23\'){5(3.4.t.y===\'1p\'){5((3.8.K().E+3.4.T.y+3.6.12().y)>=$(1g.1k).12().2c.y){b=(3.8.K().E+3.4.T.y+3.6.12().y)-$(1g.1k).12().2c.y;3.6.10.E=(3.8.K().E+3.4.T.y)-b-20+\'11\'}m{3.6.10.E=3.8.K().E+3.4.T.y+\'11\'}}m 5(3.4.t.y===\'1w\'){5((3.8.K().1K-3.Q+3.4.T.y)<1){3.4.t.y=\'1p\';3.4.t.3e=\'1w\';3.6.10.E=3.8.K().E+3.4.T.y+\'11\'}m{3.6.10.E=3.8.K().1K-3.Q+3.4.T.y+\'11\'}}5(3.4.t.x==\'p\'){3.6.10.p=3.8.K().p-3.6.K().s+3.4.T.x+\'11\';5(3.6.1B().x<0){3.4.t.x=\'C\';3.4.t.2b=\'p\';3.6.10.p=3.8.1B().x+3.8.K().s+3.4.T.x+\'11\';5(3.4.M===\'U\'||3.4.M===\'U 1d 13\'){5(!3.O)w={\'q-p\':-3.s,\'u\':3.4.u};m w={\'q-C\':3.s,\'u\':3.4.u};3.n.B(w)}}}m 5(3.4.t.x==\'C\'){3.6.10.p=3.8.K().C+3.4.T.x+\'11\';A g=3.6.K().C;A h=$(1g.1k).12().1n.x+$(Y).12().3J.x;5(g>h){3.4.t.x=\'p\';3.4.t.2b=\'C\';3.6.10.p=3.8.K().p-3.6.K().s-3.4.T.x+\'11\';5(3.4.M==\'U\'||3.4.M==\'U 1d 13\'){5(!3.O)w={\'q-p\':3.s,\'u\':3.4.u};m w={\'q-C\':-3.s,\'u\':3.4.u};3.n.B(w)}}}}3.4.31(3)}});2t.2O(W 2P);1C.3K({2J:7(){5(!3.o){A a=3.2d()+"-"+$3L()+$3M(0,3N);3.o=a};X 3.o},2K:7(a,b){A c=[];A d=3.J();2z(d&&d!==($(b)||1g)){5(d.2d().3h(a))c.2N(d);d=d.J()}X $$(c)},21:7(a){A b=3;2z(b=b.3O()){5(b.2I(a)||b.2d()==a)X b}X 1a},1L:7(a,b){5(!b)b=\'3i\';A c=3.J();2z(c&&c!=1g.1k){5(c.3P.3h(a)&&b==\'1s\')X c;5(c.2d()==a&&b==\'3i\')X c;c=c.J()}X 1a}});',62,238,'|||this|options|if|childMenu|function|btn||||||||||||||else|myEffect|id|left|margin||width|direction|opacity|bind|tmp||||var|set|right|display|top|none|setStyle|root|start|getParent|getCoordinates|chain|effect|element|rtl|subMenuType|height|init|fxMorph|tweakSubsequent|slide|fusionStatus|new|return|window|showSubMenuComplete|style|px|getSize|fade|orientation|item|ie|closed|duration|transition|false|tweakInitial|horizontal|and|menuFx|fusion|document|cancellHideAllSubMenus|btnMorph|pillFx|body|getStyle|addClass|size|pill|down|Fx|getElements|class|self|parentSubMenus|getFirst|up|block|each|removeClass|mainparent|getPosition|Element|div|Styles|wait|parentLinks|hideAllMenusTimeout|submenu|fusionSize|bottom|getParentTag|fireEvent|hideOtherSubMenus|hideAllSubMenus|mmbFocusedClassName|itemfocus|setStyles|centered|true|inject|pillsMargins|pillsDefaults|ghostRequest|subMenus|null||getNextTag|ul|subseq|otherSubMenus|show|showSubMenu|mmbClassName|parseFloat|menuparent|visibility|xInverse|scrollSize|getTag|opts|getElement|toInt|offsetLeft|offsetWidth|filter|parent|addEvents|mouseenter|mouseleave|menuType|subMenuZindex|wrapper|padding|jsContainer|FusionSubMenu|hide|border|clear|visible|min|while|Fusion|Class|hideDelay|Transitions|easeOut|initialize|setOptions|pillsRoots|hasClass|getID|getParents|ol|js|push|implement|Options|onSubMenuInit_begin|onSubMenuInit_complete|onMatchWidth_begin|onMatchWidth_complete|onHideSubMenu_begin|onHideSubMenu_complete|onHideOtherSubMenus_begin|onHideOtherSubMenus_complete|onHideAllSubMenus_begin|onHideAllSubMenus_complete|onPositionSubMenu_begin|onPositionSubMenu_complete|onShowSubMenu_begin|onShowSubMenu_complete|hidden|addEvent|hideSubMenu|focus|blur|matchWidth|widthMatched|index|open|positionSubMenu|yInverse|vertical|Math|test|tag|version|50000|500|Quad|400|Back|after|active|li|container|menutop|length|subs|adopt|setProperty|tabindex|include|parentSubMenu|onStart|onComplete|main|toLowerCase|contains|stop|delay|max|scroll|extend|time|random|1000|getNext|className'.split('|'),0,{}))


window.addEvent('domready', function() {
                new Fusion('ul.menutop', {
                    pill: 0,
                    effect: 'slide and fade',
                    opacity: .9,
                    hideDelay: 500,
                    centered: 0,
                    tweakInitial: {'x': -12, 'y': 0},
                    tweakSubsequent: {'x': -12, 'y': -6},
                    menuFx: {duration: 400, transition: Fx.Transitions.Quint.easeOut},
                    pillFx: {duration: 400, transition: Fx.Transitions.Quint.easeOut}
                });
            });
            
                        
jQuery(document).ready(function(){jQuery(".shr-bookmarks a.external").attr("target","_blank");var c=jQuery(".shr-bookmarks").height(),d=jQuery(".shr-bookmarks ul.socials").height();d>c&&jQuery(".shr-bookmarks-expand").hover(function(){jQuery(this).animate({height:d+"px"},{duration:400,queue:false})},function(){jQuery(this).animate({height:c+"px"},{duration:400,queue:false})});if(jQuery(".shr-bookmarks-center")||jQuery(".shr-bookmarks-spaced")){var a=jQuery(".shr-bookmarks").width(),b=jQuery(".shr-bookmarks:first ul.socials li").width(), e=jQuery(".shr-bookmarks:first ul.socials li").length,f=Math.floor(a/b);b=Math.min(f,e)*b;if(jQuery(".shr-bookmarks-spaced").length>0){a=Math.floor((a-b)/(Math.min(f,e)+1));jQuery(".shr-bookmarks ul.socials li").css("margin-left",a+"px")}else if(jQuery(true)){a=(a-b)/2;jQuery(".shr-bookmarks-center").css("margin-left",a+"px")}}});




jQuery(document).ready(function() {
	try {
		jQuery('div.wpcf7 > form').ajaxForm({
			beforeSubmit: wpcf7BeforeSubmit,
			dataType: 'json',
			success: wpcf7ProcessJson
		});
	} catch (e) {
	}

	try {
		jQuery('div.wpcf7 > form').each(function(i, n) {
			wpcf7ToggleSubmit(jQuery(n));
		});
	} catch (e) {
	}

	try {
		if (_wpcf7.cached) {
			jQuery('div.wpcf7 > form').each(function(i, n) {
				wpcf7OnloadRefill(n);
			});
		}
	} catch (e) {
	}
});

// Exclusive checkbox
function wpcf7ExclusiveCheckbox(elem) {
	jQuery(elem.form).find('input:checkbox[name="' + elem.name + '"]').not(elem).removeAttr('checked');
}

// Toggle submit button
function wpcf7ToggleSubmit(form) {
	var submit = jQuery(form).find('input:submit');
	if (! submit.length) return;

	var acceptances = jQuery(form).find('input:checkbox.wpcf7-acceptance');
	if (! acceptances.length) return;

	submit.removeAttr('disabled');
	acceptances.each(function(i, n) {
		n = jQuery(n);
		if (n.hasClass('wpcf7-invert') && n.is(':checked') || ! n.hasClass('wpcf7-invert') && ! n.is(':checked'))
		submit.attr('disabled', 'disabled');
	});
}

function wpcf7BeforeSubmit(formData, jqForm, options) {
	wpcf7ClearResponseOutput();
	jQuery('img.ajax-loader', jqForm[0]).css({ visibility: 'visible' });

	formData.push({name: '_wpcf7_is_ajax_call', value: 1});
	jQuery(jqForm[0]).append('<input type="hidden" name="_wpcf7_is_ajax_call" value="1" />');

	return true;
}

function wpcf7NotValidTip(into, message) {
	jQuery(into).append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
	jQuery('span.wpcf7-not-valid-tip').mouseover(function() {
		jQuery(this).fadeOut('fast');
	});
	jQuery(into).find(':input').mouseover(function() {
		jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
	});
	jQuery(into).find(':input').focus(function() {
		jQuery(into).find('.wpcf7-not-valid-tip').not(':hidden').fadeOut('fast');
	});
}

function wpcf7OnloadRefill(form) {
	var url = jQuery(form).attr('action');
	if (0 < url.indexOf('#'))
		url = url.substr(0, url.indexOf('#'));

	var id = jQuery(form).find('input[name="_wpcf7"]').val();
	var unitTag = jQuery(form).find('input[name="_wpcf7_unit_tag"]').val();

	jQuery.getJSON(url,
		{ _wpcf7_is_ajax_call: 1, _wpcf7: id },
		function(data) {
			if (data && data.captcha) {
				wpcf7RefillCaptcha('#' + unitTag, data.captcha);
			}
			if (data && data.quiz) {
				wpcf7RefillQuiz('#' + unitTag, data.quiz);
			}
		}
	);
}

function wpcf7ProcessJson(data) {
	var wpcf7ResponseOutput = jQuery(data.into).find('div.wpcf7-response-output');
	wpcf7ClearResponseOutput();

	if (data.invalids) {
		jQuery.each(data.invalids, function(i, n) {
			wpcf7NotValidTip(jQuery(data.into).find(n.into), n.message);
		});
		wpcf7ResponseOutput.addClass('wpcf7-validation-errors');
	}

	if (data.captcha) {
		wpcf7RefillCaptcha(data.into, data.captcha);
	}

	if (data.quiz) {
		wpcf7RefillQuiz(data.into, data.quiz);
	}

	if (1 == data.spam) {
		wpcf7ResponseOutput.addClass('wpcf7-spam-blocked');
	}

	if (1 == data.mailSent) {
		jQuery(data.into).find('form').resetForm().clearForm();
		wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ok');

		if (data.onSentOk)
			jQuery.each(data.onSentOk, function(i, n) { eval(n) });
	} else {
		wpcf7ResponseOutput.addClass('wpcf7-mail-sent-ng');
	}

	if (data.onSubmit)
		jQuery.each(data.onSubmit, function(i, n) { eval(n) });

	wpcf7ResponseOutput.append(data.message).slideDown('fast');
}

function wpcf7RefillCaptcha(form, captcha) {
	jQuery.each(captcha, function(i, n) {
		jQuery(form).find(':input[name="' + i + '"]').clearFields();
		jQuery(form).find('img.wpcf7-captcha-' + i).attr('src', n);
		var match = /([0-9]+)\.(png|gif|jpeg)$/.exec(n);
		jQuery(form).find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[1]);
	});
}

function wpcf7RefillQuiz(form, quiz) {
	jQuery.each(quiz, function(i, n) {
		jQuery(form).find(':input[name="' + i + '"]').clearFields();
		jQuery(form).find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[0]);
		jQuery(form).find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[1]);
	});
}

function wpcf7ClearResponseOutput() {
	jQuery('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
	jQuery('span.wpcf7-not-valid-tip').remove();
	jQuery('img.ajax-loader').css({ visibility: 'hidden' });
}


(function($){$.fn.ajaxSubmit=function(options){if(typeof options=="function"){options={success:options}}options=$.extend({url:this.attr("action")||window.location.toString(),type:this.attr("method")||"GET"},options||{});var veto={};$.event.trigger("form.pre.serialize",[this,options,veto]);if(veto.veto){return this}var a=this.formToArray(options.semantic);if(options.data){for(var n in options.data){a.push({name:n,value:options.data[n]})}}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){return this}$.event.trigger("form.submit.validate",[a,this,options,veto]);if(veto.veto){return this}var q=$.param(a);if(options.type.toUpperCase()=="GET"){options.url+=(options.url.indexOf("?")>=0?"&":"?")+q;options.data=null}else{options.data=q}var $form=this,callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm()})}if(options.clearForm){callbacks.push(function(){$form.clearForm()})}if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){if(this.evalScripts){$(options.target).attr("innerHTML",data).evalScripts().each(oldSuccess,arguments)}else{$(options.target).html(data).each(oldSuccess,arguments)}})}else{if(options.success){callbacks.push(options.success)}}options.success=function(data,status){for(var i=0,max=callbacks.length;i<max;i++){callbacks[i](data,status,$form)}};var files=$("input:file",this).fieldValue();var found=false;for(var j=0;j<files.length;j++){if(files[j]){found=true}}if(options.iframe||found){if($.browser.safari&&options.closeKeepAlive){$.get(options.closeKeepAlive,fileUpload)}else{fileUpload()}}else{$.ajax(options)}$.event.trigger("form.submit.notify",[this,options]);return this;function fileUpload(){var form=$form[0];var opts=$.extend({},$.ajaxSettings,options);var id="jqFormIO"+$.fn.ajaxSubmit.counter++;var $io=$('<iframe id="'+id+'" name="'+id+'" />');var io=$io[0];var op8=$.browser.opera&&window.opera.version()<9;if($.browser.msie||op8){io.src='javascript:false;document.write("");'}$io.css({position:"absolute",top:"-1000px",left:"-1000px"});var xhr={responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){}};var g=opts.global;if(g&&!$.active++){$.event.trigger("ajaxStart")}if(g){$.event.trigger("ajaxSend",[xhr,opts])}var cbInvoked=0;var timedOut=0;setTimeout(function(){var encAttr=form.encoding?"encoding":"enctype";var t=$form.attr("target");$form.attr({target:id,method:"POST",action:opts.url});form[encAttr]="multipart/form-data";if(opts.timeout){setTimeout(function(){timedOut=true;cb()},opts.timeout)}$io.appendTo("body");io.attachEvent?io.attachEvent("onload",cb):io.addEventListener("load",cb,false);form.submit();$form.attr("target",t)},10);function cb(){if(cbInvoked++){return}io.detachEvent?io.detachEvent("onload",cb):io.removeEventListener("load",cb,false);var ok=true;try{if(timedOut){throw"timeout"}var data,doc;doc=io.contentWindow?io.contentWindow.document:io.contentDocument?io.contentDocument:io.document;xhr.responseText=doc.body?doc.body.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(opts.dataType=="json"||opts.dataType=="script"){var ta=doc.getElementsByTagName("textarea")[0];data=ta?ta.value:xhr.responseText;if(opts.dataType=="json"){eval("data = "+data)}else{$.globalEval(data)}}else{if(opts.dataType=="xml"){data=xhr.responseXML;if(!data&&xhr.responseText!=null){data=toXml(xhr.responseText)}}else{data=xhr.responseText}}}catch(e){ok=false;$.handleError(opts,xhr,"error",e)}if(ok){opts.success(data,"success");if(g){$.event.trigger("ajaxSuccess",[xhr,opts])}}if(g){$.event.trigger("ajaxComplete",[xhr,opts])}if(g&&!--$.active){$.event.trigger("ajaxStop")}if(opts.complete){opts.complete(xhr,ok?"success":"error")}setTimeout(function(){$io.remove();xhr.responseXML=null},100)}function toXml(s,doc){if(window.ActiveXObject){doc=new ActiveXObject("Microsoft.XMLDOM");doc.async="false";doc.loadXML(s)}else{doc=(new DOMParser()).parseFromString(s,"text/xml")}return(doc&&doc.documentElement&&doc.documentElement.tagName!="parsererror")?doc:null}}};$.fn.ajaxSubmit.counter=0;$.fn.ajaxForm=function(options){return this.ajaxFormUnbind().submit(submitHandler).each(function(){this.formPluginId=$.fn.ajaxForm.counter++;$.fn.ajaxForm.optionHash[this.formPluginId]=options;$(":submit,input:image",this).click(clickHandler)})};$.fn.ajaxForm.counter=1;$.fn.ajaxForm.optionHash={};function clickHandler(e){var $form=this.form;$form.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){$form.clk_x=e.offsetX;$form.clk_y=e.offsetY}else{if(typeof $.fn.offset=="function"){var offset=$(this).offset();$form.clk_x=e.pageX-offset.left;$form.clk_y=e.pageY-offset.top}else{$form.clk_x=e.pageX-this.offsetLeft;$form.clk_y=e.pageY-this.offsetTop}}}setTimeout(function(){$form.clk=$form.clk_x=$form.clk_y=null},10)}function submitHandler(){var id=this.formPluginId;var options=$.fn.ajaxForm.optionHash[id];$(this).ajaxSubmit(options);return false}$.fn.ajaxFormUnbind=function(){this.unbind("submit",submitHandler);return this.each(function(){$(":submit,input:image",this).unbind("click",clickHandler)})};$.fn.formToArray=function(semantic){var a=[];if(this.length==0){return a}var form=this[0];var els=semantic?form.getElementsByTagName("*"):form.elements;if(!els){return a}for(var i=0,max=els.length;i<max;i++){var el=els[i];var n=el.name;if(!n){continue}if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}continue}var v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(var j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:n,value:v})}}}if(!semantic&&form.clk){var inputs=form.getElementsByTagName("input");for(var i=0,max=inputs.length;i<max;i++){var input=inputs[i];var n=input.name;if(n&&!input.disabled&&input.type=="image"&&form.clk==input){a.push({name:n+".x",value:form.clk_x},{name:n+".y",value:form.clk_y})}}}return a};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic))};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return}var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]})}}else{if(v!==null&&typeof v!="undefined"){a.push({name:this.name,value:v})}}});return $.param(a)};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=="undefined"||(v.constructor==Array&&!v.length)){continue}v.constructor==Array?$.merge(val,v):val.push(v)}return val};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful=="undefined"){successful=true}if(successful&&(!n||el.disabled||t=="reset"||t=="button"||(t=="checkbox"||t=="radio")&&!el.checked||(t=="submit"||t=="image")&&el.form&&el.form.clk!=el||tag=="select"&&el.selectedIndex==-1)){return null}if(tag=="select"){var index=el.selectedIndex;if(index<0){return null}var a=[],ops=el.options;var one=(t=="select-one");var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=$.browser.msie&&!(op.attributes.value.specified)?op.text:op.value;if(one){return v}a.push(v)}}return a}return el.value};$.fn.clearForm=function(){return this.each(function(){$("input,select,textarea",this).clearFields()})};$.fn.clearFields=$.fn.clearInputs=function(){return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(t=="text"||t=="password"||tag=="textarea"){this.value=""}else{if(t=="checkbox"||t=="radio"){this.checked=false}else{if(tag=="select"){this.selectedIndex=-1}}}})};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};$.fn.enable=function(b){if(b==undefined){b=true}return this.each(function(){this.disabled=!b})};$.fn.select=function(select){if(select==undefined){select=true}return this.each(function(){var t=this.type;if(t=="checkbox"||t=="radio"){this.checked=select}else{if(this.tagName.toLowerCase()=="option"){var $sel=$(this).parent("select");if(select&&$sel[0]&&$sel[0].type=="select-one"){$sel.find("option").select(false)}this.selected=select}}})}})(jQuery);

jQuery(document).ready(function(){jQuery(".shr-bookmarks a.external").attr("target","_blank");var c=jQuery(".shr-bookmarks").height(),d=jQuery(".shr-bookmarks ul.socials").height();d>c&&jQuery(".shr-bookmarks-expand").hover(function(){jQuery(this).animate({height:d+"px"},{duration:400,queue:false})},function(){jQuery(this).animate({height:c+"px"},{duration:400,queue:false})});if(jQuery(".shr-bookmarks-center")||jQuery(".shr-bookmarks-spaced")){var a=jQuery(".shr-bookmarks").width(),b=jQuery(".shr-bookmarks:first ul.socials li").width(), e=jQuery(".shr-bookmarks:first ul.socials li").length,f=Math.floor(a/b);b=Math.min(f,e)*b;if(jQuery(".shr-bookmarks-spaced").length>0){a=Math.floor((a-b)/(Math.min(f,e)+1));jQuery(".shr-bookmarks ul.socials li").css("margin-left",a+"px")}else if(jQuery(true)){a=(a-b)/2;jQuery(".shr-bookmarks-center").css("margin-left",a+"px")}}});






/*
Shutter Reloaded for NextGEN Gallery
http://www.laptoptips.ca/javascripts/shutter-reloaded/
Version: 1.3.1
Copyright (C) 2007-2008  Andrew Ozz
Released under the GPL, http://www.gnu.org/copyleft/gpl.html

Acknowledgement: some ideas are from: Shutter by Andrew Sutherland - http://code.jalenack.com, WordPress - http://wordpress.org, Lightbox by Lokesh Dhakar - http://www.huddletogether.com, the icons are from Crystal Project Icons, Everaldo Coelho, http://www.everaldo.com

*/

/* <![CDATA[ */
var shutterSettings = {
	msgLoading: "Loading...",
	msgClose: "Click to Close",
	imageCount: "1"
};
/* ]]> */


shutterOnload = function(){shutterReloaded.init('sh');}

if (typeof shutterOnload == 'function') {
	if ('undefined' != typeof jQuery) jQuery(document).ready(function(){shutterOnload();});
	else if( typeof window.onload != 'function' ) window.onload = shutterOnload;
	else {oldonld = window.onload;window.onload = function(){if(oldonld){oldonld();};shutterOnload();}};
}

shutterReloaded = {

	I : function (a) {
		return document.getElementById(a);
	},

	settings : function() {
		var t = this, s = shutterSettings;

		t.imageCount = s.imageCount || 0;
		t.msgLoading = s.msgLoading || 'L O A D I N G';
		t.msgClose = s.msgClose || 'Click to Close';
	},

	init : function (a) {
		var t = this, L, T, ext, i, m, setid, inset, shfile, shMenuPre, k, img;
		shutterLinks = {}, shutterSets = {};
		if ( 'object' != typeof shutterSettings ) shutterSettings = {};

		for ( i = 0; i < document.links.length; i++ ) {
			L = document.links[i];
			ext = ( L.href.indexOf('?') == -1 ) ? L.href.slice(-4).toLowerCase() : L.href.substring( 0, L.href.indexOf('?') ).slice(-4).toLowerCase();
			if ( ext != '.jpg' && ext != '.png' && ext != '.gif' && ext != 'jpeg' ) continue;
			if ( a == 'sh' && L.className.toLowerCase().indexOf('shutter') == -1 ) continue;
			if ( a == 'lb' && L.rel.toLowerCase().indexOf('lightbox') == -1 ) continue;

			if ( L.className.toLowerCase().indexOf('shutterset') != -1 )
			setid = L.className.replace(/\s/g, '_');			
			else if ( L.rel.toLowerCase().indexOf('lightbox[') != -1 )
			setid = L.rel.replace(/\s/g, '_');
			else setid = 0, inset = -1;
			
			if( setid ) {
				if ( ! shutterSets[setid] ) shutterSets[setid] = [];
					inset = shutterSets[setid].push(i);
			}
			
			shfile = L.href.slice(L.href.lastIndexOf('/')+1);
			T = ( L.title && L.title != shfile ) ? L.title : '';
			
			shutterLinks[i] = {link:L.href,num:inset,set:setid,title:T}
			L.onclick = new Function('shutterReloaded.make("' + i + '");return false;');
		}

		t.settings();

	},

	make : function(ln,fs) {
		var t = this, prev, next, prevlink = '', nextlink = '', previmg, nextimg, D, S, W, fsarg = -1, imgNum, NavBar;

		if ( ! t.Top ) {
			if ( typeof window.pageYOffset != 'undefined' ) t.Top = window.pageYOffset;
			else t.Top = (document.documentElement.scrollTop > 0) ? document.documentElement.scrollTop : document.body.scrollTop;
		}

		if ( typeof t.pgHeight == 'undefined' )
			t.pgHeight = Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);

		if ( fs ) t.FS = ( fs > 0 ) ? 1 : 0;
		else t.FS = shutterSettings.FS || 0;

		if ( t.resizing ) t.resizing = null;
		window.onresize = new Function('shutterReloaded.resize("'+ln+'");');

		document.documentElement.style.overflowX = 'hidden';
		if ( ! t.VP ) {
			t._viewPort();
			t.VP = true;
		}

		if ( ! (S = t.I('shShutter')) ) {
			S = document.createElement('div');
			S.setAttribute('id','shShutter');
			document.getElementsByTagName('body')[0].appendChild(S);
			t.hideTags();
		}

		if ( ! (D = t.I('shDisplay')) ) {
			D = document.createElement('div');
			D.setAttribute('id','shDisplay');
			D.style.top = t.Top + 'px';
			document.getElementsByTagName('body')[0].appendChild(D);
		}

		S.style.height = t.pgHeight + 'px';

		var dv = t.textBtns ? ' | ' : '';
		if ( shutterLinks[ln].num > 1 ) {
			prev = shutterSets[shutterLinks[ln].set][shutterLinks[ln].num - 2];
			prevlink = '<a href="#" onclick="shutterReloaded.make('+prev+');return false">&lt;&lt;</a>'+dv;
			previmg = new Image();
			previmg.src = shutterLinks[prev].link;
		} else {
			prevlink = '';
		}

		if ( shutterLinks[ln].num != -1 && shutterLinks[ln].num < (shutterSets[shutterLinks[ln].set].length) ) {
			next = shutterSets[shutterLinks[ln].set][shutterLinks[ln].num];
			nextlink = '<a href="#" onclick="shutterReloaded.make('+next+');return false">&gt;&gt;</a>'+dv;
			nextimg = new Image();
			nextimg.src = shutterLinks[next].link;
		} else {
			nextlink = '';
		}

		imgNum = ( (shutterLinks[ln].num > 0) && t.imageCount ) ? '<div id="shCount">&nbsp;(&nbsp;' + shutterLinks[ln].num + '&nbsp;/&nbsp;' + shutterSets[shutterLinks[ln].set].length + '&nbsp;)&nbsp;</div>' : '';

		NavBar = '<div id="shTitle"><div id="shPrev">' + prevlink + '</div><div id="shNext">' + nextlink + '</div><div id="shName">' + shutterLinks[ln].title + '</div>' + imgNum + '</div>';

		D.innerHTML = '<div id="shWrap"><img src="" id="shTopImg" title="' + t.msgClose + '" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />' + NavBar +'</div>';
		
		//Google Chrome 4.0.249.78 bug for onload attribute
		document.getElementById('shTopImg').src = shutterLinks[ln].link;
		
		window.setTimeout(function(){shutterReloaded.loading();},2000);
	},

	loading : function() {
		var t = this, S, WB, W;
		if ( (W = t.I('shWrap')) && W.style.visibility == 'visible' ) return;
		if ( ! (S = t.I('shShutter')) ) return;
		if ( t.I('shWaitBar') ) return;
		WB = document.createElement('div');
		WB.setAttribute('id','shWaitBar');
		WB.style.top = t.Top + 'px';
		WB.innerHTML = t.msgLoading;
		S.appendChild(WB);
	},

	hideShutter : function() {
		var t = this, D, S;
		if ( D = t.I('shDisplay') ) D.parentNode.removeChild(D);
		if ( S = t.I('shShutter') ) S.parentNode.removeChild(S);
		t.hideTags(true);
		window.scrollTo(0,t.Top);
		window.onresize = t.FS = t.Top = t.VP = null;
		document.documentElement.style.overflowX = '';
	},

	resize : function(ln) {
		var t = this;

		if ( t.resizing ) return;
		if ( ! t.I('shShutter') ) return;
		var W = t.I('shWrap');
		if ( W ) W.style.visibility = 'hidden';

		window.setTimeout(function(){shutterReloaded.resizing = null},500);
		window.setTimeout(new Function('shutterReloaded.VP = null;shutterReloaded.make("'+ln+'");'),100);
		t.resizing = true;
	},

	_viewPort : function() {
		var t = this;
		var wiH = window.innerHeight ? window.innerHeight : 0;
		var dbH = document.body.clientHeight ? document.body.clientHeight : 0;
		var deH = document.documentElement ? document.documentElement.clientHeight : 0;

		if( wiH > 0 ) {
			t.wHeight = ( (wiH - dbH) > 1 && (wiH - dbH) < 30 ) ? dbH : wiH;
			t.wHeight = ( (t.wHeight - deH) > 1 && (t.wHeight - deH) < 30 ) ? deH : t.wHeight;
		} else t.wHeight = ( deH > 0 ) ? deH : dbH;

		var deW = document.documentElement ? document.documentElement.clientWidth : 0;
		var dbW = window.innerWidth ? window.innerWidth : document.body.clientWidth;
		t.wWidth = ( deW > 1 ) ? deW : dbW;
	},

	showImg : function() {
		var t = this, S = t.I('shShutter'), D = t.I('shDisplay'), TI = t.I('shTopImg'), T = t.I('shTitle'), NB = t.I('shNavBar'), W, WB, wHeight, wWidth, shHeight, maxHeight, itop, mtop, resized = 0;

		if ( ! S ) return;
		if ( (W = t.I('shWrap')) && W.style.visibility == 'visible' ) return;
		if ( WB = t.I('shWaitBar') ) WB.parentNode.removeChild(WB);

		S.style.width = D.style.width = '';
		T.style.width = (TI.width - 4) + 'px';

		shHeight = t.wHeight - 7;

		if ( t.FS ) {
			if ( TI.width > (t.wWidth - 10) )
			S.style.width = D.style.width = TI.width + 10 + 'px';
			document.documentElement.style.overflowX = '';
		} else {
			window.scrollTo(0,t.Top);
			if ( TI.height > shHeight ) {
				TI.width = TI.width * (shHeight / TI.height);
				TI.height = shHeight;
				resized = 1;
			}
			if ( TI.width > (t.wWidth - 16) ) {
				TI.height = TI.height * ((t.wWidth - 16) / TI.width);
				TI.width = t.wWidth - 16;
				resized = 1;
			}
			T.style.width = (TI.width - 4) + 'px';
		}

		maxHeight = t.Top + TI.height + 10;
		if ( maxHeight > t.pgHeight ) S.style.height = maxHeight + 'px';
		window.scrollTo(0,t.Top);

		itop = (shHeight - TI.height) * 0.45;
		mtop = (itop > 3) ? Math.floor(itop) : 3;
		D.style.top = t.Top + mtop + 'px';
		W.style.visibility = 'visible';
	},

	hideTags : function(arg) {
		var sel = document.getElementsByTagName('select');
		var obj = document.getElementsByTagName('object');
		var emb = document.getElementsByTagName('embed');
		var ifr = document.getElementsByTagName('iframe');

		var vis = ( arg ) ? 'visible' : 'hidden';

		for (i = 0; i < sel.length; i++) sel[i].style.visibility = vis;
		for (i = 0; i < obj.length; i++) obj[i].style.visibility = vis;
		for (i = 0; i < emb.length; i++) emb[i].style.visibility = vis;
		for (i = 0; i < ifr.length; i++) ifr[i].style.visibility = vis;
	}
}