/* * Copyright(C) 2010 - IceTheme.com. All rights reserved. */ var IceMenu27={}; IceMenu27.accordion=function(){
function slider(n){this.n=n; this.a=[];}
slider.prototype.init=function(t,e,sec,m,o,k){
var a=$(t), i=s=0, n=a.childNodes, l=n.length; this.s=k||0; this.m=m||0;
for(i;i
0&&(f==-1||this.m||i==d)){
c.d=-1;
$(h).removeClass('oppened');
}
su(c);
}
}
};
function su(c){
if (!ICEMENU_ACC_ALLOW_ANIM27) {
if (c.d == 1) {c.style.height='auto';} else {c.style.height='0px';}
} else {
c.t=setInterval(function(){sl(c)},ICEMENU_ACC_ANIM_SPEED27);
}
};
function sl(c){
var h=c.offsetHeight, d=c.d==1?c.m-h:h; c.style.height=h+(Math.ceil(d/5)*c.d)+'px';
if (ICEMENU_ACC_ALLOW_OPACITY27) {c.style.opacity=h/c.m; c.style.filter='alpha(opacity='+h*100/c.m+')';}
if((c.d==1&&h>
=c.m)||(c.d!=1&&h==1)){if(c.d==1){c.style.height='auto'} else {c.style.visibility='hidden';} clearInterval(c.t);}
};
return{slider:slider};
}(); IceMenu27.dropdown=function(){
var z=50,s=6,a;
function dd(n){this.n=n; this.h=[]; this.c=[];};
dd.prototype.init=function(p,c) {
a=c;
var w=document.getElementById(p), s=w.getElementsByTagName('ul'), l=s.length, i=0;
for(i;i
=c.mh&&f==1))&&((w
<=0&&f!=1)||(w>
=c.mw&&f==1)));
} else if (ICEMENU_DROP_ALLOW_HEIGHT27) {
tostop=((h
<=0&&f!=1)||(h>
=c.mh&&f==1));
} else if (ICEMENU_DROP_ALLOW_WIDTH27) {
tostop=((w
<=0&&f!=1)||(w>
=c.mw&&f==1));
}
if (tostop){
if(f==1){
if (ICEMENU_DROP_ALLOW_OPACITY27) {
c.style.filter='';
c.style.opacity=1;
}
c.style.overflow='visible';
} else {
c.style.display='none';
}
clearInterval(c.t);
return;
} var d=(f==1)?Math.ceil((c.mh-h)/s):Math.ceil(h/s);
var dw=(f==1)?Math.ceil((c.mw-w)/s):Math.ceil(w/s);
var o = 1;
if (ICEMENU_DROP_ALLOW_HEIGHT27) {
o=h/c.mh;
} else if (ICEMENU_DROP_ALLOW_WIDTH27) {
o=w/c.mw;
}
if (ICEMENU_DROP_ALLOW_OPACITY27) {
c.style.opacity=o;
}
if (ICEMENU_DROP_ALLOW_HEIGHT27){
if ((h
<=0&&f!=1)||(h>
=c.mh&&f==1)) {
c.style.height=c.mh+'px';
} else {
c.style.height=h+(d*f)+'px';
}
}
if (ICEMENU_DROP_ALLOW_WIDTH27){
if ((w
<=0&&f!=1)||(w>
=c.mw&&f==1)) {
c.style.height=c.mh+'px';
} else {
c.style.width=w+(dw*f)+'px';
}
}
if(!(ICEMENU_DROP_ALLOW_HEIGHT27 || ICEMENU_DROP_ALLOW_WIDTH27)) {
c.style.display='none';
}
};
return{dd:dd};
}();
-->