/* jQuery JavaScript Library v1.4.2 http://jquery.com/ */
(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);

/* XML -> JSON Add-on */
;if(window.jQuery)(function($){$.extend({xml2json:function(xml,extended){if(!xml)return{};function parseXML(node,simple){if(!node)return null;var txt='',obj=null,att=null;var nt=node.nodeType,nn=jsVar(node.localName||node.nodeName);var nv=node.text||node.nodeValue||'';if(node.childNodes){if(node.childNodes.length>0){$.each(node.childNodes,function(n,cn){var cnt=cn.nodeType,cnn=jsVar(cn.localName||cn.nodeName);var cnv=cn.text||cn.nodeValue||'';if(cnt==8){return}else if(cnt==3||cnt==4||!cnn){if(cnv.match(/^\s+$/)){return};txt+=cnv.replace(/^\s+/,'').replace(/\s+$/,'')}else{obj=obj||{};if(obj[cnn]){if(!obj[cnn].length)obj[cnn]=myArr(obj[cnn]);obj[cnn][obj[cnn].length]=parseXML(cn,true);obj[cnn].length=obj[cnn].length}else{obj[cnn]=parseXML(cn)}}})}};if(node.attributes){if(node.attributes.length>0){att={};obj=obj||{};$.each(node.attributes,function(a,at){var atn=jsVar(at.name),atv=at.value;att[atn]=atv;if(obj[atn]){if(!obj[atn].length)obj[atn]=myArr(obj[atn]);obj[atn][obj[atn].length]=atv;obj[atn].length=obj[atn].length}else{obj[atn]=atv}})}};if(obj){obj=$.extend((txt!=''?new String(txt):{}),obj||{});txt=(obj.text)?(typeof(obj.text)=='object'?obj.text:[obj.text||'']).concat([txt]):txt;if(txt)obj.text=txt;txt=''};var out=obj||txt;if(extended){if(txt)out={};txt=out.text||txt||'';if(txt)out.text=txt;if(!simple)out=myArr(out)};return out};var jsVar=function(s){return String(s||'').replace(/-/g,"_")};var isNum=function(s){return(typeof s=="number")||String((s&&typeof s=="string")?s:'').test(/^((-)?([0-9]*)((\.{0,1})([0-9]+))?$)/)};var myArr=function(o){if(!o.length)o=[o];o.length=o.length;return o};if(typeof xml=='string')xml=$.text2xml(xml);if(!xml.nodeType)return;if(xml.nodeType==3||xml.nodeType==4)return xml.nodeValue;var root=(xml.nodeType==9)?xml.documentElement:xml;var out=parseXML(root,true);xml=null;root=null;return out},text2xml:function(str){var out;try{var xml=($.browser.msie)?new ActiveXObject("Microsoft.XMLDOM"):new DOMParser();xml.async=false}catch(e){throw new Error("XML Parser could not be instantiated")};try{if($.browser.msie)out=(xml.loadXML(str))?xml:false;else out=xml.parseFromString(str,"text/xml")}catch(e){throw new Error("Error parsing XML string")};return out}})})(jQuery);
/* Drag & Drop Add-on */
(function($){$.fn.drag=function(K,J,I){if(J){this.bind("dragstart",K)}if(I){this.bind("dragend",I)}return !K?this.trigger("drag"):this.bind("drag",J?J:K)};var D=$.event,B=D.special,F=B.drag={not:":input",distance:0,which:1,setup:function(I){I=$.extend({distance:F.distance,which:F.which,not:F.not},I||{});I.distance=G(I.distance);D.add(this,"mousedown",E,I)},teardown:function(){D.remove(this,"mousedown",E);if(this===F.dragging){F.dragging=F.proxy=null}C(this,true)}};function E(K){var J=this,I,L=K.data||{};if(L.elem){J=K.dragTarget=L.elem;K.dragProxy=F.proxy||J;K.cursorOffsetX=L.pageX-L.left;K.cursorOffsetY=L.pageY-L.top;K.offsetX=K.pageX-K.cursorOffsetX;K.offsetY=K.pageY-K.cursorOffsetY}else{if(F.dragging||(L.which>0&&K.which!=L.which)||$(K.target).is(L.not)){return }}switch(K.type){case"mousedown":$.extend(L,$(J).offset(),{elem:J,target:K.target,pageX:K.pageX,pageY:K.pageY});D.add(document,"mousemove mouseup",E,L);C(J,false);return false;case !F.dragging&&"mousemove":if(G(K.pageX-L.pageX)+G(K.pageY-L.pageY)<L.distance){break}K.target=L.target;I=A(K,"dragstart",J);if(I!==false){F.dragging=J;F.proxy=K.dragProxy=$(I||J)[0]}case"mousemove":if(F.dragging){I=A(K,"drag",J);if(B.drop){B.drop.allowed=(I!==false);B.drop.handler(K)}if(I!==false){break}K.type="mouseup"}case"mouseup":D.remove(document,"mousemove mouseup",E);if(F.dragging){if(B.drop){B.drop.handler(K)}A(K,"dragend",J)}C(J,true);F.dragging=F.proxy=L.elem=null;break}}function A(L,J,K){L.type=J;var I=D.handle.call(K,L);return I===false?false:I||L.result}function G(I){return Math.pow(I,2)}function C(J,I){if(!J){return }J.unselectable=I?"off":"on";J.onselectstart=function(){return I};if(document.selection&&document.selection.empty){document.selection.empty()}if(J.style){J.style.MozUserSelect=I?"":"none"}}})(jQuery);
(function($){$.fn.drop=function(I,H,G){if(H){this.bind("dropstart",I)}if(G){this.bind("dropend",G)}return !I?this.trigger("drop"):this.bind("drop",H?H:I)};$.dropManage=function(G){G=G||{};C.data=[];C.filter=G.filter||"*";C.delay=G.delay||C.delay;C.tolerance=G.tolerance||null;C.mode=G.mode||C.mode||"intersect";return C.$targets.filter(C.filter).each(function(){C.data[C.data.length]=C.locate(this)})};var D=$.event,B=D.special,C=B.drop={delay:100,mode:"intersect",$targets:$([]),data:[],setup:function(){C.$targets=C.$targets.add(this);C.data[C.data.length]=C.locate(this)},teardown:function(){var G=this;C.$targets=C.$targets.not(this);C.data=$.grep(C.data,function(H){return(H.elem!==G)})},handler:function(H){var G=null,I;H.dropTarget=C.dropping||undefined;if(C.data.length&&H.dragTarget){switch(H.type){case"drag":C.event=H;if(!C.timer){C.timer=setTimeout(E,20)}break;case"mouseup":C.timer=clearTimeout(C.timer);if(!C.dropping){break}if(C.allowed){I=A(H,"drop",C.dropping)}G=false;case C.dropping&&"dropstart":G=G===null&&C.allowed?true:false;case C.dropping&&"dropend":A(H,"dropend",C.dropping);C.dropping=null;if(I===false){H.dropTarget=undefined}if(!G){break}case C.allowed&&"dropstart":H.dropTarget=this;C.dropping=A(H,"dropstart",this)!==false?this:null;break}}},locate:function(J){var H=$(J),K=H.offset(),I=H.outerHeight(),G=H.outerWidth();return{elem:J,L:K.left,R:K.left+G,T:K.top,B:K.top+I,W:G,H:I}},contains:function(G,H){return((H[0]||H.L)>=G.L&&(H[0]||H.R)<=G.R&&(H[1]||H.T)>=G.T&&(H[1]||H.B)<=G.B)},modes:{intersect:function(H,G,I){return this.contains(I,[H.pageX,H.pageY])?I:this.modes.overlVietNamNet.apply(this,arguments)},overlap:function(H,G,I){I.overlap=Math.max(0,Math.min(I.B,G.B)-Math.max(I.T,G.T))*Math.max(0,Math.min(I.R,G.R)-Math.max(I.L,G.L));if(I.overlap>((this.best||{}).overlap||0)){this.best=I}return null},fit:function(H,G,I){return this.contains(I,G)?I:null},middle:function(H,G,I){return this.contains(I,[G.L+G.W/2,G.T+G.H/2])?I:null}}};function A(J,H,I){J.type=H;var G=D.handle.call(I,J);return G===false?false:G||J.result}function E(){var H=0,G,I,J=[C.event.pageX,C.event.pageY],K=C.locate(C.event.dragProxy);C.tolerance=C.tolerance||C.modes[C.mode];do{if(G=C.data[H]){I=C.tolerance?C.tolerance.call(C,C.event,K,G):C.contains(G,J)?G:null}}while(++H<C.data.length&&!I);C.event.type=(I=I||C.best)?"dropstart":"dropend";if(C.event.type=="dropend"||I.elem!=C.dropping){C.handler.call(I?I.elem:C.dropping,C.event)}if(C.last&&J[0]==C.last.pageX&&J[1]==C.last.pageY){delete C.timer}else{C.timer=setTimeout(E,C.delay)}C.last=C.event;C.best=null}})(jQuery);
/* Mouse wheel Add-on */
(function($){$.event.special.mousewheel={setup:function(){var handler=$.event.special.mousewheel.handler;if($.browser.mozilla)$(this).bind('mousemove.mousewheel',function(event){$.data(this,'mwcursorposdata',{pageX:event.pageX,pageY:event.pageY,clientX:event.clientX,clientY:event.clientY})});if(this.addEventListener)this.addEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=handler},teardown:function(){var handler=$.event.special.mousewheel.handler;$(this).unbind('mousemove.mousewheel');if(this.removeEventListener)this.removeEventListener(($.browser.mozilla?'DOMMouseScroll':'mousewheel'),handler,false);else this.onmousewheel=function(){};$.removeData(this,'mwcursorposdata')},handler:function(event){var args=Array.prototype.slice.call(arguments,1);event=$.event.fix(event||window.event);$.extend(event,$.data(this,'mwcursorposdata')||{});var delta=0,returnValue=true;if(event.wheelDelta)delta=event.wheelDelta/120;if(event.detail)delta=-event.detail/3;event.data=event.data||{};event.type="mousewheel";args.unshift(delta);args.unshift(event);return $.event.handle.apply(this,args)}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}})})(jQuery);
/* Em Add-on */
jQuery(function($){var eventName='emchange';$.em=$.extend({version:'1.0',delay:200,element:$('<div />').css({left:'-100em',position:'absolute',width:'100em'}).prependTo('body')[0],action:function(){var currentWidth=$.em.element.offsetWidth/100;if(currentWidth!=$.em.current){$.em.previous=$.em.current;$.em.current=currentWidth;$.event.trigger(eventName,[$.em.current,$.em.previous])}}},$.em);$.fn[eventName]=function(fn){return fn?this.bind(eventName,fn):this.trigger(eventName)};$.em.current=$.em.element.offsetWidth/100;$.em.iid=setInterval($.em.action,$.em.delay)});
/* AJAX Manager Add-on */
(function($){$.extend({manageAjax:function(o){o=$.extend({manageType:'normal',maxReq:0,blockSameRequest:false,global:true},o);return new $.ajaxManager(o);},ajaxManager:function(o){this.opt=o;this.queue=[];}});$.extend($.ajaxManager.prototype,{add:function(o){var quLen=this.queue.length,s=this.opt,q=this.queue,self=this,i,j;o=$.extend({},s,o);var cD=(o.data&&typeof o.data!="string")?$.param(o.data):o.data;if(s.blockSameRequest){var toPrevent=false;for(i=0;i<quLen;i++){if(q[i]&&q[i].data===cD&&q[i].url===o.url&&q[i].type===o.type){toPrevent=true;break;}}if(toPrevent){return false;}}q[quLen]={fnError:o.error,fnSuccess:o.success,fnComplete:o.complete,fnAbort:o.abort,error:[],success:[],complete:[],done:false,queued:false,data:cD,url:o.url,type:o.type,xhr:null};o.error=function(){if(q[quLen]){q[quLen].error=arguments;}};o.success=function(){if(q[quLen]){q[quLen].success=arguments;}};o.abort=function(){if(q[quLen]){q[quLen].abort=arguments;}};function startCallbacks(num,opts){if(q[num].fnError&&q[num].error.length){q[num].fnError.apply(opts||$,q[num].error);}if(q[num].fnSuccess){q[num].fnSuccess.apply(opts||$,q[num].success);}if(q[num].fnComplete){q[num].fnComplete.apply(opts||$,q[num].complete);}self.abort(num,true);}o.complete=function(){if(!q[quLen]){return;}q[quLen].complete=arguments;q[quLen].done=true;switch(s.manageType){case'sync':if(quLen===0||!q[quLen-1]){var curQLen=q.length;for(i=quLen;i<curQLen;i++){if(q[i]){if(q[i].done){startCallbacks(i,this);}else{break;}}}}break;case'queue':if(quLen===0||!q[quLen-1]){var curQLen=q.length;for(i=0,j=0;i<curQLen;i++){if(q[i]&&q[i].queued){q[i].xhr=jQuery.ajax(q[i].xhr);q[i].queued=false;break;}}}startCallbacks(quLen,this);break;case'abortOld':startCallbacks(quLen,this);for(i=quLen;i>=0;i--){if(q[i]){self.abort(i);}}break;default:startCallbacks(quLen,this);break;}};if(s.maxReq){if(s.manageType!='queue'){for(i=quLen,j=0;i>=0;i--){if(j>=s.maxReq){this.abort(i);}if(q[i]){j++;}}}else{for(i=0,j=0;i<=quLen&&!q[quLen].queued;i++){if(q[i]&&!q[i].queued)j++;if(j>s.maxReq)q[quLen].queued=true;}}}q[quLen].xhr=(q[quLen].queued)?o:jQuery.ajax(o);return quLen;},cleanUp:function(){this.queue=[];},abort:function(num,completed){var qLen=this.queue.length,s=this.opt,q=this.queue,self=this,i;function del(num){if(!q[num]){return;}((!completed&&q[num].fnAbort)&&q[num].fnAbort.apply($,[num]));if(!q[num]){return;}if(q[num].xhr){if(typeof q[num].xhr.abort!='undefined'){q[num].xhr.abort();}if(typeof q[num].xhr.close!='undefined'){q[num].xhr.close();}q[num].xhr=null;}if(s.global&&$.active&&!--$.active){$.event.trigger("ajaxStop");}q[num]=null;}if(!num&&num!==0){for(i=0;i<qLen;i++){del(i);}this.cleanUp();}else{del(num);var allowCleaning=true;for(i=qLen;i>=0;i--){if(q[i]){allowCleaning=false;break;}}if(allowCleaning){this.cleanUp();}}}});})(jQuery);
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> */
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();
$.extend(Array.prototype,{clear:function(){this.length=0;},add:function(a){this.push(a);},remove:function(a){if(typeof a=='string')a=this.get(a);if(!a||!a.id)return;for(var i=0;i<this.length;i++){if(this[i].id==a.id){this.splice(i,1);return;}}},get:function(id){for(var i=0;i<this.length;i++){if(this[i].id==id)return this[i];}return null;}});String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,'');};var dateFormat=function(){var token=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloZ]|"[^"]*"|'[^']*'/g,timezone=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,timezoneClip=/[^-+\dA-Z]/g,pad=function(value,length){value=String(value);length=parseInt(length)||2;while(value.length<length) value="0"+value;return value;};return function(date,mask){if(arguments.length==1&&(typeof date=="string"||date instanceof String)&&!/\d/.test(date)){mask=date;date=undefined;};date=date?new Date(date):new Date();if(isNaN(date)) throw"invalid date";var dF=dateFormat;mask=String(dF.masks[mask]||mask||dF.masks["default"]);var d=date.getDate(),D=date.getDay(),m=date.getMonth(),y=date.getFullYear(),H=date.getHours(),M=date.getMinutes(),s=date.getSeconds(),L=date.getMilliseconds(),o=date.getTimezoneOffset(),flags={d:d,dd:pad(d),ddd:dF.i18n.dayNames[D],dddd:dF.i18n.dayNames[D+7],m:m+1,mm:pad(m+1),mmm:dF.i18n.monthNames[m],mmmm:dF.i18n.monthNames[m+12],yy:String(y).slice(2),yyyy:y,h:H%12||12,hh:pad(H%12||12),H:H,HH:pad(H),M:M,MM:pad(M),s:s,ss:pad(s),l:pad(L,3),L:pad(L>99?Math.round(L/10):L),t:H<12?"a":"p",tt:H<12?"am":"pm",T:H<12?"A":"P",TT:H<12?"AM":"PM",Z:(String(date).match(timezone)||[""]).pop().replace(timezoneClip,""),o:(o>0?"-":"+")+pad(Math.floor(Math.abs(o)/60)*100+Math.abs(o)%60,4)};return mask.replace(token,function($0){return($0 in flags)?flags[$0]:$0.slice(1,$0.length-1);});};}();dateFormat.masks={"default":"ddd mmm d yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoFullDateTime:"yyyy-mm-dd'T'HH:MM:ss.lo"};dateFormat.i18n={dayNames:["Sun","Mon","Tue","Wed","Thr","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]};Date.prototype.format=function(mask){return dateFormat(this,mask);};function GetObjPos(B){var C=0,A=0;var D=null;if(B){C=B.offsetLeft;A=B.offsetTop;D=B.offsetParent;while(D!==null){C+=D.offsetLeft;A+=D.offsetTop;D=D.offsetParent}}return[C,A]}function GetPos(A){var C=0;var B=0;if(A.offsetParent){C=A.offsetLeft;B=A.offsetTop;while(A==A.offsetParent){C+=A.offsetLeft;B+=A.offsetTop}}return[C,B]};function getPageEventCoords(evt){var coords={left:0,top:0};if(evt.pageX){coords.left=evt.pageX;coords.top=evt.pageY;}else if(evt.clientX){coords.left=evt.clientX+document.body.scrollLeft-document.body.clientLeft;coords.top=evt.clientY+document.body.scrollTop-document.body.clientTop;if(document.body.parentElement&&document.body.parentElement.clientLeft){var bodParent=document.body.parentElement;coords.left+=bodParent.scrollLeft-bodParent.clientLeft;coords.top+=bodParent.scrollTop-bodParent.clientTop;}};return coords;};function GetEventXY(A){if(A===null){A=window.event}return[A.clientX+document.documentElement.scrollLeft,A.clientY+document.documentElement.scrollTop]};function getMouseY(A){if(A===null){A=event}return A.clientY+document.documentElement.scrollTop};function getMouseX(A){if(A===null){A=event}return A.clientX+document.documentElement.scrollLeft};function getPointerX(A){return((A!==null)?A.pageX:getMouseX(window.event))};function getPointerY(A){return((A!==null)?A.pageY:getMouseY(window.event))};function getRealTopByObj(A){yPos=0;if(A){yPos=A.offsetTop;tempEl=A.offsetParent;while(tempEl!==null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent}}return yPos}function getRealTop(A){thisObj=A;yPos=getRealTopByObj(A);return yPos}function getRealLeftByObj(A){xPos=0;if(A){xPos=A.offsetLeft;tempEl=A.offsetParent;while(tempEl!==null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent}}return xPos}function getRealLeft(A){thisObj=A;xPos=getRealLeftByObj(A);return xPos}
/* jScrollPane Add-on */
(function($){$.jScrollPane={active:[]};$.fn.jScrollPane=function(settings){settings=$.extend({},$.fn.jScrollPane.defaults,settings);var rf=function(){return false};return this.each(function(){var $this=$(this);var paneEle=this;var currentScrollPosition=0;var paneWidth;var paneHeight;var trackHeight;var trackOffset=settings.topCapHeight;var $container;if($(this).parent().is('.jScrollPaneContainer')){$container=$(this).parent();currentScrollPosition=settings.maintainPosition?$this.position().top:0;var $c=$(this).parent();paneWidth=$c.innerWidth();paneHeight=$c.outerHeight();$('>.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown, >.jScrollCap',$c).remove();$this.css({'top':0})}else{$this.data('originalStyleTag',$this.attr('style'));$this.css('overflow','hidden');this.originalPadding=$this.css('paddingTop')+' '+$this.css('paddingRight')+' '+$this.css('paddingBottom')+' '+$this.css('paddingLeft');this.originalSidePaddingTotal=(parseInt($this.css('paddingLeft'))||0)+(parseInt($this.css('paddingRight'))||0);paneWidth=$this.innerWidth();paneHeight=$this.innerHeight();$container=$('<div></div>').attr({'className':'jScrollPaneContainer'}).css({'height':paneHeight+'px','width':paneWidth+'px'});if(settings.enableKeyboardNavigation){$container.attr('tabindex',settings.tabIndex)};$this.wrap($container);$container=$this.parent();$(document).bind('emchange',function(e,cur,prev){$this.jScrollPane(settings)})}trackHeight=paneHeight;if(settings.reinitialiseOnImageLoad){var $imagesToLoad=$.data(paneEle,'jScrollPaneImagesToLoad')||$('img',$this);var loadedImages=[];if($imagesToLoad.length){$imagesToLoad.each(function(i,val){$(this).bind('load readystatechange',function(){if($.inArray(i,loadedImages)==-1){loadedImages.push(val);$imagesToLoad=$.grep($imagesToLoad,function(n,i){return n!=val});$.data(paneEle,'jScrollPaneImagesToLoad',$imagesToLoad);var s2=$.extend(settings,{reinitialiseOnImageLoad:false});$this.jScrollPane(s2)}}).each(function(i,val){if(this.complete||this.complete===undefined){this.src=this.src}})})}};var p=this.originalSidePaddingTotal;var realPaneWidth=paneWidth-settings.scrollbarWidth-settings.scrollbarMargin-p;var cssToApply={'height':'auto','width':realPaneWidth+'px'};if(settings.scrollbarOnLeft){cssToApply.paddingLeft=settings.scrollbarMargin+settings.scrollbarWidth+'px'}else{cssToApply.paddingRight=settings.scrollbarMargin+'px'};$this.css(cssToApply);var contentHeight=$this.outerHeight();var percentInView=paneHeight/contentHeight;var isScrollable=percentInView<.99;$container[isScrollable?'addClass':'removeClass']('jScrollPaneScrollable');if(isScrollable){$container.append($('<div></div>').addClass('jScrollCap jScrollCapTop').css({height:settings.topCapHeight}),$('<div></div>').attr({'className':'jScrollPaneTrack'}).css({'width':settings.scrollbarWidth+'px'}).append($('<div></div>').attr({'className':'jScrollPaneDrag'}).css({'width':settings.scrollbarWidth+'px'}).append($('<div></div>').attr({'className':'jScrollPaneDragTop'}).css({'width':settings.scrollbarWidth+'px'}),$('<div></div>').attr({'className':'jScrollPaneDragBottom'}).css({'width':settings.scrollbarWidth+'px'}))),$('<div></div>').addClass('jScrollCap jScrollCapBottom').css({height:settings.bottomCapHeight}));var $track=$('>.jScrollPaneTrack',$container);var $drag=$('>.jScrollPaneTrack .jScrollPaneDrag',$container);var currentArrowDirection;var currentArrowTimerArr=[];var currentArrowInc;var whileArrowButtonDown=function(){if(currentArrowInc>4||currentArrowInc%4==0){positionDrag(dragPosition+currentArrowDirection*mouseWheelMultiplier)}currentArrowInc++};if(settings.enableKeyboardNavigation){$container.bind('keydown.jscrollpane',function(e){switch(e.keyCode){case 38:currentArrowDirection=-1;currentArrowInc=0;whileArrowButtonDown();currentArrowTimerArr[currentArrowTimerArr.length]=setInterval(whileArrowButtonDown,100);return false;case 40:currentArrowDirection=1;currentArrowInc=0;whileArrowButtonDown();currentArrowTimerArr[currentArrowTimerArr.length]=setInterval(whileArrowButtonDown,100);return false;case 33:case 34:return false;default:}}).bind('keyup.jscrollpane',function(e){if(e.keyCode==38||e.keyCode==40){for(var i=0;i<currentArrowTimerArr.length;i++){clearInterval(currentArrowTimerArr[i])}return false}})}if(settings.showArrows){var currentArrowButton;var currentArrowInterval;var onArrowMouseUp=function(event){$('html').unbind('mouseup',onArrowMouseUp);currentArrowButton.removeClass('jScrollActiveArrowButton');clearInterval(currentArrowInterval)};var onArrowMouseDown=function(){$('html').bind('mouseup',onArrowMouseUp);currentArrowButton.addClass('jScrollActiveArrowButton');currentArrowInc=0;whileArrowButtonDown();currentArrowInterval=setInterval(whileArrowButtonDown,100)};$container.append($('<a></a>').attr({'href':'javascript:;','className':'jScrollArrowUp','tabindex':-1}).css({'width':settings.scrollbarWidth+'px','top':settings.topCapHeight+'px'}).html('Scroll up').bind('mousedown',function(){currentArrowButton=$(this);currentArrowDirection=-1;onArrowMouseDown();this.blur();return false}).bind('click',rf),$('<a></a>').attr({'href':'javascript:;','className':'jScrollArrowDown','tabindex':-1}).css({'width':settings.scrollbarWidth+'px','bottom':settings.bottomCapHeight+'px'}).html('Scroll down').bind('mousedown',function(){currentArrowButton=$(this);currentArrowDirection=1;onArrowMouseDown();this.blur();return false}).bind('click',rf));var $upArrow=$('>.jScrollArrowUp',$container);var $downArrow=$('>.jScrollArrowDown',$container)}if(settings.arrowSize){trackHeight=paneHeight-settings.arrowSize-settings.arrowSize;trackOffset+=settings.arrowSize}else if($upArrow){var topArrowHeight=$upArrow.height();settings.arrowSize=topArrowHeight;trackHeight=paneHeight-topArrowHeight-$downArrow.height();trackOffset+=topArrowHeight}trackHeight-=settings.topCapHeight+settings.bottomCapHeight;$track.css({'height':trackHeight+'px',top:trackOffset+'px'});var $pane=$(this).css({'position':'absolute','overflow':'visible'});var currentOffset;var maxY;var mouseWheelMultiplier;var dragPosition=0;var dragMiddle=percentInView*paneHeight/2;var getPos=function(event,c){var p=c=='X'?'Left':'Top';return event['page'+c]||(event['client'+c]+(document.documentElement['scroll'+p]||document.body['scroll'+p]))||0};var ignoreNativeDrag=function(){return false};var initDrag=function(){ceaseAnimation();currentOffset=$drag.offset(false);currentOffset.top-=dragPosition;maxY=trackHeight-$drag[0].offsetHeight;mouseWheelMultiplier=2*settings.wheelSpeed*maxY/contentHeight};var onStartDrag=function(event){initDrag();dragMiddle=getPos(event,'Y')-dragPosition-currentOffset.top;$('html').bind('mouseup',onStopDrag).bind('mousemove',updateScroll).bind('mouseleave',onStopDrag);if($.browser.msie){$('html').bind('dragstart',ignoreNativeDrag).bind('selectstart',ignoreNativeDrag)}return false};var onStopDrag=function(){$('html').unbind('mouseup',onStopDrag).unbind('mousemove',updateScroll);dragMiddle=percentInView*paneHeight/2;if($.browser.msie){$('html').unbind('dragstart',ignoreNativeDrag).unbind('selectstart',ignoreNativeDrag)}};var positionDrag=function(destY){$container.scrollTop(0);destY=destY<0?0:(destY>maxY?maxY:destY);dragPosition=destY;$drag.css({'top':destY+'px'});var p=destY/maxY;$this.data('jScrollPanePosition',(paneHeight-contentHeight)*-p);$pane.css({'top':((paneHeight-contentHeight)*p)+'px'});$this.trigger('scroll');if(settings.showArrows){$upArrow[destY==0?'addClass':'removeClass']('disabled');$downArrow[destY==maxY?'addClass':'removeClass']('disabled')}};var updateScroll=function(e){positionDrag(getPos(e,'Y')-currentOffset.top-dragMiddle)};var dragH=Math.max(Math.min(percentInView*(paneHeight-settings.arrowSize*2),settings.dragMaxHeight),settings.dragMinHeight);$drag.css({'height':dragH+'px'}).bind('mousedown',onStartDrag);var trackScrollInterval;var trackScrollInc;var trackScrollMousePos;var doTrackScroll=function(){if(trackScrollInc>8||trackScrollInc%4==0){positionDrag((dragPosition-((dragPosition-trackScrollMousePos)/2)))}trackScrollInc++};var onStopTrackClick=function(){clearInterval(trackScrollInterval);$('html').unbind('mouseup',onStopTrackClick).unbind('mousemove',onTrackMouseMove)};var onTrackMouseMove=function(event){trackScrollMousePos=getPos(event,'Y')-currentOffset.top-dragMiddle};var onTrackClick=function(event){initDrag();onTrackMouseMove(event);trackScrollInc=0;$('html').bind('mouseup',onStopTrackClick).bind('mousemove',onTrackMouseMove);trackScrollInterval=setInterval(doTrackScroll,100);doTrackScroll();return false};$track.bind('mousedown',onTrackClick);$container.bind('mousewheel',function(event,delta){delta=delta||(event.wheelDelta?event.wheelDelta/120:(event.detail)?-event.detail/3:0);initDrag();ceaseAnimation();var d=dragPosition;positionDrag(dragPosition-delta*mouseWheelMultiplier);var dragOccured=d!=dragPosition;return!dragOccured});var _animateToPosition;var _animateToInterval;function animateToPosition(){var diff=(_animateToPosition-dragPosition)/settings.animateStep;if(diff>1||diff<-1){positionDrag(dragPosition+diff)}else{positionDrag(_animateToPosition);ceaseAnimation()}}var ceaseAnimation=function(){if(_animateToInterval){clearInterval(_animateToInterval);delete _animateToPosition}};var scrollTo=function(pos,preventAni){if(typeof pos=="string"){try{$e=$(pos,$this)}catch(err){return}if(!$e.length)return;pos=$e.offset().top-$this.offset().top}ceaseAnimation();var maxScroll=contentHeight-paneHeight;pos=pos>maxScroll?maxScroll:pos;$this.data('jScrollPaneMaxScroll',maxScroll);var destDragPosition=pos/maxScroll*maxY;if(preventAni||!settings.animateTo){positionDrag(destDragPosition)}else{$container.scrollTop(0);_animateToPosition=destDragPosition;_animateToInterval=setInterval(animateToPosition,settings.animateInterval)}};$this[0].scrollTo=scrollTo;$this[0].scrollBy=function(delta){var currentPos=-parseInt($pane.css('top'))||0;scrollTo(currentPos+delta)};initDrag();scrollTo(-currentScrollPosition,true);$('*',this).bind('focus',function(event){var $e=$(this);var eleTop=0;var preventInfiniteLoop=100;while($e[0]!=$this[0]){eleTop+=$e.position().top;$e=$e.offsetParent();if(!preventInfiniteLoop--){return}}var viewportTop=-parseInt($pane.css('top'))||0;var maxVisibleEleTop=viewportTop+paneHeight;var eleInView=eleTop>viewportTop&&eleTop<maxVisibleEleTop;if(!eleInView){var destPos=eleTop-settings.scrollbarMargin;if(eleTop>viewportTop){destPos+=$(this).height()+15+settings.scrollbarMargin-paneHeight}scrollTo(destPos)}});if(settings.observeHash){if(location.hash&&location.hash.length>1){setTimeout(function(){scrollTo(location.hash)},$.browser.safari?100:0)}$(document).bind('click',function(e){$target=$(e.target);if($target.is('a')){var h=$target.attr('href');if(h&&h.substr(0,1)=='#'&&h.length>1){setTimeout(function(){scrollTo(h,!settings.animateToInternalLinks)},$.browser.safari?100:0)}}})}function onSelectScrollMouseDown(e){$(document).bind('mousemove.jScrollPaneDragging',onTextSelectionScrollMouseMove);$(document).bind('mouseup.jScrollPaneDragging',onSelectScrollMouseUp)}var textDragDistanceAway;var textSelectionInterval;function onTextSelectionInterval(){direction=textDragDistanceAway<0?-1:1;$this[0].scrollBy(textDragDistanceAway/2)}function clearTextSelectionInterval(){if(textSelectionInterval){clearInterval(textSelectionInterval);textSelectionInterval=undefined}}function onTextSelectionScrollMouseMove(e){var offset=$this.parent().offset().top;var maxOffset=offset+paneHeight;var mouseOffset=getPos(e,'Y');textDragDistanceAway=mouseOffset<offset?mouseOffset-offset:(mouseOffset>maxOffset?mouseOffset-maxOffset:0);if(textDragDistanceAway==0){clearTextSelectionInterval()}else{if(!textSelectionInterval){textSelectionInterval=setInterval(onTextSelectionInterval,100)}}}function onSelectScrollMouseUp(e){$(document).unbind('mousemove.jScrollPaneDragging').unbind('mouseup.jScrollPaneDragging');clearTextSelectionInterval()}$container.bind('mousedown.jScrollPane',onSelectScrollMouseDown);$.jScrollPane.active.push($this[0])}else{$this.css({'height':paneHeight+'px','width':paneWidth-this.originalSidePaddingTotal+'px','padding':this.originalPadding});$this[0].scrollTo=$this[0].scrollBy=function(){};$this.parent().unbind('mousewheel').unbind('mousedown.jScrollPane').unbind('keydown.jscrollpane').unbind('keyup.jscrollpane')}})};$.fn.jScrollPaneRemove=function(){$(this).each(function(){$this=$(this);var $c=$this.parent();if($c.is('.jScrollPaneContainer')){$this.css({'top':'','height':'','width':'','padding':'','overflow':'','position':''});$this.attr('style',$this.data('originalStyleTag'));$c.after($this).remove()}})};$.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false,tabIndex:0,enableKeyboardNavigation:true,animateToInternalLinks:false,topCapHeight:0,bottomCapHeight:0,observeHash:true};$(window).bind('unload',function(){var els=$.jScrollPane.active;for(var i=0;i<els.length;i++){els[i].scrollTo=els[i].scrollBy=null}})})(jQuery);
/* lightbox Add-on */
(function($){$.fn.lightBox=function(settings){settings=jQuery.extend({overlayBgColor:'#000',overlayOpacity:0.7,fixedNavigation:false,imageLoading:'/Images/lightbox-ico-loading.gif',imageBtnPrev:'/Images/lightbox-btn-prev.gif',imageBtnNext:'/Images/lightbox-btn-next.gif',imageBtnClose:'/Images/lightbox-btn-close.gif',imageBlank:'/Images/lightbox-blank.gif',containerBorderSize:10,containerResizeSpeed:400,txtImage:'Image',txtOf:'of',keyToClose:'c',keyToPrev:'p',keyToNext:'n',imageArray:[],activeImage:0},settings);var jQueryMatchedObj=this;function _initialize(){_start(this,jQueryMatchedObj);return false;};function _start(objClicked,jQueryMatchedObj){$('embed, object, select').css({'visibility':'hidden'});_set_interface();settings.imageArray.length=0;settings.activeImage=0;if(jQueryMatchedObj.length==1){if(objClicked.getAttribute('href')){settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title')));}else{settings.imageArray.push(new Array(objClicked.getAttribute('src'),objClicked.getAttribute('title')));}}else{for(var i=0;i<jQueryMatchedObj.length;i++){if(jQueryMatchedObj[i].getAttribute('href')){settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title')));}else{settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('src'),jQueryMatchedObj[i].getAttribute('title')));}}};var imageSrc=objClicked.getAttribute('href')?objClicked.getAttribute('href'):objClicked.getAttribute('src');while(settings.imageArray[settings.activeImage][0]!=imageSrc){settings.activeImage++;}_set_image_to_view();};function _set_interface(){$('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="'+settings.imageLoading+'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="'+settings.imageBtnClose+'"></a></div></div></div></div>');var arrPageSizes=___getPageSize();$('#jquery-overlay').css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn();var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]}).show();$('#jquery-overlay,#jquery-lightbox').click(function(){_finish();});$('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function(){_finish();return false;});$(window).resize(function(){var arrPageSizes=___getPageSize();$('#jquery-overlay').css({width:arrPageSizes[0],height:arrPageSizes[1]});var arrPageScroll=___getPageScroll();$('#jquery-lightbox').css({top:arrPageScroll[1]+(arrPageSizes[3]/10),left:arrPageScroll[0]});});};function _set_image_to_view(){$('#lightbox-loading').show();if(settings.fixedNavigation){$('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();}else{$('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide();};var objImagePreloader=new Image();objImagePreloader.onload=function(){$('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]);_resize_container_image_box(objImagePreloader.width,objImagePreloader.height);objImagePreloader.onload=function(){};};objImagePreloader.src=settings.imageArray[settings.activeImage][0];};function _resize_container_image_box(intImageWidth,intImageHeight){var intCurrentWidth=$('#lightbox-container-image-box').width();var intCurrentHeight=$('#lightbox-container-image-box').height();var intWidth=(intImageWidth+(settings.containerBorderSize*2));var intHeight=(intImageHeight+(settings.containerBorderSize*2));var intDiffW=intCurrentWidth-intWidth;var intDiffH=intCurrentHeight-intHeight;$('#lightbox-container-image-box').animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image();});if((intDiffW==0)&&(intDiffH==0)){if($.browser.msie){___pause(250);}else{___pause(100);}};$('#lightbox-container-image-data-box').css({width:intImageWidth});$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({height:intImageHeight+(settings.containerBorderSize*2)});};function _show_image(){$('#lightbox-loading').hide();$('#lightbox-image').fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();};function _show_image_data(){$('#lightbox-container-image-data-box').slideDown('fast');$('#lightbox-image-details-caption').hide();if(settings.imageArray[settings.activeImage][1]){$('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show();};if(settings.imageArray.length>1){$('#lightbox-image-details-currentNumber').html(settings.txtImage+' '+(settings.activeImage+1)+' '+settings.txtOf+' '+settings.imageArray.length).show();}};function _set_navigation(){$('#lightbox-nav').show();$('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({'background':'transparent url('+settings.imageBlank+') no-repeat'});if(settings.activeImage!=0){if(settings.fixedNavigation){$('#lightbox-nav-btnPrev').css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnPrev').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnPrev+') left 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}};if(settings.activeImage!=(settings.imageArray.length-1)){if(settings.fixedNavigation){$('#lightbox-nav-btnNext').css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'}).unbind().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}else{$('#lightbox-nav-btnNext').unbind().hover(function(){$(this).css({'background':'url('+settings.imageBtnNext+') right 15% no-repeat'});},function(){$(this).css({'background':'transparent url('+settings.imageBlank+') no-repeat'});}).show().bind('click',function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}}_enable_keyboard_navigation();};function _enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent);});};function _disable_keyboard_navigation(){$(document).unbind();};function _keyboard_action(objEvent){if(objEvent==null){keycode=event.keyCode;escapeKey=27;}else{keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE;}key=String.fromCharCode(keycode).toLowerCase();if((key==settings.keyToClose)||(key=='x')||(keycode==escapeKey)){_finish();}if((key==settings.keyToPrev)||(keycode==37)){if(settings.activeImage!=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}}if((key==settings.keyToNext)||(keycode==39)){if(settings.activeImage!=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}};function _preload_neighbor_images(){if((settings.imageArray.length-1)>settings.activeImage){objNext=new Image();objNext.src=settings.imageArray[settings.activeImage+1][0];}if(settings.activeImage>0){objPrev=new Image();objPrev.src=settings.imageArray[settings.activeImage-1][0];}};function _finish(){$('#jquery-lightbox').remove();$('#jquery-overlay').fadeOut(function(){$('#jquery-overlay').remove();});$('embed, object, select').css({'visibility':'visible'});};function ___getPageSize(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}else if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}else{windowWidth=self.innerWidth;}windowHeight=self.innerHeight;}else if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}else if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}if(yScroll<windowHeight){pageHeight=windowHeight;}else{pageHeight=yScroll;}if(xScroll<windowWidth){pageWidth=xScroll;}else{pageWidth=windowWidth;}arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;};function ___getPageScroll(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}else if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}else if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;};function ___pause(ms){var date=new Date();curDate=null;do{var curDate=new Date();}while(curDate-date<ms);};return this.unbind('click').click(_initialize);};})(jQuery);
/* jCarousel Add-on */
(function($){$.fn.jcarousel=function(o){if(typeof o=='string'){var instance=$(this).data('jcarousel'),args=Array.prototype.slice.call(arguments,1);return instance[o].apply(instance,args)}else return this.each(function(){$(this).data('jcarousel',new $jc(this,o))})};var defaults={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:'normal',easing:'swing',auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:'<div></div>',buttonPrevHTML:'<div></div>',buttonNextEvent:'click',buttonPrevEvent:'click',buttonNextCallback:null,buttonPrevCallback:null};$.jcarousel=function(e,o){this.options=$.extend({},defaults,o||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical?'width':'height';this.lt=!this.options.vertical?'left':'top';var skin='',split=e.className.split(' ');for(var i=0;i<split.length;i++){if(split[i].indexOf('jcarousel-skin')!=-1){$(e).removeClass(split[i]);skin=split[i];break}}if(e.nodeName=='UL'||e.nodeName=='OL'){this.list=$(e);this.container=this.list.parent();if(this.container.hasClass('jcarousel-clip')){if(!this.container.parent().hasClass('jcarousel-container'))this.container=this.container.wrap('<div></div>');this.container=this.container.parent()}else if(!this.container.hasClass('jcarousel-container'))this.container=this.list.wrap('<div></div>').parent()}else{this.container=$(e);this.list=this.container.find('ul,ol').eq(0)}if(skin!=''&&this.container.parent()[0].className.indexOf('jcarousel-skin')==-1)this.container.wrap('<div class=" '+skin+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass('jcarousel-clip'))this.clip=this.list.wrap('<div></div>').parent();this.buttonNext=$('.jcarousel-next',this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null)this.buttonNext=this.clip.after(this.options.buttonNextHTML).next();this.buttonNext.addClass(this.className('jcarousel-next'));this.buttonPrev=$('.jcarousel-prev',this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null)this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next();this.buttonPrev.addClass(this.className('jcarousel-prev'));this.clip.addClass(this.className('jcarousel-clip')).css({overflow:'hidden',position:'relative'});this.list.addClass(this.className('jcarousel-list')).css({overflow:'hidden',position:'relative',top:0,left:0,margin:0,padding:0});this.container.addClass(this.className('jcarousel-container')).css({position:'relative'});var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var li=this.list.children('li');var self=this;if(li.size()>0){var wh=0,i=this.options.offset;li.each(function(){self.format(this,i++);wh+=self.dimension(this,di)});this.list.css(this.wh,wh+'px');if(!o||o.size===undefined)this.options.size=li.size()}this.container.css('display','block');this.buttonNext.css('display','block');this.buttonPrev.css('display','block');this.funcNext=function(){self.next()};this.funcPrev=function(){self.prev()};this.funcResize=function(){self.reload()};if(this.options.initCallback!=null)this.options.initCallback(this,'init');if($.browser.safari){this.buttons(false,false);$(window).bind('load.jcarousel',function(){self.setup()})}else this.setup()};var $jc=$.jcarousel;$jc.fn=$jc.prototype={jcarousel:'0.2.4'};$jc.fn.extend=$jc.extend=$.extend;$jc.fn.extend({setup:function(){this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked)return;this.list.css(this.lt,this.pos(this.options.offset)+'px');var p=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(p,false);$(window).unbind('resize.jcarousel',this.funcResize).bind('resize.jcarousel',this.funcResize)},reset:function(){this.list.empty();this.list.css(this.lt,'0px');this.list.css(this.wh,'10px');if(this.options.initCallback!=null)this.options.initCallback(this,'reset');this.setup()},reload:function(){if(this.tail!=null&&this.inTail)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null)this.options.reloadCallback(this);if(this.options.visible!=null){var self=this;var di=Math.ceil(this.clipping()/this.options.visible),wh=0,lt=0;$('li',this.list).each(function(i){wh+=self.dimension(this,di);if(i+1<self.first)lt=wh});this.list.css(this.wh,wh+'px');this.list.css(this.lt,-lt+'px')}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(s){if(s!=undefined){this.options.size=s;if(!this.locked)this.buttons()}return this.options.size},has:function(i,i2){if(i2==undefined||!i2)i2=i;if(this.options.size!==null&&i2>this.options.size)i2=this.options.size;for(var j=i;j<=i2;j++){var e=this.get(j);if(!e.length||e.hasClass('jcarousel-item-placeholder'))return false}return true},get:function(i){return $('.jcarousel-item-'+i,this.list)},add:function(i,s){var e=this.get(i),old=0,add=0;if(e.length==0){var c,e=this.create(i),j=$jc.intval(i);while(c=this.get(--j)){if(j<=0||c.length){j<=0?this.list.prepend(e):c.after(e);break}}}else old=this.dimension(e);e.removeClass(this.className('jcarousel-item-placeholder'));typeof s=='string'?e.html(s):e.empty().append(s);var di=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;var wh=this.dimension(e,di)-old;if(i>0&&i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-wh+'px');this.list.css(this.wh,$jc.intval(this.list.css(this.wh))+wh+'px');return e},remove:function(i){var e=this.get(i);if(!e.length||(i>=this.first&&i<=this.last))return;var d=this.dimension(e);if(i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt))+d+'px');e.remove();this.list.css(this.wh,$jc.intval(this.list.css(this.wh))-d+'px')},next:function(){this.stopAuto();if(this.tail!=null&&!this.inTail)this.scrollTail(false);else this.scroll(((this.options.wrap=='both'||this.options.wrap=='last')&&this.options.size!=null&&this.last==this.options.size)?1:this.first+this.options.scroll)},prev:function(){this.stopAuto();if(this.tail!=null&&this.inTail)this.scrollTail(true);else this.scroll(((this.options.wrap=='both'||this.options.wrap=='first')&&this.options.size!=null&&this.first==1)?this.options.size:this.first-this.options.scroll)},scrollTail:function(b){if(this.locked||this.animating||!this.tail)return;var pos=$jc.intval(this.list.css(this.lt));!b?pos-=this.tail:pos+=this.tail;this.inTail=!b;this.prevFirst=this.first;this.prevLast=this.last;this.animate(pos)},scroll:function(i,a){if(this.locked||this.animating)return;this.animate(this.pos(i),a)},pos:function(i){var pos=$jc.intval(this.list.css(this.lt));if(this.locked||this.animating)return pos;if(this.options.wrap!='circular')i=i<1?1:(this.options.size&&i>this.options.size?this.options.size:i);var back=this.first>i;var f=this.options.wrap!='circular'&&this.first<=1?1:this.first;var c=back?this.get(f):this.get(this.last);var j=back?f:f-1;var e=null,l=0,p=false,d=0,g;while(back?--j>=i:++j<i){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c[back?'before':'after'](e);if(this.first!=null&&this.options.wrap=='circular'&&this.options.size!==null&&(j<=0||j>this.options.size)){g=this.get(this.index(j));if(g.length)this.add(j,g.children().clone(true))}}c=e;d=this.dimension(e);if(p)l+=d;if(this.first!=null&&(this.options.wrap=='circular'||(j>=1&&(this.options.size==null||j<=this.options.size))))pos=back?pos+d:pos-d}var clipping=this.clipping();var cache=[];var visible=0,j=i,v=0;var c=this.get(i-1);while(++visible){e=this.get(j);p=!e.length;if(e.length==0){e=this.create(j).addClass(this.className('jcarousel-item-placeholder'));c.length==0?this.list.prepend(e):c[back?'before':'after'](e);if(this.first!=null&&this.options.wrap=='circular'&&this.options.size!==null&&(j<=0||j>this.options.size)){g=this.get(this.index(j));if(g.length)this.add(j,g.find('>*').clone(true))}}c=e;var d=this.dimension(e);if(d==0){alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...');return 0}if(this.options.wrap!='circular'&&this.options.size!==null&&j>this.options.size)cache.push(e);else if(p)l+=d;v+=d;if(v>=clipping)break;j++}for(var x=0;x<cache.length;x++)cache[x].remove();if(l>0){this.list.css(this.wh,this.dimension(this.list)+l+'px');if(back){pos-=l;this.list.css(this.lt,$jc.intval(this.list.css(this.lt))-l+'px')}}var last=i+visible-1;if(this.options.wrap!='circular'&&this.options.size&&last>this.options.size)last=this.options.size;if(j>last){visible=0,j=last,v=0;while(++visible){var e=this.get(j--);if(!e.length)break;v+=this.dimension(e);if(v>=clipping)break}}var first=last-visible+1;if(this.options.wrap!='circular'&&first<1)first=1;if(this.inTail&&back){pos+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!='circular'&&last==this.options.size&&(last-visible+1)>=1){var m=$jc.margin(this.get(last),!this.options.vertical?'marginRight':'marginBottom');if((v-m)>clipping)this.tail=v-clipping-m}while(i-->first)pos+=this.dimension(this.get(i));this.prevFirst=this.first;this.prevLast=this.last;this.first=first;this.last=last;return pos},animate:function(p,a){if(this.locked||this.animating)return;this.animating=true;var self=this;var scrolled=function(){self.animating=false;if(p==0)self.list.css(self.lt,0);if(self.options.wrap=='circular'||self.options.wrap=='both'||self.options.wrap=='last'||self.options.size==null||self.last<self.options.size)self.startAuto();self.buttons();self.notify('onAfterAnimation')};this.notify('onBeforeAnimation');if(!this.options.animation||a==false){this.list.css(this.lt,p+'px');scrolled()}else{var o=!this.options.vertical?{'left':p}:{'top':p};this.list.animate(o,this.options.animation,this.options.easing,scrolled)}},startAuto:function(s){if(s!=undefined)this.options.auto=s;if(this.options.auto==0)return this.stopAuto();if(this.timer!=null)return;var self=this;this.timer=setTimeout(function(){self.next()},this.options.auto*1000)},stopAuto:function(){if(this.timer==null)return;clearTimeout(this.timer);this.timer=null},buttons:function(n,p){if(n==undefined||n==null){var n=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='first')||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=='first')&&this.options.size!=null&&this.last>=this.options.size)n=this.tail!=null&&!this.inTail}if(p==undefined||p==null){var p=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='last')||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=='last')&&this.options.size!=null&&this.first==1)p=this.tail!=null&&this.inTail}var self=this;this.buttonNext[n?'bind':'unbind'](this.options.buttonNextEvent+'.jcarousel',this.funcNext)[n?'removeClass':'addClass'](this.className('jcarousel-next-disabled')).attr('disabled',n?false:true);this.buttonPrev[p?'bind':'unbind'](this.options.buttonPrevEvent+'.jcarousel',this.funcPrev)[p?'removeClass':'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled',p?false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=n)&&this.options.buttonNextCallback!=null){this.buttonNext.each(function(){self.options.buttonNextCallback(self,this,n)});this.buttonNext[0].jcarouselstate=n}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=p)&&this.options.buttonPrevCallback!=null){this.buttonPrev.each(function(){self.options.buttonPrevCallback(self,this,p)});this.buttonPrev[0].jcarouselstate=p}},notify:function(evt){var state=this.prevFirst==null?'init':(this.prevFirst<this.first?'next':'prev');this.callback('itemLoadCallback',evt,state);if(this.prevFirst!==this.first){this.callback('itemFirstInCallback',evt,state,this.first);this.callback('itemFirstOutCallback',evt,state,this.prevFirst)}if(this.prevLast!==this.last){this.callback('itemLastInCallback',evt,state,this.last);this.callback('itemLastOutCallback',evt,state,this.prevLast)}this.callback('itemVisibleInCallback',evt,state,this.first,this.last,this.prevFirst,this.prevLast);this.callback('itemVisibleOutCallback',evt,state,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(cb,evt,state,i1,i2,i3,i4){if(this.options[cb]==undefined||(typeof this.options[cb]!='object'&&evt!='onAfterAnimation'))return;var callback=typeof this.options[cb]=='object'?this.options[cb][evt]:this.options[cb];if(!$.isFunction(callback))return;var self=this;if(i1===undefined)callback(self,state,evt);else if(i2===undefined)this.get(i1).each(function(){callback(self,this,i1,state,evt)});else{for(var i=i1;i<=i2;i++)if(i!==null&&!(i>=i3&&i<=i4))this.get(i).each(function(){callback(self,this,i,state,evt)})}},create:function(i){return this.format('<li></li>',i)},format:function(e,i){var $e=$(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-'+i)).css({'float':'left','list-style':'none'});$e.attr('jcarouselindex',i);return $e},className:function(c){return c+' '+c+(!this.options.vertical?'-horizontal':'-vertical')},dimension:function(e,d){var el=e.jquery!=undefined?e[0]:e;var old=!this.options.vertical?el.offsetWidth+$jc.margin(el,'marginLeft')+$jc.margin(el,'marginRight'):el.offsetHeight+$jc.margin(el,'marginTop')+$jc.margin(el,'marginBottom');if(d==undefined||old==d)return old;var w=!this.options.vertical?d-$jc.margin(el,'marginLeft')-$jc.margin(el,'marginRight'):d-$jc.margin(el,'marginTop')-$jc.margin(el,'marginBottom');$(el).css(this.wh,w+'px');return this.dimension(el)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-$jc.intval(this.clip.css('borderLeftWidth'))-$jc.intval(this.clip.css('borderRightWidth')):this.clip[0].offsetHeight-$jc.intval(this.clip.css('borderTopWidth'))-$jc.intval(this.clip.css('borderBottomWidth'))},index:function(i,s){if(s==undefined)s=this.options.size;return Math.round((((i-1)/s)-Math.floor((i-1)/s))*s)+1}});$jc.extend({defaults:function(d){return $.extend(defaults,d||{})},margin:function(e,p){if(!e)return 0;var el=e.jquery!=undefined?e[0]:e;if(p=='marginRight'&&$.browser.safari){var old={'display':'block','float':'none','width':'auto'},oWidth,oWidth2;$.swap(el,old,function(){oWidth=el.offsetWidth});old['marginRight']=0;$.swap(el,old,function(){oWidth2=el.offsetWidth});return oWidth2-oWidth}return $jc.intval($.css(el,p))},intval:function(v){v=parseInt(v);return isNaN(v)?0:v}})})(jQuery);jQuery.fn.highlight=function(b){function a(e,j){var l=0;if(e.nodeType==3){var k=e.data.toUpperCase().indexOf(j);if(k>=0){var h=document.createElement("span");h.className="highlight";var f=e.splitText(k);var c=f.splitText(j.length);var d=f.cloneNode(true);h.appendChild(d);f.parentNode.replaceChild(h,f);l=1}}else{if(e.nodeType==1&&e.childNodes&&!/(script|style)/i.test(e.tagName)){for(var g=0;g<e.childNodes.length;++g){g+=a(e.childNodes[g],j)}}}return l}return this.each(function(){a(this,b.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};
/* jModal Add-on */
(function($){$.fn.jqm=function(o){var p={overlay:50,overlayClass:'jqmOverlay',closeClass:'jqmClose',trigger:'.jqModal',ajax:F,ajaxText:'',target:F,modal:F,toTop:F,onShow:F,onHide:F,onLoad:F};return this.each(function(){if(this._jqm)return H[this._jqm].c=$.extend({},H[this._jqm].c,o);s++;this._jqm=s;H[s]={c:$.extend(p,$.jqm.params,o),a:F,w:$(this).addClass('jqmID'+s),s:s};if(p.trigger)$(this).jqmAddTrigger(p.trigger)})};$.fn.jqmAddClose=function(e){return hs(this,e,'jqmHide')};$.fn.jqmAddTrigger=function(e){return hs(this,e,'jqmShow')};$.fn.jqmShow=function(t){return this.each(function(){t=t||window.event;$.jqm.open(this._jqm,t)})};$.fn.jqmHide=function(t){return this.each(function(){t=t||window.event;$.jqm.close(this._jqm,t)})};$.jqm={hash:{},open:function(s,t){var h=H[s],c=h.c,cc='.'+c.closeClass,z=(parseInt(h.w.css('z-index'))),z=(z>0)?z:3000,o=$('<div></div>').css({height:'100%',width:'100%',position:'fixed',left:0,top:0,'z-index':z-1,opacity:c.overlay/100});if(h.a)return F;h.t=t;h.a=true;h.w.css('z-index',z);if(c.modal){if(!A[0])L('bind');A.push(s)}else if(c.overlay>0)h.w.jqmAddClose(o);else o=F;h.o=(o)?o.addClass(c.overlayClass).prependTo('body'):F;if(ie6){$('html,body').css({height:'100%',width:'100%'});if(o){o=o.css({position:'absolute'})[0];for(var y in{Top:1,Left:1})o.style.setExpression(y.toLowerCase(),"(_=(document.documentElement.scroll"+y+" || document.body.scroll"+y+"))+'px'")}}if(c.ajax){var r=c.target||h.w,u=c.ajax,r=(typeof r=='string')?$(r,h.w):$(r),u=(u.substr(0,1)=='@')?$(t).attr(u.substring(1)):u;r.html(c.ajaxText).load(u,function(){if(c.onLoad)c.onLoad.call(this,h);if(cc)h.w.jqmAddClose($(cc,h.w));e(h)})}else if(cc)h.w.jqmAddClose($(cc,h.w));if(c.toTop&&h.o)h.w.before('<span id="jqmP'+h.w[0]._jqm+'"></span>').insertAfter(h.o);(c.onShow)?c.onShow(h):h.w.show();e(h);return F},close:function(s){var h=H[s];if(!h.a)return F;h.a=F;if(A[0]){A.pop();if(!A[0])L('unbind')}if(h.c.toTop&&h.o)$('#jqmP'+h.w[0]._jqm).after(h.w).remove();if(h.c.onHide)h.c.onHide(h);else{h.w.hide();if(h.o)h.o.remove()}return F},params:{}};var s=0,H=$.jqm.hash,A=[],ie6=$.browser.msie&&($.browser.version=="6.0"),F=false,i=$('<iframe src="javascript:false;document.write(\'\');" class="jqm"></iframe>').css({opacity:0}),e=function(h){if(ie6)if(h.o)h.o.html('<p style="width:100%;height:100%"/>').prepend(i);else if(!$('iframe.jqm',h.w)[0])h.w.prepend(i);f(h)},f=function(h){try{$(':input:visible',h.w)[0].focus()}catch(_){}},L=function(t){$()[t]("keypress",m)[t]("keydown",m)[t]("mousedown",m)},m=function(e){var h=H[A[A.length-1]],r=(!$(e.target).parents('.jqmID'+h.s)[0]);if(r)f(h);return!r},hs=function(w,t,c){return w.each(function(){var s=this._jqm;$(t).each(function(){if(!this[c]){this[c]=[];$(this).click(function(){for(var i in{jqmShow:1,jqmHide:1})for(var s in this[i])if(H[this[i][s]])H[this[i][s]].w[i](this);return F})}this[c].push(s)})})}})(jQuery);
/* highlight */
jQuery.fn.highlight=function(b){function a(e,j){var l=0;if(e.nodeType==3){var k=e.data.toUpperCase().indexOf(j);if(k>=0){var h=document.createElement("span");h.className="highlight";var f=e.splitText(k);var c=f.splitText(j.length);var d=f.cloneNode(true);h.appendChild(d);f.parentNode.replaceChild(h,f);l=1}}else{if(e.nodeType==1&&e.childNodes&&!/(script|style)/i.test(e.tagName)){for(var g=0;g<e.childNodes.length;++g){g+=a(e.childNodes[g],j)}}}return l}return this.each(function(){a(this,b.toUpperCase())})};jQuery.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()};
/* watermark */
(function($){$.extend($,{clearwatermarks:function(){$("[wmwrap='true']").find("input,textarea").watermark({remove:true})},addwatermarks:function(){$("[watermark]").each(function(a,b){$(b).watermark($(b).attr("watermark"))})},watermark:function(o){o.el=$(o.el);if(o.remove){if(o.el.parent().attr("wmwrap")=='true'){o.el.parent().replaceWith(o.el)}}else{var a=function(){if(o.el.val()==o.html)o.el.val('').css("color","")};var b=function(){if(!o.el.val())o.el.val(o.html).css("color","#ccc")};o.el.focus(a).blur(b);b()}return o.el}});$.fn.watermark=function(o){return this.each(function(){if(typeof(o)=="string"){try{o=eval("("+o+")")}catch(ex){o={html:o}}}o.el=this;return $.watermark(o)})}})(jQuery);$().ready(function(){$.addwatermarks()});
/* Cookie */
jQuery.cookie=function(a,b,c){if(typeof b!='undefined'){c=c||{};if(b===null){b='';c=$.extend({},c);c.expires=-1}var d='';if(c.expires&&(typeof c.expires=='number'||c.expires.toUTCString)){var e;if(typeof c.expires=='number'){e=new Date();e.setTime(e.getTime()+(c.expires*24*60*60*1000))}else{e=c.expires}d='; expires='+e.toUTCString()}var f=c.path?'; path='+(c.path):'';var g=c.domain?'; domain='+(c.domain):'';var h=c.secure?'; secure':'';document.cookie=[a,'=',encodeURIComponent(b),d,f,g,h].join('')}else{var j=null;if(document.cookie&&document.cookie!=''){var k=document.cookie.split(';');for(var i=0;i<k.length;i++){var l=jQuery.trim(k[i]);if(l.substring(0,a.length+1)==(a+'=')){j=decodeURIComponent(l.substring(a.length+1));break}}}return j}};
/* idream.Framework.JS Add-on */
function randomNumber(n){if(!n||n<=0)n=1;return Math.floor(Math.random()*n)};function getRND(){var d=new Date();randomstr=new String(Math.random());randomstr=randomstr.substring(1,8);var a=d.getYear()+1900;var b=d.getMonth()+1;var c=d.getDay()+1;var e=d.getHours();var f=d.getMinutes();var g=d.getSeconds();return''+a+b+c+e+f+g+randomstr}function randomOrder(arr){if(!arr||!arr.length||arr.leng<=0)return[];var newArr=[];var l=arr.length;while(l>0){var x=randomNumber(l);newArr.push(arr[x]);l--;arr.splice(x,1)}return newArr}
function vnnLoadFile(filename,filetype,parent,fn){if(!filename)return;if(filetype=='js'){var fileref=document.createElement('script');fileref.setAttribute('type','text/javascript');fileref.setAttribute('src',filename)}else if(filetype=='css'){var fileref=document.createElement('link');fileref.setAttribute('rel','stylesheet');fileref.setAttribute('type','text/css');fileref.setAttribute('href',filename)};if(typeof fileref!='undefined'){if(!parent)document.getElementsByTagName('head')[0].appendChild(fileref);else parent.appendChild(fileref);if(fn&&typeof(fn)=='function'){if($.browser.msie){$(fileref).ready(fn)}else{fileref.onload=function(){fn();}}}}}

eval(function(p,a,c,k,e,r){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--)r[e(c)]=k[c]||e(c);k=[function(e){return r[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}('(B($){E p=($.1z.2u&&1A($.1z.2v,10)<7&&1A($.1z.2v,10)>4);r($.I===22){$.1g({I:B(a,b){r(a){I=B(){O a.3u(b||8,4F)}};O I}})};r($.2O===22){$.1g({2O:B(a){3v(E b 4G a){O Q}O M}})};$.1g($.2w.4H,{4I:B(){r(8.u.2x){8.u.2x.4J(8.4K,8.4L,8)}(2g.2w.2x[8.4M]||2g.2w.2x.4N)(8)}});$.1g($.3w,{23:B(x,t,b,c,d,s){r(s==22)s=1.4O;O c*((t=t/d-1)*t*((s+1)*t+s)+1)+b}});$.1g({2h:{3x:{D:\'3y-R\',1h:4P,A:4Q,C:4R,U:\'#4S\',2y:Q,1i:{\'1B\':0.6},2z:3z,2A:4T,4U:3A,4V:3A,4W:\'23\',4X:\'23\',4Y:\'23\',4Z:\'23\',24:{\'3B\':10,\'2P\':25,\'1C\':\'23\',\'3C\':2},1D:{\'A\':51,\'C\':52},3D:\'1d\'},u:{},1P:{},X:{},1b:{},q:{R:[],F:{1j:[],1Q:[],18:[],1R:[]},U:[],V:[]},1a:Q,1u:Q,1E:\'1b\',3E:{1F:{12:/[^\\.]\\.(1F)\\s*$/i},2B:{12:/2B\\.K\\/3F/i,N:\'=\',11:1,1e:1,Z:"17://1q.2B.K/v/%S%&H;1m=1&H;3G=1&H;2i=0",Z:"17://1q.2B.K/2j/%S%?1m=1&H;3G=1&H;2i=0"},2Q:{12:/2Q\\.K\\/3F/i,N:\'/\',11:4,Z:"17://1q.2Q.K/53/%S%/.1F?54=55=56"},2R:{12:/2R\\.K\\/26/i,N:\'/\',11:4,Z:"17://1q.2R.K/1F/26/%S%?57=0&H;58=1"},1G:{12:/1G\\.K\\/59/i,N:\'=\',11:1,Z:"17://26.1G.K/5a.1F?1m=1&H;5b=5c&H;5d=%S%"},2k:{12:/2k\\.K/i,N:\'/\',11:3,1e:1,Z:"17://2k.K/2S.1F?3H=%S%&H;5e=2k.K&H;1m=1&H;3I=1&H;3J=1&H;3K=0&H;3L=&H;2T=1",Z:"17://2U.2k.K/26/%S%?1m=1&H;3I=1&H;3J=1&H;3K=0&H;3L=&H;2T=1"},2V:{12:/2V.K/i,N:\'=\',11:1,Z:"17://1q.2V.K/v/%S%"},2W:{12:/2W.K/i,N:\'/\',11:5,Z:"17://1q.2W.K/5f.5g?5h=%S%"},2X:{12:/2X.K/i,N:\'26:\',11:1,Z:"17://1q.2X.K/2S/2S.1F?1m=M&H;2T=1&H;3H=%S%"},2Y:{12:/2Y.3M/i,N:\'/\',11:4,Z:"17://1q.2Y.3M/1D/26/%S%?5i=%2F&H;1m=M&H;5j=%S%&H;5k=M&H;5l=0.5m&H;5n=0.5o&H;5p=5q"},2Z:{12:/2Z.K/i,N:\'/\',11:3,Z:"17://1q.2Z.K/2U/%S%"},3N:{12:/v.3N.K/i,N:\'/\',11:3,Z:"17://5r.5s.K/2U.1F?5t=%S%&H;v=1.5u"},31:{12:/31.K\\/5v/i,N:\'/\',11:4,Z:"17://5w.31.K/%S%.5x?1m=M&H;1H=1I"}},3O:{32:{12:/32.K\\/28/i,N:\'?\',11:1,Z:"17://1q.32.K/28/2j/?5y=5z-5A-5B-5C-5D&H;w=%A%&H;h=%C%&H;%S%"},5E:{12:/28.1G.K(.*)5F=c/i,N:\'?\',11:1,Z:"17://28.1G.K/?3P=5G&H;%S%"},1G:{12:/28.1G.K/i,N:\'?\',11:1,Z:"17://28.1G.K/?3P=2j&H;%S%"}},33:/\\.(5H|5I|5J|5K|5L|5M)(.*)?$/i,1i:{2C:B(b){8.u=b;8.W=$(\'<G S="\'+2l 34().35()+\'" T="\'+8.u.D+\'-1i"></G>\');8.W.J($.1g({},{\'1r\':\'5N\',\'1d\':0,\'13\':0,\'1B\':0,\'1v\':\'1I\',\'z-11\':8.u.1h},8.u.1w));8.W.1n($.I(B(a){r(8.u.2D){r($.1S(8.u.1J)){8.u.1J()}L{8.1s()}}a.1T()},8));8.2m=M;8.3Q();O 8},3Q:B(){8.2E=$(2G.36);8.2E.29(8.W);r(p){8.W.J({\'1r\':\'2n\'});E a=1A(8.W.J(\'1h\'));r(!a){a=1;E b=8.W.J(\'1r\');r(b==\'3R\'||!b){8.W.J({\'1r\':\'5O\'})}8.W.J({\'1h\':a})}a=(!!(8.u.1h||8.u.1h===0)&&a>8.u.1h)?8.u.1h:a-1;r(a<0){a=1}8.1k=$(\'<1e S="3S\'+2l 34().35()+\'" 5P="5Q" 3T=0 1U=""></1e>\');8.1k.J({1h:a,1r:\'2n\',1d:0,13:0,1H:\'1I\',A:0,C:0,1B:0});8.1k.5R(8.W);$(\'V, 36\').J({\'C\':\'25%\',\'A\':\'25%\',\'2o-13\':0,\'2o-2a\':0})}},15:B(x,y){8.W.J({\'C\':0,\'A\':0});r(8.1k){8.1k.J({\'C\':0,\'A\':0})};E a={x:$(2G).A(),y:$(2G).C()};8.W.J({\'A\':\'25%\',\'C\':y?y:a.y});r(8.1k){8.1k.J({\'C\':0,\'A\':0});8.1k.J({\'1r\':\'2n\',\'13\':0,\'1d\':0,\'A\':8.W.A(),\'C\':y?y:a.y})}O 8},Y:B(a){r(!8.2m){O 8};r(8.1C){8.1C.1V()};r(8.1k){8.1k.J({\'1v\':\'38\'})};8.W.J({\'1v\':\'38\',\'1B\':0});8.2E.1f(\'15\',$.I(8.15,8));8.15();8.2m=Q;8.1C=8.W.3U(8.u.2z,8.u.1w.1B,$.I(B(){r(8.u.1w.1B){8.W.J(8.u.1w)};8.W.3a(\'Y\');r($.1S(a)){a()}},8));O 8},1s:B(a){r(8.2m){O 8};r(8.1C){8.1C.1V()};r(8.1k){8.1k.J({\'1v\':\'1I\'})};8.2E.2b(\'15\');8.2m=M;8.1C=8.W.3U(8.u.2A,0,$.I(B(){8.W.3a(\'1s\');r($.1S(a)){a()};8.W.J({\'C\':0,\'A\':0,\'1v\':\'1I\'})},8));O 8}},2C:B(a){8.u=$.1g(M,8.3x,a);8.1i.2C({D:8.u.D,1w:8.u.1i,2D:!8.u.2y,1h:8.u.1h-1,1J:$.I(8.1j,8),2z:8.u.2z,2A:8.u.2A});8.q.R=$(\'<G T="\'+8.u.D+\' \'+8.u.D+\'-1E-1b"><G T="\'+8.u.D+\'-1H-1d-13"></G><G T="\'+8.u.D+\'-1H-1d-3V"></G><G T="\'+8.u.D+\'-1H-1d-2a"></G><a T="\'+8.u.D+\'-19-1j" 1x="#1j"><1l>5S</1l></a><G T="\'+8.u.D+\'-1W"><a T="\'+8.u.D+\'-19-13" 1x="#"><1l>3W</1l></a><a T="\'+8.u.D+\'-19-2a" 1x="#"><1l>3X</1l></a></G><G T="\'+8.u.D+\'-F"><G T="\'+8.u.D+\'-F-5T"></G><a T="\'+8.u.D+\'-19-13" 1x="#"><1l>3W</1l></a><a T="\'+8.u.D+\'-19-18" 1x="#"><1l>5U</1l></a><G T="\'+8.u.D+\'-F-1K"></G><a T="\'+8.u.D+\'-19-2a" 1x="#"><1l>3X</1l></a><G T="\'+8.u.D+\'-F-5V"></G></G><G T="\'+8.u.D+\'-U"></G><G T="\'+8.u.D+\'-V"></G><G T="\'+8.u.D+\'-1H-2H-13"></G><G T="\'+8.u.D+\'-1H-2H-3V"></G><G T="\'+8.u.D+\'-1H-2H-2a"></G></G>\');8.q.1W=$(\'.\'+8.u.D+\'-1W\',8.q.R);8.q.F.G=$(\'.\'+8.u.D+\'-F\',8.q.R);8.q.F.1j=$(\'.\'+8.u.D+\'-19-1j\',8.q.R);8.q.F.1Q=$(\'.\'+8.u.D+\'-19-13\',8.q.R);8.q.F.18=$(\'.\'+8.u.D+\'-19-18\',8.q.R);8.q.F.1R=$(\'.\'+8.u.D+\'-19-2a\',8.q.R);8.q.F.1K=$(\'.\'+8.u.D+\'-F-1K\',8.q.R);8.q.U=$(\'.\'+8.u.D+\'-U\',8.q.R);8.q.V=$(\'.\'+8.u.D+\'-V\',8.q.R);8.q.P=$(\'<G T="\'+8.u.D+\'-P"></G>\').29(8.q.R);8.q.P.J({\'1r\':\'2n\',\'z-11\':8.u.1h,\'1d\':-3Y,\'13\':-3Y});$(\'36\').29(8.q.P);8.3Z();O 8.q.R},3Z:B(){8.q.F.1j.1f(\'1n\',$.I(B(a){8.1j();a.1T()},8));$(1c).1f(\'15\',$.I(B(){r(8.1a){8.1i.15();r(!8.1u){8.1X()}}},8));$(1c).1f(\'5W\',$.I(B(){r(8.1a&&!8.1u){8.1X()}},8));$(2G).1f(\'5X\',$.I(B(a){r(8.1a){r(a.3b==27&&8.1i.u.2D){8.1j()}r(8.X.2p>1){r(a.3b==37){8.q.F.1Q.2I(\'1n\',a)}r(a.3b==39){8.q.F.1R.2I(\'1n\',a)}}}},8));8.q.F.18.1f(\'1n\',$.I(B(a){8.41();a.1T()},8));8.1i.W.1f(\'Y\',$.I(B(){$(8).2I(\'Y\')},8));8.1i.W.1f(\'1s\',$.I(B(){$(8).2I(\'1j\')},8))},42:B(b){r($.2J(b)&&b.2c>1&&b[0].1L(8.33)){8.X.3c=b;8.X.1o=0;8.X.2p=b.2c;b=b[0];8.q.F.1Q.2b(\'1n\');8.q.F.1R.2b(\'1n\');8.q.F.1Q.1f(\'1n\',$.I(B(a){r(8.X.1o-1<0){8.X.1o=8.X.2p-1}L{8.X.1o=8.X.1o-1}8.Y(8.X.3c[8.X.1o]);a.1T()},8));8.q.F.1R.1f(\'1n\',$.I(B(a){r(8.X.1o+1>=8.X.2p){8.X.1o=0}L{8.X.1o=8.X.1o+1}8.Y(8.X.3c[8.X.1o]);a.1T()},8))}r(8.X.2p>1){r(8.q.1W.J("1v")=="1I"){8.q.F.G.Y()}8.q.F.1Q.Y();8.q.F.1R.Y()}L{8.q.F.1Q.1s();8.q.F.1R.1s()}},43:B(b,c){$.1M(b,$.I(B(i,a){8.q.F.1K.29($(\'<a 1x="#" T="\'+a[\'T\']+\'">\'+a.V+\'</a>\').1f(\'1n\',$.I(B(e){r($.1S(a.1J)){a.1J(8.1b.1U,8,c)}e.1T()},8)))},8));8.q.F.G.Y()},Y:B(b,c,d,f){E g=\'\';E h=Q;r(($.2J(b)&&b.2c<=1)||b==\'\'){O Q};8.1Y();h=8.1a;8.44();r(!h){8.1X()};8.42(b,c);r($.2J(b)&&b.2c>1){b=b[0]}E j=b.N("%45%");E b=j[0];E k=j[1]||\'\';c=$.1g(M,{\'A\':0,\'C\':0,\'2y\':0,\'3d\':\'\',\'1Z\':k,\'3e\':M,\'P\':-1,\'1e\':Q,\'2K\':\'\'},c||{});3f=8.46(b);r(!$.2O(3f)){c=$.1g({},c,3f)}E l={x:$(1c).A(),y:$(1c).C()};r(c.A&&(c.A+\'\').21("p")>0){c.A=(l.x-20)*c.A.47(0,c.A.21("p"))/25}r(c.C&&(c.C+\'\').21("p")>0){c.C=(l.y-20)*c.C.47(0,c.C.21("p"))/25}8.q.U.2b(\'1N\');8.1i.u.2D=!c.2y;8.q.F.18.2d(8.u.D+\'-19-3g\');8.q.F.18.2q(8.u.D+\'-19-18\');8.1u=!(c.P>0||(c.P==-1&&c.3e));r($.2J(c.F)){8.43(c.F,f)}r(!8.q.F.1K.48(":1p")){8.q.F.G.Y()}r(c.3d!=\'\'){g=c.3d}L r(c.1e){g=\'1e\'}L r(b.1L(8.33)){g=\'1b\'}L{$.1M(8.3E,$.I(B(i,e){r(b.N(\'?\')[0].1L(e.12)){r(e.N){49=b.N(e.N)[e.11].N(\'?\')[0].N(\'&\')[0];b=e.Z.2e("%S%",49)}g=e.1e?\'1e\':\'1D\';c.A=c.A?c.A:8.u.1D.A;c.C=c.C?c.C:8.u.1D.C;O Q}},8));$.1M(8.3O,B(i,e){r(b.1L(e.12)){g=\'1e\';r(e.N){S=b.N(e.N)[e.11];b=e.Z.2e("%S%",S).2e("%A%",c.A).2e("%C%",c.C)}}});r(g==\'\'){r(b.1L(/#/)){3h=b.5Y(b.21("#"));r($(3h).2c>0){g=\'3i\';b=3h}L{g=\'1O\'}}L{g=\'1O\'}}}r(g==\'1b\'){8.q.F.18.1s();E m=2l 5Z();m.4a=$.I(B(){m.4a=B(){};r(!8.1a){O Q};8.1b={A:m.A,C:m.C,1U:m.1U};r(c.A){A=1A(c.A);C=1A(c.C)}L{r(c.3e){E a=8.3j(m.A,m.C);A=a.A;C=a.C;r(m.A!=A||m.C!=C){8.q.F.G.Y();8.q.F.18.Y()}}L{A=m.A;C=m.C}}8.15(A,C);8.q.U.1f(\'1N\',$.I(B(){r(!8.1a){O Q};8.2L(\'1b\');8.q.U.1p();8.q.V.1p();r(c.1Z!=\'\'){8.q.U.29($(\'<G T="\'+8.u.D+\'-1Z"></G>\').V(c.1Z))}$(m).1s();8.q.U.29(m);$(m).1V().60(3z,$.I(B(){8.q.U.2d(8.u.D+\'-1Y\')},8))},8))},8);m.61=$.I(B(){8.2f("3k 4b 1b 4c 4d 3l. 4e 4f 4g 4h.")},8);m.1U=b}L r(g==\'1D\'||g==\'3i\'||g==\'1O\'){r(g==\'3i\'){8.2r($(b).62(M).Y(),c.A>0?c.A:$(b).4i(M),c.C>0?c.C:$(b).4j(M),\'V\')}L r(g==\'1O\'){r(c.A){A=c.A;C=c.C}L{8.2f("4k 4l 4m 4n 2M 4o 4p 2M R.");O Q}r(8.1P.1O){8.1P.1O.63()};8.1P.1O=$.1O({Z:b,4q:"64",65:Q,66:"V",2f:$.I(B(){8.2f("3k 4b 67 4c 4d 3l. 4e 4f 4g 4h.")},8),68:$.I(B(a){8.2r($(a),A,C,\'V\')},8)})}L r(g==\'1D\'){E n=8.4r(b,c.A,c.C,c.2K);8.2r($(n),c.A,c.C,\'V\')}}L r(g==\'1e\'){r(c.A){A=c.A;C=c.C}L{8.2f("4k 4l 4m 4n 2M 4o 4p 2M R.");O Q}8.2r($(\'<1e S="3S\'+(2l 34().35())+\'" 3T="0" 1U="\'+b+\'" 1w="2o:0; 3m:0;"></1e>\').J(c),c.A,c.C,\'V\')}8.1J=$.1S(d)?d:B(e){}},4r:B(a,b,c,d){r(3n d==\'22\'||d==\'\')d=\'3o=1&1m=1&69=1\';E e=\'<4s A="\'+b+\'" C="\'+c+\'" 6a="6b:6c-6d-6e-6f-6g"><16 D="6h" 1y="\'+a+\'" 1w="2o:0; 3m:0;"></16>\';e+=\'<16 D="6i" 1y="M"></16><16 D="4t" 1y="4u"></16><16 D="4v" 1y="4w"></16>\';e+=\'<16 D="3o" 1y="M"></16><16 D="1m" 1y="M"></16><16 D="2K" 1y="\'+d+\'"></16>\';e+=\'<16 D="A" 1y="\'+b+\'"></16><16 D="C" 1y="\'+c+\'"></16>\';e+=\'<2j 1U="\'+a+\'" 4q="6j/x-6k-1D" 4t="4u" 6l="M" 3o="M" 1m="M" 2K="\'+d+\'" 4v="4w" A="\'+b+\'" C="\'+c+\'" 1w="2o:0; 3m:0;"></2j></4s>\';O e},2r:B(a,b,c,d){r(3n d!==\'22\'){8.2L(d)}8.15(b+30,c+20);8.q.U.1f(\'1N\',$.I(B(){8.q.U.2d(8.u.D+\'-1Y\');8.q.V.V(a);8.q.V.V(a);8.q.U.2b(\'1N\')},8))},1X:B(w,h){E a={x:$(1c).A(),y:$(1c).C()};E b={x:$(1c).4x(),y:$(1c).4y()};E c=h!=3p?h:8.q.R.4j();E d=w!=3p?w:8.q.R.4i();E y=0;E x=0;x=b.x+((a.x-d)/2);r(8.1a){y=b.y+(a.y-c)/2}L r(8.u.3D=="2H"){y=(b.y+a.y+14)}L{y=(b.y-c)-14}r(8.1a){r(!8.1P.P){8.1t(8.q.P,{\'13\':x},\'P\')}8.1t(8.q.P,{\'1d\':y},\'P\')}L{8.q.P.J({\'13\':x,\'1d\':y})}},1t:B(d,f,g,h,i){E j=$.6m({2N:i||Q,2P:8.u[g+\'6n\'],3w:8.u[g+\'6o\'],1N:($.1S(h)?$.I(h,8):3p)});O d[j.2N===Q?"1M":"2N"](B(){E c=$.1g({},j),4z=8;c.6p=$.1g({},f);$.1M(f,B(a,b){E e=2l $.2w(4z,c,a);e.1K(e.6q(M)||0,b,"6r")});O M})},15:B(x,y){r(8.1a){E a={x:$(1c).A(),y:$(1c).C()};E b={x:$(1c).4x(),y:$(1c).4y()};E c=(b.x+(a.x-(x+14))/2);E d=(b.y+(a.y-(y+14))/2);r($.1z.2u||($.1z.6s&&(4A($.1z.2v)<1.9))){y+=4}8.1P.P=M;8.1t(8.q.P.1V(),{\'13\':(8.1u&&c<0)?0:c,\'1d\':(8.1u&&(y+14)>a.y)?b.y:d},\'P\',$.I(B(){8.P=Q},8.1P));8.1t(8.q.V,{\'C\':y-20},\'15\');8.1t(8.q.R.1V(),{\'A\':(x+14),\'C\':y-20},\'15\',{},M);8.1t(8.q.F.G,{\'A\':x,\'C\':y},\'15\');8.1t(8.q.1W,{\'A\':x},\'15\');8.1t(8.q.1W,{\'1d\':(y-4B)/2},\'P\');8.1t(8.q.U.1V(),{\'A\':x,\'C\':y},\'15\',B(){$(8.q.U).3a(\'1N\')})}L{8.q.V.J({\'C\':y-20});8.q.R.J({\'A\':x+14,\'C\':y-20});8.q.U.J({\'A\':x,\'C\':y});8.q.F.G.J({\'A\':x,\'C\':y});8.q.1W.J({\'A\':x,\'C\':4B})}},1j:B(a){8.1a=Q;8.X={};r($.1z.2u){8.q.U.1p();8.q.V.1p();8.q.F.1K.1p();8.q.P.J({\'1v\':\'1I\'});8.1X()}L{8.q.P.2s({\'1B\':0,\'1d\':\'-=40\'},{2N:Q,1N:($.I(B(){8.q.U.1p();8.q.V.1p();8.q.F.1K.1p();8.1X();8.q.P.J({\'1v\':\'1I\',\'1B\':1,\'3q\':\'1a\'})},8))})}8.1i.1s($.I(B(){r($.1S(8.1J)){8.1J.3u(8,$.6t(a))}},8));8.q.U.1V(M,Q);8.q.U.2b(\'1N\')},44:B(){8.1a=M;r($.1z.2u){8.q.P.6u(0).1w.6v(\'6w\');8.q.F.G.J({\'1r\':\'3R\'}).J({\'1r\':\'2n\'})}8.q.P.J({\'1v\':\'38\',\'3q\':\'1a\'}).Y();8.1i.Y()},24:B(){E x=8.u.24.3B;E d=8.u.24.2P;E t=8.u.24.1C;E o=8.u.24.3C;E l=8.q.P.1r().13;E e=8.q.P;3v(i=0;i<o;i++){e.2s({13:l+x},d,t);e.2s({13:l-x},d,t)};e.2s({13:l+x},d,t);e.2s({13:l},d,t)},2L:B(a){r(a!=8.1E){8.q.R.2d(8.u.D+\'-1E-\'+8.1E);8.1E=a;8.q.R.2q(8.u.D+\'-1E-\'+8.1E)}8.q.P.J({\'3q\':\'1a\'})},2f:B(a){6x(a);8.1j()},46:B(d){E e=/R\\[(.*)?\\]$/i;E f={};r(d.1L(/#/)){d=d.4C(0,d.21("#"))}d=d.4C(d.21(\'?\')+1).N("&");$.1M(d,B(){E a=8.N("=");E b=a[0];E c=a[1];r(b.1L(e)){r(6y(c)){c=1A(c)}L r(c.4D()=="M"){c=M}L r(c.4D()=="Q"){c=Q}f[b.1L(e)[1]]=c}});O f},3j:B(x,y){E a=$(1c).A()-50;E b=$(1c).C()-50;r(x>a){y=y*(a/x);x=a;r(y>b){x=x*(b/y);y=b}}L r(y>b){x=x*(b/y);y=b;r(x>a){y=y*(a/x);x=a}}O{A:1A(x),C:1A(y)}},1Y:B(){8.2L(\'1b\');8.q.U.1p();8.q.V.1p();8.q.U.2q(8.u.D+\'-1Y\');8.q.F.G.1s();8.1X(8.u.A,8.u.C);8.15(8.u.A,8.u.C)},41:B(){r(8.1u){8.1u=Q;8.q.F.18.2d(8.u.D+\'-19-3g\');8.q.F.18.2q(8.u.D+\'-19-18\');E a=8.3j(8.1b.A,8.1b.C);8.1Y();8.q.F.G.Y();8.15(a.A,a.C)}L{8.1u=M;8.q.F.18.2d(8.u.D+\'-19-18\');8.q.F.18.2q(8.u.D+\'-19-3g\');8.1Y();8.q.F.G.Y();8.15(8.1b.A,8.1b.C)}}},R:B(a,b,c){r(3n a!==\'22\'){O $.2h.Y(a,b,c)}L{O $.2h}}});$.4E.R=B(k,l){O $(8).6z(\'1n\',B(e){e.1T();$(8).6A();E b=[];E c=$.3r($(8).2t(\'2i\'))||\'\';E d=$.3r($(8).2t(\'1Z\'))||\'\';c=c.2e(\'[\',\'\\\\\\\\[\');c=c.2e(\']\',\'\\\\\\\\]\');r(!c||c==\'\'||c===\'6B\'){b=$(8).2t(\'1x\');3s=(d||d!=\'\')?$.1g({},k,{\'1Z\':d}):k}L{E f=[];E g=[];E h=[];E j=Q;$("a[2i="+c+"], 6C[2i="+c+"]").1M($.I(B(i,a){r(8==a){g.6D(a);j=M}L r(j==Q){h.3t(a)}L{g.3t(a)}},8));f=g.6E(h);$.1M(f,B(){E a=$.3r($(8).2t(\'1Z\'))||\'\';a=a?"%45%"+a:\'\';b.3t($(8).2t(\'1x\')+a)});r(b.2c==1){b=b[0]}3s=k}$.2h.Y(b,3s,l,8)})};$(B(){r(4A($.4E.3y)>1.2){$.2h.2C()}L{6F"3k 2g 2v 6G 6H 3l 48 6I 6J. 6K 6L 6M 2g 1.3+";}})})(2g);',62,421,'||||||||this||||||||||||||||||esqueleto|if|||options||||||width|function|height|name|var|buttons|div|amp|proxy|css|com|else|true|split|return|move|false|lightbox|id|class|background|html|element|gallery|show|url||index|reg|left||resize|param|http|max|button|visible|image|window|top|iframe|bind|extend|zIndex|overlay|close|shim|span|autoplay|click|current|empty|www|position|hide|morph|maximized|display|style|href|value|browser|parseInt|opacity|transition|flash|mode|swf|google|border|none|callback|custom|match|each|complete|ajax|animations|prev|next|isFunction|preventDefault|src|stop|navigator|movebox|loading|title||indexOf|undefined|easeOutBack|shake|100|video||maps|append|right|unbind|length|removeClass|replace|error|jQuery|LightBoxObject|rel|embed|vimeo|new|hidden|absolute|margin|total|addClass|appendhtml|animate|attr|msie|version|fx|step|modal|showDuration|closeDuration|youtube|create|hideOnClick|target||document|bottom|triggerHandler|isArray|flashvars|changemode|the|queue|isEmptyObject|duration|metacafe|dailymotion|moogaloop|fullscreen|player|megavideo|gametrailers|collegehumor|ustream|twitvid||vzaar|bing|imgsreg|Date|getTime|body||block||trigger|keyCode|images|force|autoresize|urloptions|min|obj|inline|calculate|The|loaded|padding|typeof|autostart|null|overflow|trim|copy_options|push|apply|for|easing|defaults|jquery|400|1000|distance|loops|emergefrom|videoregs|watch|fs|clip_id|show_title|show_byline|show_portrait|color|tv|wordpress|mapsreg|output|inject|static|IF_|frameborder|fadeTo|middle|Previous|Next|999|addevents||maximinimize|create_gallery|custombuttons|open|LIGHTBOX|unserialize|substring|is|videoid|onload|requested|cannot|be|Please|try|again|later|outerWidth|outerHeight|You|need|to|specify|size|of|type|swf2html|object|allowscriptaccess|always|wmode|transparent|scrollLeft|scrollTop|self|parseFloat|90|slice|toLowerCase|fn|arguments|in|prototype|update|call|elem|now|prop|_default|70158|7000|470|280|FFFFFF|200|moveDuration|resizeDuration|showTransition|closeTransition|moveTransition|resizeTransition||640|360|fplayer|playerVars|autoPlay|yes|additionalInfos|autoStart|videoplay|googleplayer|hl|en|docId|server|remote_wrap|php|mid|loc|vid|disabledComment|beginPercent|5331|endPercent|6292|locale|en_US|s0|videopress|guid|01|videos|view|flashplayer|emid|3ede2bc8|227d|8fec|d84a|00b6ff19b1cb|streetview|layer|svembed|jpg|jpeg|gif|png|bmp|tiff|fixed|relative|scrolling|no|insertAfter|Close|init|Maximize|end|scroll|keydown|substr|Image|fadeIn|onerror|clone|abort|GET|cache|dataType|content|success|fullscreenbutton|classid|clsid|D27CDB6E|AE6D|11cf|96B8|444553540000|movie|allowFullScreen|application|shockwave|allowfullscreen|speed|Duration|Transition|curAnim|cur|px|mozilla|makeArray|get|removeAttribute|filter|alert|isFinite|live|blur|nofollow|area|unshift|concat|throw|that|was|too|old|Lightbox|Evolution|requires'.split('|'),0,{}))

var idream=window.idream||{};idream.namespace=function(D){if(!D||!D.length){return null}var C=D.split(".");var A=idream;for(var B=(C[0]=="idream")?1:0;B<C.length;++B){A[C[B]]=A[C[B]]||{};A=A[C[B]]}return A};
idream.namespace("Framework.JS");
idream.Framework.JS.AjaxManager = $.manageAjax({manageType: 'queue', maxReq: 3, blockSameRequest: true});
Initialization=function(){this.list=[];};Initialization.prototype={clear:function(){this.list=[];},add:function(f){if(!f||typeof(f)!='function'){alert('Initialization cannot add none function!!!');return null;}var fname=this.getFunctionName(f);var obj=this.get(fname);if(obj){alert('this function: \''+fname+'\' is existed.');return null;}this.list.push(f);return f;},call:function(f){if(!f||typeof(f)!='function'){alert('Initialization cannot add none function!!!');return;}f();},remove:function(f){if(typeof f=='string')f=this.get(f);var fname=this.getFunctionName(f);for(var i=0;i<this.list.length;i++){if(this.getFunctionName(this.list[i])===fname){this.list.splice(i,1);return;}}},get:function(n){for(var i=0;i<this.list.length;i++){if(this.getFunctionName(this.list[i])===n)return this.list[i];};return null;},getFunctionName:function(fn){var name=/\W*function\s+([\w\$]+)\(/.exec(fn);if(!name)return'';return name[1];}};idream.Framework.JS.Initialization=new Initialization();idream.Framework.JS.Initialization.run=function(){for(var i=0;i<idream.Framework.JS.Initialization.list.length;i++){idream.Framework.JS.Initialization.list[i]();}};$(function(){idream.Framework.JS.Initialization.run();});//window.onload=idream.Framework.JS.Initialization.run;
idream.Framework.JS.Template=Template=function(config){this.config={id:'id',template:''};$.extend(this.config,config||{});$.extend(this,this.config);};Template.prototype={append:function(c,o){if(typeof(c)=='string')c=$('#'+c);else c=$(c);var E=this.text(o);$(E).appendTo(c);},overwrite:function(c,o){if(typeof(c)=='string')c=$('#'+c);else c=$(c);c.html(this.text(o));},text:function(o){var t=this.template;for(var prop in o){var r=new RegExp("{"+prop+"}","g");t=t.replace(r,o[prop]);};return t;}};TemplateManager=function(config){this.config={id:'TemplateManager',items:[]};$.extend(this.config,config||{});$.extend(this,this.config);};TemplateManager.prototype={clear:function(){this.items.clear();},add:function(t){this.items.add(t);},remove:function(t){this.items.remove(t);},get:function(id){return this.items.get(id);},bind:function(c,o,t){if(o.length&&o.length>0){for(var i=0;i<o.length;i++){if(i==0){t.overwrite(c,o[i]);}else{t.append(c,o[i]);}}}else{t.overwrite(c,o);}}};
idream.Framework.JS.TemplateManager=new TemplateManager({});
idream.Framework.JS.JSON=JSON=function(){function f(n){return n<10?'0'+n:n}Date.prototype.toJSON=function(){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'Z'};var meta={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},escapeable=/["\\\x00-\x1f\x7f-\x9f]/g;function quote(string){return escapeable.test(string)?'"'+string.replace(escapeable,function(a){var c=meta[a];if(typeof c==='string'){return c}c=a.charCodeAt();return'\\u00'+Math.floor(c/16).toString(16)+(c%16).toString(16)})+'"':'"'+string+'"'}function encode(key,holder,replacer){var i,k,v,length,partial,value=holder[key];if(value&&typeof value==='object'&&typeof value.toJSON==='function'){value=value.toJSON(key)}if(typeof replacer==='function'){value=replacer.call(holder,key,value)}switch(typeof value){case'string':return quote(value);case'number':return isFinite(value)?String(value):'null';case'boolean':case'null':return String(value);case'object':if(!value){return'null'}partial=[];if(typeof value.length==='number'&&!(value.propertyIsEnumerable('length'))){length=value.length;for(i=0;i<length;i+=1){partial[i]=encode(i,value,replacer)||'null'}return'['+partial.join(',')+']'}if(typeof replacer==='object'){length=replacer.length;for(i=0;i<length;i+=1){k=replacer[i];if(typeof k==='string'){v=encode(k,value,replacer);if(v){partial.push(quote(k)+':'+v)}}}}else{for(k in value){v=encode(k,value,replacer);if(v){partial.push(quote(k)+':'+v)}}}return'{'+partial.join(',')+'}'}}return{encode:function(value,replacer){if(typeof replacer!=='function'){if(!replacer){replacer=function(key,value){if(!Object.hasOwnProperty.call(this,key)){return undefined}return value}}else if(typeof replacer!=='object'||typeof replacer.length!=='number'){throw new Error('JSON.encode');}}return encode('',{'':value},replacer)},decode:function(text,reviver){var j;try{j=eval('('+text+')');return j}catch(err){throw new SyntaxError('JSON.decode');return{}}},json2xml:function(o, tab){var toXml=function(v,name,ind){var xml="";if(v instanceof Array){for(var i=0,n=v.length;i<n;i++)xml+=ind+toXml(v[i],name,ind+"\t")+"\n"}else if(typeof(v)=="object"){var hasChild=false;xml+=ind+"<"+name;for(var m in v){if(m.charAt(0)=="@")xml+=" "+m.substr(1)+"=\""+v[m].toString()+"\"";else hasChild=true};xml+=hasChild?">":"/>";if(hasChild){for(var m in v){if(m=="#text")xml+=v[m];else if(m=="#cdata")xml+="<![CDATA["+v[m]+"]]>";else if(m.charAt(0)!="@")xml+=toXml(v[m],m,ind+"\t")}xml+=(xml.charAt(xml.length-1)=="\n"?ind:"")+"</"+name+">"}}else{xml+=ind+"<"+name+">"+v.toString()+"</"+name+">"};return xml},xml="";for(var m in o)xml+=toXml(o[m],m,"");return tab?xml.replace(/\t/g,tab):xml.replace(/\t|\n/g,"");},xml2json:function(xml){return $.xml2json(xml)},quote:quote}}();
idream.Framework.JS.PhotoSlide={Direction:{Vertical:0,Horizontal:1},init:function(cfg){var _A=$("#"+cfg.id);var A=$.extend({photoDeck:$(".photoDeck",_A),photoContainer:$(".photoDeck .photo-container",_A),currentIndex:0,prev:$("div.prev a",_A),next:$("div.next a",_A),autoHide:0,hideAction:null,animation:false,isAnimating:false,autoStart:false,isPaused:true,slidePause:6.5,titleTransition:1.0,direction:idream.Framework.JS.PhotoSlide.Direction.Vertical,action:null,step:1,slides:[]},cfg);A.isPaused=!A.autoStart;A.slidePause=A.slidePause*1000;A.titleTransition=A.titleTransition*1000;this.getMainContent(A);this.previousHandler(A);this.nextHandler(A);this.start(A);_A.onselectstart=function(){return false}},getMainContent:function(A){$("div.photoItem",A.photoContainer).each(function(D){var C=this;C={width:this.offsetWidth,height:this.offsetHeight,top:this.offsetTop,left:this.offsetLeft};A.slides.push(C);})},start:function(A){if(A.action){$(A.photoContainer).find("a").click(function(){A.action(this)})};this.goFirst(A);if(A.autoHide>0){this.hide(A);}},hide:function(A){window.setTimeout(function(){$("#"+A.id).hide(function(){if(A.hideAction)A.hideAction();});},A.autoHide*1000)},showSelected:function(A,B){this.goTo(A,B);},goTo:function(A,B){if(B<0||B>=A.slides.length){return};idream.Framework.JS.PhotoSlide.clearInterval(A);A.currentIndex=B;idream.Framework.JS.PhotoSlide.slideTransition(A);if(A.currentIndex==0){A.prev.css({opacity:0.3});}else{A.prev.css({opacity:1.0});}if(A.currentIndex==(A.slides.length-A.step)){A.next.css({opacity:0.3});}else{A.next.css({opacity:1.0});}},goFirst:function(A){this.goTo(A,0);},slideTransition:function(A){if(A.slides.length==0)return;A.isAnimating=true;var t=A.slides[A.currentIndex].top;var l=A.slides[A.currentIndex].left;var o=(A.direction==idream.Framework.JS.PhotoSlide.Direction.Vertical)?{left:-l}:{top:-t};if(A.animation){$(A.photoContainer).animate(o,A.titleTransition,'linear',function(){A.isAnimating=false;idream.Framework.JS.PhotoSlide.previousHandler(A);idream.Framework.JS.PhotoSlide.nextHandler(A)});}else{$(A.photoContainer).css(o);A.isAnimating=false;idream.Framework.JS.PhotoSlide.previousHandler(A);idream.Framework.JS.PhotoSlide.nextHandler(A)};idream.Framework.JS.PhotoSlide.setNextTransition(A);},setNextTransition:function(A){if(A.slides.length==1){return};if(!A.isPaused){A.transitionTimeoutId=window.setTimeout(function(){idream.Framework.JS.PhotoSlide.showNext(A);},A.slidePause)}},showPrevious:function(A){if(A.currentIndex>=A.step){this.goTo(A,A.currentIndex-A.step)}else if(A.currentIndex>0){this.goTo(A,0)}},showNext:function(A){if(A.currentIndex<(A.slides.length-A.step)){idream.Framework.JS.PhotoSlide.goTo(A,A.currentIndex+A.step)}else if(A.currentIndex==(A.slides.length-A.step)){if(A.autoStart)this.goFirst(A)}else if(A.currentIndex<(A.slides.length-1)){idream.Framework.JS.PhotoSlide.goTo(A,A.slides.length-A.step)}else{if(A.autoStart)this.goFirst(A);}},previousHandler:function(A){$(A.prev).click(function(){if(A.isAnimating){return};$(A.photoContainer).dequeue();idream.Framework.JS.PhotoSlide.showPrevious(A);return false})},nextHandler:function(A){$(A.next).click(function(){if(A.isAnimating){return};$(A.photoContainer).dequeue();idream.Framework.JS.PhotoSlide.showNext(A);return false})},clearInterval:function(A){window.clearTimeout(A.transitionTimeoutId);A.transitionTimeoutId=null}};
idream.Framework.JS.PopupLead={items:[],getItem:function(){if(idream.Framework.JS.PopupLead.items.length<=0){return'/images/popup_logo.gif';}else{var l=idream.Framework.JS.PopupLead.items.length;var p=Math.floor(Math.random()*l);return idream.Framework.JS.PopupLead.items[p];}},init:function(c){var ri=350;if(!c){c=$(document.body);}else{if(typeof(c)=='string'){c=$('#'+c)}};$('*[showLead="true"]',c).each(function(){var _itm=this;$('a[lead="true"]',this).mouseover(function(e){var L=e.pageX+5;var T=e.pageY+5;if(window.screen.width-ri<L){L=window.screen.width-ri;};var E='<div id="leadBox" class="box box1 popup" style="left:'+L+"px;top:"+T+'px;width:300px;z-index:10001;">'+'<div class="top"><div><div>&nbsp;</div></div></div>'+'<div class="content">'+'<p><b>'+$(this).text()+'</b></p>'+$("div.leadContent",_itm).html()+'<br/><p class="right"><img alt="" src="'+idream.Framework.JS.PopupLead.getItem()+'" /></p>'+'</div>'+'<div class="bottom"><div><div>&nbsp;</div></div></div>'+'</div>';$(E).appendTo("body");}).mouseout(function(){$('#leadBox').remove();}).mousemove(function(e){var L=e.pageX+5;var T=e.pageY+5;if(window.screen.width-ri<L){L=window.screen.width-ri;};$('#leadBox').css({top:T,left:L});});});}};
idream.Framework.JS.Popup={globalTransparent:0.7,globalZIndexTop:10001,globalZIndexCurrent:1001,items:[],init:function(id){var _A=$("#"+id);var A={id:id,main:_A,top:$("div.top",_A),close:$("div.close",_A),zIndex:idream.Framework.JS.Popup.globalZIndexCurrent};idream.Framework.JS.Popup.globalZIndexCurrent+=2;A.main.css({zIndex:A.zIndex});A.close.css({display:'none'});A.main.bind('mouseover',function(){A.close.css({display:''});}).bind('mouseout',function(){A.close.css({display:'none'});});A.close.bind('mouseover',function(){$(this).addClass('close_h');}).bind('mouseout',function(){$(this).removeClass('close_h');}).click(function(){A.main.css({display:'none'});A.shadow.css({display:'none'});});A.top.bind('dragstart',function(event){return $(this.parentNode);}).bind('drag',function(event){document.onselectstart=function(){return false;};$(event.dragProxy).css({top:event.offsetY,left:event.offsetX,opacity:idream.Framework.JS.Popup.globalTransparent,zIndex:idream.Framework.JS.Popup.globalZIndexTop});A.shadow.css({top:event.offsetY+5,left:event.offsetX+5,zIndex:idream.Framework.JS.Popup.globalZIndexTop-1});}).bind('dragend',function(event){document.onselectstart=null;$(event.dragProxy).css({opacity:'',zIndex:A.zIndex});A.shadow.css({opacity:'',zIndex:A.zIndex-1});});A.main.each(function(){var P=GetObjPos(this);var L=P[0]+5;var T=P[1]+5;var H=$(this).height()-20;var W=$(this).width();var I=$(this).css('zIndex')-1;var D=$(this).css('display');var E='<div class="popup-shadow" style="left:'+L+"px;top:"+T+'px;width:'+W+'px;display:;"><div class="top"><div><div>&nbsp;</div></div></div><div class="content"><div><div style="height:'+H+'px;">&nbsp;</div></div></div><div class="bottom"><div><div>&nbsp;</div></div></div></div>';$(window).ready(function(){A.shadow=$(E).css({zIndex:I,display:D}).appendTo("body");});});idream.Framework.JS.Popup.items.add(A);},show:function(e,id){if(e==null){e=window.event;};var c=getPageEventCoords(e);var A=idream.Framework.JS.Popup.items.get(id);if(A){A.main.css({top:c.top,left:c.left,display:''});A.shadow.css({top:c.top+5,left:c.left+5,display:''});}},hide:function(id){var A=idream.Framework.JS.Popup.items.get(id);if(A){A.main.css({display:'none'});A.shadow.css({display:'none'});}}};
idream.Framework.JS.Url=Url={encode:function(string){return escape(this._utf8_encode(string));},decode:function(string){return this._utf8_decode(unescape(string));},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}};return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}};return string;}};
idream.Framework.JS.Widget={};idream.Framework.JS.Widget.FontSizeSlider={init:function(D,B,A){var C={dragging:false,width:B,percent:0,origFontSize:1.2,lineHeightRate:0.416667,container:D,caret:$("div",D).slice(0,1),caretWidth:A};$(C.caret).mousedown(function(){if(C.dragging){return};C.dragging=true});$(document).mousemove(function(E){idream.Framework.JS.Widget.FontSizeSlider.onSliderMouseMove(E,C)});$(document).mouseup(function(E){idream.Framework.JS.Widget.FontSizeSlider.onSliderMouseUp(E,C)})},slideToStart:function(A){this.slideTo(0,A)},slideToEnd:function(A){var B=(A.width-A.caretWidth);this.slideTo(B,A)},slideTo:function(B,A){$(A.caret).css("left",B+"px");A.percent=(B/A.width)},onSliderMouseUp:function(B,A){if(A.dragging){A.dragging=false;this.onAfterResize(A)}},onSliderMouseMove:function(F,E){if(!E.dragging){return};var A=GetEventXY(F);var D=A[0];var B=A[1];var C=GetPos(E.container);SliderX=getRealLeft(E.container);if(D<(SliderX+(E.caretWidth/2))){this.slideToStart(E)}else{if(D>(SliderX+E.width-E.caretWidth)){this.slideToEnd(E)}else{var G=(D-SliderX-(E.caretWidth/2));this.slideTo(G,E)}}},onAfterResize:function(B){var A=B.origFontSize;if(B.percent>0){A=B.origFontSize+(B.origFontSize*B.percent)};$('#newsContent').css('font-size',A+'em');$('*', $('#newsContent')).css('font-size', '1em');B.dragging=false}};
idream.Framework.JS.Advertisement={layout:{},init:function(a){var b=this.layout=a;if(b.zones&&b.zones.length&&b.zones.length>0){for(var i=0;i<b.zones.length;i++){idream.Framework.JS.Advertisement.bindZone(b.zones[i])}}},bindZone:function(b){$('#'+b.holderId).each(function(){$(this).attr('zoneId',b.id).attr('zoneName',b.name);if(b.blocks&&b.blocks.length&&b.blocks.length>0){$(this).empty();var a=[];for(var i=0;i<b.blocks.length;i++)a[i]=i;if(!b.mode){a=randomOrder(a)}for(var i=0;i<b.blocks.length;i++){idream.Framework.JS.Advertisement.bindBlock(this,b.blocks[a[i]],b.direction,(i==b.blocks.length-1))}}if(b.direction){var c='<br class="clear" />';$(c).appendTo($(this))}})},bindBlock:function(a,c,d,e){var b='<div></div>';c.holder=$(b).css({width:c.width,height:c.height,float:(d?'left':''),paddingRight:(d&&!e?2:0),paddingBottom:(!d&&!e?10:0)}).attr('blockId',c.id).attr('blockName',c.name).appendTo($(a));if(c.items&&c.items.length&&c.items.length>0){if(c.items.length==1){idream.Framework.JS.Advertisement.bindItem(c,c.items[0])}else{var f=[];for(var i=0;i<c.items.length;i++)f[i]=i;if(!c.mode){f=randomOrder(f)}idream.Framework.JS.Advertisement.bindItem(c,c.items[f[0]]);var g=1;window.setInterval(function(){idream.Framework.JS.Advertisement.bindItem(c,c.items[f[g]]);g++;if(g>=f.length)g=0},c.timeDelay)}}else{$(c.holder).hide()}},bindItem:function(b,c){$(b.holder).empty();switch(c.typeAlias){case'flash':var d='<div> \r\n'+'<embed width="'+b.width+'" height="'+b.height+'" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"  \r\n'+'    type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="player"  \r\n'+'    wmode="transparent" quality="high" src="'+c.fileLink1+'" />  \r\n'+' </div>';$(b.holder).append($(d).attr('itemId',c.id).attr('itemName',c.name));break;case'image':var e='<div> \r\n'+' <a href="'+c.link+'" onclick="javascript: idream.Framework.JS.Advertisement.tracking(\''+c.link+'\');" target="_blank"> '+'<img width="'+b.width+'" height="'+b.height+'" alt="Qu&#7843;ng c&#225;o" title="Qu&#7843;ng c&#225;o" src="'+c.fileLink1+'" />'+' </a> \r\n'+' </div>';$(b.holder).append($(e).attr('itemId',c.id).attr('itemName',c.name));break;case'add-code':if(!c.exMode){if(c.fileJS){var f=c.fileJS.split(';');if(f&&f.length&&f.length>0){var g=function(a){vnnLoadFile(f[a],'js',$(b.holder).get(0),function(){if(a+1>=f.length){eval(c.codeJS)}else{g(a+1)}})};g(0)}}else{eval(c.codeJS)}}else{eval(c.codeJS);if(c.fileJS){var f=c.fileJS.split(';');if(f&&f.length&&f.length>0){for(var i=0;i<f.length;i++){vnnLoadFile(f[i],'js',$(b.holder).get(0))}}}}$(b.holder).hide();break;case'expanding':var h='<div> \r\n'+'<embed width="'+b.width+'" height="'+b.height+'" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer"  \r\n'+'    type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="player"  \r\n'+'    wmode="transparent" quality="high" src="'+c.fileLink1+'" />  \r\n'+' </div>';$(b.holder).append($(h).attr('itemId',c.id).attr('itemName',c.name));break;case'iframe':if(c.fileJS){var j='<iframe name="iframe_name" width="'+b.width+'" height="'+b.height+'" frameborder="0" scrolling="no" src="'+c.fileJS+'">'+'Your browser does not support inline frames or is currently configured not to display '+'inline frames. </iframe>';$(b.holder).append($(j).attr('itemId',c.id).attr('itemName',c.name))}else{$(b.holder).hide()}break;default:break}},tracking:function(a){try{if(pageTracker&&pageTracker._trackPageview){pageTracker._trackPageview('/adv/'+item.link.replace('http://',''))}}catch(ex){}}};
idream.Framework.JS.DynamicLead={showLightBox:true,showPreview:true,showCaption:true,globalSlidePause:8500,globalTitleTransition:400,onClick:null,isAnimating:false,transitionTimeoutId:null,init:function(){var _A=$("#dynamicLead");var A={imageDeck:$(".imageDeck",_A),mainArtLink:$(".imageDeck a.mainArt",_A),mainArtImg:$(".imageDeck a.mainArt img",_A),overlay:$(".imageDeck #dlOverlay",_A),overlayXOffset:$(".imageDeck").width(),caption:$(".imageDeck #dlOverlay .caption",_A),comment:$(".footer div.comments",_A),rubric:null,title:null,deck:null,source:null,titlePause:250,currentIndex:0,lightBox:$("div.bot div.lightBox a",_A),mainNav:$("div.bot ol.mainNav",_A),subNav:$("div.bot ol.subNav",_A),back:$("div.bot ol.mainNav li a.back",_A),pausePlay:$("div.bot ol.mainNav li a.pausePlay",_A),next:$("div.bot ol.mainNav li a.next",_A),isPaused:false,slides:[]};this.globalSlidePause=this.globalSlidePause*1000;this.globalTitleTransition=this.globalTitleTransition*1000;this.getSlidePreviews(A);this.getMainContent(A);this.getLightBox(A);this.playPauseHandler(A);this.previousHandler(A);this.nextHandler(A);this.start(A);_A.onselectstart=function(){return false}},getSlidePreviews:function(A){$("li",A.subNav).each(function(B){if(idream.Framework.JS.DynamicLead.showCaption){$("a",this).mouseover(function(H){if(document.getElementById("dlLightBox")){return};var I=GetObjPos(this);var E=GetObjPos(A.dl);var G=(I[0]-E[0])+E[0]-50;var F=I[1]-145;if(B!==A.currentIndex){var D=$(this).siblings(".slideContent").html();var C='<div class="dlPreview transp" style="left:'+G+"px;top:"+F+'px;"><div class="slideContent">'+D+"</div></div>";$(C).appendTo("body")};$(this).mouseout(function(J){$("div.dlPreview").remove();return false});return false})};$("a",this).click(function(C){if(B==A.currentIndex){return};idream.Framework.JS.DynamicLead.showSelected(B,A);return false})})},getMainContent:function(A){$("li",A.subNav).each(function(D){var C=this;C={url:$("div.slideContent a.mainArtLink",this).attr("href"),rubric:$("div.slideContent h6.rubric",this).text(),title:$("div.slideContent h1.title a",this).text(),deck:$("div.slideContent p.deck",this).text(),deckShort:$("div.slideContent p.deckShort",this).text(),source:$("div.slideContent p.source",this).text(),imageSrc:$("div.slideContent a.mainArtLink img",this).attr("src"),date:$("div.slideContent p.date",this).text(),comment:$("div.slideContent p.comment",this).text()};if(idream.Framework.JS.DynamicLead.GB){var E=/[-]{1}thumb8+/i;var B=C.imageSrc.replace(E,"-dynamiclead");C.imageSrc=B};var F=new Image();F.src=C.imageSrc;A.slides.push(C)})},getLightBox:function(A){if(this.showLightBox){$(A.lightBox).click(function(G){if(document.getElementById("dlLightBox")){return};$(this).addClass("selected");var C="<ul>";for(var D=0;D<=5;D++){if(D%3==2){var F='<li class="last">'}else{var F="<li>"};if(A.slides[D]!=null){F+='<div class="imageDeck"><img id="'+D+'" class="dlLbItem" width="100" src="'+A.slides[D].imageSrc+'" /></div><h6 id="'+D+'" class="title dlLbItem">'+A.slides[D].title+'</h6><p id="'+D+'" class="dlLbItem">'+A.slides[D].deckShort+'</p><p class="date">'+A.slides[D].date+"</p>"}else{F+="&nbsp;"};F+="</li>";C+=F};C+="</ul>";var H=GetObjPos(this);var J=GetObjPos(A.dl);var B=H[0]-62;var I=H[1]-296;var E='<div id="dlLightBox" class="dlLightBox transp" style="left:'+B+"px;top:"+I+'px"><span class="close">&#xA0;</span>'+C+"</div>";$(E).appendTo("body");$(document).one("click",function(K){$(A.lightBox).removeClass("selected");$("#dlLightBox").remove();return false});$(".dlLbItem").click(function(){if(parseInt(this.id)==A.currentIndex){return};A.animating=false;idream.Framework.JS.DynamicLead.showSelected(parseInt(this.id),A);$(A.lightBox).removeClass("selected");$("#dlLightBox").remove()});return false})}else{$(A.lightBox).parent("div.lightBox").css({visibility:"hidden"})}},setMainArtContent:function(A){$(A.mainArtLink).attr("href",A.slides[A.currentIndex].url);$(A.mainArtImg).attr({src:A.slides[A.currentIndex].imageSrc,alt:A.slides[A.currentIndex].title});$(A.comment).html(A.slides[A.currentIndex].comment);},setOverlayContent:function(B){var A='<h6 class="rubric"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].rubric+" </a></h6>";A+='<h1 class="title"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].title+'</a></h1>';A+='<p class="deck"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].deck+"</a></p>";A+='<p class="source"><a href="'+B.slides[B.currentIndex].url+'">'+B.slides[B.currentIndex].source+"</a></p>";return A},playPauseHandler:function(A){$(A.pausePlay).click(function(){if($(this).hasClass("pause")){idream.Framework.JS.DynamicLead.pause(A)}else{idream.Framework.JS.DynamicLead.play(A)};return false})},previousHandler:function(A){$(A.back).one("click",function(){if(idream.Framework.JS.DynamicLead.isAnimating){return};idream.Framework.JS.DynamicLead.isAnimating=true;$(A.overlay).dequeue();idream.Framework.JS.DynamicLead.showPrevious(A);return false})},nextHandler:function(A){$(A.next).one("click",function(){if(idream.Framework.JS.DynamicLead.isAnimating){return};idream.Framework.JS.DynamicLead.isAnimating=true;idream.Framework.JS.DynamicLead.showNext(A);return false})},start:function(A){$("li",A.subNav).slice(A.currentIndex,A.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-90-(A.currentIndex*15))+"px"});this.setMainArtContent(A);var B=this.setOverlayContent(A);$(A.caption).html(B);if(this.onClick!=null){$(A.imageDeck).find("a").click(function(){idream.Framework.JS.DynamicLead.onClick()})};$(A.overlay).hide();this.resetOverlayPos(A);$(A.mainArtLink).fadeIn(500,function(){idream.Framework.JS.DynamicLead.slideTransition(A)})},showSelected:function(A,B){this.goTo(A,B)},showPrevious:function(A){if(A.currentIndex==0){this.goTo(A.slides.length-1,A)}else{this.goTo(A.currentIndex-1,A)}},showNext:function(A){if(A.currentIndex==(A.slides.length-1)){this.goTo(0,A)}else{this.goTo(A.currentIndex+1,A)}},play:function(A){A.isPaused=false;$(A.pausePlay).addClass("pause").removeClass("play");this.goNext(A)},pause:function(A){A.isPaused=true;$(A.pausePlay).addClass("play").removeClass("pause");this.clearInterval(A)},slideTransition:function(A){if(A.currentIndex%3==0){this.slideOverlayRightLeft(A)}else{if(A.currentIndex%3==1){this.slideOverlayBottomTop(A)}else{this.slideOverlayLeftRight(A)}};idream.Framework.JS.DynamicLead.setNextTransition(A)},slideOverlayRightLeft:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition,function(){A.animating=false;idream.Framework.JS.DynamicLead.hideOverlayLeftRight(A)})},A.titlePause)},slideOverlayBottomTop:function(A){window.setTimeout(function(){$(A.overlay).animate({top:-110+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition,function(){A.animating=false;idream.Framework.JS.DynamicLead.hideOverlayTopBottom(A)})},A.titlePause)},slideOverlayLeftRight:function(A){window.setTimeout(function(){$(A.overlay).animate({left:0+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition,function(){A.animating=false;idream.Framework.JS.DynamicLead.hideOverlayRightLeft(A)})},A.titlePause)},setNextTransition:function(A){if(A.slides.length==1){return};if(!A.isPaused){this.transitionTimeoutId=window.setTimeout(function(){idream.Framework.JS.DynamicLead.goNext(A)},idream.Framework.JS.DynamicLead.globalSlidePause)}},goNext:function(A){if(A.currentIndex==(A.slides.length-1)){idream.Framework.JS.DynamicLead.goTo(0,A)}else{idream.Framework.JS.DynamicLead.goTo(null,A)}},goTo:function(A,B){idream.Framework.JS.DynamicLead.clearInterval(B);if(A!=null){$("li",B.subNav).slice(B.currentIndex,B.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-(B.currentIndex*15))+"px"});if(A!==0){$("li",B.subNav).slice(A,A+1).children("a").addClass("selected").css({"background-position":"center "+(-90-(A*15))+"px"})}else{$("li a",B.subNav).slice(B.slides.length-1,B.slides.length).removeClass("selected").css({"background-position":"center "+(-(B.slides.length*15))+"px"});$("li",B.subNav).slice(A,A+1).children("a").addClass("selected").css({"background-position":"center "+(-90-(A*15))+"px"})};B.currentIndex=A}else{$("li",B.subNav).slice(B.currentIndex,B.currentIndex+1).children("a").removeClass("selected").css({"background-position":"center "+(-(B.currentIndex*15))+"px"});$("li",B.subNav).slice(B.currentIndex+1,B.currentIndex+2).children("a").addClass("selected").css({"background-position":"center "+(-90-((B.currentIndex+1)*15))+"px"});B.currentIndex++;};this.fadeOutSlide(B)},hideOverlayRightLeft:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({left:-(B.overlayXOffset)+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition);return false})},hideOverlayTopBottom:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({top:0+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition);return false})},hideOverlayLeftRight:function(B,A){$("span.close",B.overlay).one("click",function(){$(B.overlay).animate({left:B.overlayXOffset+"px"},idream.Framework.JS.DynamicLead.globalTitleTransition);return false})},clearInterval:function(A){window.clearTimeout(this.transitionTimeoutId);this.transitionTimeoutId=null},fadeOutSlide:function(A){$(A.overlay).fadeOut(function(){var B=idream.Framework.JS.DynamicLead.setOverlayContent(A);$(A.caption).html(B);idream.Framework.JS.DynamicLead.resetOverlayPos(A)}).siblings(A.mainArtLink).fadeOut(350,function(){idream.Framework.JS.DynamicLead.setMainArtContent(A);idream.Framework.JS.DynamicLead.fadeOutComplete(A)})},fadeOutComplete:function(A){$(A.mainArtLink).fadeIn(300,function(){idream.Framework.JS.DynamicLead.slideTransition(A);idream.Framework.JS.DynamicLead.isAnimating=false;idream.Framework.JS.DynamicLead.previousHandler(A);idream.Framework.JS.DynamicLead.nextHandler(A)})},resetOverlayPos:function(A){if(A.currentIndex%3==0){$(A.overlay).css({left:A.overlayXOffset+"px",top:-110+"px",display:"block"})}else{if(A.currentIndex%3==1){$(A.overlay).css({left:0+"px",top:0+"px",display:"block"})}else{$(A.overlay).css({left:(-(A.overlayXOffset))+"px",top:-110+"px",display:"block"})}}}};
idream.Framework.JS.PhotoAlbumSlide={Direction:{Vertical:0,Horizontal:1},init:function(cfg){var _A=$("#"+cfg.id);var A=$.extend({photoDeck:$(".photoDeck",_A),photoContainer:$(".photoDeck .photo-container",_A),photoContent:$(".photoContent",_A),imageDeck:$(".imageDeck img",_A),imageContent:$(".imageContent",_A),currentIndex:0,prev:$("div.prev",_A),next:$("div.next",_A),pausePlay:$("div.pausePlay",_A),page:$("div.page",_A),animation:true,isAnimating:false,autoStart:true,isPaused:true,slidePause:6.5,titleTransition:1.0,direction:idream.Framework.JS.PhotoAlbumSlide.Direction.Vertical,action:null,step:1,slides:[],displayItem:6},cfg);A.isPaused=!A.autoStart;A.slidePause=A.slidePause*1000;A.titleTransition=A.titleTransition*1000;this.getMainContent(A);this.previousHandler(A);this.nextHandler(A);this.playPauseHandler(A);this.start(A);_A.onselectstart=function(){return false}},getMainContent:function(A){$("div.photoItem",A.photoContainer).each(function(D){var C=this;C={width:this.offsetWidth,height:this.offsetHeight,top:this.offsetTop,left:this.offsetLeft,image:$("div.image img",this).attr("src"),thumb:$("div.thumb img",this).attr("src"),title:$("div.title",this).text(),content:$("div.content",this).text()};A.slides.push(C);$(this).click(function(){if(D==A.currentIndex){return;};idream.Framework.JS.PhotoAlbumSlide.showSelected(A,D);return false;});})},start:function(A){if(A.action){$(A.photoContainer).find("a").click(function(){A.action(this)})};A.isPaused=false;$(A.pausePlay).addClass("pause").removeClass("play");this.goFirst(A);},showSelected:function(A,B){this.goTo(A,B);},goTo:function(A,B){if(B<0||B>=A.slides.length){return};idream.Framework.JS.PhotoAlbumSlide.clearInterval(A);A.currentIndex=B;idream.Framework.JS.PhotoAlbumSlide.slideTransition(A);},goFirst:function(A){this.goTo(A,0);},showSelected:function(A,B){this.goTo(A,B)},focusItem:function(A){$("div.photoItem",A.photoContainer).each(function(D){if(D==A.currentIndex)$(this).css('opacity',1);else $(this).css('opacity',0.5);});},slideTransition:function(A){if(A.slides.length==0)return;A.isAnimating=true;var p=(A.currentIndex<=A.slides.length-A.displayItem)?A.currentIndex:A.slides.length-A.displayItem;if(p<0)p=0;var t=A.slides[p].top;var l=A.slides[p].left;A.position=(A.direction==idream.Framework.JS.PhotoAlbumSlide.Direction.Vertical)?{left:-l}:{top:-t};if(A.animation){$(A.photoContainer).animate(A.position,A.titleTransition,'linear',function(){A.isAnimating=false;idream.Framework.JS.PhotoAlbumSlide.previousHandler(A);idream.Framework.JS.PhotoAlbumSlide.nextHandler(A)});}else{$(A.photoContainer).css(A.position);A.isAnimating=false;idream.Framework.JS.PhotoAlbumSlide.previousHandler(A);idream.Framework.JS.PhotoAlbumSlide.nextHandler(A)};idream.Framework.JS.PhotoAlbumSlide.focusItem(A);idream.Framework.JS.PhotoAlbumSlide.setMainContent(A);idream.Framework.JS.PhotoAlbumSlide.setNextTransition(A);},setMainContent:function(A){$(A.imageDeck).attr({src:A.slides[A.currentIndex].image,alt:A.slides[A.currentIndex].title});$(A.imageContent).html(A.slides[A.currentIndex].content);$(A.page).html((A.currentIndex+1)+'/'+A.slides.length);},setNextTransition:function(A){if(A.slides.length==1){return};if(!A.isPaused){A.transitionTimeoutId=window.setTimeout(function(){idream.Framework.JS.PhotoAlbumSlide.showNext(A);},A.slidePause)}},showPrevious:function(A){if(A.currentIndex>=A.step){this.goTo(A,A.currentIndex-A.step)}else if(A.currentIndex>0){this.goTo(A,0)}},showNext:function(A){if(A.currentIndex<(A.slides.length-A.step)){idream.Framework.JS.PhotoAlbumSlide.goTo(A,A.currentIndex+A.step)}else if(A.currentIndex<(A.slides.length-1)){idream.Framework.JS.PhotoAlbumSlide.goTo(A,A.slides.length-1)}else{this.goFirst(A);}},play:function(A){A.isPaused=false;$(A.pausePlay).addClass("pause").removeClass("play");this.setNextTransition(A)},pause:function(A){A.isPaused=true;$(A.pausePlay).addClass("play").removeClass("pause");this.clearInterval(A)},previousHandler:function(A){$(A.prev).click(function(){if(A.isAnimating){return};$(A.photoContainer).dequeue();idream.Framework.JS.PhotoAlbumSlide.showPrevious(A);return false})},nextHandler:function(A){$(A.next).click(function(){if(A.isAnimating){return};$(A.photoContainer).dequeue();idream.Framework.JS.PhotoAlbumSlide.showNext(A);return false})},playPauseHandler:function(A){$(A.pausePlay).click(function(){if($(this).hasClass("pause")){idream.Framework.JS.PhotoAlbumSlide.pause(A)}else{idream.Framework.JS.PhotoAlbumSlide.play(A)};return false})},clearInterval:function(A){window.clearTimeout(A.transitionTimeoutId);A.transitionTimeoutId=null}};


