(function(d){d.fn.ajaxSubmit=function(y){if(!this.length){c("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof y=="function"){y={success:y}}var v=this.attr("action")||window.location.href;v=(v.match(/^([^#]+)/)||[])[1];v=v||"";y=d.extend({url:v,type:this.attr("method")||"GET"},y||{});var A={};this.trigger("form-pre-serialize",[this,y,A]);if(A.veto){c("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(y.beforeSerialize&&y.beforeSerialize(this,y)===false){c("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var b=this.formToArray(y.semantic);if(y.data){y.extraData=y.data;for(var w in y.data){if(y.data[w] instanceof Array){for(var x in y.data[w]){b.push({name:w,value:y.data[w][x]})}}else{b.push({name:w,value:y.data[w]})}}}if(y.beforeSubmit&&y.beforeSubmit(b,this,y)===false){c("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[b,this,y,A]);if(A.veto){c("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var u=d.param(b);if(y.type.toUpperCase()=="GET"){y.url+=(y.url.indexOf("?")>=0?"&":"?")+u;y.data=null}else{y.data=u}var z=this,a=[];if(y.resetForm){a.push(function(){z.resetForm()})}if(y.clearForm){a.push(function(){z.clearForm()})}if(!y.dataType&&y.target){var k=y.success||function(){};a.push(function(e){d(y.target).html(e).each(k,arguments)})}else{if(y.success){a.push(y.success)}}y.success=function(h,g){for(var e=0,f=a.length;e<f;e++){a[e].apply(y,[h,g,z])}};var q=d("input:file",this).fieldValue();var n=false;for(var B=0;B<q.length;B++){if(q[B]){n=true}}if(y.iframe||n){if(y.closeKeepAlive){d.get(y.closeKeepAlive,j)}else{j()}}else{d.ajax(y)}this.trigger("form-submit-notify",[this,y]);return this;function j(){var G=z[0];if(d(":input[name=submit]",G).length){alert('Error: Form elements must not be named "submit".');return}var r=d.extend({},d.ajaxSettings,y);var i=jQuery.extend(true,{},d.extend(true,{},d.ajaxSettings),r);var t="jqFormIO"+(new Date().getTime());var e=d('<iframe id="'+t+'" name="'+t+'" src="about:blank" />');var g=e[0];e.css({position:"absolute",top:"-1000px",left:"-1000px"});var h={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;e.attr("src","about:blank")}};var f=r.global;if(f&&!d.active++){d.event.trigger("ajaxStart")}if(f){d.event.trigger("ajaxSend",[h,r])}if(i.beforeSend&&i.beforeSend(h,i)===false){i.global&&jQuery.active--;return}if(h.aborted){return}var p=0;var l=0;var s=G.clk;if(s){var H=s.name;if(H&&!s.disabled){y.extraData=y.extraData||{};y.extraData[H]=s.value;if(s.type=="image"){y.extraData[name+".x"]=G.clk_x;y.extraData[name+".y"]=G.clk_y}}}setTimeout(function(){var E=z.attr("target"),C=z.attr("action");G.setAttribute("target",t);if(G.getAttribute("method")!="POST"){G.setAttribute("method","POST")}if(G.getAttribute("action")!=r.url){G.setAttribute("action",r.url)}if(!y.skipEncodingOverride){z.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(r.timeout){setTimeout(function(){l=true;m()},r.timeout)}var D=[];try{if(y.extraData){for(var F in y.extraData){D.push(d('<input type="hidden" name="'+F+'" value="'+y.extraData[F]+'" />').appendTo(G)[0])}}e.appendTo("body");g.attachEvent?g.attachEvent("onload",m):g.addEventListener("load",m,false);G.submit()}finally{G.setAttribute("action",C);E?G.setAttribute("target",E):z.removeAttr("target");d(D).remove()}},10);var o=0;function m(){if(p++){return}g.detachEvent?g.detachEvent("onload",m):g.removeEventListener("load",m,false);var C=true;try{if(l){throw"timeout"}var E,K;K=g.contentWindow?g.contentWindow.document:g.contentDocument?g.contentDocument:g.document;if((K.body==null||K.body.innerHTML=="")&&!o){o=1;p--;setTimeout(m,100);return}h.responseText=K.body?K.body.innerHTML:null;h.responseXML=K.XMLDocument?K.XMLDocument:K;h.getResponseHeader=function(J){var M={"content-type":r.dataType};return M[J]};if(r.dataType=="json"||r.dataType=="script"){var D=K.getElementsByTagName("textarea")[0];h.responseText=D?D.value:h.responseText}else{if(r.dataType=="xml"&&!h.responseXML&&h.responseText!=null){h.responseXML=I(h.responseText)}}E=d.httpData(h,r.dataType)}catch(F){C=false;d.handleError(r,h,"error",F)}if(C){r.success(E,"success");if(f){d.event.trigger("ajaxSuccess",[h,r])}}if(f){d.event.trigger("ajaxComplete",[h,r])}if(f&&!--d.active){d.event.trigger("ajaxStop")}if(r.complete){r.complete(h,C?"success":"error")}setTimeout(function(){e.remove();h.responseXML=null},100)}function I(D,C){if(window.ActiveXObject){C=new ActiveXObject("Microsoft.XMLDOM");C.async="false";C.loadXML(D)}else{C=(new DOMParser()).parseFromString(D,"text/xml")}return(C&&C.documentElement&&C.documentElement.tagName!="parsererror")?C:null}}};d.fn.ajaxForm=function(a){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){d(this).ajaxSubmit(a);return false}).each(function(){d(":submit,input:image",this).bind("click.form-plugin",function(e){var b=this.form;b.clk=this;if(this.type=="image"){if(e.offsetX!=undefined){b.clk_x=e.offsetX;b.clk_y=e.offsetY}else{if(typeof d.fn.offset=="function"){var h=d(this).offset();b.clk_x=e.pageX-h.left;b.clk_y=e.pageY-h.top}else{b.clk_x=e.pageX-this.offsetLeft;b.clk_y=e.pageY-this.offsetTop}}}setTimeout(function(){b.clk=b.clk_x=b.clk_y=null},10)})})};d.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){d(":submit,input:image",this).unbind("click.form-plugin")})};d.fn.formToArray=function(x){var w=[];if(this.length==0){return w}var t=this[0];var z=x?t.getElementsByTagName("*"):t.elements;if(!z){return w}for(var a=0,i=z.length;a<i;a++){var u=z[a];var v=u.name;if(!v){continue}if(x&&t.clk&&u.type=="image"){if(!u.disabled&&t.clk==u){w.push({name:v+".x",value:t.clk_x},{name:v+".y",value:t.clk_y})}continue}var y=d.fieldValue(u,true);if(y&&y.constructor==Array){for(var n=0,s=y.length;n<s;n++){w.push({name:v,value:y[n]})}}else{if(y!==null&&typeof y!="undefined"){w.push({name:v,value:y})}}}if(!x&&t.clk){var b=t.getElementsByTagName("input");for(var a=0,i=b.length;a<i;a++){var j=b[a];var v=j.name;if(v&&!j.disabled&&j.type=="image"&&t.clk==j){w.push({name:v+".x",value:t.clk_x},{name:v+".y",value:t.clk_y})}}}return w};d.fn.formSerialize=function(a){return d.param(this.formToArray(a))};d.fn.fieldSerialize=function(b){var a=[];this.each(function(){var i=this.name;if(!i){return}var k=d.fieldValue(this,b);if(k&&k.constructor==Array){for(var l=0,j=k.length;l<j;l++){a.push({name:i,value:k[l]})}}else{if(k!==null&&typeof k!="undefined"){a.push({name:this.name,value:k})}}});return d.param(a)};d.fn.fieldValue=function(b){for(var l=[],j=0,a=this.length;j<a;j++){var k=this[j];var i=d.fieldValue(k,b);if(i===null||typeof i=="undefined"||(i.constructor==Array&&!i.length)){continue}i.constructor==Array?d.merge(l,i):l.push(i)}return l};d.fieldValue=function(t,a){var v=t.name,x=t.type,y=t.tagName.toLowerCase();if(typeof a=="undefined"){a=true}if(a&&(!v||t.disabled||x=="reset"||x=="button"||(x=="checkbox"||x=="radio")&&!t.checked||(x=="submit"||x=="image")&&t.form&&t.form.clk!=t||y=="select"&&t.selectedIndex==-1)){return null}if(y=="select"){var b=t.selectedIndex;if(b<0){return null}var n=[],u=t.options;var s=(x=="select-one");var i=(s?b+1:u.length);for(var w=(s?b:0);w<i;w++){var z=u[w];if(z.selected){var r=z.value;if(!r){r=(z.attributes&&z.attributes.value&&!(z.attributes.value.specified))?z.text:z.value}if(s){return r}n.push(r)}}return n}return t.value};d.fn.clearForm=function(){return this.each(function(){d("input,select,textarea",this).clearFields()})};d.fn.clearFields=d.fn.clearInputs=function(){return this.each(function(){var b=this.type,a=this.tagName.toLowerCase();if(b=="text"||b=="password"||a=="textarea"){this.value=""}else{if(b=="checkbox"||b=="radio"){this.checked=false}else{if(a=="select"){this.selectedIndex=-1}}}})};d.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};d.fn.enable=function(a){if(a==undefined){a=true}return this.each(function(){this.disabled=!a})};d.fn.selected=function(a){if(a==undefined){a=true}return this.each(function(){var b=this.type;if(b=="checkbox"||b=="radio"){this.checked=a}else{if(this.tagName.toLowerCase()=="option"){var f=d(this).parent("select");if(a&&f[0]&&f[0].type=="select-one"){f.find("option").selected(false)}this.selected=a}}})};function c(){if(d.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);(function(b){b.fn.extend({autocomplete:function(a,e){var f=typeof a=="string";e=b.extend({},b.Autocompleter.defaults,{url:f?a:null,data:f?null:a,delay:f?b.Autocompleter.defaults.delay:10,max:e&&!e.scroll?10:150},e);e.highlight=e.highlight||function(c){return c};e.formatMatch=e.formatMatch||e.formatItem;return this.each(function(){new b.Autocompleter(this,e)})},result:function(a){return this.bind("result",a)},search:function(a){return this.trigger("search",[a])},flushCache:function(){return this.trigger("flushCache")},setOptions:function(a){return this.trigger("setOptions",[a])},unautocomplete:function(){return this.trigger("unautocomplete")}});b.Autocompleter=function(J,S){var O={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var N=b(J).attr("autocomplete","off").addClass(S.inputClass);var H;var a="";var K=b.Autocompleter.Cache(S);var Q=0;var C;var T={mouseDownOnSelect:false};var z=b.Autocompleter.Select(S,J,P,T);var E;b.browser.opera&&b(J.form).bind("submit.autocomplete",function(){if(E){E=false;return false}});N.bind((b.browser.opera?"keypress":"keydown")+".autocomplete",function(c){C=c.keyCode;switch(c.keyCode){case O.UP:c.preventDefault();if(z.visible()){z.prev()}else{B(0,true)}break;case O.DOWN:c.preventDefault();if(z.visible()){z.next()}else{B(0,true)}break;case O.PAGEUP:c.preventDefault();if(z.visible()){z.pageUp()}else{B(0,true)}break;case O.PAGEDOWN:c.preventDefault();if(z.visible()){z.pageDown()}else{B(0,true)}break;case S.multiple&&b.trim(S.multipleSeparator)==","&&O.COMMA:case O.TAB:case O.RETURN:if(P()){c.preventDefault();E=true;return false}break;case O.ESC:z.hide();break;default:clearTimeout(H);H=setTimeout(B,S.delay);break}}).focus(function(){Q++}).blur(function(){Q=0;if(!T.mouseDownOnSelect){A()}}).click(function(){if(Q++>1&&!z.visible()){B(0,true)}}).bind("search",function(){var c=(arguments.length>1)?arguments[1]:null;function d(h,g){var e;if(g&&g.length){for(var f=0;f<g.length;f++){if(g[f].result.toLowerCase()==h.toLowerCase()){e=g[f];break}}}if(typeof c=="function"){c(e)}else{N.trigger("result",e&&[e.data,e.value])}}b.each(F(N.val()),function(e,f){R(f,d,d)})}).bind("flushCache",function(){K.flush()}).bind("setOptions",function(){b.extend(S,arguments[1]);if("data" in arguments[1]){K.populate()}}).bind("unautocomplete",function(){z.unbind();N.unbind();b(J.form).unbind(".autocomplete")});function P(){var d=z.selected();if(!d){return false}var c=d.result;a=c;if(S.multiple){var e=F(N.val());if(e.length>1){c=e.slice(0,e.length-1).join(S.multipleSeparator)+S.multipleSeparator+c}c+=S.multipleSeparator}N.val(c);D();N.trigger("result",[d.data,d.value]);return true}function B(e,d){if(C==O.DEL){z.hide();return}var c=N.val();if(!d&&c==a){return}a=c;c=G(c);if(c.length>=S.minChars){N.addClass(S.loadingClass);if(!S.matchCase){c=c.toLowerCase()}R(c,I,D)}else{L();z.hide()}}function F(d){if(!d){return[""]}var e=d.split(S.multipleSeparator);var c=[];b.each(e,function(f,g){if(b.trim(g)){c[f]=b.trim(g)}});return c}function G(c){if(!S.multiple){return c}var d=F(c);return d[d.length-1]}function y(c,d){if(S.autoFill&&(G(N.val()).toLowerCase()==c.toLowerCase())&&C!=O.BACKSPACE){N.val(N.val()+d.substring(G(a).length));b.Autocompleter.Selection(J,a.length,a.length+d.length)}}function A(){clearTimeout(H);H=setTimeout(D,200)}function D(){var c=z.visible();z.hide();clearTimeout(H);L();if(S.mustMatch){N.search(function(d){if(!d){if(S.multiple){var e=F(N.val()).slice(0,-1);N.val(e.join(S.multipleSeparator)+(e.length?S.multipleSeparator:""))}else{N.val("")}}})}if(c){b.Autocompleter.Selection(J,J.value.length,J.value.length)}}function I(d,c){if(c&&c.length&&Q){L();z.display(c,d);y(d,c[0].value);z.show()}else{D()}}function R(d,f,c){if(!S.matchCase){d=d.toLowerCase()}var e=K.load(d);if(e&&e.length){f(d,e)}else{if((typeof S.url=="string")&&(S.url.length>0)){var g={};if(!S.ajaxcache){g={timestamp:+new Date()}}b.each(S.extraParams,function(h,i){g[h]=typeof i=="function"?i():i});b.ajax({mode:"abort",port:"autocomplete"+J.name,dataType:S.dataType,cache:S.ajaxcache,url:S.url,data:b.extend({q:G(d),limit:S.max},g),success:function(i){var h=S.parse&&S.parse(i)||M(i);K.add(d,h);f(d,h)}})}else{z.emptyList();c(d)}}}function M(f){var c=[];var e=f.split("\n");for(var d=0;d<e.length;d++){var g=b.trim(e[d]);if(g){g=g.split("|");c[c.length]={data:g,value:g[0],result:S.formatResult&&S.formatResult(g,g[0])||g[0]}}}return c}function L(){N.removeClass(S.loadingClass)}};b.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",ajaxcache:false,minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(a){return a[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(d,a){return d.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};b.Autocompleter.Cache=function(j){var m={};var k=0;function a(e,d){if(!j.matchCase){e=e.toLowerCase()}var c=e.indexOf(d);if(j.matchContains=="word"){c=e.toLowerCase().search("\\b"+d.toLowerCase())}if(c==-1){return false}return c==0||j.matchContains}function n(d,c){if(k>j.cacheLength){i()}if(!m[d]){k++}m[d]=c}function l(){if(!j.data){return false}var d={},c=0;if(!j.url){j.cacheLength=1}d[""]=[];for(var f=0,e=j.data.length;f<e;f++){var r=j.data[f];r=(typeof r=="string")?[r]:r;var h=j.formatMatch(r,f+1,j.data.length);if(h===false){continue}var g=h.charAt(0).toLowerCase();if(!d[g]){d[g]=[]}var s={value:h,data:r,result:j.formatResult&&j.formatResult(r)||h};d[g].push(s);if(c++<j.max){d[""].push(s)}}b.each(d,function(o,p){j.cacheLength++;n(o,p)})}setTimeout(l,25);function i(){m={};k=0}return{flush:i,add:n,populate:l,load:function(d){if(!j.cacheLength||!k){return null}if(!j.url&&j.matchContains){var c=[];for(var f in m){if(f.length>0){var e=m[f];b.each(e,function(o,h){if(a(h.value,d)){c.push(h)}})}}return c}else{if(m[d]){return m[d]}else{if(j.matchSubset){for(var g=d.length-1;g>=j.minChars;g--){var e=m[d.substr(0,g)];if(e){var c=[];b.each(e,function(o,h){if(a(h.value,d)){c[c.length]=h}});return c}}}}}return null}}};b.Autocompleter.Select=function(H,y,A,a){var x={ACTIVE:"ac_over"};var z,I=-1,u,B="",v=true,F,D;function C(){if(!v){return}F=b("<div/>").hide().addClass(H.resultsClass).css("position","absolute").appendTo(document.body);D=b("<ul/>").appendTo(F).mouseover(function(c){if(t(c).nodeName&&t(c).nodeName.toUpperCase()=="LI"){I=b("li",D).removeClass(x.ACTIVE).index(t(c));b(t(c)).addClass(x.ACTIVE)}}).click(function(c){b(t(c)).addClass(x.ACTIVE);A();y.focus();return false}).mousedown(function(){a.mouseDownOnSelect=true}).mouseup(function(){a.mouseDownOnSelect=false});if(H.width>0){F.css("width",H.width)}v=false}function t(d){var c=d.target;while(c&&c.tagName!="LI"){c=c.parentNode}if(!c){return[]}return c}function w(c){z.slice(I,I+1).removeClass(x.ACTIVE);J(c);var e=z.slice(I,I+1).addClass(x.ACTIVE);if(H.scroll){var d=0;z.slice(0,I).each(function(){d+=this.offsetHeight});if((d+e[0].offsetHeight-D.scrollTop())>D[0].clientHeight){D.scrollTop(d+e[0].offsetHeight-D.innerHeight())}else{if(d<D.scrollTop()){D.scrollTop(d)}}}}function J(c){I+=c;if(I<0){I=z.size()-1}else{if(I>=z.size()){I=0}}}function E(c){return H.max&&H.max<c?H.max:c}function G(){D.empty();var d=E(u.length);for(var e=0;e<d;e++){if(!u[e]){continue}var f=H.formatItem(u[e].data,e+1,d,u[e].value,B);if(f===false){continue}var c=b("<li/>").html(H.highlight(f,B)).addClass(e%2==0?"ac_even":"ac_odd").appendTo(D)[0];b.data(c,"ac_data",u[e])}z=D.find("li");if(H.selectFirst){z.slice(0,1).addClass(x.ACTIVE);I=0}if(b.fn.bgiframe){D.bgiframe()}}return{display:function(d,c){C();u=d;B=c;G()},next:function(){w(1)},prev:function(){w(-1)},pageUp:function(){if(I!=0&&I-8<0){w(-I)}else{w(-8)}},pageDown:function(){if(I!=z.size()-1&&I+8>z.size()){w(z.size()-1-I)}else{w(8)}},hide:function(){F&&F.hide();z&&z.removeClass(x.ACTIVE);I=-1},visible:function(){return F&&F.is(":visible")},current:function(){return this.visible()&&(z.filter("."+x.ACTIVE)[0]||H.selectFirst&&z[0])},show:function(){var e=b(y).offset();F.css({width:typeof H.width=="string"||H.width>0?H.width:b(y).width(),top:e.top+y.offsetHeight,left:e.left}).show();if(H.scroll){D.scrollTop(0);D.css({maxHeight:H.scrollHeight,overflow:"auto"});if(b.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var c=0;z.each(function(){c+=this.offsetHeight});var d=c>H.scrollHeight;D.css("height",d?H.scrollHeight:c);if(!d){z.width(D.width()-parseInt(z.css("padding-left"))-parseInt(z.css("padding-right")))}}}},selected:function(){var c=z&&z.filter("."+x.ACTIVE).removeClass(x.ACTIVE);return c&&c.length&&b.data(c[0],"ac_data")},emptyList:function(){D&&D.empty()},unbind:function(){F&&F.remove()}}};b.Autocompleter.Selection=function(g,h,f){if(g.createTextRange){var a=g.createTextRange();a.collapse(true);a.moveStart("character",h);a.moveEnd("character",f);a.select()}else{if(g.setSelectionRange){g.setSelectionRange(h,f)}else{if(g.selectionStart){g.selectionStart=h;g.selectionEnd=f}}}g.focus()}})(jQuery);jQuery.cookie=function(h,d,a){if(typeof d!="undefined"){a=a||{};if(d===null){d="";a.expires=-1}var g="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString)){var b;if(typeof a.expires=="number"){b=new Date();b.setTime(b.getTime()+(a.expires*24*60*60*1000))}else{b=a.expires}g="; expires="+b.toUTCString()}var l=a.path?"; path="+a.path:"";var c=a.domain?"; domain="+a.domain:"";var j=a.secure?"; secure":"";document.cookie=[h,"=",encodeURIComponent(d),g,l,c,j].join("")}else{var f=null;if(document.cookie&&document.cookie!=""){var m=document.cookie.split(";");for(var k=0;k<m.length;k++){var e=jQuery.trim(m[k]);if(e.substring(0,h.length+1)==(h+"=")){f=decodeURIComponent(e.substring(h.length+1));break}}}return f}};$(document).ready(function(){if($.ui){$.ui.dialog.defaults.bgiframe=true}$(".datepicker").datepicker();$("ul.ui-tabs-nav>li").hover(function(){$(this).addClass("ui-state-hover")},function(){$(this).removeClass("ui-state-hover")});$(".fg-button:not(.ui-state-disabled)").hover(function(){$(this).addClass("ui-state-hover")},function(){$(this).removeClass("ui-state-hover")}).mousedown(function(){$(this).parents(".fg-buttonset-single:first").find(".fg-button.ui-state-active").removeClass("ui-state-active");if($(this).is(".ui-state-active.fg-button-toggleable, .fg-buttonset-multi .ui-state-active")){$(this).removeClass("ui-state-active")}else{$(this).addClass("ui-state-active")}}).mouseup(function(){if(!$(this).is(".fg-button-toggleable, .fg-buttonset-single .fg-button,  .fg-buttonset-multi .fg-button")){$(this).removeClass("ui-state-active")}})});function showResponse(b,a){if(b.substring(5,0)=="ERROR"){$("#error-message").append(b);$("#error").show("slide",{direction:"up"},500);$("#error").effect("highlight")}else{$("#info-message").append(b);$("#info").show("slide",{direction:"up"},500);$("#info").effect("highlight")}}function jqalert(c,b,e){var a=(!e?"error":e).toString().toLowerCase();var d=(!b?"":b);if($("#"+a+"Dialog-message").length){$("#"+a+"Dialog-message").html(c);$("#"+a+"Dialog").dialog({modal:true,show:"slide",title:d,dialogClass:"alert",buttons:{OK:function(){$(this).dialog("close")}}}).dialog("open")}else{alert(c)}}var dialogOptions;function DoDialog(a){var c;if(!a.selector){a.selector="#dialogDo"}if(!(a.includeRandom&&(a.includeRandom==true))){a.url+=(a.url.match(/\?/)?"&":"?")+Math.random().toString()}else{if(!(a.includerandom&&(a.includerandom==true))){a.url+=(a.url.match(/\?/)?"&":"?")+Math.random().toString()}}var d=$(a.selector);if(d.length==0){var b=$.create("div",{id:(a.selector.toString().substr(0,1)=="#")?a.selector.toString().substring(0,999):a.selector.toString()},["Loading form content"]);d=$(b)}if(a.title){$(d).attr("title",a.title)}if(!a.buttons){c={Cancel:function(){$(this).dialog("close");$(this).dialog("destroy")},Save:function(){$(this).find("form:first").submit()}}}else{c=a.buttons}$(d).html("Loading dialog...").load(a.url,((a.data)?a.data:""),function(){$(this).show();var e=$(this).find("form:first");options={target:"#dialogDo",dataType:null,beforeSubmit:function(f,h,g){if(h.valid){if(!h.valid()){return(false)}}return(true)},success:function(g,f){if($("#dialogDo").find("form:first").length){$("#dialogDo").find("form:first").ajaxForm(options)}else{$("#dialogDo").dialog("option","buttons",{Ok:function(){$(this).dialog("close");$(this).dialog("destroy")}})}if(a.OnSuccess){a.OnSuccess}},error:function(g,f,h){alert("A problem occured submitting the request\r\n"+errorThrowntext+"\r\n"+Status)}};if(e.length){e.ajaxForm(options)}else{c={Close:function(){$(this).dialog("close");$(this).dialog("destroy")}}}$(this).dialog({modal:true,width:600,buttons:c,open:function(){$("#ui-datepicker-div").css("z-index",$(this).parents(".ui-dialog").css("z-index")+1);try{if(formLoad!=undefined){formLoad()}}catch(f){}}});$(this).dialog("open")});return(false)}jQuery.create=function(){if(arguments.length==0){return[]}var b=arguments[0]||{},d=null,a=null;var c=null;if(b==null){b=""}if(b.constructor==String){if(arguments.length>1){var f=arguments[1];if(f.constructor==String){d=document.createTextNode(b);a=[];a.push(d);c=jQuery.create.apply(null,Array.prototype.slice.call(arguments,1));a=a.concat(c);return a}else{d=document.createElement(b);var f=arguments[1];for(var g in f){jQuery(d).attr(g,f[g])}var e=arguments[2];e=jQuery.create.apply(null,e);jQuery(d).append(e);if(arguments.length>3){c=jQuery.create.apply(null,Array.prototype.slice.call(arguments,3));return[d].concat(c)}return d}}else{return document.createTextNode(b)}}else{a=[];a.push(b);c=jQuery.create.apply(null,(Array.prototype.slice.call(arguments,1)));a=a.concat(c);return a}};if(typeof infosoftglobal=="undefined"){var infosoftglobal=new Object()}if(typeof infosoftglobal.FusionChartsUtil=="undefined"){infosoftglobal.FusionChartsUtil=new Object()}infosoftglobal.FusionCharts=function(i,b,l,m,a,j,e,g,d,k,f){if(!document.getElementById){return}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(i){this.setAttribute("swf",i)}if(b){this.setAttribute("id",b)}a=a?a:0;this.addVariable("debugMode",a);l=l.toString().replace(/\%$/,"%25");if(l){this.setAttribute("width",l)}m=m.toString().replace(/\%$/,"%25");if(m){this.setAttribute("height",m)}if(e){this.addParam("bgcolor",e)}this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addVariable("chartWidth",l);this.addVariable("chartHeight",m);this.addVariable("DOMId",b);j=j?j:0;this.addVariable("registerWithJS",j);g=g?g:"noScale";this.addVariable("scaleMode",g);d=d?d:"EN";this.addVariable("lang",d);this.detectFlashVersion=k?k:1;this.autoInstallRedirect=f?f:0;this.installedVer=infosoftglobal.FusionChartsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionCharts.doPrepUnload=true}};infosoftglobal.FusionCharts.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var a;var b=this.getVariables();for(a in b){c.push(a+"="+b[a])}return c},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  ';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var a=this.getParams();for(var b in a){c+=[b]+'="'+a[b]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){c+='flashvars="'+d+'"'}c+="/>"}else{c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var a=this.getParams();for(var b in a){c+='<param name="'+b+'" value="'+a[b]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){c+='<param name="flashvars" value="'+d+'" />'}c+="</object>"}return c},setDataURL:function(a){if(this.initialDataSet==false){this.addVariable("dataURL",a);this.initialDataSet=true}else{var b=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));if(!b.setDataURL){__flash__addCallback(b,"setDataURL")}b.setDataURL(a)}},encodeDataXML:function(d){var c=["\\$","\\+"];var j=d.match(/=\s*\".*?\"/g);if(j){for(var a=0;a<j.length;a++){var h=j[a].replace(/^=\s*\"|\"$/g,"");h=h.replace(/\'/g,"%26apos;");var e=d.indexOf(j[a]);var g="='"+h+"'";var b=d.substring(0,e);var f=d.substring(e+j[a].length);var d=b+g+f}}d=d.replace(/\"/g,"%26quot;");d=d.replace(/%(?![\da-f]{2}|[\da-f]{4})/ig,"%25");d=d.replace(/\&/g,"%26");return d},setDataXML:function(a){if(this.initialDataSet==false){this.addVariable("dataXML",this.encodeDataXML(a));this.initialDataSet=true}else{var b=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute("id"));b.setDataXML(a)}},setTransparent:function(a){if(typeof a=="undefined"){a=true}if(a){this.addParam("WMode","transparent")}else{this.addParam("WMode","Opaque")}},render:function(c){if((this.detectFlashVersion==1)&&(this.installedVer.major<8)){if(this.autoInstallRedirect==1){var a=window.confirm("You need Adobe Flash Player 8 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(a){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}else{return false}}else{return false}}else{var b=(typeof c=="string")?document.getElementById(c):c;if(this.getVariable("scaleMode").search(/noscale/i)>=0&&(this.getAttribute("width").search("%")>0||this.getAttribute("height").search("%")>0)){var d=this;if(window.addEventListener){window.addEventListener("load",function(){b.innerHTML=d.getSWFHTML()},false)}else{if(window.attachEvent){window.attachEvent("onload",function(){b.innerHTML=d.getSWFHTML()})}else{b.innerHTML=this.getSWFHTML()}}}else{b.innerHTML=this.getSWFHTML()}if(!document.embeds[this.getAttribute("id")]&&!window[this.getAttribute("id")]){window[this.getAttribute("id")]=document.getElementById(this.getAttribute("id"))}return true}}};infosoftglobal.FusionChartsUtil.getPlayerVersion=function(){var c=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){c=new infosoftglobal.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var f=1;var a=3;while(f){try{a++;f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);c=new infosoftglobal.PlayerVersion([a,0,0])}catch(d){f=null}}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new infosoftglobal.PlayerVersion([6,0,21]);f.AllowScriptAccess="always"}catch(d){if(c.major==6){return c}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(f!=null){c=new infosoftglobal.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}}}return c};infosoftglobal.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(infosoftglobal.FusionCharts.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionChartsUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",infosoftglobal.FusionChartsUtil.prepUnload);infosoftglobal.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}infosoftglobal.FusionChartsUtil.getChartObject=function(b){var a=null;if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[b]){a=document.embeds[b]}else{a=window.document[b]}}else{a=window[b]}if(!a){a=document.getElementById(b)}return a};var getChartFromId=infosoftglobal.FusionChartsUtil.getChartObject;var FusionCharts=infosoftglobal.FusionCharts;if(typeof infosoftglobal=="undefined"){var infosoftglobal=new Object()}if(typeof infosoftglobal.FusionMapsUtil=="undefined"){infosoftglobal.FusionMapsUtil=new Object()}infosoftglobal.FusionMaps=function(i,b,l,m,a,j,e,g,d,k,f){if(!document.getElementById){return}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(i){this.setAttribute("swf",i)}if(b){this.setAttribute("id",b)}l=l.toString().replace(/\%/,"%25");if(l){this.setAttribute("width",l)}m=m.toString().replace(/\%/,"%25");if(m){this.setAttribute("height",m)}if(e){this.addParam("bgcolor",e)}this.addParam("quality","high");this.addParam("allowScriptAccess","always");this.addVariable("mapWidth",l);this.addVariable("mapHeight",m);a=a?a:0;this.addVariable("debugMode",a);this.addVariable("DOMId",b);j=j?j:0;this.addVariable("registerWithJS",j);g=g?g:"noScale";this.addVariable("scaleMode",g);d=d?d:"EN";this.addVariable("lang",d);this.detectFlashVersion=k?k:1;this.autoInstallRedirect=f?f:1;this.installedVer=infosoftglobal.FusionMapsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionMaps.doPrepUnload=true}};infosoftglobal.FusionMaps.prototype={setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var c=new Array();var a;var b=this.getVariables();for(a in b){c.push(a+"="+b[a])}return c},getSWFHTML:function(){var c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){c='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"  ';c+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var a=this.getParams();for(var b in a){c+=[b]+'="'+a[b]+'" '}var d=this.getVariablePairs().join("&");if(d.length>0){c+='flashvars="'+d+'"'}c+="/>"}else{c='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';c+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var a=this.getParams();for(var b in a){c+='<param name="'+b+'" value="'+a[b]+'" />'}var d=this.getVariablePairs().join("&");if(d.length>0){c+='<param name="flashvars" value="'+d+'" />'}c+="</object>"}return c},setDataURL:function(b){if(this.initialDataSet==false){this.addVariable("dataURL",b);this.initialDataSet=true}else{var a=infosoftglobal.FusionMapsUtil.getMapObject(this.getAttribute("id"));if(!a.setDataURL){__flash__addCallback(a,"setDataURL")}a.setDataURL(b)}},encodeDataXML:function(d){var c=["\\$","\\+"];var j=d.match(/=\s*\".*?\"/g);if(j){for(var a=0;a<j.length;a++){var h=j[a].replace(/^=\s*\"|\"$/g,"");h=h.replace(/\'/g,"%26apos;");var e=d.indexOf(j[a]);var g="='"+h+"'";var b=d.substring(0,e);var f=d.substring(e+j[a].length);var d=b+g+f}}d=d.replace(/\"/g,"%26quot;");d=d.replace(/%(?![\da-f]{2}|[\da-f]{4})/ig,"%25");d=d.replace(/\&/g,"%26");return d},setDataXML:function(b){if(this.initialDataSet==false){this.addVariable("dataXML",this.encodeDataXML(b));this.initialDataSet=true}else{var a=infosoftglobal.FusionMapsUtil.getMapObject(this.getAttribute("id"));if(!a.setDataXML){__flash__addCallback(a,"setDataXML")}a.setDataXML(b)}},setTransparent:function(a){if(typeof a=="undefined"){a=true}if(a){this.addParam("WMode","transparent")}else{this.addParam("WMode","Opaque")}},render:function(c){if((this.detectFlashVersion==1)&&(this.installedVer.major<8)){if(this.autoInstallRedirect==1){var a=window.confirm("You need Adobe Flash Player 8 (or above) to view the maps. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(a){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"}else{return false}}else{return false}}else{var b=(typeof c=="string")?document.getElementById(c):c;if(this.getVariable("scaleMode").search(/noscale/i)>=0&&(this.getAttribute("width").search("%")>0||this.getAttribute("height").search("%")>0)){var d=this;if(window.addEventListener){window.addEventListener("load",function(){b.innerHTML=d.getSWFHTML()},false)}else{if(window.attachEvent){window.attachEvent("onload",function(){b.innerHTML=d.getSWFHTML()})}else{b.innerHTML=this.getSWFHTML()}}}else{b.innerHTML=this.getSWFHTML()}if(!document.embeds[this.getAttribute("id")]&&!window[this.getAttribute("id")]){window[this.getAttribute("id")]=document.getElementById(this.getAttribute("id"))}return true}}};infosoftglobal.FusionMapsUtil.getPlayerVersion=function(){var c=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var b=navigator.plugins["Shockwave Flash"];if(b&&b.description){c=new infosoftglobal.PlayerVersion(b.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var f=1;var a=3;while(f){try{a++;f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+a);c=new infosoftglobal.PlayerVersion([a,0,0])}catch(d){f=null}}}else{try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");c=new infosoftglobal.PlayerVersion([6,0,21]);f.AllowScriptAccess="always"}catch(d){if(c.major==6){return c}}try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(f!=null){c=new infosoftglobal.PlayerVersion(f.GetVariable("$version").split(" ")[1].split(","))}}}return c};infosoftglobal.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};infosoftglobal.FusionMapsUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=c.length-1;b>=0;b--){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(infosoftglobal.FusionMaps.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionMapsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionMapsUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",infosoftglobal.FusionMapsUtil.prepUnload);infosoftglobal.unloadSet=true}}if(!document.getElementById&&document.all){document.getElementById=function(a){return document.all[a]}}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}infosoftglobal.FusionMapsUtil.getMapObject=function(b){var a=null;if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[b]){a=document.embeds[b]}else{a=window.document[b]}}else{a=window[b]}if(!a){a=document.getElementById(b)}return a};var getMapFromId=infosoftglobal.FusionMapsUtil.getMapObject;var FusionMaps=infosoftglobal.FusionMaps;(function(b){b.anythingSlider=function(e,a){var f=this;f.$el=b(e);f.el=e;f.currentPage=1;f.timer=null;f.playing=false;f.$el.data("AnythingSlider",f);f.init=function(){f.options=b.extend({},b.anythingSlider.defaults,a);f.$wrapper=f.$el.find("> div").css("overflow","hidden");f.$slider=f.$wrapper.find("> ul");f.$items=f.$slider.find("> li");f.$single=f.$items.filter(":first");f.singleWidth=f.$single.outerWidth();f.pages=f.$items.length;if(f.pages===1){f.options.autoPlay=false}f.buildNavigation();var c=f.$items.filter(":last").clone().addClass("cloned");if(c.attr("id")!=""){f.$items.filter(":first").before(c.attr("id",(c.attr("id")+"-cloned")))}else{f.$items.filter(":first").before(c)}c=f.$items.filter(":first").clone().addClass("cloned");if(c.attr("id")!=""){f.$items.filter(":last").after(c.attr("id",(c.attr("id")+"-cloned")))}else{f.$items.filter(":last").after(c)}f.$items=f.$slider.find("> li");if(f.pages>1){f.buildNextBackButtons()}if(f.options.autoPlay){f.playing=!f.options.startStopped;f.buildAutoPlay()}if(f.options.pauseOnHover){f.$el.hover(function(){f.clearTimer()},function(){f.startStop(f.playing)})}if((f.options.hashTags==true&&!f.gotoHash())||f.options.hashTags==false){f.setCurrentPage(1)}};f.gotoPage=function(l,k){if(k!==true){k=false}if(!k){f.startStop(false)}if(typeof(l)=="undefined"||l==null){l=1;f.setCurrentPage(1)}if(l>f.pages+1){l=f.pages}if(l<0){l=1}var j=l<f.currentPage?-1:1,d=Math.abs(f.currentPage-l),c=f.singleWidth*j*d;f.$wrapper.filter(":not(:animated)").animate({scrollLeft:"+="+c},f.options.animationTime,f.options.easing,function(){if(l==0){f.$wrapper.scrollLeft(f.singleWidth*f.pages);l=f.pages}else{if(l>f.pages){f.$wrapper.scrollLeft(f.singleWidth);l=1}}f.setCurrentPage(l)})};f.setCurrentPage=function(d,c){if(f.options.buildNavigation){f.$nav.find(".cur").removeClass("cur");b(f.$navLinks[d-1]).addClass("cur")}if(c!==false){f.$wrapper.scrollLeft(f.singleWidth*d)}f.currentPage=d};f.goForward=function(c){if(c!==true){c=false}f.gotoPage(f.currentPage+1,c)};f.goBack=function(){f.gotoPage(f.currentPage-1)};f.gotoHash=function(){if(/^#?panel-\d+$/.test(window.location.hash)){var d=parseInt(window.location.hash.substr(7));var c=f.$items.filter(":eq("+d+")");if(c.length!=0){f.setCurrentPage(d);return true}}return false};f.buildNavigation=function(){f.$nav=b("<div class='thumbNav'><ul/></div>").prependTo(f.$el);if(f.options.buildNavigation&&(f.pages>1)){f.$items.each(function(i,j){var d=i+1;var c=b("<a href='#'></a>");if(typeof(f.options.navigationFormatter)=="function"){c.html(f.options.navigationFormatter(d,b(this)))}else{c.text(d)}c.click(function(g){f.gotoPage(d);if(f.options.hashTags){f.setHash("panel-"+d)}g.preventDefault()});b("ul",f.$nav).append(c);c.wrap("<li />")});f.$navLinks=f.$nav.find("li > a")}};f.buildNextBackButtons=function(){var c=b('<li class="arrow forward"><a href="#">'+f.options.forwardText+"</a></li>"),d=b('<li class="arrow back"><a href="#">'+f.options.backText+"</a></li>");d.click(function(h){f.goBack();h.preventDefault()});c.click(function(h){f.goForward();h.preventDefault()});b("ul",f.$nav).prepend(d).append(c)};f.buildAutoPlay=function(){f.$startStop=b("<a href='#' class='start-stop'></a>").html(f.playing?f.options.stopText:f.options.startText);f.$el.prepend(f.$startStop);f.$startStop.click(function(c){f.startStop(!f.playing);c.preventDefault()});f.startStop(f.playing)};f.startStop=function(c){if(c!==true){c=false}f.playing=c;if(f.options.autoPlay){f.$startStop.toggleClass("playing",c).html(c?f.options.stopText:f.options.startText)}if(c){f.clearTimer();f.timer=window.setInterval(function(){f.goForward(true)},f.options.delay)}else{f.clearTimer()}};f.clearTimer=function(){if(f.timer){window.clearInterval(f.timer)}};f.setHash=function(c){if(typeof window.location.hash!=="undefined"){if(window.location.hash!==c){window.location.hash=c}}else{if(location.hash!==c){location.hash=c}}return c};f.init()};b.anythingSlider.defaults={easing:"swing",autoPlay:true,startStopped:false,delay:3000,animationTime:600,hashTags:true,buildNavigation:true,pauseOnHover:true,startText:"Start",stopText:"Stop",navigationFormatter:null,forwardText:"&gt;",backText:"&lt;"};b.fn.anythingSlider=function(a){if(typeof(a)=="object"){return this.each(function(d){(new b.anythingSlider(this,a));a.hashTags=false})}else{if(typeof(a)=="number"){return this.each(function(e){var f=b(this).data("AnythingSlider");if(f){f.gotoPage(a)}})}}}})(jQuery);
