/*!
 * jQuery UI 1.8.16
 *
 * 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(h,g){function f(i,c){var j=i.nodeName.toLowerCase();if("area"===j){c=i.parentNode;j=c.name;if(!i.href||!j||c.nodeName.toLowerCase()!=="map"){return false}i=h("img[usemap=#"+j+"]")[0];return !!i&&e(i)}return(/input|select|textarea|button|object/.test(j)?!i.disabled:"a"==j?i.href||c:c)&&e(i)}function e(c){return !h(c).parents().andSelf().filter(function(){return h.curCSS(this,"visibility")==="hidden"||h.expr.filters.hidden(this)}).length}h.ui=h.ui||{};if(!h.ui.version){h.extend(h.ui,{version:"1.8.16",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}});h.fn.extend({propAttr:h.fn.prop||h.fn.attr,_focus:h.fn.focus,focus:function(i,c){return typeof i==="number"?this.each(function(){var j=this;setTimeout(function(){h(j).focus();c&&c.call(j)},i)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=h.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(h.curCSS(this,"position",1))&&/(auto|scroll)/.test(h.curCSS(this,"overflow",1)+h.curCSS(this,"overflow-y",1)+h.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(h.curCSS(this,"overflow",1)+h.curCSS(this,"overflow-y",1)+h.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?h(document):c},zIndex:function(i){if(i!==g){return this.css("zIndex",i)}if(this.length){i=h(this[0]);for(var c;i.length&&i[0]!==document;){c=i.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(i.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}i=i.parent()}}return 0},disableSelection:function(){return this.bind((h.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});h.each(["Width","Height"],function(j,c){function n(p,o,i,q){h.each(m,function(){o-=parseFloat(h.curCSS(p,"padding"+this,true))||0;if(i){o-=parseFloat(h.curCSS(p,"border"+this+"Width",true))||0}if(q){o-=parseFloat(h.curCSS(p,"margin"+this,true))||0}});return o}var m=c==="Width"?["Left","Right"]:["Top","Bottom"],l=c.toLowerCase(),k={innerWidth:h.fn.innerWidth,innerHeight:h.fn.innerHeight,outerWidth:h.fn.outerWidth,outerHeight:h.fn.outerHeight};h.fn["inner"+c]=function(i){if(i===g){return k["inner"+c].call(this)}return this.each(function(){h(this).css(l,n(this,i)+"px")})};h.fn["outer"+c]=function(o,i){if(typeof o!=="number"){return k["outer"+c].call(this,o)}return this.each(function(){h(this).css(l,n(this,o,true,i)+"px")})}});h.extend(h.expr[":"],{data:function(i,c,j){return !!h.data(i,j[3])},focusable:function(c){return f(c,!isNaN(h.attr(c,"tabindex")))},tabbable:function(i){var c=h.attr(i,"tabindex"),j=isNaN(c);return(j||c>=0)&&f(i,!j)}});h(function(){var i=document.body,c=i.appendChild(c=document.createElement("div"));h.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});h.support.minHeight=c.offsetHeight===100;h.support.selectstart="onselectstart" in c;i.removeChild(c).style.display="none"});h.extend(h.ui,{plugin:{add:function(i,c,k){i=h.ui[i].prototype;for(var j in k){i.plugins[j]=i.plugins[j]||[];i.plugins[j].push([c,k[j]])}},call:function(i,c,k){if((c=i.plugins[c])&&i.element[0].parentNode){for(var j=0;j<c.length;j++){i.options[c[j][0]]&&c[j][1].apply(i.element,k)}}}},contains:function(i,c){return document.compareDocumentPosition?i.compareDocumentPosition(c)&16:i!==c&&i.contains(c)
},hasScroll:function(i,c){if(h(i).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var j=false;if(i[c]>0){return true}i[c]=1;j=i[c]>0;i[c]=0;return j},isOverAxis:function(i,c,j){return i>c&&i<c+j},isOver:function(j,c,n,m,l,k){return h.ui.isOverAxis(j,n,l)&&h.ui.isOverAxis(c,m,k)}})}})(jQuery);
/*!
 * jQuery UI Widget 1.8.16
 *
 * 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(c,g){if(c.cleanData){var f=c.cleanData;c.cleanData=function(h){for(var k=0,j;(j=h[k])!=null;k++){try{c(j).triggerHandler("remove")}catch(i){}}f(h)}}else{var e=c.fn.remove;c.fn.remove=function(h,i){return this.each(function(){if(!i){if(!h||c.filter(h,[this]).length){c("*",this).add([this]).each(function(){try{c(this).triggerHandler("remove")}catch(j){}})}}return e.call(c(this),h,i)})}}c.widget=function(h,l,k){var j=h.split(".")[0],i;h=h.split(".")[1];i=j+"-"+h;if(!k){k=l;l=c.Widget}c.expr[":"][i]=function(m){return !!c.data(m,h)};c[j]=c[j]||{};c[j][h]=function(m,n){arguments.length&&this._createWidget(m,n)};l=new l;l.options=c.extend(true,{},l.options);c[j][h].prototype=c.extend(true,l,{namespace:j,widgetName:h,widgetEventPrefix:c[j][h].prototype.widgetEventPrefix||h,widgetBaseClass:i},k);c.widget.bridge(h,c[j][h])};c.widget.bridge=function(h,i){c.fn[h]=function(m){var l=typeof m==="string",k=Array.prototype.slice.call(arguments,1),j=this;m=!l&&k.length?c.extend.apply(null,[true,m].concat(k)):m;if(l&&m.charAt(0)==="_"){return j}l?this.each(function(){var o=c.data(this,h),n=o&&c.isFunction(o[m])?o[m].apply(o,k):o;if(n!==o&&n!==g){j=n;return false}}):this.each(function(){var n=c.data(this,h);n?n.option(m||{})._init():c.data(this,h,new i(m,this))});return j}};c.Widget=function(h,i){arguments.length&&this._createWidget(h,i)};c.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(h,j){c.data(j,this.widgetName,this);this.element=c(j);this.options=c.extend(true,{},this.options,this._getCreateOptions(),h);var i=this;this.element.bind("remove."+this.widgetName,function(){i.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return c.metadata&&c.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(h,j){var i=h;if(arguments.length===0){return c.extend({},this.options)}if(typeof h==="string"){if(j===g){return this.options[h]}i={};i[h]=j}this._setOptions(i);return this},_setOptions:function(h){var i=this;c.each(h,function(k,j){i._setOption(k,j)});return this},_setOption:function(h,i){this.options[h]=i;if(h==="disabled"){this.widget()[i?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",i)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(h,l,k){var j=this.options[h];l=c.Event(l);l.type=(h===this.widgetEventPrefix?h:this.widgetEventPrefix+h).toLowerCase();k=k||{};if(l.originalEvent){h=c.event.props.length;for(var i;h;){i=c.event.props[--h];l[i]=l.originalEvent[i]}}this.element.trigger(l,k);return !(c.isFunction(j)&&j.call(this.element[0],l,k)===false||l.isDefaultPrevented())}}})(jQuery);(function(e){e.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()
}},_create:function(){var f=this,c=f.options;f.running=0;f.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");f.headers=f.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||e(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||e(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||e(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||e(this).removeClass("ui-state-focus")});f.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var i=f.element.find("a").filter(c.navigationFilter).eq(0);if(i.length){var g=i.closest(".ui-accordion-header");f.active=g.length?g:i.closest(".ui-accordion-content").prev()}}f.active=f._findActive(f.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");f.active.next().addClass("ui-accordion-content-active");f._createIcons();f.resize();f.element.attr("role","tablist");f.headers.attr("role","tab").bind("keydown.accordion",function(h){return f._keydown(h)}).next().attr("role","tabpanel");f.headers.not(f.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();f.active.length?f.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):f.headers.eq(0).attr("tabIndex",0);e.browser.safari||f.headers.find("a").attr("tabIndex",-1);c.event&&f.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(h){f._clickHandler.call(f,h,this);h.preventDefault()})},_createIcons:function(){var c=this.options;if(c.icons){e("<span></span>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var f=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var c=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(f.autoHeight||f.fillHeight){c.css("height","")}return e.Widget.prototype.destroy.call(this)},_setOption:function(f,c){e.Widget.prototype._setOption.apply(this,arguments);f=="active"&&this.activate(c);if(f=="icons"){this._destroyIcons();c&&this._createIcons()}if(f=="disabled"){this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(g){if(!(this.options.disabled||g.altKey||g.ctrlKey)){var c=e.ui.keyCode,k=this.headers.length,i=this.headers.index(g.target),j=false;switch(g.keyCode){case c.RIGHT:case c.DOWN:j=this.headers[(i+1)%k];break;case c.LEFT:case c.UP:j=this.headers[(i-1+k)%k];break;case c.SPACE:case c.ENTER:this._clickHandler({target:g.target},g.target);g.preventDefault()}if(j){e(g.target).attr("tabIndex",-1);e(j).attr("tabIndex",0);j.focus();return false}return true}},resize:function(){var f=this.options,c;if(f.fillSpace){if(e.browser.msie){var g=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height();e.browser.msie&&this.element.parent().css("overflow",g);this.headers.each(function(){c-=e(this).outerHeight(true)});this.headers.next().each(function(){e(this).height(Math.max(0,c-e(this).innerHeight()+e(this).height()))
}).css("overflow","auto")}else{if(f.autoHeight){c=0;this.headers.next().each(function(){c=Math.max(c,e(this).height("").height())}).height(c)}}return this},activate:function(c){this.options.active=c;c=this._findActive(c)[0];this._clickHandler({target:c},c);return this},_findActive:function(c){return c?typeof c==="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?e([]):this.headers.filter(":eq(0)")},_clickHandler:function(i,c){var p=this.options;if(!p.disabled){if(i.target){i=e(i.currentTarget||c);c=i[0]===this.active[0];p.active=p.collapsible&&c?false:this.headers.index(i);if(!(this.running||!p.collapsible&&c)){var l=this.active;k=i.next();m=this.active.next();o={options:p,newHeader:c&&p.collapsible?e([]):i,oldHeader:this.active,newContent:c&&p.collapsible?e([]):k,oldContent:m};var n=this.headers.index(this.active[0])>this.headers.index(i[0]);this.active=c?e([]):i;this._toggle(k,m,o,c,n);l.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(p.icons.headerSelected).addClass(p.icons.header);if(!c){i.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(p.icons.header).addClass(p.icons.headerSelected);i.next().addClass("ui-accordion-content-active")}}}else{if(p.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(p.icons.headerSelected).addClass(p.icons.header);this.active.next().addClass("ui-accordion-content-active");var m=this.active.next(),o={options:p,newHeader:e([]),oldHeader:p.active,newContent:e([]),oldContent:m},k=this.active=e([]);this._toggle(k,m,o)}}}},_toggle:function(t,s,r,n,p){var o=this,q=o.options;o.toShow=t;o.toHide=s;o.data=r;var l=function(){if(o){return o._completed.apply(o,arguments)}};o._trigger("changestart",null,o.data);o.running=s.size()===0?t.size():s.size();if(q.animated){r={};r=q.collapsible&&n?{toShow:e([]),toHide:s,complete:l,down:p,autoHeight:q.autoHeight||q.fillSpace}:{toShow:t,toHide:s,complete:l,down:p,autoHeight:q.autoHeight||q.fillSpace};if(!q.proxied){q.proxied=q.animated}if(!q.proxiedDuration){q.proxiedDuration=q.duration}q.animated=e.isFunction(q.proxied)?q.proxied(r):q.proxied;q.duration=e.isFunction(q.proxiedDuration)?q.proxiedDuration(r):q.proxiedDuration;n=e.ui.accordion.animations;var m=q.duration,c=q.animated;if(c&&!n[c]&&!e.easing[c]){c="slide"}n[c]||(n[c]=function(f){this.slide(f,{easing:c,duration:m||700})});n[c](r)}else{if(q.collapsible&&n){t.toggle()}else{s.hide();t.show()}l(true)}s.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();t.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(c){this.running=c?0:--this.running;if(!this.running){this.options.clearStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.toHide.removeClass("ui-accordion-content-active");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className}this._trigger("change",null,this.data)}}});e.extend(e.ui.accordion,{version:"1.8.16",animations:{slide:function(i,c){i=e.extend({easing:"swing",duration:300},i,c);if(i.toHide.size()){if(i.toShow.size()){var n=i.toShow.css("overflow"),j=0,l={},k={},m;c=i.toShow;m=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));e.each(["height","paddingTop","paddingBottom"],function(f,g){k[g]="hide";f=(""+e.css(i.toShow[0],g)).match(/^([\d+-.]+)(.*)$/);l[g]={value:f[1],unit:f[2]||"px"}});i.toShow.css({height:0,overflow:"hidden"}).show();i.toHide.filter(":hidden").each(i.complete).end().filter(":visible").animate(k,{step:function(f,g){if(g.prop=="height"){j=g.end-g.start===0?0:(g.now-g.start)/(g.end-g.start)}i.toShow[0].style[g.prop]=j*l[g.prop].value+l[g.prop].unit
},duration:i.duration,easing:i.easing,complete:function(){i.autoHeight||i.toShow.css("height","");i.toShow.css({width:m,overflow:n});i.complete()}})}else{i.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},i)}}else{i.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},i)}},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1000:200})}}})})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeInOutExpo",easeInOutExpo:function(f,g,e,i,h){if(g==0){return e}if(g==h){return e+i}if((g/=h/2)<1){return i/2*Math.pow(2,10*(g-1))+e}return i/2*(-Math.pow(2,-10*--g)+2)+e}});function RecentFilteredPost(n){var m=this;var r={BlogURL:"http://www.intechgrity.com",tag:[],maxPost:10,containerId:"",thumbH:32,thumbW:32,ulClass:"itg",aClass:"",onLoad:false,defImg:"http://i29.tinypic.com/2namq9h.png",imgEna:true,imgClass:"recent-image",aPermaTitle:"Permalink to"};r=$.extend({},r,n);if(!r.containerId){r.containerId="#recent-post";document.write('<div id="recent-post"></div>')}var u=$(r.containerId);var o=u.html();var q=0;var p=function(l,e,H,f){var G=H;var g=f;var D=l.feed.entry;if(D){for(var c=0;c<D.length;c++){var i=D[c];var C=i.link;var k="";for(var j=0;j<C.length;j++){if(C[j].rel=="alternate"){k=C[j].href;break}}var F=i.title.$t;var h=("content" in i)?i.content.$t:i.summary.$t;a=h.indexOf("<img");b=h.indexOf('src="',a);H=h.indexOf('"',b+5);d=h.substr(b+5,H-b-5);var E=(a!=-1&&b!=-1&&H!=-1&&d!="")?d:r.defImg;s(F,k,E);if(G=="recent"&&c==D.length-1){$("#iTgSwashata",u).remove()}else{if(G=="filtered"&&g==r.tag.length-1&&c==D.length-1){$("#iTgSwashata",u).remove()}}}}};var s=function(e,h,f){var j=$("li",mainUl);for(var i=0;i<j.length;i++){var c=$("a",j.eq(i));if(c.attr("href")==h){return}}var g="<li><a"+(r.aClass?' class="'+r.aClass+'"':"")+' href="'+h+'" title="'+r.aPermaTitle+" "+e+'" target="_blank">'+(r.imgEna?'<img class="'+r.imgClass+'" height="'+r.thumbH+'" width="'+r.thumbW+'" src="'+f+'"/>':"")+e+"</a></li>";mainUl.append(g)};var t=function(){u.html("");$('<div id="iTgSwashata">'+o+"</div>").appendTo(u);mainUl=$('<ul class="'+r.ulClass+'"/>').appendTo(u);var e=(r.imgEna)?"/feeds/posts/default":"/feeds/posts/summary";if(r.tag.length==0){$.ajax({url:r.BlogURL+e,data:{"max-results":r.maxPost,alt:"json-in-script"},success:function(f,g){p(f,g,"recent",0)},dataType:"jsonp",cache:true})}else{for(var c=0;c<r.tag.length;c++){$.ajax({url:r.BlogURL+e,data:{category:r.tag[c],"max-results":r.maxPost,alt:"json-in-script"},dataType:"jsonp",success:function(f,g){p(f,g,"filtered",q);q++},cache:true})}}};if(r.onLoad){$(window).load(t)}else{$(document).ready(t)}}(function(c){c.event.special.mousewheel={setup:function(){var e=c.event.special.mousewheel.handler;if(c.browser.mozilla){c(this).bind("mousemove.mousewheel",function(f){c.data(this,"mwcursorposdata",{pageX:f.pageX,pageY:f.pageY,clientX:f.clientX,clientY:f.clientY})})}if(this.addEventListener){this.addEventListener((c.browser.mozilla?"DOMMouseScroll":"mousewheel"),e,false)}else{this.onmousewheel=e}},teardown:function(){var e=c.event.special.mousewheel.handler;c(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((c.browser.mozilla?"DOMMouseScroll":"mousewheel"),e,false)}else{this.onmousewheel=function(){}}c.removeData(this,"mwcursorposdata")},handler:function(g){var e=Array.prototype.slice.call(arguments,1);g=c.event.fix(g||window.event);c.extend(g,c.data(this,"mwcursorposdata")||{});var h=0,f=true;if(g.wheelDelta){h=g.wheelDelta/120}if(g.detail){h=-g.detail/3}g.data=g.data||{};g.type="mousewheel";e.unshift(h);e.unshift(g);return c.event.handle.apply(this,e)}};c.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})})(jQuery);(function(e,f,g){e.fn.jScrollPane=function(c){function h(bt,bd){var bk,bb=this,a3,bG,aM,bE,a8,a2,aJ,aQ,bZ,bU,bs,aY,bj,aZ,aX,bQ,a7,bA,a4,aO,by,bz,bL,bD,bn,aV,bu,bm,aK,bq,bR,a1,bg,bH=true,bc=true,bS=false,aW=false,bB=bt.clone(false,false).empty(),bO=e.fn.mwheelIntent?"mwheelIntent.jsp":"mousewheel.jsp";
bR=bt.css("paddingTop")+" "+bt.css("paddingRight")+" "+bt.css("paddingBottom")+" "+bt.css("paddingLeft");a1=(parseInt(bt.css("paddingLeft"),10)||0)+(parseInt(bt.css("paddingRight"),10)||0);function bw(j){var o,m,n,q,i,k,l=false,p=false;bk=j;if(a3===g){i=bt.scrollTop();k=bt.scrollLeft();bt.css({overflow:"hidden",padding:0});bG=bt.innerWidth()+a1;aM=bt.innerHeight();bt.width(bG);a3=e('<div class="jspPane" />').css("padding",bR).append(bt.children());bE=e('<div class="jspContainer" />').css({width:bG+"px",height:aM+"px"}).append(a3).appendTo(bt)}else{bt.css("width","");l=bk.stickToBottom&&bh();p=bk.stickToRight&&bx();q=bt.innerWidth()+a1!=bG||bt.outerHeight()!=aM;if(q){bG=bt.innerWidth()+a1;aM=bt.innerHeight();bE.css({width:bG+"px",height:aM+"px"})}if(!q&&bg==a8&&a3.outerHeight()==a2){bt.width(bG);return}bg=a8;a3.css("width","");bt.width(bG);bE.find(">.jspVerticalBar,>.jspHorizontalBar").remove().end()}a3.css("overflow","auto");if(j.contentWidth){a8=j.contentWidth}else{a8=a3[0].scrollWidth}a2=a3[0].scrollHeight;a3.css("overflow","");aJ=a8/bG;aQ=a2/aM;bZ=aQ>1;bU=aJ>1;if(!(bU||bZ)){bt.removeClass("jspScrollable");a3.css({top:0,width:bE.width()-a1});aT();br();ba();aL();bI()}else{bt.addClass("jspScrollable");o=bk.maintainPosition&&(bj||bQ);if(o){m=bW();n=bY()}bT();s();bp();if(o){be(p?(a8-bG):m,false);bf(l?(a2-aM):n,false)}bi();bK();bC();if(bk.enableKeyboardNavigation){a9()}if(bk.clickOnTrack){aR()}bv();if(bk.hijackInternalLinks){aU()}}if(bk.autoReinitialise&&!bq){bq=setInterval(function(){bw(bk)},bk.autoReinitialiseDelay)}else{if(!bk.autoReinitialise&&bq){clearInterval(bq)}}i&&bt.scrollTop(0)&&bf(i,false);k&&bt.scrollLeft(0)&&be(k,false);bt.trigger("jsp-initialised",[bU||bZ])}function bT(){if(bZ){bE.append(e('<div class="jspVerticalBar" />').append(e('<div class="jspCap jspCapTop" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragTop" />'),e('<div class="jspDragBottom" />'))),e('<div class="jspCap jspCapBottom" />')));a7=bE.find(">.jspVerticalBar");bA=a7.find(">.jspTrack");bs=bA.find(">.jspDrag");if(bk.showArrows){bz=e('<a class="jspArrow jspArrowUp" />').bind("mousedown.jsp",bV(0,-1)).bind("click.jsp",bX);bL=e('<a class="jspArrow jspArrowDown" />').bind("mousedown.jsp",bV(0,1)).bind("click.jsp",bX);if(bk.arrowScrollOnHover){bz.bind("mouseover.jsp",bV(0,-1,bz));bL.bind("mouseover.jsp",bV(0,1,bL))}bF(bA,bk.verticalArrowPositions,bz,bL)}aO=aM;bE.find(">.jspVerticalBar>.jspCap:visible,>.jspVerticalBar>.jspArrow").each(function(){aO-=e(this).outerHeight()});bs.hover(function(){bs.addClass("jspHover")},function(){bs.removeClass("jspHover")}).bind("mousedown.jsp",function(j){e("html").bind("dragstart.jsp selectstart.jsp",bX);bs.addClass("jspActive");var i=j.pageY-bs.position().top;e("html").bind("mousemove.jsp",function(k){a6(k.pageY-i,false)}).bind("mouseup.jsp mouseleave.jsp",bo);return false});aS()}}function aS(){bA.height(aO+"px");bj=0;a4=bk.verticalGutter+bA.outerWidth();a3.width(bG-a4-a1);try{if(a7.position().left===0){a3.css("margin-left",a4+"px")}}catch(i){}}function s(){if(bU){bE.append(e('<div class="jspHorizontalBar" />').append(e('<div class="jspCap jspCapLeft" />'),e('<div class="jspTrack" />').append(e('<div class="jspDrag" />').append(e('<div class="jspDragLeft" />'),e('<div class="jspDragRight" />'))),e('<div class="jspCap jspCapRight" />')));bD=bE.find(">.jspHorizontalBar");bn=bD.find(">.jspTrack");aZ=bn.find(">.jspDrag");if(bk.showArrows){bm=e('<a class="jspArrow jspArrowLeft" />').bind("mousedown.jsp",bV(-1,0)).bind("click.jsp",bX);aK=e('<a class="jspArrow jspArrowRight" />').bind("mousedown.jsp",bV(1,0)).bind("click.jsp",bX);if(bk.arrowScrollOnHover){bm.bind("mouseover.jsp",bV(-1,0,bm));aK.bind("mouseover.jsp",bV(1,0,aK))}bF(bn,bk.horizontalArrowPositions,bm,aK)}aZ.hover(function(){aZ.addClass("jspHover")},function(){aZ.removeClass("jspHover")}).bind("mousedown.jsp",function(j){e("html").bind("dragstart.jsp selectstart.jsp",bX);aZ.addClass("jspActive");var i=j.pageX-aZ.position().left;
e("html").bind("mousemove.jsp",function(k){a5(k.pageX-i,false)}).bind("mouseup.jsp mouseleave.jsp",bo);return false});aV=bE.innerWidth();bJ()}}function bJ(){bE.find(">.jspHorizontalBar>.jspCap:visible,>.jspHorizontalBar>.jspArrow").each(function(){aV-=e(this).outerWidth()});bn.width(aV+"px");bQ=0}function bp(){if(bU&&bZ){var j=bn.outerHeight(),i=bA.outerWidth();aO-=j;e(bD).find(">.jspCap:visible,>.jspArrow").each(function(){aV+=e(this).outerWidth()});aV-=i;aM-=i;bG-=j;bn.parent().append(e('<div class="jspCorner" />').css("width",j+"px"));aS();bJ()}if(bU){a3.width((bE.outerWidth()-a1)+"px")}a2=a3.outerHeight();aQ=a2/aM;if(bU){bu=Math.ceil(1/aJ*aV);if(bu>bk.horizontalDragMaxWidth){bu=bk.horizontalDragMaxWidth}else{if(bu<bk.horizontalDragMinWidth){bu=bk.horizontalDragMinWidth}}aZ.width(bu+"px");aX=aV-bu;bM(bQ)}if(bZ){by=Math.ceil(1/aQ*aO);if(by>bk.verticalDragMaxHeight){by=bk.verticalDragMaxHeight}else{if(by<bk.verticalDragMinHeight){by=bk.verticalDragMinHeight}}bs.height(by+"px");aY=aO-by;bN(bj)}}function bF(n,l,o,k){var i="before",m="after",j;if(l=="os"){l=/Mac/.test(navigator.platform)?"after":"split"}if(l==i){m=l}else{if(l==m){i=l;j=o;o=k;k=j}}n[i](o)[m](k)}function bV(k,i,j){return function(){bl(k,i,this,j);this.blur();return false}}function bl(m,n,i,j){i=e(i).addClass("jspActive");var l,o,p=true,k=function(){if(m!==0){bb.scrollByX(m*bk.arrowButtonSpeed)}if(n!==0){bb.scrollByY(n*bk.arrowButtonSpeed)}o=setTimeout(k,p?bk.initialDelay:bk.arrowRepeatFreq);p=false};k();l=j?"mouseout.jsp":"mouseup.jsp";j=j||e("html");j.bind(l,function(){i.removeClass("jspActive");o&&clearTimeout(o);o=null;j.unbind(l)})}function aR(){aL();if(bZ){bA.bind("mousedown.jsp",function(j){if(j.originalTarget===g||j.originalTarget==j.currentTarget){var m=e(this),i=m.offset(),l=j.pageY-i.top-bj,o,p=true,k=function(){var q=m.offset(),u=j.pageY-q.top-by/2,t=aM*bk.scrollPagePercent,r=aY*t/(a2-aM);if(l<0){if(bj-r>u){bb.scrollByY(-t)}else{a6(u)}}else{if(l>0){if(bj+r<u){bb.scrollByY(t)}else{a6(u)}}else{n();return}}o=setTimeout(k,p?bk.initialDelay:bk.trackClickRepeatFreq);p=false},n=function(){o&&clearTimeout(o);o=null;e(document).unbind("mouseup.jsp",n)};k();e(document).bind("mouseup.jsp",n);return false}})}if(bU){bn.bind("mousedown.jsp",function(j){if(j.originalTarget===g||j.originalTarget==j.currentTarget){var m=e(this),i=m.offset(),l=j.pageX-i.left-bQ,o,p=true,k=function(){var q=m.offset(),u=j.pageX-q.left-bu/2,t=bG*bk.scrollPagePercent,r=aX*t/(a8-bG);if(l<0){if(bQ-r>u){bb.scrollByX(-t)}else{a5(u)}}else{if(l>0){if(bQ+r<u){bb.scrollByX(t)}else{a5(u)}}else{n();return}}o=setTimeout(k,p?bk.initialDelay:bk.trackClickRepeatFreq);p=false},n=function(){o&&clearTimeout(o);o=null;e(document).unbind("mouseup.jsp",n)};k();e(document).bind("mouseup.jsp",n);return false}})}}function aL(){if(bn){bn.unbind("mousedown.jsp")}if(bA){bA.unbind("mousedown.jsp")}}function bo(){e("html").unbind("dragstart.jsp selectstart.jsp mousemove.jsp mouseup.jsp mouseleave.jsp");if(bs){bs.removeClass("jspActive")}if(aZ){aZ.removeClass("jspActive")}}function a6(i,j){if(!bZ){return}if(i<0){i=0}else{if(i>aY){i=aY}}if(j===g){j=bk.animateScroll}if(j){bb.animate(bs,"top",i,bN)}else{bs.css("top",i);bN(i)}}function bN(m){if(m===g){m=bs.position().top}bE.scrollTop(0);bj=m;var j=bj===0,l=bj==aY,k=m/aY,i=-k*(a2-aM);if(bH!=j||bS!=l){bH=j;bS=l;bt.trigger("jsp-arrow-change",[bH,bS,bc,aW])}aN(j,l);a3.css("top",i);bt.trigger("jsp-scroll-y",[-i,j,l]).trigger("scroll")}function a5(j,i){if(!bU){return}if(j<0){j=0}else{if(j>aX){j=aX}}if(i===g){i=bk.animateScroll}if(i){bb.animate(aZ,"left",j,bM)}else{aZ.css("left",j);bM(j)}}function bM(m){if(m===g){m=aZ.position().left}bE.scrollTop(0);bQ=m;var j=bQ===0,k=bQ==aX,l=m/aX,i=-l*(a8-bG);if(bc!=j||aW!=k){bc=j;aW=k;bt.trigger("jsp-arrow-change",[bH,bS,bc,aW])}aP(j,k);a3.css("left",i);bt.trigger("jsp-scroll-x",[-i,j,k]).trigger("scroll")}function aN(j,i){if(bk.showArrows){bz[j?"addClass":"removeClass"]("jspDisabled");bL[i?"addClass":"removeClass"]("jspDisabled")}}function aP(j,i){if(bk.showArrows){bm[j?"addClass":"removeClass"]("jspDisabled");
aK[i?"addClass":"removeClass"]("jspDisabled")}}function bf(i,k){var j=i/(a2-aM);a6(j*aY,k)}function be(k,i){var j=k/(a8-bG);a5(j*aX,i)}function bP(j,o,w){var r,v,u,x=0,k=0,i,p,q,m,n,l;try{r=e(j)}catch(t){return}v=r.outerHeight();u=r.outerWidth();bE.scrollTop(0);bE.scrollLeft(0);while(!r.is(".jspPane")){x+=r.position().top;k+=r.position().left;r=r.offsetParent();if(/^body|html$/i.test(r[0].nodeName)){return}}i=bY();q=i+aM;if(x<i||o){n=x-bk.verticalGutter}else{if(x+v>q){n=x-aM+v+bk.verticalGutter}}if(n){bf(n,w)}p=bW();m=p+bG;if(k<p||o){l=k-bk.horizontalGutter}else{if(k+u>m){l=k-bG+u+bk.horizontalGutter}}if(l){be(l,w)}}function bW(){return -a3.position().left}function bY(){return -a3.position().top}function bh(){var i=a2-aM;return(i>20)&&(i-bY()<10)}function bx(){var i=a8-bG;return(i>20)&&(i-bW()<10)}function bK(){bE.unbind(bO).bind(bO,function(k,j,l,n){var m=bQ,i=bj;bb.scrollBy(l*bk.mouseWheelSpeed,-n*bk.mouseWheelSpeed,false);return m==bQ&&i==bj})}function aT(){bE.unbind(bO)}function bX(){return false}function bi(){a3.find(":input,a").unbind("focus.jsp").bind("focus.jsp",function(i){bP(i.target,false)})}function br(){a3.find(":input,a").unbind("focus.jsp")}function a9(){var i,l,j=[];bU&&j.push(bD[0]);bZ&&j.push(a7[0]);a3.focus(function(){bt.focus()});bt.attr("tabindex",0).unbind("keydown.jsp keypress.jsp").bind("keydown.jsp",function(m){if(m.target!==this&&!(j.length&&e(m.target).closest(j).length)){return}var n=bQ,o=bj;switch(m.keyCode){case 40:case 38:case 34:case 32:case 33:case 39:case 37:i=m.keyCode;k();break;case 35:bf(a2-aM);i=null;break;case 36:bf(0);i=null;break}l=m.keyCode==i&&n!=bQ||o!=bj;return !l}).bind("keypress.jsp",function(m){if(m.keyCode==i){k()}return !l});if(bk.hideFocus){bt.css("outline","none");if("hideFocus" in bE[0]){bt.attr("hideFocus",true)}}else{bt.css("outline","");if("hideFocus" in bE[0]){bt.attr("hideFocus",false)}}function k(){var m=bQ,n=bj;switch(i){case 40:bb.scrollByY(bk.keyboardSpeed,false);break;case 38:bb.scrollByY(-bk.keyboardSpeed,false);break;case 34:case 32:bb.scrollByY(aM*bk.scrollPagePercent,false);break;case 33:bb.scrollByY(-aM*bk.scrollPagePercent,false);break;case 39:bb.scrollByX(bk.keyboardSpeed,false);break;case 37:bb.scrollByX(-bk.keyboardSpeed,false);break}l=m!=bQ||n!=bj;return l}}function ba(){bt.attr("tabindex","-1").removeAttr("tabindex").unbind("keydown.jsp keypress.jsp")}function bv(){if(location.hash&&location.hash.length>1){var j,l,k=escape(location.hash);try{j=e(k)}catch(i){return}if(j.length&&a3.find(k)){if(bE.scrollTop()===0){l=setInterval(function(){if(bE.scrollTop()>0){bP(k,true);e(document).scrollTop(bE.position().top);clearInterval(l)}},50)}else{bP(k,true);e(document).scrollTop(bE.position().top)}}}}function bI(){e("a.jspHijack").unbind("click.jsp-hijack").removeClass("jspHijack")}function aU(){bI();e("a[href^=#]").addClass("jspHijack").bind("click.jsp-hijack",function(){var i=this.href.split("#"),j;if(i.length>1){j=i[1];if(j.length>0&&a3.find("#"+j).length>0){bP("#"+j,true);return false}}})}function bC(){var m,n,k,l,j,i=false;bE.unbind("touchstart.jsp touchmove.jsp touchend.jsp click.jsp-touchclick").bind("touchstart.jsp",function(p){var o=p.originalEvent.touches[0];m=bW();n=bY();k=o.pageX;l=o.pageY;j=false;i=true}).bind("touchmove.jsp",function(o){if(!i){return}var p=o.originalEvent.touches[0],q=bQ,r=bj;bb.scrollTo(m+k-p.pageX,n+l-p.pageY);j=j||Math.abs(k-p.pageX)>5||Math.abs(l-p.pageY)>5;return q==bQ&&r==bj}).bind("touchend.jsp",function(o){i=false}).bind("click.jsp-touchclick",function(o){if(j){j=false;return false}})}function a0(){var i=bY(),j=bW();bt.removeClass("jspScrollable").unbind(".jsp");bt.replaceWith(bB.append(a3.children()));bB.scrollTop(i);bB.scrollLeft(j)}e.extend(bb,{reinitialise:function(i){i=e.extend({},bk,i);bw(i)},scrollToElement:function(j,k,i){bP(j,k,i)},scrollTo:function(j,i,k){be(j,k);bf(i,k)},scrollToX:function(j,i){be(j,i)},scrollToY:function(i,j){bf(i,j)},scrollToPercentX:function(j,i){be(j*(a8-bG),i)},scrollToPercentY:function(j,i){bf(j*(a2-aM),i)
},scrollBy:function(k,i,j){bb.scrollByX(k,j);bb.scrollByY(i,j)},scrollByX:function(i,k){var l=bW()+Math[i<0?"floor":"ceil"](i),j=l/(a8-bG);a5(j*aX,k)},scrollByY:function(i,k){var l=bY()+Math[i<0?"floor":"ceil"](i),j=l/(a2-aM);a6(j*aY,k)},positionDragX:function(i,j){a5(i,j)},positionDragY:function(j,i){a6(j,i)},animate:function(m,j,i,k){var l={};l[j]=i;m.animate(l,{duration:bk.animateDuration,easing:bk.animateEase,queue:false,step:k})},getContentPositionX:function(){return bW()},getContentPositionY:function(){return bY()},getContentWidth:function(){return a8},getContentHeight:function(){return a2},getPercentScrolledX:function(){return bW()/(a8-bG)},getPercentScrolledY:function(){return bY()/(a2-aM)},getIsScrollableH:function(){return bU},getIsScrollableV:function(){return bZ},getContentPane:function(){return a3},scrollToBottom:function(i){a6(aY,i)},hijackInternalLinks:function(){aU()},destroy:function(){a0()}});bw(bd)}c=e.extend({},e.fn.jScrollPane.defaults,c);e.each(["mouseWheelSpeed","arrowButtonSpeed","trackClickSpeed","keyboardSpeed"],function(){c[this]=c[this]||c.speed});return this.each(function(){var j=e(this),i=j.data("jsp");if(i){i.reinitialise(c)}else{i=new h(j,c);j.data("jsp",i)}})};e.fn.jScrollPane.defaults={showArrows:false,maintainPosition:true,stickToBottom:false,stickToRight:false,clickOnTrack:true,autoReinitialise:false,autoReinitialiseDelay:500,verticalDragMinHeight:0,verticalDragMaxHeight:99999,horizontalDragMinWidth:0,horizontalDragMaxWidth:99999,contentWidth:g,animateScroll:false,animateDuration:300,animateEase:"linear",hijackInternalLinks:false,verticalGutter:4,horizontalGutter:4,mouseWheelSpeed:0,arrowButtonSpeed:0,arrowRepeatFreq:50,arrowScrollOnHover:false,trackClickSpeed:0,trackClickRepeatFreq:70,verticalArrowPositions:"split",horizontalArrowPositions:"split",enableKeyboardNavigation:true,hideFocus:false,keyboardSpeed:0,initialDelay:300,speed:30,scrollPagePercent:0.8}})(jQuery,this);(function(g){var c="Lite-1.3";g.fn.cycle=function(h){return this.each(function(){h=h||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var o=g(this);var l=h.slideExpr?g(h.slideExpr,this):o.children();var j=l.get();if(j.length<2){window.console&&console.log("terminating; too few slides: "+j.length);return}var i=g.extend({},g.fn.cycle.defaults,h||{},g.metadata?o.metadata():g.meta?o.data():{});var p=g.isFunction(o.data)?o.data(i.metaAttr):null;if(p){i=g.extend(i,p)}i.before=i.before?[i.before]:[];i.after=i.after?[i.after]:[];i.after.unshift(function(){i.busy=0});var q=this.className;i.width=parseInt((q.match(/w:(\d+)/)||[])[1])||i.width;i.height=parseInt((q.match(/h:(\d+)/)||[])[1])||i.height;i.timeout=parseInt((q.match(/t:(\d+)/)||[])[1])||i.timeout;if(o.css("position")=="static"){o.css("position","relative")}if(i.width){o.width(i.width)}if(i.height&&i.height!="auto"){o.height(i.height)}var k=0;l.css({position:"absolute",top:0,left:0}).each(function(r){g(this).css("z-index",j.length-r)});g(j[k]).css("opacity",1).show();if(g.browser.msie){j[k].style.removeAttribute("filter")}if(i.fit&&i.width){l.width(i.width)}if(i.fit&&i.height&&i.height!="auto"){l.height(i.height)}if(i.pause){o.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}var m=g.fn.cycle.transitions[i.fx];m&&m(o,l,i);l.each(function(){var r=g(this);this.cycleH=(i.fit&&i.height)?i.height:r.height();this.cycleW=(i.fit&&i.width)?i.width:r.width()});if(i.cssFirst){g(l[k]).css(i.cssFirst)}if(i.timeout){if(i.speed.constructor==String){i.speed={slow:600,fast:200}[i.speed]||400}if(!i.sync){i.speed=i.speed/2}while((i.timeout-i.speed)<250){i.timeout+=i.speed}}i.speedIn=i.speed;i.speedOut=i.speed;i.slideCount=j.length;i.currSlide=k;i.nextSlide=1;var n=l[k];if(i.before.length){i.before[0].apply(n,[n,n,i,true])}if(i.after.length>1){i.after[1].apply(n,[n,n,i,true])}if(i.click&&!i.next){i.next=i.click}if(i.next){g(i.next).bind("click",function(){return f(j,i,i.rev?-1:1)})}if(i.prev){g(i.prev).bind("click",function(){return f(j,i,i.rev?1:-1)
})}if(i.timeout){this.cycleTimeout=setTimeout(function(){e(j,i,0,!i.rev)},i.timeout+(i.delay||0))}})};function e(m,h,l,n){if(h.busy){return}var k=m[0].parentNode,q=m[h.currSlide],o=m[h.nextSlide];if(k.cycleTimeout===0&&!l){return}if(l||!k.cyclePause){if(h.before.length){g.each(h.before,function(p,r){r.apply(o,[q,o,h,n])})}var i=function(){if(g.browser.msie){this.style.removeAttribute("filter")}g.each(h.after,function(p,r){r.apply(o,[q,o,h,n])})};if(h.nextSlide!=h.currSlide){h.busy=1;g.fn.cycle.custom(q,o,h,i)}var j=(h.nextSlide+1)==m.length;h.nextSlide=j?0:h.nextSlide+1;h.currSlide=j?m.length-1:h.nextSlide-1}if(h.timeout){k.cycleTimeout=setTimeout(function(){e(m,h,0,!h.rev)},h.timeout)}}function f(h,i,l){var k=h[0].parentNode,j=k.cycleTimeout;if(j){clearTimeout(j);k.cycleTimeout=0}i.nextSlide=i.currSlide+l;if(i.nextSlide<0){i.nextSlide=h.length-1}else{if(i.nextSlide>=h.length){i.nextSlide=0}}e(h,i,1,l>=0);return false}g.fn.cycle.custom=function(n,k,l,h){var m=g(n),j=g(k);j.css(l.cssBefore);var i=function(){j.animate(l.animIn,l.speedIn,l.easeIn,h)};m.animate(l.animOut,l.speedOut,l.easeOut,function(){m.css(l.cssAfter);if(!l.sync){i()}});if(l.sync){i()}};g.fn.cycle.transitions={fade:function(i,j,h){j.not(":eq(0)").hide();h.cssBefore={opacity:0,display:"block"};h.cssAfter={display:"none"};h.animOut={opacity:0};h.animIn={opacity:1}},fadeout:function(i,j,h){h.before.push(function(n,l,m,k){g(n).css("zIndex",m.slideCount+(k===true?1:0));g(l).css("zIndex",m.slideCount+(k===true?0:1))});j.not(":eq(0)").hide();h.cssBefore={opacity:1,display:"block",zIndex:1};h.cssAfter={display:"none",zIndex:0};h.animOut={opacity:0}}};g.fn.cycle.ver=function(){return c};g.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000}})(jQuery);(function(b){var a={init:function(c){var d={links:null,click:null,change:null,play:false,playInterval:3000,interval:1200,easing:0};d=b.extend(d,c);return this.each(function(){var l=b(this),o=this,h={max:0,current:0,play:d.play,playTimeout:null},k,j=0,i=[],f=0,n,e,m=false;if(!(d.playInterval instanceof Array)){d.playInterval=[d.playInterval]}e=d.playInterval.length-1;function g(p){if(h.playTimeout){clearTimeout(h.playTimeout);playTimeout=null}if(!p){p=d.playInterval[Math.min(e,h.current)]}h.playTimeout=setTimeout(function(){h.next()},p)}k=l.children().css({"float":"left",width:l.width(),height:l.height()}).each(function(p){i[p]=j;f=l.width();if(!f){alert("Please, fill in width & height for all your images!");return false}j+=f});l.width(j);h.max=k.length;h.goTo=function(p){if(m){setTimeout(function(){h.goTo(p)},1000);return}h.current=Math.min(Math.max(p,0),h.max);n.removeClass("selected").eq(h.current).addClass("selected");if(d.change){d.change(h.current)}clearTimeout(h.playTimeout);h.playTimeout=null;l.stop().animate({marginLeft:-i[h.current]+"px"},d.interval,"easeInOutExpo",function(){if(!m&&h.play){g()}})};h.next=function(p){if(!p){p=h.current+1}if(p>=h.max){p=0}h.goTo(p)};if(typeof d.links==="function"){n=d.links.call(o)}else{n=b(d.links)}if(h.play){g()}n.click(function(p){p.preventDefault();m=false;var q=n.index(this);clearTimeout(h.playTimeout);h.playTimeout=null;h.goTo(q);if(h.play){m=true;g()}if(d.click){d.click.call(o,q)}});n.eq(0).addClass("selected");l.data("slideshow",h);k.add(n).mouseenter(function(){m=true}).mouseleave(function(){m=false})})},next:function(c){return this.each(function(){b(this).data("slideshow").next(c)})},play:function(d){var c;return this.each(function(){c=b(this).data("slideshow");c.play=d;if(!d){clearTimeout(c.playTimeout);c.playTimeout=null}})},destroy:function(){return this.each(function(){var d=b(this),c=d.data("slideshow");b(window).unbind(".slideshow");c.tooltip.remove();d.removeData("slideshow")})}};b.fn.slideshow=function(c){if(a[c]){return a[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return a.init.apply(this,arguments)}else{b.error("Method "+c+" does not exist on jQuery.slideshow")}}}}(jQuery));$(function(){var c=$("#accordion div a.current");c.html(c.html()+" &gt;&gt;");var b=0;$("#accordion div").each(function(d){if($(this).find("a.current").length>0){b=d}});$("#accordion").accordion({fillSpace:true,collapsible:true,active:b});RecentFilteredPost({BlogURL:"http://whitespacehcm.blogspot.com",maxPost:5,containerId:"#blogFeed",imgEna:false});$.extend($.fn.jScrollPane.defaults,{scrollbarWidth:9,showArrows:true,arrowsize:9});$("div.scroll-pane").jScrollPane();var a=document.getElementById("flashIntro");$(".indexSlideshow").slideshow({links:"#indexLinks a",play:true,playInterval:[19000,3500],change:function(d){if(d===0){a.GotoFrame(0);a.Play()}}});$(".indexSlideshow, #indexLinks a").click(function(d){d.preventDefault();$(".indexSlideshow").slideshow("play",false)});$(".slideshow:not(.indexSlideshow)").slideshow({click:function(d){},links:function(){return $(this).closest(".pageContent").find("div.links:not(#indexLinks) a")}});$("#collateral div.links a").click(function(){$("#collateral .work span").hide();if($(this).hasClass("consumer")){$("#collateral .work span.consumer").show()}else{$("#collateral .work span.trade").show()}})});
