").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),s=i.uniqueId().attr("id");return e("
").addClass("ui-tooltip-content").appendTo(i),i.appendTo(this.document[0].body),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var t=this;e.each(this.tooltips,function(i,s){var n=e.Event("blur"),a=s.element;n.target=n.currentTarget=a[0],t.close(n,!0),e("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var y="ui-effects-",b=e;e.effects={effect:{}},function(e,t){function i(e,t,i){var s=d[t.type]||{};return null==e?i||!t.def?null:t.def:(e=s.floor?~~e:parseFloat(e),isNaN(e)?t.def:s.mod?(e+s.mod)%s.mod:0>e?0:e>s.max?s.max:e)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(e,a){var r,o=a.re.exec(i),h=o&&a.parse(o),l=a.space||"rgba";return h?(r=s[l](h),s[u[l].cache]=r[u[l].cache],n=s._rgba=r._rgba,!1):t}),n.length?("0,0,0,0"===n.join()&&e.extend(n,a.transparent),s):a[i]}function n(e,t,i){return i=(i+1)%1,1>6*i?e+6*(t-e)*i:1>2*i?t:2>3*i?e+6*(t-e)*(2/3-i):e}var a,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",o=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],l=e.Color=function(t,i,s,n){return new e.Color.fn.parse(t,i,s,n)},u={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},d={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},c=l.support={},p=e("
")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),l.fn=e.extend(l.prototype,{parse:function(n,r,o,h){if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=e(n).css(r),r=t);var d=this,c=e.type(n),p=this._rgba=[];return r!==t&&(n=[n,r,o,h],c="array"),"string"===c?this.parse(s(n)||a._default):"array"===c?(f(u.rgba.props,function(e,t){p[t.idx]=i(n[t.idx],t)}),this):"object"===c?(n instanceof l?f(u,function(e,t){n[t.cache]&&(d[t.cache]=n[t.cache].slice())}):f(u,function(t,s){var a=s.cache;f(s.props,function(e,t){if(!d[a]&&s.to){if("alpha"===e||null==n[e])return;d[a]=s.to(d._rgba)}d[a][t.idx]=i(n[e],t,!0)}),d[a]&&0>e.inArray(null,d[a].slice(0,3))&&(d[a][3]=1,s.from&&(d._rgba=s.from(d[a])))}),this):t},is:function(e){var i=l(e),s=!0,n=this;return f(u,function(e,a){var r,o=i[a.cache];return o&&(r=n[a.cache]||a.to&&a.to(n._rgba)||[],f(a.props,function(e,i){return null!=o[i.idx]?s=o[i.idx]===r[i.idx]:t})),s}),s},_space:function(){var e=[],t=this;return f(u,function(i,s){t[s.cache]&&e.push(i)}),e.pop()},transition:function(e,t){var s=l(e),n=s._space(),a=u[n],r=0===this.alpha()?l("transparent"):this,o=r[a.cache]||a.to(r._rgba),h=o.slice();return s=s[a.cache],f(a.props,function(e,n){var a=n.idx,r=o[a],l=s[a],u=d[n.type]||{};null!==l&&(null===r?h[a]=l:(u.mod&&(l-r>u.mod/2?r+=u.mod:r-l>u.mod/2&&(r-=u.mod)),h[a]=i((l-r)*t+r,n)))}),this[n](h)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t){return(1-s)*n[t]+s*e}))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,function(e,t){return null==e?t>2?1:0:e});return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),function(e,t){return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e});return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),s=i.pop();return t&&i.push(~~(255*s)),"#"+e.map(i,function(e){return e=(e||0).toString(16),1===e.length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,u.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,s=e[0]/255,n=e[1]/255,a=e[2]/255,r=e[3],o=Math.max(s,n,a),h=Math.min(s,n,a),l=o-h,u=o+h,d=.5*u;return t=h===o?0:s===o?60*(n-a)/l+360:n===o?60*(a-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=d?l/u:l/(2-u),[Math.round(t)%360,i,d,null==r?1:r]},u.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],s=e[2],a=e[3],r=.5>=s?s*(1+i):s+i-s*i,o=2*s-r;return[Math.round(255*n(o,r,t+1/3)),Math.round(255*n(o,r,t)),Math.round(255*n(o,r,t-1/3)),a]},f(u,function(s,n){var a=n.props,r=n.cache,h=n.to,u=n.from;l.fn[s]=function(s){if(h&&!this[r]&&(this[r]=h(this._rgba)),s===t)return this[r].slice();var n,o=e.type(s),d="array"===o||"object"===o?s:arguments,c=this[r].slice();return f(a,function(e,t){var s=d["object"===o?e:t.idx];null==s&&(s=c[t.idx]),c[t.idx]=i(s,t)}),u?(n=l(u(c)),n[r]=c,n):l(c)},f(a,function(t,i){l.fn[t]||(l.fn[t]=function(n){var a,r=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===r?u:("function"===r&&(n=n.call(this,u),r=e.type(n)),null==n&&i.empty?this:("string"===r&&(a=o.exec(n),a&&(n=u+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(t){var i=t.split(" ");f(i,function(t,i){e.cssHooks[i]={set:function(t,n){var a,r,o="";if("transparent"!==n&&("string"!==e.type(n)||(a=s(n)))){if(n=l(a||n),!c.rgba&&1!==n._rgba[3]){for(r="backgroundColor"===i?t.parentNode:t;(""===o||"transparent"===o)&&r&&r.style;)try{o=e.css(r,"backgroundColor"),r=r.parentNode}catch(h){}n=n.blend(o&&"transparent"!==o?o:"_default")}n=n.toRgbaString()}try{t.style[i]=n}catch(h){}}},e.fx.step[i]=function(t){t.colorInit||(t.start=l(t.elem,i),t.end=l(t.end),t.colorInit=!0),e.cssHooks[i].set(t.elem,t.start.transition(t.end,t.pos))}})},l.hook(r),e.cssHooks.borderColor={expand:function(e){var t={};return f(["Top","Right","Bottom","Left"],function(i,s){t["border"+s+"Color"]=e}),t}},a=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(b),function(){function t(t){var i,s,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,a={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(a[e.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(a[i]=n[i]);return a}function i(t,i){var s,a,r={};for(s in i)a=i[s],t[s]!==a&&(n[s]||(e.fx.step[s]||!isNaN(parseFloat(a)))&&(r[s]=a));return r}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(b.style(e.elem,i,e.end),e.setAttr=!0)}}),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(n,a,r,o){var h=e.speed(a,r,o);return this.queue(function(){var a,r=e(this),o=r.attr("class")||"",l=h.children?r.find("*").addBack():r;l=l.map(function(){var i=e(this);return{el:i,start:t(this)}}),a=function(){e.each(s,function(e,t){n[t]&&r[t+"Class"](n[t])})},a(),l=l.map(function(){return this.end=t(this.el[0]),this.diff=i(this.start,this.end),this}),r.attr("class",o),l=l.map(function(){var t=this,i=e.Deferred(),s=e.extend({},h,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,s),i.promise()}),e.when.apply(e,l.get()).done(function(){a(),e.each(arguments,function(){var t=this.el;e.each(this.diff,function(e){t.css(e,"")})}),h.complete.call(r[0])})})},e.fn.extend({addClass:function(t){return function(i,s,n,a){return s?e.effects.animateClass.call(this,{add:i},s,n,a):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,s,n,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},s,n,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,s,n,a,r){return"boolean"==typeof s||void 0===s?n?e.effects.animateClass.call(this,s?{add:i}:{remove:i},n,a,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},s,n,a)}}(e.fn.toggleClass),switchClass:function(t,i,s,n,a){return e.effects.animateClass.call(this,{add:i,remove:t},s,n,a)}})}(),function(){function t(t,i,s,n){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),e.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(n=s,s=i,i={}),e.isFunction(s)&&(n=s,s=null),i&&e.extend(t,i),s=s||i.duration,t.duration=e.fx.off?0:"number"==typeof s?s:s in e.fx.speeds?e.fx.speeds[s]:e.fx.speeds._default,t.complete=n||i.complete,t}function i(t){return!t||"number"==typeof t||e.fx.speeds[t]?!0:"string"!=typeof t||e.effects.effect[t]?e.isFunction(t)?!0:"object"!=typeof t||t.effect?!1:!0:!0}e.extend(e.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(y+t[i],e[0].style[t[i]])},restore:function(e,t){var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(y+t[s]),void 0===i&&(i=""),e.css(t[s],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,s;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.width}return{x:s,y:i}},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),"float":t.css("float")},s=e("
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(r){a=document.body}return t.wrap(s),(t[0]===a||e.contains(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],function(e,s){i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(n),s.css(i).show()},removeWrapper:function(t){var i=document.activeElement;
return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).focus()),t},setTransition:function(t,i,s,n){return n=n||{},e.each(i,function(e,i){var a=t.cssUnit(i);a[0]>0&&(n[i]=a[0]*s+a[1])}),n}}),e.fn.extend({effect:function(){function i(t){function i(){e.isFunction(a)&&a.call(n[0]),e.isFunction(t)&&t()}var n=e(this),a=s.complete,o=s.mode;(n.is(":hidden")?"hide"===o:"show"===o)?(n[o](),i()):r.call(n[0],s,i)}var s=t.apply(this,arguments),n=s.mode,a=s.queue,r=e.effects.effect[s.effect];return e.fx.off||!r?n?this[n](s.duration,s.complete):this.each(function(){s.complete&&s.complete.call(this)}):a===!1?this.each(i):this.queue(a||"fx",i)},show:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(s){if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(s){if(i(s)||"boolean"==typeof s)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t){i.indexOf(t)>0&&(s=[parseFloat(i),t])}),s}})}(),function(){var t={};e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i){t[i]=function(t){return Math.pow(t,e+2)}}),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return.5>e?i(2*e)/2:1-i(-2*e+2)/2}})}(),e.effects,e.effects.effect.blind=function(t,i){var s,n,a,r=e(this),o=/up|down|vertical/,h=/up|left|vertical|horizontal/,l=["position","top","bottom","left","right","height","width"],u=e.effects.setMode(r,t.mode||"hide"),d=t.direction||"up",c=o.test(d),p=c?"height":"width",f=c?"top":"left",m=h.test(d),g={},v="show"===u;r.parent().is(".ui-effects-wrapper")?e.effects.save(r.parent(),l):e.effects.save(r,l),r.show(),s=e.effects.createWrapper(r).css({overflow:"hidden"}),n=s[p](),a=parseFloat(s.css(f))||0,g[p]=v?n:0,m||(r.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:n+a),v&&(s.css(p,0),m||s.css(f,a+n)),s.animate(g,{duration:t.duration,easing:t.easing,queue:!1,complete:function(){"hide"===u&&r.hide(),e.effects.restore(r,l),e.effects.removeWrapper(r),i()}})},e.effects.effect.bounce=function(t,i){var s,n,a,r=e(this),o=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(r,t.mode||"effect"),l="hide"===h,u="show"===h,d=t.direction||"up",c=t.distance,p=t.times||5,f=2*p+(u||l?1:0),m=t.duration/f,g=t.easing,v="up"===d||"down"===d?"top":"left",y="up"===d||"left"===d,b=r.queue(),_=b.length;for((u||l)&&o.push("opacity"),e.effects.save(r,o),r.show(),e.effects.createWrapper(r),c||(c=r["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a={opacity:1},a[v]=0,r.css("opacity",0).css(v,y?2*-c:2*c).animate(a,m,g)),l&&(c/=Math.pow(2,p-1)),a={},a[v]=0,s=0;p>s;s++)n={},n[v]=(y?"-=":"+=")+c,r.animate(n,m,g).animate(a,m,g),c=l?2*c:c/2;l&&(n={opacity:0},n[v]=(y?"-=":"+=")+c,r.animate(n,m,g)),r.queue(function(){l&&r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),r.dequeue()},e.effects.effect.clip=function(t,i){var s,n,a,r=e(this),o=["position","top","bottom","left","right","height","width"],h=e.effects.setMode(r,t.mode||"hide"),l="show"===h,u=t.direction||"vertical",d="vertical"===u,c=d?"height":"width",p=d?"top":"left",f={};e.effects.save(r,o),r.show(),s=e.effects.createWrapper(r).css({overflow:"hidden"}),n="IMG"===r[0].tagName?s:r,a=n[c](),l&&(n.css(c,0),n.css(p,a/2)),f[c]=l?a:0,f[p]=l?0:a/2,n.animate(f,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){l||r.hide(),e.effects.restore(r,o),e.effects.removeWrapper(r),i()}})},e.effects.effect.drop=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","opacity","height","width"],r=e.effects.setMode(n,t.mode||"hide"),o="show"===r,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h?"pos":"neg",d={opacity:o?1:0};e.effects.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,o&&n.css("opacity",0).css(l,"pos"===u?-s:s),d[l]=(o?"pos"===u?"+=":"-=":"pos"===u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.explode=function(t,i){function s(){b.push(this),b.length===d*c&&n()}function n(){p.css({visibility:"visible"}),e(b).remove(),m||p.hide(),i()}var a,r,o,h,l,u,d=t.pieces?Math.round(Math.sqrt(t.pieces)):3,c=d,p=e(this),f=e.effects.setMode(p,t.mode||"hide"),m="show"===f,g=p.show().css("visibility","hidden").offset(),v=Math.ceil(p.outerWidth()/c),y=Math.ceil(p.outerHeight()/d),b=[];for(a=0;d>a;a++)for(h=g.top+a*y,u=a-(d-1)/2,r=0;c>r;r++)o=g.left+r*v,l=r-(c-1)/2,p.clone().appendTo("body").wrap("
").css({position:"absolute",visibility:"visible",left:-r*v,top:-a*y}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:v,height:y,left:o+(m?l*v:0),top:h+(m?u*y:0),opacity:m?0:1}).animate({left:o+(m?0:l*v),top:h+(m?0:u*y),opacity:m?1:0},t.duration||500,t.easing,s)},e.effects.effect.fade=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"toggle");s.animate({opacity:n},{queue:!1,duration:t.duration,easing:t.easing,complete:i})},e.effects.effect.fold=function(t,i){var s,n,a=e(this),r=["position","top","bottom","left","right","height","width"],o=e.effects.setMode(a,t.mode||"hide"),h="show"===o,l="hide"===o,u=t.size||15,d=/([0-9]+)%/.exec(u),c=!!t.horizFirst,p=h!==c,f=p?["width","height"]:["height","width"],m=t.duration/2,g={},v={};e.effects.save(a,r),a.show(),s=e.effects.createWrapper(a).css({overflow:"hidden"}),n=p?[s.width(),s.height()]:[s.height(),s.width()],d&&(u=parseInt(d[1],10)/100*n[l?0:1]),h&&s.css(c?{height:0,width:u}:{height:u,width:0}),g[f[0]]=h?n[0]:u,v[f[1]]=h?n[1]:0,s.animate(g,m,t.easing).animate(v,m,t.easing,function(){l&&a.hide(),e.effects.restore(a,r),e.effects.removeWrapper(a),i()})},e.effects.effect.highlight=function(t,i){var s=e(this),n=["backgroundImage","backgroundColor","opacity"],a=e.effects.setMode(s,t.mode||"show"),r={backgroundColor:s.css("backgroundColor")};"hide"===a&&(r.opacity=0),e.effects.save(s,n),s.show().css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(r,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===a&&s.hide(),e.effects.restore(s,n),i()}})},e.effects.effect.size=function(t,i){var s,n,a,r=e(this),o=["position","top","bottom","left","right","width","height","overflow","opacity"],h=["position","top","bottom","left","right","overflow","opacity"],l=["width","height","overflow"],u=["fontSize"],d=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=e.effects.setMode(r,t.mode||"effect"),f=t.restore||"effect"!==p,m=t.scale||"both",g=t.origin||["middle","center"],v=r.css("position"),y=f?o:h,b={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),s={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===t.mode&&"show"===p?(r.from=t.to||b,r.to=t.from||s):(r.from=t.from||("show"===p?b:s),r.to=t.to||("hide"===p?b:s)),a={from:{y:r.from.height/s.height,x:r.from.width/s.width},to:{y:r.to.height/s.height,x:r.to.width/s.width}},("box"===m||"both"===m)&&(a.from.y!==a.to.y&&(y=y.concat(d),r.from=e.effects.setTransition(r,d,a.from.y,r.from),r.to=e.effects.setTransition(r,d,a.to.y,r.to)),a.from.x!==a.to.x&&(y=y.concat(c),r.from=e.effects.setTransition(r,c,a.from.x,r.from),r.to=e.effects.setTransition(r,c,a.to.x,r.to))),("content"===m||"both"===m)&&a.from.y!==a.to.y&&(y=y.concat(u).concat(l),r.from=e.effects.setTransition(r,u,a.from.y,r.from),r.to=e.effects.setTransition(r,u,a.to.y,r.to)),e.effects.save(r,y),r.show(),e.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(n=e.effects.getBaseline(g,s),r.from.top=(s.outerHeight-r.outerHeight())*n.y,r.from.left=(s.outerWidth-r.outerWidth())*n.x,r.to.top=(s.outerHeight-r.to.outerHeight)*n.y,r.to.left=(s.outerWidth-r.to.outerWidth)*n.x),r.css(r.from),("content"===m||"both"===m)&&(d=d.concat(["marginTop","marginBottom"]).concat(u),c=c.concat(["marginLeft","marginRight"]),l=o.concat(d).concat(c),r.find("*[width]").each(function(){var i=e(this),s={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&e.effects.save(i,l),i.from={height:s.height*a.from.y,width:s.width*a.from.x,outerHeight:s.outerHeight*a.from.y,outerWidth:s.outerWidth*a.from.x},i.to={height:s.height*a.to.y,width:s.width*a.to.x,outerHeight:s.height*a.to.y,outerWidth:s.width*a.to.x},a.from.y!==a.to.y&&(i.from=e.effects.setTransition(i,d,a.from.y,i.from),i.to=e.effects.setTransition(i,d,a.to.y,i.to)),a.from.x!==a.to.x&&(i.from=e.effects.setTransition(i,c,a.from.x,i.from),i.to=e.effects.setTransition(i,c,a.to.x,i.to)),i.css(i.from),i.animate(i.to,t.duration,t.easing,function(){f&&e.effects.restore(i,l)})})),r.animate(r.to,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),e.effects.restore(r,y),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):e.each(["top","left"],function(e,t){r.css(t,function(t,i){var s=parseInt(i,10),n=e?r.to.left:r.to.top;return"auto"===i?n+"px":s+n+"px"})})),e.effects.removeWrapper(r),i()}})},e.effects.effect.scale=function(t,i){var s=e(this),n=e.extend(!0,{},t),a=e.effects.setMode(s,t.mode||"effect"),r=parseInt(t.percent,10)||(0===parseInt(t.percent,10)?0:"hide"===a?0:100),o=t.direction||"both",h=t.origin,l={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()},u={y:"horizontal"!==o?r/100:1,x:"vertical"!==o?r/100:1};n.effect="size",n.queue=!1,n.complete=i,"effect"!==a&&(n.origin=h||["middle","center"],n.restore=!0),n.from=t.from||("show"===a?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*u.y,width:l.width*u.x,outerHeight:l.outerHeight*u.y,outerWidth:l.outerWidth*u.x},n.fade&&("show"===a&&(n.from.opacity=0,n.to.opacity=1),"hide"===a&&(n.from.opacity=1,n.to.opacity=0)),s.effect(n)},e.effects.effect.puff=function(t,i){var s=e(this),n=e.effects.setMode(s,t.mode||"hide"),a="hide"===n,r=parseInt(t.percent,10)||150,o=r/100,h={height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth()};e.extend(t,{effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?r:100,from:a?h:{height:h.height*o,width:h.width*o,outerHeight:h.outerHeight*o,outerWidth:h.outerWidth*o}}),s.effect(t)},e.effects.effect.pulsate=function(t,i){var s,n=e(this),a=e.effects.setMode(n,t.mode||"show"),r="show"===a,o="hide"===a,h=r||"hide"===a,l=2*(t.times||5)+(h?1:0),u=t.duration/l,d=0,c=n.queue(),p=c.length;for((r||!n.is(":visible"))&&(n.css("opacity",0).show(),d=1),s=1;l>s;s++)n.animate({opacity:d},u,t.easing),d=1-d;n.animate({opacity:d},u,t.easing),n.queue(function(){o&&n.hide(),i()}),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),n.dequeue()},e.effects.effect.shake=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","height","width"],r=e.effects.setMode(n,t.mode||"effect"),o=t.direction||"left",h=t.distance||20,l=t.times||3,u=2*l+1,d=Math.round(t.duration/u),c="up"===o||"down"===o?"top":"left",p="up"===o||"left"===o,f={},m={},g={},v=n.queue(),y=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n),f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,n.animate(f,d,t.easing),s=1;l>s;s++)n.animate(m,d,t.easing).animate(g,d,t.easing);n.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function(){"hide"===r&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),n.dequeue()},e.effects.effect.slide=function(t,i){var s,n=e(this),a=["position","top","bottom","left","right","width","height"],r=e.effects.setMode(n,t.mode||"show"),o="show"===r,h=t.direction||"left",l="up"===h||"down"===h?"top":"left",u="up"===h||"left"===h,d={};e.effects.save(n,a),n.show(),s=t.distance||n["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(n).css({overflow:"hidden"}),o&&n.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(o?u?"+=":"-=":u?"-=":"+=")+s,n.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){"hide"===r&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()}})},e.effects.effect.transfer=function(t,i){var s=e(this),n=e(t.to),a="fixed"===n.css("position"),r=e("body"),o=a?r.scrollTop():0,h=a?r.scrollLeft():0,l=n.offset(),u={top:l.top-o,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},d=s.offset(),c=e("
").appendTo(document.body).addClass(t.className).css({top:d.top-o,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a?"fixed":"absolute"}).animate(u,t.duration,t.easing,function(){c.remove(),i()})}});;(function (factory){if (typeof define === 'function' && define.amd){define(['jquery'], factory);} else if (typeof exports === 'object'){module.exports = factory(require('jquery'));} else {factory(jQuery);}}(function ($){var pluses = /\+/g;function encode(s){return config.raw ? s : encodeURIComponent(s);}function decode(s){return config.raw ? s : decodeURIComponent(s);}function stringifyCookieValue(value){return encode(config.json ? JSON.stringify(value): String(value));}function parseCookieValue(s){if (s.indexOf('"')=== 0){s = s.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');}try {s = decodeURIComponent(s.replace(pluses, ' '));return config.json ? JSON.parse(s): s;} catch(e){}}function read(s, converter){var value = config.raw ? s : parseCookieValue(s);return $.isFunction(converter)? converter(value): value;}var config = $.cookie = function (key, value, options){if (arguments.length > 1 && !$.isFunction(value)){options = $.extend({}, config.defaults, options);if (typeof options.expires === 'number'){var days = options.expires, t = options.expires = new Date();t.setMilliseconds(t.getMilliseconds()+ days * 864e+5);}return (document.cookie = [encode(key), '=', stringifyCookieValue(value),options.expires ? '; expires=' + options.expires.toUTCString(): '', options.path ? '; path=' + options.path : '',options.domain ? '; domain=' + options.domain : '',options.secure ? '; secure' : ''].join(''));}var result = key ? undefined : {},cookies = document.cookie ? document.cookie.split('; '): [],i = 0,l = cookies.length;for (; i < l; i++){var parts = cookies[i].split('='),name = decode(parts.shift()),cookie = parts.join('=');if (key === name){result = read(cookie, value);break;}if (!key && (cookie = read(cookie))!== undefined){result[name] = cookie;}}return result;};config.defaults = {};$.removeCookie = function (key, options){$.cookie(key, '', $.extend({}, options, { expires: -1 }));return !$.cookie(key);};}));;jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a+c;return-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){if((a/=d/2)<1)return b/
2*a*a*a+c;return b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a+c;return-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a*a+c;return b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,
a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){if(a==0)return c;if(a==d)return c+b;if((a/=d/2)<1)return b/2*Math.pow(2,10*(a-1))+c;return b/2*(-Math.pow(2,-10*--a)+2)+c},
easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){if((a/=d/2)<1)return-b/2*(Math.sqrt(1-a*a)-1)+c;return b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){e=1.70158;var f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);if(g
');jq(".photolarge img").stop().animate({width:"77%"});jq(".photolarge").css({border:"solid 1px grey","z-index":"100000","margin-left":"-20px"});jq(".photolarge").stop().animate({width:"694px", height:"auto"});jq(".photolarge img").stop().fadeTo("slow",1);jq("html, body").stop().animate({scrollTop:jq(".photolarge").offset().top-50},1E3);jq(".photolarge").is(":visible")&&jq(".zoomimage, .ar_asses_main_img img").animate({opacity:0});jq(".photolarge").click(function(){jq(".photolarge img").stop().animate({width:"0"});jq(".photolarge").stop().fadeOut("slow",0);jq(".photolarge").stop().animate({width:0});jq(".photolarge").css({border:"none"});jq(".photolarge").not(":visible")&&jq(".ar_asses_main_img img").animate({opacity:1}); jq("html, body").stop().animate({scrollTop:jq(".photolarge").offset().top},1E3)})})}});;(function($){ var _previousResizeWidth = -1, _updateTimeout = -1; var _parse = function(value){ return parseFloat(value)|| 0; }; var _rows = function(elements){ var tolerance = 1, $elements = $(elements), lastTop = null, rows = []; $elements.each(function(){ var $that = $(this), top = $that.offset().top - _parse($that.css('margin-top')), lastRow = rows.length > 0 ? rows[rows.length - 1] : null; if (lastRow === null){ rows.push($that); } else { if (Math.floor(Math.abs(lastTop - top))<= tolerance){rows[rows.length - 1] = lastRow.add($that); } else {rows.push($that); } } lastTop = top; }); return rows; }; var _parseOptions = function(options){ var opts = { byRow: true, property: 'height', target: null, remove: false }; if (typeof options === 'object'){ return $.extend(opts, options); } if (typeof options === 'boolean'){ opts.byRow = options; } else if (options === 'remove'){ opts.remove = true; } return opts; }; var matchHeight = $.fn.matchHeight = function(options){ var opts = _parseOptions(options); if (opts.remove){ var that = this; this.css(opts.property, ''); $.each(matchHeight._groups, function(key, group){ group.elements = group.elements.not(that); }); return this; } if (this.length <= 1 && !opts.target){ return this; } matchHeight._groups.push({ elements: this, options: opts }); matchHeight._apply(this, opts); return this; }; matchHeight._groups = []; matchHeight._throttle = 80; matchHeight._maintainScroll = false; matchHeight._beforeUpdate = null; matchHeight._afterUpdate = null; matchHeight._apply = function(elements, options){ var opts = _parseOptions(options), $elements = $(elements), rows = [$elements]; var scrollTop = $(window).scrollTop(), htmlHeight = $('html').outerHeight(true); var $hiddenParents = $elements.parents().filter(':hidden'); $hiddenParents.each(function(){ var $that = $(this); $that.data('style-cache', $that.attr('style')); }); $hiddenParents.css('display', 'block'); if (opts.byRow && !opts.target){ $elements.each(function(){ var $that = $(this),display = $that.css('display'); if (display !== 'inline-block' && display !== 'inline-flex'){display = 'block'; } $that.data('style-cache', $that.attr('style')); $that.css({'display': display,'padding-top': '0','padding-bottom': '0','margin-top': '0','margin-bottom': '0','border-top-width': '0','border-bottom-width': '0','height': '100px' }); }); rows = _rows($elements); $elements.each(function(){ var $that = $(this); $that.attr('style', $that.data('style-cache')|| ''); }); } $.each(rows, function(key, row){ var $row = $(row), targetHeight = 0; if (!opts.target){ if (opts.byRow && $row.length <= 1){$row.css(opts.property, '');return; } $row.each(function(){var $that = $(this), display = $that.css('display');if (display !== 'inline-block' && display !== 'inline-flex'){ display = 'block';}var css = { 'display': display };css[opts.property] = '';$that.css(css);if ($that.outerHeight(false)> targetHeight){ targetHeight = $that.outerHeight(false);}$that.css('display', ''); }); } else { targetHeight = opts.target.outerHeight(false); } $row.each(function(){ var $that = $(this),verticalPadding = 0; if (opts.target && $that.is(opts.target)){return; } if ($that.css('box-sizing')!== 'border-box'){verticalPadding += _parse($that.css('border-top-width'))+ _parse($that.css('border-bottom-width'));verticalPadding += _parse($that.css('padding-top'))+ _parse($that.css('padding-bottom')); } $that.css(opts.property, (targetHeight - verticalPadding)+ 'px'); }); }); $hiddenParents.each(function(){ var $that = $(this); $that.attr('style', $that.data('style-cache')|| null); }); if (matchHeight._maintainScroll){ $(window).scrollTop((scrollTop / htmlHeight)* $('html').outerHeight(true)); } return this; }; matchHeight._applyDataApi = function(){ var groups = {}; $('[data-match-height], [data-mh]').each(function(){ var $this = $(this), groupId = $this.attr('data-mh')|| $this.attr('data-match-height'); if (groupId in groups){ groups[groupId] = groups[groupId].add($this); } else { groups[groupId] = $this; } }); $.each(groups, function(){ this.matchHeight(true); }); }; var _update = function(event){ if (matchHeight._beforeUpdate){ matchHeight._beforeUpdate(event, matchHeight._groups); } $.each(matchHeight._groups, function(){ matchHeight._apply(this.elements, this.options); }); if (matchHeight._afterUpdate){ matchHeight._afterUpdate(event, matchHeight._groups); } }; matchHeight._update = function(throttle, event){ if (event && event.type === 'resize'){ var windowWidth = $(window).width(); if (windowWidth === _previousResizeWidth){ return; } _previousResizeWidth = windowWidth; } if (!throttle){ _update(event); } else if (_updateTimeout === -1){ _updateTimeout = setTimeout(function(){ _update(event); _updateTimeout = -1; }, matchHeight._throttle); } }; $(matchHeight._applyDataApi); $(window).bind('load', function(event){ matchHeight._update(false, event); }); $(window).bind('resize orientationchange', function(event){ matchHeight._update(true, event); });})(jQuery);/*! jQuery Placeholder Plugin - v0.7.0 - 2013-02-18
* http://andrew-jones.com/jquery-placeholder-plugin
* Copyright (c) 2013 Andrew Jones; Licensed MIT */
;(function(a){"use strict",a.extend({placeholder:{settings:{focusClass:"placeholderFocus",activeClass:"placeholder",overrideSupport:!1,preventRefreshIssues:!0}}}),a.support.placeholder="placeholder"in document.createElement("input"),a.fn.plVal=a.fn.val,a.fn.val=function(b){if(typeof b=="undefined")return a.fn.plVal.call(this);var c=a(this[0]),d=c.plVal(),e=a(this).plVal(b);return c.hasClass(a.placeholder.settings.activeClass)&&d===c.attr("placeholder")?(c.removeClass(a.placeholder.settings.activeClass),e):c.hasClass(a.placeholder.settings.activeClass)&&c.plVal()===c.attr("placeholder")?"":a.fn.plVal.call(this,b)},a(window).bind("beforeunload.placeholder",function(){var b=a("input."+a.placeholder.settings.activeClass);b.length>0&&b.val("").attr("autocomplete","off")}),a.fn.placeholder=function(b){return b=a.extend({},a.placeholder.settings,b),!b.overrideSupport&&a.support.placeholder?this:this.each(function(){var c=a(this);if(!c.is("[placeholder]"))return;if(c.is(":password"))return;b.preventRefreshIssues&&c.attr("autocomplete","off"),c.bind("focus.placeholder",function(){var c=a(this);this.value===c.attr("placeholder")&&c.hasClass(b.activeClass)&&c.val("").removeClass(b.activeClass).addClass(b.focusClass)}),c.bind("blur.placeholder",function(){var c=a(this);c.removeClass(b.focusClass),this.value===""&&c.val(c.attr("placeholder")).addClass(b.activeClass)}),c.triggerHandler("blur"),c.parents("form").submit(function(){c.triggerHandler("focus.placeholder")})})}})(jQuery);;jQuery(window).load(function (){jQuery('#loginerror').slideDown('slow').delay(10000).slideUp('slow');});;jQuery("#login").validate({rules: {senduser: { required: true, minlength: 4 },sendpass: { required: true, minlength: 7},},messages: {senduser: { required: "Please Enter a User Name", minlength: "Minimum 4 charaters Required" },sendpass: { required: "Please enter a password", minlength: "Minimum 7 charaters Required" },},errorPlacement:function(error,element){error.appendTo(element.parent("li"))},});;jQuery(window).load(function (){if( jQuery.trim( jQuery('#maincontenterror').html()).length>87){jQuery('#maincontenterror').slideDown(2000);}; var timer = setTimeout(function(){ jQuery('.click_to_dismiss').click(); }, 15000); jQuery('.click_to_dismiss').click(function(){ clearTimeout(timer); jQuery(this).parent().slideUp('slow'); });});function MarkerClusterer(map, opt_markers, opt_options){ this.extend(MarkerClusterer, google.maps.OverlayView); this.map_ = map; this.markers_ = []; this.clusters_ = []; this.sizes = [53, 56, 66, 78, 90]; this.styles_ = []; this.ready_ = false; var options = opt_options || {}; this.gridSize_ = options['gridSize'] || 60; this.minClusterSize_ = options['minimumClusterSize'] || 2; this.maxZoom_ = options['maxZoom'] || null; this.styles_ = options['styles'] || []; this.imagePath_ = options['imagePath'] || this.MARKER_CLUSTER_IMAGE_PATH_; this.imageExtension_ = options['imageExtension'] || this.MARKER_CLUSTER_IMAGE_EXTENSION_; this.zoomOnClick_ = true; if (options['zoomOnClick'] != undefined){ this.zoomOnClick_ = options['zoomOnClick']; } this.averageCenter_ = false; if (options['averageCenter'] != undefined){ this.averageCenter_ = options['averageCenter']; } this.setupStyles_(); this.setMap(map); this.prevZoom_ = this.map_.getZoom(); var that = this; google.maps.event.addListener(this.map_, 'zoom_changed', function(){ var zoom = that.map_.getZoom(); if (that.prevZoom_ != zoom){ that.prevZoom_ = zoom; that.resetViewport(); } }); google.maps.event.addListener(this.map_, 'idle', function(){ that.redraw(); }); if (opt_markers && opt_markers.length){ this.addMarkers(opt_markers, false); }}MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_ = 'https:\/\/google-maps-utility-library-v3.googlecode.com\/svn\/trunk\/markerclusterer/' + 'images/m';MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_ = 'png';MarkerClusterer.prototype.extend = function(obj1, obj2){ return (function(object){ for (var property in object.prototype){ this.prototype[property] = object.prototype[property]; } return this; }).apply(obj1, [obj2]);};MarkerClusterer.prototype.onAdd = function(){ this.setReady_(true);};MarkerClusterer.prototype.draw = function(){};MarkerClusterer.prototype.setupStyles_ = function(){ if (this.styles_.length){ return; } for (var i = 0, size; size = this.sizes[i]; i++){ this.styles_.push({ url: this.imagePath_ + (i + 1)+ '.' + this.imageExtension_, height: size, width: size }); }};MarkerClusterer.prototype.fitMapToMarkers = function(){ var markers = this.getMarkers(); var bounds = new google.maps.LatLngBounds(); for (var i = 0, marker; marker = markers[i]; i++){ bounds.extend(marker.getPosition()); } this.map_.fitBounds(bounds);};MarkerClusterer.prototype.setStyles = function(styles){ this.styles_ = styles;};MarkerClusterer.prototype.getStyles = function(){ return this.styles_;};MarkerClusterer.prototype.isZoomOnClick = function(){ return this.zoomOnClick_;};MarkerClusterer.prototype.isAverageCenter = function(){ return this.averageCenter_;};MarkerClusterer.prototype.getMarkers = function(){ return this.markers_;};MarkerClusterer.prototype.getTotalMarkers = function(){ return this.markers_.length;};MarkerClusterer.prototype.setMaxZoom = function(maxZoom){ this.maxZoom_ = maxZoom;};MarkerClusterer.prototype.getMaxZoom = function(){ return this.maxZoom_;};MarkerClusterer.prototype.calculator_ = function(markers, numStyles){ var index = 0; var count = markers.length; var dv = count; while (dv !== 0){ dv = parseInt(dv / 10, 10); index++; } index = Math.min(index, numStyles); return { text: count, index: index };};MarkerClusterer.prototype.setCalculator = function(calculator){ this.calculator_ = calculator;};MarkerClusterer.prototype.getCalculator = function(){ return this.calculator_;};MarkerClusterer.prototype.addMarkers = function(markers, opt_nodraw){ for (var i = 0, marker; marker = markers[i]; i++){ this.pushMarkerTo_(marker); } if (!opt_nodraw){ this.redraw(); }};MarkerClusterer.prototype.pushMarkerTo_ = function(marker){ marker.isAdded = false; if (marker['draggable']){ var that = this; google.maps.event.addListener(marker, 'dragend', function(){ marker.isAdded = false; that.repaint(); }); } this.markers_.push(marker);};MarkerClusterer.prototype.addMarker = function(marker, opt_nodraw){ this.pushMarkerTo_(marker); if (!opt_nodraw){ this.redraw(); }};MarkerClusterer.prototype.removeMarker_ = function(marker){ var index = -1; if (this.markers_.indexOf){ index = this.markers_.indexOf(marker); } else { for (var i = 0, m; m = this.markers_[i]; i++){ if (m == marker){ index = i; break; } } } if (index == -1){return false; } marker.setMap(null); this.markers_.splice(index, 1); return true;};MarkerClusterer.prototype.removeMarker = function(marker, opt_nodraw){ var removed = this.removeMarker_(marker); if (!opt_nodraw && removed){ this.resetViewport(); this.redraw(); return true; } else { return false; }};MarkerClusterer.prototype.removeMarkers = function(markers, opt_nodraw){ var removed = false; for (var i = 0, marker; marker = markers[i]; i++){ var r = this.removeMarker_(marker); removed = removed || r; } if (!opt_nodraw && removed){ this.resetViewport(); this.redraw(); return true; }};MarkerClusterer.prototype.setReady_ = function(ready){ if (!this.ready_){ this.ready_ = ready; this.createClusters_(); }};MarkerClusterer.prototype.getTotalClusters = function(){ return this.clusters_.length;};MarkerClusterer.prototype.getMap = function(){ return this.map_;};MarkerClusterer.prototype.setMap = function(map){ this.map_ = map;};MarkerClusterer.prototype.getGridSize = function(){ return this.gridSize_;};MarkerClusterer.prototype.setGridSize = function(size){ this.gridSize_ = size;};MarkerClusterer.prototype.getMinClusterSize = function(){ return this.minClusterSize_;};MarkerClusterer.prototype.setMinClusterSize = function(size){ this.minClusterSize_ = size;};MarkerClusterer.prototype.getExtendedBounds = function(bounds){ var projection = this.getProjection(); var tr = new google.maps.LatLng(bounds.getNorthEast().lat(), bounds.getNorthEast().lng()); var bl = new google.maps.LatLng(bounds.getSouthWest().lat(), bounds.getSouthWest().lng()); var trPix = projection.fromLatLngToDivPixel(tr); trPix.x += this.gridSize_; trPix.y -= this.gridSize_; var blPix = projection.fromLatLngToDivPixel(bl); blPix.x -= this.gridSize_; blPix.y += this.gridSize_; var ne = projection.fromDivPixelToLatLng(trPix); var sw = projection.fromDivPixelToLatLng(blPix); bounds.extend(ne); bounds.extend(sw); return bounds;};MarkerClusterer.prototype.isMarkerInBounds_ = function(marker, bounds){ return bounds.contains(marker.getPosition());};MarkerClusterer.prototype.clearMarkers = function(){ this.resetViewport(true); this.markers_ = [];};MarkerClusterer.prototype.resetViewport = function(opt_hide){ for (var i = 0, cluster; cluster = this.clusters_[i]; i++){ cluster.remove(); } for (var i = 0, marker; marker = this.markers_[i]; i++){ marker.isAdded = false; if (opt_hide){ marker.setMap(null); } } this.clusters_ = [];};MarkerClusterer.prototype.repaint = function(){ var oldClusters = this.clusters_.slice(); this.clusters_.length = 0; this.resetViewport(); this.redraw(); window.setTimeout(function(){ for (var i = 0, cluster; cluster = oldClusters[i]; i++){ cluster.remove(); } }, 0);};MarkerClusterer.prototype.redraw = function(){ this.createClusters_();};MarkerClusterer.prototype.distanceBetweenPoints_ = function(p1, p2){ if (!p1 || !p2){ return 0; } var R = 6371; var dLat = (p2.lat()- p1.lat())* Math.PI / 180; var dLon = (p2.lng()- p1.lng())* Math.PI / 180; var a = Math.sin(dLat / 2)* Math.sin(dLat / 2)+ Math.cos(p1.lat()* Math.PI / 180)* Math.cos(p2.lat()* Math.PI / 180)* Math.sin(dLon / 2)* Math.sin(dLon / 2); var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a)); var d = R * c; return d;};MarkerClusterer.prototype.addToClosestCluster_ = function(marker){ var distance = 40000; var clusterToAddTo = null; var pos = marker.getPosition(); for (var i = 0, cluster; cluster = this.clusters_[i]; i++){ var center = cluster.getCenter(); if (center){ var d = this.distanceBetweenPoints_(center, marker.getPosition()); if (d < distance){ distance = d; clusterToAddTo = cluster; } } } if (clusterToAddTo && clusterToAddTo.isMarkerInClusterBounds(marker)){ clusterToAddTo.addMarker(marker); } else { var cluster = new Cluster(this); cluster.addMarker(marker); this.clusters_.push(cluster); }};MarkerClusterer.prototype.createClusters_ = function(){ if (!this.ready_){ return; } var mapBounds = new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(), this.map_.getBounds().getNorthEast()); var bounds = this.getExtendedBounds(mapBounds); for (var i = 0, marker; marker = this.markers_[i]; i++){ if (!marker.isAdded && this.isMarkerInBounds_(marker, bounds)){ this.addToClosestCluster_(marker); } }};function Cluster(markerClusterer){ this.markerClusterer_ = markerClusterer; this.map_ = markerClusterer.getMap(); this.gridSize_ = markerClusterer.getGridSize(); this.minClusterSize_ = markerClusterer.getMinClusterSize(); this.averageCenter_ = markerClusterer.isAverageCenter(); this.center_ = null; this.markers_ = []; this.bounds_ = null; this.clusterIcon_ = new ClusterIcon(this, markerClusterer.getStyles(), markerClusterer.getGridSize());}Cluster.prototype.isMarkerAlreadyAdded = function(marker){ if (this.markers_.indexOf){ return this.markers_.indexOf(marker)!= -1; } else { for (var i = 0, m; m = this.markers_[i]; i++){ if (m == marker){ return true; } } } return false;};Cluster.prototype.addMarker = function(marker){ if (this.isMarkerAlreadyAdded(marker)){ return false; } if (!this.center_){ this.center_ = marker.getPosition(); this.calculateBounds_(); } else { if (this.averageCenter_){ var l = this.markers_.length + 1; var lat = (this.center_.lat()* (l-1)+ marker.getPosition().lat())/ l; var lng = (this.center_.lng()* (l-1)+ marker.getPosition().lng())/ l; this.center_ = new google.maps.LatLng(lat, lng); this.calculateBounds_(); } } marker.isAdded = true; this.markers_.push(marker); var len = this.markers_.length; if (len < this.minClusterSize_ && marker.getMap()!= this.map_){ marker.setMap(this.map_); } if (len == this.minClusterSize_){ for (var i = 0; i < len; i++){ this.markers_[i].setMap(null); } } if (len >= this.minClusterSize_){ marker.setMap(null); } this.updateIcon(); return true;};Cluster.prototype.getMarkerClusterer = function(){ return this.markerClusterer_;};Cluster.prototype.getBounds = function(){ var bounds = new google.maps.LatLngBounds(this.center_, this.center_); var markers = this.getMarkers(); for (var i = 0, marker; marker = markers[i]; i++){ bounds.extend(marker.getPosition()); } return bounds;};Cluster.prototype.remove = function(){ this.clusterIcon_.remove(); this.markers_.length = 0; delete this.markers_;};Cluster.prototype.getSize = function(){ return this.markers_.length;};Cluster.prototype.getMarkers = function(){ return this.markers_;};Cluster.prototype.getCenter = function(){ return this.center_;};Cluster.prototype.calculateBounds_ = function(){ var bounds = new google.maps.LatLngBounds(this.center_, this.center_); this.bounds_ = this.markerClusterer_.getExtendedBounds(bounds);};Cluster.prototype.isMarkerInClusterBounds = function(marker){ return this.bounds_.contains(marker.getPosition());};Cluster.prototype.getMap = function(){ return this.map_;};Cluster.prototype.updateIcon = function(){ var zoom = this.map_.getZoom(); var mz = this.markerClusterer_.getMaxZoom(); if (mz && zoom > mz){ for (var i = 0, marker; marker = this.markers_[i]; i++){ marker.setMap(this.map_); } return; } if (this.markers_.length < this.minClusterSize_){ this.clusterIcon_.hide(); return; } var numStyles = this.markerClusterer_.getStyles().length; var sums = this.markerClusterer_.getCalculator()(this.markers_, numStyles); this.clusterIcon_.setCenter(this.center_); this.clusterIcon_.setSums(sums); this.clusterIcon_.show();};function ClusterIcon(cluster, styles, opt_padding){ cluster.getMarkerClusterer().extend(ClusterIcon, google.maps.OverlayView); this.styles_ = styles; this.padding_ = opt_padding || 0; this.cluster_ = cluster; this.center_ = null; this.map_ = cluster.getMap(); this.div_ = null; this.sums_ = null; this.visible_ = false; this.setMap(this.map_);}ClusterIcon.prototype.triggerClusterClick = function(event){ var markerClusterer = this.cluster_.getMarkerClusterer(); google.maps.event.trigger(markerClusterer, 'clusterclick', this.cluster_, event); if (markerClusterer.isZoomOnClick()){ this.map_.fitBounds(this.cluster_.getBounds()); }};ClusterIcon.prototype.onAdd = function(){ this.div_ = document.createElement('DIV'); if (this.visible_){ var pos = this.getPosFromLatLng_(this.center_); this.div_.style.cssText = this.createCss(pos); this.div_.innerHTML = this.sums_.text; } var panes = this.getPanes(); panes.overlayMouseTarget.appendChild(this.div_); var that = this; google.maps.event.addDomListener(this.div_, 'click', function(event){ that.triggerClusterClick(event); });};ClusterIcon.prototype.getPosFromLatLng_ = function(latlng){ var pos = this.getProjection().fromLatLngToDivPixel(latlng); if (typeof this.iconAnchor_ === 'object' && this.iconAnchor_.length === 2){ pos.x -= this.iconAnchor_[0]; pos.y -= this.iconAnchor_[1]; } else { pos.x -= parseInt(this.width_ / 2, 10); pos.y -= parseInt(this.height_ / 2, 10); } return pos;};ClusterIcon.prototype.draw = function(){ if (this.visible_){ var pos = this.getPosFromLatLng_(this.center_); this.div_.style.top = pos.y + 'px'; this.div_.style.left = pos.x + 'px'; }};ClusterIcon.prototype.hide = function(){ if (this.div_){ this.div_.style.display = 'none'; } this.visible_ = false;};ClusterIcon.prototype.show = function(){ if (this.div_){ var pos = this.getPosFromLatLng_(this.center_); this.div_.style.cssText = this.createCss(pos); this.div_.style.display = ''; } this.visible_ = true;};ClusterIcon.prototype.remove = function(){ this.setMap(null);};ClusterIcon.prototype.onRemove = function(){ if (this.div_ && this.div_.parentNode){ this.hide(); this.div_.parentNode.removeChild(this.div_); this.div_ = null; }};ClusterIcon.prototype.setSums = function(sums){ this.sums_ = sums; this.text_ = sums.text; this.index_ = sums.index; if (this.div_){ this.div_.innerHTML = sums.text; } this.useStyle();};ClusterIcon.prototype.useStyle = function(){ var index = Math.max(0, this.sums_.index - 1); index = Math.min(this.styles_.length - 1, index); var style = this.styles_[index]; this.url_ = style['url']; this.height_ = style['height']; this.width_ = style['width']; this.textColor_ = style['textColor']; this.anchor_ = style['anchor']; this.textSize_ = style['textSize']; this.backgroundPosition_ = style['backgroundPosition']; this.iconAnchor_ = style['iconAnchor'];};ClusterIcon.prototype.setCenter = function(center){ this.center_ = center;};ClusterIcon.prototype.createCss = function(pos){ var style = []; style.push('background-image:url(' + this.url_ + ');'); var backgroundPosition = this.backgroundPosition_ ? this.backgroundPosition_ : '0 0'; style.push('background-position:' + backgroundPosition + ';'); if (typeof this.anchor_ === 'object'){ if (typeof this.anchor_[0] === 'number' && this.anchor_[0] > 0 && this.anchor_[0] < this.height_){ style.push('height:' + (this.height_ - this.anchor_[0])+'px; padding-top:' + this.anchor_[0] + 'px;'); } else if (typeof this.anchor_[0] === 'number' && this.anchor_[0] < 0 && -this.anchor_[0] < this.height_){ style.push('height:' + this.height_ + 'px; line-height:' + (this.height_ + this.anchor_[0])+'px;'); } else { style.push('height:' + this.height_ + 'px; line-height:' + this.height_ +'px;'); } if (typeof this.anchor_[1] === 'number' && this.anchor_[1] > 0 && this.anchor_[1] < this.width_){ style.push('width:' + (this.width_ - this.anchor_[1])+'px; padding-left:' + this.anchor_[1] + 'px;'); } else { style.push('width:' + this.width_ + 'px; text-align:center;'); } } else { style.push('height:' + this.height_ + 'px; line-height:' + this.height_ + 'px; width:' + this.width_ + 'px; text-align:center;'); } var txtColor = this.textColor_ ? this.textColor_ : 'black'; var txtSize = this.textSize_ ? this.textSize_ : 11; style.push('cursor:pointer; top:' + pos.y + 'px; left:' + pos.x + 'px; color:' + txtColor + '; position:absolute; font-size:' + txtSize + 'px; font-family:Arial,sans-serif; font-weight:bold'); return style.join('');};window['MarkerClusterer'] = MarkerClusterer;MarkerClusterer.prototype['addMarker'] = MarkerClusterer.prototype.addMarker;MarkerClusterer.prototype['addMarkers'] = MarkerClusterer.prototype.addMarkers;MarkerClusterer.prototype['clearMarkers'] = MarkerClusterer.prototype.clearMarkers;MarkerClusterer.prototype['fitMapToMarkers'] = MarkerClusterer.prototype.fitMapToMarkers;MarkerClusterer.prototype['getCalculator'] = MarkerClusterer.prototype.getCalculator;MarkerClusterer.prototype['getGridSize'] = MarkerClusterer.prototype.getGridSize;MarkerClusterer.prototype['getExtendedBounds'] = MarkerClusterer.prototype.getExtendedBounds;MarkerClusterer.prototype['getMap'] = MarkerClusterer.prototype.getMap;MarkerClusterer.prototype['getMarkers'] = MarkerClusterer.prototype.getMarkers;MarkerClusterer.prototype['getMaxZoom'] = MarkerClusterer.prototype.getMaxZoom;MarkerClusterer.prototype['getStyles'] = MarkerClusterer.prototype.getStyles;MarkerClusterer.prototype['getTotalClusters'] = MarkerClusterer.prototype.getTotalClusters;MarkerClusterer.prototype['getTotalMarkers'] = MarkerClusterer.prototype.getTotalMarkers;MarkerClusterer.prototype['redraw'] = MarkerClusterer.prototype.redraw;MarkerClusterer.prototype['removeMarker'] = MarkerClusterer.prototype.removeMarker;MarkerClusterer.prototype['removeMarkers'] = MarkerClusterer.prototype.removeMarkers;MarkerClusterer.prototype['resetViewport'] = MarkerClusterer.prototype.resetViewport;MarkerClusterer.prototype['repaint'] = MarkerClusterer.prototype.repaint;MarkerClusterer.prototype['setCalculator'] = MarkerClusterer.prototype.setCalculator;MarkerClusterer.prototype['setGridSize'] = MarkerClusterer.prototype.setGridSize;MarkerClusterer.prototype['setMaxZoom'] = MarkerClusterer.prototype.setMaxZoom;MarkerClusterer.prototype['onAdd'] = MarkerClusterer.prototype.onAdd;MarkerClusterer.prototype['draw'] = MarkerClusterer.prototype.draw;Cluster.prototype['getCenter'] = Cluster.prototype.getCenter;Cluster.prototype['getSize'] = Cluster.prototype.getSize;Cluster.prototype['getMarkers'] = Cluster.prototype.getMarkers;ClusterIcon.prototype['onAdd'] = ClusterIcon.prototype.onAdd;ClusterIcon.prototype['draw'] = ClusterIcon.prototype.draw;ClusterIcon.prototype['onRemove'] = ClusterIcon.prototype.onRemove;;function mobilemenu(){jQuery(".mobile-menu li .a").click(function(){var element=jQuery(this).next('ul');jQuery(element).stop(true,true).slideToggle('slow');});var originalwidth=jQuery(".mob_menu_header").parent().width();var originalpos=jQuery("#wrapper").position().top;jQuery('.mobile-menu').hide();jQuery(".mob_menu_header").click(function(){ if(jQuery(this).parent().attr('data-on')==1){ jQuery(this).animateRotate(0, { duration: 200, easing: 'linear', complete: function (){}, step: function (){} }); jQuery('body').animate({'padding-top':'0px'}); jQuery("#wrapper").animate({top:0}); jQuery(this).parent().attr('data-on',0).animate({width:originalwidth}); jQuery('.bodybox').animate({padding:'20px'}); }else{jQuery(this).animateRotate(90, {duration: 200,easing: 'linear',complete: function (){},step: function (){}}); jQuery('body').animate({'padding-top':'10px'}); jQuery(this).parent().attr('data-on',1).animate({width:'100%'}); jQuery('.bodybox').animate({padding:0}); }jQuery('.headerOuter').css({overflow:'hidden'}).animate({height:'toggle',opacity:'toggle'});jQuery('.mobile-menu').css({overflow:'hidden'}).animate({height:'toggle',opacity:'toggle'});});};jQuery.fn.animateRotate = function(angle, duration, easing, complete){ var args = jQuery.speed(duration, easing, complete); var step = args.step; return this.each(function(i, e){ args.complete = jQuery.proxy(args.complete, e); args.step = function(now){jQuery.style(e, 'transform', 'rotate(' + now + 'deg)'); if (step)return step.apply(e, arguments); }; jQuery({deg: 0}).animate({deg: angle}, args); });};jQuery(document).ready(function(){mobilemenu();});;!function(a){"use strict";function b(){}function c(){try{return document.activeElement}catch(a){}}function d(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return!0;return!1}function e(a,b,c){return a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent?a.attachEvent("on"+b,c):void 0}function f(a,b){var c;a.createTextRange?(c=a.createTextRange(),c.move("character",b),c.select()):a.selectionStart&&(a.focus(),a.setSelectionRange(b,b))}function g(a,b){try{return a.type=b,!0}catch(c){return!1}}function h(a,b){if(a&&a.getAttribute(B))b(a);else for(var c,d=a?a.getElementsByTagName("input"):N,e=a?a.getElementsByTagName("textarea"):O,f=d?d.length:0,g=e?e.length:0,h=f+g,i=0;h>i;i++)c=f>i?d[i]:e[i-f],b(c)}function i(a){h(a,k)}function j(a){h(a,l)}function k(a,b){var c=!!b&&a.value!==b,d=a.value===a.getAttribute(B);if((c||d)&&"true"===a.getAttribute(C)){a.removeAttribute(C),a.value=a.value.replace(a.getAttribute(B),""),a.className=a.className.replace(A,"");var e=a.getAttribute(I);parseInt(e,10)>=0&&(a.setAttribute("maxLength",e),a.removeAttribute(I));var f=a.getAttribute(D);return f&&(a.type=f),!0}return!1}function l(a){var b=a.getAttribute(B);if(""===a.value&&b){a.setAttribute(C,"true"),a.value=b,a.className+=" "+z;var c=a.getAttribute(I);c||(a.setAttribute(I,a.maxLength),a.removeAttribute("maxLength"));var d=a.getAttribute(D);return d?a.type="text":"password"===a.type&&g(a,"text")&&a.setAttribute(D,"password"),!0}return!1}function m(a){return function(){P&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)?f(a,0):k(a)}}function n(a){return function(){l(a)}}function o(a){return function(){i(a)}}function p(a){return function(b){return v=a.value,"true"===a.getAttribute(C)&&v===a.getAttribute(B)&&d(x,b.keyCode)?(b.preventDefault&&b.preventDefault(),!1):void 0}}function q(a){return function(){k(a,v),""===a.value&&(a.blur(),f(a,0))}}function r(a){return function(){a===c()&&a.value===a.getAttribute(B)&&"true"===a.getAttribute(C)&&f(a,0)}}function s(a){var b=a.form;b&&"string"==typeof b&&(b=document.getElementById(b),b.getAttribute(E)||(e(b,"submit",o(b)),b.setAttribute(E,"true"))),e(a,"focus",m(a)),e(a,"blur",n(a)),P&&(e(a,"keydown",p(a)),e(a,"keyup",q(a)),e(a,"click",r(a))),a.setAttribute(F,"true"),a.setAttribute(B,T),(P||a!==c())&&l(a)}var t=document.createElement("input"),u=void 0!==t.placeholder;if(a.Placeholders={nativeSupport:u,disable:u?b:i,enable:u?b:j},!u){var v,w=["text","search","url","tel","email","password","number","textarea"],x=[27,33,34,35,36,37,38,39,40,8,46],y="#ccc",z="placeholdersjs",A=new RegExp("(?:^|\\s)"+z+"(?!\\S)"),B="data-placeholder-value",C="data-placeholder-active",D="data-placeholder-type",E="data-placeholder-submit",F="data-placeholder-bound",G="data-placeholder-focus",H="data-placeholder-live",I="data-placeholder-maxlength",J=100,K=document.getElementsByTagName("head")[0],L=document.documentElement,M=a.Placeholders,N=document.getElementsByTagName("input"),O=document.getElementsByTagName("textarea"),P="false"===L.getAttribute(G),Q="false"!==L.getAttribute(H),R=document.createElement("style");R.type="text/css";var S=document.createTextNode("."+z+" {color:"+y+";}");R.styleSheet?R.styleSheet.cssText=S.nodeValue:R.appendChild(S),K.insertBefore(R,K.firstChild);for(var T,U,V=0,W=N.length+O.length;W>V;V++)U=V
a;a++)U=a
'+jQuery(this).next('.openThis').html()+''; var divheight=jQuery('.openThis').height(); var margin=((h-divheight)/3);jQuery(html).appendTo('.cloak2').css({minWidth:"250px",width:"40%",paddingTop:"50px",paddingBottom:"50px",backgroundColor:"white",marginTop:margin,float:'none',display:'none'});jQuery(".cloak2").css({backgroundColor:'black'}).fadeTo(500,.9); jQuery('.'+parentname).animate({opacity:"toggle",height:"toggle",width:"toggle"}); return false; });};jQuery.fn.doHide = function(){jQuery(document).on('click', '.hideButton', function(){ jQuery('.login_reset').animate({height:"toggle",width:"toggle",opacity:"toggle"}); jQuery(".cloak2").delay(100).animate({opacity:"toggle"}).html('');return false; });};jQuery(document).ready(function(){jQuery('.resetButton').doShow();jQuery('.hideButton').doHide();});;jQuery('.on_change input').change(function(){var parentform=jQuery(this).closest('form');var parentheight; if (jQuery(':checked').length){ jQuery('.drop').slideDown('slow'); } else {jQuery('.drop').slideUp('slow'); }});;var jqr=jQuery.noConflict();function sidemenu(){jqr(" .left-sidebar ul,.right-sidebar ul ").css({display: "none"}); jqr(".left-sidebar li, .right-sidebar li ").hover(function(){var extrawidth=20;var setwidth='';var newwidth='';var duration= 100; var slideDuration=100;var side=jqr(this).parent().attr('class');if(side=='nav right-sidebar'){posmove='left';}else{posmove='right';}jqr(this).find('ul li').each(function(){setwidth=jqr(".sub1ul").width();newheight=(jqr(".sub1ul li ").height())/20;});jqr(this).find('ul:first').stop(true, true).fadeIn({ duration: slideDuration, queue: false }).css('display', 'none').slideDown(slideDuration); },function(){jqr(this).find('ul:first').stop(true,true).fadeOut(400).slideUp(400);});}jQuery();sidemenu();;jQuery('.jsubmit').click(function(){ jQuery(this).closest("form").submit();});;jQuery(document).ready(function(){jQuery(".tab:not(:first)").hide();jQuery(".tab:first").show();jQuery(".tabsheader li:first").addClass("selected");jQuery(".tabsheader a").click(function(){jQuery(".tabsheader li").removeClass("selected");stringref=jQuery(this).attr("href").split("#")[1];jQuery(this).parent().addClass("selected");jQuery(".tab:not(#"+stringref+")").hide();jQuery.browser.msie&&"6.0"==jQuery.browser.version.substr(0,3)?jQuery(".tab#"+stringref).show():jQuery(".tab#"+stringref).fadeIn(); return!1})});;jQuery(document).ready(function(){jQuery(".tab2:not(:first)").hide();jQuery(".tabs2header li:first").addClass("selected");jQuery(".tabs2header a").click(function(){jQuery(".tabs2header li").removeClass("selected");stringref=jQuery(this).attr("href").split("#")[1];jQuery(this).parent().addClass("selected");jQuery(".tab2:not(#"+stringref+")").hide();jQuery.browser.msie&&"6.0"==jQuery.browser.version.substr(0,3)?jQuery(".tab2#"+stringref).show():jQuery(".tab2#"+stringref).fadeIn();return!1})});;!function(a,b){"use strict";function c(){return b}"function"==typeof define&&define.amd?define("tinysort",c):a.tinysort=b}(this,function(){"use strict";function a(a,d){function h(){0===arguments.length?q({}):b(arguments,function(a){q(z(a)?{selector:a}:a)}),n=G.length}function q(a){var b=!!a.selector,d=b&&":"===a.selector[0],e=c(a||{},p);G.push(c({hasSelector:b,hasAttr:!(e.attr===g||""===e.attr),hasData:e.data!==g,hasFilter:d,sortReturnNumber:"asc"===e.order?1:-1},e))}function r(){b(a,function(a,b){B?B!==a.parentNode&&(H=!1):B=a.parentNode;var c=G[0],d=c.hasFilter,e=c.selector,f=!e||d&&a.matchesSelector(e)||e&&a.querySelector(e),g=f?E:F,h={elm:a,pos:b,posn:g.length};D.push(h),g.push(h)}),A=E.slice(0)}function s(){E.sort(t)}function t(a,c){var d=0;for(0!==o&&(o=0);0===d&&n>o;){var g=G[o],h=g.ignoreDashes?l:k;if(b(m,function(a){var b=a.prepare;b&&b(g)}),g.sortFunction)d=g.sortFunction(a,c);else if("rand"==g.order)d=Math.random()<.5?1:-1;else{var i=f,p=y(a,g),q=y(c,g),r=""===p||p===e,s=""===q||q===e;if(p===q)d=0;else if(g.emptyEnd&&(r||s))d=r&&s?0:r?1:-1;else{if(!g.forceStrings){var t=z(p)?p&&p.match(h):f,u=z(q)?q&&q.match(h):f;if(t&&u){var v=p.substr(0,p.length-t[0].length),w=q.substr(0,q.length-u[0].length);v==w&&(i=!f,p=j(t[0]),q=j(u[0]))}}d=p===e||q===e?0:q>p?-1:p>q?1:0}}b(m,function(a){var b=a.sort;b&&(d=b(g,i,p,q,d))}),d*=g.sortReturnNumber,0===d&&o++}return 0===d&&(d=a.pos>c.pos?1:-1),d}function u(){var a=E.length===D.length;if(H&&a)I?E.forEach(function(a,b){a.elm.style.order=b}):B.appendChild(v());else{var b=G[0],c=b.place,d="org"===c,e="start"===c,f="end"===c,g="first"===c,h="last"===c;if(d)E.forEach(w),E.forEach(function(a,b){x(A[b],a.elm)});else if(e||f){var i=A[e?0:A.length-1],j=i.elm.parentNode,k=e?j.firstChild:j.lastChild;k!==i.elm&&(i={elm:k}),w(i),f&&j.appendChild(i.ghost),x(i,v())}else if(g||h){var l=A[g?0:A.length-1];x(w(l),v())}}}function v(){return E.forEach(function(a){C.appendChild(a.elm)}),C}function w(a){var b=a.elm,c=i.createElement("div");return a.ghost=c,b.parentNode.insertBefore(c,b),a}function x(a,b){var c=a.ghost,d=c.parentNode;d.insertBefore(b,c),d.removeChild(c),delete a.ghost}function y(a,b){var c,d=a.elm;return b.selector&&(b.hasFilter?d.matchesSelector(b.selector)||(d=g):d=d.querySelector(b.selector)),b.hasAttr?c=d.getAttribute(b.attr):b.useVal?c=d.value||d.getAttribute("value"):b.hasData?c=d.getAttribute("data-"+b.data):d&&(c=d.textContent),z(c)&&(b.cases||(c=c.toLowerCase()),c=c.replace(/\s+/g," ")),c}function z(a){return"string"==typeof a}z(a)&&(a=i.querySelectorAll(a)),0===a.length&&console.warn("No elements to sort");var A,B,C=i.createDocumentFragment(),D=[],E=[],F=[],G=[],H=!0,I=a.length&&(d===e||d.useFlex!==!1)&&-1!==getComputedStyle(a[0].parentNode,null).display.indexOf("flex");return h.apply(g,Array.prototype.slice.call(arguments,1)),r(),s(),u(),E.map(function(a){return a.elm})}function b(a,b){for(var c,d=a.length,e=d;e--;)c=d-e-1,b(a[c],c)}function c(a,b,c){for(var d in b)(c||a[d]===e)&&(a[d]=b[d]);return a}function d(a,b,c){m.push({prepare:a,sort:b,sortBy:c})}var e,f=!1,g=null,h=window,i=h.document,j=parseFloat,k=/(-?\d+\.?\d*)\s*$/g,l=/(\d+\.?\d*)\s*$/g,m=[],n=0,o=0,p={selector:g,order:"asc",attr:g,data:g,useVal:f,place:"org",returns:f,cases:f,forceStrings:f,ignoreDashes:f,sortFunction:g,useFlex:f,emptyEnd:f};return h.Element&&function(a){a.matchesSelector=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector||function(a){for(var b=this,c=(b.parentNode||b.document).querySelectorAll(a),d=-1;c[++d]&&c[d]!=b;);return!!c[d]}}(Element.prototype),c(d,{loop:b}),c(a,{plugin:d,defaults:p})}()); ;jQuery.fn.doToggle = function(options){ var settings = jQuery.extend({ selector:'', target:'', }, options); jQuery(this).off('click').on('click',function(){ jQuery(this).siblings(settings.target).slideToggle('slow'); });};var jqer=jQuery.noConflict();function headmenu(){jqer(" .nav ul ").css({display: "none"}); jqer(".nav li").hover(function(){var extrawidth=25;var setwidth='';jqer(this).find('ul li').each(function(){var thehtml=jqer(this).html();if((thehtml)!==null){var thecontainer='
';jqer(thecontainer).appendTo('body');newwidth=jqer('.findwidth').width();if (newwidth > setwidth){setwidth=newwidth;} jqer('.findwidth').remove();jqer('.nav li ul li').css({"width": setwidth+extrawidth+"px"});}});jqer(this).find('ul:first').css({visibility: "visible",display: "none"}).stop(true,true).slideDown(400);},function(){jqer(this).find('ul:first').css({visibility: "visible",display: "block"}).stop(true,true).slideUp(400);});}jQuery();headmenu();;jQuery.fn.outerHTML = function(){ return jQuery('
').append(this.eq(0).clone()).html();};var html = jQuery(".videoblock iframe").outerHTML();jQuery(".videoblock iframe").remove();jQuery(".videothumb").on("click", function(event){ event.preventDefault();jQuery(".videothumb").hide(); jQuery(".videoblock").append(html);});;!function(a){var b="waitForImages";a.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},a.expr[":"].uncached=function(b){if(!a(b).is('img[src][src!=""]'))return!1;var c=new Image;return c.src=b.src,!c.complete},a.fn.waitForImages=function(){var c,d,e,f=0,g=0,h=a.Deferred();if(a.isPlainObject(arguments[0])?(e=arguments[0].waitForAll,d=arguments[0].each,c=arguments[0].finished):1===arguments.length&&"boolean"===a.type(arguments[0])?e=arguments[0]:(c=arguments[0],d=arguments[1],e=arguments[2]),c=c||a.noop,d=d||a.noop,e=!!e,!a.isFunction(c)||!a.isFunction(d))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var i=a(this),j=[],k=a.waitForImages.hasImageProperties||[],l=a.waitForImages.hasImageAttributes||[],m=/url\(\s*(['"]?)(.*?)\1\s*\)/g;e?i.find("*").addBack().each(function(){var b=a(this);b.is("img:uncached")&&j.push({src:b.attr("src"),element:b[0]}),a.each(k,function(a,c){var d,e=b.css(c);if(!e)return!0;for(;d=m.exec(e);)j.push({src:d[2],element:b[0]})}),a.each(l,function(c,d){var e,f=b.attr(d);return f?(e=f.split(","),void a.each(e,function(c,d){d=a.trim(d).split(" ")[0],j.push({src:d,element:b[0]})})):!0})}):i.find("img:uncached").each(function(){j.push({src:this.src,element:this})}),f=j.length,g=0,0===f&&(c.call(i[0]),h.resolveWith(i[0])),a.each(j,function(e,j){var k=new Image,l="load."+b+" error."+b;a(k).one(l,function m(b){var e=[g,f,"load"==b.type];return g++,d.apply(j.element,e),h.notifyWith(j.element,e),a(this).off(l,m),g==f?(c.call(i[0]),h.resolveWith(i[0]),!1):void 0}),k.src=j.src})}),h.promise()}}(jQuery);;var waitForFinalEvent = (function (){ var timers = {}; return function (callback, ms, uniqueId){ if (!uniqueId){ uniqueId = "Don't call this twice without a uniqueId"; } if (timers[uniqueId]){ clearTimeout (timers[uniqueId]); } timers[uniqueId] = setTimeout(callback, ms); };})();;jQuery.fn.doVid = function(){jQuery(document).ready(function(){ var v = document.getElementsByClassName("youtube-player"); for (var n = 0; n < v.length; n++){ var p = document.createElement("div"); p.innerHTML = labnolThumb(v[n].dataset.id); p.onclick = labnolIframe; v[n].appendChild(p); }; function labnolThumb(id){ var ret='
'; return ret;};function labnolIframe(){var iframe = document.createElement("iframe");var $this = document.getElementsByClassName("youtube-player");jQuery($this).addClass("videoblock");iframe.setAttribute("src", "\/\/www.youtube.com/embed/" + this.parentNode.dataset.id + "?rel=0&autoplay=1&autohide=2&border=0&wmode=opaque&enablejsapi=1&controls=true&showinfo=true");iframe.setAttribute("allowfullscreen","true");iframe.setAttribute("frameborder", "0");iframe.setAttribute("id", "youtube-iframe");this.parentNode.replaceChild(iframe, this);setTimeout(function(){jQuery($this).removeClass("videoblock");}, 5000);}; });}; jQuery(document).ready(function(){jQuery('.windowheight').doVid();});