

/*!
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent=
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n=
s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,
applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];
else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,
a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===
w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,
cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j<d;j++){var i=
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");
a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,
function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split(".");
k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a),
C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&&
f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;
if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",
e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,
"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a,
d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift();
t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D||
g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},
CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m,
g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},
text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},
setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return h<l[3]-0},gt:function(g,h,l){return h>l[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/l>=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m===
"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g,
h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&
q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML="<a href='#'></a>";
if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}();
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}:
function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a===
"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",
d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?
a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType===
1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},
wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},
prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,
this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);
return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja,
""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["",
""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]==="<table>"&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e=
c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]?
c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja=
function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=
Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,
"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=
a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=
a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!==
"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),
function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,
global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&&
e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)?
"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===
false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B=
false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since",
c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E||
d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x);
g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===
1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b===
"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional;
if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration===
"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||
c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;
this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=
this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem,
e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b);
c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,
d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-
f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset":
"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in
e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window);


// ***************** general use functions ******************
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function YY_checkform() { //v4.66
//copyright (c)1998,2002 Yaromat.com
  var args = YY_checkform.arguments; var myDot=true; var myV=''; var myErr='';var addErr=false;var myReq;
  for (var i=1; i<args.length;i=i+4){
    if (args[i+1].charAt(0)=='#'){myReq=true; args[i+1]=args[i+1].substring(1);}else{myReq=false}
    var myObj = MM_findObj(args[i].replace(/\[\d+\]/ig,""));
    myV=myObj.value;
    if (myObj.type=='text'||myObj.type=='password'||myObj.type=='hidden'){
      if (myReq&&myObj.value.length==0){addErr=true}
      if ((myV.length>0)&&(args[i+2]==1)){ //fromto
        var myMa=args[i+1].split('_');if(isNaN(myV)||myV<myMa[0]/1||myV > myMa[1]/1){addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==2)){
          var rx=new RegExp("^[\\w\.=-]+@[\\w\\.-]+\\.[a-z]{2,4}$");if(!rx.test(myV))addErr=true;
      } else if ((myV.length>0)&&(args[i+2]==3)){ // date
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);
        if(myAt){
          var myD=(myAt[myMa[1]])?myAt[myMa[1]]:1; var myM=myAt[myMa[2]]-1; var myY=myAt[myMa[3]];
          var myDate=new Date(myY,myM,myD);
          if(myDate.getFullYear()!=myY||myDate.getDate()!=myD||myDate.getMonth()!=myM){addErr=true};
        }else{addErr=true}
      } else if ((myV.length>0)&&(args[i+2]==4)){ // time
        var myMa=args[i+1].split("#"); var myAt=myV.match(myMa[0]);if(!myAt){addErr=true}
      } else if (myV.length>0&&args[i+2]==5){ // check this 2
            var myObj1 = MM_findObj(args[i+1].replace(/\[\d+\]/ig,""));
            if(myObj1.length)myObj1=myObj1[args[i+1].replace(/(.*\[)|(\].*)/ig,"")];
            if(!myObj1.checked){addErr=true}
      } else if (myV.length>0&&args[i+2]==6){ // the same
            var myObj1 = MM_findObj(args[i+1]);
            if(myV!=myObj1.value){addErr=true}
      }
    } else
    if (!myObj.type&&myObj.length>0&&myObj[0].type=='radio'){
          var myTest = args[i].match(/(.*)\[(\d+)\].*/i);
          var myObj1=(myObj.length>1)?myObj[myTest[2]]:myObj;
      if (args[i+2]==1&&myObj1&&myObj1.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
      if (args[i+2]==2){
        var myDot=false;
        for(var j=0;j<myObj.length;j++){myDot=myDot||myObj[j].checked}
        if(!myDot){myErr+='* ' +args[i+3]+'\n'}
      }
    } else if (myObj.type=='checkbox'){
      if(args[i+2]==1&&myObj.checked==false){addErr=true}
      if(args[i+2]==2&&myObj.checked&&MM_findObj(args[i+1]).value.length/1==0){addErr=true}
    } else if (myObj.type=='select-one'||myObj.type=='select-multiple'){
      if(args[i+2]==1&&myObj.selectedIndex/1==0){addErr=true}
    }else if (myObj.type=='textarea'){
      if(myV.length<args[i+1]){addErr=true}
    }
    if (addErr){myErr+='* '+args[i+3]+'\n'; addErr=false}
  }
  if (myErr!=''){alert('The required information is incomplete or contains errors:\t\t\t\t\t\n\n'+myErr)}
  document.MM_returnValue = (myErr=='');
}
function confirm_delete_but(formname,obj,button_name,button_value)
{
str="Do you really want to delete this " + obj +"?";
msg= confirm (str);
		if (msg)
		{
		str="document." + formname + "." + button_name + ".value= '" + button_value +"';" ;
		eval(str);
		str="document." + formname + ".submit()";
		eval(str);
		}
}
// confirmation on delete 
function confirm_delete(url, obj)
{
str="Do you really want to delete " + obj +"?";
msg= confirm (str);
		if (msg)
		{
			window.location.href = url;
		}
}
function hide_div(obj) {
//190805 -  "hide_div" function is fixed in same manner as it is did in advanced search. - Start
var div_arr = document.getElementsByTagName("div");
		for(i=0;i<div_arr.length;i++)
		{
			if(div_arr[i].getAttribute("id") == "search")
			{
				div_arr[i].style.display="none";
			}
		}
//190805 -  "hide_div" function is fixed in same manner as it is did in advanced search. - End
		//search.style.display="none";
}
function show_div(obj) {
//190805 - Advanced link in search form on admin panel has been fixed. This is first done in ip. "hide_div" function is to be fixed in same manner. - Start
var div_arr = document.getElementsByTagName("div");
		for(i=0;i<div_arr.length;i++)
		{
			if(div_arr[i].getAttribute("id") == "search")
			{
				div_arr[i].style.display="inline";
			}
		}
//190805 - Advanced link in search form on admin panel has been fixed. This is first done in ip. "hide_div" function is to be fixed in same manner. - End
		//search.style.display="inline";
}
/**********************
Function for setting hidden values in the form
*************************/
function set_field(formname,fieldname,set_value)
{
	//	alert(formname + "|" + fieldname + "|" + set_value);
		str="document." + formname + "." + fieldname  + ".value='" + set_value + "'";
//		alert(str);
		eval(str);
}
/******************************************************************/
/******************************************************************/
/**********************
Function for setting the parent window that triggered the  select cat pop up
This goes in the parent window
*************************/
function set_cat(field_name,cat_name,field_id, cat_id,field_text,cat_text,field_page,cat_page,field_code,cat_code,form_name){
	str = "document." + form_name + "." + field_name + ".value = '" + cat_name + "';" ;
	eval (str);
	
	str = 'document.' + form_name + '.' + field_id + '.value = ' + cat_id + ';' ;
	eval (str);
	if(field_name=="c_name1")
	{
	str = "document." + form_name + "." + field_page + ".value = '" + cat_text + "';" ;
	eval(str);
	
	str = "document." + form_name + "." + field_text + ".value = '" + cat_page + "';" ;
	eval (str);
	
	str = "document." + form_name + "." + field_code + ".value = '" + cat_code + "';" ;
	eval (str);
	}
}
/******************************************************************/
/**********************
Function for setting the parent window that triggered the  select cat pop up
This goes in the pop up window
*************************/
function cat_set_parent(cat_id, cat_name,cat_text,cat_page,cat_code){
//alert(cat_id+ cat_name+cat_text+cat_page+cat_code);
		document.cat_pop_form.cat_id.value = cat_id;
		document.cat_pop_form.cat_name.value = cat_name;
		document.cat_pop_form.cat_text.value = cat_text;
		document.cat_pop_form.cat_page.value = cat_page;
		document.cat_pop_form.cat_code.value = cat_code;
	
	//alert(cat_code);
		field_name = document.cat_pop_form.field_name.value;
		field_id = document.cat_pop_form.field_id.value;
		field_text = document.cat_pop_form.field_text.value;
		field_page= document.cat_pop_form.field_page.value;
		field_code = document.cat_pop_form.field_code.value;
		form_name = document.cat_pop_form.form_name.value;
//	alert(field_text);	
		window.opener.set_cat(field_name,cat_name,field_id,cat_id,field_text,cat_text,field_page,cat_page,field_code,cat_code,form_name);
		
		window.close();
}
/*********************************************************/
//	TO SELECT FROM SELECTION BOX
function show_selected(obj,val)
{
//obj = document.frmname.fieldname
//val=actual value <?php echo $obj->country; ?>
  var len=obj.options.length
  for(var i=0;i<len;i++)
  {
    if(obj.options[i].value==val)
     {
       obj.selectedIndex=i;
     }
  } 
}
function win_open(obj,type,val){
	if(obj.value == val){
		window.open('../forms/choose_email_pop.php?hidden_purpose=paging&typ='+type);
	}
}
function pending_sub()
{
document.commonfrm.pending.value="Link.status_link_to_them='Pending Approval'";
document.commonfrm.show_button.value="Y";
document.commonfrm.submit();
}
/************************************************************************/
/********************* Function for customer ***********************/
function delete_cust(val){
	if(confirm("Do you really want to delete ?")){
		document.frm_search.action='customer_action.php';
		document.frm_search.deleteid.value = val;
		document.frm_search.submit();
	}
}
function edit_cust(val){
		document.frm_search.editid.value = val;
		document.frm_search.id.value = val;
		document.frm_search.submit();
}
//modified on 17102003
function edit_link(frm_name,val){
	
		frm_name.linkdeleteid.value = '';
		
		frm_name.id.value = val;
		
		frm_name.editid.value = val;
		
		frm_name.show_list.value = "N";
		
		frm_name.submit();
}
//modified on 17102003
function delete_link(frm_name,val){
	if(confirm("Are you sure you want to delete?")){
	
		frm_name.linkdeleteid.value = val;
		
		frm_name.editid.value = '';
		frm_name.id.value = val;
		frm_name.submit();
	}
}
function pending_approval(){
	document.frm_search.search_status.value =  " Customer.status = 1";
	document.frm_search.submit();
}
function stock_list(){
	document.frm_search.submit();
}
function stock_list(){
	document.frm_search.start_with_key1.value = "";
	document.frm_search.start_with_list.value = "";
	document.frm_search.submit();
}
/********************* Function for customer ***********************/
/****function to change the page in categories (customer/links) upon choosing a category to edit****/
function change_page(obj, actionpage)
{
	if(obj.value > 0)
	{
	
		str="window.location.href='" + actionpage + "?id=" + obj.value + "&hidden_purpose=paging'";
		//alert(str);
		eval(str);
	}
	
}
// used to set the values for category in link
function getvalues(obj) //changed on 170904
{
//get_val=obj.value;
get_val = obj; //170505
//if(obj.value.length > 1)
if(obj.length > 1) //170505
{
//alert(get_val);
a = get_val.split("|");
id = a[0];
link_page=a[2];
link_text=a[3];
link_code=a[4];
link_description=a[5];
catid=change_quotes(id,'primary_cat1');
link_page=change_quotes(link_page,'c_url');
link_text=change_quotes(link_text,'c_link_txt');
link_code=change_quotes(link_code,'c_link_code');
link_description=change_quotes(link_description,'link_description');
}//changed
else
{
link_page=change_quotes('','c_url');
link_text=change_quotes('','c_link_txt');
link_code=change_quotes('','c_link_code');
link_description=change_quotes('','link_description');
}
}
//modified on 20102003//
function change_quotes(abc,field_name)
{
	str = abc;
	
	do{
		count=new Array();
		str = str.replace("!~!","\\'");
		count = str.split("!~!");
	}while(count.length >1);
	do{
		count=new Array();
		str = str.replace("~@#","\"");
		count = str.split("~@#");
		
	}while(count.length >1);
	
	//str = str.replace("~@#","\"");
	chk_quote=str.split("\"");
	//alert("Count "+ chk_quote.length);
	
	if(chk_quote.length >1)
	{
		eval_str="window.opener.document.link_search."+field_name+".value='"+str+"'"; //170505 - window.opener added as the values should be set to the parent window.
	}	
	else
	{
		eval_str="window.opener.document.link_search."+field_name+".value=\""+str+"\"";//170505 - window.opener added as the values should be set to the parent window.
	}
		eval(eval_str);
	
	
}
//update_config.php
function count_copies(val,cop){
ct = 0;
	for(i=1;i<=4;i++){
		if( eval("document.configform." + val + "" + i + ".value.length")>0 ){
			ct++;
		}
	}
	eval("document.configform." + cop + ".value = '" + ct + "'");
}
//links_list.php
function check_all(frm,sel,val)
{
	for(i=0;i<eval("document." + frm + ".elements.length");i++)
	{
	nam = eval("document." + frm + ".elements[" + i + "].name");
		if(nam.substring(0,3)==val)
		{
		eval("document." + frm + ".elements[" + i + "].checked = " + sel.checked);
		//14012004-for links also set the statusfield to "Active";
		
		if(frm=="link_search")
		{
		
				new_obj=eval("document." + frm + ".elements[" + i + "]");
				new_id=eval("document." + frm + ".elements[" + i + "].name");
				
				new_auto_id=new_id.substr(14,new_id.length-15);
				
//				chk_link_click(obj, id);
//				alert(new_obj + "-" + new_auto_id + "- " + new_id);
				
				chk_link_click(new_obj, new_auto_id);
				
		} //end if frm=="link_search";
		} //end if==val
	} //end for
} //end function
//choose_email_pop.php
function setid(obj,fld){
	if(obj.checked){
		//document.frm_search.checkids.value += obj.value+";";
		fld.value += obj.value+";";
	}else{
		//arr_str = document.frm_search.checkids.value;
		arr_str = fld.value;
		arr = arr_str.split(";");
		str = "";
		for(i=0;i<arr.length;i++){
			if(arr[i] != obj.value){
				if(arr[i].length > 0){
					str = str + arr[i] + ";";
				}
			}
		}
		//document.frm_search.checkids.value = str;
		fld.value = str;
	}
}
function set_cust_id(obj){
if(obj.checked){
	document.registrationform.customer_interest.value += obj.value+";";
}else{
	arr_str = document.registrationform.customer_interest.value;
	arr = arr_str.split(";");
	str = "";
	for(i=0;i<arr.length;i++){
		if(arr[i] != obj.value){
			if(arr[i].length > 0){
				str = str + arr[i] + ";";
			}
		}
	}
	document.registrationform.customer_interest.value = str;
}
}
function set_newsletter_id(obj,frm){
if(obj.checked){
	frm.value += obj.value + ",";
}else{
	arr_str = frm.value;
	arr = arr_str.split(",");
	str = "";
	for(i=0;i<arr.length;i++){
		if(arr[i] != obj.value){
			if(arr[i].length > 0){
				str = str + arr[i] + ",";
			}
		}
	}
	frm.value = "," + str;
}
}
function goTo(url){
	window.location = url;
}
///--------- newly added 27 - 09 - 2003
function delete_record(frm,fld,val)
{
	if(confirm('Do you really want to delete ?'))
	{
		set_field(frm,fld,val);
		str = "document." + frm + ".submit()";
		eval(str);
	}
}
function delete_newsletter(frm,fld,val)
{
	if(confirm('Deleting this newsletter will also delete any issues that belong to it. \nAre you sure you want to delete?'))
	{
		set_field(frm,fld,val);
		str = "document." + frm + ".submit()";
		eval(str);
	}
}
///--------- newly added 27 - 09 - 2003
///--------- newly added 29 - 09 - 2003
function delete_image_flex(val)
{
	if( confirm('Do you really want to delete ?') )
	{
	set_field('frm_image_delete','img_del_id',val);
	document.frm_image_delete.submit();
	}
}
	
///--------- newly added 29 - 09 - 2003
///--------- Start newly added 06 - 10 - 2003
function set_product_parent(val1,val2,val3)
{
	if(val1.value==0 && val2.value==0 && val3.value==0)
	{
		document.frm_product_detail.parent_id.value="0";
	}
	else if(val1.value!=0 || val2.value!=0 || val3.value!=0)
	{
		document.frm_product_detail.parent_id.value="-1";
	}
}
///--------- end newly added 06 - 10 - 2003
//--------- newly added 07 - 10 - 2003
function fun_on_special(textbox)
{
/*
	if(!document.frm_product_detail.on_special.checked)
	{
		alert('you must tick the on special tick box before you can specify a special price');
		textbox.blur();
	}
	*/
}
//--------- end newly added 07 - 10 - 2003
//********************Newly added on 18-10-2003
function check_options(frm)
{
	
	
	var str = has_options(frm,"pro_",4);
	if(str.length <= 0 && eval("document."+frm+".qty.value") >0)
	{
		//frm.submit();
		return true;
	}
	
	var select_option = false;
	var str_arr = str.split(",");
	for(i=0;i<str_arr.length-1;i++)
	{
		if(eval("document."+frm+".elements[str_arr[i]].value") == 0)
		{
			select_option = true;
		}
	}
	
	if(select_option)
	{
		alert("Please select all available options");
		return false;
	}
	else
	{
		//product_option
		var str_option = has_options(frm,"product_option",14);
		var str_option_arr = str_option.split(",");
		
		//alert(str_arr.length);
		selected_str = "";
			for(i=0;i<str_arr.length-1;i++)
			{
				selected_str += eval("document."+frm+".elements[str_arr[i]].value") + ";";
			}
			for(i=str_arr.length-1;i<3;i++)
			{
				selected_str += "0;";
			}
			selected_option_has = false;
		for(i=0;i<str_option_arr.length-1;i++)
		{
			if(eval("document."+frm+".elements[str_option_arr[i]].value") == selected_str)
			{
				selected_option_has = true;
				break;
			}
		}
			
		if(selected_option_has)
		{
			//frm.submit();
			return true;
		}
		else
		{
			alert("Selected option is not available");
			return false;
		}
	}
}
function has_options(frm,fld_name_letters,chk_length)
{
var str = "";
	
	var temp_str = "document." + frm + ".elements.length";
	
	len=eval(temp_str);
	for(i=0;i<len;i++)
	{
		fld_name = eval("document." + frm + ".elements[i].name");
		if(fld_name.substring(0,chk_length) == fld_name_letters )
		{
			str += fld_name + ",";
		}
	}
	return(str);
}
//********************end of newly added on 18-10-2003
//********************Newly added on 21-10-2003
function check_number(val, frmpage)
{
	if( isNaN(val.value) )
	{
		alert("Please enter in digits.");
		val.value = 1;
	}
	if( val.value <= 0 && frmpage!="admin")//240204 - admin price management - price can be 0)
	{
		msg="";
		msg+="Please enter quantity greater than 0.";
		
		if(frmpage=="cart")
		{
			msg+="\n(if you wish to remove this product from your shopping cart,\n use the 'delete' button)";
		}
		alert(msg);
		val.value = 1;
	}
}
//********************end of newly added on 21-10-2003
//********************newly added on 22-10-2003
  function check_rewardpoints(val,val_has)
  {
/*  
  	if(isNaN(val_has))
	  	alert(val.value + "-" + val_has);
*/	
	if( isNaN(val.value) )
	{
		alert("Please enter in digits.");
		val.value = 0;
		return false;
	}
	else if( val.value < 0 )
	{
		alert("Please enter greater than zero.");
		val.value = 0;
		return false;
	}
	else if( val.value > val_has )
	{
		alert("Please enter reward point less than you have.");
		val.value = 0;
		return false;
	}
	
	
	document.forms["submitorder"].submit_action.value = 'recalculate';
	document.forms["submitorder"].submit();
	
	
  }
//********************end of newly added on 22-10-2003
function delete_cart(frm,fld,val)
{
	if(confirm('Are you sure you want to empty you shopping cart?'))
	{
		set_field(frm,fld,val);
		str = "document." + frm + ".submit()";
		eval(str);
	}
}
/*** to open converter.php ***/
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
/** to manage and validate page name and category or item name **/
function set_pname(obj1, obj2){
obj2.value = obj1.value;
clean_chars(obj2);
}
function clean_chars(obj) {
// will remove any non alphanumeric char from string except for space which it will replace with undesrcor, and set the obj value to the fixed string
	var string = obj.value
		for (var i=0, output='', valid="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-"; i<string.length; i++)
			if (string.charAt(i)==" "){
				output += "-";
			} else {		
				if (valid.indexOf(string.charAt(i)) != -1){     
					 output += string.charAt(i);
				}
			}    
//230304
	output = output.replace( "--", "-");
	output = output.replace( "--", "-");
	obj.value=output.toLowerCase();
} 
//13122003 - selectionpage.php
function set_all(frm, sel, fld)
{
	
//	alert(frm + " *" + sel.checked + " *" + fld);
	
		for(i=0;i<eval("document." + frm + ".elements.length");i++)
	
			{
			
		
			fld_type = eval("document." + frm + ".elements[" + i + "].type");
			
			temp_str="-";
			
			if(fld_type=="checkbox")
				{
			
				nam = eval("document." + frm + ".elements[" + i + "].name");
				
				obj=eval("document." + frm + ".elements[" + i + "]");
				
				if(sel.checked)
				{
					setid(obj, fld);
				}	
				
				temp_str += obj.value;
				
			/*
				fld_value = eval("document." + frm + ".elements[" + i + "].value");
			
				alert(fld_value);
				*/
				
				} //end if type chkbox 
			 
		
		
			} //end for
			
		if(sel.checked)
		{
	
			
		
		} //end if sel.checked
		else
		{
		
			arr_str = fld.value;
			alert(temp_str + "****" + arr_str);
				
			arr = arr_str.split(";");
	
			str = "";
	
			for(i=0;i<arr.length;i++){
	
				if(arr[i] != obj.value){
	
					if(arr[i].length > 0){
	
						str = str + arr[i] + ";";
	
					}
	
				}
	
			}
	
			//document.frm_search.checkids.value = str;
	
			fld.value = str;
		}	//end else .checked
}
 /**************************EMAIL CHECKING***************************/
 
function chk_email(fldname)
{
 
	var bool=true;
	 
	email = fldname.value;
	var len = email.length;              
	if(len<5)
		{
//			alert("Invalid Email - id")
//            fldname.value="";
			bool=false;
		}
	else
		{
          
	var index1 = email.indexOf('@');
	var subind = email.substring(0,index1);
	var indlen = subind.length;
	var index2 = email.indexOf('.');
	var subind1=email.substring(indlen+1,index2);
	var indlen1 = subind1.length;
	var index3 = email.indexOf(' ');
	var subind3=email.substring(index2+1,len)
	var indlen2 = subind3.length;
	if((index1!= -1)&&(index2!= -1)&&(index3==-1))
	{	
		if((indlen!=0)&&(indlen1!=0)&&(indlen2!=0))
		{
//   			alert("valid Email -id");		  	 	
		} 
        else
		{
		
//			alert("Invalid Email - id")
//            fldname.value="";
		}
	}
	else
	{
//   		alert("Invalid Email - id");
//        fldname.value="";
			bool=false;
	}		
	} // end of else if len<5
	return(bool);
}
//while adding to cart validation...
function chk_specification(formname, has_spec)
{
//******** 280705 - check for quantity to be the integer oly in the onclick of the  order now button
var temp_numcheckstr="document."+formname+".qty.value"
	
	var qty_val = eval(temp_numcheckstr);
	
	if( isNaN(qty_val) || qty_val <= "0" || qty_val.length == 0)
	{
		alert("Please enter quantity greater than 0.");
		eval(temp_numcheckstr + "=1");
		
		return false;
	}
	chk_options = check_options(formname);
	
	
	
//	return false;
	
	if(chk_options)
	{
		if(has_spec > 0)
		{
		
	
			
			var temp_msg="";
			
			for(i=1;i<=has_spec;i++)
			{
				var temp_str="document."+formname+".specification_id" + i + ".value"
				
				
				if(eval(temp_str)==0)
				{
					temp_msg+="Please Choose Specification " + i;
				}
			}
		
			if(temp_msg.length > 0)
			{
//				alert("Please Choose a Specification");
				alert("Please select all available specifications");
				return false;
			}
			else
			{
	//			return true;
	
				eval("document." + formname + ".submit()");
			}
		}//end if
		else
		{
				eval("document." + formname + ".submit()");
		}	
	}//end if chk_options
	else
	{
		return false;
	}		
}
function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature.");
}
// 05022004 general delete function to return true or false
function alert_delete()
{
	c=confirm("Are you sure you want to delete?");
	
	if(c)
		return true;
	else
		return false;	
}
//180406 - site specific - the qty box alert should be in the onclick event of the update cart button.
function update_cart(frmname)
{
var is_num = 0, is_zero = 0;
var msg = "", dc, str = "";
dc = eval("document." + frmname);
	for(i = 0; i < dc.elements.length; i++)
	{
		str = dc.elements[i].getAttribute('name').substring(0,7);
		
		if(str == "cartqty")
		{
		
			if(isNaN(dc.elements[i].value) )
			{
				is_num = 1;
				dc.elements[i].value = 1;
			}
	
			if(dc.elements[i].value == 0 || dc.elements[i].value.length == 0)
			{
				is_zero = 1;
				dc.elements[i].value = 1;
			}
			/*
			if(is_num == 1 && is_zero == 1)
				break;
			*/
		}
		
	} //end for
	if(is_num == 1)
			msg+="Please enter quantity greater than 0.";
	if(is_zero == 1)
			msg+="Please enter quantity greater than 0.\n(if you wish to remove a product from your shopping cart,\n use the 'delete' button)";
	if(msg.length > 0)
	{
		alert(msg);
	}
	else
	{
		set_field(frmname,'submit_action','update');
		dc.submit();
	}
}
function frm_submit(frmname)
{
	
	var dc=eval("document."+frmname);
	
	dc.submit();
}

//cat_selection
function addbusinesscat(hid_fld,hid_val,cat_name,selected_cat_str)
{
//240307 for showing category name by replacing "!~!"
	cat_name = cat_name.replace("!~!","\'");
		
switch (hid_fld)
{
	case "primary_cat1":
		window.opener.document.clf_business_frm.primary_cat1.value = hid_val;
		window.opener.document.getElementById('cat1').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat1td1').width = '50%';
		window.opener.document.getElementById('cat1td2').width = '50%';*/
		getbusinesscatvalues(selected_cat_str);
		break;
		
		case "primary_cat2":
		window.opener.document.clf_business_frm.primary_cat2.value = hid_val;
		window.opener.document.getElementById('cat2').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat2td1').width = '50%';
		window.opener.document.getElementById('cat2td2').width = '50%';*/
		
		break;
		
		case "primary_cat3":
		window.opener.document.clf_business_frm.primary_cat3.value = hid_val;
		window.opener.document.getElementById('cat3').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat3td1').width = '50%';
		window.opener.document.getElementById('cat3td2').width = '50%';*/
		
		break;
} //end switch
window.opener.focus();
window.close();
}

function addprodcat(hid_fld,hid_val,cat_name,selected_cat_str)
{
//240307 for showing category name by replacing "!~!"
	cat_name = cat_name.replace("!~!","\'");
	
switch (hid_fld)
{
	case "primary_cat1":
		window.opener.document.clf_prod_frm.primary_cat1.value = hid_val;
		window.opener.document.getElementById('cat1').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat1td1').width = '50%';
		window.opener.document.getElementById('cat1td2').width = '50%';
		//getvalues(selected_cat_str); - not required for classified category..*/
		break;
		
		case "primary_cat2":
		window.opener.document.clf_prod_frm.primary_cat2.value = hid_val;
		window.opener.document.getElementById('cat2').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat2td1').width = '50%';
		window.opener.document.getElementById('cat2td2').width = '50%';*/
		
		break;
		
		case "primary_cat3":
		window.opener.document.clf_prod_frm.primary_cat3.value = hid_val;
		window.opener.document.getElementById('cat3').innerHTML = cat_name;
		/*window.opener.document.getElementById('cat3td1').width = '50%';
		window.opener.document.getElementById('cat3td2').width = '50%';*/
		
		break;
} //end switch
window.opener.focus();
window.close();
}

function getbusinesscatvalues(obj) 



{

get_val = obj; 




if(obj.length > 1) 



{





a = get_val.split("|");


id = a[0];

link_page=a[1];

link_title=a[2];

link_desc=a[3];

catid=change_businesscat_quotes(id,'primary_cat1');

link_page=change_businesscat_quotes(link_page,'link_url');

link_title=change_businesscat_quotes(link_title,'link_text');

link_desc=change_businesscat_quotes(link_desc,'link_desc');

val = "<a href=\"" + window.opener.document.clf_business_frm.link_url.value + "\">" + window.opener.document.clf_business_frm.link_text.value + "</a>" + " " + window.opener.document.clf_business_frm.link_desc.value;
	window.opener.document.clf_business_frm.link_code.value = val;
	
}


else



{


link_page=change_businesscat_quotes('','link_url');

link_title=change_businesscat_quotes('','link_text');

link_desc=change_businesscat_quotes('','link_desc');


}


}

function change_businesscat_quotes(abc,field_name)

{


	str = abc;


	do{

		count=new Array();

		str = str.replace("!~!","\\'");

		count = str.split("!~!");

	}while(count.length >1);


	do{

		count=new Array();

		str = str.replace("~@#","\"");

		count = str.split("~@#");

	}while(count.length >1);

	chk_quote=str.split("\"");

	if(chk_quote.length >1)

	{

		eval_str="window.opener.document.clf_business_frm."+field_name+".value='"+str+"'"; 

	}	

	else

	{


		eval_str="window.opener.document.clf_business_frm."+field_name+".value=\""+str+"\"";


	}

		eval(eval_str);

}

//classified_city_selection.php
function addclassifiedcity(hid_val,city_name, frmname, fieldname)
{
	if(frmname.length > 0)
		frm=frmname;
	else
		frm="clf_business_frm";
		
	var winopener;
			
	winopener=eval("window.opener.document."+frm+"."+fieldname);
		if(fieldname=="unapproved_city")
			eval("window.opener.document."+frm+".city.value=''");
		winopener.value = hid_val;
		window.opener.document.getElementById('zip1').innerHTML = city_name;
	    		
		window.opener.focus();
		
		window.close();
}

//clf_business_detail.php
function classifiedlinkcode()
{
	val = "<a href=\"" + document.clf_business_frm.link_url.value + "\">" + document.clf_business_frm.link_text.value + "</a>" + " " + document.clf_business_frm.link_desc.value;
	document.clf_business_frm.link_code.value = val;
}





//141008
function chk_event(frmname)
{

	var msg="", dc;
   
    dc=eval("document."+frmname);
			
	if(dc.user_id.value.length==0)
		msg += "Please choose a user!\n";
		
	if(dc.title.value.length == 0)
	   msg += "Please enter Title!\n";
	   
	if(dc.category.value.length == 0)
	   msg += "Please Choose a Category!\n";   
	
	if(dc.short_description.value.length == 0)
	   msg += "Please enter Short Description!\n";
	else if(dc.short_description.value.length >255)
		msg += "Short Description exceeds the maximum char limit!\n";	
	   
	if(dc.description.value.length == 0)
	   msg += "Please enter Long Description!\n";   
	  
	if(dc.website.value.length >0)
	{
	
		web_arr=dc.website.value.split("http://");
		
		if(web_arr.length <= 1)
			msg += "Please add http:// infront of website!\n";
	}
	
	if(dc.venue.value.length == 0)
	   msg += "Please enter Venue Name!\n";
	   
	if(dc.venue_street.value.length == 0)
	   msg += "Please enter Venue Street!\n";
		
	if(dc.city.value<=0 && dc.unapproved_city.value<=0)//231008
	   msg += "Please choose Venue Town!\n";
	      
	if(dc.venue_zip.value.length == 0)
	   msg += "Please enter Venue Postcode!\n"; 
	   
	if(dc.organisation.value.length == 0)
	   msg += "Please enter Organisation!\n";
	   
	if(dc.contact_name.value.length == 0)
	   msg += "Please enter Contact Person!\n";
	   
	if(dc.designation.value.length == 0)
	   msg += "Please enter Position in Business!\n";
	   
	if(dc.street.value.length == 0)
	   msg += "Please enter Street!\n"; 
	   
	if(dc.zip.value.length == 0)
	   msg += "Please enter Postcode!\n";    
	   
	if(dc.phone.value.length == 0)
	   msg += "Please enter Contact Phone!\n";                            
	      
	if(dc.email.value.length == 0)
	   msg += "Please enter Contact Email!\n";
	
    else if(!chk_email(dc.email))
	   msg += "Please enter a valid email address!\n";
		
	if(msg.length > 0)
	{
		alert(msg);
		return false;
	}
	else
		return true;
		
}

function chk_cat_max(frmname)
 {
  	 var dc, count=0;
	 
	 dc=eval("document."+frmname);
	 
	 for(i=0;i<dc.elements.length;i++)
	 {
	 
	 	if(dc.elements[i].name=="eventcat_ids[]")
		{
		
			if(dc.elements[i].checked && count < 3)
				count++;				
			
			if(count > 2)
			{				
				alert("You can select maximum 2 categories!");					
				dc.elements[i].checked=false;
				break;
			}				
		}
	 }
  }
  
  
  
  
  function chk_parent(obj, frmname)
{

	var dc;
	
	dc=eval("document."+frmname);
	
	val_arr=obj.value.split("-");
	
	if(frmname=="event_srch_frm")
		dc.head_category.value=val_arr[0];
	else
		document.frm_event.category.value=val_arr[0];	
	
	if(val_arr[1] > 0)
	{				
		if(frmname!="event_srch_frm")
			dc.catid.value=val_arr[0];								
		else
		{
			dc.action='';		
			dc.srch_parent_cat.value=val_arr[0];
		}			
		dc.submit();
	}
	else
	{	
		if(document.getElementById('head_subcategory'))	
			document.getElementById('head_subcategory').disabled=true;
	}	
}


function chk_country_zip(frmname)
{

	var msg="",dc;

	dc=eval("document."+frmname);
		
	set_field('postcode_frm','cityval',dc.confirm_city.value);
	set_field('postcode_frm','stateval',dc.states_dd.value);
				
	if(dc.states_dd.value <=0)
		msg+="Please choose a State\n";	

	if(dc.confirm_city.value.length < 2) //180708
			
		msg+="Please enter atleaset 2 characters of your city\n";
		
	if(msg.length >0)
		alert(msg);
	else	
		document.postcode_frm.submit(); 
				
		
}			



 function setstate(obj,frmname,field)//151008
{
	if(frmname!="clf_business_frm")
	{
		if(field=="venue_state")
			set_field(frmname,'venue_state',obj.value);
		else
			set_field(frmname,'state',obj.value);	
	}
	else
	{
		
		set_field('clf_business_frm','state',obj.value);
	}	
}//151008



//190408
function popupwindow(obj)
{
	window.open(obj, '', "scrollbars=yes, menu=no, status=no, resizable=yes, width=640, height=480");
}

function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

/*210408*/
function chk_mail_friend(frmname)
{

   var msg="", dc;
   
   dc=eval("document."+frmname);
   //280808
   if(dc.from_name.value.length == 0)
	   msg += "Please enter your Name!\n";
	   
   if(dc.to_name.value.length == 0)
	   msg += "Please enter Friend Name!\n"; //280808
	   	   
   if(dc.from_email.value.length == 0)
	   msg += "Please enter your Email!\n";
	
   else if(!chk_email(dc.from_email))
	   msg += "Please enter a valid email address!\n";
	   
   if(dc.to_email.value.length == 0)
	   msg += "Please enter your Friend Email!\n";
	
   else if(!chk_email(dc.to_email))
	   msg += "Please enter a valid email address!\n";
	   	   
	
	if(msg.length > 0)
	{
		alert(msg);
		return false;
	}
	else
		return true;
	
}	



//ad_email_form.php

function chk_msg_form(frmname)
{

var msg = "", dc = eval("document." + frmname);

if(dc.name.value.length == 0)
	msg += "Please enter Your Name!\n";
	
if(dc.email.value.length == 0)
	msg += "Please enter Your Email!\n";
else if(!chk_email(dc.email))
	msg += "Please enter a valid email!\n";
	
if(dc.message.value.length == 0)
	msg += "Please enter your queries!\n";
	
if(msg.length > 0)
{
	alert(msg);
	return false;
}
else
{
	return true;
}

}


function chk_banner_business(obj)
{
	
	var msg = "";
	
	if(obj.business_name.value.length == 0)
		msg += "Please enter Business Name!\n";		
		
	if(obj.email.value.length == 0)
		msg += "Please enter email!\n";

	else if(!chk_email(obj.email))
		msg += "Please enter a valid email address!\n";
	
	if(document.getElementById('country'))
	{	
	
		if(obj.country.value.length == 0)
			msg += "Please choose country!\n";
	}		
			
	if(document.getElementById('states_dd') || document.getElementById('state'))
	{		
		if(obj.states_dd.value.length == 0)
			msg += "Please choose state!\n";
	}	
		
	if(obj.zip.value.length == 0)
		msg += "Please enter Zip!\n";
	
	if(!obj.terms.checked)
		msg+="Please accept terms and conditions!\n";
		
	if(msg.length > 0)
	{
		alert(msg);
		return false;
	}	
					
	if(document.getElementById('states_dd') || document.getElementById('state'))
	{		
	  if(obj.states_dd.getAttribute("className") == "showObject") 
		setstate(dc.states_dd);
	}
	
	return true;
}

function check_all_locations(frm,sel,val)
{

	for(i=0;i<eval("document." + frm + ".elements.length");i++)

	{


		nam = eval("document." + frm + ".elements[" + i + "].name");

		if(nam.substring(0,8)==val)

		{

			eval("document." + frm + ".elements[" + i + "].checked = " + sel.checked);
		
		}
		
	}	
}	

var DDSPEED = 2;
var DDTIMER = 1;

// main function to handle the mouse events //
function ddMenu(id,d){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearInterval(c.timer);
  if(d == 1){
    clearTimeout(h.timer);
    if(c.maxh && c.maxh <= c.offsetHeight){return}
    else if(!c.maxh){
      c.style.display = 'block';
      c.style.height = 'auto';
      c.maxh = c.offsetHeight;
      c.style.height = '0px';
    }
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }else{
    h.timer = setTimeout(function(){ddCollapse(c)},50);
  }
}

// collapse the menu //
function ddCollapse(c){
  c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER);
}

// cancel the collapse if a user rolls over the dropdown //
function cancelHide(id){
  var h = document.getElementById(id + '-ddheader');
  var c = document.getElementById(id + '-ddcontent');
  clearTimeout(h.timer);
  clearInterval(c.timer);
  if(c.offsetHeight < c.maxh){
    c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER);
  }
}

// incrementally expand/contract the dropdown and change the opacity //
function ddSlide(c,d){
  var currh = c.offsetHeight;
  var dist;
  if(d == 1){
    dist = (Math.round((c.maxh - currh) / DDSPEED));
  }else{
    dist = (Math.round(currh / DDSPEED));
  }
  if(dist <= 1 && d == 1){
    dist = 1;
  }
  c.style.height = currh + (dist * d) + 'px';
  c.style.opacity = currh / c.maxh;
  c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')';
  if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){
    clearInterval(c.timer);
  }
}

/*
function NiftyCheck()
{
if(!document.getElementById || !document.createElement)
    return(false);
var b=navigator.userAgent.toLowerCase();
if(b.indexOf("msie 5")>0 && b.indexOf("opera")==-1)
    return(false);
return(true);
}

function NiftyCheck()
{
if(!document.getElementById || !document.createElement)
    return(false);
var b=navigator.userAgent.toLowerCase();
if(b.indexOf("msie 5")>0 && b.indexOf("opera")==-1)
    return(false);
return(true);
}

function Rounded(selector,bk,color,size){
var i;
var v=getElementsBySelector(selector);
var l=v.length;
for(i=0;i<l;i++){
    AddTop(v[i],bk,color,size);
    AddBottom(v[i],bk,color,size);
    }
}

function RoundedTop(selector,bk,color,size){
var i;
var v=getElementsBySelector(selector);
for(i=0;i<v.length;i++)
    AddTop(v[i],bk,color,size);
}

function RoundedBottom(selector,bk,color,size){
var i;
var v=getElementsBySelector(selector);
for(i=0;i<v.length;i++)
    AddBottom(v[i],bk,color,size);
}

function AddTop(el,bk,color,size){
var i;
var d=document.createElement("b");
var cn="r";
var lim=4;
if(size && size=="small"){ cn="rs"; lim=2}
d.className="rtop";
d.style.backgroundColor=bk;
for(i=1;i<=lim;i++){
    var x=document.createElement("b");
    x.className=cn + i;
    x.style.backgroundColor=color;
    d.appendChild(x);
    }
el.insertBefore(d,el.firstChild);
}

function AddBottom(el,bk,color,size){
var i;
var d=document.createElement("b");
var cn="r";
var lim=4;
if(size && size=="small"){ cn="rs"; lim=2}
d.className="rbottom";
d.style.backgroundColor=bk;
for(i=lim;i>0;i--){
    var x=document.createElement("b");
    x.className=cn + i;
    x.style.backgroundColor=color;
    d.appendChild(x);
    }
el.appendChild(d,el.firstChild);
}

function getElementsBySelector(selector){
var i;
var s=[];
var selid="";
var selclass="";
var tag=selector;
var objlist=[];
if(selector.indexOf(" ")>0){  //descendant selector like "tag#id tag"
    s=selector.split(" ");
    var fs=s[0].split("#");
    if(fs.length==1) return(objlist);
    return(document.getElementById(fs[1]).getElementsByTagName(s[1]));
    }
if(selector.indexOf("#")>0){ //id selector like "tag#id"
    s=selector.split("#");
    tag=s[0];
    selid=s[1];
    }
if(selid!=""){
    objlist.push(document.getElementById(selid));
    return(objlist);
    }
if(selector.indexOf(".")>0){  //class selector like "tag.class"
    s=selector.split(".");
    tag=s[0];
    selclass=s[1];
    }
var v=document.getElementsByTagName(tag);  // tag selector like "tag"
if(selclass=="")
    return(v);
for(i=0;i<v.length;i++){
    if(v[i].className==selclass){
        objlist.push(v[i]);
        }
    }
return(objlist);
}
*/

/*
 * Inline Form Validation Engine 1.3.9.5, jQuery plugin
 * 
 * Copyright(c) 2009, Cedric Dugas
 * http://www.position-relative.net
 *	
 * Form validation engine which allow custom regex rules to be added.
 * Licenced under the MIT Licence
 */
(function($) {
	$.fn.validationEngine = function(settings) {

	if($.validationEngineLanguage){				// IS THERE A LANGUAGE LOCALISATION ?
		allRules = $.validationEngineLanguage.allRules
	}else{
		allRules = 	{"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* This field is required",
						"alertTextCheckboxMultiple":"* Please select an option",
						"alertTextCheckboxe":"* This checkbox is required"},
					"length":{
						"regex":"none",
						"alertText":"*Between ",
						"alertText2":" and ",
						"alertText3": " characters allowed"},
					"minCheckbox":{
						"regex":"none",
						"alertText":"* Checks allowed Exceeded"},	
					"confirm":{
						"regex":"none",
						"alertText":"* Your field is not matching"},		
					"telephone":{
						"regex":"/^[0-9\-\(\)\ ]+$/",
						"alertText":"* Invalid phone number"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* Invalid email address"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* Invalid date, must be in YYYY-MM-DD format"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* Numbers only"},	
					"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* No special caracters allowed"},	
					"ajaxUser":{
						"file":"validateUser.php",
						"alertTextOk":"* This user is available",	
						"alertTextLoad":"* Loading, please wait",
						"alertText":"* This user is already taken"},	
					"ajaxName":{
						"file":"validateUser.php",
						"alertText":"* This name is already taken",
						"alertTextOk":"* This name is available",	
						"alertTextLoad":"* Loading, please wait"},		
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* Letters only"}
					}	
	}
 	settings = jQuery.extend({
		allrules:allRules,					
		inlineValidation: true,	
		ajaxSubmit: false,
		promptPosition: "topRight",	// OPENNING BOX POSITION, IMPLEMENTED: topLeft, topRight, bottomLeft, centerRight, bottomRight
		success : false,
		failure : function() {}
	}, settings);	
	
	
 
	$.validationEngine.ajaxValidArray = new Array()	// ARRAY FOR AJAX: VALIDATION MEMORY 

	$(this).bind("submit", function(caller){   // ON FORM SUBMIT, CONTROL AJAX FUNCTION IF SPECIFIED ON DOCUMENT READY
		$.validationEngine.onSubmitValid = true;
		
		if($.validationEngine.submitValidation(this,settings) == false){
			if($.validationEngine.submitForm(this,settings) == true) {return false;}
		}else{
			settings.failure && settings.failure(); 
			return false;
		}		
	})
	if(settings.inlineValidation == true){ 		// Validating Inline ?
		
		$(this).find("[class^=validate]").not("[type=checkbox]").bind("blur", function(caller){	_inlinEvent(this)   })
		$(this).find("[class^=validate][type=checkbox]").bind("click", function(caller){		_inlinEvent(this)   })
		
			function _inlinEvent(caller){
				if($.validationEngine.intercept == false){		// STOP INLINE VALIDATION THIS TIME ONLY
					$.validationEngine.onSubmitValid=false;
					$.validationEngine.loadValidation(caller,settings); 
				}else{
					$.validationEngine.intercept = false;
				}
			}
	}
};	
$.validationEngine = {
	submitForm : function(caller){
		if($.validationEngine.settings.ajaxSubmit){		
			$.ajax({
			   	type: "POST",
			   	url: $.validationEngine.settings.ajaxSubmitFile,
			   	async: true,
			   	data: $(caller).serialize(),
			   	success: function(data){
			   		if(data == "true"){			// EVERYTING IS FINE, SHOW SUCCESS MESSAGE
			   			$(caller).css("opacity",1)
			   			$(caller).animate({opacity: 0, height: 0}, function(){
			   				$(caller).css("display","none")
			   				$(caller).before("<div class='ajaxSubmit'>"+$.validationEngine.settings.ajaxSubmitMessage+"</div>")
			   				$.validationEngine.closePrompt(".formError",true) 	
			   				$(".ajaxSubmit").show("slow")
			   				if ($.validationEngine.settings.success){	// AJAX SUCCESS, STOP THE LOCATION UPDATE
								$.validationEngine.settings.success && $.validationEngine.settings.success(); 
								return false;
							}
			   			})
		   			}else{						// HOUSTON WE GOT A PROBLEM (SOMETING IS NOT VALIDATING)
			   			data = eval( "("+data+")");	
			   			errorNumber = data.jsonValidateReturn.length	
			   			for(index=0; index<errorNumber; index++){	
			   				fieldId = data.jsonValidateReturn[index][0];
			   				promptError = data.jsonValidateReturn[index][1];
			   				type = data.jsonValidateReturn[index][2];
			   				$.validationEngine.buildPrompt(fieldId,promptError,type);
		   				}
	   				}
   				}
			})	
			return true;
		}
		if ($.validationEngine.settings.success){	// AJAX SUCCESS, STOP THE LOCATION UPDATE
			$.validationEngine.settings.success && $.validationEngine.settings.success(); 
			return true;
		}
		return false;
	},
	buildPrompt : function(caller,promptText,type,ajaxed) {			// ERROR PROMPT CREATION AND DISPLAY WHEN AN ERROR OCCUR
		var divFormError = document.createElement('div')
		var formErrorContent = document.createElement('div')
		
		$(divFormError).addClass("formError")
		
		if(type == "pass"){ $(divFormError).addClass("greenPopup") }
		if(type == "load"){ $(divFormError).addClass("blackPopup") }
		if(ajaxed){ $(divFormError).addClass("ajaxed") }
		
		$(divFormError).addClass($(caller).attr("id"))
		$(formErrorContent).addClass("formErrorContent")
		
		$("body").append(divFormError)
		$(divFormError).append(formErrorContent)
			
		if($.validationEngine.showTriangle != false){		// NO TRIANGLE ON MAX CHECKBOX AND RADIO
			var arrow = document.createElement('div')
			$(arrow).addClass("formErrorArrow")
			$(divFormError).append(arrow)
			if($.validationEngine.settings.promptPosition == "bottomLeft" || $.validationEngine.settings.promptPosition == "bottomRight"){
			$(arrow).addClass("formErrorArrowBottom")
			$(arrow).html('<div class="line1"><!-- --></div><div class="line2"><!-- --></div><div class="line3"><!-- --></div><div class="line4"><!-- --></div><div class="line5"><!-- --></div><div class="line6"><!-- --></div><div class="line7"><!-- --></div><div class="line8"><!-- --></div><div class="line9"><!-- --></div><div class="line10"><!-- --></div>');
		}
			if($.validationEngine.settings.promptPosition == "topLeft" || $.validationEngine.settings.promptPosition == "topRight"){
				$(divFormError).append(arrow)
				$(arrow).html('<div class="line10"><!-- --></div><div class="line9"><!-- --></div><div class="line8"><!-- --></div><div class="line7"><!-- --></div><div class="line6"><!-- --></div><div class="line5"><!-- --></div><div class="line4"><!-- --></div><div class="line3"><!-- --></div><div class="line2"><!-- --></div><div class="line1"><!-- --></div>');
			}
		}
		$(formErrorContent).html(promptText)
	
		callerTopPosition = $(caller).offset().top;
		callerleftPosition = $(caller).offset().left;
		callerWidth =  $(caller).width()
		inputHeight = $(divFormError).height()
	
		/* POSITIONNING */
		if($.validationEngine.settings.promptPosition == "topRight"){callerleftPosition +=  callerWidth -30; callerTopPosition += -inputHeight -10; }
		if($.validationEngine.settings.promptPosition == "topLeft"){ callerTopPosition += -inputHeight -10; }
		
		if($.validationEngine.settings.promptPosition == "centerRight"){ callerleftPosition +=  callerWidth +13; }
		
		if($.validationEngine.settings.promptPosition == "bottomLeft"){
			callerHeight =  $(caller).height();
			callerleftPosition = callerleftPosition;
			callerTopPosition = callerTopPosition + callerHeight + 15;
		}
		if($.validationEngine.settings.promptPosition == "bottomRight"){
			callerHeight =  $(caller).height();
			callerleftPosition +=  callerWidth -30;
			callerTopPosition +=  callerHeight + 15;
		}
		$(divFormError).css({
			top:callerTopPosition,
			left:callerleftPosition,
			opacity:0
		})
		return $(divFormError).animate({"opacity":0.87},function(){return true;});	
	},
	updatePromptText : function(caller,promptText,type,ajaxed) {	// UPDATE TEXT ERROR IF AN ERROR IS ALREADY DISPLAYED
		updateThisPrompt =  $(caller).attr("id");
		updateThisPrompt = "."+updateThisPrompt;
		
		(type == "pass") ? $(updateThisPrompt).addClass("greenPopup") : $(updateThisPrompt).removeClass("greenPopup");
		(type == "load") ? $(updateThisPrompt).addClass("blackPopup") : $(updateThisPrompt).removeClass("blackPopup");
		(ajaxed) ? $(updateThisPrompt).addClass("ajaxed") : $(updateThisPrompt).removeClass("ajaxed");
	
		$(updateThisPrompt).find(".formErrorContent").html(promptText)
		callerTopPosition  = $(caller).offset().top;
		inputHeight = $(updateThisPrompt).height()
		
		if($.validationEngine.settings.promptPosition == "bottomLeft" || $.validationEngine.settings.promptPosition == "bottomRight"){
			callerHeight =  $(caller).height()
			callerTopPosition =  callerTopPosition + callerHeight + 15
		}
		if($.validationEngine.settings.promptPosition == "centerRight"){  callerleftPosition +=  callerWidth +13;}
		if($.validationEngine.settings.promptPosition == "topLeft" || $.validationEngine.settings.promptPosition == "topRight"){
			callerTopPosition = callerTopPosition  -inputHeight -10
		}
		$(updateThisPrompt).animate({
			top:callerTopPosition
		});
	},
	loadValidation : function(caller,settings) {		// GET VALIDATIONS TO BE EXECUTED
		$.validationEngine.settings = settings
		rulesParsing = $(caller).attr('class');
		rulesRegExp = /\[(.*)\]/;
		getRules = rulesRegExp.exec(rulesParsing);
		str = getRules[1]
		pattern = /\W+/;
		result= str.split(pattern);	
	
		var validateCalll = $.validationEngine.validateCall(caller,result)
		return validateCalll
	},
	validateCall : function(caller,rules) {	// EXECUTE VALIDATION REQUIRED BY THE USER FOR THIS FIELD
		var promptText =""	
		var prompt = $(caller).attr("id");
		var caller = caller;
		ajaxValidate = false
		var callerName = $(caller).attr("name");
		$.validationEngine.isError = false;
		$.validationEngine.showTriangle = true
		callerType = $(caller).attr("type");
		
		for (i=0; i<rules.length;i++){
			switch (rules[i]){
			case "optional": 
				if(!$(caller).val()){
					$.validationEngine.closePrompt(caller)
					return $.validationEngine.isError
				}
			break;
			case "required": 
				_required(caller,rules);
			break;
			case "custom": 
				 _customRegex(caller,rules,i);
			break;
			case "ajax": 
				if(!$.validationEngine.onSubmitValid){
					_ajax(caller,rules,i);	
				}
			break;
			case "length": 
				 _length(caller,rules,i);
			break;
			case "minCheckbox": 
				 _minCheckbox(caller,rules,i);
			break;
			case "confirm": 
				 _confirm(caller,rules,i);
			break;
			default :;
			};
		};
		if ($.validationEngine.isError == true){
			
			radioHackOpen();
			if ($.validationEngine.isError == true){ // show only one
				($("div."+prompt).size() ==0) ? $.validationEngine.buildPrompt(caller,promptText,"error")	: $.validationEngine.updatePromptText(caller,promptText);
			}
		}else{
			radioHackClose();
			$.validationEngine.closePrompt(caller);
		}		
		/* UNFORTUNATE RADIO AND CHECKBOX GROUP HACKS */
		/* As my validation is looping input with id's we need a hack for my validation to understand to group these inputs */
		function radioHackOpen(){
			if($("input[name="+callerName+"]").size()> 1 && callerType == "radio") {		// Hack for radio group button, the validation go the first radio
				caller = $("input[name="+callerName+"]:first");
				$.validationEngine.showTriangle = false;
				var callerId ="."+ $(caller).attr("id");
				if($(callerId).size()==0){ $.validationEngine.isError = true; }else{ $.validationEngine.isError = false;}
			}
			if($("input[name="+callerName+"]").size()> 1 && callerType == "checkbox") {		// Hack for checkbox group button, the validation go the first radio
				caller = $("input[name="+callerName+"]:first");
				$.validationEngine.showTriangle = false;
				var callerId ="div."+ $(caller).attr("id");
				if($(callerId).size()==0){ $.validationEngine.isError = true; }else{ $.validationEngine.isError = false;}
			}
		}
		function radioHackClose(){
			if($("input[name="+callerName+"]").size()> 1 && callerType == "radio") {		// Hack for radio group button, the validation go the first radio
				caller = $("input[name="+callerName+"]:first");
			}
			if($("input[name="+callerName+"]").size()> 1 && callerType == "checkbox") {		// Hack for checkbox group button, the validation go the first radio
				caller = $("input[name="+callerName+"]:first");
			}
		}
		/* VALIDATION FUNCTIONS */
		function _required(caller,rules){   // VALIDATE BLANK FIELD
			callerType = $(caller).attr("type");
			if (callerType == "text" || callerType == "password" || callerType == "textarea"){
								
				if(!$(caller).val()){
					$.validationEngine.isError = true;
					promptText += $.validationEngine.settings.allrules[rules[i]].alertText+"<br />";
				}	
			}	
			if (callerType == "radio" || callerType == "checkbox" ){
				callerName = $(caller).attr("name");
		
				if($("input[name="+callerName+"]:checked").size() == 0) {
					$.validationEngine.isError = true;
					if($("input[name="+callerName+"]").size() ==1) {
						promptText += $.validationEngine.settings.allrules[rules[i]].alertTextCheckboxe+"<br />"; 
					}else{
						 promptText += $.validationEngine.settings.allrules[rules[i]].alertTextCheckboxMultiple+"<br />";
					}	
				}
			}	
			if (callerType == "select-one") { // added by paul@kinetek.net for select boxes, Thank you
					callerName = $(caller).attr("id");
				
				if(!$("select[name="+callerName+"]").val()) {
					$.validationEngine.isError = true;
					promptText += $.validationEngine.settings.allrules[rules[i]].alertText+"<br />";
				}
			}
			if (callerType == "select-multiple") { // added by paul@kinetek.net for select boxes, Thank you
					callerName = $(caller).attr("id");
				
				if(!$("#"+callerName).val()) {
					$.validationEngine.isError = true;
					promptText += $.validationEngine.settings.allrules[rules[i]].alertText+"<br />";
				}
			}
		}
		function _customRegex(caller,rules,position){		 // VALIDATE REGEX RULES
			customRule = rules[position+1];
			pattern = eval($.validationEngine.settings.allrules[customRule].regex);
			
			if(!pattern.test($(caller).attr('value'))){
				$.validationEngine.isError = true;
				promptText += $.validationEngine.settings.allrules[customRule].alertText+"<br />";
			}
		}
		function _ajax(caller,rules,position){				 // VALIDATE AJAX RULES
			
			customAjaxRule = rules[position+1];
			postfile = $.validationEngine.settings.allrules[customAjaxRule].file;
			fieldValue = $(caller).val();
			ajaxCaller = caller;
			fieldId = $(caller).attr("id");
			ajaxValidate = true;
			ajaxisError = $.validationEngine.isError;
			
			/* AJAX VALIDATION HAS ITS OWN UPDATE AND BUILD UNLIKE OTHER RULES */	
			if(!ajaxisError){
				$.ajax({
				   	type: "POST",
				   	url: postfile,
				   	async: true,
				   	data: "validateValue="+fieldValue+"&validateId="+fieldId+"&validateError="+customAjaxRule,
				   	beforeSend: function(){		// BUILD A LOADING PROMPT IF LOAD TEXT EXIST		   			
				   		if($.validationEngine.settings.allrules[customAjaxRule].alertTextLoad){
				   		
				   			if(!$("div."+fieldId)[0]){				   				
	 			 				return $.validationEngine.buildPrompt(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextLoad,"load");
	 			 			}else{
	 			 				$.validationEngine.updatePromptText(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextLoad,"load");
	 			 			}
			   			}
			  	 	},
					success: function(data){					// GET SUCCESS DATA RETURN JSON
						data = eval( "("+data+")");				// GET JSON DATA FROM PHP AND PARSE IT
						ajaxisError = data.jsonValidateReturn[2];
						customAjaxRule = data.jsonValidateReturn[1];
						ajaxCaller = $("#"+data.jsonValidateReturn[0])[0];
						fieldId = ajaxCaller;
						ajaxErrorLength = $.validationEngine.ajaxValidArray.length
						existInarray = false;
						
			 			 if(ajaxisError == "false"){			// DATA FALSE UPDATE PROMPT WITH ERROR;
			 			 	
			 			 	_checkInArray(false)				// Check if ajax validation alreay used on this field
			 			 	
			 			 	if(!existInarray){		 			// Add ajax error to stop submit		 		
				 			 	$.validationEngine.ajaxValidArray[ajaxErrorLength] =  new Array(2)
				 			 	$.validationEngine.ajaxValidArray[ajaxErrorLength][0] = fieldId
				 			 	$.validationEngine.ajaxValidArray[ajaxErrorLength][1] = false
				 			 	existInarray = false;
			 			 	}
				
			 			 	$.validationEngine.ajaxValid = false;
							promptText += $.validationEngine.settings.allrules[customAjaxRule].alertText+"<br />";
							$.validationEngine.updatePromptText(ajaxCaller,promptText,"",true);				
						 }else{	 
						 	_checkInArray(true)
					
						 	$.validationEngine.ajaxValid = true; 						   
	 			 			if($.validationEngine.settings.allrules[customAjaxRule].alertTextOk){	// NO OK TEXT MEAN CLOSE PROMPT	 			
	 			 				 				$.validationEngine.updatePromptText(ajaxCaller,$.validationEngine.settings.allrules[customAjaxRule].alertTextOk,"pass",true);
 			 				}else{
				 			 	ajaxValidate = false;		 	
				 			 	$.validationEngine.closePrompt(ajaxCaller);
 			 				}		
			 			 }
				 			function  _checkInArray(validate){
				 				for(x=0;x<ajaxErrorLength;x++){
				 			 		if($.validationEngine.ajaxValidArray[x][0] == fieldId){
				 			 			$.validationEngine.ajaxValidArray[x][1] = validate
				 			 			existInarray = true;
				 			 		
				 			 		}
				 			 	}
				 			}
			 		}				
				});
			}
		}
		function _confirm(caller,rules,position){		 // VALIDATE FIELD MATCH
			confirmField = rules[position+1];
			
			if($(caller).attr('value') != $("#"+confirmField).attr('value')){
				$.validationEngine.isError = true;
				promptText += $.validationEngine.settings.allrules["confirm"].alertText+"<br />";
			}
		}
		function _length(caller,rules,position){    	  // VALIDATE LENGTH
		
			startLength = eval(rules[position+1]);
			endLength = eval(rules[position+2]);
			feildLength = $(caller).attr('value').length;

			if(feildLength<startLength || feildLength>endLength){
				$.validationEngine.isError = true;
				promptText += $.validationEngine.settings.allrules["length"].alertText+startLength+$.validationEngine.settings.allrules["length"].alertText2+endLength+$.validationEngine.settings.allrules["length"].alertText3+"<br />"
			}
		}
		function _minCheckbox(caller,rules,position){  	  // VALIDATE CHECKBOX NUMBER
		
			nbCheck = eval(rules[position+1]);
			groupname = $(caller).attr("name");
			groupSize = $("input[name="+groupname+"]:checked").size();
			
			if(groupSize > nbCheck){	
				$.validationEngine.isError = true;
				promptText += $.validationEngine.settings.allrules["minCheckbox"].alertText+"<br />";
			}
		}
		return($.validationEngine.isError) ? $.validationEngine.isError : false;
	},
	closePrompt : function(caller,outside) {						// CLOSE PROMPT WHEN ERROR CORRECTED
		if(outside){
			$(caller).fadeTo("fast",0,function(){
				$(caller).remove();
			});
			return false;
		}
		if(!ajaxValidate){
			closingPrompt = $(caller).attr("id");
	
			$("."+closingPrompt).fadeTo("fast",0,function(){
				$("."+closingPrompt).remove();
			});
		}
	},
	submitValidation : function(caller,settings) {					// FORM SUBMIT VALIDATION LOOPING INLINE VALIDATION
		var stopForm = false;
		$.validationEngine.settings = settings
		$.validationEngine.ajaxValid = true
		$(caller).find(".formError").remove();
		var toValidateSize = $(caller).find("[class^=validate]").size();
		
		$(caller).find("[class^=validate]").each(function(){
			callerId = $(this).attr("id")
			if(!$("."+callerId).hasClass("ajaxed")){	// DO NOT UPDATE ALREADY AJAXED FIELDS (only happen is no normal errors, don't worry)
				var validationPass = $.validationEngine.loadValidation(this,settings);
				return(validationPass) ? stopForm = true : "";					
			}
		});
		ajaxErrorLength = $.validationEngine.ajaxValidArray.length		// LOOK IF SOME AJAX IS NOT VALIDATE
		for(x=0;x<ajaxErrorLength;x++){
	 		if($.validationEngine.ajaxValidArray[x][1] == false){
	 			$.validationEngine.ajaxValid = false
	 		}
	 	}
		if(stopForm || !$.validationEngine.ajaxValid){		// GET IF THERE IS AN ERROR OR NOT FROM THIS VALIDATION FUNCTIONS
			destination = $(".formError:not('.greenPopup'):first").offset().top;
			$("html:not(:animated),body:not(:animated)").animate({ scrollTop: destination}, 1100);
			return true;
		}else{
			return false
		}
	}
}	
})(jQuery);

/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/

var swfobject = function() {
	
	var UNDEF = "undefined",
		OBJECT = "object",
		SHOCKWAVE_FLASH = "Shockwave Flash",
		SHOCKWAVE_FLASH_AX = "ShockwaveFlash.ShockwaveFlash",
		FLASH_MIME_TYPE = "application/x-shockwave-flash",
		EXPRESS_INSTALL_ID = "SWFObjectExprInst",
		ON_READY_STATE_CHANGE = "onreadystatechange",
		
		win = window,
		doc = document,
		nav = navigator,
		
		plugin = false,
		domLoadFnArr = [main],
		regObjArr = [],
		objIdArr = [],
		listenersArr = [],
		storedAltContent,
		storedAltContentId,
		storedCallbackFn,
		storedCallbackObj,
		isDomLoaded = false,
		isExpressInstallActive = false,
		dynamicStylesheet,
		dynamicStylesheetMedia,
		autoHideShow = true,
	
	/* Centralized function for browser feature detection
		- User agent string detection is only used when no good alternative is possible
		- Is executed directly for optimal performance
	*/	
	ua = function() {
		var w3cdom = typeof doc.getElementById != UNDEF && typeof doc.getElementsByTagName != UNDEF && typeof doc.createElement != UNDEF,
			u = nav.userAgent.toLowerCase(),
			p = nav.platform.toLowerCase(),
			windows = p ? /win/.test(p) : /win/.test(u),
			mac = p ? /mac/.test(p) : /mac/.test(u),
			webkit = /webkit/.test(u) ? parseFloat(u.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, // returns either the webkit version or false if not webkit
			ie = !+"\v1", // feature detection based on Andrea Giammarchi's solution: http://webreflection.blogspot.com/2009/01/32-bytes-to-know-if-your-browser-is-ie.html
			playerVersion = [0,0,0],
			d = null;
		if (typeof nav.plugins != UNDEF && typeof nav.plugins[SHOCKWAVE_FLASH] == OBJECT) {
			d = nav.plugins[SHOCKWAVE_FLASH].description;
			if (d && !(typeof nav.mimeTypes != UNDEF && nav.mimeTypes[FLASH_MIME_TYPE] && !nav.mimeTypes[FLASH_MIME_TYPE].enabledPlugin)) { // navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin indicates whether plug-ins are enabled or disabled in Safari 3+
				plugin = true;
				ie = false; // cascaded feature detection for Internet Explorer
				d = d.replace(/^.*\s+(\S+\s+\S+$)/, "$1");
				playerVersion[0] = parseInt(d.replace(/^(.*)\..*$/, "$1"), 10);
				playerVersion[1] = parseInt(d.replace(/^.*\.(.*)\s.*$/, "$1"), 10);
				playerVersion[2] = /[a-zA-Z]/.test(d) ? parseInt(d.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0;
			}
		}
		else if (typeof win.ActiveXObject != UNDEF) {
			try {
				var a = new ActiveXObject(SHOCKWAVE_FLASH_AX);
				if (a) { // a will return null when ActiveX is disabled
					d = a.GetVariable("$version");
					if (d) {
						ie = true; // cascaded feature detection for Internet Explorer
						d = d.split(" ")[1].split(",");
						playerVersion = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
			}
			catch(e) {}
		}
		return { w3:w3cdom, pv:playerVersion, wk:webkit, ie:ie, win:windows, mac:mac };
	}(),
	
	/* Cross-browser onDomLoad
		- Will fire an event as soon as the DOM of a web page is loaded
		- Internet Explorer workaround based on Diego Perini's solution: http://javascript.nwbox.com/IEContentLoaded/
		- Regular onload serves as fallback
	*/ 
	onDomLoad = function() {
		if (!ua.w3) { return; }
		if ((typeof doc.readyState != UNDEF && doc.readyState == "complete") || (typeof doc.readyState == UNDEF && (doc.getElementsByTagName("body")[0] || doc.body))) { // function is fired after onload, e.g. when script is inserted dynamically 
			callDomLoadFunctions();
		}
		if (!isDomLoaded) {
			if (typeof doc.addEventListener != UNDEF) {
				doc.addEventListener("DOMContentLoaded", callDomLoadFunctions, false);
			}		
			if (ua.ie && ua.win) {
				doc.attachEvent(ON_READY_STATE_CHANGE, function() {
					if (doc.readyState == "complete") {
						doc.detachEvent(ON_READY_STATE_CHANGE, arguments.callee);
						callDomLoadFunctions();
					}
				});
				if (win == top) { // if not inside an iframe
					(function(){
						if (isDomLoaded) { return; }
						try {
							doc.documentElement.doScroll("left");
						}
						catch(e) {
							setTimeout(arguments.callee, 0);
							return;
						}
						callDomLoadFunctions();
					})();
				}
			}
			if (ua.wk) {
				(function(){
					if (isDomLoaded) { return; }
					if (!/loaded|complete/.test(doc.readyState)) {
						setTimeout(arguments.callee, 0);
						return;
					}
					callDomLoadFunctions();
				})();
			}
			addLoadEvent(callDomLoadFunctions);
		}
	}();
	
	function callDomLoadFunctions() {
		if (isDomLoaded) { return; }
		try { // test if we can really add/remove elements to/from the DOM; we don't want to fire it too early
			var t = doc.getElementsByTagName("body")[0].appendChild(createElement("span"));
			t.parentNode.removeChild(t);
		}
		catch (e) { return; }
		isDomLoaded = true;
		var dl = domLoadFnArr.length;
		for (var i = 0; i < dl; i++) {
			domLoadFnArr[i]();
		}
	}
	
	function addDomLoadEvent(fn) {
		if (isDomLoaded) {
			fn();
		}
		else { 
			domLoadFnArr[domLoadFnArr.length] = fn; // Array.push() is only available in IE5.5+
		}
	}
	
	/* Cross-browser onload
		- Based on James Edwards' solution: http://brothercake.com/site/resources/scripts/onload/
		- Will fire an event as soon as a web page including all of its assets are loaded 
	 */
	function addLoadEvent(fn) {
		if (typeof win.addEventListener != UNDEF) {
			win.addEventListener("load", fn, false);
		}
		else if (typeof doc.addEventListener != UNDEF) {
			doc.addEventListener("load", fn, false);
		}
		else if (typeof win.attachEvent != UNDEF) {
			addListener(win, "onload", fn);
		}
		else if (typeof win.onload == "function") {
			var fnOld = win.onload;
			win.onload = function() {
				fnOld();
				fn();
			};
		}
		else {
			win.onload = fn;
		}
	}
	
	/* Main function
		- Will preferably execute onDomLoad, otherwise onload (as a fallback)
	*/
	function main() { 
		if (plugin) {
			testPlayerVersion();
		}
		else {
			matchVersions();
		}
	}
	
	/* Detect the Flash Player version for non-Internet Explorer browsers
		- Detecting the plug-in version via the object element is more precise than using the plugins collection item's description:
		  a. Both release and build numbers can be detected
		  b. Avoid wrong descriptions by corrupt installers provided by Adobe
		  c. Avoid wrong descriptions by multiple Flash Player entries in the plugin Array, caused by incorrect browser imports
		- Disadvantage of this method is that it depends on the availability of the DOM, while the plugins collection is immediately available
	*/
	function testPlayerVersion() {
		var b = doc.getElementsByTagName("body")[0];
		var o = createElement(OBJECT);
		o.setAttribute("type", FLASH_MIME_TYPE);
		var t = b.appendChild(o);
		if (t) {
			var counter = 0;
			(function(){
				if (typeof t.GetVariable != UNDEF) {
					var d = t.GetVariable("$version");
					if (d) {
						d = d.split(" ")[1].split(",");
						ua.pv = [parseInt(d[0], 10), parseInt(d[1], 10), parseInt(d[2], 10)];
					}
				}
				else if (counter < 10) {
					counter++;
					setTimeout(arguments.callee, 10);
					return;
				}
				b.removeChild(o);
				t = null;
				matchVersions();
			})();
		}
		else {
			matchVersions();
		}
	}
	
	/* Perform Flash Player and SWF version matching; static publishing only
	*/
	function matchVersions() {
		var rl = regObjArr.length;
		if (rl > 0) {
			for (var i = 0; i < rl; i++) { // for each registered object element
				var id = regObjArr[i].id;
				var cb = regObjArr[i].callbackFn;
				var cbObj = {success:false, id:id};
				if (ua.pv[0] > 0) {
					var obj = getElementById(id);
					if (obj) {
						if (hasPlayerVersion(regObjArr[i].swfVersion) && !(ua.wk && ua.wk < 312)) { // Flash Player version >= published SWF version: Houston, we have a match!
							setVisibility(id, true);
							if (cb) {
								cbObj.success = true;
								cbObj.ref = getObjectById(id);
								cb(cbObj);
							}
						}
						else if (regObjArr[i].expressInstall && canExpressInstall()) { // show the Adobe Express Install dialog if set by the web page author and if supported
							var att = {};
							att.data = regObjArr[i].expressInstall;
							att.width = obj.getAttribute("width") || "0";
							att.height = obj.getAttribute("height") || "0";
							if (obj.getAttribute("class")) { att.styleclass = obj.getAttribute("class"); }
							if (obj.getAttribute("align")) { att.align = obj.getAttribute("align"); }
							// parse HTML object param element's name-value pairs
							var par = {};
							var p = obj.getElementsByTagName("param");
							var pl = p.length;
							for (var j = 0; j < pl; j++) {
								if (p[j].getAttribute("name").toLowerCase() != "movie") {
									par[p[j].getAttribute("name")] = p[j].getAttribute("value");
								}
							}
							showExpressInstall(att, par, id, cb);
						}
						else { // Flash Player and SWF version mismatch or an older Webkit engine that ignores the HTML object element's nested param elements: display alternative content instead of SWF
							displayAltContent(obj);
							if (cb) { cb(cbObj); }
						}
					}
				}
				else {	// if no Flash Player is installed or the fp version cannot be detected we let the HTML object element do its job (either show a SWF or alternative content)
					setVisibility(id, true);
					if (cb) {
						var o = getObjectById(id); // test whether there is an HTML object element or not
						if (o && typeof o.SetVariable != UNDEF) { 
							cbObj.success = true;
							cbObj.ref = o;
						}
						cb(cbObj);
					}
				}
			}
		}
	}
	
	function getObjectById(objectIdStr) {
		var r = null;
		var o = getElementById(objectIdStr);
		if (o && o.nodeName == "OBJECT") {
			if (typeof o.SetVariable != UNDEF) {
				r = o;
			}
			else {
				var n = o.getElementsByTagName(OBJECT)[0];
				if (n) {
					r = n;
				}
			}
		}
		return r;
	}
	
	/* Requirements for Adobe Express Install
		- only one instance can be active at a time
		- fp 6.0.65 or higher
		- Win/Mac OS only
		- no Webkit engines older than version 312
	*/
	function canExpressInstall() {
		return !isExpressInstallActive && hasPlayerVersion("6.0.65") && (ua.win || ua.mac) && !(ua.wk && ua.wk < 312);
	}
	
	/* Show the Adobe Express Install dialog
		- Reference: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=6a253b75
	*/
	function showExpressInstall(att, par, replaceElemIdStr, callbackFn) {
		isExpressInstallActive = true;
		storedCallbackFn = callbackFn || null;
		storedCallbackObj = {success:false, id:replaceElemIdStr};
		var obj = getElementById(replaceElemIdStr);
		if (obj) {
			if (obj.nodeName == "OBJECT") { // static publishing
				storedAltContent = abstractAltContent(obj);
				storedAltContentId = null;
			}
			else { // dynamic publishing
				storedAltContent = obj;
				storedAltContentId = replaceElemIdStr;
			}
			att.id = EXPRESS_INSTALL_ID;
			if (typeof att.width == UNDEF || (!/%$/.test(att.width) && parseInt(att.width, 10) < 310)) { att.width = "310"; }
			if (typeof att.height == UNDEF || (!/%$/.test(att.height) && parseInt(att.height, 10) < 137)) { att.height = "137"; }
			doc.title = doc.title.slice(0, 47) + " - Flash Player Installation";
			var pt = ua.ie && ua.win ? "ActiveX" : "PlugIn",
				fv = "MMredirectURL=" + win.location.toString().replace(/&/g,"%26") + "&MMplayerType=" + pt + "&MMdoctitle=" + doc.title;
			if (typeof par.flashvars != UNDEF) {
				par.flashvars += "&" + fv;
			}
			else {
				par.flashvars = fv;
			}
			// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
			// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			if (ua.ie && ua.win && obj.readyState != 4) {
				var newObj = createElement("div");
				replaceElemIdStr += "SWFObjectNew";
				newObj.setAttribute("id", replaceElemIdStr);
				obj.parentNode.insertBefore(newObj, obj); // insert placeholder div that will be replaced by the object element that loads expressinstall.swf
				obj.style.display = "none";
				(function(){
					if (obj.readyState == 4) {
						obj.parentNode.removeChild(obj);
					}
					else {
						setTimeout(arguments.callee, 10);
					}
				})();
			}
			createSWF(att, par, replaceElemIdStr);
		}
	}
	
	/* Functions to abstract and display alternative content
	*/
	function displayAltContent(obj) {
		if (ua.ie && ua.win && obj.readyState != 4) {
			// IE only: when a SWF is loading (AND: not available in cache) wait for the readyState of the object element to become 4 before removing it,
			// because you cannot properly cancel a loading SWF file without breaking browser load references, also obj.onreadystatechange doesn't work
			var el = createElement("div");
			obj.parentNode.insertBefore(el, obj); // insert placeholder div that will be replaced by the alternative content
			el.parentNode.replaceChild(abstractAltContent(obj), el);
			obj.style.display = "none";
			(function(){
				if (obj.readyState == 4) {
					obj.parentNode.removeChild(obj);
				}
				else {
					setTimeout(arguments.callee, 10);
				}
			})();
		}
		else {
			obj.parentNode.replaceChild(abstractAltContent(obj), obj);
		}
	} 

	function abstractAltContent(obj) {
		var ac = createElement("div");
		if (ua.win && ua.ie) {
			ac.innerHTML = obj.innerHTML;
		}
		else {
			var nestedObj = obj.getElementsByTagName(OBJECT)[0];
			if (nestedObj) {
				var c = nestedObj.childNodes;
				if (c) {
					var cl = c.length;
					for (var i = 0; i < cl; i++) {
						if (!(c[i].nodeType == 1 && c[i].nodeName == "PARAM") && !(c[i].nodeType == 8)) {
							ac.appendChild(c[i].cloneNode(true));
						}
					}
				}
			}
		}
		return ac;
	}
	
	/* Cross-browser dynamic SWF creation
	*/
	function createSWF(attObj, parObj, id) {
		var r, el = getElementById(id);
		if (ua.wk && ua.wk < 312) { return r; }
		if (el) {
			if (typeof attObj.id == UNDEF) { // if no 'id' is defined for the object element, it will inherit the 'id' from the alternative content
				attObj.id = id;
			}
			if (ua.ie && ua.win) { // Internet Explorer + the HTML object element + W3C DOM methods do not combine: fall back to outerHTML
				var att = "";
				for (var i in attObj) {
					if (attObj[i] != Object.prototype[i]) { // filter out prototype additions from other potential libraries
						if (i.toLowerCase() == "data") {
							parObj.movie = attObj[i];
						}
						else if (i.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							att += ' class="' + attObj[i] + '"';
						}
						else if (i.toLowerCase() != "classid") {
							att += ' ' + i + '="' + attObj[i] + '"';
						}
					}
				}
				var par = "";
				for (var j in parObj) {
					if (parObj[j] != Object.prototype[j]) { // filter out prototype additions from other potential libraries
						par += '<param name="' + j + '" value="' + parObj[j] + '" />';
					}
				}
				el.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + att + '>' + par + '</object>';
				objIdArr[objIdArr.length] = attObj.id; // stored to fix object 'leaks' on unload (dynamic publishing only)
				r = getElementById(attObj.id);	
			}
			else { // well-behaving browsers
				var o = createElement(OBJECT);
				o.setAttribute("type", FLASH_MIME_TYPE);
				for (var m in attObj) {
					if (attObj[m] != Object.prototype[m]) { // filter out prototype additions from other potential libraries
						if (m.toLowerCase() == "styleclass") { // 'class' is an ECMA4 reserved keyword
							o.setAttribute("class", attObj[m]);
						}
						else if (m.toLowerCase() != "classid") { // filter out IE specific attribute
							o.setAttribute(m, attObj[m]);
						}
					}
				}
				for (var n in parObj) {
					if (parObj[n] != Object.prototype[n] && n.toLowerCase() != "movie") { // filter out prototype additions from other potential libraries and IE specific param element
						createObjParam(o, n, parObj[n]);
					}
				}
				el.parentNode.replaceChild(o, el);
				r = o;
			}
		}
		return r;
	}
	
	function createObjParam(el, pName, pValue) {
		var p = createElement("param");
		p.setAttribute("name", pName);	
		p.setAttribute("value", pValue);
		el.appendChild(p);
	}
	
	/* Cross-browser SWF removal
		- Especially needed to safely and completely remove a SWF in Internet Explorer
	*/
	function removeSWF(id) {
		var obj = getElementById(id);
		if (obj && obj.nodeName == "OBJECT") {
			if (ua.ie && ua.win) {
				obj.style.display = "none";
				(function(){
					if (obj.readyState == 4) {
						removeObjectInIE(id);
					}
					else {
						setTimeout(arguments.callee, 10);
					}
				})();
			}
			else {
				obj.parentNode.removeChild(obj);
			}
		}
	}
	
	function removeObjectInIE(id) {
		var obj = getElementById(id);
		if (obj) {
			for (var i in obj) {
				if (typeof obj[i] == "function") {
					obj[i] = null;
				}
			}
			obj.parentNode.removeChild(obj);
		}
	}
	
	/* Functions to optimize JavaScript compression
	*/
	function getElementById(id) {
		var el = null;
		try {
			el = doc.getElementById(id);
		}
		catch (e) {}
		return el;
	}
	
	function createElement(el) {
		return doc.createElement(el);
	}
	
	/* Updated attachEvent function for Internet Explorer
		- Stores attachEvent information in an Array, so on unload the detachEvent functions can be called to avoid memory leaks
	*/	
	function addListener(target, eventType, fn) {
		target.attachEvent(eventType, fn);
		listenersArr[listenersArr.length] = [target, eventType, fn];
	}
	
	/* Flash Player and SWF content version matching
	*/
	function hasPlayerVersion(rv) {
		var pv = ua.pv, v = rv.split(".");
		v[0] = parseInt(v[0], 10);
		v[1] = parseInt(v[1], 10) || 0; // supports short notation, e.g. "9" instead of "9.0.0"
		v[2] = parseInt(v[2], 10) || 0;
		return (pv[0] > v[0] || (pv[0] == v[0] && pv[1] > v[1]) || (pv[0] == v[0] && pv[1] == v[1] && pv[2] >= v[2])) ? true : false;
	}
	
	/* Cross-browser dynamic CSS creation
		- Based on Bobby van der Sluis' solution: http://www.bobbyvandersluis.com/articles/dynamicCSS.php
	*/	
	function createCSS(sel, decl, media, newStyle) {
		if (ua.ie && ua.mac) { return; }
		var h = doc.getElementsByTagName("head")[0];
		if (!h) { return; } // to also support badly authored HTML pages that lack a head element
		var m = (media && typeof media == "string") ? media : "screen";
		if (newStyle) {
			dynamicStylesheet = null;
			dynamicStylesheetMedia = null;
		}
		if (!dynamicStylesheet || dynamicStylesheetMedia != m) { 
			// create dynamic stylesheet + get a global reference to it
			var s = createElement("style");
			s.setAttribute("type", "text/css");
			s.setAttribute("media", m);
			dynamicStylesheet = h.appendChild(s);
			if (ua.ie && ua.win && typeof doc.styleSheets != UNDEF && doc.styleSheets.length > 0) {
				dynamicStylesheet = doc.styleSheets[doc.styleSheets.length - 1];
			}
			dynamicStylesheetMedia = m;
		}
		// add style rule
		if (ua.ie && ua.win) {
			if (dynamicStylesheet && typeof dynamicStylesheet.addRule == OBJECT) {
				dynamicStylesheet.addRule(sel, decl);
			}
		}
		else {
			if (dynamicStylesheet && typeof doc.createTextNode != UNDEF) {
				dynamicStylesheet.appendChild(doc.createTextNode(sel + " {" + decl + "}"));
			}
		}
	}
	
	function setVisibility(id, isVisible) {
		if (!autoHideShow) { return; }
		var v = isVisible ? "visible" : "hidden";
		if (isDomLoaded && getElementById(id)) {
			getElementById(id).style.visibility = v;
		}
		else {
			createCSS("#" + id, "visibility:" + v);
		}
	}

	/* Filter to avoid XSS attacks
	*/
	function urlEncodeIfNecessary(s) {
		var regex = /[\\\"<>\.;]/;
		var hasBadChars = regex.exec(s) != null;
		return hasBadChars && typeof encodeURIComponent != UNDEF ? encodeURIComponent(s) : s;
	}
	
	/* Release memory to avoid memory leaks caused by closures, fix hanging audio/video threads and force open sockets/NetConnections to disconnect (Internet Explorer only)
	*/
	var cleanup = function() {
		if (ua.ie && ua.win) {
			window.attachEvent("onunload", function() {
				// remove listeners to avoid memory leaks
				var ll = listenersArr.length;
				for (var i = 0; i < ll; i++) {
					listenersArr[i][0].detachEvent(listenersArr[i][1], listenersArr[i][2]);
				}
				// cleanup dynamically embedded objects to fix audio/video threads and force open sockets and NetConnections to disconnect
				var il = objIdArr.length;
				for (var j = 0; j < il; j++) {
					removeSWF(objIdArr[j]);
				}
				// cleanup library's main closures to avoid memory leaks
				for (var k in ua) {
					ua[k] = null;
				}
				ua = null;
				for (var l in swfobject) {
					swfobject[l] = null;
				}
				swfobject = null;
			});
		}
	}();
	
	return {
		/* Public API
			- Reference: http://code.google.com/p/swfobject/wiki/documentation
		*/ 
		registerObject: function(objectIdStr, swfVersionStr, xiSwfUrlStr, callbackFn) {
			if (ua.w3 && objectIdStr && swfVersionStr) {
				var regObj = {};
				regObj.id = objectIdStr;
				regObj.swfVersion = swfVersionStr;
				regObj.expressInstall = xiSwfUrlStr;
				regObj.callbackFn = callbackFn;
				regObjArr[regObjArr.length] = regObj;
				setVisibility(objectIdStr, false);
			}
			else if (callbackFn) {
				callbackFn({success:false, id:objectIdStr});
			}
		},
		
		getObjectById: function(objectIdStr) {
			if (ua.w3) {
				return getObjectById(objectIdStr);
			}
		},
		
		embedSWF: function(swfUrlStr, replaceElemIdStr, widthStr, heightStr, swfVersionStr, xiSwfUrlStr, flashvarsObj, parObj, attObj, callbackFn) {
			var callbackObj = {success:false, id:replaceElemIdStr};
			if (ua.w3 && !(ua.wk && ua.wk < 312) && swfUrlStr && replaceElemIdStr && widthStr && heightStr && swfVersionStr) {
				setVisibility(replaceElemIdStr, false);
				addDomLoadEvent(function() {
					widthStr += ""; // auto-convert to string
					heightStr += "";
					var att = {};
					if (attObj && typeof attObj === OBJECT) {
						for (var i in attObj) { // copy object to avoid the use of references, because web authors often reuse attObj for multiple SWFs
							att[i] = attObj[i];
						}
					}
					att.data = swfUrlStr;
					att.width = widthStr;
					att.height = heightStr;
					var par = {}; 
					if (parObj && typeof parObj === OBJECT) {
						for (var j in parObj) { // copy object to avoid the use of references, because web authors often reuse parObj for multiple SWFs
							par[j] = parObj[j];
						}
					}
					if (flashvarsObj && typeof flashvarsObj === OBJECT) {
						for (var k in flashvarsObj) { // copy object to avoid the use of references, because web authors often reuse flashvarsObj for multiple SWFs
							if (typeof par.flashvars != UNDEF) {
								par.flashvars += "&" + k + "=" + flashvarsObj[k];
							}
							else {
								par.flashvars = k + "=" + flashvarsObj[k];
							}
						}
					}
					if (hasPlayerVersion(swfVersionStr)) { // create SWF
						var obj = createSWF(att, par, replaceElemIdStr);
						if (att.id == replaceElemIdStr) {
							setVisibility(replaceElemIdStr, true);
						}
						callbackObj.success = true;
						callbackObj.ref = obj;
					}
					else if (xiSwfUrlStr && canExpressInstall()) { // show Adobe Express Install
						att.data = xiSwfUrlStr;
						showExpressInstall(att, par, replaceElemIdStr, callbackFn);
						return;
					}
					else { // show alternative content
						setVisibility(replaceElemIdStr, true);
					}
					if (callbackFn) { callbackFn(callbackObj); }
				});
			}
			else if (callbackFn) { callbackFn(callbackObj);	}
		},
		
		switchOffAutoHideShow: function() {
			autoHideShow = false;
		},
		
		ua: ua,
		
		getFlashPlayerVersion: function() {
			return { major:ua.pv[0], minor:ua.pv[1], release:ua.pv[2] };
		},
		
		hasFlashPlayerVersion: hasPlayerVersion,
		
		createSWF: function(attObj, parObj, replaceElemIdStr) {
			if (ua.w3) {
				return createSWF(attObj, parObj, replaceElemIdStr);
			}
			else {
				return undefined;
			}
		},
		
		showExpressInstall: function(att, par, replaceElemIdStr, callbackFn) {
			if (ua.w3 && canExpressInstall()) {
				showExpressInstall(att, par, replaceElemIdStr, callbackFn);
			}
		},
		
		removeSWF: function(objElemIdStr) {
			if (ua.w3) {
				removeSWF(objElemIdStr);
			}
		},
		
		createCSS: function(selStr, declStr, mediaStr, newStyleBoolean) {
			if (ua.w3) {
				createCSS(selStr, declStr, mediaStr, newStyleBoolean);
			}
		},
		
		addDomLoadEvent: addDomLoadEvent,
		
		addLoadEvent: addLoadEvent,
		
		getQueryParamValue: function(param) {
			var q = doc.location.search || doc.location.hash;
			if (q) {
				if (/\?/.test(q)) { q = q.split("?")[1]; } // strip question mark
				if (param == null) {
					return urlEncodeIfNecessary(q);
				}
				var pairs = q.split("&");
				for (var i = 0; i < pairs.length; i++) {
					if (pairs[i].substring(0, pairs[i].indexOf("=")) == param) {
						return urlEncodeIfNecessary(pairs[i].substring((pairs[i].indexOf("=") + 1)));
					}
				}
			}
			return "";
		},
		
		// For internal usage only
		expressInstallCallback: function() {
			if (isExpressInstallActive) {
				var obj = getElementById(EXPRESS_INSTALL_ID);
				if (obj && storedAltContent) {
					obj.parentNode.replaceChild(storedAltContent, obj);
					if (storedAltContentId) {
						setVisibility(storedAltContentId, true);
						if (ua.ie && ua.win) { storedAltContent.style.display = "block"; }
					}
					if (storedCallbackFn) { storedCallbackFn(storedCallbackObj); }
				}
				isExpressInstallActive = false;
			} 
		}
	};
}();



(function($){$.InFieldLabels=function(b,c,d){var f=this;f.$label=$(b);f.label=b;f.$field=$(c);f.field=c;f.$label.data("InFieldLabels",f);f.showing=true;f.init=function(){f.options=$.extend({},$.InFieldLabels.defaultOptions,d);if(f.$field.val()!=""){f.$label.hide();f.showing=false};f.$field.focus(function(){f.fadeOnFocus()}).blur(function(){f.checkForEmpty(true)}).bind('keydown.infieldlabel',function(e){f.hideOnChange(e)}).change(function(e){f.checkForEmpty()}).bind('onPropertyChange',function(){f.checkForEmpty()})};f.fadeOnFocus=function(){if(f.showing){f.setOpacity(f.options.fadeOpacity)}};f.setOpacity=function(a){f.$label.stop().animate({opacity:a},f.options.fadeDuration);f.showing=(a>0.0)};f.checkForEmpty=function(a){if(f.$field.val()==""){f.prepForShow();f.setOpacity(a?1.0:f.options.fadeOpacity)}else{f.setOpacity(0.0)}};f.prepForShow=function(e){if(!f.showing){f.$label.css({opacity:0.0}).show();f.$field.bind('keydown.infieldlabel',function(e){f.hideOnChange(e)})}};f.hideOnChange=function(e){if((e.keyCode==16)||(e.keyCode==9))return;if(f.showing){f.$label.hide();f.showing=false};f.$field.unbind('keydown.infieldlabel')};f.init()};$.InFieldLabels.defaultOptions={fadeOpacity:0.5,fadeDuration:300};$.fn.inFieldLabels=function(c){return this.each(function(){var a=$(this).attr('for');if(!a)return;var b=$("input#"+a+"[type='text'],"+"input#"+a+"[type='password'],"+"textarea#"+a);if(b.length==0)return;(new $.InFieldLabels(this,b[0],c))})}})(jQuery);

/******************************************************************************
Name:    Highslide JS
Version: 4.1.5 (June 26 2009)
Config:  default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash +packed
Author:  Torstein Hønsi
Support: http://highslide.com/support

Licence:
Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5
License (http://creativecommons.org/licenses/by-nc/2.5/).

You are free:
	* to copy, distribute, display, and perform the work
	* to make derivative works

Under the following conditions:
	* Attribution. You must attribute the work in the manner  specified by  the
	  author or licensor.
	* Noncommercial. You may not use this work for commercial purposes.

* For  any  reuse  or  distribution, you  must make clear to others the license
  terms of this work.
* Any  of  these  conditions  can  be  waived  if  you  get permission from the 
  copyright holder.

Your fair use and other rights are in no way affected by the above.
******************************************************************************/
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('A m={14:{9B:\'aL\',aw:\'eE...\',av:\'9S 2a eF\',bt:\'9S 2a eG 2a eH\',8J:\'eP 2a eW I (f)\',cv:\'eX by <i>aj a7</i>\',cr:\'eY 2a eZ aj a7 ei\',8N:\'a8\',91:\'a6\',98:\'ac\',8R:\'aM\',8Z:\'aM (ez)\',am:\'eA\',a3:\'a9\',al:\'a9 1p (ab)\',ae:\'aa\',ah:\'aa 1p (ab)\',8M:\'a8 (9E Y)\',93:\'a6 (9E 3i)\',94:\'ac\',ag:\'1:1\',3Q:\'ft %1 fC %2\',7Q:\'9S 2a 2f 2L, fe ad fj 2a 3B. d4 9E dk O 1G ad 35.\'},5m:\'M/d6/\',8B:\'d3.56\',69:\'cZ.56\',7f:63,9o:63,4Y:15,9O:15,6b:15,6v:15,4p:db,ay:0.75,9d:L,8p:5,3U:2,cO:3,5G:1i,bp:\'4i 3i\',bn:1,bf:L,ck:\'cT://M.dl/\',ch:\'dM\',b7:L,8F:[\'a\',\'5c\'],3g:[],cq:63,4m:0,96:50,71:1i,7T:L,4E:L,3O:\'5r\',8W:L,4c:\'28\',9q:\'28\',9Y:H,9W:H,9G:L,4H:ak,6k:ak,5v:L,1X:\'e7-e8\',8U:{2N:\'<R 1Z="M-2N"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3G">\'+\'<a 23="#" 2k="{m.14.al}">\'+\'<1A>{m.14.a3}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3h">\'+\'<a 23="#" 2k="{m.14.ah}">\'+\'<1A>{m.14.ae}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1d-2H">\'+\'<a 23="#" 2k="{m.14.8J}">\'+\'<1A>{m.14.ag}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" >\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\',aQ:\'<R 1Z="M-fk"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}" 2p="D m.35(k)">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}" 2p="D m.1G(k)">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}" 2p="D 1i">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" 2p="D m.2f(k)">\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\'+\'<R 1Z="M-1k"></R>\'+\'<R 1Z="M-dF"><R>\'+\'<1A 1Z="M-3L" 2k="{m.14.am}"><1A></1A></1A>\'+\'</R></R>\'},6e:[],86:L,11:[],88:[\'5v\',\'3A\',\'4c\',\'9q\',\'9Y\',\'9W\',\'1X\',\'3U\',\'dG\',\'dy\',\'dx\',\'a2\',\'dq\',\'dp\',\'do\',\'9V\',\'ct\',\'9G\',\'45\',\'5t\',\'3g\',\'4m\',\'K\',\'N\',\'8e\',\'71\',\'7T\',\'4E\',\'dm\',\'dn\',\'dr\',\'2J\',\'8W\',\'3Y\',\'5e\',\'3O\',\'89\',\'9J\',\'4H\',\'6k\',\'aq\',\'ds\',\'2R\',\'2S\',\'cj\',\'cp\',\'1e\'],1L:[],6p:0,8f:{x:[\'br\',\'Y\',\'4A\',\'3i\',\'bq\'],y:[\'5A\',\'V\',\'9T\',\'4i\',\'7s\']},79:{},9V:{},a2:{},89:{an:{},2e:{},b5:{}},47:[],5u:[],4F:{},4K:[],7k:[],5i:[],6Q:{},8Y:{},7r:[],3X:9r((5d.6M.6f().2y(/.+(?:9Z|du|dt|1z)[\\/: ]([\\d.]+)/)||[0,\'0\'])[1]),1z:(19.5H&&!1U.3F),4o:/cw/.1c(5d.6M),5p:/dK.+9Z:1\\.[0-8].+dL/.1c(5d.6M),$:C(1D){q(1D)D 19.8S(1D)},2o:C(2b,3e){2b[2b.W]=3e},18:C(ai,3W,46,5M,b9){A el=19.18(ai);q(3W)m.3E(el,3W);q(b9)m.S(el,{7Z:0,8c:\'1r\',9t:0});q(46)m.S(el,46);q(5M)5M.1V(el);D el},3E:C(el,3W){O(A x 3j 3W)el[x]=3W[x];D el},S:C(el,46){O(A x 3j 46){q(m.1z&&x==\'1w\'){q(46[x]>0.99)el.E.e1(\'6g\');J el.E.6g=\'aT(1w=\'+(46[x]*2W)+\')\'}J el.E[x]=46[x]}},24:C(el,1y,3u){A 4D,3Z,4C;q(1I 3u!=\'72\'||3u===H){A 2K=bW;3u={41:2K[2],2S:2K[3],6G:2K[4]}}q(1I 3u.41!=\'3Q\')3u.41=63;3u.2S=1j[3u.2S]||1j.au;3u.6y=m.3E({},1y);O(A 3d 3j 1y){A e=1H m.fx(el,3u,3d);4D=9r(m.8L(el,3d))||0;3Z=9r(1y[3d]);4C=3d!=\'1w\'?\'F\':\'\';e.3t(4D,3Z,4C)}},8L:C(el,1y){q(19.7N){D 19.7N.cf(el,H).bw(1y)}J{q(1y==\'1w\')1y=\'6g\';A 3e=el.5L[1y.26(/\\-(\\w)/g,C(a,b){D b.aE()})];q(1y==\'6g\')3e=3e.26(/aT\\(1w=([0-9]+)\\)/,C(a,b){D b/2W});D 3e===\'\'?1:3e}},6d:C(){A d=19,w=1U,4e=d.9I&&d.9I!=\'bd\'?d.5n:d.1k;A b=d.1k;A aR=(w.6Y&&w.aU)?w.6Y+w.aU:1j.2Q(b.aW,b.1M),aO=(w.6N&&1U.aV)?w.6N+w.aV:1j.2Q(b.aS,b.1Q),6V=m.1z?4e.aW:(d.5n.8K||54.6Y),6U=m.1z?1j.2Q(4e.aS,4e.8I):(d.5n.8I||54.6N);A K=m.1z?4e.8K:(d.5n.8K||54.6Y),N=m.1z?4e.8I:54.6N;m.3V={6V:1j.2Q(6V,aR),6U:1j.2Q(6U,aO),K:K,N:N,7B:m.1z?4e.7B:dO,7A:m.1z?4e.7A:dN}},6n:C(el){q(/5c/i.1c(el.3T)){A 6O=19.2z(\'1S\');O(A i=0;i<6O.W;i++){A u=6O[i].dR;q(u&&u.26(/^.*?#/,\'\')==el.29.3d){el=6O[i];5f}}}A p={x:el.4I,y:el.7L};4Q(el.aP){el=el.aP;p.x+=el.4I;p.y+=el.7L;q(el!=19.1k&&el!=19.5n){p.x-=el.7B;p.y-=el.7A}}D p},2H:C(a,2e,3t,Z){q(!a)a=m.18(\'a\',H,{1m:\'1r\'},m.2g);q(1I a.65==\'C\')D 2e;q(Z==\'3y\'){O(A i=0;i<m.4K.W;i++){q(m.4K[i]&&m.4K[i].a==a){m.4K[i].bG();m.4K[i]=H;D 1i}}m.b4=L}1C{1H m.5x(a,2e,3t,Z);D 1i}1E(e){D L}},9c:C(a,2e,3t){D m.2H(a,2e,3t,\'3y\')},85:C(){D m.18(\'R\',{1b:\'M-3y-T\',2h:m.8V(m.8U.aQ)})},4G:C(el,3T,1b){A 1l=el.2z(3T);O(A i=0;i<1l.W;i++){q((1H 4y(1b)).1c(1l[i].1b)){D 1l[i]}}D H},8V:C(s){s=s.26(/\\s/g,\' \');A 2n=/{m\\.14\\.([^}]+)\\}/g,68=s.2y(2n),14;q(68)O(A i=0;i<68.W;i++){14=68[i].26(2n,"$1");q(1I m.14[14]!=\'1T\')s=s.26(68[i],m.14[14])}D s},bS:C(){A 1l=19.2z(\'a\');O(A i=0;i<1l.W;i++){A Z=m.aY(1l[i]);q(Z&&!1l[i].aX){(C(){A t=Z;q(m.1x(m,\'dU\',{7l:1l[i],Z:t})){1l[i].2p=(Z==\'2L\')?C(){D m.2H(k)}:C(){D m.9c(k,{2J:t})}}})();1l[i].aX=L}}m.6h()},aY:C(el){q(el.6I==\'M\')D\'2L\';J q(el.6I==\'M-3a\')D\'3a\';J q(el.6I==\'M-1h\')D\'1h\';J q(el.6I==\'M-3D\')D\'3D\'},7V:C(a){O(A i=0;i<m.5i.W;i++){q(m.5i[i][0]==a){A c=m.5i[i][1];m.5i[i][1]=c.4Z(1);D c}}D H},bv:C(e){A 2b=m.6h();O(A i=0;i<2b.4O.W;i++){A a=2b.4O[i];q(m.4b(a,\'2J\')==\'3a\'&&m.4b(a,\'8W\'))m.2o(m.7k,a)}m.8O(0)},8O:C(i){q(!m.7k[i])D;A a=m.7k[i];A 5S=m.5W(m.4b(a,\'8e\'));q(!5S)5S=m.85();A 3a=1H m.7p(a,5S,1);3a.8z=C(){};3a.3s=C(){m.2o(m.5i,[a,5S]);m.8O(i+1)};3a.8q()},b8:C(){A 8P=0,6P=-1,11=m.11,B,1F;O(A i=0;i<11.W;i++){B=11[i];q(B){1F=B.Q.E.1F;q(1F&&1F>8P){8P=1F;6P=i}}}q(6P==-1)m.31=-1;J 11[6P].3I()},4b:C(a,61){a.65=a.2p;A p=a.65?a.65():H;a.65=H;D(p&&1I p[61]!=\'1T\')?p[61]:(1I m[61]!=\'1T\'?m[61]:H)},7x:C(a){A 1e=m.4b(a,\'1e\');q(1e)D 1e;D a.23},5W:C(1D){A 1R=m.$(1D),4t=m.8Y[1D],a={};q(!1R&&!4t)D H;q(!4t){4t=1R.4Z(L);4t.1D=\'\';m.8Y[1D]=4t;D 1R}J{D 4t.4Z(L)}},3H:C(d){q(d)m.8H.1V(d);m.8H.2h=\'\'},1B:C(B){q(!m.2F){m.2F=m.18(\'R\',{1b:\'M-cL\',62:\'\',2p:C(){q(m.1x(m,\'de\'))m.2f()}},{1n:\'2r\',1o:\'22\',Y:0,1w:0},m.2g,L);m.2l(1U,\'3L\',m.4T)}m.2F.E.1m=\'\';m.4T();m.2F.62+=\'|\'+B.P;q(m.5p&&m.b6)m.S(m.2F,{6A:\'7a(\'+m.5m+\'dc.aJ)\',1w:1});J m.24(m.2F,{1w:B.4m},m.96)},8r:C(P){q(!m.2F)D;q(1I P!=\'1T\')m.2F.62=m.2F.62.26(\'|\'+P,\'\');q((1I P!=\'1T\'&&m.2F.62!=\'\')||(m.2u&&m.4b(m.2u,\'4m\')))D;q(m.5p&&m.b6)m.S(m.2F,{6A:\'1r\',K:0,N:0});J m.24(m.2F,{1w:0},m.96,H,C(){m.S(m.2F,{1m:\'1r\',K:0,N:0})})},4T:C(B){m.6d();q(!m.2F)D;A h=(m.1z&&B&&B.Q)?2v(B.Q.E.V)+2v(B.Q.E.N)+(B.1a?B.1a.1s:0):0;m.S(m.2F,{K:m.3V.6V+\'F\',N:1j.2Q(m.3V.6U,h)+\'F\'})},9v:C(4V,B){A 1f=B=B||m.2Y();q(m.2u)D 1i;J m.1f=1f;1C{m.2u=4V;4V.2p()}1E(e){m.1f=m.2u=H}1C{q(!4V||B.3g[1]!=\'4f\')B.2f()}1E(e){}D 1i},7j:C(el,2m){A B=m.2Y(el);q(B){4V=B.8a(2m);D m.9v(4V,B)}J D 1i},35:C(el){D m.7j(el,-1)},1G:C(el){D m.7j(el,1)},6x:C(e){q(!e)e=1U.2E;q(!e.2G)e.2G=e.8x;q(1I e.2G.95!=\'1T\')D L;q(!m.1x(m,\'d2\',e))D L;A B=m.2Y();A 2m=H;aC(e.d1){2c 70:q(B)B.6L();D L;2c 32:2m=2;5f;2c 34:2c 39:2c 40:2m=1;5f;2c 8:2c 33:2c 37:2c 38:2m=-1;5f;2c 27:2c 13:2m=0}q(2m!==H){q(2m!=2)m.5j(19,1U.3F?\'9z\':\'9y\',m.6x);q(!m.b7)D L;q(e.5h)e.5h();J e.bR=1i;q(B){q(2m==0){B.2f()}J q(2m==2){q(B.1p)B.1p.ca()}J{q(B.1p)B.1p.3h();m.7j(B.P,2m)}D 1i}}D L},dd:C(16){m.2o(m.1L,m.3E(16,{21:\'21\'+m.6p++}))},cY:C(1v){A 3c=1v.2R;q(1I 3c==\'72\'){O(A i=0;i<3c.W;i++){A o={};O(A x 3j 1v)o[x]=1v[x];o.2R=3c[i];m.2o(m.5u,o)}}J{m.2o(m.5u,1v)}},87:C(7l,7D){A el,2n=/^M-Q-([0-9]+)$/;el=7l;4Q(el.29){q(el.6o!==1T)D el.6o;q(el.1D&&2n.1c(el.1D))D el.1D.26(2n,"$1");el=el.29}q(!7D){el=7l;4Q(el.29){q(el.3T&&m.6F(el)){O(A P=0;P<m.11.W;P++){A B=m.11[P];q(B&&B.a==el)D P}}el=el.29}}D H},2Y:C(el,7D){q(1I el==\'1T\')D m.11[m.31]||H;q(1I el==\'3Q\')D m.11[el]||H;q(1I el==\'9n\')el=m.$(el);D m.11[m.87(el,7D)]||H},6F:C(a){D(a.2p&&a.2p.cz().26(/\\s/g,\' \').2y(/m.(cG|e)cU/))},bk:C(){O(A i=0;i<m.11.W;i++)q(m.11[i]&&m.11[i].5w)m.b8()},1x:C(64,90,2K){D 64&&64[90]?(64[90](64,2K)!==1i):L},9x:C(e){q(!e)e=1U.2E;q(e.cS>1)D L;q(!e.2G)e.2G=e.8x;A el=e.2G;4Q(el.29&&!(/M-(2L|3B|3y|3L)/.1c(el.1b))){el=el.29}A B=m.2Y(el);q(B&&(B.5X||!B.5w))D L;q(B&&e.Z==\'8G\'){q(e.2G.95)D L;A 2y=el.1b.2y(/M-(2L|3B|3L)/);q(2y){m.2D={B:B,Z:2y[1],Y:B.x.G,K:B.x.I,V:B.y.G,N:B.y.I,b3:e.77,aZ:e.7n};m.2l(19,\'76\',m.6Z);q(e.5h)e.5h();q(/M-(2L|3y)-7J/.1c(B.T.1b)){B.3I();m.92=L}D 1i}J q(/M-3y/.1c(el.1b)&&m.31!=B.P){B.3I();B.4W(\'1q\')}}J q(e.Z==\'bU\'){m.5j(19,\'76\',m.6Z);q(m.2D){q(m.53&&m.2D.Z==\'2L\')m.2D.B.T.E.4M=m.53;A 3z=m.2D.3z;q(!3z&&!m.92&&!/(3B|3L)/.1c(m.2D.Z)){q(m.1x(B,\'dS\'))B.2f()}J q(3z||(!3z&&m.b4)){m.2D.B.4W(\'1q\')}q(m.2D.B.3S)m.2D.B.3S.E.1m=\'1r\';q(3z)m.1x(m.2D.B,\'fi\',m.2D);q(3z)m.4T(B);m.92=1i;m.2D=H}J q(/M-2L-7J/.1c(el.1b)){el.E.4M=m.53}}D 1i},6Z:C(e){q(!m.2D)D L;q(!e)e=1U.2E;A a=m.2D,B=a.B;q(B.1h){q(!B.3S)B.3S=m.18(\'R\',H,{1n:\'2r\',K:B.x.I+\'F\',N:B.y.I+\'F\',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[i]))}q(m.1X)1H m.5U(m.1X,C(){m.7m(0)});J m.7m(0);q(m.69)A 56=m.18(\'1S\',{1e:m.5m+m.69})},6R:C(){q(!m.2g){m.6d();m.5b=m.1z&&m.3X<7;m.c3=m.5b&&7P.fr==\'fE:\';O(A x 3j m.7b){q(1I m[x]!=\'1T\')m.14[x]=m[x];J q(1I m.14[x]==\'1T\'&&1I m.7b[x]!=\'1T\')m.14[x]=m.7b[x]}m.2g=m.18(\'R\',{1b:\'M-2g\'},{1n:\'2r\',Y:0,V:0,K:\'2W%\',1F:m.4p,9l:\'aL\'},19.1k,L);m.2s=m.18(\'a\',{1b:\'M-2s\',2k:m.14.av,2h:m.14.aw,23:\'bo:;\'},{1n:\'2r\',V:\'-4h\',1w:m.ay,1F:1},m.2g);m.8H=m.18(\'R\',H,{1m:\'1r\'},m.2g);m.36=m.18(\'R\',{1b:\'M-36\'},{1o:(m.4o&&m.3X<cu)?\'22\':\'1q\'},m.2g,1);m.3v=m.18(\'R\',H,{a1:\'a0\',fH:\'fI\'},H,L);1j.fK=C(t,b,c,d){D c*t/d+b};1j.au=C(t,b,c,d){D c*(t/=d)*t+b};1j.9h=C(t,b,c,d){D-c*(t/=d)*(t-2)+b};m.cF=m.5b;m.cE=((1U.3F&&m.3X<9)||5d.a5==\'a4\'||(m.1z&&m.3X<5.5));m.1x(k,\'fu\')}},4q:C(){q(m.7K)D;m.7K=L;O(A i=0;i<m.7r.W;i++)m.7r[i]()},8T:C(){A el,1l,5H=[],4P=[],4O=[],3m={},2n;O(A i=0;i<m.8F.W;i++){1l=19.2z(m.8F[i]);O(A j=0;j<1l.W;j++){el=1l[j];2n=m.6F(el);q(2n){m.2o(5H,el);q(2n[0]==\'m.2H\')m.2o(4P,el);J q(2n[0]==\'m.9c\')m.2o(4O,el);A g=m.4b(el,\'2R\')||\'1r\';q(!3m[g])3m[g]=[];m.2o(3m[g],el)}}}m.4N={5H:5H,3m:3m,4P:4P,4O:4O};D m.4N},6h:C(){D m.4N||m.8T()},2f:C(el){A B=m.2Y(el);q(B)B.2f();D 1i}};m.fx=C(30,1v,1y){k.1v=1v;k.30=30;k.1y=1y;q(!1v.at)1v.at={}};m.fx.58={9P:C(){(m.fx.3J[k.1y]||m.fx.3J.aA)(k);q(k.1v.3J)k.1v.3J.ar(k.30,k.4r,k)},3t:C(ao,2a,4C){k.9Q=(1H 7z()).7C();k.4D=ao;k.3Z=2a;k.4C=4C;k.4r=k.4D;k.G=k.9R=0;A 54=k;C t(6m){D 54.3J(6m)}t.30=k.30;q(t()&&m.47.2o(t)==1){m.ap=fB(C(){A 47=m.47;O(A i=0;i<47.W;i++)q(!47[i]())47.fz(i--,1);q(!47.W){fJ(m.ap)}},13)}},3J:C(6m){A t=(1H 7z()).7C();q(6m||t>=k.1v.41+k.9Q){k.4r=k.3Z;k.G=k.9R=1;k.9P();k.1v.6y[k.1y]=L;A 9M=L;O(A i 3j k.1v.6y)q(k.1v.6y[i]!==L)9M=1i;q(9M){q(k.1v.6G)k.1v.6G.ar(k.30)}D 1i}J{A n=t-k.9Q;k.9R=n/k.1v.41;k.G=k.1v.2S(n,0,1,k.1v.41);k.4r=k.4D+((k.3Z-k.4D)*k.G);k.9P()}D L}};m.3E(m.fx,{3J:{1w:C(fx){m.S(fx.30,{1w:fx.4r})},aA:C(fx){q(fx.30.E&&fx.30.E[fx.1y]!=H)fx.30.E[fx.1y]=fx.4r+fx.4C;J fx.30[fx.1y]=fx.4r}}});m.5U=C(1X,3s){k.3s=3s;k.1X=1X;A v=m.3X,43;k.9p=m.1z&&v>=5.5&&v<7;q(!1X){q(3s)3s();D}m.6R();k.2i=m.18(\'2i\',{ey:0},{1o:\'1q\',1n:\'2r\',ex:\'eq\',K:0},m.2g,L);A 4g=m.18(\'4g\',H,H,k.2i,1);k.2I=[];O(A i=0;i<=8;i++){q(i%3==0)43=m.18(\'43\',H,{N:\'28\'},4g,L);k.2I[i]=m.18(\'2I\',H,H,43,L);A E=i!=4?{ep:0,eh:0}:{1n:\'4j\'};m.S(k.2I[i],E)}k.2I[4].1b=1X+\' M-1a\';k.aI()};m.5U.58={aI:C(){A 1e=m.5m+(m.ef||"ed/")+k.1X+".aJ";A aK=m.4o?m.2g:H;k.3M=m.18(\'1S\',H,{1n:\'2r\',V:\'-4h\'},aK,L);A 3x=k;k.3M.4L=C(){3x.aG()};k.3M.1e=1e},aG:C(){A o=k.1s=k.3M.K/4,G=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],1B={N:(2*o)+\'F\',K:(2*o)+\'F\'};O(A i=0;i<=8;i++){q(G[i]){q(k.9p){A w=(i==1||i==7)?\'2W%\':k.3M.K+\'F\';A R=m.18(\'R\',H,{K:\'2W%\',N:\'2W%\',1n:\'4j\',2q:\'1q\'},k.2I[i],L);m.18(\'R\',H,{6g:"em:ek.bH.eB(eC=eT, 1e=\'"+k.3M.1e+"\')",1n:\'2r\',K:w,N:k.3M.N+\'F\',Y:(G[i][0]*o)+\'F\',V:(G[i][1]*o)+\'F\'},R,L)}J{m.S(k.2I[i],{6A:\'7a(\'+k.3M.1e+\') \'+(G[i][0]*o)+\'F \'+(G[i][1]*o)+\'F\'})}q(1U.3F&&(i==3||i==5))m.18(\'R\',H,1B,k.2I[i],L);m.S(k.2I[i],1B)}}k.3M=H;q(m.4F[k.1X])m.4F[k.1X].6a();m.4F[k.1X]=k;q(k.3s)k.3s()},4B:C(G,1s,aF,2B,2S){A B=k.B,3C=B.Q.E,1s=1s||0,G=G||{x:B.x.G+1s,y:B.y.G+1s,w:B.x.U(\'1W\')-2*1s,h:B.y.U(\'1W\')-2*1s};q(aF)k.2i.E.1o=(G.h>=4*k.1s)?\'22\':\'1q\';m.S(k.2i,{Y:(G.x-k.1s)+\'F\',V:(G.y-k.1s)+\'F\',K:(G.w+2*k.1s)+\'F\'});G.w-=2*k.1s;G.h-=2*k.1s;m.S(k.2I[4],{K:G.w>=0?G.w+\'F\':0,N:G.h>=0?G.h+\'F\':0});q(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q(m.11[i]&&m.11[i].aH!=el&&!m.11[i].7w){m.11[i].6r()}}m.11[P]=k;q(!m.9d&&!m.2u){q(m.11[P-1])m.11[P-1].2f();q(1I m.31!=\'1T\'&&m.11[m.31])m.11[m.31].2f()}k.el=el;k.1N=m.6n(el);m.6d();A x=k.x=1H m.6q(k,\'x\');x.7U();A y=k.y=1H m.6q(k,\'y\');y.7U();q(/5c/i.1c(el.3T))k.cm(el);k.Q=m.18(\'R\',{1D:\'M-Q-\'+k.P,1b:\'M-Q \'+k.9J},{1o:\'1q\',1n:\'2r\',1F:m.4p+=2},H,L);k.Q.eK=k.Q.d7=m.az;q(k.3f==\'2L\'&&k.3U==2)k.3U=0;q(!k.1X||(k.1f&&k.2M&&k.3g[1]==\'4f\')){k[k.3f+\'8h\']()}J q(m.4F[k.1X]){k.8l();k[k.3f+\'8h\']()}J{k.5Q();A B=k;1H m.5U(k.1X,C(){B.8l();B[B.3f+\'8h\']()})}D L};m.5x.58={8s:C(e){1U.7P.23=k.1e},8l:C(){A 1a=k.1a=m.4F[k.1X];1a.B=k;1a.2i.E.1F=k.Q.E.1F-1;m.4F[k.1X]=H},5Q:C(){q(k.7w||k.2s)D;k.2s=m.2s;A B=k;k.2s.2p=C(){B.6r()};q(!m.1x(k,\'eI\'))D;A B=k,l=k.x.U(\'8b\')+\'F\',t=k.y.U(\'8b\')+\'F\';q(!2P&&k.1f&&k.3g[1]==\'4f\')A 2P=k.1f;q(2P){l=2P.x.U(\'8k\')+\'F\';t=2P.y.U(\'8k\')+\'F\';k.2s.E.1F=m.4p++}49(C(){q(B.2s)m.S(B.2s,{Y:l,V:t,1F:m.4p++})},2W)},eQ:C(){A B=k;A 1S=19.18(\'1S\');k.T=1S;1S.4L=C(){q(m.11[B.P])B.5q()};q(m.eS)1S.ej=C(){D 1i};1S.1b=\'M-2L\';m.S(1S,{1o:\'1q\',1m:\'3w\',1n:\'2r\',aq:\'4h\',1F:3});1S.2k=m.14.7Q;q(m.4o)m.2g.1V(1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P)B.3I()})}1E(e){}q(m.1z&&1I k.5X!=\'dT\')k.1h.E.K=(k.3Y-1)+\'F\'}q(k.4m)m.1B(k);q(m.2u&&m.2u==k.a)m.2u=H;k.ci();A p=m.3V,7G=m.79.x+p.7B,8d=m.79.y+p.7A;k.8E=k.x.G<7G&&7G<k.x.G+k.x.U(\'1W\')&&k.y.G<8d&&8d<k.y.G+k.y.U(\'1W\');q(k.1u)k.bi();m.1x(k,\'cK\')},ci:C(){A P=k.P;A 1X=k.1X;1H m.5U(1X,C(){1C{m.11[P].co()}1E(e){}})},co:C(){A 1G=k.8a(1);q(1G&&1G.2p.cz().2y(/m\\.2H/))A 1S=m.18(\'1S\',{1e:m.7x(1G)})},8a:C(2m){A 80=k.6H(),as=m.4N.3m[k.2R||\'1r\'];q(!as[80+2m]&&k.1p&&k.1p.ce){q(2m==1)D as[0];J q(2m==-1)D as[as.W-1]}D as[80+2m]||H},6H:C(){A 2b=m.6h().3m[k.2R||\'1r\'];q(2b)O(A i=0;i<2b.W;i++){q(2b[i]==k.a)D i}D H},bh:C(){q(k[k.5t]){A 2b=m.4N.3m[k.2R||\'1r\'];q(2b){A s=m.14.3Q.26(\'%1\',k.6H()+1).26(\'%2\',2b.W);k[k.5t].2h=\'<R 1Z="M-3Q">\'+s+\'</R>\'+k[k.5t].2h}}},9i:C(){q(!k.1f){O(A i=0;i<m.5u.W;i++){A 1P=m.5u[i],3c=1P.2R;q(1I 3c==\'1T\'||3c===H||3c===k.2R)k.1p=1H m.8X(k.P,1P)}}J{k.1p=k.1f.1p}A 1P=k.1p;q(!1P)D;A P=1P.4d=k.P;1P.cd();1P.57(\'1d-2H\');q(1P.2N){A o=1P.cn||{};o.4x=1P.2N;o.21=\'2N\';k.4k(o)}q(1P.2X)1P.2X.7h(k);q(!k.1f&&k.45)1P.3G(L);q(1P.45){1P.45=49(C(){m.1G(P)},(1P.fa||fq))}},6r:C(){m.3H(k.Q);m.11[k.P]=H;q(m.2u==k.a)m.2u=H;m.8r(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i].84}J q(1o==\'1q\'){A 3R=m.6n(1l[i]);3R.w=1l[i].1M;3R.h=1l[i].1Q;q(!k.4m){A ba=(3R.x+3R.w<k.x.U(\'60\')||3R.x>k.x.U(\'60\')+k.x.U(\'82\'));A bu=(3R.y+3R.h<k.y.U(\'60\')||3R.y>k.y.U(\'60\')+k.y.U(\'82\'))}A 6t=m.87(1l[i]);q(!ba&&!bu&&6t!=k.P){q(!2V){1l[i].5D(\'1q-by\',\'[\'+k.P+\']\');1l[i].84=1l[i].E[1y];1l[i].E[1y]=\'1q\'}J q(2V.bs(\'[\'+k.P+\']\')==-1){1l[i].5D(\'1q-by\',2V+\'[\'+k.P+\']\')}}J q((2V==\'[\'+k.P+\']\'||m.31==6t)&&6t!=k.P){1l[i].5D(\'1q-by\',\'\');1l[i].E[1y]=1l[i].84||\'\'}J q(2V&&2V.bs(\'[\'+k.P+\']\')>-1){1l[i].5D(\'1q-by\',2V.26(\'[\'+k.P+\']\',\'\'))}}}}},3I:C(){k.Q.E.1F=m.4p+=2;O(A i=0;i<m.11.W;i++){q(m.11[i]&&i==m.31){A 4s=m.11[i];4s.T.1b+=\' M-\'+4s.3f+\'-7J\';q(4s.2M){4s.T.E.4M=m.1z?\'bz\':\'73\';4s.T.2k=m.14.bt}m.1x(4s,\'eD\')}}q(k.1a)k.1a.2i.E.1F=k.Q.E.1F-1;k.T.1b=\'M-\'+k.3f;q(k.2M){k.T.2k=m.14.7Q;q(m.69){m.53=1U.3F?\'73\':\'7a(\'+m.5m+m.69+\'), 73\';q(m.1z&&m.3X<6)m.53=\'bz\';k.T.E.4M=m.53}}m.31=k.P;m.2l(19,1U.3F?\'9z\':\'9y\',m.6x);m.1x(k,\'eO\')},8t:C(x,y){k.x.9a(x);k.y.9a(y)},3L:C(e){A w,h,r=e.K/e.N;w=1j.2Q(e.K+e.dX,1j.3q(k.4H,k.x.1d));q(k.2M&&1j.9s(w-k.x.1d)<12)w=k.x.1d;h=k.2C?e.N+e.dY:w/r;q(h<1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\',{2h:o.3y});q(!el||1I el==\'9n\')D;q(!m.1x(k,\'ee\',{16:el}))D;el.E.1m=\'3w\';o.21=o.21||o.4x;q(k.3g[1]==\'4f\'&&k.bE(o,el))D;k.9K();A K=o.K&&/^[0-9]+(F|%)$/.1c(o.K)?o.K:\'28\';q(/^(Y|3i)7u$/.1c(o.1n)&&!/^[0-9]+F$/.1c(o.K))K=\'ew\';A 16=m.18(\'R\',{1D:\'21\'+m.6p++,21:o.21},{1n:\'2r\',1o:\'1q\',K:K,9l:m.14.9B||\'\',1w:0},52?m.36:k.1u,L);q(52)16.6o=k.P;16.1V(el);m.3E(16,{1w:1,bB:0,bC:0,2B:(o.6i===0||o.6i===1i||(o.6i==2&&m.1z))?0:63});m.3E(16,o);q(k.bb){k.5T(16);q(!16.7q||k.8E)m.24(16,{1w:16.1w},16.2B)}m.2o(k.1L,m.6p-1)},5T:C(16){A p=16.1n||\'9T 4A\',52=(16.bD==\'36\'),6l=16.bB,6C=16.bC;q(52){m.36.E.1m=\'3w\';16.6o=k.P;q(16.1M>16.29.1M)16.E.K=\'2W%\'}J q(16.29!=k.1u)k.1u.1V(16);q(/Y$/.1c(p))16.E.Y=6l+\'F\';q(/4A$/.1c(p))m.S(16,{Y:\'50%\',4Y:(6l-1j.5g(16.1M/2))+\'F\'});q(/3i$/.1c(p))16.E.3i=-6l+\'F\';q(/^br$/.1c(p)){m.S(16,{3i:\'2W%\',9O:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.1g=16.1M}J q(/^bq$/.1c(p)){m.S(16,{Y:\'2W%\',4Y:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.3o=16.1M}A 9U=16.29.1Q;16.E.N=\'28\';q(52&&16.1Q>9U)16.E.N=m.5b?9U+\'F\':\'2W%\';q(/^V/.1c(p))16.E.V=6C+\'F\';q(/^9T/.1c(p))m.S(16,{V:\'50%\',6b:(6C-1j.5g(16.1Q/2))+\'F\'});q(/^4i/.1c(p))16.E.4i=-6C+\'F\';q(/^5A$/.1c(p)){m.S(16,{Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',4i:\'2W%\',6v:k.y.cb+\'F\',K:\'28\'});k.y.1g=16.1Q}J q(/^7s$/.1c(p)){m.S(16,{1n:\'4j\',Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',V:\'2W%\',6b:k.y.cb+\'F\',K:\'28\'});k.y.3o=16.1Q;16.E.1n=\'2r\'}},bg:C(){k.9N([\'4S\',\'9D\'],L);k.bh();q(k.9D)m.1x(k,\'f0\');q(k.4S)m.1x(k,\'fF\');q(k.4S&&k.9G)k.4S.1b+=\' M-3B\';q(m.bf)k.be();O(A i=0;i<m.1L.W;i++){A o=m.1L[i],6E=o.9H,3c=o.2R;q((!6E&&!3c)||(6E&&6E==k.6D)||(3c&&3c===k.2R)){q(k.2M||(k.2C&&o.fA))k.4k(o)}}A 6s=[];O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);q(/7u$/.1c(o.1n))k.5T(o);J m.2o(6s,o)}O(A i=0;i<6s.W;i++)k.5T(6s[i]);k.bb=L},9K:C(){q(!k.1u)k.1u=m.18(\'R\',{1b:k.9J},{1n:\'2r\',K:(k.x.I||(k.3A?k.K:H)||k.x.1d)+\'F\',N:(k.y.I||k.y.1d)+\'F\',1o:\'1q\',2q:\'1q\',1F:m.1z?4:H},m.2g,L)},4R:C(9b,bc){A 1u=k.1u,x=k.x,y=k.y;m.S(1u,{K:x.I+\'F\',N:y.I+\'F\'});q(9b||bc){O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);A 9k=(m.5b||19.9I==\'bd\');q(o&&/^(5A|7s)$/.1c(o.1n)){q(9k){o.E.K=(1u.1M+2*x.cb+x.1g+x.3o)+\'F\'}y[o.1n==\'5A\'?\'1g\':\'3o\']=o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36.74.W)m.36.E.1m=\'1r\';q(k.4m)m.8r(k.P);m.1x(k,\'f9\');m.11[k.P]=H;m.bk()}};m.7p=C(a,T,6W){k.a=a;k.T=T;k.6W=6W};m.7p.58={8q:C(){q(!k.1e)k.1e=m.7x(k.a);q(k.1e.2y(\'#\')){A 2b=k.1e.8u(\'#\');k.1e=2b[0];k.1D=2b[1]}q(m.6Q[k.1e]){k.c2=m.6Q[k.1e];q(k.1D)k.97();J k.66();D}1C{k.3r=1H c4()}1E(e){1C{k.3r=1H bl("fb.bI")}1E(e){1C{k.3r=1H bl("bH.bI")}1E(e){k.8z()}}}A 3x=k;k.3r.f2=C(){q(3x.3r.cg==4){q(3x.1D)3x.97();J 3x.66()}};A 1e=k.1e;q(m.fm)1e=1e.26(/$/,(/\\?/.1c(1e)?\'&\':\'?\')+\'fn=\'+(1H 7z()).7C());k.3r.c6(\'ec\',1e,L);k.3r.c5(\'X-fh-eu\',\'c4\');k.3r.c5(\'cQ-cN\',\'cW/x-dh-95-d0\');k.3r.d9(H)},97:C(){m.6R();A 3W=1U.3F||m.c3?{1e:\'di:dj\'}:H;k.1h=m.18(\'1h\',3W,{1n:\'2r\',V:\'-4h\'},m.2g);k.66()},66:C(){A s=k.c2||k.3r.df;q(k.6W)m.6Q[k.1e]=s;q(!m.1z||m.3X>=5.5){s=s.26(/\\s/g,\' \').26(1H 4y(\'<cM[^>]*>\',\'c1\'),\'\').26(1H 4y(\'<c0[^>]*>.*?</c0>\',\'c1\'),\'\');q(k.1h){A 2A=k.1h.8Q;q(!2A&&k.1h.67)2A=k.1h.67.19;q(!2A){A 3x=k;49(C(){3x.66()},25);D}2A.c6();2A.cV(s);2A.2f();1C{s=2A.8S(k.1D).2h}1E(e){1C{s=k.1h.19.8S(k.1D).2h}1E(e){}}m.3H(k.1h)}J{s=s.26(1H 4y(\'^.*?<1k[^>]*>(.*?)</1k>.*?$\',\'i\'),\'$1\')}}m.4G(k.T,\'6J\',\'M-1k\').2h=s;k.3s();O(A x 3j k)k[x]=H}};m.8X=C(4d,1v){q(m.cI!==1i)m.8T();k.4d=4d;O(A x 3j 1v)k[x]=1v[x];q(k.cH)k.c7();q(k.2X)k.2X=m.c9(k)};m.8X.58={c7:C(){k.2N=m.18(\'R\',{2h:m.8V(m.8U.2N)},H,m.2g);A 5Y=[\'3G\',\'3h\',\'35\',\'1G\',\'3B\',\'1d-2H\',\'2f\'];k.1O={};A 3x=k;O(A i=0;i<5Y.W;i++){k.1O[5Y[i]]=m.4G(k.2N,\'1J\',\'M-\'+5Y[i]);k.4u(5Y[i])}k.1O.3h.E.1m=\'1r\'},cd:C(){q(k.ce||!k.2N)D;A B=m.11[k.4d],56=B.6H(),2n=/6K$/;q(56==0)k.57(\'35\');J q(2n.1c(k.1O.35.2z(\'a\')[0].1b))k.4u(\'35\');q(56+1==m.4N.3m[B.2R||\'1r\'].W){k.57(\'1G\');k.57(\'3G\')}J q(2n.1c(k.1O.1G.2z(\'a\')[0].1b)){k.4u(\'1G\');k.4u(\'3G\')}},4u:C(1O){q(!k.1O)D;A cc=k,a=k.1O[1O].2z(\'a\')[0],2n=/6K$/;a.2p=C(){cc[1O]();D 1i};q(2n.1c(a.1b))a.1b=a.1b.26(2n,\'\')},57:C(1O){q(!k.1O)D;A a=k.1O[1O].2z(\'a\')[0];a.2p=C(){D 1i};q(!/6K$/.1c(a.1b))a.1b+=\' 6K\'},ca:C(){q(k.45)k.3h();J k.3G()},3G:C(c8){q(k.1O){k.1O.3G.E.1m=\'1r\';k.1O.3h.E.1m=\'\'}k.45=L;q(!c8)m.1G(k.4d)},3h:C(){q(k.1O){k.1O.3h.E.1m=\'1r\';k.1O.3G.E.1m=\'\'}dW(k.45);k.45=H},35:C(){k.3h();m.35(k.1O.35)},1G:C(){k.3h();m.1G(k.1O.1G)},3B:C(){},\'1d-2H\':C(){m.2Y().6L()},2f:C(){m.2f(k.1O.2f)}};m.c9=C(1p){C 7h(B){m.3E(1v||{},{4x:4J,21:\'2X\'});q(m.5b)1v.6i=0;B.4k(1v);m.S(4J.29,{2q:\'1q\'})};C 2d(3N){4X(1T,1j.5g(3N*4J[3K?\'1M\':\'1Q\']*0.7))};C 4X(i,9C){q(i===1T)O(A j=0;j<5J.W;j++){q(5J[j]==m.11[1p.4d].a){i=j;5f}}q(i===1T)D;A as=4J.2z(\'a\'),4z=as[i],48=4z.29,Y=3K?\'bZ\':\'bY\',3i=3K?\'bO\':\'bP\',K=3K?\'bN\':\'bM\',4I=\'1s\'+Y,1M=\'1s\'+K,7e=R.29.29[1M],7c=7e-2i[1M],5y=2v(2i.E[3K?\'Y\':\'V\'])||0,2U=5y,dZ=20;q(9C!==1T){2U=5y-9C;q(2U>0)2U=0;q(2U<7c)2U=7c}J{O(A j=0;j<as.W;j++)as[j].1b=\'\';4z.1b=\'M-4z-4c\';A 9e=i>0?as[i-1].29[4I]:48[4I],9m=48[4I]+48[1M]+(as[i+1]?as[i+1].29[1M]:0);q(9m>7e-5y)2U=7e-9m;J q(9e<-5y)2U=-9e}A 9f=48[4I]+(48[1M]-7g[1M])/2+2U;m.24(2i,3K?{Y:2U}:{V:2U},H,\'9h\');m.24(7g,3K?{Y:9f}:{V:9f},H,\'9h\');8A.E.1m=2U<0?\'3w\':\'1r\';8v.E.1m=(2U>7c)?\'3w\':\'1r\'};A 5J=m.4N.3m[m.11[1p.4d].2R||\'1r\'],1v=1p.2X,5N=1v.5N||\'bJ\',9L=(5N==\'e9\'),44=9L?[\'R\',\'5s\',\'1J\',\'1A\']:[\'2i\',\'4g\',\'43\',\'2I\'],3K=(5N==\'bJ\'),4J=m.18(\'R\',{1b:\'M-2X M-2X-\'+5N,2h:\'<R 1Z="M-2X-e6">\'+\'<\'+44[0]+\'><\'+44[1]+\'></\'+44[1]+\'></\'+44[0]+\'></R>\'+\'<R 1Z="M-2d-1K"><R></R></R>\'+\'<R 1Z="M-2d-e5"><R></R></R>\'+\'<R 1Z="M-7g"><R></R></R>\'},{1m:\'1r\'},m.2g),5P=4J.74,R=5P[0],8A=5P[1],8v=5P[2],7g=5P[3],2i=R.e3,4g=4J.2z(44[1])[0],43;O(A i=0;i<5J.W;i++){q(i==0||!3K)43=m.18(44[2],H,H,4g);(C(){A a=5J[i],48=m.18(44[3],H,H,43),e4=i;m.18(\'a\',{23:a.23,2p:C(){m.2Y(k).3I();D m.9v(a)},2h:m.bK?m.bK(a):a.2h},H,48)})()}q(!9L){8A.2p=C(){2d(-1)};8v.2p=C(){2d(1)};m.2l(4g,19.dw!==1T?\'dH\':\'dI\',C(e){A 3N=0;e=e||1U.2E;q(e.bL){3N=e.bL/dE;q(m.3F)3N=-3N}J q(e.bQ){3N=-e.bQ/3}q(3N)2d(-3N*0.2);q(e.5h)e.5h();e.bR=1i})}D{7h:7h,4X:4X}};q(m.1z){(C(){1C{19.5n.dB(\'Y\')}1E(e){49(bW.dD,50);D}m.4q()})()}m.2l(19,\'dA\',m.4q);m.2l(1U,\'7v\',m.4q);m.7b=m.14;A dv=m.5x;m.2l(1U,\'7v\',C(){q(m.8B){A 9F=\'.M 1S\',9A=\'4M: 7a(\'+m.5m+m.8B+\'), 73 !e2;\';A E=m.18(\'E\',{Z:\'ea/8L\'},H,19.2z(\'e0\')[0]);q(!m.1z){E.1V(19.d5(9F+" {"+9A+"}"))}J{A 1f=19.bX[19.bX.W-1];q(1I(1f.bV)=="72")1f.bV(9F,9A)}}});m.2l(1U,\'3L\',C(){m.6d();q(m.36)O(A i=0;i<m.36.74.W;i++){A 1R=m.36.74[i],B=m.2Y(1R);B.5T(1R);q(1R.21==\'2X\')B.1p.2X.4X()}});m.2l(19,\'76\',C(e){m.79={x:e.77,y:e.7n}});m.2l(19,\'8G\',m.9x);m.2l(19,\'bU\',m.9x);m.2l(19,\'4q\',m.bS);m.2l(1U,\'7v\',m.bT);m.2l(1U,\'7v\',m.bv);',62,977,'||||||||||||||||||||this||hs||||if||||||||||var|exp|function|return|style|px|pos|null|size|else|width|true|highslide|height|for|key|wrapper|div|setStyles|content|get|top|length||left|type||expanders|||lang||overlay||createElement|document|outline|className|test|full|src|last|p1|iframe|false|Math|body|els|display|position|visibility|slideshow|hidden|none|offset|innerContent|overlayBox|options|opacity|fireEvent|prop|ie|span|dim|try|id|catch|zIndex|next|new|typeof|li|up|overlays|offsetWidth|tpos|btn|ss|offsetHeight|node|img|undefined|window|appendChild|wsize|outlineType|imgSize|class||hsId|visible|href|animate||replace||auto|parentNode|to|arr|case|scroll|params|close|container|innerHTML|table|imgPad|title|addEventListener|op|re|push|onclick|overflow|absolute|loading|scrollerDiv|upcoming|parseInt|lastX|lastY|match|getElementsByTagName|doc|dur|isHtml|dragArgs|event|dimmer|target|expand|td|objectType|args|image|isImage|controls|justify|tgt|max|slideshowGroup|easing|ratio|tblPos|hiddenBy|100|thumbstrip|getExpander|minSize|elem|focusKey||||previous|viewport||||ajax|xSize|sg|name|val|contentType|transitions|pause|right|in|tb|wh|groups|marginMin|p2|ucwh|min|xmlHttp|onLoad|custom|opt|clearing|block|pThis|html|hasDragged|useBox|move|stl|swf|extend|opera|play|discardElement|focus|step|isX|resize|graphic|delta|objectLoadTime|func|number|elPos|releaseMask|tagName|outlineWhileAnimating|page|attribs|uaVersion|objectWidth|end||duration|mediumContent|tr|tree|autoplay|styles|timers|cell|setTimeout|ySize|getParam|anchor|expKey|iebody|crossfade|tbody|9999px|bottom|relative|createOverlay|clientSize|dimmingOpacity|marginMax|safari|zIndexCounter|ready|now|blurExp|clone|enable|tgtArr|fadeBox|overlayId|RegExp|active|center|setPosition|unit|start|preserveContent|pendingOutlines|getElementByClass|minWidth|offsetLeft|dom|sleeping|onload|cursor|anchors|htmls|images|while|sizeOverlayBox|heading|setDimmerSize|wDiff|adj|doShowHide|selectThumb|marginLeft|cloneNode||cNode|relToVP|styleRestoreCursor|self|hDiff|cur|disable|prototype|scrollingContent|fitsize|ieLt7|area|navigator|objectHeight|break|round|preventDefault|cacheBindings|removeEventListener|ruler|allowReduce|graphicsDir|documentElement|moveOnly|geckoMac|contentLoaded|before|ul|numberPosition|slideshows|allowSizeReduction|isExpanded|Expander|curTblPos|after|above|maxX|minX|setAttribute|fac|trans|padToMinWidth|all|credits|group|minY|currentStyle|parent|mode|maxY|domCh|showLoading|afterClose|cache|positionOverlay|Outline|over|getNode|isClosing|buttons|uclt|opos|param|owner|250|obj|getParams|loadHTML|contentWindow|matches|restoreCursor|destroy|marginTop|mask|getPageSize|preloadTheseImages|toLowerCase|filter|getAnchors|fade|on|minHeight|offX|gotoEnd|getPosition|hsKey|idCounter|Dimension|cancelLoading|os|wrapperKey|showHideElements|marginBottom|lt|keyHandler|curAnim|setSize|background|maincontent|offY|thumbsUserSetId|tId|isHsAnchor|complete|getAnchorIndex|rel|DIV|disabled|doFullExpand|userAgent|innerHeight|imgs|topmostKey|cachedGets|init|afterExpand|writeExtendedContent|pageHeight|pageWidth|pre|oDiv|innerWidth|dragHandler||allowWidthReduction|object|pointer|childNodes||mousemove|clientX|kdeBugCorr|mouse|url|langDefaults|minTblPos|dir|overlayWidth|expandDuration|marker|add|changed|previousOrNext|preloadTheseAjax|element|preloadFullImage|clientY|xpos|Ajax|hideOnMouseOut|onReady|below|Id|panel|load|onLoadStarted|getSrc|fullExpandLabel|Date|scrollTop|scrollLeft|getTime|expOnly|calcBorders|maxsize|mX|Text|calcExpanded|blur|isReady|offsetTop|fitOverlayBox|defaultView|setObjContainerSize|location|restoreTitle|correctIframeSize|sizeDiff|allowHeightReduction|calcThumb|getCacheBinding|types|getIframePageHeight|hasMovedMin|padding|current|oldImg|osize|htmlGetSize|origProp|getSelfRendered|continuePreloading|getWrapperKey|overrides|swfOptions|getAdjacentAnchor|loadingPos|border|mY|contentId|oPos|newImg|Create|endOff|names|loadingPosXfade|connectOutline|startOff|other|resizeTo|numberOfImagesToPreload|run|undim|error|moveTo|split|scrollDown|distance|srcElement|relatedTarget|onError|scrollUp|expandCursor|removeChild|destroyOverlays|mouseIsOver|openerTagNames|mousedown|garbageBin|clientHeight|fullExpandTitle|clientWidth|css|previousTitle|previousText|preloadAjaxElement|topZ|contentDocument|closeText|getElementById|updateAnchors|skin|replaceLang|cacheAjax|Slideshow|clones|closeTitle|evt|nextText|hasFocused|nextTitle|moveTitle|form|dimmingDuration|getElementContent|moveText||setPos|doWrapper|htmlExpand|allowMultipleInstances|activeLeft|markerPos|swfobject|easeOutQuad|initSlideshow|show|ie6|direction|activeRight|string|restoreDuration|hasAlphaImageLoader|align|parseFloat|abs|margin|ucrb|transit|changeSize|mouseClickHandler|keydown|keypress|dec|cssDirection|scrollBy|caption|arrow|sel|dragByHeading|thumbnailId|compatMode|wrapperClassName|genOverlayBox|floatMode|done|getInline|marginRight|update|startTime|state|Click|middle|parOff|headingOverlay|targetY|newHeight|targetX|rv|both|clear|captionOverlay|playText|KDE|vendor|Next|JS|Previous|Play|Pause|spacebar|Move|and|pauseText|htmlSizeOperations|fullExpandText|pauseTitle|tag|Highslide|200|playTitle|resizeTitle|flashvars|from|timerId|maxWidth|call||orig|easeInQuad|loadingTitle|loadingText|fixedControls|loadingOpacity|wrapperMouseHandler|_default|hide|switch|rb|toUpperCase|vis|onGraphicLoad|thumb|preloadGraphic|png|appendTo|ltr|Close|hasExtendedContent|yScroll|offsetParent|contentWrapper|xScroll|scrollHeight|alpha|scrollMaxX|scrollMaxY|scrollWidth|hsHasSetClick|isUnobtrusiveAnchor|clickY|pow|wmode|detachEvent|clickX|hasHtmlExpanders|attributes|dimmingGeckoFix|enableKeyListener|focusTopmost|nopad|clearsX|gotOverlays|doPanels|BackCompat|writeCredits|showCredits|getOverlays|getNumber|showOverlays|createFullExpand|reOrder|ActiveXObject|sleep|fullExpandOpacity|javascript|fullExpandPosition|rightpanel|leftpanel|indexOf|focusTitle|clearsY|preloadAjax|getPropertyValue|getAttribute||hand|htmlPrepareClose|offsetX|offsetY|relativeTo|reuseOverlay|destroyObject|awake|Microsoft|XMLHTTP|horizontal|stripItemFormatter|wheelDelta|Height|Width|Right|Bottom|detail|returnValue|setClickEvents|preloadImages|mouseup|addRule|arguments|styleSheets|Top|Left|script|gi|cachedGet|ie6SSL|XMLHttpRequest|setRequestHeader|open|getControls|wait|Thumbstrip|hitSpace||sls|checkFirstAndLast|repeat|getComputedStyle|readyState|creditsTarget|prepareNextOutline|easingClose|creditsHref|onHideLoading|getImageMapAreaCorrection|overlayOptions|preloadNext|fadeInOut|transitionDuration|creditsTitle|wrapStep|creditsPosition|525|creditsText|Safari|nextSibling|Eval|toString|correctRatio|tmpMin|Overlay|addOverlay|hideIframes|hideSelects|htmlE|useControls|dynamicallyUpdateAnchors|embedSWF|onAfterExpand|dimming|link|Type|outlineStartOffset|transparent|Content|allowtransparency|button|http|xpand|write|application|frameborder|addSlideshow|zoomout|urlencoded|keyCode|onKeyDown|zoomin|Use|createTextNode|graphics|onmouseout|shape|send|version|1001|geckodimmer|registerOverlay|onDimmerClick|responseText|flash|www|about|blank|keys|com|maincontentId|maincontentText|headingEval|headingText|headingId|maincontentEval|maxHeight|ra|it|HsExpander|onmousewheel|captionEval|captionText|floor|DOMContentLoaded|doScroll|circle|callee|120|footer|captionId|mousewheel|DOMMouseScroll|300|Macintosh|Gecko|_self|pageYOffset|pageXOffset|onBeforeExpand|reflow|useMap|onImageClick|boolean|onSetClickEvent|reuse|clearTimeout|||mgnRight|HEAD|removeAttribute|important|firstChild|pI|down|inner|drop|shadow|float|text|expressInstallSwfurl|GET|outlines|onCreateOverlay|outlinesDir|insertBefore|fontSize|homepage|oncontextmenu|DXImageTransform||progid|removeSWF|coords|lineHeight|collapse|htmlCreate|onBeforeGetContent|eval|With|flushImgSize|200px|borderCollapse|cellSpacing|esc|Resize|AlphaImageLoader|sizingMethod|onBlur|Loading|cancel|bring|front|onShowLoading|onInit|onmouseover|IFRAME|SELECT|allowSimultaneousLoading|onFocus|Expand|imageCreate|StopPlay|blockRightClick|scale|default|onBeforeClose|actual|Powered|Go|the|onAfterGetCaption|onAfterGetContent|onreadystatechange|onMouseOver|toElement|fromElement|mouseover|onMouseOut|attachEvent|onAfterClose|interval|Msxml2|newWidth|onDrag|click|01|white|Requested|onDrop|drag|header|dragSensitivity|forceAjaxReload|dummy|sqrt|onDoFullExpand|500|protocol|static|Image|onActivate|nodeName|onBeforeGetCaption||onBeforeGetHeading|splice|useOnHtml|setInterval|of|fit|https|onAfterGetHeading|onCreateFullExpand|paddingTop|1px|clearInterval|linearTween'.split('|'),0,{}))


hs.showCredits = 0;
hs.padToMinWidth = true;


//hs.align = 'center';
if (hs.registerOverlay) {
	// The white controlbar overlay
	hs.registerOverlay({
		thumbnailId: 'thumb3',
    	overlayId: 'controlbar',
    	position: 'top right',
    	hideOnMouseOut: true
	});
	// The simple semitransparent close button overlay
	hs.registerOverlay({
		thumbnailId: 'thumb2',
		html: '<div class=\"closebutton\"	onclick=\"return hs.close(this)\" title=\"Close\"></div>',
		position: 'top right',
		fade: 2 // fading the semi-transparent overlay looks bad in IE
	});
}

// ONLY FOR THIS EXAMPLE PAGE!
// Initialize wrapper for rounded-white. The default wrapper (drop-shadow)
// is initialized internally.
if (hs.addEventListener && hs.Outline) hs.addEventListener(window, 'load', function () {
	new hs.Outline('rounded-white');
	new hs.Outline('glossy-dark');
});

// The gallery example on the front page
var galleryOptions = {
	slideshowGroup: 'gallery',
	wrapperClassName: 'dark',
	//outlineType: 'glossy-dark',
	dimmingOpacity: 0.8,
	align: 'center',
	transitions: ['expand', 'crossfade'],
	fadeInOut: true,
	wrapperClassName: 'borderless floating-caption',
	marginLeft: 100,
	marginBottom: 80,
	numberPosition: 'caption'
};

if (hs.addSlideshow) hs.addSlideshow({
    slideshowGroup: 'gallery',
    interval: 5000,
    repeat: false,
    useControls: true,
    overlayOptions: {
    	className: 'text-controls',
		position: 'bottom center',
		relativeTo: 'viewport',
		offsetY: -60
	},
	thumbstrip: {
		position: 'bottom center',
		mode: 'horizontal',
		relativeTo: 'viewport'
	}

});
hs.Expander.prototype.onInit = function() {
	hs.marginBottom = (this.slideshowGroup == 'gallery') ? 150 : 15;
}

// focus the name field
hs.Expander.prototype.onAfterExpand = function() {

	if (this.a.id == 'contactAnchor') {
		var iframe = window.frames[this.iframe.name],
			doc = iframe.document;
    	if (doc.getElementById("theForm")) {
        	doc.getElementById("theForm").elements["name"].focus();
    	}

	}
}
