ACC SHELL
/*
reflection.js for mootools v1.2
by Christophe Beyls (http://www.digitalia.be) - MIT-style license
*/
var Reflection = {
add: function(img, options){
img = $(img);
if (img.getTag() != 'img') return;
options = {arguments: [img, options]};
if (window.ie) options.delay = 50;
img.preload = new Image();
img.preload.onload = Reflection.reflect.create(options);
img.preload.src = img.src;
},
remove: function(img){
img = $(img);
if (img.preload) img.preload.onload = null;
if ((img.getTag() == 'img') && (img.className == 'reflected')){
img.className = img.parentNode.className;
img.style.cssText = img.backupStyle;
img.parentNode.replaceWith(img);
}
},
reflect: function(img, options){
options = $extend({
height: 0.33,
opacity: 0.5
}, options || {});
Reflection.remove(img);
var canvas, canvasHeight = Math.floor(img.height*options.height);
if (window.ie){
canvas = new Element('img', {'src': img.src, 'styles': {
'width': img.width,
'marginBottom': -img.height+canvasHeight,
'filter': 'flipv progid:DXImageTransform.Microsoft.Alpha(opacity='+(options.opacity*100)+', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy='+(options.height*100)+')'
}});
} else {
canvas = new Element('canvas', {'styles': {'width': img.width, 'height': canvasHeight}});
if (!canvas.getContext) return;
}
var div = new Element('div').injectAfter(img).adopt(img, canvas);
div.className = img.className;
div.style.cssText = img.backupStyle = img.style.cssText;
div.removeClass('reflect').setStyles({'width': img.width, 'height': canvasHeight+img.height});
img.style.cssText = 'vertical-align: bottom';
img.className = 'reflected';
if (window.ie) return;
var context = canvas.setProperties({'width': img.width, 'height': canvasHeight}).getContext('2d');
context.save();
context.translate(0, img.height-1);
context.scale(1, -1);
context.drawImage(img, 0, 0, img.width, img.height);
context.restore();
context.globalCompositeOperation = 'destination-out';
var gradient = context.createLinearGradient(0, 0, 0, canvasHeight);
gradient.addColorStop(0, 'rgba(255, 255, 255, '+(1-options.opacity)+')');
gradient.addColorStop(1, 'rgba(255, 255, 255, 1.0)');
context.fillStyle = gradient;
context.rect(0, 0, img.width, canvasHeight);
context.fill();
},
addFromClass: function(){
$each(document.getElementsByTagName('img'), function(img){
if ($(img).hasClass('reflect')) Reflection.add(img);
});
}
};
Element.extend({
addReflection: function(options) { Reflection.add(this, options); return this; },
removeReflection: function(options) { Reflection.remove(this, options); return this; }
});
Window.addEvent("domready", Reflection.addFromClass);
/*
Slimbox v1.4 - The ultimate lightweight Lightbox clone
by Christophe Beyls (http://www.digitalia.be) - MIT-style license.
Inspired by the original Lightbox v2 by Lokesh Dhakar.
*/
var Lightbox = {
init: function(options){
this.options = $extend({
resizeDuration: 400,
resizeTransition: false, // default transition
initialWidth: 250,
initialHeight: 250,
animateCaption: true,
showCounter: true
}, options || {});
this.anchors = [];
$each(document.links, function(el){
if (el.rel && el.rel.test(/^lightbox/i)){
el.onclick = this.click.pass(el, this);
this.anchors.push(el);
}
}, this);
this.eventKeyDown = this.keyboardListener.bindAsEventListener(this);
this.eventPosition = this.position.bind(this);
this.overlay = new Element('div', {'id': 'lbOverlay'}).injectInside(document.body);
this.center = new Element('div', {'id': 'lbCenter', 'styles': {'width': this.options.initialWidth, 'height': this.options.initialHeight, 'marginLeft': -(this.options.initialWidth/2), 'display': 'none'}}).injectInside(document.body);
this.image = new Element('div', {'id': 'lbImage'}).injectInside(this.center);
this.prevLink = new Element('a', {'id': 'lbPrevLink', 'href': '#', 'styles': {'display': 'none'}}).injectInside(this.image);
this.nextLink = this.prevLink.clone().setProperty('id', 'lbNextLink').injectInside(this.image);
this.prevLink.onclick = this.previous.bind(this);
this.nextLink.onclick = this.next.bind(this);
this.bottomContainer = new Element('div', {'id': 'lbBottomContainer', 'styles': {'display': 'none'}}).injectInside(document.body);
this.bottom = new Element('div', {'id': 'lbBottom'}).injectInside(this.bottomContainer);
new Element('a', {'id': 'lbCloseLink', 'href': '#'}).injectInside(this.bottom).onclick = this.overlay.onclick = this.close.bind(this);
this.caption = new Element('div', {'id': 'lbCaption'}).injectInside(this.bottom);
this.number = new Element('div', {'id': 'lbNumber'}).injectInside(this.bottom);
new Element('div', {'styles': {'clear': 'both'}}).injectInside(this.bottom);
var nextEffect = this.nextEffect.bind(this);
this.fx = {
overlay: this.overlay.effect('opacity', {duration: 500}).hide(),
resize: this.center.effects($extend({duration: this.options.resizeDuration, onComplete: nextEffect}, this.options.resizeTransition ? {transition: this.options.resizeTransition} : {})),
image: this.image.effect('opacity', {duration: 500, onComplete: nextEffect}),
bottom: this.bottom.effect('margin-top', {duration: 400, onComplete: nextEffect})
};
this.preloadPrev = new Image();
this.preloadNext = new Image();
},
click: function(link){
if (link.rel.length == 8) return this.show(link.href, link.title);
var j, imageNum, images = [];
this.anchors.each(function(el){
if (el.rel == link.rel){
for (j = 0; j < images.length; j++) if(images[j][0] == el.href) break;
if (j == images.length){
images.push([el.href, el.title]);
if (el.href == link.href) imageNum = j;
}
}
}, this);
return this.open(images, imageNum);
},
show: function(url, title){
return this.open([[url, title]], 0);
},
open: function(images, imageNum){
this.images = images;
this.position();
this.setup(true);
this.top = window.getScrollTop() + (window.getHeight() / 15);
this.center.setStyles({top: this.top, display: ''});
this.fx.overlay.start(0.8);
return this.changeImage(imageNum);
},
position: function(){
this.overlay.setStyles({'top': window.getScrollTop(), 'height': window.getHeight()});
},
setup: function(open){
var elements = $A(document.getElementsByTagName('object'));
elements.extend(document.getElementsByTagName(window.ie ? 'select' : 'embed'));
elements.each(function(el){
if (open) el.lbBackupStyle = el.style.visibility;
el.style.visibility = open ? 'hidden' : el.lbBackupStyle;
});
var fn = open ? 'addEvent' : 'removeEvent';
window[fn]('scroll', this.eventPosition)[fn]('resize', this.eventPosition);
document[fn]('keydown', this.eventKeyDown);
this.step = 0;
},
keyboardListener: function(event){
switch (event.keyCode){
case 27: case 88: case 67: this.close(); break;
case 37: case 80: this.previous(); break;
case 39: case 78: this.next();
}
},
previous: function(){
return this.changeImage(this.activeImage-1);
},
next: function(){
return this.changeImage(this.activeImage+1);
},
changeImage: function(imageNum){
if (this.step || (imageNum < 0) || (imageNum >= this.images.length)) return false;
this.step = 1;
this.activeImage = imageNum;
this.center.style.backgroundColor = '';
this.bottomContainer.style.display = this.prevLink.style.display = this.nextLink.style.display = 'none';
this.fx.image.hide();
this.center.className = 'lbLoading';
this.preload = new Image();
this.preload.onload = this.nextEffect.bind(this);
this.preload.src = this.images[imageNum][0];
return false;
},
nextEffect: function(){
switch (this.step++){
case 1:
this.center.className = '';
this.image.style.backgroundImage = 'url('+this.images[this.activeImage][0]+')';
this.image.style.width = this.bottom.style.width = this.preload.width+'px';
this.image.style.height = this.prevLink.style.height = this.nextLink.style.height = this.preload.height+'px';
this.caption.setHTML(this.images[this.activeImage][1] || '');
this.number.setHTML((!this.options.showCounter || (this.images.length == 1)) ? '' : 'Image '+(this.activeImage+1)+' of '+this.images.length);
if (this.activeImage) this.preloadPrev.src = this.images[this.activeImage-1][0];
if (this.activeImage != (this.images.length - 1)) this.preloadNext.src = this.images[this.activeImage+1][0];
if (this.center.clientHeight != this.image.offsetHeight){
this.fx.resize.start({height: this.image.offsetHeight});
break;
}
this.step++;
case 2:
if (this.center.clientWidth != this.image.offsetWidth){
this.fx.resize.start({width: this.image.offsetWidth, marginLeft: -this.image.offsetWidth/2});
break;
}
this.step++;
case 3:
this.bottomContainer.setStyles({top: this.top + this.center.clientHeight, height: 0, marginLeft: this.center.style.marginLeft, display: ''});
this.fx.image.start(1);
break;
case 4:
this.center.style.backgroundColor = '#000';
if (this.options.animateCaption){
this.fx.bottom.set(-this.bottom.offsetHeight);
this.bottomContainer.style.height = '';
this.fx.bottom.start(0);
break;
}
this.bottomContainer.style.height = '';
case 5:
if (this.activeImage) this.prevLink.style.display = '';
if (this.activeImage != (this.images.length - 1)) this.nextLink.style.display = '';
this.step = 0;
}
},
close: function(){
if (this.step < 0) return;
this.step = -1;
if (this.preload){
this.preload.onload = Class.empty;
this.preload = null;
}
for (var f in this.fx) this.fx[f].stop();
this.center.style.display = this.bottomContainer.style.display = 'none';
this.fx.overlay.chain(this.setup.pass(false, this)).start(0);
return false;
}
};
/* 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, morph.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}('d k=7 s({l:3(h,4,6,2,5){0.8({p:q,r:c.o.t,n:m},2);0.4=4;0.6=6;0.2=2;0.5=5;$$(h).A(3(1,i){0.f(1,i)}.b(0))},f:3(1,i){d 9=7 c.B(1,0.a);C(!1.z("y")){1.g(\'u\',3(e){9.8(0.a,0.2).j(0.4)}.b(0));1.g(\'w\',3(e){9.8(0.a,0.5).j(0.6)}.b(0))}}});k.x(7 v);',39,39,'this|el|enterFx|function|enter|leaveFx|leave|new|setOptions|liFxs|options|bind|Fx|var||createOver|addEvent|menu||start|YtMorph|initialize|false|wait|Transitions|duration|500|transition|Class|expoOut|mouseenter|Options|mouseleave|implement|active|hasClass|each|Styles|if'.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.
*/
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}('J=r.L.Q({j:4(){6{w:H,z:r.v.B}},A:4(5,7,a,8){3.y(3.j(),8);3.5=$(5);3.7=$(7);3.9=\'g\';3.t=\'a\';3.c=a;3.b=[];3.D(3.8)},x:4(m){k d=$E(m);p(3.5&&d)d.C(\'S\',4(){3.s()}.O(3))},N:4(){P(k i=0;i<2;i++)3.b[i]=3.R(3.M[i],3.F[i])},e:4(){6[3.5.h(\'9-g\').o(),3.7.h(\'a\').o()]},q:4(){6 3.n(3.e(),[0,3.c])},u:4(){6 3.n(3.e(),[-3.c,0])},s:4(){p(3.7.G==0)6 3.q();I 6 3.u()},K:4(){3.5.l(\'9-\'+3.9,3.b[0]+3.8.f);3.7.l(3.t,3.b[1]+3.8.f)}});',55,55,'|||this|function|element|return|wrapper|options|margin|height|now|offset|trigger|vertical|unit|top|getStyle||getOptions|var|setStyle|tr|start|toInt|if|slideIn|Fx|toggle|layout|slideOut|Transitions|duration|addTriggerEvent|setOptions|transition|initialize|linear|addEvent|parent||to|offsetHeight|500|else|YtSlidePanel|increase|Base|from|setNow|bind|for|extend|compute|click'.split('|'),0,{}))
/**
* YOOtheme Javascript file, styleswitcher.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}('3 z=l I({J:2(){h{D:\'4-M\',H:10,K:14,A:0.9,15:1c.16.1e,18:17,d:I.19}},1a:2(c,5){1.1b(1.J(),5);1.o=\'a-Y\',1.v=\'a-X\',1.w=\'a-W\',1.B=\'4-Z\';1.P=\'4-M\';1.k=\'4-13\';1.c=$$(c);1.m=l 12(11.1d);1.8(\'d\',1.5.d);1.F=\'\';3 u=$E(\'#1f\');3 q=$E(\'#1x\');3 t=$E(\'#1t\');3 r=$E(\'#1s\');3 p=$E(\'#1r\');3 s=$E(\'#1v\');7(u)u.8(\'b\',2(){1.f(1.B)}.6(1));7(q)q.8(\'b\',2(){1.f(1.P)}.6(1));7(t)t.8(\'b\',2(){1.f(1.k)}.6(1));7(r)r.8(\'b\',2(){1.g(1.o)}.6(1));7(p)p.8(\'b\',2(){1.g(1.v)}.6(1));7(s)s.8(\'b\',2(){1.g(1.w)}.6(1))},g:2(a){3 O=[1.o,1.v,1.w];O.y(2(x,i){7(x==a){1.m.1l(a)}1o{1.m.1m(x)}}.6(1));j.V(\'1k\',a,{Q:\'/\'});1.1h(\'d\')},f:2(4){3 T=1.C(j.N(\'G\')||1.5.D);3 R=1.C(4);j.V(\'G\',4,{Q:\'/\'});1.c.y(2(e,i){3 n=e.1w(\'4\',1.5);n.8(\'S\',1.U.6(1)).8(\'S\',1.5.d);n.1y(T,R)}.6(1))},U:2(){3 F=j.N(\'G\')||1.5.D;7(F==1.k){1.c.y(2(e,i){e.1g(\'4\',(1.5.A*1n)+\'%\')}.6(1))}},C:2(4){7(4==1.B)h 1.5.H;7(4==1.k)h 1i((1q.1p())*1.5.A);h 1.5.K}});z.L(l 1u);z.L(l 1j);',62,97,'|this|function|var|width|options|bind|if|addEvent||font|click|wrappers|afterSwitch|wrapper|widthSwitch|fontSwitch|return||Cookie|widthFluid|new|htmlbody|fx|fontSmall|switchFontMedium|switchWidthWide|switchFontSmall|switchFontLarge|switchWidthFluid|switchWidthThin|fontMedium|fontLarge|currentFont|each|YtStyleSwitcher|widthFluidPx|widthThin|getWidthPx|widthDefault||widthStyle|ytstylewidth|widthThinPx|Class|getOptions|widthWidePx|implement|wide|get|fonts|widthWide|path|newWidth|onComplete|curWidth|widthSwitchComplete|set|large|medium|small|thin|780|document|Element|fluid|940|transition|Transitions|500|duration|empty|initialize|setOptions|Fx|body|quadOut|switchwidththin|setStyle|fireEvent|parseInt|Options|ytstylefont|addClass|removeClass|100|else|getWidth|Window|switchfontmedium|switchfontsmall|switchwidthfluid|Events|switchfontlarge|effect|switchwidthwide|start'.split('|'),0,{}))
/**
* YOOtheme Javascript file, spotlight.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}('7 n=9 F({E:6(h,b){4.A({z:y,x:j.B.w,D:G},b);$$(h).r(6(3,i){v((3.f()==\'s\'||3.f()==\'u\')&&3.m(\'g-5\')!=\'t\'){4.k(3,i)}}.a(4))},k:6(3,i){7 5=3.m(\'g-5\').p(/^(\\S+)\\.(q|C|Q|V)/,"$U.$2");7 8=9 W(3.f(),{\'Y\':3.H(\'T\',\'R\')});7 c=9 j.K(8,4.b);8.J({\'I\':\'L\',\'g-5\':5,\'d\':0});8.M(3);3.l(\'P\',6(e){c.o({\'d\':1})}.a(4));3.l(\'O\',6(e){c.o({\'d\':0})}.a(4))}});n.N(9 X);',61,61,'|||el|this|image|function|var|overlay|new|bind|options|fxs|opacity||getTag|background|element||Fx|createOver|addEvent|getStyle|YtSpotlight|start|replace|gif|each|div|none|span|if|quadInOut|transition|600|duration|setOptions|Transitions|jpg|wait|initialize|Class|false|getStyles|display|setStyles|Styles|block|injectInside|implement|mouseleave|mouseenter|jpeg|height||width|1_spotlight|png|Element|Options|styles'.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();
/* Color settings */
var page = $('page');
var currentColor = '#8f0100'; /* default */
if (page.hasClass('green')) currentColor = '#8CDC00';
if (page.hasClass('pink')) currentColor = '#dc6eff';
if (page.hasClass('yellow')) currentColor = '#ffff64';
if (page.hasClass('blue')) currentColor = '#78c8ff';
/* Accordion menu */
var accordionFx = new YtAccordionMenu('div#middle ul.menu li.toggler', 'ul.accordion', { accordion: 'slide' });
/* Main menu */
var menuEnter = { 'margin-top': 0, 'padding-bottom': 15, 'background-color': '#000000' };
var menuLeave = { 'margin-top': 5, 'padding-bottom': 0, 'background-color': '#1E1E1E' };
if (YtSettings.color == 'white') {
$extend(menuEnter, { 'background-color': '#ffffff' });
$extend(menuLeave, { 'background-color': '#E6E6E6' });
}
var menuFx = new YtMorph('#menu li', menuEnter, menuLeave,
{ transition: Fx.Transitions.expoOut, duration: 300 });
/* Sub menu level2 */
var submenuEnter = { 'background-color': currentColor };
var submenuLeave = { 'background-color': '#000000' };
if (YtSettings.layout == 'right') {
$extend(submenuEnter, { 'margin-right': 0 });
$extend(submenuLeave, { 'margin-right': 5 });
} else {
$extend(submenuEnter, { 'margin-left': 0 });
$extend(submenuLeave, { 'margin-left': 5 });
}
if (YtSettings.color == 'white') $extend(submenuLeave, { 'background-color': '#ffffff' });
var submenuFx1 = new YtMorph('div#middle ul.menu li.level1', submenuEnter, submenuLeave,
{ transition: Fx.Transitions.expoOut, duration: 300 },
{ transition: Fx.Transitions.sineIn, duration: 500 });
/* Sub menu level3 */
var submenuLeave2 = $merge(submenuLeave, { 'background-color': '#141414' });
if (YtSettings.color == 'white') $extend(submenuLeave2, { 'background-color': '#f0f0f0' });
var submenuFx2 = new YtMorph('div#middle ul.menu li.level2', submenuEnter, submenuLeave2,
{ transition: Fx.Transitions.expoOut, duration: 300 },
{ transition: Fx.Transitions.sineIn, duration: 500 });
/* Module Morphing */
var moduleEnter = currentColor;
var moduleLeave = '#1E1E1E';
if (YtSettings.color == 'white') moduleLeave = '#E6E6E6';
var moduleFx = new YtMorph('#top div.moduletable, #bottom div.moduletable',
{ 'border-top-color': moduleEnter, 'border-right-color': moduleEnter,
'border-bottom-color': moduleEnter, 'border-left-color': moduleEnter },
{ 'border-top-color': moduleLeave, 'border-right-color': moduleLeave,
'border-bottom-color': moduleLeave, 'border-left-color': moduleLeave },
{ transition: Fx.Transitions.expoOut, duration: 400 },
{ transition: Fx.Transitions.sineIn, duration: 500 });
/* 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
});
/* Lightbox */
YtBase.setupLightbox();
Lightbox.init();
/* Spotlight */
var spotlightFx = new YtSpotlight('div.spotlight, span.spotlight');
},
/* Match height of div tags */
setDivHeight: function() {
YtBase.matchDivHeight('div.topbox div', 10, 40);
YtBase.matchDivHeight('div.bottombox div', 10, 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);
ACC SHELL 2018