var rm_h={preloadImages:function(){if(rm_h.preloadIndex>=rm_h.pics.length||rm_h.preloadIndex>rm_h.cur+rm_h.preloadDeep){return}if(rm_h.pics[rm_h.preloadIndex].c){rm_h.preloadIndex++;rm_h.preloadImages()}else{var a=jQ("<img class='mg_nomark'/>").attr("src",rm_h.pics[rm_h.preloadIndex].url);rm_h.pics[rm_h.preloadIndex++].c=true;a.load(function(){rm_h.preloadImages()}).error(function(){rm_h.preloadImages()});jQ("#mangaBox").append(a)}},refrashPicture:function(){rm_h.reloadWrongPicture(rm_h.cur)},findPosY:function(b){var a=0;if(b.offsetParent){while(1){a+=b.offsetTop;if(!b.offsetParent){break}b=b.offsetParent}}else{if(b.y){a+=b.y}}return a},wHeight:function(){if(rm_h.isExternal){return rm_h.parentH}return jQ(window).height()},wWidth:function(){if(rm_h.isExternal){return rm_h.parentW}return jQ(window).width()},setPictureSize:function(b,c,d){b.attr("height",d);b.attr("width",c);var a=c*1+rm_h.borderWidth*2;if(a<rm_h.minWww){a=rm_h.minWww}var e=d*1+rm_h.borderWidth*2;jQ("#mangaBox").css("width",a+"px");if(rm_h.isExternal){sendExternalSize(e,a)}},setDefoultBlockWidth:function(){jQ("#mangaBox").css("width",rm_h.minWww+"px")},scrollPage:function(b){if(!b&&!rm_h.isFirstPage){if(rm_h.zoom){var a=jQ("#mangaPicture")[0];if(a){var c=rm_h.findPosY(a);window.scroll(0,c)}}else{window.scroll(0,75)}}rm_h.isFirstPage=false},resizeImg:function(){var a=jQ("#mangaPicture");var f=a.attr("rH");var d=a.attr("rW");if(!rm_h.zoom){rm_h.setPictureSize(a,d,f);return}var b=rm_h.wHeight()-rm_h.borderWidth;var h=rm_h.wWidth()-rm_h.borderWidth-10;var c=b/f;var g=h/d;var e=Math.min(c,g);if(e<0.5){e=0.5}rm_h.setPictureSize(a,d*e,f*e)},updateAds:function(a,b){try{changePictureEvent(a,b)}catch(c){}},goNext:function(a){rm_h.goPage(rm_h.cur+1,a)},goPrev:function(a){rm_h.goPage(rm_h.cur-1,a)},goPage:function(c,b){c=c*1;rm_h.isTwitterFocus=false;jQ(".mangaReload").hide();jQ(".mangaProgress").show();if(rm_h.changeControl(c)){jQ(".mangaProgress").hide();jQ(".mangaReload").show();return}var e=rm_h.pics[c];e.c=true;jQ(".pageSelector").val(c);rm_h.preloadIndex=c+1;var a=jQ("#mangaPicture");var d=jQ("<img class='hide'/>").load(function(){rm_h.preloadImages();jQ(".mangaProgress").hide();jQ(".mangaReload").show()}).click(function(){rm_h.goNext()}).error({page:c},function(f){rm_h.reloadWrongPicture(f.data.page);rm_h.onPictureError(e.url);rm_h.preloadImages();jQ(".mangaProgress").hide();jQ(".mangaReload").show()}).attr({src:e.url,rH:e.h,rW:e.w,id:"mangaPicture",pageNum:c,title:transl_next_page,alt:transl_next_page});d.appendTo(jQ("#fotocontext"));a.attr("id","nextPicture");rm_h.resizeImg();a.hide();d.show();a.remove();rm_h.scrollPage(b);rm_h.updateTwitts(c);rm_h.updateAds(d[0],c)},reloadWrongPicture:function(e){var b=rm_h.pics[e];if(b.count==undefined){b.count=0}if(b.count>1){return}b.count++;var a=b.url.indexOf("/",10)+1;for(var c=0;c<servers.length;c++){if(b.url.indexOf(servers[c])>=0){b.url=servers[c+1]+b.url.substring(a);var f=jQ("#mangaPicture");var d=f.attr("pageNum");if(d==e){rm_h.goPage(rm_h.cur,false)}return}}},updateTwitts:function(a){jQ(".twitter .twitt").hide();jQ(".twitter .twitt[pagenumber='"+a+"']").show();jQ("#twittPageNum").attr("value",rm_h.cur)},twitterFocus:function(a){rm_h.isTwitterFocus=a},changeControl:function(a){if(a>rm_h.length||a<-1||(a>=rm_h.length&&!nextLink)||(a<0&&!prevLink)){return true}rm_h.cur=a;jQ("#mangaPicture").show();if(a<0&&prevLink){jQ(".prevChapLink").show();jQ("#mangaPicture").hide();rm_h.disableButton(".prevButton",true);rm_h.setDefoultBlockWidth();return true}if(a==0&&!prevLink){rm_h.disableButton(".prevButton",true);return false}if(a>=rm_h.length&&nextLink){rm_h.goToChapter(nextChapterLink)}if(a==(rm_h.length-1)&&!nextLink){rm_h.disableButton(".nextButton",true);return false}jQ(".nextChapLink, .prevChapLink").hide();rm_h.disableButton(".prevButton, .nextButton",false);return false},disableButton:function(a,b){if(b){jQ(a).attr("disabled","true").removeClass("pretty-hover")}else{jQ(a).removeAttr("disabled")}},onResize:function(a){if(a){rm_h.zoom=jQ(".resize").toggleClass("zoomSelected").hasClass("zoomSelected");setZoomOption(rm_h.zoom)}if(rm_h.zoom){rm_h.scrollPage(false)}rm_h.resizeImg()},goToChapter:function(a){if(rm_h.isExternal){a+="#"+rm_h.parent_url}location.href=a;return false},showHint:function(){var a=rm_h.cookie.getC("hideHint");if(!a||a=="false"){jQ("#helpHint").show()}},closeHint:function(){rm_h.cookie.create("hideHint",true,365);jQ("#helpHint").hide()},onPictureError:function(a){if(!a||a.length==0||a.indexOf("empty.gif")>0){return}saveErrorPicture(a)},drawControls:function(){try{jQ(".pagesCount").append(rm_h.length);var a=jQ(".pageSelector");for(var b=0;b<rm_h.length;b++){a.append("<option value='"+b+"'>"+(b+1)+"</option>")}jQ(".footerControl").append(jQ(".topControl").clone())}catch(c){}},init:function(d,f,b){rm_h.pics=d;servers.push(servers[0]);rm_h.length=d.length;rm_h.drawControls();if(b){rm_h.isExternal=true;rm_h.initExternalReader()}rm_h.zoom=rm_h.cookie.getC("zoomSelected")=="true";if(rm_h.zoom){jQ(".resize").addClass("zoomSelected")}var e=rm_h.deserialize(location.href,true,true);var a=e.page||0;rm_h.goPage(a);jQ(document).keyup(function(c){if(rm_h.isTwitterFocus){return false}switch(c.keyCode){case 32:rm_h.onResize(true);return false;case 37:rm_h.goPrev();return false;case 39:rm_h.goNext();return false}});jQ(window).resize(function(){rm_h.onResize(false)});rm_h.showHint()},pics:undefined,cur:0,length:0,borderWidth:2,minWww:850,isFirstPage:true,adsCount:0,preloadIndex:0,preloadDeep:3,preloadEvent:null,zoom:false,isTwitterFocus:false,initExternalReader:function(){if(!rm_h.isExternal){return}try{if(parent&&parent.document){jQ(parent.document).keyup(function(c){switch(c.keyCode){case 32:rm_h.onResize(true);return false;case 37:rm_h.goPrev();return false;case 39:rm_h.goNext();return false}})}}catch(a){}var b=document.location.hash.replace(/^#/,"").split("??");rm_h.parent_url=decodeURIComponent(b[0]);if(b[1]&&!isNaN(b[1])){rm_h.parentH=Number(b[1])}if(b[2]&&!isNaN(b[2])){rm_h.parentW=Number(b[2])}jQ.receiveMessage(function(d){var c=rm_h.deserialize(d.data,true,true);if(c.hhhh>0&&c.wwww>0){rm_h.parentW=c.wwww;rm_h.parentH=c.hhhh;rm_h.resizeImg()}})},deserialize:function(d,c,f){var a,h,b,e={},g={"null":null,"true":true,"false":false},l=f?/^.*[#]/:/^.*[?]|#.*$/g;d=d.replace(l,"").replace(/\+/g," ").split("&");while(d.length){a=d.shift().split("=");h=decodeURIComponent(a[0]);if(a.length===2){b=decodeURIComponent(a[1]);if(c){if(b&&!isNaN(b)){b=Number(b)}else{if(b==="undefined"){b=undefined}else{if(g[b]!==undefined){b=g[b]}}}}e[h]=b}else{if(h){e[h]=c?undefined:""}}}return e},parent_url:null,isExternal:false,parentW:880,parentH:900,showFullList:function(){jQ("#chaptersList .chapter").show();jQ("#chapterControl").hide()},fixPictureSize:function(){var c=jQ("#mangaDescPicture>img");c.removeAttr("hspace").removeAttr("vspace").removeAttr("align");var a=c.attr("width");if(a){a=a*1;if(a>325){var b=a/325;c.attr("width",a/b);c.attr("height",c.attr("height")/b)}}else{c.attr("width",325)}},fixForumSmiles:function(a){jQ(a+" img").each(function(){var b=jQ(this);if(b.attr("src")&&b.attr("src").indexOf("forum/images/smilies")>=0){b.attr("width","25")}})},search:{setStatusImage:function(a,b){a=jQ(a);switch(b){case"in":a.addClass("include").removeClass("exclude");break;case"ex":a.addClass("exclude").removeClass("include");break;default:a.removeClass("include").removeClass("exclude")}},clickOption:function(c,a){var b=jQ("input#"+a);var d=b.val();switch(d){case"in":b.val("ex");break;case"ex":b.val("");break;default:b.val("in")}rm_h.search.setStatusImage(c,b.val());return false},reprocess:function(){jQ("li.property").each(function(a,c){var e=jQ(c);var d=e.find("input").val();var b=e.find("a")[0];rm_h.search.setStatusImage(b,d)})},showAdvanced:function(){jQ(".advanced_button").hide();jQ(".advanced_option").show();jQ("#advanced_search").val("true")}},user:{restoreUserSettings:function(){var b=rm_h.cookie.getC("skin");if(b!=undefined){jQ("body").addClass(b)}var a=rm_h.cookie.getC("bgColor");if(a!=undefined){jQ("body").css("background-color",a)}},changeSkin:function(a){jQ("body").css("background-color","");jQ("body").removeClass().addClass(a);rm_h.cookie.create("skin",a,100);rm_h.cookie.deleteC("bgColor")},setBGColor:function(a){jQ("body").removeClass().css("background-color",a);rm_h.cookie.create("bgColor",a,100);rm_h.cookie.deleteC("skin")}},cookie:{create:function(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}document.cookie=c+"="+d+a+"; path=/"},deleteC:function(a){document.cookie=a+"=; path=/; expires=Thu, 01-Jan-1970 00:00:01 GMT"},getC:function(d){var c=document.cookie.split(";");for(var b=0;b<c.length;b++){var a=c[b].split("=");var e=a[0].replace(/^\s+|\s+$/g,"");if(e==d){if(a.length>1){return unescape(a[1].replace(/^\s+|\s+$/g,""))}return null}}return null}},updateTwittLength:function(a){jQ("#twittLength").text(a.length)},addBookmark:function(b){var a=window.open(RM_forum_link+"?link="+encodeURIComponent(document.location.href)+"&title="+encodeURIComponent(b),"bookmark_add","width=700, height=200, scrollbars=auto, resizable=true");a.focus()},forum:{showSpoiler:function(b){var c=jQ(b).parent().parent();c.children(".text").toggleClass("hide");c.children(".head").toggleClass("open")}},addQType:function(a){var b=".screenshot";if(a){b=a+" "+b}jQ(b).qtip({content:{text:function(f){var c=jQ(this).attr("data-w");var e=jQ(this).attr("data-h");var g="";if(c){g+=" width='"+c+"'"}if(e){g+=" height='"+e+"'"}var d="<img "+g+" src='"+jQ(this).attr("rel")+"'/>";var l=jQ(this).attr("title");if(l!=""){d+="<br/>"+l}return d}},position:{my:"bottom left",at:"top right",viewport:jQ(window),adjust:{method:"flip"}},style:{classes:"ui-tooltip-screenshot ui-tooltip-light ui-tooltip-shadow ui-tooltip-rounded"}})},video:{showPlayer:function(d){var b=jQ("#s"+d);var c=b.find(".embed_source").val();b.find(".target").append(c);b.find(".embed_video").show();var a=jQ(".controls_"+d).show();if(a.length>0){b.find(".video-info").hide()}else{b.find(".open_link").hide()}},closeVideo:function(b){var a=jQ("#s"+b);a.find(".target").empty();a.find(".embed_video").hide();a.find(".open_link, .video-info").show();jQ(".controls_"+b).hide()},showPlayerHideLink:function(b,a){rm_h.video.showPlayer(b);sendStatistic(a);return false},openVideoByFragment:function(c){var d=location.hash;if(d){if(d.indexOf("#s")>=0){d=d.replace("#s","");rm_h.video.showPlayer(d);return}}if(c){var a=jQ(".link_type_EMBED");if(a.length>0){var b=jQ(a[0]).attr("data-sId");rm_h.video.showPlayer(b)}}},lightOff:function(){if(jQ(".light-off-overlay").length==0){jQ("body").prepend('<div class="light-off-overlay"></div>');jQ(".light-off-overlay").click(function(){jQ("body").removeClass("viewer-light-off")})}jQ("body").addClass("viewer-light-off")}}};function shareLJ(){void ((function(){var b="http://www.livejournal.com/",a=window.open("","","toolbar=0,resizable=1,scrollbars=1,status=1,width=730,height=500");if(window.LJ_bookmarklet){return LJ_bookmarklet(a,b)}var c=document.createElement("script");c.setAttribute("type","text/javascript");c.onload=function(){LJ_bookmarklet(a,b)};c.setAttribute("src",b+"js/bookmarklet.js");document.getElementsByTagName("head").item(0).appendChild(c)})())}jQ(document).ready(function(){jQ("button").hover(function(){jQ(this).addClass("pretty-hover")},function(){jQ(this).removeClass("pretty-hover")});jQ(".masked-input").setMask({autoTab:false});rm_h.addQType();try{jQ("input.iColorPicker").iColorPicker();var a={},c;jQ("#mangaSearch #q").autocomplete({minLength:3,position:{my:"right top",at:"right bottom"},source:function(f,d){var e=f.term;if(e in a){d(a[e]);return}c=jQ.getJSON(RM_auto_link,f,function(h,g,l){a[e]=h;if(l===c){d(h)}})},select:function(d,e){location.href=e.item.link;return false}})}catch(b){}});var extsrc=null;(function(){extsrc=new Object;extsrc.complete=function(m){this.complete.funcs.push(m)};extsrc.complete.funcs=[];var h=document.write;var g=document.writeln;var d="";var f="";function e(){if(d&&f){document.write=h;document.writeln=g;var m=document.createElement("span");m.innerHTML=d;f.appendChild(m);d=""}}function b(){e();var m=document.getElementsByTagName("script");for(var p=0;p<m.length;p++){var r=m[p];var o=r.getAttribute("asyncsrc");if(o){r.setAttribute("asyncsrc","");var q=document.createElement("script");q.async=true;q.src=o;document.getElementsByTagName("head")[0].appendChild(q)}var n=r.getAttribute("extsrc");if(n){r.setAttribute("extsrc","");f=document.createElement("span");r.parentNode.insertBefore(f,r);document.write=function(s){d+=s};document.writeln=function(s){d+=s;d+="\n"};var q=document.createElement("script");q.async=true;q.src=n;if(a()){q.onreadystatechange=function(){if(this.readyState=="loaded"||this.readyState=="complete"){b()}}}else{if((navigator.userAgent.indexOf("Firefox")!=-1)||("onerror" in q)){q.onload=b;q.onerror=b}else{q.onload=b;q.onreadystatechange=b}}document.getElementsByTagName("head")[0].appendChild(q);return}}e();document.write=h;document.writeln=g;for(var p=0;p<extsrc.complete.funcs.length;p++){extsrc.complete.funcs[p]()}}function a(){return/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)}function l(){if(arguments.callee.done){return}arguments.callee.done=true;b()}if(document.addEventListener){document.addEventListener("DOMContentLoaded",l,false)}if(/WebKit/i.test(navigator.userAgent)){var c=setInterval(function(){if(/loaded|complete/.test(document.readyState)){clearInterval(c);l()}},10)}window.onload=l})();(function(aj,ai,ah){function M(A,z){function B(ao){var an=ao.precedance==="y",am=e[an?"width":"height"],al=e[an?"height":"width"],w=ao.string().indexOf("center")>-1,v=am*(w?0.5:1),u=Math.pow,t=Math.round,s,q,p,o=Math.sqrt(u(v,2)+u(al,2)),n=[c/v*o,c/al*o];n[2]=Math.sqrt(u(n[0],2)-u(c,2)),n[3]=Math.sqrt(u(n[1],2)-u(c,2)),s=o+n[2]+n[3]+(w?0:n[0]),q=s/o,p=[t(q*al),t(q*am)];return{height:p[an?0:1],width:p[an?1:0]}}function C(l){var s=r.titlebar&&l.y==="top",q=s?r.titlebar:r.content,p=aj.browser.mozilla,o=p?"-moz-":aj.browser.webkit?"-webkit-":"",n=l.y+(p?"":"-")+l.x,m=o+(p?"border-radius-"+n:"border-"+n+"-radius");return parseInt(q.css(m),10)||parseInt(h.css(m),10)||0}function D(m,l,t){l=l?l:m[m.precedance];var s=h.hasClass(P),q=r.titlebar&&m.y==="top",p=q?r.titlebar:r.content,o="border-"+l+"-width",n;h.addClass(P),n=parseInt(p.css(o),10),n=(t?n||parseInt(h.css(o),10):n)||0,h.toggleClass(P,s);return n}function E(aq,ap,ao,an){if(r.tip){var am=aj.extend({},y.corner),al=ao.adjusted,w=A.options.position.adjust.method.split(" "),m=w[0],b=w[1]||w[0],av={left:af,top:af,x:0,y:0},au,at={},ar;y.corner.fixed!==ag&&(m==="shift"&&am.precedance==="x"&&al.left&&am.y!=="center"?am.precedance=am.precedance==="x"?"y":"x":m==="flip"&&al.left&&(am.x=am.x==="center"?al.left>0?"left":"right":am.x==="left"?"right":"left"),b==="shift"&&am.precedance==="y"&&al.top&&am.x!=="center"?am.precedance=am.precedance==="y"?"x":"y":b==="flip"&&al.top&&(am.y=am.y==="center"?al.top>0?"top":"bottom":am.y==="top"?"bottom":"top"),am.string()!==f.corner&&(f.top!==al.top||f.left!==al.left)&&y.update(am,af)),au=y.position(am,al),au.right!==ah&&(au.left=-au.right),au.bottom!==ah&&(au.top=-au.bottom),au.user=Math.max(0,x.offset);if(av.left=m==="shift"&&!!al.left){am.x==="center"?at["margin-left"]=av.x=au["margin-left"]-al.left:(ar=au.right!==ah?[al.left,-au.left]:[-al.left,au.left],(av.x=Math.max(ar[0],ar[1]))>ar[0]&&(ao.left-=al.left,av.left=af),at[au.right!==ah?"right":"left"]=av.x)}if(av.top=b==="shift"&&!!al.top){am.y==="center"?at["margin-top"]=av.y=au["margin-top"]-al.top:(ar=au.bottom!==ah?[al.top,-au.top]:[-al.top,au.top],(av.y=Math.max(ar[0],ar[1]))>ar[0]&&(ao.top-=al.top,av.top=af),at[au.bottom!==ah?"bottom":"top"]=av.y)}r.tip.css(at).toggle(!(av.x&&av.y||am.x==="center"&&av.y||am.y==="center"&&av.x)),ao.left-=au.left.charAt?au.user:m!=="shift"||av.top||!av.left&&!av.top?au.left:0,ao.top-=au.top.charAt?au.user:b!=="shift"||av.left||!av.left&&!av.top?au.top:0,f.left=al.left,f.top=al.top,f.corner=am.string()}}var y=this,x=A.options.style.tip,r=A.elements,h=r.tooltip,f={top:0,left:0,corner:""},e={width:x.width,height:x.height},d={},c=x.border||0,a=".qtip-tip",ak=!!(aj("<canvas />")[0]||{}).getContext;y.mimic=y.corner=ae,y.border=c,y.offset=x.offset,y.size=e,A.checks.tip={"^position.my|style.tip.(corner|mimic|border)$":function(){y.init()||y.destroy(),A.reposition()},"^style.tip.(height|width)$":function(){e={width:x.width,height:x.height},y.create(),y.update(),A.reposition()},"^content.title.text|style.(classes|widget)$":function(){r.tip&&y.update()}},aj.extend(y,{init:function(){var g=y.detectCorner()&&(ak||aj.browser.msie);g&&(y.create(),y.update(),h.unbind(a).bind("tooltipmove"+a,E));return g},detectCorner:function(){var b=x.corner,n=A.options.position,m=n.at,l=n.my.string?n.my.string():n.my;if(b===af||l===af&&m===af){return af}b===ag?y.corner=new ac.Corner(l):b.string||(y.corner=new ac.Corner(b),y.corner.fixed=ag);return y.corner.string()!=="centercenter"},detectColours:function(aq){var ao,an,am,al=r.tip.css("cssText",""),o=aq||y.corner,n=o[o.precedance],l="border-"+n+"-color",b="border"+n.charAt(0)+n.substr(1)+"Color",ay=/rgba?\(0, 0, 0(, 0)?\)|transparent|#123456/i,ax="background-color",aw="transparent",av=" !important",au=aj(document.body).css("color"),at=A.elements.content.css("color"),ar=r.titlebar&&(o.y==="top"||o.y==="center"&&al.position().top+e.height/2+x.offset<r.titlebar.outerHeight(1)),ap=ar?r.titlebar:r.content;h.addClass(P),d.fill=an=al.css(ax),d.border=am=al[0].style[b]||al.css(l)||h.css(l);if(!an||ay.test(an)){d.fill=ap.css(ax)||aw,ay.test(d.fill)&&(d.fill=h.css(ax)||an)}if(!am||ay.test(am)||am===au){d.border=ap.css(l)||aw,ay.test(d.border)&&(d.border=am)}aj("*",al).add(al).css("cssText",ax+":"+aw+av+";border:0"+av+";"),h.removeClass(P)},create:function(){var g=e.width,m=e.height,l;r.tip&&r.tip.remove(),r.tip=aj("<div />",{"class":"ui-tooltip-tip"}).css({width:g,height:m}).prependTo(h),ak?aj("<canvas />").appendTo(r.tip)[0].getContext("2d").save():(l='<vml:shape coordorigin="0,0" style="display:inline-block; position:absolute; behavior:url(#default#VML);"></vml:shape>',r.tip.html(l+l))},update:function(aq,ao){var am=r.tip,al=am.children(),w=e.width,p=e.height,n="px solid ",au="px dashed transparent",at=x.mimic,ar=Math.round,ap,an,u,s,o;aq||(aq=y.corner),at===af?at=aq:(at=new ac.Corner(at),at.precedance=aq.precedance,at.x==="inherit"?at.x=aq.x:at.y==="inherit"?at.y=aq.y:at.x===at.y&&(at[aq.precedance]=aq[aq.precedance])),ap=at.precedance,y.detectColours(aq),d.border!=="transparent"&&d.border!=="#123456"?(c=D(aq,ae,ag),x.border===0&&c>0&&(d.fill=d.border),y.border=c=x.border!==ag?x.border:c):y.border=c=0,u=O(at,w,p),y.size=o=B(aq),am.css(o),aq.precedance==="y"?s=[ar(at.x==="left"?c:at.x==="right"?o.width-w-c:(o.width-w)/2),ar(at.y==="top"?o.height-p:0)]:s=[ar(at.x==="left"?o.width-w:0),ar(at.y==="top"?c:at.y==="bottom"?o.height-p-c:(o.height-p)/2)],ak?(al.attr(o),an=al[0].getContext("2d"),an.restore(),an.save(),an.clearRect(0,0,3000,3000),an.translate(s[0],s[1]),an.beginPath(),an.moveTo(u[0][0],u[0][1]),an.lineTo(u[1][0],u[1][1]),an.lineTo(u[2][0],u[2][1]),an.closePath(),an.fillStyle=d.fill,an.strokeStyle=d.border,an.lineWidth=c*2,an.lineJoin="miter",an.miterLimit=100,c&&an.stroke(),an.fill()):(u="m"+u[0][0]+","+u[0][1]+" l"+u[1][0]+","+u[1][1]+" "+u[2][0]+","+u[2][1]+" xe",s[2]=c&&/^(r|b)/i.test(aq.string())?parseFloat(aj.browser.version,10)===8?2:1:0,al.css({antialias:""+(at.string().indexOf("center")>-1),left:s[0]-s[2]*Number(ap==="x"),top:s[1]-s[2]*Number(ap==="y"),width:w+c,height:p+c}).each(function(g){var l=aj(this);l[l.prop?"prop":"attr"]({coordsize:w+c+" "+(p+c),path:u,fillcolor:d.fill,filled:!!g,stroked:!g}).css({display:c||g?"block":"none"}),!g&&l.html()===""&&l.html('<vml:stroke weight="'+c*2+'px" color="'+d.border+'" miterlimit="1000" joinstyle="miter"  style="behavior:url(#default#VML); display:inline-block;" />')})),ao!==af&&y.position(aq)},position:function(o){var u=r.tip,t={},s=Math.max(0,x.offset),q,p,n;if(x.corner===af||!u){return af}o=o||y.corner,q=o.precedance,p=B(o),n=[o.x,o.y],q==="x"&&n.reverse(),aj.each(n,function(b,m){var l,g;m==="center"?(l=q==="y"?"left":"top",t[l]="50%",t["margin-"+l]=-Math.round(p[q==="y"?"width":"height"]/2)+s):(l=D(o,m,ag),g=C(o),t[m]=b?c?D(o,m):0:s+(g>l?g:0))}),t[o[q]]-=p[q==="x"?"width":"height"],u.css({top:"",bottom:"",left:"",right:"",margin:""}).css(t);return t},destroy:function(){r.tip&&r.tip.remove(),h.unbind(a)}}),y.init()}function O(h,g,o){var n=Math.ceil(g/2),m=Math.ceil(o/2),l={bottomright:[[0,0],[g,o],[g,0]],bottomleft:[[0,0],[g,0],[0,o]],topright:[[0,o],[g,0],[g,o]],topleft:[[0,0],[0,o],[g,o]],topcenter:[[0,o],[n,0],[g,o]],bottomcenter:[[0,0],[g,0],[n,o]],rightcenter:[[0,0],[g,m],[0,o]],leftcenter:[[g,0],[g,o],[0,m]]};l.lefttop=l.bottomright,l.righttop=l.bottomleft,l.leftbottom=l.topright,l.rightbottom=l.topleft;return l[h.string()]}function Q(v){var u=this,t=v.options.show.modal,s=v.elements,p=s.tooltip,n="#qtip-overlay",h=".qtipmodal",e=h+v.id,d="is-modal-qtip",b=aj(document.body),a;v.checks.modal={"^show.modal.(on|blur)$":function(){u.init(),s.overlay.toggle(p.is(":visible"))}},aj.extend(u,{init:function(){if(!t.on){return u}a=u.create(),p.attr(d,ag).css("z-index",ac.modal.zindex+aj(W+"["+d+"]").length).unbind(h).unbind(e).bind("tooltipshow"+h+" tooltiphide"+h,function(f,q,o){var m=f.originalEvent;if(m&&f.type==="tooltiphide"&&/mouse(leave|enter)/.test(m.type)&&aj(m.relatedTarget).closest(a[0]).length){try{f.preventDefault()}catch(l){}}else{(!m||m&&!m.solo)&&u[f.type.replace("tooltip","")](f,o)}}).bind("tooltipfocus"+h,function(g){if(!g.isDefaultPrevented()){var q=aj(W).filter("["+d+"]"),o=ac.modal.zindex+q.length,m=parseInt(p[0].style.zIndex,10);a[0].style.zIndex=o-1,q.each(function(){this.style.zIndex>m&&(this.style.zIndex-=1)}),q.end().filter("."+T).qtip("blur",g.originalEvent),p.addClass(T)[0].style.zIndex=o;try{g.preventDefault()}catch(l){}}}).bind("tooltiphide"+h,function(c){aj("["+d+"]").filter(":visible").not(p).last().qtip("focus",c)}),t.escape&&aj(ai).unbind(e).bind("keydown"+e,function(c){c.keyCode===27&&p.hasClass(T)&&v.hide(c)}),t.blur&&s.overlay.unbind(e).bind("click"+e,function(c){p.hasClass(T)&&v.hide(c)});return u},create:function(){var f=aj(n);if(f.length){return s.overlay=f.insertAfter(aj(W).last())}a=s.overlay=aj("<div />",{id:n.substr(1),html:"<div></div>",mousedown:function(){return af}}).insertAfter(aj(W).last()),aj(ai).unbind(h).bind("resize"+h,function(){a.css({height:aj(ai).height(),width:aj(ai).width()})}).triggerHandler("resize");return a},toggle:function(f,x,r){if(f&&f.isDefaultPrevented()){return u}var o=t.effect,m=x?"show":"hide",g=a.is(":visible"),w=aj("["+d+"]").filter(":visible").not(p),q;a||(a=u.create());if(a.is(":animated")&&g===x||!x&&w.length){return u}x?(a.css({left:0,top:0}),a.toggleClass("blurs",t.blur),b.bind("focusin"+e,function(l){var A=aj(l.target),z=A.closest(".qtip"),y=z.length<1?af:parseInt(z[0].style.zIndex,10)>parseInt(p[0].style.zIndex,10);!y&&aj(l.target).closest(W)[0]!==p[0]&&p.find("input:visible").filter(":first").focus()})):b.undelegate("*","focusin"+e),a.stop(ag,af),aj.isFunction(o)?o.call(a,x):o===af?a[m]():a.fadeTo(parseInt(r,10)||90,x?1:0,function(){x||aj(this).hide()}),x||a.queue(function(c){a.css({left:"",top:""}),c()});return u},show:function(f,c){return u.toggle(f,ag,c)},hide:function(f,c){return u.toggle(f,af,c)},destroy:function(){var c=a;c&&(c=aj("["+d+"]").not(p).length<1,c?(s.overlay.remove(),aj(ai).unbind(h)):s.overlay.unbind(h+v.id),b.undelegate("*","focusin"+e));return p.removeAttr(d).unbind(h)}}),u.init()}function S(a){var m=this,l=a.elements,h=l.tooltip,g=".bgiframe-"+a.id;aj.extend(m,{init:function(){l.bgiframe=aj('<iframe class="ui-tooltip-bgiframe" frameborder="0" tabindex="-1" src="javascript:\'\';"  style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=0); -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";"></iframe>'),l.bgiframe.appendTo(h),h.bind("tooltipmove"+g,m.adjust)},adjust:function(){var b=a.get("dimensions"),o=a.plugins.tip,n=l.tip,e,d;d=parseInt(h.css("border-left-width"),10)||0,d={left:-d,top:-d},o&&n&&(e=o.corner.precedance==="x"?["width","left"]:["height","top"],d[e[1]]-=n[e[0]]()),l.bgiframe.css(d).css(b)},destroy:function(){l.bgiframe.remove(),h.unbind(g)}}),m.init()}function U(a){var o=this,n=a.elements.tooltip,m=a.options.content.ajax,l=".qtip-ajax",e=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,d=ag;a.checks.ajax={"^content.ajax":function(f,c,g){c==="ajax"&&(m=g),c==="once"?o.init():m&&m.url?o.load():n.unbind(l)}},aj.extend(o,{init:function(){m&&m.url&&n.unbind(l)[m.once?"one":"bind"]("tooltipshow"+l,o.load);return o},load:function(w,v){function b(f,p,h){f.status!==0&&a.set("content.text",p+": "+h)}function c(f){s&&(f=aj("<div/>").append(f.replace(e,"")).find(s)),a.set("content.text",f)}function g(){r&&(a.show(w.originalEvent),v=af),aj.isFunction(m.complete)&&m.complete.apply(this,arguments)}var u=m.url.indexOf(" "),t=m.url,s,r=m.once&&!m.loading&&v;if(r){try{w.preventDefault()}catch(q){}}else{if(w&&w.isDefaultPrevented()){return o}}u>-1&&(s=t.substr(u),t=t.substr(0,u)),aj.ajax(aj.extend({success:c,error:b,context:a},m,{url:t,complete:g}))}}),o.init()}function F(z,y){var x,w,v,u,h,g=aj(this),f=aj(document.body),e=this===document?f:g,d=g.metadata?g.metadata(y.metadata):ae,a=y.metadata.type==="html5"&&d?d[y.metadata.name]:ae,B=g.data(y.metadata.name||"qtipopts");try{B=typeof B==="string"?(new Function("return "+B))():B}catch(A){I("Unable to parse HTML5 attribute data: "+B)}u=aj.extend(ag,{},ad.defaults,y,typeof B==="object"?H(B):ae,H(a||d)),w=u.position,u.id=z;if("boolean"===typeof u.content.text){v=g.attr(u.content.attr);if(u.content.attr!==af&&v){u.content.text=v}else{I("Unable to locate content for tooltip! Aborting render of tooltip on element: ",g);return af}}w.container===af&&(w.container=f),w.target===af&&(w.target=e),u.show.target===af&&(u.show.target=e),u.show.solo===ag&&(u.show.solo=f),u.hide.target===af&&(u.hide.target=e),u.position.viewport===ag&&(u.position.viewport=w.container),w.at=new ac.Corner(w.at),w.my=new ac.Corner(w.my);if(aj.data(this,"qtip")){if(u.overwrite){g.qtip("destroy")}else{if(u.overwrite===af){return af}}}u.suppress&&(h=aj.attr(this,"title"))&&aj(this).removeAttr("title").attr(K,h),x=new G(g,u,z,!!v),aj.data(this,"qtip",x),g.bind("remove.qtip-"+z,function(){x.destroy()});return x}function G(al,x,q,n){function a(){var s=[x.show.target[0],x.hide.target[0],l.rendered&&r.tooltip[0],x.position.container[0],x.position.viewport[0],ai,document];l.rendered?aj([]).pushStack(aj.grep(s,function(t){return typeof t==="object"})).unbind(u):x.show.target.unbind(u+"-create")}function b(){function A(D){v.is(":visible")&&l.reposition(D)}function B(D){if(v.hasClass(X)){return af}clearTimeout(l.timers.inactive),l.timers.inactive=setTimeout(function(){l.hide(D)},x.hide.inactive)}function s(D){if(v.hasClass(X)||am||ak){return af}var ar=aj(D.relatedTarget||D.target),aq=ar.closest(W)[0]===v[0],ap=ar[0]===z.show[0];clearTimeout(l.timers.show),clearTimeout(l.timers.hide);if(C.target==="mouse"&&aq||x.hide.fixed&&(/mouse(out|leave|move)/.test(D.type)&&(aq||ap))){try{D.preventDefault(),D.stopImmediatePropagation()}catch(E){}}else{x.hide.delay>0?l.timers.hide=setTimeout(function(){l.hide(D)},x.hide.delay):l.hide(D)}}function t(E){if(v.hasClass(X)){return af}clearTimeout(l.timers.show),clearTimeout(l.timers.hide);var D=function(){l.toggle(ag,E)};x.show.delay>0?l.timers.show=setTimeout(D,x.show.delay):D()}var C=x.position,z={show:x.show.target,hide:x.hide.target,viewport:aj(C.viewport),document:aj(document),body:aj(document.body),window:aj(ai)},y={show:aj.trim(""+x.show.event).split(" "),hide:aj.trim(""+x.hide.event).split(" ")},w=aj.browser.msie&&parseInt(aj.browser.version,10)===6;v.bind("mouseenter"+u+" mouseleave"+u,function(E){var D=E.type==="mouseenter";D&&l.focus(E),v.toggleClass(R,D)}),x.hide.fixed&&(z.hide=z.hide.add(v),v.bind("mouseover"+u,function(){v.hasClass(X)||clearTimeout(l.timers.hide)})),/mouse(out|leave)/i.test(x.hide.event)?x.hide.leave==="window"&&z.window.bind("mouseout"+u,function(D){/select|option/.test(D.target)&&!D.relatedTarget&&l.hide(D)}):/mouse(over|enter)/i.test(x.show.event)&&z.hide.bind("mouseleave"+u,function(D){clearTimeout(l.timers.show)}),(""+x.hide.event).indexOf("unfocus")>-1&&z.body.bind("mousedown"+u,function(D){var ap=aj(D.target),E=!v.hasClass(X)&&v.is(":visible");ap[0]!==v[0]&&ap.parents(W).length===0&&ap.add(al).length>1&&!ap.attr("disabled")&&l.hide(D)}),"number"===typeof x.hide.inactive&&(z.show.bind("qtip-"+q+"-inactive",B),aj.each(ad.inactiveEvents,function(E,D){z.hide.add(r.tooltip).bind(D+u+"-inactive",B)})),aj.each(y.hide,function(D,aq){var ap=aj.inArray(aq,y.show),E=aj(z.hide);ap>-1&&E.add(z.show).length===E.length||aq==="unfocus"?(z.show.bind(aq+u,function(ar){v.is(":visible")?s(ar):t(ar)}),delete y.show[ap]):z.hide.bind(aq+u,s)}),aj.each(y.show,function(E,D){z.show.bind(D+u,t)}),"number"===typeof x.hide.distance&&z.show.add(v).bind("mousemove"+u,function(E){var D=p.origin||{},aq=x.hide.distance,ap=Math.abs;(ap(E.pageX-D.pageX)>=aq||ap(E.pageY-D.pageY)>=aq)&&l.hide(E)}),C.target==="mouse"&&(z.show.bind("mousemove"+u,function(D){ab={pageX:D.pageX,pageY:D.pageY,type:"mousemove"}}),C.adjust.mouse&&(x.hide.event&&v.bind("mouseleave"+u,function(D){(D.relatedTarget||D.target)!==z.show[0]&&l.hide(D)}),z.document.bind("mousemove"+u,function(D){!v.hasClass(X)&&v.is(":visible")&&l.reposition(D||ab)}))),(C.adjust.resize||z.viewport.length)&&(aj.event.special.resize?z.viewport:z.window).bind("resize"+u,A),(z.viewport.length||w&&v.css("position")==="fixed")&&z.viewport.bind("scroll"+u,A)}function c(s,y){function t(z){function A(D){D&&(delete B[D.src],clearTimeout(l.timers.img[D.src]),aj(D).unbind(u)),aj.isEmptyObject(B)&&(l.redraw(),y!==af&&l.reposition(p.event),z())}var C,B={};if((C=w.find("img:not([height]):not([width])")).length===0){return A()}C.each(function(D,ar){if(B[ar.src]===ah){var aq=0,ap=3;(function E(){if(ar.height||ar.width||aq>ap){return A(ar)}aq+=1,l.timers.img[ar.src]=setTimeout(E,700)})(),aj(ar).bind("error"+u+" load"+u,function(){A(this)}),B[ar.src]=ar}})}var w=r.content;if(!l.rendered||!s){return af}aj.isFunction(s)&&(s=s.call(al,p.event,l)||""),s.jquery&&s.length>0?w.empty().append(s.css({display:"block"})):w.html(s),l.rendered<0?v.queue("fx",t):(ak=0,t(aj.noop));return l}function d(s,w){var t=r.title;if(!l.rendered||!s){return af}aj.isFunction(s)&&(s=s.call(al,p.event,l));if(s===af){return h(af)}s.jquery&&s.length>0?t.empty().append(s.css({display:"block"})):t.html(s),l.redraw(),w!==af&&l.rendered&&v.is(":visible")&&l.reposition(p.event)}function e(t){var s=r.button,w=r.title;if(!l.rendered){return af}t?(w||f(),g()):s.remove()}function f(){var s=an+"-title";r.titlebar&&h(),r.titlebar=aj("<div />",{"class":Z+"-titlebar "+(x.style.widget?"ui-widget-header":"")}).append(r.title=aj("<div />",{id:s,"class":Z+"-title","aria-atomic":ag})).insertBefore(r.content).delegate(".ui-tooltip-close","mousedown keydown mouseup keyup mouseout",function(t){aj(this).toggleClass("ui-state-active ui-state-focus",t.type.substr(-4)==="down")}).delegate(".ui-tooltip-close","mouseover mouseout",function(t){aj(this).toggleClass("ui-state-hover",t.type==="mouseover")}),x.content.title.button?g():l.rendered&&l.redraw()}function g(){var s=x.content.title.button,w=typeof s==="string",t=w?s:"Close tooltip";r.button&&r.button.remove(),s.jquery?r.button=s:r.button=aj("<a />",{"class":"ui-state-default ui-tooltip-close "+(x.style.widget?"":Z+"-icon"),title:t,"aria-label":t}).prepend(aj("<span />",{"class":"ui-icon ui-icon-close",html:"&times;"})),r.button.appendTo(r.titlebar).attr("role","button").click(function(y){v.hasClass(X)||l.hide(y);return af}),l.redraw()}function h(s){r.title&&(r.titlebar.remove(),r.titlebar=r.title=r.button=ae,s!==af&&l.reposition())}function m(){var s=x.style.widget;v.toggleClass(Y,s).toggleClass(V,!s),r.content.toggleClass(Y+"-content",s),r.titlebar&&r.titlebar.toggleClass(Y+"-header",s),r.button&&r.button.toggleClass(Z+"-icon",!s)}function o(t){var s=0,z,y=x,w=t.split(".");while(y=y[w[s++]]){s<w.length&&(z=y)}return[z||x,w.pop()]}var l=this,ao=document.body,an=Z+"-"+q,am=0,ak=0,v=aj(),u=".qtip-"+q,r,p;l.id=q,l.rendered=af,l.elements=r={target:al},l.timers={img:{}},l.options=x,l.checks={},l.plugins={},l.cache=p={event:{},target:aj(),disabled:af,attr:n},l.checks.builtin={"^id$":function(s,z,y){var w=y===ag?ad.nextid:y,t=Z+"-"+w;w!==af&&w.length>0&&!aj("#"+t).length&&(v[0].id=t,r.content[0].id=t+"-content",r.title[0].id=t+"-title")},"^content.text$":function(t,s,w){c(w)},"^content.title.text$":function(t,s,w){if(!w){return h()}!r.title&&w&&f(),d(w)},"^content.title.button$":function(t,s,w){e(w)},"^position.(my|at)$":function(t,s,w){"string"===typeof w&&(t[s]=new ac.Corner(w))},"^position.container$":function(t,s,w){l.rendered&&v.appendTo(w)},"^show.ready$":function(){l.rendered?l.toggle(ag):l.render(1)},"^style.classes$":function(t,s,w){v.attr("class",Z+" qtip ui-helper-reset "+w)},"^style.widget|content.title":m,"^events.(render|show|move|hide|focus|blur)$":function(s,w,t){v[(aj.isFunction(t)?"":"un")+"bind"]("tooltip"+w,t)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var s=x.position;v.attr("tracking",s.target==="mouse"&&s.adjust.mouse),a(),b()}},aj.extend(l,{render:function(s){if(l.rendered){return l}var z=x.content.text,y=x.content.title.text,w=x.position,t=aj.Event("tooltiprender");aj.attr(al[0],"aria-describedby",an),v=r.tooltip=aj("<div/>",{id:an,"class":Z+" qtip ui-helper-reset "+V+" "+x.style.classes+" "+Z+"-pos-"+x.position.my.abbreviation(),width:x.style.width||"",height:x.style.height||"",tracking:w.target==="mouse"&&w.adjust.mouse,role:"alert","aria-live":"polite","aria-atomic":af,"aria-describedby":an+"-content","aria-hidden":ag}).toggleClass(X,p.disabled).data("qtip",l).appendTo(x.position.container).append(r.content=aj("<div />",{"class":Z+"-content",id:an+"-content","aria-atomic":ag})),l.rendered=-1,am=ak=1,y&&(f(),aj.isFunction(y)||d(y,af)),aj.isFunction(z)||c(z,af),l.rendered=ag,m(),aj.each(x.events,function(A,B){aj.isFunction(B)&&v.bind(A==="toggle"?"tooltipshow tooltiphide":"tooltip"+A,B)}),aj.each(ac,function(){this.initialize==="render"&&this(l)}),b(),v.queue("fx",function(A){t.originalEvent=p.event,v.trigger(t,[l]),am=ak=0,l.redraw(),(x.show.ready||s)&&l.toggle(ag,p.event),A()});return l},get:function(t){var s,w;switch(t.toLowerCase()){case"dimensions":s={height:v.outerHeight(),width:v.outerWidth()};break;case"offset":s=ac.offset(v,x.position.container);break;default:w=o(t.toLowerCase()),s=w[0][w[1]],s=s.precedance?s.string():s}return s},set:function(D,C){function s(ap,E){var at,ar,aq;for(at in w){for(ar in w[at]){if(aq=(new RegExp(ar,"i")).exec(ap)){E.push(aq),w[at][ar].apply(l,E)}}}}var B=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,A=/^content\.(title|attr)|style/i,z=af,y=af,w=l.checks,t;"string"===typeof D?(t=D,D={},D[t]=C):D=aj.extend(ag,{},D),aj.each(D,function(ar,aq){var ap=o(ar.toLowerCase()),E;E=ap[0][ap[1]],ap[0][ap[1]]="object"===typeof aq&&aq.nodeType?aj(aq):aq,D[ar]=[ap[0],ap[1],aq,E],z=B.test(ar)||z,y=A.test(ar)||y}),H(x),am=ak=1,aj.each(D,s),am=ak=0,v.is(":visible")&&l.rendered&&(z&&l.reposition(x.position.target==="mouse"?ae:p.event),y&&l.redraw());return l},toggle:function(ap,E){function s(){ap?(aj.browser.msie&&v[0].style.removeAttribute("filter"),v.css("overflow",""),"string"===typeof C.autofocus&&aj(C.autofocus,v).focus(),t=aj.Event("tooltipvisible"),t.originalEvent=E?p.event:ae,v.trigger(t,[l]),C.target.trigger("qtip-"+q+"-inactive")):v.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!l.rendered){return ap?l.render(1):l}var D=ap?"show":"hide",C=x[D],B=v.is(":visible"),A=!E||x[D].target.length<2||p.target[0]===E.target,z=x.position,y=x.content,w,t;(typeof ap).search("boolean|number")&&(ap=!B);if(!v.is(":animated")&&B===ap&&A){return l}if(E){if(/over|enter/.test(E.type)&&/out|leave/.test(p.event.type)&&E.target===x.show.target[0]&&v.has(E.relatedTarget).length){return l}p.event=aj.extend({},E)}t=aj.Event("tooltip"+D),t.originalEvent=E?p.event:ae,v.trigger(t,[l,90]);if(t.isDefaultPrevented()){return l}aj.attr(v[0],"aria-hidden",!ap),ap?(p.origin=aj.extend({},ab),l.focus(E),aj.isFunction(y.text)&&c(y.text,af),aj.isFunction(y.title.text)&&d(y.title.text,af),!J&&z.target==="mouse"&&z.adjust.mouse&&(aj(document).bind("mousemove.qtip",function(aq){ab={pageX:aq.pageX,pageY:aq.pageY,type:"mousemove"}}),J=ag),l.reposition(E),(t.solo=!!C.solo)&&aj(W,C.solo).not(v).qtip("hide",t)):(clearTimeout(l.timers.show),delete p.origin,J&&!aj(W+'[tracking="true"]:visible',C.solo).not(v).length&&(aj(document).unbind("mousemove.qtip"),J=af),l.blur(E)),A&&v.stop(0,1),C.effect===af?(v[D](),s.call(v)):aj.isFunction(C.effect)?(C.effect.call(v,l),v.queue("fx",function(aq){s(),aq()})):v.fadeTo(90,ap?1:0,s),ap&&C.target.trigger("qtip-"+q+"-inactive");return l},show:function(s){return l.toggle(ag,s)},hide:function(s){return l.toggle(af,s)},focus:function(s){if(!l.rendered){return l}var B=aj(W),A=parseInt(v[0].style.zIndex,10),z=ad.zindex+B.length,y=aj.extend({},s),w,t;v.hasClass(T)||(t=aj.Event("tooltipfocus"),t.originalEvent=y,v.trigger(t,[l,z]),t.isDefaultPrevented()||(A!==z&&(B.each(function(){this.style.zIndex>A&&(this.style.zIndex=this.style.zIndex-1)}),B.filter("."+T).qtip("blur",y)),v.addClass(T)[0].style.zIndex=z));return l},blur:function(s){var w=aj.extend({},s),t;v.removeClass(T),t=aj.Event("tooltipblur"),t.originalEvent=w,v.trigger(t,[l]);return l},reposition:function(aF,aE){if(!l.rendered||am){return l}am=1;var aD=x.position.target,aC=x.position,aB=aC.my,aA=aC.at,az=aC.adjust,ay=az.method.split(" "),ax=v.outerWidth(),aw=v.outerHeight(),av=0,at=0,ar=aj.Event("tooltipmove"),ap=v.css("position")==="fixed",C=aC.viewport,A={left:0,top:0},z=aC.container,t=af,au=l.plugins.tip,aq={horizontal:ay[0],vertical:ay[1]=ay[1]||ay[0],enabled:C.jquery&&aD[0]!==ai&&aD[0]!==ao&&az.method!=="none",left:function(aL){var aK=aq.horizontal==="shift",aJ=-z.offset.left+C.offset.left+C.scrollLeft,aI=aB.x==="left"?ax:aB.x==="right"?-ax:-ax/2,aH=aA.x==="left"?av:aA.x==="right"?-av:-av/2,aG=au&&au.size?au.size.width||0:0,D=au&&au.corner&&au.corner.precedance==="x"&&!aK?aG:0,B=aJ-aL+D,y=aL+ax-C.width-aJ+D,w=aI-(aB.precedance==="x"||aB.x===aB.y?aH:0),s=aB.x==="center";aK?(D=au&&au.corner&&au.corner.precedance==="y"?aG:0,w=(aB.x==="left"?1:-1)*aI-D,A.left+=B>0?B:y>0?-y:0,A.left=Math.max(-z.offset.left+C.offset.left+(D&&au.corner.x==="center"?au.offset:0),aL-w,Math.min(Math.max(-z.offset.left+C.offset.left+C.width,aL+w),A.left))):(B>0&&(aB.x!=="left"||y>0)?A.left-=w:y>0&&(aB.x!=="right"||B>0)&&(A.left-=s?-w:w),A.left!==aL&&s&&(A.left-=az.x),A.left<aJ&&-A.left>y&&(A.left=aL));return A.left-aL},top:function(aL){var aK=aq.vertical==="shift",aJ=-z.offset.top+C.offset.top+C.scrollTop,aI=aB.y==="top"?aw:aB.y==="bottom"?-aw:-aw/2,aH=aA.y==="top"?at:aA.y==="bottom"?-at:-at/2,aG=au&&au.size?au.size.height||0:0,D=au&&au.corner&&au.corner.precedance==="y"&&!aK?aG:0,B=aJ-aL+D,y=aL+aw-C.height-aJ+D,w=aI-(aB.precedance==="y"||aB.x===aB.y?aH:0),s=aB.y==="center";aK?(D=au&&au.corner&&au.corner.precedance==="x"?aG:0,w=(aB.y==="top"?1:-1)*aI-D,A.top+=B>0?B:y>0?-y:0,A.top=Math.max(-z.offset.top+C.offset.top+(D&&au.corner.x==="center"?au.offset:0),aL-w,Math.min(Math.max(-z.offset.top+C.offset.top+C.height,aL+w),A.top))):(B>0&&(aB.y!=="top"||y>0)?A.top-=w:y>0&&(aB.y!=="bottom"||B>0)&&(A.top-=s?-w:w),A.top!==aL&&s&&(A.top-=az.y),A.top<0&&-A.top>y&&(A.top=aL));return A.top-aL}},E;if(aj.isArray(aD)&&aD.length===2){aA={x:"left",y:"top"},A={left:aD[0],top:aD[1]}}else{if(aD==="mouse"&&(aF&&aF.pageX||p.event.pageX)){aA={x:"left",y:"top"},aF=(aF&&(aF.type==="resize"||aF.type==="scroll")?p.event:aF&&aF.pageX&&aF.type==="mousemove"?aF:ab&&ab.pageX&&(az.mouse||!aF||!aF.pageX)?{pageX:ab.pageX,pageY:ab.pageY}:!az.mouse&&p.origin&&p.origin.pageX?p.origin:aF)||aF||p.event||ab||{},A={top:aF.pageY,left:aF.pageX}}else{aD==="event"?aF&&aF.target&&aF.type!=="scroll"&&aF.type!=="resize"?aD=p.target=aj(aF.target):aD=p.target:p.target=aj(aD),aD=aj(aD).eq(0);if(aD.length===0){return l}aD[0]===document||aD[0]===ai?(av=ac.iOS?ai.innerWidth:aD.width(),at=ac.iOS?ai.innerHeight:aD.height(),aD[0]===ai&&(A={top:ap||ac.iOS?(C||aD).scrollTop():0,left:ap||ac.iOS?(C||aD).scrollLeft():0})):aD.is("area")&&ac.imagemap?A=ac.imagemap(aD,aA,aq.enabled?ay:af):aD[0].namespaceURI==="http://www.w3.org/2000/svg"&&ac.svg?A=ac.svg(aD,aA):(av=aD.outerWidth(),at=aD.outerHeight(),A=ac.offset(aD,z)),A.offset&&(av=A.width,at=A.height,t=A.flipoffset,A=A.offset);if(ac.iOS<4.1&&ac.iOS>3.1||ac.iOS==4.3||!ac.iOS&&ap){E=aj(ai),A.left-=E.scrollLeft(),A.top-=E.scrollTop()}A.left+=aA.x==="right"?av:aA.x==="center"?av/2:0,A.top+=aA.y==="bottom"?at:aA.y==="center"?at/2:0}}A.left+=az.x+(aB.x==="right"?-ax:aB.x==="center"?-ax/2:0),A.top+=az.y+(aB.y==="bottom"?-aw:aB.y==="center"?-aw/2:0),aq.enabled?(C={elem:C,height:C[(C[0]===ai?"h":"outerH")+"eight"](),width:C[(C[0]===ai?"w":"outerW")+"idth"](),scrollLeft:ap?0:C.scrollLeft(),scrollTop:ap?0:C.scrollTop(),offset:C.offset()||{left:0,top:0}},z={elem:z,scrollLeft:z.scrollLeft(),scrollTop:z.scrollTop(),offset:z.offset()||{left:0,top:0}},A.adjusted={left:aq.horizontal!=="none"?aq.left(A.left):0,top:aq.vertical!=="none"?aq.top(A.top):0},A.adjusted.left+A.adjusted.top&&v.attr("class",v[0].className.replace(/ui-tooltip-pos-\w+/i,Z+"-pos-"+aB.abbreviation())),t&&A.adjusted.left&&(A.left+=t.left),t&&A.adjusted.top&&(A.top+=t.top)):A.adjusted={left:0,top:0},ar.originalEvent=aj.extend({},aF),v.trigger(ar,[l,A,C.elem||C]);if(ar.isDefaultPrevented()){return l}delete A.adjusted,aE===af||isNaN(A.left)||isNaN(A.top)||aD==="mouse"||!aj.isFunction(aC.effect)?v.css(A):aj.isFunction(aC.effect)&&(aC.effect.call(v,l,aj.extend({},A)),v.queue(function(s){aj(this).css({opacity:"",height:""}),aj.browser.msie&&this.style.removeAttribute("filter"),s()})),am=0;return l},redraw:function(){if(l.rendered<1||ak){return l}var t=x.position.container,s,z,y,w;ak=1,x.style.height&&v.css("height",x.style.height),x.style.width?v.css("width",x.style.width):(v.css("width","").addClass(P),z=v.width()+1,y=v.css("max-width")||"",w=v.css("min-width")||"",s=(y+w).indexOf("%")>-1?t.width()/100:0,y=(y.indexOf("%")>-1?s:1)*parseInt(y,10)||z,w=(w.indexOf("%")>-1?s:1)*parseInt(w,10)||0,z=y+w?Math.min(Math.max(z,w),y):z,v.css("width",Math.round(z)).removeClass(P)),ak=0;return l},disable:function(s){"boolean"!==typeof s&&(s=!v.hasClass(X)&&!p.disabled),l.rendered?(v.toggleClass(X,s),aj.attr(v[0],"aria-disabled",s)):p.disabled=!!s;return l},enable:function(){return l.disable(af)},destroy:function(){var s=al[0],w=aj.attr(s,K),t=al.data("qtip");l.rendered&&(v.remove(),aj.each(l.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(l.timers.show),clearTimeout(l.timers.hide),a();if(!t||l===t){aj.removeData(s,"qtip"),x.suppress&&w&&(aj.attr(s,"title",w),al.removeAttr(K)),al.removeAttr("aria-describedby")}al.unbind(".qtip-"+q),delete aa[l.id];return al}})}function H(a){var d;if(!a||"object"!==typeof a){return af}if(a.metadata===ae||"object"!==typeof a.metadata){a.metadata={type:a.metadata}}if("content" in a){if(a.content===ae||"object"!==typeof a.content||a.content.jquery){a.content={text:a.content}}d=a.content.text||af,!aj.isFunction(d)&&(!d&&!d.attr||d.length<1||"object"===typeof d&&!d.jquery)&&(a.content.text=af);if("title" in a.content){if(a.content.title===ae||"object"!==typeof a.content.title){a.content.title={text:a.content.title}}d=a.content.title.text||af,!aj.isFunction(d)&&(!d&&!d.attr||d.length<1||"object"===typeof d&&!d.jquery)&&(a.content.title.text=af)}}if("position" in a){if(a.position===ae||"object"!==typeof a.position){a.position={my:a.position,at:a.position}}}if("show" in a){if(a.show===ae||"object"!==typeof a.show){a.show.jquery?a.show={target:a.show}:a.show={event:a.show}}}if("hide" in a){if(a.hide===ae||"object"!==typeof a.hide){a.hide.jquery?a.hide={target:a.hide}:a.hide={event:a.hide}}}if("style" in a){if(a.style===ae||"object"!==typeof a.style){a.style={classes:a.style}}}aj.each(ac,function(){this.sanitize&&this.sanitize(a)});return a}function I(){I.history=I.history||[],I.history.push(arguments);if("object"===typeof console){var e=console[console.warn?"warn":"log"],d=Array.prototype.slice.call(arguments),f;typeof arguments[0]==="string"&&(d[0]="qTip2: "+d[0]),f=e.apply?e.apply(console,d):e(d)}}"use strict";var ag=!0,af=!1,ae=null,ad,ac,ab,aa={},Z="ui-tooltip",Y="ui-widget",X="ui-state-disabled",W="div.qtip."+Z,V=Z+"-default",T=Z+"-focus",R=Z+"-hover",P=Z+"-fluid",N="-31000px",L="_replacedByqTip",K="oldtitle",J;ad=aj.fn.qtip=function(c,o,g){var f=(""+c).toLowerCase(),e=ae,d=f==="disable"?[ag]:aj.makeArray(arguments).slice(1),a=d[d.length-1],p=this[0]?aj.data(this[0],"qtip"):ae;if(!arguments.length&&p||f==="api"){return p}if("string"===typeof c){this.each(function(){var h=aj.data(this,"qtip");if(!h){return ag}a&&a.timeStamp&&(h.cache.event=a);if(f!=="option"&&f!=="options"||!o){h[f]&&h[f].apply(h[f],d)}else{if(aj.isPlainObject(o)||g!==ah){h.set(o,g)}else{e=h.get(o);return af}}});return e!==ae?e:this}if("object"===typeof c||!arguments.length){p=H(aj.extend(ag,{},c));return ad.bind.call(this,p,a)}},ad.bind=function(a,c){return this.each(function(e){function f(l){function m(){h.render(typeof l==="object"||d.show.ready),b.show.add(b.hide).unbind(s)}if(h.cache.disabled){return af}h.cache.event=aj.extend({},l),h.cache.target=l?aj(l.target):[ah],d.show.delay>0?(clearTimeout(h.timers.show),h.timers.show=setTimeout(m,d.show.delay),t.show!==t.hide&&b.hide.bind(t.hide,function(){clearTimeout(h.timers.show)})):m()}var d,b,t,s,h,g;g=aj.isArray(a.id)?a.id[e]:a.id,g=!g||g===af||g.length<1||aa[g]?ad.nextid++:aa[g]=g,s=".qtip-"+g+"-create",h=F.call(this,g,a);if(h===af){return ag}d=h.options,aj.each(ac,function(){this.initialize==="initialize"&&this(h)}),b={show:d.show.target,hide:d.hide.target},t={show:aj.trim(""+d.show.event).replace(/ /g,s+" ")+s,hide:aj.trim(""+d.hide.event).replace(/ /g,s+" ")+s},/mouse(over|enter)/i.test(t.show)&&!/mouse(out|leave)/i.test(t.hide)&&(t.hide+=" mouseleave"+s),b.show.bind("mousemove"+s,function(l){ab={pageX:l.pageX,pageY:l.pageY,type:"mousemove"}}),b.show.bind(t.show,f),(d.show.ready||d.prerender)&&f(c)})},ac=ad.plugins={Corner:function(b){b=(""+b).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(b.match(/left|right/i)||b.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(b.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=b.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y},this.abbreviation=function(){var d=this.x.substr(0,1),c=this.y.substr(0,1);return d===c?d:d==="c"||d!=="c"&&c!=="c"?c+d:d+c}},offset:function(t,s){function l(d,c){r.left+=c*d.scrollLeft(),r.top+=c*d.scrollTop()}var r=t.offset(),q=s,p=0,o=document.body,n,m;if(q){do{q.css("position")!=="static"&&(n=q[0]===o?{left:parseInt(q.css("left"),10)||0,top:parseInt(q.css("top"),10)||0}:q.position(),r.left-=n.left+(parseInt(q.css("borderLeftWidth"),10)||0)+(parseInt(q.css("marginLeft"),10)||0),r.top-=n.top+(parseInt(q.css("borderTopWidth"),10)||0),m=q.css("overflow"),(m==="scroll"||m==="auto")&&++p);if(q[0]===o){break}}while(q=q.offsetParent());s[0]!==o&&p&&l(s,1)}return r},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||af,fn:{attr:function(a,m){if(this.length){var l=this[0],h="title",g=aj.data(l,"qtip");if(a===h&&g&&"object"===typeof g&&g.options.suppress){if(arguments.length<2){return aj.attr(l,K)}g&&g.options.content.attr===h&&g.cache.attr&&g.set("content.text",m);return this.attr(K,m)}}return aj.fn["attr"+L].apply(this,arguments)},clone:function(a){var h=aj([]),g="title",f=aj.fn["clone"+L].apply(this,arguments);a||f.filter("["+K+"]").attr("title",function(){return aj.attr(this,K)}).removeAttr(K);return f},remove:aj.ui?ae:function(a,d){aj.ui||aj(this).each(function(){d||(!a||aj.filter(a,[this]).length)&&aj("*",this).add(this).each(function(){aj(this).triggerHandler("remove")})})}}},aj.each(ac.fn,function(a,f){if(!f||aj.fn[a+L]){return ag}var d=aj.fn[a+L]=aj.fn[a];aj.fn[a]=function(){return f.apply(this,arguments)||d.apply(this,arguments)}}),ad.version="2.0.0pre",ad.nextid=0,ad.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),ad.zindex=15000,ad.defaults={prerender:af,id:af,overwrite:ag,suppress:ag,content:{text:ag,attr:"title",title:{text:af,button:af}},position:{my:"top left",at:"bottom right",target:af,container:af,viewport:af,adjust:{x:0,y:0,mouse:ag,resize:ag,method:"flip flip"},effect:function(a,f,e){aj(this).animate(f,{duration:200,queue:af})}},show:{target:af,event:"mouseenter",effect:ag,delay:90,solo:af,ready:af,autofocus:af},hide:{target:af,event:"mouseleave",effect:ag,delay:0,fixed:af,inactive:af,leave:"window",distance:af},style:{classes:"",widget:af,width:af,height:af},events:{render:ae,move:ae,show:ae,hide:ae,toggle:ae,visible:ae,focus:ae,blur:ae}},ac.ajax=function(d){var c=d.plugins.ajax;return"object"===typeof c?c:d.plugins.ajax=new U(d)},ac.ajax.initialize="render",ac.ajax.sanitize=function(e){var d=e.content,f;d&&"ajax" in d&&(f=d.ajax,typeof f!=="object"&&(f=e.content.ajax={url:f}),"boolean"!==typeof f.once&&f.once&&(f.once=!!f.once))},aj.extend(ag,ad.defaults,{content:{ajax:{loading:ag,once:ag}}}),ac.bgiframe=function(a){var f=aj.browser,e=a.plugins.bgiframe;if(aj("select, object").length<1||(!f.msie||(""+f.version).charAt(0)!=="6")){return af}return"object"===typeof e?e:a.plugins.bgiframe=new S(a)},ac.bgiframe.initialize="render",ac.imagemap=function(z,y,x){function a(al,ak,E){var D=0,C=1,B=1,A=0,n=0,m=al.width,l=al.height;while(m>0&&l>0&&C>0&&B>0){m=Math.floor(m/2),l=Math.floor(l/2),E.x==="left"?C=m:E.x==="right"?C=al.width-m:C+=Math.floor(m/2),E.y==="top"?B=l:E.y==="bottom"?B=al.height-l:B+=Math.floor(l/2),D=ak.length;while(D--){if(ak.length<2){break}A=ak[D][0]-al.offset.left,n=ak[D][1]-al.offset.top,(E.x==="left"&&A>=C||E.x==="right"&&A<=C||E.x==="center"&&(A<C||A>al.width-C)||E.y==="top"&&n>=B||E.y==="bottom"&&n<=B||E.y==="center"&&(n<B||n>al.height-B))&&ak.splice(D,1)}}return{left:ak[0][0],top:ak[0][1]}}z.jquery||(z=aj(z));var w=z.attr("shape").toLowerCase(),v=z.attr("coords").split(","),u=[],t=aj('img[usemap="#'+z.parent("map").attr("name")+'"]'),s=t.offset(),r={width:0,height:0,offset:{top:10000000000,right:0,bottom:0,left:10000000000}},q=0,p=0,o;s.left+=Math.ceil((t.outerWidth()-t.width())/2),s.top+=Math.ceil((t.outerHeight()-t.height())/2);if(w==="poly"){q=v.length;while(q--){p=[parseInt(v[--q],10),parseInt(v[q+1],10)],p[0]>r.offset.right&&(r.offset.right=p[0]),p[0]<r.offset.left&&(r.offset.left=p[0]),p[1]>r.offset.bottom&&(r.offset.bottom=p[1]),p[1]<r.offset.top&&(r.offset.top=p[1]),u.push(p)}}else{u=aj.map(v,function(b){return parseInt(b,10)})}switch(w){case"rect":r={width:Math.abs(u[2]-u[0]),height:Math.abs(u[3]-u[1]),offset:{left:u[0],top:u[1]}};break;case"circle":r={width:u[2]+2,height:u[2]+2,offset:{left:u[0],top:u[1]}};break;case"poly":aj.extend(r,{width:Math.abs(r.offset.right-r.offset.left),height:Math.abs(r.offset.bottom-r.offset.top)}),y.string()==="centercenter"?r.offset={left:r.offset.left+r.width/2,top:r.offset.top+r.height/2}:(r.offset=a(r,u.slice(),y),x&&(x[0]==="flip"||x[1]==="flip")&&(r.flipoffset=a(r,u.slice(),{x:y.x==="left"?"right":y.x==="right"?"left":"center",y:y.y==="top"?"bottom":y.y==="bottom"?"top":"center"}),r.flipoffset.left-=r.offset.left,r.flipoffset.top-=r.offset.top)),r.width=r.height=0}r.offset.left+=s.left,r.offset.top+=s.top;return r},ac.modal=function(d){var c=d.plugins.modal;return"object"===typeof c?c:d.plugins.modal=new Q(d)},ac.modal.initialize="render",ac.modal.sanitize=function(b){b.show&&(typeof b.show.modal!=="object"?b.show.modal={on:!!b.show.modal}:typeof b.show.modal.on==="undefined"&&(b.show.modal.on=ag))},ac.modal.zindex=ad.zindex-=200,aj.extend(ag,ad.defaults,{show:{modal:{on:af,effect:ag,blur:ag,escape:ag}}}),ac.svg=function(t,s){var r=aj(document),q=t[0],p={width:0,height:0,offset:{top:10000000000,left:10000000000}},o,n,m,l,a;if(q.getBBox&&q.parentNode){o=q.getBBox(),n=q.getScreenCTM(),m=q.farthestViewportElement||q;if(!m.createSVGPoint){return p}l=m.createSVGPoint(),l.x=o.x,l.y=o.y,a=l.matrixTransform(n),p.offset.left=a.x,p.offset.top=a.y,l.x+=o.width,l.y+=o.height,a=l.matrixTransform(n),p.width=a.x-p.offset.left,p.height=a.y-p.offset.top,p.offset.left+=r.scrollLeft(),p.offset.top+=r.scrollTop()}return p},ac.tip=function(d){var c=d.plugins.tip;return"object"===typeof c?c:d.plugins.tip=new M(d)},ac.tip.initialize="render",ac.tip.sanitize=function(e){var d=e.style,f;d&&"tip" in d&&(f=e.style.tip,typeof f!=="object"&&(e.style.tip={corner:f}),/string|boolean/i.test(typeof f.corner)||(f.corner=ag),typeof f.width!=="number"&&delete f.width,typeof f.height!=="number"&&delete f.height,typeof f.border!=="number"&&f.border!==ag&&delete f.border,typeof f.offset!=="number"&&delete f.offset)},aj.extend(ag,ad.defaults,{style:{tip:{corner:ag,mimic:af,width:6,height:6,border:ag,offset:0}}})})(jQuery,window);(function(b){var a=function(o,u){var l=b.extend({},b.fn.nivoSlider.defaults,u);var r={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false};var d=b(o);d.data("nivo:vars",r);d.css("position","relative");d.addClass("nivoSlider");var e=d.children();e.each(function(){var y=b(this);var x="";if(!y.is("img")){if(y.is("a")){y.addClass("nivo-imageLink");x=y}y=y.find("img:first")}var w=y.width();if(w==0){w=y.attr("width")}var v=y.height();if(v==0){v=y.attr("height")}if(w>d.width()){d.width(w)}if(v>d.height()){d.height(v)}if(x!=""){x.css("display","none")}y.css("display","none");r.totalSlides++});if(l.randomStart){l.startSlide=Math.floor(Math.random()*r.totalSlides)}if(l.startSlide>0){if(l.startSlide>=r.totalSlides){l.startSlide=r.totalSlides-1}r.currentSlide=l.startSlide}if(b(e[r.currentSlide]).is("img")){r.currentImage=b(e[r.currentSlide])}else{r.currentImage=b(e[r.currentSlide]).find("img:first")}if(b(e[r.currentSlide]).is("a")){b(e[r.currentSlide]).css("display","block")}d.css("background",'url("'+r.currentImage.attr("src")+'") no-repeat');d.append(b('<div class="nivo-caption"><p></p></div>').css({display:"none",opacity:l.captionOpacity}));var s=function(v){var x=b(".nivo-caption",d);if(r.currentImage.attr("title")!=""&&r.currentImage.attr("title")!=undefined){var w=r.currentImage.attr("title");if(w.substr(0,1)=="#"){w=b(w).html()}if(x.css("display")=="block"){x.find("p").stop().fadeOut(v.animSpeed,function(){b(this).html(w);b(this).stop().fadeIn(v.animSpeed)})}else{x.find("p").html(w)}x.stop().fadeIn(v.animSpeed)}else{x.stop().fadeOut(v.animSpeed)}};s(l);var c=0;if(!l.manualAdvance&&e.length>1){c=setInterval(function(){t(d,e,l,false)},l.pauseTime)}if(l.directionNav){d.append('<div class="nivo-directionNav"><a class="nivo-prevNav">'+l.prevText+'</a><a class="nivo-nextNav">'+l.nextText+"</a></div>");if(l.directionNavHide){b(".nivo-directionNav",d).hide();d.hover(function(){b(".nivo-directionNav",d).show()},function(){b(".nivo-directionNav",d).hide()})}b("a.nivo-prevNav",d).live("click",function(){if(r.running){return false}clearInterval(c);c="";r.currentSlide-=2;t(d,e,l,"prev")});b("a.nivo-nextNav",d).live("click",function(){if(r.running){return false}clearInterval(c);c="";t(d,e,l,"next")})}if(l.controlNav){var p=b('<div class="nivo-controlNav"></div>');d.append(p);for(var n=0;n<e.length;n++){if(l.controlNavThumbs){var f=e.eq(n);if(!f.is("img")){f=f.find("img:first")}if(l.controlNavThumbsFromRel){p.append('<a class="nivo-control" rel="'+n+'"><img src="'+f.attr("rel")+'" alt="" /></a>')}else{p.append('<a class="nivo-control" rel="'+n+'"><img src="'+f.attr("src").replace(l.controlNavThumbsSearch,l.controlNavThumbsReplace)+'" alt="" /></a>')}}else{p.append('<a class="nivo-control" rel="'+n+'">'+(n+1)+"</a>")}}b(".nivo-controlNav a:eq("+r.currentSlide+")",d).addClass("active");b(".nivo-controlNav a",d).live("click",function(){if(r.running){return false}if(b(this).hasClass("active")){return false}clearInterval(c);c="";d.css("background",'url("'+r.currentImage.attr("src")+'") no-repeat');r.currentSlide=b(this).attr("rel")-1;t(d,e,l,"control")})}if(l.keyboardNav){b(window).keypress(function(v){if(v.keyCode=="37"){if(r.running){return false}clearInterval(c);c="";r.currentSlide-=2;t(d,e,l,"prev")}if(v.keyCode=="39"){if(r.running){return false}clearInterval(c);c="";t(d,e,l,"next")}})}if(l.pauseOnHover){d.hover(function(){r.paused=true;clearInterval(c);c=""},function(){r.paused=false;if(c==""&&!l.manualAdvance){c=setInterval(function(){t(d,e,l,false)},l.pauseTime)}})}d.bind("nivo:animFinished",function(){r.running=false;b(e).each(function(){if(b(this).is("a")){b(this).css("display","none")}});if(b(e[r.currentSlide]).is("a")){b(e[r.currentSlide]).css("display","block")}if(c==""&&!r.paused&&!l.manualAdvance){c=setInterval(function(){t(d,e,l,false)},l.pauseTime)}l.afterChange.call(this)});var g=function(x,w,z){for(var v=0;v<w.slices;v++){var y=Math.round(x.width()/w.slices);if(v==w.slices-1){x.append(b('<div class="nivo-slice"></div>').css({left:(y*v)+"px",width:(x.width()-(y*v))+"px",height:"0px",opacity:"0",background:'url("'+z.currentImage.attr("src")+'") no-repeat -'+((y+(v*y))-y)+"px 0%"}))}else{x.append(b('<div class="nivo-slice"></div>').css({left:(y*v)+"px",width:y+"px",height:"0px",opacity:"0",background:'url("'+z.currentImage.attr("src")+'") no-repeat -'+((y+(v*y))-y)+"px 0%"}))}}};var h=function(x,v,A){var w=Math.round(x.width()/v.boxCols);var B=Math.round(x.height()/v.boxRows);for(var y=0;y<v.boxRows;y++){for(var z=0;z<v.boxCols;z++){if(z==v.boxCols-1){x.append(b('<div class="nivo-box"></div>').css({opacity:0,left:(w*z)+"px",top:(B*y)+"px",width:(x.width()-(w*z))+"px",height:B+"px",background:'url("'+A.currentImage.attr("src")+'") no-repeat -'+((w+(z*w))-w)+"px -"+((B+(y*B))-B)+"px"}))}else{x.append(b('<div class="nivo-box"></div>').css({opacity:0,left:(w*z)+"px",top:(B*y)+"px",width:w+"px",height:B+"px",background:'url("'+A.currentImage.attr("src")+'") no-repeat -'+((w+(z*w))-w)+"px -"+((B+(y*B))-B)+"px"}))}}}};var t=function(K,J,N,G){var I=K.data("nivo:vars");if(I&&(I.currentSlide==I.totalSlides-1)){N.lastSlide.call(this)}if((!I||I.stop)&&!G){return false}N.beforeChange.call(this);if(!G){K.css("background",'url("'+I.currentImage.attr("src")+'") no-repeat')}else{if(G=="prev"){K.css("background",'url("'+I.currentImage.attr("src")+'") no-repeat')}if(G=="next"){K.css("background",'url("'+I.currentImage.attr("src")+'") no-repeat')}}I.currentSlide++;if(I.currentSlide==I.totalSlides){I.currentSlide=0;N.slideshowEnd.call(this)}if(I.currentSlide<0){I.currentSlide=(I.totalSlides-1)}if(b(J[I.currentSlide]).is("img")){I.currentImage=b(J[I.currentSlide])}else{I.currentImage=b(J[I.currentSlide]).find("img:first")}if(N.controlNav){b(".nivo-controlNav a",K).removeClass("active");b(".nivo-controlNav a:eq("+I.currentSlide+")",K).addClass("active")}s(N);b(".nivo-slice",K).remove();b(".nivo-box",K).remove();var x=N.effect;if(N.effect=="random"){var P=new Array("sliceDownRight","sliceDownLeft","sliceUpRight","sliceUpLeft","sliceUpDown","sliceUpDownLeft","fold","fade","boxRandom","boxRain","boxRainReverse","boxRainGrow","boxRainGrowReverse");x=P[Math.floor(Math.random()*(P.length+1))];if(x==undefined){x="fade"}}if(N.effect.indexOf(",")!=-1){var P=N.effect.split(",");x=P[Math.floor(Math.random()*(P.length))];if(x==undefined){x="fade"}}if(I.currentImage.attr("data-transition")){x=I.currentImage.attr("data-transition")}I.running=true;if(x=="sliceDown"||x=="sliceDownRight"||x=="sliceDownLeft"){g(K,N,I);var O=0;var L=0;var w=b(".nivo-slice",K);if(x=="sliceDownLeft"){w=b(".nivo-slice",K)._reverse()}w.each(function(){var v=b(this);v.css({top:"0px"});if(L==N.slices-1){setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed,"",function(){K.trigger("nivo:animFinished")})},(100+O))}else{setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed)},(100+O))}O+=50;L++})}else{if(x=="sliceUp"||x=="sliceUpRight"||x=="sliceUpLeft"){g(K,N,I);var O=0;var L=0;var w=b(".nivo-slice",K);if(x=="sliceUpLeft"){w=b(".nivo-slice",K)._reverse()}w.each(function(){var v=b(this);v.css({bottom:"0px"});if(L==N.slices-1){setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed,"",function(){K.trigger("nivo:animFinished")})},(100+O))}else{setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed)},(100+O))}O+=50;L++})}else{if(x=="sliceUpDown"||x=="sliceUpDownRight"||x=="sliceUpDownLeft"){g(K,N,I);var O=0;var L=0;var E=0;var w=b(".nivo-slice",K);if(x=="sliceUpDownLeft"){w=b(".nivo-slice",K)._reverse()}w.each(function(){var v=b(this);if(L==0){v.css("top","0px");L++}else{v.css("bottom","0px");L=0}if(E==N.slices-1){setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed,"",function(){K.trigger("nivo:animFinished")})},(100+O))}else{setTimeout(function(){v.animate({height:"100%",opacity:"1.0"},N.animSpeed)},(100+O))}O+=50;E++})}else{if(x=="fold"){g(K,N,I);var O=0;var L=0;b(".nivo-slice",K).each(function(){var v=b(this);var Q=v.width();v.css({top:"0px",height:"100%",width:"0px"});if(L==N.slices-1){setTimeout(function(){v.animate({width:Q,opacity:"1.0"},N.animSpeed,"",function(){K.trigger("nivo:animFinished")})},(100+O))}else{setTimeout(function(){v.animate({width:Q,opacity:"1.0"},N.animSpeed)},(100+O))}O+=50;L++})}else{if(x=="fade"){g(K,N,I);var C=b(".nivo-slice:first",K);C.css({height:"100%",width:K.width()+"px"});C.animate({opacity:"1.0"},(N.animSpeed*2),"",function(){K.trigger("nivo:animFinished")})}else{if(x=="slideInRight"){g(K,N,I);var C=b(".nivo-slice:first",K);C.css({height:"100%",width:"0px",opacity:"1"});C.animate({width:K.width()+"px"},(N.animSpeed*2),"",function(){K.trigger("nivo:animFinished")})}else{if(x=="slideInLeft"){g(K,N,I);var C=b(".nivo-slice:first",K);C.css({height:"100%",width:"0px",opacity:"1",left:"",right:"0px"});C.animate({width:K.width()+"px"},(N.animSpeed*2),"",function(){C.css({left:"0px",right:""});K.trigger("nivo:animFinished")})}else{if(x=="boxRandom"){h(K,N,I);var M=N.boxCols*N.boxRows;var L=0;var O=0;var z=q(b(".nivo-box",K));z.each(function(){var v=b(this);if(L==M-1){setTimeout(function(){v.animate({opacity:"1"},N.animSpeed,"",function(){K.trigger("nivo:animFinished")})},(100+O))}else{setTimeout(function(){v.animate({opacity:"1"},N.animSpeed)},(100+O))}O+=20;L++})}else{if(x=="boxRain"||x=="boxRainReverse"||x=="boxRainGrow"||x=="boxRainGrowReverse"){h(K,N,I);var M=N.boxCols*N.boxRows;var L=0;var O=0;var B=0;var H=0;var F=new Array();F[B]=new Array();var z=b(".nivo-box",K);if(x=="boxRainReverse"||x=="boxRainGrowReverse"){z=b(".nivo-box",K)._reverse()}z.each(function(){F[B][H]=b(this);H++;if(H==N.boxCols){B++;H=0;F[B]=new Array()}});for(var D=0;D<(N.boxCols*2);D++){var y=D;for(var A=0;A<N.boxRows;A++){if(y>=0&&y<N.boxCols){(function(V,Q,U,R,W){var T=b(F[V][Q]);var v=T.width();var S=T.height();if(x=="boxRainGrow"||x=="boxRainGrowReverse"){T.width(0).height(0)}if(R==W-1){setTimeout(function(){T.animate({opacity:"1",width:v,height:S},N.animSpeed/1.3,"",function(){K.trigger("nivo:animFinished")})},(100+U))}else{setTimeout(function(){T.animate({opacity:"1",width:v,height:S},N.animSpeed/1.3)},(100+U))}})(A,y,O,L,M);L++}y--}O+=100}}}}}}}}}}};var q=function(w){for(var y,v,z=w.length;z;y=parseInt(Math.random()*z),v=w[--z],w[z]=w[y],w[y]=v){}return w};var m=function(v){if(this.console&&typeof console.log!="undefined"){console.log(v)}};this.stop=function(){if(!b(o).data("nivo:vars").stop){b(o).data("nivo:vars").stop=true;m("Stop Slider")}};this.start=function(){if(b(o).data("nivo:vars").stop){b(o).data("nivo:vars").stop=false;m("Start Slider")}};l.afterLoad.call(this);return this};b.fn.nivoSlider=function(c){return this.each(function(e,g){var d=b(this);if(d.data("nivoslider")){return d.data("nivoslider")}var f=new a(this,c);d.data("nivoslider",f)})};b.fn.nivoSlider.defaults={effect:"random",slices:15,boxCols:8,boxRows:4,animSpeed:500,pauseTime:3000,startSlide:0,directionNav:true,directionNavHide:true,controlNav:true,controlNavThumbs:false,controlNavThumbsFromRel:false,controlNavThumbsSearch:".jpg",controlNavThumbsReplace:"_thumb.jpg",keyboardNav:true,pauseOnHover:true,manualAdvance:false,captionOpacity:0.8,prevText:"Prev",nextText:"Next",randomStart:false,beforeChange:function(){},afterChange:function(){},slideshowEnd:function(){},lastSlide:function(){},afterLoad:function(){}};b.fn._reverse=[].reverse})(jQuery);(function(b){var c=a("searchable");c.defaults={maxListSize:100,maxMultiMatch:50,exactMatch:false,wildcards:true,ignoreCase:true,warnMultiMatch:"top {0} matches ...",warnNoMatch:"no matches ...",latency:200,zIndex:"auto"};c.execute=function(W,V){if(b.browser.msie&&parseInt(jQuery.browser.version)<7){return this}if(this.nodeName!="SELECT"||this.size>1){return this}var T=b(this);var S={index:-1,options:null};var R="lang";var Q=false;b.browser.chrome=/chrome/.test(navigator.userAgent.toLowerCase());if(b.browser.chrome){b.browser.safari=false}if(b.meta){W=b.extend({},options,T.data())}var P=b("<div/>");var O=b("<div/>");var M=b("<input/>");var K=b("<select/>");var J=b("<option>"+W.warnMultiMatch.replace(/\{0\}/g,W.maxMultiMatch)+"</option>").attr("disabled","true");var I=b("<option>"+W.warnNoMatch+"</option>").attr("disabled","true");var H={option:function(g){return b(K.get(0).options[g])},selected:function(){return K.find(":selected")},selectedIndex:function(g){if(g>-1){K.get(0).selectedIndex=g}return K.get(0).selectedIndex},size:function(g){K.attr("size",Math.max(2,Math.min(g,20)))},reset:function(){if((T.get(0).selectedIndex-1)==T.data("index")){return}var h=T.get(0).selectedIndex;var g=T.get(0).length;var p=Math.floor(W.maxMultiMatch/2);var o=Math.max(1,(h-p));var n=Math.min(g,Math.max(W.maxMultiMatch,(h+p)));var m=h-o;K.empty();H.size(n-o);for(var l=o;l<n;l++){K.append(b(T.get(0).options[l]).clone().attr(R,l-1))}if(n>W.maxMultiMatch){K.append(J)}K.get(0).selectedIndex=m}};E();var D=false;O.mouseover(function(){D=true});O.mouseout(function(){D=false});K.mouseover(function(){D=true});K.mouseout(function(){D=false});M.click(function(g){if(!Q){G(g,true)}else{d(g,true)}});M.blur(function(g){if(!D&&Q){d(g,true)}});T.keydown(function(g){if(g.keyCode!=9){G(g,false,true)}});T.click(function(g){K.focus()});K.click(function(g){if(H.selectedIndex()<0){return}d(g)});K.focus(function(g){M.focus()});K.blur(function(g){if(!D){d(g,true)}});K.mousemove(function(g){return true});O.click(function(g){M.click()});M.keyup(function(g){if(jQuery.inArray(g.keyCode,new Array(9,13,16,33,34,35,36,38,40))>-1){return true}L=b.trim(M.val().toLowerCase());N();C=setTimeout(X,W.latency)});M.keydown(function(g){if(g.shiftKey||g.ctrlKey||g.altKey){return}switch(g.keyCode){case 9:d(g);w(T,g.shiftKey?-1:1);break;case 13:d(g);T.focus();break;case 27:d(g,true);T.focus();break;case 33:if(H.selectedIndex()-K.attr("size")>0){H.selectedIndex(H.selectedIndex()-=K.attr("size"))}else{H.selectedIndex(0)}F();break;case 34:if(H.selectedIndex()+K.attr("size")<K.get(0).options.length-1){H.selectedIndex(H.selectedIndex()+=K.attr("size"))}else{H.selectedIndex(K.get(0).options.length-1)}F();break;case 38:if(H.selectedIndex()>0){H.selectedIndex(H.selectedIndex()-1);F()}break;case 40:if(H.selectedIndex()<K.get(0).options.length-1){H.selectedIndex(H.selectedIndex()+1);F()}break;default:return true}return false});function E(){T.css("text-decoration","none");T.width(T.outerWidth());T.height(T.outerHeight());P.css("position","relative");P.css("width",T.outerWidth());if(b.browser.msie){P.css("z-index",V)}O.css({position:"absolute",top:0,left:0,width:T.outerWidth(),height:T.outerHeight(),"background-color":"#FFFFFF",opacity:"0.01"});M.attr("type","text");M.hide();M.height(T.outerHeight());M.css({position:"absolute",top:0,left:0,margin:"0px",padding:"0px","outline-style":"none","border-style":"solid","border-bottom-style":"none","border-color":"transparent","background-color":"transparent"});var l=new Array();l.push("border-left-width");l.push("border-top-width");l.push("font-size");l.push("font-stretch");l.push("font-variant");l.push("font-weight");l.push("color");l.push("text-align");l.push("text-indent");l.push("text-shadow");l.push("text-transform");l.push("padding-left");l.push("padding-top");for(var m=0;m<l.length;m++){M.css(l[m],T.css(l[m]))}if(b.browser.msie&&parseInt(jQuery.browser.version)<8){M.css("padding","0px");M.css("padding-left","3px");M.css("border-left-width","2px");M.css("border-top-width","3px")}else{if(b.browser.chrome){M.height(T.innerHeight());M.css("text-transform","none");M.css("padding-left",v(M.css("padding-left"))+3);M.css("padding-top",2)}else{if(b.browser.safari){M.height(T.innerHeight());M.css("padding-top",2);M.css("padding-left",3);M.css("text-transform","none")}else{if(b.browser.opera){M.height(T.innerHeight());var g=v(T.css("padding-left"));M.css("padding-left",g==1?g+1:g);M.css("padding-top",0)}else{if(b.browser.mozilla){M.css("padding-top","0px");M.css("border-top","0px");M.css("padding-left",v(T.css("padding-left"))+3)}else{M.css("padding-left",v(T.css("padding-left"))+3);M.css("padding-top",v(T.css("padding-top"))+1)}}}}}var p=v(T.css("padding-left"))+v(T.css("padding-right"))+v(T.css("border-left-width"))+v(T.css("border-left-width"))+23;M.width(T.outerWidth()-p);var h=T.css("width");var o=T.outerWidth();T.css("width","auto");var o=o>T.outerWidth()?o:T.outerWidth();T.css("width",h);K.hide();H.size(T.get(0).length);K.css({position:"absolute",top:T.outerHeight(),left:0,width:o,border:"1px solid #333","font-weight":"normal",padding:0,"background-color":T.css("background-color"),"text-transform":T.css("text-transform")});var n=/^\d+$/.test(T.css("z-index"))?T.css("z-index"):1;if(W.zIndex&&/^\d+$/.test(W.zIndex)){n=W.zIndex}O.css("z-index",(n).toString(10));M.css("z-index",(n+1).toString(10));K.css("z-index",(n+2).toString(10));T.wrap(P);T.after(O);T.after(M);T.after(K)}function G(l,h,g){if(T.attr("disabled")){return false}T.prepend("<option />");if(typeof g=="undefined"){Q=!Q}H.reset();F();s();if(h){K.show()}M.show();M.focus();M.select();T.get(0).selectedIndex=0;if(typeof l!="undefined"){l.stopPropagation()}}function d(h,g){Q=false;T.find(":first").remove();N();M.hide();K.hide();if(typeof g!="undefined"){U()}f();if(typeof h!="undefined"){h.stopPropagation()}}function N(){if(C!=null){clearTimeout(C)}}function f(){if(H.selectedIndex()<0||H.selected().get(0).disabled){return}T.get(0).selectedIndex=parseInt(K.find(":selected").attr(R));T.change();T.data("index",new Number(T.get(0).selectedIndex))}function F(){if(H.selectedIndex()>-1&&!H.selected().get(0).disabled){M.val(K.find(":selected").text())}else{M.val(T.find(":selected").text())}}function s(){S.index=H.selectedIndex();S.options=new Array();for(var g=0;g<K.get(0).options.length;g++){S.options.push(K.get(0).options[g])}}function U(){K.empty();for(var g=0;g<S.options.length;g++){K.append(S.options[g])}H.selectedIndex(S.index);H.size(S.options.length)}function w(h,g){var m=h.parents("form,body").eq(0).find("button,input[type!=hidden],textarea,select");var l=m.index(h);if(l>-1&&l+g<m.length&&l+g>=0){m.eq(l+g).focus();return true}return false}function e(h){var g=["/",".","*","+","?","|","(",")","[","]","{","}","\\","^","$"];var l=new RegExp("(\\"+g.join("|\\")+")","g");return h.replace(l,"\\$1")}var C=null;var B;var L;function X(){if(B==L){C=null;return}var h=0;B=L;K.hide();K.empty();var g=e(L);if(W.exactMatch){g="^"+g}if(W.wildcards){g=g.replace(/\\\*/g,".*");g=g.replace(/\\\?/g,".")}var n;if(W.ignoreCase){n="i"}L=new RegExp(g,n);for(var l=1;l<T.get(0).length&&h<W.maxMultiMatch;l++){if(L.length==0||L.test(T.get(0).options[l].text)){var m=b(T.get(0).options[l]).clone().attr(R,l-1);if(T.data("index")==l){m.text(T.data("text"))}K.append(m);h++}}if(h>=1){H.selectedIndex(0)}else{if(h==0){K.append(I)}}if(h>=W.maxMultiMatch){K.append(J)}H.size(h);K.show();C=null}function v(g){try{g=parseFloat(g.replace(/[\s]*px/,""));if(!isNaN(g)){return g}}catch(h){}return 0}return};function a(g){var f=b[g]={};b.fn[g]=function(d){d=b.extend(f.defaults,d);var e=this.size();return this.each(function(h){f.execute.call(this,d,e-h)})};return f}})(jQuery);(function(a){a.fn.lightBox=function(s){s=jQuery.extend({overlayBgColor:"#000",overlayOpacity:0.8,fixedNavigation:false,imageLoading:"images/lightbox-ico-loading.gif",imageBtnPrev:"images/lightbox-btn-prev.gif",imageBtnNext:"images/lightbox-btn-next.gif",imageBtnClose:"images/lightbox-btn-close.gif",imageBlank:"images/lightbox-blank.gif",containerBorderSize:10,containerResizeSpeed:400,txtImage:"Image",txtOf:"of",keyToClose:"c",keyToPrev:"p",keyToNext:"n",imageArray:[],activeImage:0},s);var l=this;function u(){r(this,l);return false}function r(y,x){a("embed, object, select").css({visibility:"hidden"});c();s.imageArray.length=0;s.activeImage=0;if(x.length==1){s.imageArray.push(new Array(y.getAttribute("href"),y.getAttribute("title")))}else{for(var w=0;w<x.length;w++){s.imageArray.push(new Array(x[w].getAttribute("href"),x[w].getAttribute("title")))}}while(s.imageArray[s.activeImage][0]!=y.getAttribute("href")){s.activeImage++}o()}function c(){a("body").append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+s.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+s.imageBtnClose+'"></a></div></div></div></div>');var w=f();a("#jquery-overlay").css({backgroundColor:s.overlayBgColor,opacity:s.overlayOpacity,width:w[0],height:w[1]}).fadeIn();var x=h();a("#jquery-lightbox").css({top:x[1]+(w[3]/10),left:x[0]}).show();a("#jquery-overlay,#jquery-lightbox").click(function(){b()});a("#lightbox-loading-link,#lightbox-secNav-btnClose").click(function(){b();return false});a(window).resize(function(){var y=f();a("#jquery-overlay").css({width:y[0],height:y[1]});var z=h();a("#jquery-lightbox").css({top:z[1]+(y[3]/10),left:z[0]})})}function o(){a("#lightbox-loading").show();if(s.fixedNavigation){a("#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}else{a("#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber").hide()}var w=new Image();w.onload=function(){a("#lightbox-image").attr("src",s.imageArray[s.activeImage][0]);m(w.width,w.height);w.onload=function(){}};w.src=s.imageArray[s.activeImage][0]}function m(z,C){var w=a("#lightbox-container-image-box").width();var B=a("#lightbox-container-image-box").height();var A=(z+(s.containerBorderSize*2));var y=(C+(s.containerBorderSize*2));var x=w-A;var D=B-y;a("#lightbox-container-image-box").animate({width:A,height:y},s.containerResizeSpeed,function(){g()});if((x==0)&&(D==0)){if(a.browser.msie){q(250)}else{q(100)}}a("#lightbox-container-image-data-box").css({width:z});a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({height:C+(s.containerBorderSize*2)})}function g(){a("#lightbox-loading").hide();a("#lightbox-image").fadeIn(function(){n();v()});t()}function n(){a("#lightbox-container-image-data-box").slideDown("fast");a("#lightbox-image-details-caption").hide();if(s.imageArray[s.activeImage][1]){a("#lightbox-image-details-caption").html(s.imageArray[s.activeImage][1]).show()}if(s.imageArray.length>1){a("#lightbox-image-details-currentNumber").html(s.txtImage+" "+(s.activeImage+1)+" "+s.txtOf+" "+s.imageArray.length).show()}}function v(){a("#lightbox-nav").show();a("#lightbox-nav-btnPrev,#lightbox-nav-btnNext").css({background:"transparent url("+s.imageBlank+") no-repeat"});if(s.activeImage!=0){if(s.fixedNavigation){a("#lightbox-nav-btnPrev").css({background:"url("+s.imageBtnPrev+") left 15% no-repeat"}).unbind().bind("click",function(){s.activeImage=s.activeImage-1;o();return false})}else{a("#lightbox-nav-btnPrev").unbind().hover(function(){a(this).css({background:"url("+s.imageBtnPrev+") left 15% no-repeat"})},function(){a(this).css({background:"transparent url("+s.imageBlank+") no-repeat"})}).show().bind("click",function(){s.activeImage=s.activeImage-1;o();return false})}}if(s.activeImage!=(s.imageArray.length-1)){if(s.fixedNavigation){a("#lightbox-nav-btnNext").css({background:"url("+s.imageBtnNext+") right 15% no-repeat"}).unbind().bind("click",function(){s.activeImage=s.activeImage+1;o();return false})}else{a("#lightbox-nav-btnNext").unbind().hover(function(){a(this).css({background:"url("+s.imageBtnNext+") right 15% no-repeat"})},function(){a(this).css({background:"transparent url("+s.imageBlank+") no-repeat"})}).show().bind("click",function(){s.activeImage=s.activeImage+1;o();return false})}}p()}function p(){a(document).keydown(function(w){d(w)})}function e(){a(document).unbind()}function d(w){if(w==null){keycode=event.keyCode;escapeKey=27}else{keycode=w.keyCode;escapeKey=w.DOM_VK_ESCAPE}key=String.fromCharCode(keycode).toLowerCase();if((key==s.keyToClose)||(key=="x")||(keycode==escapeKey)){b()}if((key==s.keyToPrev)||(keycode==37)){if(s.activeImage!=0){s.activeImage=s.activeImage-1;o();e()}}if((key==s.keyToNext)||(keycode==39)){if(s.activeImage!=(s.imageArray.length-1)){s.activeImage=s.activeImage+1;o();e()}}}function t(){if((s.imageArray.length-1)>s.activeImage){objNext=new Image();objNext.src=s.imageArray[s.activeImage+1][0]}if(s.activeImage>0){objPrev=new Image();objPrev.src=s.imageArray[s.activeImage-1][0]}}function b(){a("#jquery-lightbox").remove();a("#jquery-overlay").fadeOut(function(){a("#jquery-overlay").remove()});a("embed, object, select").css({visibility:"visible"})}function f(){var y,w;if(window.innerHeight&&window.scrollMaxY){y=window.innerWidth+window.scrollMaxX;w=window.innerHeight+window.scrollMaxY}else{if(document.body.scrollHeight>document.body.offsetHeight){y=document.body.scrollWidth;w=document.body.scrollHeight}else{y=document.body.offsetWidth;w=document.body.offsetHeight}}var x,z;if(self.innerHeight){if(document.documentElement.clientWidth){x=document.documentElement.clientWidth}else{x=self.innerWidth}z=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){x=document.documentElement.clientWidth;z=document.documentElement.clientHeight}else{if(document.body){x=document.body.clientWidth;z=document.body.clientHeight}}}if(w<z){pageHeight=z}else{pageHeight=w}if(y<x){pageWidth=y}else{pageWidth=x}arrayPageSize=new Array(pageWidth,pageHeight,x,z);return arrayPageSize}function h(){var x,w;if(self.pageYOffset){w=self.pageYOffset;x=self.pageXOffset}else{if(document.documentElement&&document.documentElement.scrollTop){w=document.documentElement.scrollTop;x=document.documentElement.scrollLeft}else{if(document.body){w=document.body.scrollTop;x=document.body.scrollLeft}}}arrayPageScroll=new Array(x,w);return arrayPageScroll}function q(y){var x=new Date();w=null;do{var w=new Date()}while(w-x<y)}return this.unbind("click").click(u)}})(jQuery);(function(d){var c=(window.orientation!=undefined),a=((d.browser.opera||(d.browser.mozilla&&parseFloat(d.browser.version.substr(0,3))<1.9))?"input":"paste");d.event.special.paste={setup:function(){if(this.addEventListener){this.addEventListener(a,b,false)}else{if(this.attachEvent){this.attachEvent(a,b)}}},teardown:function(){if(this.removeEventListener){this.removeEventListener(a,b,false)}else{if(this.detachEvent){this.detachEvent(a,b)}}}};function b(g){var f=this;g=d.event.fix(g||window.e);g.type="paste";setTimeout(function(){d.event.handle.call(f,g)},1)}d.extend({mask:{rules:{z:/[a-z]/,Z:/[A-Z]/,a:/[a-zA-Z]/,"*":/[0-9a-zA-Z]/,"@":/[0-9a-zA-ZçÇáàãâéèêíìóòôõúùü]/},keyRepresentation:{8:"backspace",9:"tab",13:"enter",16:"shift",17:"control",18:"alt",27:"esc",33:"page up",34:"page down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete",116:"f5",123:"f12",224:"command"},iphoneKeyRepresentation:{10:"go",127:"delete"},signals:{"+":"","-":"-"},options:{attr:"alt",mask:null,type:"fixed",maxLength:-1,defaultValue:"",signal:false,textAlign:true,selectCharsOnFocus:true,autoTab:true,setSize:false,fixedChars:"[(),.:/ -]",onInvalid:function(){},onValid:function(){},onOverflow:function(){}},masks:{phone:{mask:"(99) 9999-9999"},"phone-us":{mask:"(999) 999-9999"},cpf:{mask:"999.999.999-99"},cnpj:{mask:"99.999.999/9999-99"},date:{mask:"39/19/9999"},"date-us":{mask:"19/39/9999"},cep:{mask:"99999-999"},time:{mask:"29:59"},cc:{mask:"9999 9999 9999 9999"},integer:{mask:"999.999.999.999",type:"reverse"},decimal:{mask:"99,999.999.999.999",type:"reverse",defaultValue:"000"},"decimal-us":{mask:"99.999,999,999,999",type:"reverse",defaultValue:"000"},"signed-decimal":{mask:"99,999.999.999.999",type:"reverse",defaultValue:"+000"},"signed-decimal-us":{mask:"99,999.999.999.999",type:"reverse",defaultValue:"+000"}},init:function(){if(!this.hasInit){var e=this,f,g=(c)?this.iphoneKeyRepresentation:this.keyRepresentation;this.ignore=false;for(f=0;f<=9;f++){this.rules[f]=new RegExp("[0-"+f+"]")}this.keyRep=g;this.ignoreKeys=[];d.each(g,function(h){e.ignoreKeys.push(parseInt(h))});this.hasInit=true}},set:function(l,f){var e=this,g=d(l),h="maxLength";f=f||{};this.init();return g.each(function(){if(f.attr){e.options.attr=f.attr}var s=d(this),u=d.extend({},e.options),r=s.attr(u.attr),m="";m=(typeof f=="string")?f:(r!="")?r:null;if(m){u.mask=m}if(e.masks[m]){u=d.extend(u,e.masks[m])}if(typeof f=="object"&&f.constructor!=Array){u=d.extend(u,f)}if(d.metadata){u=d.extend(u,s.metadata())}if(u.mask!=null){if(s.data("mask")){e.unset(s)}var n=u.defaultValue,p=(u.type=="reverse"),q=new RegExp(u.fixedChars,"g");if(u.maxLength==-1){u.maxLength=s.attr(h)}u=d.extend({},u,{fixedCharsReg:new RegExp(u.fixedChars),fixedCharsRegG:q,maskArray:u.mask.split(""),maskNonFixedCharsArray:u.mask.replace(q,"").split("")});if((u.type=="fixed"||p)&&u.setSize&&!s.attr("size")){s.attr("size",u.mask.length)}if(p&&u.textAlign){s.css("text-align","right")}if(this.value!=""||n!=""){var t=e.string((this.value!="")?this.value:n,u);this.defaultValue=t;s.val(t)}if(u.type=="infinite"){u.type="repeat"}s.data("mask",u);s.removeAttr(h);s.bind("keydown.mask",{func:e._onKeyDown,thisObj:e},e._onMask).bind("keypress.mask",{func:e._onKeyPress,thisObj:e},e._onMask).bind("keyup.mask",{func:e._onKeyUp,thisObj:e},e._onMask).bind("paste.mask",{func:e._onPaste,thisObj:e},e._onMask).bind("focus.mask",e._onFocus).bind("blur.mask",e._onBlur).bind("change.mask",e._onChange)}})},unset:function(f){var e=d(f);return e.each(function(){var h=d(this);if(h.data("mask")){var g=h.data("mask").maxLength;if(g!=-1){h.attr("maxLength",g)}h.unbind(".mask").removeData("mask")}})},string:function(m,f){this.init();var l={};if(typeof m!="string"){m=String(m)}switch(typeof f){case"string":if(this.masks[f]){l=d.extend(l,this.masks[f])}else{l.mask=f}break;case"object":l=f}if(!l.fixedChars){l.fixedChars=this.options.fixedChars}var e=new RegExp(l.fixedChars),g=new RegExp(l.fixedChars,"g");if((l.type=="reverse")&&l.defaultValue){if(typeof this.signals[l.defaultValue.charAt(0)]!="undefined"){var h=m.charAt(0);l.signal=(typeof this.signals[h]!="undefined")?this.signals[h]:this.signals[l.defaultValue.charAt(0)];l.defaultValue=l.defaultValue.substring(1)}}return this.__maskArray(m.split(""),l.mask.replace(g,"").split(""),l.mask.split(""),l.type,l.maxLength,l.defaultValue,e,l.signal)},_onFocus:function(h){var g=d(this),f=g.data("mask");f.inputFocusValue=g.val();f.changed=false;if(f.selectCharsOnFocus){g.select()}},_onBlur:function(h){var g=d(this),f=g.data("mask");if(f.inputFocusValue!=g.val()&&!f.changed){g.trigger("change")}},_onChange:function(f){d(this).data("mask").changed=true},_onMask:function(f){var h=f.data.thisObj,g={};g._this=f.target;g.$this=d(g._this);if(g.$this.attr("readonly")){return true}g.data=g.$this.data("mask");g[g.data.type]=true;g.value=g.$this.val();g.nKey=h.__getKeyNumber(f);g.range=h.__getRange(g._this);g.valueArray=g.value.split("");return f.data.func.call(h,f,g)},_onKeyDown:function(g,h){this.ignore=d.inArray(h.nKey,this.ignoreKeys)>-1||g.ctrlKey||g.metaKey||g.altKey;if(this.ignore){var f=this.keyRep[h.nKey];h.data.onValid.call(h._this,f?f:"",h.nKey)}return c?this._keyPress(g,h):true},_onKeyUp:function(f,g){if(g.nKey==9||g.nKey==16){return true}if(g.data.type=="repeat"){this.__autoTab(g);return true}return this._onPaste(f,g)},_onPaste:function(g,h){if(h.reverse){this.__changeSignal(g.type,h)}var f=this.__maskArray(h.valueArray,h.data.maskNonFixedCharsArray,h.data.maskArray,h.data.type,h.data.maxLength,h.data.defaultValue,h.data.fixedCharsReg,h.data.signal);h.$this.val(f);if(!h.reverse&&h.data.defaultValue.length&&(h.range.start==h.range.end)){this.__setRange(h._this,h.range.start,h.range.end)}if((d.browser.msie||d.browser.safari)&&!h.reverse){this.__setRange(h._this,h.range.start,h.range.end)}if(this.ignore){return true}this.__autoTab(h);return true},_onKeyPress:function(q,f){if(this.ignore){return true}if(f.reverse){this.__changeSignal(q.type,f)}var r=String.fromCharCode(f.nKey),t=f.range.start,m=f.value,h=f.data.maskArray;if(f.reverse){var l=m.substr(0,t),p=m.substr(f.range.end,m.length);m=l+r+p;if(f.data.signal&&(t-f.data.signal.length>0)){t-=f.data.signal.length}}var s=m.replace(f.data.fixedCharsRegG,"").split(""),g=this.__extraPositionsTill(t,h,f.data.fixedCharsReg);f.rsEp=t+g;if(f.repeat){f.rsEp=0}if(!this.rules[h[f.rsEp]]||(f.data.maxLength!=-1&&s.length>=f.data.maxLength&&f.repeat)){f.data.onOverflow.call(f._this,r,f.nKey);return false}else{if(!this.rules[h[f.rsEp]].test(r)){f.data.onInvalid.call(f._this,r,f.nKey);return false}else{f.data.onValid.call(f._this,r,f.nKey)}}var n=this.__maskArray(s,f.data.maskNonFixedCharsArray,h,f.data.type,f.data.maxLength,f.data.defaultValue,f.data.fixedCharsReg,f.data.signal,g);f.$this.val(n);return(f.reverse)?this._keyPressReverse(q,f):(f.fixed)?this._keyPressFixed(q,f):true},_keyPressFixed:function(f,g){if(g.range.start==g.range.end){if((g.rsEp==0&&g.value.length==0)||g.rsEp<g.value.length){this.__setRange(g._this,g.rsEp,g.rsEp+1)}}else{this.__setRange(g._this,g.range.start,g.range.end)}return true},_keyPressReverse:function(f,g){if(d.browser.msie&&((g.range.start==0&&g.range.end==0)||g.range.start!=g.range.end)){this.__setRange(g._this,g.value.length)}return false},__autoTab:function(f){if(f.data.autoTab&&((f.$this.val().length>=f.data.maskArray.length&&!f.repeat)||(f.data.maxLength!=-1&&f.valueArray.length>=f.data.maxLength&&f.repeat))){var e=this.__getNextInput(f._this,f.data.autoTab);if(e){f.$this.trigger("blur");e.focus().select()}}},__changeSignal:function(f,g){if(g.data.signal!==false){var e=(f=="paste")?g.value.charAt(0):String.fromCharCode(g.nKey);if(this.signals&&(typeof this.signals[e]!="undefined")){g.data.signal=this.signals[e]}}},__getKeyNumber:function(f){return(f.charCode||f.keyCode||f.which)},__maskArray:function(p,h,g,m,e,n,q,o,f){if(m=="reverse"){p.reverse()}p=this.__removeInvalidChars(p,h,m=="repeat"||m=="infinite");if(n){p=this.__applyDefaultValue.call(p,n)}p=this.__applyMask(p,g,f,q);switch(m){case"reverse":p.reverse();return(o||"")+p.join("").substring(p.length-g.length);case"infinite":case"repeat":var l=p.join("");return(e!=-1&&p.length>=e)?l.substring(0,e):l;default:return p.join("").substring(0,g.length)}return""},__applyDefaultValue:function(g){var e=g.length,f=this.length,h;for(h=f-1;h>=0;h--){if(this[h]==g.charAt(0)){this.pop()}else{break}}for(h=0;h<e;h++){if(!this[h]){this[h]=g.charAt(h)}}return this},__removeInvalidChars:function(h,g,e){for(var f=0,l=0;f<h.length;f++){if(g[l]&&this.rules[g[l]]&&!this.rules[g[l]].test(h[f])){h.splice(f,1);if(!e){l--}f--}if(!e){l++}}return h},__applyMask:function(h,f,l,e){if(typeof l=="undefined"){l=0}for(var g=0;g<h.length+l;g++){if(f[g]&&e.test(f[g])){h.splice(g,0,f[g])}}return h},__extraPositionsTill:function(h,f,e){var g=0;while(e.test(f[h++])){g++}return g},__getNextInput:function(q,f){var l=q.form.elements,h=d.inArray(q,l)+1,p=null,m;for(m=h;m<l.length;m++){p=d(l[m]);if(this.__isNextInput(p,f)){return p}}var e=document.forms,g=d.inArray(q.form,e)+1,o,n=null;for(o=g;o<e.length;o++){n=e[o].elements;for(m=0;m<n.length;m++){p=d(n[m]);if(this.__isNextInput(p,f)){return p}}}return null},__isNextInput:function(g,e){var f=g.get(0);return f&&(f.offsetWidth>0||f.offsetHeight>0)&&f.nodeName!="FIELDSET"&&(e===true||(typeof e=="string"&&g.is(e)))},__setRange:function(g,h,e){if(typeof e=="undefined"){e=h}if(g.setSelectionRange){g.setSelectionRange(h,e)}else{var f=g.createTextRange();f.collapse();f.moveStart("character",h);f.moveEnd("character",e-h);f.select()}},__getRange:function(f){if(!d.browser.msie){return{start:f.selectionStart,end:f.selectionEnd}}var g={start:0,end:0},e=document.selection.createRange();g.start=0-e.duplicate().moveStart("character",-100000);g.end=g.start+e.text.length;return g},unmaskedVal:function(e){return d(e).val().replace(d.mask.fixedCharsRegG,"")}}});d.fn.extend({setMask:function(e){return d.mask.set(this,e)},unsetMask:function(){return d.mask.unset(this)},unmaskedVal:function(){return d.mask.unmaskedVal(this[0])}})})(jQuery);
/*
 * jQuery UI 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(d,b){function a(c){return !d(c).parents().andSelf().filter(function(){return d.curCSS(this,"visibility")==="hidden"||d.expr.filters.hidden(this)}).length}d.ui=d.ui||{};if(!d.ui.version){d.extend(d.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});d.fn.extend({_focus:d.fn.focus,focus:function(e,c){return typeof e==="number"?this.each(function(){var f=this;setTimeout(function(){d(f).focus();c&&c.call(f)},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=d.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(d.curCSS(this,"position",1))&&/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(d.curCSS(this,"overflow",1)+d.curCSS(this,"overflow-y",1)+d.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?d(document):c},zIndex:function(e){if(e!==b){return this.css("zIndex",e)}if(this.length){e=d(this[0]);for(var c;e.length&&e[0]!==document;){c=e.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(e.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((d.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});d.each(["Width","Height"],function(f,c){function n(p,o,h,e){d.each(m,function(){o-=parseFloat(d.curCSS(p,"padding"+this,true))||0;if(h){o-=parseFloat(d.curCSS(p,"border"+this+"Width",true))||0}if(e){o-=parseFloat(d.curCSS(p,"margin"+this,true))||0}});return o}var m=c==="Width"?["Left","Right"]:["Top","Bottom"],l=c.toLowerCase(),g={innerWidth:d.fn.innerWidth,innerHeight:d.fn.innerHeight,outerWidth:d.fn.outerWidth,outerHeight:d.fn.outerHeight};d.fn["inner"+c]=function(e){if(e===b){return g["inner"+c].call(this)}return this.each(function(){d(this).css(l,n(this,e)+"px")})};d.fn["outer"+c]=function(h,e){if(typeof h!=="number"){return g["outer"+c].call(this,h)}return this.each(function(){d(this).css(l,n(this,h,true,e)+"px")})}});d.extend(d.expr[":"],{data:function(e,c,f){return !!d.data(e,f[3])},focusable:function(e){var c=e.nodeName.toLowerCase(),f=d.attr(e,"tabindex");if("area"===c){c=e.parentNode;f=c.name;if(!e.href||!f||c.nodeName.toLowerCase()!=="map"){return false}e=d("img[usemap=#"+f+"]")[0];return !!e&&a(e)}return(/input|select|textarea|button|object/.test(c)?!e.disabled:"a"==c?e.href||!isNaN(f):!isNaN(f))&&a(e)},tabbable:function(e){var c=d.attr(e,"tabindex");return(isNaN(c)||c>=0)&&d(e).is(":focusable")}});d(function(){var e=document.body,c=e.appendChild(c=document.createElement("div"));d.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});d.support.minHeight=c.offsetHeight===100;d.support.selectstart="onselectstart" in c;e.removeChild(c).style.display="none"});d.extend(d.ui,{plugin:{add:function(f,c,h){f=d.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(e,c){return document.compareDocumentPosition?e.compareDocumentPosition(c)&16:e!==c&&e.contains(c)},hasScroll:function(e,c){if(d(e).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var f=false;if(e[c]>0){return true}e[c]=1;f=e[c]>0;e[c]=0;return f},isOverAxis:function(e,c,f){return e>c&&e<c+f},isOver:function(f,c,n,m,l,g){return d.ui.isOverAxis(f,n,l)&&d.ui.isOverAxis(c,m,g)}})}})(jQuery);
/*
 * jQuery UI Widget 1.8.11
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,e){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var g=0,f;(f=b[g])!=null;g++){a(f).triggerHandler("remove")}d(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,f)})}}a.widget=function(b,m,l){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!l){l=m;m=a.Widget}a.expr[":"][g]=function(f){return !!a.data(f,b)};a[h]=a[h]||{};a[h][b]=function(f,n){arguments.length&&this._createWidget(f,n)};m=new m;m.options=a.extend(true,{},m.options);a[h][b].prototype=a.extend(true,m,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},l);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,f){a.fn[b]=function(n){var m=typeof n==="string",l=Array.prototype.slice.call(arguments,1),g=this;n=!m&&l.length?a.extend.apply(null,[true,n].concat(l)):n;if(m&&n.charAt(0)==="_"){return g}m?this.each(function(){var o=a.data(this,b),h=o&&a.isFunction(o[n])?o[n].apply(o,l):o;if(h!==o&&h!==e){g=h;return false}}):this.each(function(){var h=a.data(this,b);h?h.option(n||{})._init():a.data(this,b,new f(n,this))});return g}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);this.element=a(g);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(b,g){var f=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(g===e){return this.options[b]}f={};f[b]=g}this._setOptions(f);return this},_setOptions:function(b){var f=this;a.each(b,function(h,g){f._setOption(h,g)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,m,l){var h=this.options[b];m=a.Event(m);m.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();l=l||{};if(m.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];m[g]=m.originalEvent[g]}}this.element.trigger(m,l);return !(a.isFunction(h)&&h.call(this.element[0],m,l)===false||m.isDefaultPrevented())}}})(jQuery);(function(f){f.ui=f.ui||{};var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=f.extend({},c);var l=f(c.of),r=l[0],p=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],o,m,n;if(r.nodeType===9){o=l.width();m=l.height();n={top:0,left:0}}else{if(r.setTimeout){o=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()}}else{if(r.preventDefault){c.at="left top";o=m=0;n={top:c.of.pageY,left:c.of.pageX}}else{o=l.outerWidth();m=l.outerHeight();n=l.offset()}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]}g[0]=e.test(g[0])?g[0]:"center";g[1]=d.test(g[1])?g[1]:"center";c[this]=g});if(p.length===1){p[1]=p[0]}q[0]=parseInt(q[0],10)||0;if(q.length===1){q[1]=q[0]}q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right"){n.left+=o}else{if(c.at[0]==="center"){n.left+=o/2}}if(c.at[1]==="bottom"){n.top+=m}else{if(c.at[1]==="center"){n.top+=m/2}}n.left+=q[0];n.top+=q[1];return this.each(function(){var y=f(this),u=y.outerWidth(),t=y.outerHeight(),s=parseInt(f.curCSS(this,"marginLeft",true))||0,h=parseInt(f.curCSS(this,"marginTop",true))||0,A=u+s+(parseInt(f.curCSS(this,"marginRight",true))||0),z=t+h+(parseInt(f.curCSS(this,"marginBottom",true))||0),x=f.extend({},n),g;if(c.my[0]==="right"){x.left-=u}else{if(c.my[0]==="center"){x.left-=u/2}}if(c.my[1]==="bottom"){x.top-=t}else{if(c.my[1]==="center"){x.top-=t/2}}x.left=Math.round(x.left);x.top=Math.round(x.top);g={left:x.left-s,top:x.top-h};f.each(["left","top"],function(w,v){f.ui.position[p[w]]&&f.ui.position[p[w]][v](x,{targetWidth:o,targetHeight:m,elemWidth:u,elemHeight:t,collisionPosition:g,collisionWidth:A,collisionHeight:z,offset:q,my:c.my,at:c.at})});f.fn.bgiframe&&y.bgiframe();y.offset(f.extend(x,{using:c.using}))})};f.ui.position={fit:{left:function(c,g){var h=f(window);h=g.collisionPosition.left+g.collisionWidth-h.width()-h.scrollLeft();c.left=h>0?c.left-h:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var h=f(window);h=g.collisionPosition.top+g.collisionHeight-h.height()-h.scrollTop();c.top=h>0?c.top-h:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,l){if(l.at[0]!=="center"){var p=f(window);p=l.collisionPosition.left+l.collisionWidth-p.width()-p.scrollLeft();var n=l.my[0]==="left"?-l.elemWidth:l.my[0]==="right"?l.elemWidth:0,o=l.at[0]==="left"?l.targetWidth:-l.targetWidth,m=-2*l.offset[0];c.left+=l.collisionPosition.left<0?n+o+m:p>0?n+o+m:0}},top:function(c,l){if(l.at[1]!=="center"){var p=f(window);p=l.collisionPosition.top+l.collisionHeight-p.height()-p.scrollTop();var n=l.my[1]==="top"?-l.elemHeight:l.my[1]==="bottom"?l.elemHeight:0,o=l.at[1]==="top"?l.targetHeight:-l.targetHeight,m=-2*l.offset[1];c.top+=l.collisionPosition.top<0?n+o+m:p>0?n+o+m:0}}}};if(!f.offset.setOffset){f.offset.setOffset=function(c,l){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"}var p=f(c),n=p.offset(),o=parseInt(f.curCSS(c,"top",true),10)||0,m=parseInt(f.curCSS(c,"left",true),10)||0;n={top:l.top-n.top+o,left:l.left-n.left+m};"using" in l?l.using.call(c,n):p.css(n)};f.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){f.offset.setOffset(this,c)})}return a.call(this)}}})(jQuery);(function(b){var a=0;b.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,c=this.element[0].ownerDocument,e;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(d.options.disabled||d.element.attr("readonly"))){e=false;var g=b.ui.keyCode;switch(h.keyCode){case g.PAGE_UP:d._move("previousPage",h);break;case g.PAGE_DOWN:d._move("nextPage",h);break;case g.UP:d._move("previous",h);h.preventDefault();break;case g.DOWN:d._move("next",h);h.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(d.menu.active){e=true;h.preventDefault()}case g.TAB:if(!d.menu.active){return}d.menu.select(h);break;case g.ESCAPE:d.element.val(d.term);d.close(h);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,h)}},d.options.delay);break}}}).bind("keypress.autocomplete",function(f){if(e){e=false;f.preventDefault()}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(f){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(f);d._change(f)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",c)[0]).mousedown(function(h){var g=d.menu.element[0];b(h.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(f){f.target!==d.element[0]&&f.target!==g&&!b.ui.contains(g,f.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(h,g){g=g.item.data("item.autocomplete");false!==d._trigger("focus",h,{item:g})&&/^key/.test(h.originalEvent.type)&&d.element.val(g.value)},selected:function(n,m){var l=m.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==c.activeElement){d.element.focus();d.previous=g;setTimeout(function(){d.previous=g;d.selectedItem=l},1)}false!==d._trigger("select",n,{item:l})&&d.element.val(l.value);d.term=d.element.val();d.close(n);d.selectedItem=l},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(d,c){b.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo"){this.menu.element.appendTo(b(c||"body",this.element[0].ownerDocument)[0])}d==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var d=this,c,e;if(b.isArray(this.options.source)){c=this.options.source;this.source=function(h,g){g(b.ui.autocomplete.filter(c,h.term))}}else{if(typeof this.options.source==="string"){e=this.options.source;this.source=function(h,g){d.xhr&&d.xhr.abort();d.xhr=b.ajax({url:e,data:h,dataType:"json",autocompleteRequest:++a,success:function(f){this.autocompleteRequest===a&&g(f)},error:function(){this.autocompleteRequest===a&&g([])}})}}else{this.source=this.options.source}}},search:function(d,c){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search",c)!==false){return this._search(d)}},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c)}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return b.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}}return b.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(d){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,d);this.menu.deactivate();this.menu.refresh();c.show();this._resizeMenu();c.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(d,c){var e=this;b.each(c,function(h,g){e._renderItem(d,g)})},_renderItem:function(d,c){return b("<li></li>").data("item.autocomplete",c).append(b("<a></a>").text(c.label)).appendTo(d)},_move:function(d,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[d](c)}}else{this.search(null,c)}},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(d,c){var e=new RegExp(b.ui.autocomplete.escapeRegex(c),"i");return b.grep(d,function(f){return e.test(f.label||f.value||f)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){c.preventDefault();b.select(c)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(l,f){this.deactivate();if(this.hasScroll()){var d=f.offset().top-this.element.offset().top,h=this.element.attr("scrollTop"),m=this.element.height();if(d<0){this.element.attr("scrollTop",h+d)}else{d>=m&&this.element.attr("scrollTop",h+d-m+f.height())}}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",l,{item:f})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null}},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(f,d,c){if(this.active){f=this.active[f+"All"](".ui-menu-item").eq(0);f.length?this.activate(c,f):this.activate(c,this.element.children(d))}else{this.activate(c,this.element.children(d))}},nextPage:function(h){if(this.hasScroll()){if(!this.active||this.last()){this.activate(h,this.element.children(".ui-menu-item:first"))}else{var d=this.active.offset().top,c=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d-c+a(this).height();return b<10&&b>-10});f.length||(f=this.element.children(".ui-menu-item:last"));this.activate(h,f)}}else{this.activate(h,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(f){if(this.hasScroll()){if(!this.active||this.first()){this.activate(f,this.element.children(".ui-menu-item:last"))}else{var d=this.active.offset().top,c=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d+c-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(f,result)}}else{this.activate(f,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);(function(a){function b(m,c){var l=jQuery("#"+c).position();jQuery("#iColorPicker").css({top:l.top+(jQuery("#"+m).outerHeight())+"px",left:(l.left)+"px",position:"absolute"}).fadeIn("fast");jQuery("#iColorPickerBg").css({position:"absolute",top:0,left:0,width:"100%",height:"100%"}).fadeIn("fast");var g=jQuery("#"+m).val();jQuery("#color").val(g);var e=jQuery("#iColorPicker");for(i=0;i<e.length;i++){var h=document.getElementById("hexSection"+i);var f=h.childNodes;for(j=0;j<f.length;j++){var d=f[j].childNodes;for(k=0;k<d.length;k++){jQuery(f[j].childNodes[k]).unbind().mouseover(function(n){}).click(function(){var n="#"+jQuery(this).attr("hx");rm_h.user.setBGColor(n);jQuery("#"+m).val(n).css("background",n);jQuery("#iColorPickerBg").hide();jQuery("#iColorPicker").fadeOut();jQuery(this)})}}}}jQuery.fn.iColorPicker=function(){this.each(function(d){if(d==0){jQuery(document.createElement("div")).attr("id","iColorPicker").css("display","none").html('<table class="pickerTable" id="pickerTable0"><thead id="hexSection0"><tr><td style="background:#f00;" hx="f00"></td><td style="background:#ff0" hx="ff0"></td><td style="background:#0f0" hx="0f0"></td><td style="background:#0ff" hx="0ff"></td><td style="background:#00f" hx="00f"></td><td style="background:#f0f" hx="f0f"></td><td style="background:#fff" hx="fff"></td><td style="background:#ebebeb" hx="ebebeb"></td><td style="background:#e1e1e1" hx="e1e1e1"></td><td style="background:#d7d7d7" hx="d7d7d7"></td><td style="background:#cccccc" hx="cccccc"></td><td style="background:#c2c2c2" hx="c2c2c2"></td><td style="background:#b7b7b7" hx="b7b7b7"></td><td style="background:#acacac" hx="acacac"></td><td style="background:#a0a0a0" hx="a0a0a0"></td><td style="background:#959595" hx="959595"></td></tr><tr><td style="background:#ee1d24" hx="ee1d24"></td><td style="background:#fff100" hx="fff100"></td><td style="background:#00a650" hx="00a650"></td><td style="background:#00aeef" hx="00aeef"></td><td style="background:#2f3192" hx="2f3192"></td><td style="background:#ed008c" hx="ed008c"></td><td style="background:#898989" hx="898989"></td><td style="background:#7d7d7d" hx="7d7d7d"></td><td style="background:#707070" hx="707070"></td><td style="background:#626262" hx="626262"></td><td style="background:#555" hx="555"></td><td style="background:#464646" hx="464646"></td><td style="background:#363636" hx="363636"></td><td style="background:#262626" hx="262626"></td><td style="background:#111" hx="111"></td><td style="background:#000" hx="000"></td></tr><tr><td style="background:#f7977a" hx="f7977a"></td><td style="background:#fbad82" hx="fbad82"></td><td style="background:#fdc68c" hx="fdc68c"></td><td style="background:#fff799" hx="fff799"></td><td style="background:#c6df9c" hx="c6df9c"></td><td style="background:#a4d49d" hx="a4d49d"></td><td style="background:#81ca9d" hx="81ca9d"></td><td style="background:#7bcdc9" hx="7bcdc9"></td><td style="background:#6ccff7" hx="6ccff7"></td><td style="background:#7ca6d8" hx="7ca6d8"></td><td style="background:#8293ca" hx="8293ca"></td><td style="background:#8881be" hx="8881be"></td><td style="background:#a286bd" hx="a286bd"></td><td style="background:#bc8cbf" hx="bc8cbf"></td><td style="background:#f49bc1" hx="f49bc1"></td><td style="background:#f5999d" hx="f5999d"></td></tr><tr><td style="background:#f16c4d" hx="f16c4d"></td><td style="background:#f68e54" hx="f68e54"></td><td style="background:#fbaf5a" hx="fbaf5a"></td><td style="background:#fff467" hx="fff467"></td><td style="background:#acd372" hx="acd372"></td><td style="background:#7dc473" hx="7dc473"></td><td style="background:#39b778" hx="39b778"></td><td style="background:#16bcb4" hx="16bcb4"></td><td style="background:#00bff3" hx="00bff3"></td><td style="background:#438ccb" hx="438ccb"></td><td style="background:#5573b7" hx="5573b7"></td><td style="background:#5e5ca7" hx="5e5ca7"></td><td style="background:#855fa8" hx="855fa8"></td><td style="background:#a763a9" hx="a763a9"></td><td style="background:#ef6ea8" hx="ef6ea8"></td><td style="background:#f16d7e" hx="f16d7e"></td></tr><tr><td style="background:#ee1d24" hx="ee1d24"></td><td style="background:#f16522" hx="f16522"></td><td style="background:#f7941d" hx="f7941d"></td><td style="background:#fff100" hx="fff100"></td><td style="background:#8fc63d" hx="8fc63d"></td><td style="background:#37b44a" hx="37b44a"></td><td style="background:#00a650" hx="00a650"></td><td style="background:#00a99e" hx="00a99e"></td><td style="background:#00aeef" hx="00aeef"></td><td style="background:#0072bc" hx="0072bc"></td><td style="background:#0054a5" hx="0054a5"></td><td style="background:#2f3192" hx="2f3192"></td><td style="background:#652c91" hx="652c91"></td><td style="background:#91278f" hx="91278f"></td><td style="background:#ed008c" hx="ed008c"></td><td style="background:#ee105a" hx="ee105a"></td></tr><tr><td style="background:#9d0a0f" hx="9d0a0f"></td><td style="background:#a1410d" hx="a1410d"></td><td style="background:#a36209" hx="a36209"></td><td style="background:#aba000" hx="aba000"></td><td style="background:#588528" hx="588528"></td><td style="background:#197b30" hx="197b30"></td><td style="background:#007236" hx="007236"></td><td style="background:#00736a" hx="00736a"></td><td style="background:#0076a4" hx="0076a4"></td><td style="background:#004a80" hx="004a80"></td><td style="background:#003370" hx="003370"></td><td style="background:#1d1363" hx="1d1363"></td><td style="background:#450e61" hx="450e61"></td><td style="background:#62055f" hx="62055f"></td><td style="background:#9e005c" hx="9e005c"></td><td style="background:#9d0039" hx="9d0039"></td></tr><tr><td style="background:#790000" hx="790000"></td><td style="background:#7b3000" hx="7b3000"></td><td style="background:#7c4900" hx="7c4900"></td><td style="background:#827a00" hx="827a00"></td><td style="background:#3e6617" hx="3e6617"></td><td style="background:#045f20" hx="045f20"></td><td style="background:#005824" hx="005824"></td><td style="background:#005951" hx="005951"></td><td style="background:#005b7e" hx="005b7e"></td><td style="background:#003562" hx="003562"></td><td style="background:#002056" hx="002056"></td><td style="background:#0c004b" hx="0c004b"></td><td style="background:#30004a" hx="30004a"></td><td style="background:#4b0048" hx="4b0048"></td><td style="background:#7a0045" hx="7a0045"></td><td style="background:#7a0026" hx="7a0026"></td></tr></thead><tbody></tbody></table><style>#iColorPicker input{margin:2px}</style>').appendTo("body");jQuery(document.createElement("div")).attr("id","iColorPickerBg").click(function(){jQuery("#iColorPickerBg").hide();jQuery("#iColorPicker").fadeOut()}).appendTo("body");jQuery("table.pickerTable td").css({width:"12px",height:"14px",border:"1px solid #000",cursor:"pointer"});jQuery("#iColorPicker table.pickerTable").css({"border-collapse":"collapse"});jQuery("#iColorPicker").css({border:"1px solid #ccc",background:"#333",padding:"5px",color:"#fff","z-index":9999})}var e=this.id;var c=jQuery('<button class="colorButton" id="icp_'+e+'")"><!----></button>');c.click(function(){b(e,"icp_"+e)});jQuery(this).css("backgroundColor",jQuery(this).val()).after(c)})}})(jQuery);
