// jQuery SuperSlide !function(a){a.fn.slide=function(b){return a.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevCell,d),g=a(c.nextCell,d),h=a(c.pageStateCell,d),i=a(c.playStateCell,d),j=a(c.titCell,d),k=j.size(),l=a(c.mainCell,d),m=l.children().size(),n=c.switchLoad,o=a(c.targetCell,d),p=parseInt(c.defaultIndex),q=parseInt(c.delayTime),r=parseInt(c.interTime);parseInt(c.triggerTime);var Q,t=parseInt(c.scroll),u=parseInt(c.vis),v="false"==c.autoPlay||0==c.autoPlay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autoPage||0==c.autoPage?!1:!0,y="false"==c.pnLoop||0==c.pnLoop?!1:!0,z="false"==c.mouseOverStop||0==c.mouseOverStop?!1:!0,A="false"==c.defaultPlay||0==c.defaultPlay?!1:!0,B="false"==c.returnDefault||0==c.returnDefault?!1:!0,C=0,D=0,E=0,F=0,G=c.easing,H=null,I=null,J=null,K=c.titOnClassName,L=j.index(d.find("."+K)),M=p=-1==L?p:L,N=p,O=p,P=m>=u?0!=m%t?m%t:t:0,R="leftMarquee"==e||"topMarquee"==e?!0:!1,S=function(){a.isFunction(c.startFun)&&c.startFun(p,k,d,a(c.titCell,d),l,o,f,g)},T=function(){a.isFunction(c.endFun)&&c.endFun(p,k,d,a(c.titCell,d),l,o,f,g)},U=function(){j.removeClass(K),A&&j.eq(N).addClass(K)};if("menu"==c.type)return A&&j.removeClass(K).eq(p).addClass(K),j.hover(function(){Q=a(this).find(c.targetCell);var b=j.index(a(this));I=setTimeout(function(){switch(p=b,j.removeClass(K).eq(p).addClass(K),S(),e){case"fade":Q.stop(!0,!0).animate({opacity:"show"},q,G,T);break;case"slideDown":Q.stop(!0,!0).animate({height:"show"},q,G,T)}},c.triggerTime)},function(){switch(clearTimeout(I),e){case"fade":Q.animate({opacity:"hide"},q,G);break;case"slideDown":Q.animate({height:"hide"},q,G)}}),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(U,q)}),void 0;if(0==k&&(k=m),R&&(k=2),x){if(m>=u)if("leftLoop"==e||"topLoop"==e)k=0!=m%t?(0^m/t)+1:m/t;else{var V=m-u;k=1+parseInt(0!=V%t?V/t+1:V/t),0>=k&&(k=1)}else k=1;j.html("");var W="";if(1==c.autoPage||"true"==c.autoPage)for(var X=0;k>X;X++)W+="
  • "+(X+1)+"
  • ";else for(var X=0;k>X;X++)W+=c.autoPage.replace("$",X+1);j.html(W);var j=j.children()}if(m>=u){l.children().each(function(){a(this).width()>E&&(E=a(this).width(),D=a(this).outerWidth(!0)),a(this).height()>F&&(F=a(this).height(),C=a(this).outerHeight(!0))});var Y=l.children(),Z=function(){for(var a=0;u>a;a++)Y.eq(a).clone().addClass("clone").appendTo(l);for(var a=0;P>a;a++)Y.eq(m-a-1).clone().addClass("clone").prependTo(l)};switch(e){case"fold":l.css({position:"relative",width:D,height:C}).children().css({position:"absolute",width:E,left:0,top:0,display:"none"});break;case"top":l.wrap('
    ').css({top:-(p*t)*C,position:"relative",padding:"0",margin:"0"}).children().css({height:F});break;case"left":l.wrap('
    ').css({width:m*D,left:-(p*t)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:E});break;case"leftLoop":case"leftMarquee":Z(),l.wrap('
    ').css({width:(m+u+P)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(P+p*t)*D}).children().css({"float":"left",width:E});break;case"topLoop":case"topMarquee":Z(),l.wrap('
    ').css({height:(m+u+P)*C,position:"relative",padding:"0",margin:"0",top:-(P+p*t)*C}).children().css({height:F})}}var $=function(a){var b=a*t;return a==k?b=m:-1==a&&0!=m%t&&(b=-m%t),b},_=function(b){var c=function(c){for(var d=c;u+c>d;d++)b.eq(d).find("img["+n+"]").each(function(){var b=a(this);if(b.attr("src",b.attr(n)).removeAttr(n),l.find(".clone")[0])for(var c=l.children(),d=0;d=1?p=1:0>=p&&(p=0):(O=p,p>=k?p=0:0>p&&(p=k-1)),S(),null!=n&&_(l.children()),o[0]&&(Q=o.eq(p),null!=n&&_(o),"slideDown"==e?(o.not(Q).stop(!0,!0).slideUp(q),Q.slideDown(q,G,function(){l[0]||T()})):(o.not(Q).stop(!0,!0).hide(),Q.animate({opacity:"show"},q,function(){l[0]||T()}))),m>=u)switch(e){case"fade":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,G,function(){T()}).siblings().hide();break;case"fold":l.children().stop(!0,!0).eq(p).animate({opacity:"show"},q,G,function(){T()}).siblings().animate({opacity:"hide"},q,G);break;case"top":l.stop(!0,!1).animate({top:-p*t*C},q,G,function(){T()});break;case"left":l.stop(!0,!1).animate({left:-p*t*D},q,G,function(){T()});break;case"leftLoop":var b=O;l.stop(!0,!0).animate({left:-($(O)+P)*D},q,G,function(){-1>=b?l.css("left",-(P+(k-1)*t)*D):b>=k&&l.css("left",-P*D),T()});break;case"topLoop":var b=O;l.stop(!0,!0).animate({top:-($(O)+P)*C},q,G,function(){-1>=b?l.css("top",-(P+(k-1)*t)*C):b>=k&&l.css("top",-P*C),T()});break;case"leftMarquee":var c=l.css("left").replace("px","");0==p?l.animate({left:++c},0,function(){l.css("left").replace("px","")>=0&&l.css("left",-m*D)}):l.animate({left:--c},0,function(){l.css("left").replace("px","")<=-(m+P)*D&&l.css("left",-P*D)});break;case"topMarquee":var d=l.css("top").replace("px","");0==p?l.animate({top:++d},0,function(){l.css("top").replace("px","")>=0&&l.css("top",-m*C)}):l.animate({top:--d},0,function(){l.css("top").replace("px","")<=-(m+P)*C&&l.css("top",-P*C)})}j.removeClass(K).eq(p).addClass(K),M=p,y||(g.removeClass("nextStop"),f.removeClass("prevStop"),0==p&&f.addClass("prevStop"),p==k-1&&g.addClass("nextStop")),h.html(""+(p+1)+"/"+k)}};A&&ab(!0),B&&d.hover(function(){clearTimeout(J)},function(){J=setTimeout(function(){p=N,A?ab():"slideDown"==e?Q.slideUp(q,U):Q.animate({opacity:"hide"},q,U),M=p},300)});var bb=function(a){H=setInterval(function(){w?p--:p++,ab()},a?a:r)},cb=function(a){H=setInterval(ab,a?a:r)},db=function(){z||(clearInterval(H),bb())},eb=function(){(y||p!=k-1)&&(p++,ab(),R||db())},fb=function(){(y||0!=p)&&(p--,ab(),R||db())},gb=function(){clearInterval(H),R?cb():bb(),i.removeClass("pauseState")},hb=function(){clearInterval(H),i.addClass("pauseState")};if(v?R?(w?p--:p++,cb(),z&&l.hover(hb,gb)):(bb(),z&&d.hover(hb,gb)):(R&&(w?p--:p++),i.addClass("pauseState")),i.click(function(){i.hasClass("pauseState")?gb():hb()}),"mouseover"==c.trigger?j.hover(function(){var a=j.index(this);I=setTimeout(function(){p=a,ab(),db()},c.triggerTime)},function(){clearTimeout(I)}):j.click(function(){p=j.index(this),ab(),db()}),R){if(g.mousedown(eb),f.mousedown(fb),y){var ib,jb=function(){ib=setTimeout(function(){clearInterval(H),cb(0^r/10)},150)},kb=function(){clearTimeout(ib),clearInterval(H),cb()};g.mousedown(jb),g.mouseup(kb),f.mousedown(jb),f.mouseup(kb)}"mouseover"==c.trigger&&(g.hover(eb,function(){}),f.hover(fb,function(){}))}else g.click(eb),f.click(fb)})}}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),hb?-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:.5*h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}); // jQuery Placeholder (function($){var methods={init:function(options){var settings=$.extend({'c':'ph-active','a':'placeholder','val':'','event':'focus'},options);return this.each(function(){var $obj=$(this),$attr=$obj.attr(settings.a);if(settings.val.length>1){$attr=settings.val}try{if($attr.length>1){$obj.val($attr).addClass(settings.c).bind('focus',function(){if(settings.event=='keydown'){if($attr==$obj.val()){$obj.get(0).setSelectionRange(0,0);$obj.addClass('ph-keydown')}}else{if($attr==$obj.val()){$obj.val('').removeClass(settings.c)}}}).bind('blur',function(){if(settings.event=='keydown'){$obj.removeClass('ph-keydown')}if($obj.val().length<1){$obj.val($attr).addClass(settings.c)}}).keydown(function(){if(settings.event=='keydown'){if($attr==$obj.val()){$obj.val('').removeClass(settings.c).removeClass('ph-keydown')}}})}}catch(e){}})},label:function(options){var settings=$.extend({'c':'ph-active','a':'placeholder','val':'','event':'focus','effect':{'type':'','speed':'fast','value':'0.5'}},options);return this.each(function(){var $obj=$(this),$attr=$obj.attr(settings.a);var $label_id='placeholder_label_'+$obj.attr('id');$obj.parent().append('
    '+$attr+'
    ');var $label=$('#'+$label_id);if(settings.val.length>1){$attr=settings.val}try{if($attr.length>1){$obj.val($attr).addClass(settings.c).bind('focus',function(){if($attr==$obj.val()){$obj.val('').removeClass(settings.c);if(settings.effect.type=='fade'){$label.fadeOut(settings.effect.speed)}else if(settings.effect.type=='opacity'){$label.fadeTo(settings.effect.speed,settings.effect.value)}else{$label.hide()}}}).bind('blur',function(){if($obj.val().length<1){$obj.val($attr).addClass(settings.c);$label.show()}});$label.bind('click',function(){$obj.click().focus()})}}catch(e){}})},destroy:function(){this.each(function(){var $obj=$(this),data=$obj.data('placeholder');$(window).unbind('.placeholder-label');data.placeholder.remove();$obj.removeData('placeholder')})}};$.fn.placeholder=function(method){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{$.error()}}})(jQuery); //headroom (function($){$.fn.headroom=function(options){var defualts={classes:{pinned:'headroom--pinned',unpinned:'headroom--unpinned',top:'headroom--top',notTop:'headroom--not-top',initial:'headroom'}};var opts=$.extend({},defualts,options);var obj=$(this);var initTop=0;if(!$.support.leadingWhitespace){obj.addClass("ie");} headroom={init:function(){setTimeout(this.refresh,200);setTimeout(this.attachEvent,200);},refresh:function(){var scrollTop=$(document).scrollTop();if(scrollTop==0){obj.addClass(opts.classes.top).removeClass(opts.classes.notTop);} else{obj.addClass(opts.classes.notTop).addClass("pie").removeClass(opts.classes.top);}},destroy:function(){obj.removeClass(opts.classes.pinned).addClass("pie");obj.removeClass(opts.classes.unpinned);obj.removeClass(opts.classes.top);$(window).removeEventListener('scroll',this.init(),false);},attachEvent:function(){$(window).scroll(function(){var scrollTop=$(document).scrollTop();if(scrollTop!=0){obj.addClass(opts.classes.notTop).addClass("pie").removeClass(opts.classes.top);} else{obj.addClass(opts.classes.top).removeClass(opts.classes.notTop);} if(scrollTop>initTop){obj.addClass(opts.classes.unpinned).addClass("pie").removeClass(opts.classes.pinned);}else{obj.addClass(opts.classes.pinned).addClass("pie").removeClass(opts.classes.unpinned);} setTimeout(function(){initTop=scrollTop;},200);});}};headroom.init();};})(jQuery); //Menu ||index==2||index==3||index==4 (function($){$.fn.indexMenu=function(options){var defualts={list:".nav-list",box:".navbox"};var opts=$.extend({},defualts,options);var menu=$(this);var time=null;var list=$(opts.list,menu);var box=$(opts.box,menu);var lista=list.find("a");for(var i=0,j=lista.length;iinitTop){$(".navbox .cont").hide();box_hide()}else{}setTimeout(function(){initTop=scrollTop},0)})}})(jQuery); // jQuery DropDownList var DropDownList=(function($,undefined){var staticVar={themeIdPrefix:"dropdownThemeFor",themeId:"dropdownThemeFor#{id}",listId:"dropdownOptionsFor#{id}",classDropdownlsit:"mod-dropdownlist",classFormitem:"dropdown-select",classInput:"dropdown-input",classIcon:"dropdown-icon",classOptions:"dropdown-options",classFocusLi:"dropdown-options-focus",classList:"dropdown-list",classCustomScrollbar:"custom-scroll-bar",classCustomBox:"dropdown-custombox",attrOptionValue:"data-value",attrStylesCols:"data-cols",attrStylesWidth:"data-width"};var ids=[];var randomID=function(){while(true){var id=((new Date()).getTime()+"Select"+Math.floor(Math.random()*100000)).toString();if(!ids[id]){ids[id]=true;return id}}};var format=function(str,opts){source=str;var data=Array.prototype.slice.call(arguments,1),toString=Object.prototype.toString;if(data.length){data=data.length==1?(opts!==null&&(/\[object Array\]|\[object Object\]/.test(toString.call(opts)))?opts:data):data;return source.replace(/#\{(.+?)\}/g,function(match,key){var replacer=data[key];if("[object Function]"==toString.call(replacer)){replacer=replacer(key)}return("undefined"==typeof replacer?"":replacer)})}return source};var DDLClass=function(){};DDLClass.prototype={constructor:DDLClass,_addListItem:function(opt){var self=this;var new_option=$("");new_option.attr(staticVar.attrOptionValue,opt.value);new_option.html(opt.text);new_option.attr("href","javascript:;");var li=$("
  • ");new_option.click(function(event){var value=$(this).attr(staticVar.attrOptionValue);self.select.val(value);self.select.trigger("change");self.hide().listEle.trigger("hide-list")});li.append(new_option);self.listUL.append(li);return self},_list:function(){var self=this;this.listId=format(staticVar.listId,{id:this.select.attr("id")||randomID()});this.listEle=$("
    ").attr("id",this.listId).addClass(staticVar.classList).addClass(staticVar.classCustomScrollbar).hide();this.listUL=$("
      ").appendTo(this.listEle);this.listBox=$("
      ").appendTo(this.listEle).addClass(staticVar.classCustomBox);if(this.configs.box){this.listBox.append(this.configs.box)}var clickFunc=function(evt){if(!$.contains(self.listEle[0],evt.target)){self.hide()}};this.listEle.bind("show-list",function(){$(document).bind("click",clickFunc)});this.listEle.bind("hide-list",function(){$(document).unbind("click",clickFunc)});var theOptions=this.select[0].options;$.each(theOptions,function(i,opt){self._addListItem(opt)});this.listUL.addClass(staticVar.classOptions);var resize=function(){$(window).unbind("resize",resize);setTimeout(function(){var position=self.element.position();self.listEle.css({"left":position.left-1,"top":position.top+self.element[0].offsetHeight});$(window).resize(resize)},10)};$(window).resize(resize);self.listEle.appendTo(self.dropdownEle)},_createFromSelect:function(){this.select=$(this.configs.select);var themeId=format(staticVar.themeId,{id:this.select.attr("id")}),ddl=$("").attr({id:themeId,"href":"javascript:;","class":staticVar.classFormitem}),input=$("").attr({"class":staticVar.classInput}),icon=$("").attr({"class":staticVar.classIcon}),elementClass=this.select.attr("class");if(this.select[0].selectedIndex>=0){input.html(""+this.select[0].options[this.select[0].selectedIndex].text+"")}icon.html(" ");ddl.append(input).append(icon);if(elementClass){$.each(elementClass.split(/\s+/),function(i,cls){ddl.addClass(cls)})}this.select.hide();this.dropdownEle=$("
      ").append(ddl).insertAfter(this.select).addClass(staticVar.classDropdownlsit).addClass(this.configs.className||"");var customizedWidth=this.select.attr(staticVar.attrStylesWidth)||"";if(customizedWidth){var pdl=parseInt(input.css("padding-left"),10)||0,pdr=parseInt(input.css("padding-right"),10)||0;input.css("width",parseInt(customizedWidth,10)-pdl-pdr-icon[0].offsetWidth-3)}input.parent().click(function(event){if($(this).attr("data-showwing")==1){self.hide()}else{self.show()}event.preventDefault();event.stopPropagation()});var self=this;this.select.change(function(event){if(self.select[0].selectedIndex>=0){input.html(""+self.select[0].options[self.select[0].selectedIndex].text+"")}});this.input=input;this.icon=icon;this.element=input.parent();this._list();return ddl},_init:function(configs){this.configs=$.extend({container:"body"},configs||{});var sel,attrs={};attrs.id=this.configs.attrs.id||randomID();attrs["data-cols"]=this.configs.attrs.column||8;if(this.configs.attrs.width){attrs["data-width"]=this.configs.attrs.width}if(this.configs.options){if(this.configs.attrs.id){attrs.id=this.configs.attrs.id}attrs["data-cols"]=this.configs.attrs.column||8;if(this.configs.attrs.width){attrs["data-width"]=this.configs.attrs.width}sel=$("").attr(attrs).hide().appendTo($(this.configs.container));var selectedIndex,option;$.each(this.configs.options,function(i,opt){option=new Option(opt[0]||opt,opt[1]||opt[0]||opt);if(opt[2]){option.selected=true; option.setAttribute("selected","selected");selectedIndex=i}sel[0].options.add(option)});this.configs.select=sel}else{sel=this.configs.select.attr(attrs).hide();if(!sel.is("select")){return}}$("#"+format(staticVar.themeId,{id:sel[0].id})).remove();if(sel[0].options.length){this._createFromSelect(sel).show()}return this},val:function(value){if((value||"").length){this.select.val(value).trigger("change");return this}else{return this.select.val()}},change:function(){if(arguments.length){return this.select.change.apply(this.select,arguments)}else{this.select.trigger("change");return this}},show:function(){var self=this;self.element.attr("data-showwing",1);var optionHeight=parseInt(self.configs.attrs.height,10)||30;$("li a",self.listUL).css({"height":optionHeight+"px","line-height":optionHeight+"px"});var customizedCols=self.select.attr(staticVar.attrStylesCols)||"10";var lis=$("li",self.listUL);var listHeight=optionHeight*Math.min((parseInt(customizedCols,10)),lis.length);var parent=$("#"+format(staticVar.themeId,{id:self.select.attr("id")}));var position=parent.position();var tmpStyles={"position":"absolute","left":position.left,"top":position.top+parent[0].offsetHeight,"width":parent[0].offsetWidth-(parseInt(parent.css("border-left-width"),10)||0)-(parseInt(parent.css("border-right-width"),10)||0),"z-index":(parseInt(self.select.parent().css("z-index"),10)||0)+10};self.listUL.css({"height":listHeight});self.listEle.css(tmpStyles).show().trigger("show-list");var focusOption;$.each(lis,function(i,li){if(self.select.val()==$("a",li).attr(staticVar.attrOptionValue)){focusOption=li;return false}});if(focusOption){setTimeout(function(){$(focusOption).siblings("li").removeClass(staticVar.classFocusLi).end().addClass(staticVar.classFocusLi);focusOption.parentNode.scrollTop=focusOption.offsetTop},10)}return self},hide:function(){this.element.attr("data-showwing",0);this.listEle.hide().trigger("hide-list");return this},add:function(option){var opt=new Option(option.text,option.value);this.select[0].options.add(opt);this._addListItem(opt);return this}};var _create=function(configs){return(new DDLClass())._init(configs)};return{version:"1.3",create:_create}})(jQuery);