
/* call moved to YtTools.start */
// window.addEvent('domready', Lightbox.init.bind(Lightbox));
/**
 * YOOtheme Javascript file, base.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */

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}('4 C={G:8(g,j,h){4 5=0;4 d=[];4 y=$k(g+\' 1\');$k(g).c(8(1,i){6(!y.B(1)){d.H(1)}});d.c(8(1,i){4 7,b;6(1.q){7=1.q;b=0;b+=1.o(\'A-D\').n();b+=1.o(\'A-F\').n();7-=b;6(j!=x){7-=j}}w 6(1.v.z){7=1.v.z}5=u.p(5,7)});6(h!=x){5=u.p(5,h)}d.c(8(1,i){6(E.T){1.s(\'t\',5+\'r\')}w{1.s(\'Y-t\',5+\'r\')}})},I:8(){$k(\'3.X\').c(8(3,i){4 9=W V(\'a\');4 m=3.l(\'m\').10(/^(\\S+)\\.(11|Z|U|M)$/,"$L.$2");9.f(\'K\',m);9.f(\'J\',3.N);6(3.l(\'e\')){9.f(\'e\',O(3.l(\'e\')))}3.R().Q(9);3.P(9)})}};',62,64,'|div||img|var|maxHeight|if|divHeight|function|lightboxLink||divPadding|each|matchDivs|title|setProperty|selector|minWidth||divBorder|ES|getProperty|src|toInt|getStyle|max|offsetHeight|px|setStyle|height|Math|style|else|undefined|otherDivs|pixelHeight|padding|test|YtBase|top|window|bottom|matchDivHeight|push|setupLightbox|rel|href|1_lightbox|png|className|String|replaceWith|injectInside|clone||ie6|jpeg|Element|new|lightbox|min|jpg|replace|gif'.split('|'),0,{}))
/**
 * YOOtheme Javascript file, fancymenu.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */

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}('G r=9 u({F:4(8,7){2.E(2.q(),7);2.8=$(8),2.6=2.8.D(\'i.H\');2.8.I(\'i\').L(4(3){3.h(\'K\',4(){2.m(3)}.a(2));3.h(\'J\',4(){2.m(2.6)}.a(2));3.h(\'M\',4(d){2.v(d,3)}.a(2))}.a(2));2.5=9 p(\'i\').y(\'z\').B(9 p(\'C\').y(\'n\')).A(2.8);2.5.w=2.5.11(2.7);l(2.6)2.k(2.6)},k:4(c,j){2.5.10({n:(c.f)+\'o\',x:(c.g)+\'o\'});(j)?2.5.j(\'b\').Z(0).Y(2.7.b):2.5.12(2.7.b);2.6=c},q:4(){s{14:15.13.X,N:Q,P:O,t:u.R,b:1}},v:4(d,3){l(!2.6)2.k(3,S);2.6=3;2.7.t(9 V(d),3)},m:4(e){l(!2.6)s;2.5.w.U({n:[2.5.f,e.f],x:[2.5.g,e.g]})}});r.T(9 W);',62,68,'||this|item|function|back|current|options|menu|new|bind|opacity|el|event|to|offsetLeft|offsetWidth|addEvent|li|effect|setCurrent|if|moveBg|left|px|Element|getOptions|SlideList|return|onClick|Class|clickItem|fx|width|addClass|background|injectInside|adopt|div|getElement|setOptions|initialize|var|active|getElements|mouseout|mouseover|each|click|duration|false|wait|500|empty|true|implement|custom|Event|Options|sineInOut|start|set|setStyles|effects|setOpacity|Transitions|transition|Fx'.split('|'),0,{}))
/**
 * YOOtheme Javascript file, accordionmenu.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */

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}('4 e=7 A({n:2(){B{l:\'m\'}},C:2(k,j,9){0.D(0.n(),9);0.6=k;0.c=j;t(0.9.l){x\'E\':0.f();F;m:0.o()}},o:2(){4 5=-1;$d(0.6).g(2(3,i){r(3.s(\'5\'))5=i}.q(0));4 P=7 a.L(0.6,0.c,{K:5})},f:2(){$d(0.6).g(2(3,i){4 8=3.p(\'8\');4 h=3.p(0.c);4 b=7 a.N(h,{G:a.O.J,I:H});r(!3.s(\'5\'))b.M();8.w(\'v\',2(){b.y()})}.q(0))}});e.u(7 z);',52,52,'this||function|tog|var|active|togs|new|span|options|Fx|fx|elms|ES|YtAccordionMenu|createSlide|each|ul||elements|togglers|accordion|default|getOptions|createDefault|getElement|bind|if|hasClass|switch|implement|click|addEvent|case|toggle|Options|Class|return|initialize|setOptions|slide|break|transition|250|duration|linear|show|Accordion|hide|Slide|Transitions|accordionMenu'.split('|'),0,{}))
/**
 * YOOtheme Javascript file, slidepanel.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */


/**
 * YOOtheme Javascript file, styleswitcher.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */


/**
 * YOOtheme Javascript file, spotlight.js
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */


/**
 * YtTools
 * requires mootools version 1.1
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */ 
var YtTools = {
		
	start: function() {
		
		/* Match height of div tags */
		YtTools.setDivHeight();

		/* Accordion menu */
		var accordionFx = new YtAccordionMenu('div#middle ul.menu li.toggler', 'ul.accordion');

		/* Main menu */
		var menuFx = new SlideList($E('ul', 'menu'), { transition: Fx.Transitions.backOut, duration: 700, opacity: 0.7 });
		var menuleft = $E('#menu div.left');
		
		/* Top panel */
		var toppanelFx = new YtSlidePanel($E('#toppanel'), $E('#toppanel-wrapper'),
			YtSettings.heightToppanel, { transition: Fx.Transitions.expoOut, duration: 500 });
		toppanelFx.addTriggerEvent('#toppanel-container .trigger');
		toppanelFx.addTriggerEvent('#toppanel .close');

		/* Style switcher */
		var switcherFx = new YtStyleSwitcher($ES('.wrapper'), { 
			widthDefault: YtSettings.widthDefault,
			widthThinPx: YtSettings.widthThinPx,
			widthWidePx: YtSettings.widthWidePx,
			widthFluidPx: YtSettings.widthFluidPx,
			afterSwitch: YtTools.setDivHeight,
			transition: Fx.Transitions.expoOut,
			duration: 500
		});		

						
		/* Spotlight */
		var spotlightFx = new YtSpotlight('div.spotlight, span.spotlight');

	},

	/* Match height of div tags */
	setDivHeight: function() {
		YtBase.matchDivHeight('div.topbox div', 0, 20);
		YtBase.matchDivHeight('div.bottombox div', 0, 60);
		YtBase.matchDivHeight('div.maintopbox div div div', 0);
		YtBase.matchDivHeight('div.mainbottombox div div div', 0);
		YtBase.matchDivHeight('div.contenttopbox div div div', 0);
		YtBase.matchDivHeight('div.contentbottombox div div div', 0);
	}

};

/* Add functions on window load */
window.addEvent('load', YtTools.start);
