/* Copyright (C) 2007 - 2009 YOOtheme GmbH */

/*
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}('3 1a={19:6(15,s,r){3 9=0;3 n=[];3 q=15.18(" ");3 I=q.1b();3 u=\'\';q.g(6(8,i){u+=\'.t("\'+8+\'")\'});$1c(I).g(6(m,i){1e(\'n.17(m\'+u+\');\')});n.g(6(4,i){7(!$o(4))13;3 a,j;7(4.E){a=4.E;j=0;j+=4.K(\'P-1d\').N();j+=4.K(\'P-1f\').N();a-=j;7(s!=W){a-=s}}A 7(4.G.H){a=4.G.H}9=X.F(9,a)});7(r!=W){9=X.F(9,r)}n.g(6(4,i){7(!$o(4))13;7(1u.1t){4.J(\'14\',9+\'L\')}A{4.J(\'1g-14\',9+\'L\')}})}};3 U=c T({V:6(m,11,Z,x,10,k){b.l({y:1y,Y:v.O.1z,Q:M,p:\'\'},x);3 5=b.5;$$(m).g(6(8,i){3 w=8;7(k&&8.t(k)){w=8.t(k)}3 f=c v.1k(w,5);7(!($o(5.p)&&8.1h(5.p))){8.12(\'1m\',6(e){f.l(5,x).C(11)});8.12(\'1p\',6(e){f.l(5,10).C(Z)})}})}});U.R(c S);3 D=c T({V:6(5){b.l({Y:v.O.1l,y:1s,Q:M,h:[\'#1x\',\'#1n\']},5);3 B=c 1o(1q.B);3 f=B.1i(b.5);3 d=0;3 h=b.5.h;3 1j=z.1r(b.5.y*2);z();6 z(){f.C({\'1w-1v\':h[d]});7(d+1>=h.16){d=0}A{d++}}}});D.R(c S);',62,98,'|||var|div|options|function|if|el|maxHeight|divHeight|this|new|index||fx|each|colors||divPadding|elementFx|setOptions|element|matchDivs|chk|ignoreClass|selectors|minWidth|divBorder|getElement|script|Fx|elfx|enterFx|duration|animate|else|body|start|YOOBackgroundFx|offsetHeight|max|style|pixelHeight|elements|setStyle|getStyle|px|false|toInt|Transitions|padding|wait|implement|Options|Class|YOOMorph|initialize|undefined|Math|transition|leave|leaveFx|enter|addEvent|return|height|selector|length|push|split|matchDivHeight|YOOBase|shift|ES|top|eval|bottom|min|hasClass|effects|timer|Styles|linear|mouseenter|999999|Element|mouseleave|document|periodical|9000|ie6|window|color|background|FFFFFF|500|expoOut'.split('|'),0,{}))
*/

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}('4 1Q={1R:5(1h,K,L){4 j=0;4 u=[];4 M=1h.1S(" ");4 1i=M.1T();4 N=\'\';M.g(5(f,i){N+=\'.O("\'+f+\'")\'});$1U(1i).g(5(v,i){1V(\'u.1W(v\'+N+\');\')});u.g(5(a,i){8(!$P(a))n;4 l,o;8(a.1j){l=a.1j;o=0;o+=a.1k(\'1l-1X\').1m();o+=a.1k(\'1l-1Y\').1m();l-=o;8(K!=1n){l-=K}}w 8(a.1o.1p){l=a.1o.1p}j=1q.1r(j,l)});8(L!=1n){j=1q.1r(j,L)}u.g(5(a,i){8(!$P(a))n;8(1Z.20){a.Q(\'1s\',j+\'1t\')}w{a.Q(\'21-1s\',j+\'1t\')}})}};4 R=d x({S:5(p,6){3.q({T:\'b-1u\',1v:22,1w:23,U:0.9,V:y.W.24,z:1x,r:x.25},6);3.X=\'k-26\',3.Y=\'k-27\',3.Z=\'k-28\',3.10=\'b-29\';3.1y=\'b-1u\';3.A=\'b-2a\';3.p=$$(p);3.11=d 1z(1A.B);3.c(\'r\',3.6.r);3.12=\'\';4 7=3;4 13=$E(\'#2b\');4 14=$E(\'#2c\');4 15=$E(\'#2d\');4 16=$E(\'#2e\');4 17=$E(\'#2f\');4 18=$E(\'#2g\');8(13)13.c(\'m\',5(){7.C(7.10)});8(14)14.c(\'m\',5(){7.C(7.1y)});8(15)15.c(\'m\',5(){7.C(7.A)});8(16)16.c(\'m\',5(){7.D(7.X)});8(17)17.c(\'m\',5(){7.D(7.Y)});8(18)18.c(\'m\',5(){7.D(7.Z)})},D:5(k){4 7=3;4 1B=[3.X,3.Y,3.Z];1B.g(5(19,i){8(19==k){7.11.2h(k)}w{7.11.2i(19)}});F.1C(\'2j\',k,{1D:\'/\'});3.2k(\'r\')},C:5(b){4 7=3;4 1E=3.1a(F.1F(\'1b\')||3.6.T);4 1G=3.1a(b);F.1C(\'1b\',b,{1D:\'/\'});3.p.g(5(G,i){4 h=G.2l(\'b\',7.6);h.c(\'1H\',7.1I).c(\'1H\',7.6.r);h.H(1E,1G)})},1I:5(){4 7=3;4 12=F.1F(\'1b\')||3.6.T;8(12==3.A){3.p.g(5(G,i){G.Q(\'b\',(7.6.U*2m)+\'%\')})}},1a:5(b){8(b==3.10)n 3.6.1v;8(b==3.A)n 2n((2o.2p())*3.6.U);n 3.6.1w}});R.I(d 2q);R.I(d 1c);4 1J=d x({S:5(v,1K,1L,1d,1M,J){3.q({z:1x,V:y.W.2r,1N:1O,1e:\'\'},1d);4 6=3.6;$$(v).g(5(f,i){4 1f=f;8(J&&f.O(J)){1f=f.O(J)}4 h=d y.2s(1f,6);8(!($P(6.1e)&&f.2t(6.1e))){f.c(\'2u\',5(e){h.q(6,1d).H(1K)});f.c(\'2v\',5(e){h.q(6,1M).H(1L)})}})}});1J.I(d 1c);4 1P=d x({S:5(6){3.q({V:y.W.2w,z:2x,1N:1O,s:[\'#2y\',\'#2z\']},6);4 B=d 1z(1A.B);4 h=B.2A(3.6);4 t=0;4 s=3.6.s;4 2B=1g.2C(3.6.z*2);1g();5 1g(){h.H({\'2D-2E\':s[t]});8(t+1>=s.2F){t=0}w{t++}}}});1P.I(d 1c);',62,166,'|||this|var|function|options|obj|if||div|width|addEvent|new||el|each|fx||maxHeight|font|divHeight|click|return|divPadding|wrappers|setOptions|afterSwitch|colors|index|matchDivs|element|else|Class|Fx|duration|widthFluid|body|widthSwitch|fontSwitch||Cookie|wrapper|start|implement|elementFx|divBorder|minWidth|selectors|script|getElement|chk|setStyle|YOOStyleSwitcher|initialize|widthDefault|widthFluidPx|transition|Transitions|fontSmall|fontMedium|fontLarge|widthThin|htmlbody|widthStyle|switchWidthThin|switchWidthWide|switchWidthFluid|switchFontSmall|switchFontMedium|switchFontLarge|currentFont|getWidthPx|ytstylewidth|Options|enterFx|ignoreClass|elfx|animate|selector|elements|offsetHeight|getStyle|padding|toInt|undefined|style|pixelHeight|Math|max|height|px|wide|widthThinPx|widthWidePx|500|widthWide|Element|document|fonts|set|path|curWidth|get|newWidth|onComplete|widthSwitchComplete|YOOMorph|enter|leave|leaveFx|wait|false|YOOBackgroundFx|YOOBase|matchDivHeight|split|shift|ES|eval|push|top|bottom|window|ie6|min|780|940|quadOut|empty|small|medium|large|thin|fluid|switchwidththin|switchwidthwide|switchwidthfluid|switchfontsmall|switchfontmedium|switchfontlarge|addClass|removeClass|ytstylefont|fireEvent|effect|100|parseInt|Window|getWidth|Events|expoOut|Styles|hasClass|mouseenter|mouseleave|linear|9000|FFFFFF|999999|effects|timer|periodical|background|color|length'.split('|'),0,{}))/* Copyright (C) 2007 - 2009 YOOtheme GmbH */

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}('5 t=6 v({w:4(q,p,2){0.x({r:\'m\'},2);0.7=q;0.9=p;y(0.2.r){A\'z\':0.j();C;m:0.g()}},g:4(){5 2={};e(!$n(0.2.8)&&!$n(0.2.c)){2={c:-1}}$k(0.7).l(4(3,i){e(3.o(\'s\'))2={c:i}}.u(0));5 B=6 d.Q(0.7,0.9,$N(0.2,2))},j:4(){$k(0.7).l(4(3,i){5 a=3.h(\'a\');5 f=3.h(0.9);5 b=6 d.M(f,{D:d.P.R,L:K});e(!(3.o(\'s\')||0.2.8==\'F\'||0.2.8==i)){b.E()}a.G(\'H\',4(){b.J()})}.u(0))}});t.I(6 O);',54,54,'this||options|tog|function|var|new|togs|display|elms|span|fx|show|Fx|if|ul|createDefault|getElement||createSlide|ES|each|default|defined|hasClass|elements|togglers|accordion|active|YOOAccordionMenu|bind|Class|initialize|setOptions|switch|slide|case|accordionMenu|break|transition|hide|all|addEvent|click|implement|toggle|250|duration|Slide|extend|Options|Transitions|Accordion|linear'.split('|'),0,{}))
/* Copyright (C) 2007 - 2009 YOOtheme GmbH */

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}('h 16=d R({1g:8(e,7){4.N({1e:1l.1s.1p,I:1n,1o:F,10:R.1q,f:1,g:\'n\',18:1t,W:[\'1j\',\'1f\',\'1d\',\'1k\',\'1i\',\'1h\',\'1m\',\'1v\'],U:\'6.1B\',T:\'6.V\'},7);4.e=$(e),4.c=4.e.Q(4.7.T);4.6=[];4.a=[];4.e.1C(4.7.U).Z(8(5,i){4.X(5,i);5.w(\'1E\',8(E){4.1b(E,5)}.k(4));5.w(\'1u\',8(){4.1c(5,i)}.k(4));b(4.7.g==\'n\'){5.w(\'S\',8(){4.G(4.c,i)}.k(4))}B{5.w(\'S\',8(){4.G(5,i)}.k(4))}}.k(4));b(4.7.g==\'n\'){b(4.c){4.r(4.c)}B{h s=4.e.Q(\'6\');s.Y(\'V\');s.Y(\'c\');4.r(s)}}},X:8(5,i){b(4.7.g==\'n\'&&i!=0)14;h K=\'u \'+\'P\'+(i+1);4.7.W.Z(8(H,i){b(5.1w(H)){K+=\' P-\'+H}});4.a[i]=d o(\'a\',{\'A\':\'u-1\'}).M(d o(\'a\',{\'A\':\'u-2\'}).M(d o(\'a\',{\'A\':\'u-3\'})));4.a[i].9=4.a[i].17(4.7);4.6[i]=d o(\'6\',{\'A\':K}).M(4.a[i]).1D(4.e);4.6[i].9=4.6[i].17(4.7)},r:8(5){4.6[0].1A({\'y\':5.j,\'z\':5.m,\'1z\':\'1F\',\'f\':4.7.f});4.c=5},1b:8(E,5){b(!4.c)4.r(5);4.c=5;4.7.10(d 1x(E),5)},1c:8(5,i){13(4.7.g){q\'12\':4.O(5,i,19);v;q\'1a\':4.J(5,i,19);v;11:4.L(5,0)}},G:8(5,i){13(4.7.g){q\'12\':4.O(5,i,F);v;q\'1a\':4.J(5,i,F);v;11:4.L(5,0)}},L:8(5,i){b(!4.c)14;4.6[i].9.l({\'y\':[4.6[i].j,5.j],\'z\':[4.6[i].m,5.m]})},O:8(5,i,D){b(D){4.6[i].9.N(4.7);4.6[i].9.C({\'y\':5.j,\'z\':5.m});4.6[i].9.l({\'f\':[0,1]})}B{h 15=4.7.I*2;4.6[i].9.N({I:15});4.6[i].9.l({\'f\':[1,0]})}},J:8(5,i,D){h x=4.7.18;b(D){4.6[i].9.C({\'f\':1,\'y\':5.j,\'z\':5.m});4.a[i].9.C({\'t-p\':x});4.a[i].9.l({\'t-p\':[x,0]})}B{4.a[i].9.C({\'t-p\':0});4.a[i].9.l({\'t-p\':[0,x]})}}});16.1r(d 1y);',62,104,'||||this|item|li|options|function|fx|div|if|current|new|menu|opacity|mode|var||offsetLeft|bind|custom|offsetWidth|move|Element|top|case|setCurrent|first|margin|fancy|break|addEvent|offset|left|width|class|else|set|show|event|false|mouseleaveItem|col|duration|slideFx|css|moveFx|adopt|setOptions|fadeFx|bg|getElement|Class|mouseleave|activeSelector|itemSelector|active|colorSelector|createBackground|addClass|each|onClick|default|fade|switch|return|dur|YOOFancyMenu|effects|slideOffset|true|slide|clickItem|mouseenterItem|blue|transition|pink|initialize|yellow|orange|red|green|Fx|lilac|500|wait|sineInOut|empty|implement|Transitions|30|mouseenter|turquoise|hasClass|Event|Options|visibility|setStyles|level1|getElements|injectInside|click|visible'.split('|'),0,{}))
/* Copyright (C) 2007 - 2009 YOOtheme GmbH */

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}('2 g=f q({u:6(e,7){9.x({i:\'w\',y:s,B:h.v.A,z:r},7);2 3={\'8\':0,\'a\':0,\'b\':0};t(9.7.i){j\'8\':3={\'8\':0,\'b\':0};m;j\'a\':3={\'a\':0,\'b\':0};m}$$(e).M(6(4){2 1=4.L(\'1\');k(1){2 5=f h.N(1,9.7);2 n=1.O(\'8\',\'a\',\'b\');1.l(3);4.Q({C:6(){2 c=4.K();k(c.J(\'d\')==\'p\')c.o(\'d\',\'E\');5.e.o(\'d\',\'p\');5.D(n)},F:6(){5.G();1.l(3)}})}}.I(9))}});g.H(f P);',53,53,'|ul|var|reset|li|fx|function|options|width|this|height|opacity|parent|overflow|element|new|YOODropdownMenu|Fx|mode|case|if|setStyles|break|styles|setStyle|hidden|Class|false|600|switch|initialize|Transitions|default|setOptions|duration|wait|linear|transition|mouseenter|start|visible|mouseleave|stop|implement|bind|getStyle|getParent|getElement|each|Styles|getStyles|Options|addEvents'.split('|'),0,{}))
/* (C) 2008 YOOtheme.com */

var YOOTools = {
		
	start: function() {
		
		/* Match height of div tags */
		YOOTools.setDivHeight();

		/* Accordion menu */
		new YOOAccordionMenu('div#middle ul.menu li.toggler', 'ul.accordion', { accordion: 'slide' });

		/* Fancy menu */
		new YOOFancyMenu($E('ul', 'menu'), { mode: 'fade', transition: Fx.Transitions.linear, duration: 500 });

		/* Dropdown menu */
		new YOODropdownMenu('div#menu li.parent', { mode: 'height', transition: Fx.Transitions.Expo.easeOut });

		/* Morph: level1 items of main menu (tab) */
		var enterColorRed = '#ff0000';
		var enterColorBlue = '#5ae1f0';
		var enterColorPink = '#FF82FF';
		var enterColorOrange = '#f59641';
		var enterColorGreen = '#c3e63c';
		var enterColorYellow = '#ffdc57';
		var enterColorLilac = '#956ce8';
		var enterColorTurquoise = '#45f4d4';
		var enterColorWhite = '#ff0000';
		
		var leaveColor = '#ffffff';

		var menuEnterRed = { 'color': enterColorRed };
		var menuEnterBlue = { 'color': enterColorBlue };
		var menuEnterPink = { 'color': enterColorPink };
		var menuEnterOrange = { 'color': enterColorOrange };
		var menuEnterGreen = { 'color': enterColorGreen };
		var menuEnterYellow = { 'color': enterColorYellow };
		var menuEnterLilac = { 'color': enterColorLilac };
		var menuEnterTurquoise = { 'color': enterColorTurquoise };
		var menuEnterWhite = { 'color': enterColorWhite };
		
		var menuLeave = { 'color': leaveColor };
		
		new YOOMorph('div#menu li.red', menuEnterRed, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.blue', menuEnterBlue, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.pink', menuEnterPink, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.orange', menuEnterOrange, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.green', menuEnterGreen, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.yellow', menuEnterYellow, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.lilac', menuEnterLilac, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		new YOOMorph('div#menu li.turquoise', menuEnterTurquoise, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');

		new YOOMorph('div#menu li.white', menuEnterWhite, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, '.level1');
		
		/* Morph: level2 and deeper items of main menu (drop down) */
		new YOOMorph('div#menu li.red ul.level2 a', menuEnterRed, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.blue ul.level2 a', menuEnterBlue, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.pink ul.level2 a', menuEnterPink, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.orange ul.level2 a', menuEnterOrange, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.green ul.level2 a', menuEnterGreen, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.yellow ul.level2 a', menuEnterYellow, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.lilac ul.level2 a', menuEnterLilac, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.turquoise ul.level2 a', menuEnterTurquoise, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		new YOOMorph('div#menu li.white ul.level2 a', menuEnterWhite, menuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300},
			{ transition: Fx.Transitions.sineIn, duration: 500 });
		
		
		/* Morph: level1 subline of main menu (tab) */
		enterColorRed = '#C8001E';
		enterColorBlue = '#00BED2';
		enterColorPink = '#C800C8';
		enterColorOrange = '#DC5000';
		enterColorGreen = '#78C800';
		enterColorYellow = '#FFC800';
		enterColorLilac = '#6432C8';
		enterColorTurquoise = '#00DCB4';
		enterColorWhite = '#C8001E';
		
		leaveColor = '#ffffff';

		menuEnterRed = { 'color': enterColorRed };
		menuEnterBlue = { 'color': enterColorBlue };
		menuEnterPink = { 'color': enterColorPink };
		menuEnterOrange = { 'color': enterColorOrange };
		menuEnterGreen = { 'color': enterColorGreen };
		menuEnterYellow = { 'color': enterColorYellow };
		menuEnterLilac = { 'color': enterColorLilac };
		menuEnterTurquoise = { 'color': enterColorTurquoise };
		menuEnterWhite = { 'color': enterColorWhite };
		
		new YOOMorph('div#menu li.red', menuEnterRed, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.blue', menuEnterBlue, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
				
		new YOOMorph('div#menu li.pink', menuEnterPink, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.orange', menuEnterOrange, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.green', menuEnterGreen, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.yellow', menuEnterYellow, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.lilac', menuEnterLilac, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		new YOOMorph('div#menu li.turquoise', menuEnterTurquoise, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
				
		new YOOMorph('div#menu li.white', menuEnterWhite, menuLeave,
			{ transition: Fx.Transitions.linear, duration: 500},
			{ transition: Fx.Transitions.sineIn, duration: 500 }, 'span.sub');
		
		/* Morph: sub menu (left) */
		switch (YtSettings.itemColor) {
			case "blue":		var enterColor = '#5ae1f0';
								break;

			case "pink": 		var enterColor = '#FF82FF';
								break;
		 
			case "orange": 		var enterColor = '#f59641';
								break;
		 
			case "green":	 	var enterColor = '#c3e63c';
								break;
							
			case "yellow":		var enterColor = '#ffdc57';
								break;
							
			case "lilac":		var enterColor = '#956ce8';
								break;
							
			case "turquoise":	var enterColor = '#45f4d4';
								break;
								
			case "white":	var enterColor = '#ff0000';
								break;
		 
			default: 			var enterColor = '#ff0000';
		  }
		
		var leaveColor = '#ffffff';
		var submenuEnter = { 'color': enterColor};
		var submenuLeave = { 'color': leaveColor};

		new YOOMorph('div#left ul.menu a, div#left ul.menu span.separator', submenuEnter, submenuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300 },
			{ transition: Fx.Transitions.sineIn, duration: 500 });

		var enterColor = '#000000';
		var leaveColor = '#646464';
		var submenuEnter = { 'color': enterColor};
		var submenuLeave = { 'color': leaveColor};

		new YOOMorph('div#right ul.menu a, div#right ul.menu span.separator', submenuEnter, submenuLeave,
			{ transition: Fx.Transitions.expoOut, duration: 300 },
			{ transition: Fx.Transitions.sineIn, duration: 500 });

		/* Smoothscroll */
		new SmoothScroll({ duration: 500, transition: Fx.Transitions.Expo.easeOut });
	},

	/* Include script */
	include: function(library) {
		$ES('script').each(function(s, i){
			var src  = s.getProperty('src');
			var path = '';
			if (src && src.match(/yoo_tools\.js(\?.*)?$/)) path = src.replace(/yoo_tools\.js(\?.*)?$/,'');
			if (src && src.match(/template\.js\.php(\?.*)?$/)) path = src.replace(/template\.js\.php(\?.*)?$/,'');
			if (path != '') document.write('<script language="javascript" src="' + path + library + '" type="text/javascript"></script>');
		});
	},

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

};

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

/* Load IE6 fix */
if (window.ie6) {
	YOOTools.include('addons/ie6fix.js');
	YOOTools.include('yoo_ie6fix.js');
}
