/* (C) 2008 YOOtheme.com, base.js */

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

		/* Style switcher */
		new YOOStyleSwitcher($ES('.wrapper'), { 
			widthDefault: YtSettings.widthDefault,
			widthThinPx: YtSettings.widthThinPx,
			widthWidePx: YtSettings.widthWidePx,
			widthFluidPx: YtSettings.widthFluidPx,
			afterSwitch: YOOTools.setDivHeight,
			transition: Fx.Transitions.expoOut,
			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');
}

