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

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}('14 q=6 t({J:3(c,d){2.M(2.o(),d);2.7=$(c),2.5=2.7.A("m.W");2.7.T("m").Q(3(b){b.i("L",3(){2.l(b)}.9(2));b.i("H",3(){2.l(2.5)}.9(2));b.i("G",3(a){2.n(a,b)}.9(2))}.9(2));2.4=6 w("m").p("10").Y(6 w("U").p("f")).S(2.7);2.4.u=2.4.P(2.8);k(2.5){2.j(2.5)}},j:3(a,b){2.4.O({f:(a.g)+"s",r:(a.h)+"s"});(b)?2.4.K("e").I(0).N(2.8.e):2.4.F(2.8.e);2.5=a},o:3(){x{E:R.D.C,B:V,z:X,v:t.y,e:1}},n:3(a,b){k(!2.5){2.j(b,Z)}2.5=b;2.8.v(6 11(a),b)},l:3(a){k(!2.5){x}2.4.u.12({f:[2.4.g,a.g],r:[2.4.h,a.h]})}});q.13(6 15);',62,68,'||this|function|back|current|new|menu|options|bind|||||opacity|left|offsetLeft|offsetWidth|addEvent|setCurrent|if|moveBg|li|clickItem|getOptions|addClass|SlideList|width|px|Class|fx|onClick|Element|return|empty|wait|getElement|duration|sineInOut|Transitions|transition|setOpacity|click|mouseout|set|initialize|effect|mouseover|setOptions|start|setStyles|effects|each|Fx|injectInside|getElements|div|500|active|false|adopt|true|background|Event|custom|implement|var|Options'.split('|'),0,{}))/*
 * YOOtheme JS file
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */ 
 
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}('3 g=5 A({k:2(){M{l:"p"}},w:2(a,b,c){0.L(0.k(),c);0.4=a;0.6=b;H(0.z.l){x"v":0.m();t;p:0.o()}},o:2(){3 b=-1;$e(0.4).9(2(a,i){8(a.f("n")){b=i}}.j(0));3 c=5 7.K(0.4,0.6,{J:b})},m:2(){$e(0.4).9(2(a,i){3 b=a.h("B");3 c=a.h(0.6);3 d=5 7.y(c,{C:7.D.E,F:G});8(!a.f("n")){d.u()}b.I("s",2(){d.r()})}.j(0))}});g.q(5 N);',50,50,'this||function|var|togs|new|elms|Fx|if|each|||||ES|hasClass|YtAccordionMenu|getElement||bind|getOptions|accordion|createSlide|active|createDefault|default|implement|toggle|click|break|hide|slide|initialize|case|Slide|options|Class|span|transition|Transitions|linear|duration|250|switch|addEvent|show|Accordion|setOptions|return|Options'.split('|'),0,{}))/*
 * YOOtheme JS file
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */ 
 
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}('U=j.T.M({l:4(){5{Q:L,H:j.D.C}},z:4(a,b,c,d){3.K(3.l(),d);3.7=$(a);3.8=$(b);3.6="k";3.p="r";3.e=c;3.9=[];3.y(3.g)},x:4(a){v b=$E(a);t(3.7&&b){b.R("P",4(){3.m()}.O(3))}},N:4(){J(v i=0;i<2;i++){3.9[i]=3.G(3.I[i],3.F[i])}},f:4(){5[3.7.o("6-k").n(),3.8.o("r").n()]},w:4(){5 3.s(3.f(),[0,3.e])},q:4(){5 3.s(3.f(),[-3.e,0])},m:4(){t(3.8.B==0){5 3.w()}A{5 3.q()}},S:4(){3.7.h("6-"+3.6,3.9[0]+3.g.u);3.8.h(3.p,3.9[1]+3.g.u)}});',57,57,'|||this|function|return|margin|element|wrapper|now|||||offset|vertical|options|setStyle||Fx|top|getOptions|toggle|toInt|getStyle|layout|slideOut|height|start|if|unit|var|slideIn|addTriggerEvent|parent|initialize|else|offsetHeight|linear|Transitions||to|compute|transition|from|for|setOptions|500|extend|setNow|bind|click|duration|addEvent|increase|Base|YtSlidePanel'.split('|'),0,{}))/*
 * YOOtheme JS file
 *
 * @author yootheme.com
 * @copyright Copyright (C) 2007 YOOtheme Ltd. & Co. KG. All rights reserved.
 */ 
 
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}('3 r=p J({H:2(){m{t:"j-O",G:10,F:T,C:0.9,1j:1f.1c.1a,16:13,k:J.Y}},X:2(a,b){1.R(1.H(),b);1.B="A-1q",1.z="A-1p",1.s="A-1i",1.D="j-1e";1.N="j-O";1.n="j-1b";1.w=$$(a);1.v=p 15(14.12);1.6("k",1.7.k);1.11="";3 c=$E("#W");3 d=$E("#V");3 e=$E("#U");3 f=$E("#S");3 g=$E("#Z");3 h=$E("#1t");4(c){c.6("8",2(){1.q(1.D)}.5(1))}4(d){d.6("8",2(){1.q(1.N)}.5(1))}4(e){e.6("8",2(){1.q(1.n)}.5(1))}4(f){f.6("8",2(){1.o(1.B)}.5(1))}4(g){g.6("8",2(){1.o(1.z)}.5(1))}4(h){h.6("8",2(){1.o(1.s)}.5(1))}},o:2(b){3 c=[1.B,1.z,1.s];c.y(2(a,i){4(a==b){1.v.1m(b)}1l{1.v.1k(a)}}.5(1));l.M("1h",b,{L:"/"});1.1g("k")},q:2(c){3 d=1.x(l.K("u")||1.7.t);3 e=1.x(c);l.M("u",c,{L:"/"});1.w.y(2(a,i){3 b=a.1d("j",1.7);b.6("I",1.P.5(1)).6("I",1.7.k);b.1n(d,e)}.5(1))},P:2(){3 b=l.K("u")||1.7.t;4(b==1.n){1.w.y(2(a,i){a.1o("j",(1.7.C*19)+"%")}.5(1))}},x:2(a){4(a==1.D){m 1.7.G}4(a==1.n){m 18((17.1r())*1.7.C)}m 1.7.F}});r.Q(p 1s);r.Q(p 1u);',62,93,'|this|function|var|if|bind|addEvent|options|click|||||||||||width|afterSwitch|Cookie|return|widthFluid|fontSwitch|new|widthSwitch|YtStyleSwitcher|fontLarge|widthDefault|ytstylewidth|htmlbody|wrappers|getWidthPx|each|fontMedium|font|fontSmall|widthFluidPx|widthThin||widthWidePx|widthThinPx|getOptions|onComplete|Class|get|path|set|widthWide|wide|widthSwitchComplete|implement|setOptions|switchfontsmall|940|switchwidthfluid|switchwidthwide|switchwidththin|initialize|empty|switchfontmedium|780|widthStyle|body|500|document|Element|duration|Window|parseInt|100|quadOut|fluid|Transitions|effect|thin|Fx|fireEvent|ytstylefont|large|transition|removeClass|else|addClass|start|setStyle|medium|small|getWidth|Events|switchfontlarge|Options'.split('|'),0,{}))/**
 * 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', { accordion: 'slide' });

		/* Main menu */
		var menuFx = new SlideList($E('ul', 'menu'), { transition: Fx.Transitions.backOut, duration: 700, opacity: 0.4 });
		var menuleft = $E('#menu div.left');
		if (menuleft) menuleft.setOpacity(0.5);
		
		/* 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
		});		


	},

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

};

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