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

/* jquery.cycle.lite.1.0.min.js						*/

(function(D){var A="Lite-1.0";D.fn.cycle=function(E){return this.each(function(){E=E||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var I=D(this);var J=E.slideExpr?D(E.slideExpr,this):I.children();var G=J.get();if(G.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+G.length)}return }var H=D.extend({},D.fn.cycle.defaults,E||{},D.metadata?I.metadata():D.meta?I.data():{});H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});var F=this.className;H.width=parseInt((F.match(/w:(\d+)/)||[])[1])||H.width;H.height=parseInt((F.match(/h:(\d+)/)||[])[1])||H.height;H.timeout=parseInt((F.match(/t:(\d+)/)||[])[1])||H.timeout;if(I.css("position")=="static"){I.css("position","relative")}if(H.width){I.width(H.width)}if(H.height&&H.height!="auto"){I.height(H.height)}var K=0;J.css({position:"absolute",top:0,left:0}).hide().each(function(M){D(this).css("z-index",G.length-M)});D(G[K]).css("opacity",1).show();if(D.browser.msie){G[K].style.removeAttribute("filter")}if(H.fit&&H.width){J.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){J.height(H.height)}if(H.pause){I.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}D.fn.cycle.transitions.fade(I,J,H);J.each(function(){var M=D(this);this.cycleH=(H.fit&&H.height)?H.height:M.height();this.cycleW=(H.fit&&H.width)?H.width:M.width()});J.not(":eq("+K+")").css({opacity:0});if(H.cssFirst){D(J[K]).css(H.cssFirst)}if(H.timeout){if(H.speed.constructor==String){H.speed={slow:600,fast:200}[H.speed]||400}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}H.speedIn=H.speed;H.speedOut=H.speed;H.slideCount=G.length;H.currSlide=K;H.nextSlide=1;var L=J[K];if(H.before.length){H.before[0].apply(L,[L,L,H,true])}if(H.after.length>1){H.after[1].apply(L,[L,L,H,true])}if(H.click&&!H.next){H.next=H.click}if(H.next){D(H.next).bind("click",function(){return C(G,H,H.rev?-1:1)})}if(H.prev){D(H.prev).bind("click",function(){return C(G,H,H.rev?1:-1)})}if(H.timeout){this.cycleTimeout=setTimeout(function(){B(G,H,0,!H.rev)},H.timeout+(H.delay||0))}})};function B(J,E,I,K){if(E.busy){return }var H=J[0].parentNode,M=J[E.currSlide],L=J[E.nextSlide];if(H.cycleTimeout===0&&!I){return }if(I||!H.cyclePause){if(E.before.length){D.each(E.before,function(N,O){O.apply(L,[M,L,E,K])})}var F=function(){if(D.browser.msie){this.style.removeAttribute("filter")}D.each(E.after,function(N,O){O.apply(L,[M,L,E,K])})};if(E.nextSlide!=E.currSlide){E.busy=1;D.fn.cycle.custom(M,L,E,F)}var G=(E.nextSlide+1)==J.length;E.nextSlide=G?0:E.nextSlide+1;E.currSlide=G?J.length-1:E.nextSlide-1}if(E.timeout){H.cycleTimeout=setTimeout(function(){B(J,E,0,!E.rev)},E.timeout)}}function C(E,F,I){var H=E[0].parentNode,G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}F.nextSlide=F.currSlide+I;if(F.nextSlide<0){F.nextSlide=E.length-1}else{if(F.nextSlide>=E.length){F.nextSlide=0}}B(E,F,1,I>=0);return false}D.fn.cycle.custom=function(K,H,I,E){var J=D(K),G=D(H);G.css({opacity:0});var F=function(){G.animate({opacity:1},I.speedIn,I.easeIn,E)};J.animate({opacity:0},I.speedOut,I.easeOut,function(){J.css({display:"none"});if(!I.sync){F()}});if(I.sync){F()}};D.fn.cycle.transitions={fade:function(F,G,E){G.not(":eq(0)").css("opacity",0);E.before.push(function(){D(this).show()})}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery)

$(document).ready(function() {
						   
// ------------------------------------------ cycle - slides teasers with a fade transition ------------------------------------------------------------
	
	$('.slideshow').cycle({ timeout: 5000, speed: 1000, pause: 1 });
	$('.transition').cycle({ timeout: 10000, speed: 1000, pause: true, prev: '.prev', next: '.next'});
	$('.widget.viewer .slides').cycle({ timeout: 10000, speed: 1000, pause: true, prev: '.prev', next: '.next'});
	$('.widget.ecard .slides').cycle({ timeout: 10000, speed: 1000, pause: true, prev: '.prev', next: '.next'});
	
// -----------------------------------------------------------------------------------------------------------------------------------------------------

});
/* jQuery Tools 1.2.5 Tabs		 											*/

(function(c){function p(d,b,a){var e=this,l=d.add(this),h=d.find(a.tabs),i=b.jquery?b:d.children(b),j;h.length||(h=d.children());i.length||(i=d.parent().find(b));i.length||(i=c(b));c.extend(this,{click:function(f,g){var k=h.eq(f);if(typeof f=="string"&&f.replace("#","")){k=h.filter("[href*="+f.replace("#","")+"]");f=Math.max(h.index(k),0)}if(a.rotate){var n=h.length-1;if(f<0)return e.click(n,g);if(f>n)return e.click(0,g)}if(!k.length){if(j>=0)return e;f=a.initialIndex;k=h.eq(f)}if(f===j)return e;
g=g||c.Event();g.type="onBeforeClick";l.trigger(g,[f]);if(!g.isDefaultPrevented()){o[a.effect].call(e,f,function(){g.type="onClick";l.trigger(g,[f])});j=f;h.removeClass(a.current);k.addClass(a.current);return e}},getConf:function(){return a},getTabs:function(){return h},getPanes:function(){return i},getCurrentPane:function(){return i.eq(j)},getCurrentTab:function(){return h.eq(j)},getIndex:function(){return j},next:function(){return e.click(j+1)},prev:function(){return e.click(j-1)},destroy:function(){h.unbind(a.event).removeClass(a.current);
i.find("a[href^=#]").unbind("click.T");return e}});c.each("onBeforeClick,onClick".split(","),function(f,g){c.isFunction(a[g])&&c(e).bind(g,a[g]);e[g]=function(k){k&&c(e).bind(g,k);return e}});if(a.history&&c.fn.history){c.tools.history.init(h);a.event="history"}h.each(function(f){c(this).bind(a.event,function(g){e.click(f,g);return g.preventDefault()})});i.find("a[href^=#]").bind("click.T",function(f){e.click(c(this).attr("href"),f)});if(location.hash&&a.tabs=="a"&&d.find("[href="+location.hash+"]").length)e.click(location.hash);
else if(a.initialIndex===0||a.initialIndex>0)e.click(a.initialIndex)}c.tools=c.tools||{version:"1.2.5"};c.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:false,history:false},addEffect:function(d,b){o[d]=b}};var o={"default":function(d,b){this.getPanes().hide().eq(d).show();b.call()},fade:function(d,b){var a=this.getConf(),e=a.fadeOutSpeed,l=this.getPanes();e?l.fadeOut(e):l.hide();l.eq(d).fadeIn(a.fadeInSpeed,b)},slide:function(d,
b){this.getPanes().slideUp(200);this.getPanes().eq(d).slideDown(400,b)},ajax:function(d,b){this.getPanes().eq(0).load(this.getTabs().eq(d).attr("href"),b)}},m;c.tools.tabs.addEffect("horizontal",function(d,b){m||(m=this.getPanes().eq(0).width());this.getCurrentPane().animate({width:0},function(){c(this).hide()});this.getPanes().eq(d).animate({width:m},function(){c(this).show();b.call()})});c.fn.tabs=function(d,b){var a=this.data("tabs");if(a){a.destroy();this.removeData("tabs")}if(c.isFunction(b))b=
{onBeforeClick:b};b=c.extend({},c.tools.tabs.conf,b);this.each(function(){a=new p(c(this),d,b);c(this).data("tabs",a)});return b.api?a:this}})(jQuery);

$(document).ready(function() {
						   
// ---------------------------------------------- tabs - handles a tab menu functionality ------------------------------------------------------------
	
	$('.tabmenu').tabs('.tabs .data > div', { current: 'active', tabs: 'li' });
	
	var havebook = $("div.tripinfo").find("div.booking");
	var gallerySelect = $("div.gallery").find("#gallerySelect");

	if(havebook.length > 0)
	{
		var tabtrip = $(".tabbing ul").find("li");
		$('.tabbing ul').tabs('.tripinfo > div', {current: 'active', tabs: 'li' ,initialIndex:(tabtrip.length-1)});
	}
	else if(gallerySelect.length > 0)
		$('.tabbing ul').tabs('.tripinfo > div', {current: 'active', tabs: 'li' ,initialIndex:(4)});
	else
		$('.tabbing ul').tabs('.tripinfo > div', {current: 'active', tabs: 'li'});
	$('.tab-menu').tabs('.tab-box > div', { current: 'active', tabs: 'li' });

// ---------------------------------------------------------------------------------------------------------------------------------------------------

});

/* jquery.metadata.js 4187 2007-12-16 17:15:27						*/
/* jQuery plugin for parsing metadata from elements					*/

(function($){$.extend({metadata:{defaults:{type:'class',name:'metadata',cre:/({.*})/,single:'metadata'},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length)settings.single='metadata';var data=$.data(elem,settings.single);if(data)return data;data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m)data=m[1]}else if(settings.type=="elem"){if(!elem.getElementsByTagName)return undefined;var e=elem.getElementsByTagName(settings.name);if(e.length)data=$.trim(e[0].innerHTML)}else if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr)data=attr}if(data.indexOf('{')<0)data="{"+data+"}";data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);

/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());

$(document).ready(function() {
	
// ---------------------------------------------- Cufon - handles the font replacement functionality ------------------------------------------------------------
		
		Cufon.replace('.content .box.double h1', {hover: true, fontFamily: 'BerlinSansFB'});
		Cufon.replace('.teaser .data h4', {hover: true, fontFamily: 'BerlinSansFB'});
		//Cufon.replace('.slideshow .slider div a', {hover: true, fontFamily: 'MaxLFSpecial'});
		
// -----------------------------------------------------------------------------------------------------------------------------------------------------------

});/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * Copyright (c) 1997 The Font Bureau, Inc. All rights reserved. Designed by David
 * Berlow.
 * 
 * Trademark:
 * Copyright (c) 1985, 1987, 1988, 1989 The Font Bureau, Inc. All rights reserved.
 * Berlin Sans is a trademark of The Font Bureau, Inc.
 * 
 * Description:
 * Berlin Sans is based on a brilliant alphabet from the late twenties, the first
 * sans that Lucian Bernhard ever designed, imaginative and little-known. Assisted
 * by Matthew Butterick, David Berlow expanded the single font into a series of
 * four weights, all four complete with Expert character sets, plus one dingbat
 * font.
 * 
 * Manufacturer:
 * The Font Bureau, Inc.
 */
Cufon.registerFont({"w":237,"face":{"font-family":"BerlinSansFB","font-weight":400,"font-stretch":"normal","units-per-em":"360","panose-1":"2 14 6 2 2 5 2 2 3 6","ascent":"288","descent":"-72","x-height":"4","bbox":"-18 -321.392 311 73","underline-thickness":"17.9297","underline-position":"-36.7383","unicode-range":"U+0020-U+00FF"},"glyphs":{" ":{"w":90},"!":{"d":"24,-247v13,2,26,2,39,0v8,53,-1,114,-11,168v1,8,-11,8,-16,6v-22,-62,-14,-108,-12,-174xm43,-45v14,0,23,11,23,24v0,14,-9,26,-23,26v-13,0,-22,-13,-22,-26v0,-13,9,-24,22,-24","w":83},"\"":{"d":"64,-243v2,-7,27,-6,33,0v0,27,0,52,-8,71v0,5,-18,5,-19,1v-6,-20,-7,-45,-6,-72xm12,-244v6,-3,46,-10,33,12v1,23,-2,43,-6,61v-31,10,-26,-42,-27,-73","w":109},"#":{"d":"105,-248v6,-9,22,3,27,8v0,4,-8,29,-22,76r44,0r21,-83v7,-9,19,4,27,8v0,1,-8,26,-22,75v26,4,57,-14,48,15v-2,8,-1,12,-6,9v-5,-1,-21,-1,-48,-2r-13,50v27,2,48,-5,58,2v-1,8,1,23,-8,24v-5,-1,-24,-1,-57,-2v-9,28,-11,63,-24,86v-38,-13,-17,-18,-2,-87r-44,1v-4,18,-11,44,-20,80v-1,3,-2,4,-4,4v-40,-12,-18,-18,-3,-84r-44,2v-10,-3,2,-15,-1,-25v6,-8,41,1,54,-1r12,-50v-18,-1,-44,6,-57,-1v0,-9,-1,-21,7,-23r55,2xm148,-142r-44,-1v-2,8,-6,25,-13,51r45,0v3,-11,7,-28,12,-50","w":239},"$":{"d":"92,-215v9,1,60,10,55,24v-4,4,-4,20,-11,25v-12,-7,-32,-19,-45,-18r-1,61v32,20,47,28,51,61v4,30,-28,53,-54,57v-1,10,1,25,-1,33v-8,-3,-21,6,-21,-4v0,-8,1,-16,1,-25v-26,-3,-52,5,-50,-24v0,-6,-7,-19,1,-19v12,6,33,12,49,9v0,-13,0,-33,1,-60v-31,-20,-50,-29,-52,-62v-2,-32,25,-51,54,-57v1,-8,-3,-21,2,-26v20,0,23,-6,21,25xm69,-182v-24,6,-28,36,0,48r0,-48xm88,-38v28,-8,22,-32,1,-44","w":154},"%":{"d":"201,-134v32,0,56,35,56,68v0,33,-24,68,-56,68v-33,0,-57,-34,-57,-68v0,-34,24,-68,57,-68xm168,-216v4,-11,17,3,18,5v-34,81,-55,111,-90,211v-1,3,-3,5,-4,5v-4,-1,-20,-7,-14,-15v10,-16,46,-95,49,-101v13,-26,30,-74,41,-105xm65,-219v32,0,56,35,56,68v0,33,-24,68,-56,68v-33,0,-57,-34,-57,-68v0,-34,24,-68,57,-68xm201,-27v35,0,35,-77,0,-77v-37,1,-36,76,0,77xm65,-113v35,-1,36,-77,0,-77v-36,2,-37,77,0,77","w":264},"&":{"d":"169,-62v19,21,30,27,66,28v12,0,4,13,5,27v1,13,-25,4,-36,8v-22,-1,-46,-19,-57,-34v-23,24,-37,37,-75,39v-35,2,-59,-27,-58,-63v1,-45,24,-63,58,-82v-23,-51,-6,-110,51,-110v32,0,60,18,58,47v-2,40,-28,51,-64,72v11,18,22,33,33,46v25,-30,32,-42,74,-45v23,-2,13,26,6,37v-32,-1,-48,10,-61,30xm103,-156v24,-14,45,-22,45,-45v0,-14,-10,-23,-24,-23v-36,0,-33,38,-21,68xm52,-62v0,45,52,43,76,7v-20,-23,-33,-42,-42,-57v-22,14,-34,30,-34,50","w":247},"'":{"d":"12,-242v0,-3,6,-5,18,-5v25,0,19,-3,19,27v0,16,-1,42,-11,57v-32,10,-23,-51,-26,-79","w":61},"(":{"d":"115,-257v2,12,19,27,7,37v-69,24,-75,148,-37,210v9,15,28,24,41,37r-12,32v-63,-26,-94,-83,-94,-160v1,-76,37,-135,95,-156","w":126},")":{"d":"11,-257v57,21,96,81,96,156v0,78,-32,134,-95,160v-1,-5,-20,-33,-8,-37v64,-22,79,-150,38,-211v-8,-11,-21,-21,-38,-31v-15,-5,6,-33,7,-37","w":126},"*":{"d":"83,-194v11,1,37,-8,37,6v3,4,-33,21,-31,25v-1,9,26,43,4,45r-29,-27v-7,1,-30,46,-36,18r12,-35v2,-7,-51,-22,-28,-35r33,3v13,-2,-1,-46,20,-45v19,1,5,43,18,45","w":128},"+":{"d":"70,-31v-30,8,-13,-39,-16,-60v-18,-4,-57,15,-46,-16v1,-26,-3,-16,46,-16r-1,-52v3,-5,31,-8,35,1r-1,51v16,1,38,-3,51,2r-5,31r-46,-1v-5,23,17,63,-17,60","w":145},",":{"d":"18,-13v-10,-31,25,-32,45,-34v3,0,4,1,4,5v3,35,-33,69,-53,80v-1,0,-16,-17,-15,-18v6,-9,19,-23,19,-33","w":77},"-":{"d":"20,-124v32,-5,73,-2,106,-6v8,6,-4,24,-3,40v-33,4,-74,0,-109,5v-10,-7,0,-18,6,-39","w":139},"\u2010":{"d":"20,-124v32,-5,73,-2,106,-6v8,6,-4,24,-3,40v-33,4,-74,0,-109,5v-10,-7,0,-18,6,-39","w":139},".":{"d":"38,-54v16,0,28,13,28,28v0,15,-12,29,-28,29v-15,0,-26,-14,-26,-29v0,-14,11,-28,26,-28","w":77},"\/":{"d":"72,-248v8,6,22,6,25,17r-66,252v-17,-7,-22,-9,-25,-12","w":103},"0":{"d":"107,-216v56,0,98,51,98,110v0,59,-42,111,-98,111v-55,0,-97,-54,-97,-111v0,-57,41,-110,97,-110xm107,-37v33,0,56,-35,56,-69v0,-36,-22,-68,-56,-68v-34,0,-55,32,-55,68v0,35,22,69,55,69","w":214},"1":{"d":"35,-159v-10,1,-23,8,-31,4v4,-10,-5,-25,4,-29v21,-2,30,-42,55,-30v4,2,19,-1,18,9v-6,40,-4,140,-4,198v-1,14,-22,4,-39,7v-4,0,-5,-1,-5,-4","w":100},"2":{"d":"158,-153v5,26,-49,84,-83,119r91,-4v8,3,1,24,3,37v0,3,-2,4,-6,4r-147,-2v-10,-3,-6,-19,-10,-28v0,-4,29,-7,30,-10v25,-21,78,-76,78,-108v0,-44,-69,-43,-94,-18v-4,2,-13,12,-13,0v1,-5,-4,-29,-5,-26v38,-39,160,-40,156,36","w":174},"3":{"d":"153,-160v0,20,-15,43,-29,49v24,8,36,25,36,51v0,71,-97,76,-151,50v-7,-7,0,-6,5,-31v1,-3,3,-4,4,-4v37,24,97,24,99,-19v1,-37,-38,-38,-78,-35v-7,0,-10,-1,-10,-4v-10,-59,74,13,78,-48v2,-40,-62,-37,-88,-21v-3,0,-5,-10,-5,-27v0,-11,47,-16,64,-17v39,-1,76,21,75,56","w":169},"4":{"d":"148,-203r-3,124r27,-2v1,8,4,30,-2,36v-9,1,-25,-4,-25,5r2,38v-3,8,-12,4,-25,5v-46,7,-10,-28,-23,-48r-86,2v-7,0,-10,-8,-10,-22v0,-11,1,-18,3,-21v33,-33,71,-99,99,-133v6,1,38,2,43,16xm103,-78r4,-97r-69,96","w":180},"5":{"d":"53,-132v54,-11,104,7,104,61v0,80,-104,90,-154,59v0,-5,5,-37,9,-36v1,3,38,22,50,19v29,0,51,-13,51,-40v0,-37,-52,-38,-88,-31v-13,-12,-1,-68,-5,-103v6,-19,43,-8,65,-8v19,0,44,-6,58,1v-4,12,1,35,-11,35r-78,-1v0,10,0,24,-1,44","w":171},"6":{"d":"64,-132v48,-27,111,-3,111,55v0,49,-30,82,-80,82v-53,0,-83,-40,-83,-96v0,-66,57,-127,123,-125v6,6,20,29,7,34v-36,0,-79,22,-78,50xm53,-81v-1,27,16,54,41,54v29,0,43,-17,43,-49v1,-23,-18,-41,-40,-41v-30,0,-44,12,-44,36","w":184},"7":{"d":"10,-215v43,3,60,5,137,4v4,0,7,5,7,16v0,4,-1,7,-1,8v-32,40,-63,124,-71,186v-4,6,-46,9,-48,-1v2,-48,51,-131,69,-171v-17,-12,-82,11,-101,-1v6,-11,-3,-35,8,-41","w":158},"8":{"d":"155,-158v0,20,-12,42,-25,50v56,32,20,123,-47,113v-71,11,-109,-81,-53,-115v-41,-36,-13,-108,53,-108v37,0,73,25,72,60xm85,-185v-37,0,-50,35,-16,48v6,3,17,8,34,13v27,-19,17,-61,-18,-61xm61,-95v-32,18,-23,68,20,68v40,0,47,-43,14,-55v-17,-7,-17,-6,-34,-13","w":164},"9":{"d":"90,-216v53,0,83,42,83,98v0,70,-58,130,-128,128v-10,-9,-23,-35,-7,-34v40,2,82,-25,84,-58v-46,30,-113,4,-113,-56v0,-49,32,-77,81,-78xm88,-97v25,0,44,-13,44,-36v1,-27,-16,-50,-41,-50v-29,0,-43,15,-43,45v0,23,16,41,40,41","w":184},":":{"d":"36,-142v13,0,24,12,24,25v0,14,-11,25,-25,25v-14,0,-23,-12,-23,-25v0,-13,10,-25,24,-25xm36,-48v14,0,24,12,24,25v1,13,-11,26,-24,26v-14,0,-23,-13,-24,-26v0,-13,10,-25,24,-25","w":72},";":{"d":"37,-142v13,0,24,12,24,25v0,14,-11,26,-24,26v-13,0,-25,-13,-24,-26v0,-13,10,-25,24,-25xm16,-11v-6,-32,18,-24,39,-31v3,0,5,2,5,6v1,26,-26,65,-49,74v-1,1,-16,-13,-15,-14v2,-4,22,-26,20,-35","w":72},"<":{"d":"120,-43v-3,1,-9,32,-17,22v-40,-35,-49,-42,-90,-63v-7,-4,-7,-31,1,-36v21,-7,73,-49,95,-65v2,0,6,8,12,24v-14,22,-57,46,-82,58v26,13,67,37,81,60","w":128},"=":{"d":"13,-148v35,-7,82,1,130,-2v7,5,2,25,-1,32r-127,-1v-9,-3,-2,-26,-2,-29xm144,-68v-39,5,-87,-3,-129,2v-8,-5,-4,-31,1,-31r127,0v7,4,0,9,1,29","w":156},">":{"d":"8,-161v5,-6,6,-27,16,-22v17,16,61,51,90,63v8,3,8,29,1,36v-32,14,-61,40,-94,65v-9,-15,-13,-23,-13,-24v0,-12,67,-56,81,-60v-33,-19,-67,-32,-81,-58","w":128},"?":{"d":"5,-220v39,-46,131,-28,131,41v0,53,-56,61,-63,112v-1,8,-30,12,-27,-2v-3,-48,44,-58,44,-99v0,-21,-13,-38,-35,-37v-10,-3,-41,16,-44,18v-4,0,-6,-11,-6,-33xm63,-44v14,0,22,12,23,24v0,13,-11,25,-23,25v-12,0,-22,-12,-22,-25v0,-13,9,-25,22,-24","w":143},"@":{"d":"121,-252v60,0,84,54,84,120v0,16,-17,77,-30,74v-15,2,-17,-10,-20,-16v-28,28,-89,5,-82,-44v-3,-53,60,-80,97,-44v13,-27,-20,-63,-48,-63v-49,0,-85,51,-85,102v0,53,34,103,85,102v10,0,3,15,5,23v0,2,-2,3,-5,3v-66,2,-112,-61,-112,-128v0,-62,50,-129,111,-129xm132,-87v20,1,37,-16,37,-35v0,-17,-14,-31,-31,-31v-17,0,-31,14,-31,32v0,18,9,34,25,34","w":223},"A":{"d":"137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7"},"B":{"d":"173,-131v59,23,36,131,-33,131r-117,0v-3,0,-5,-1,-5,-4v4,-80,4,-159,0,-239v14,-11,65,-1,99,-3v50,-3,86,19,86,65v1,22,-16,42,-30,50xm159,-177v0,-43,-66,-42,-96,-34r0,60v0,3,13,5,39,5v38,0,57,-10,57,-31xm63,-39v37,6,106,11,100,-39v-3,-27,-22,-34,-56,-34v-30,0,-45,2,-45,5","w":219},"C":{"d":"125,-37v28,0,51,-20,65,-33r22,29v-18,30,-53,46,-88,46v-69,0,-114,-58,-114,-128v0,-71,46,-130,115,-129v38,0,69,13,85,42v2,1,-19,35,-21,32v-16,-11,-35,-33,-63,-33v-45,0,-72,40,-72,87v-1,48,26,87,71,87","w":213},"D":{"d":"24,-247v118,-6,212,10,211,122v-1,74,-51,138,-134,124r-78,1v-3,0,-4,-1,-4,-4r3,-116r-3,-123v0,-2,2,-4,5,-4xm85,-35v71,8,106,-30,107,-90v1,-60,-46,-87,-107,-87v-34,0,-21,24,-21,48r0,121v0,4,7,7,21,8","w":244},"E":{"d":"62,-101v6,29,-12,74,28,66v32,1,38,-2,91,-5v8,2,1,15,0,21v-1,6,2,24,-13,21v-30,-6,-107,-3,-145,-2v-4,0,-5,-2,-5,-5r4,-118r-4,-120v29,-10,102,-4,149,-4v15,0,15,36,8,38r-90,-3v-35,-5,-18,31,-22,62v23,16,84,-4,112,5r-3,35v-18,7,-65,-2,-102,1v-5,0,-7,3,-8,8","w":193},"F":{"d":"177,-248v12,2,11,32,7,41r-103,-3v-30,-6,-12,31,-17,54v0,8,2,12,5,12r103,-3v9,2,-1,26,4,40v-19,6,-81,-3,-104,1v-5,1,-7,2,-7,6v-1,19,1,76,1,95v-3,15,-26,-2,-43,5v-3,0,-5,-1,-5,-4v3,-98,0,-110,0,-235v0,-16,53,-1,78,-6v21,0,48,-1,81,-3","w":191},"G":{"d":"188,-53r-5,-67v5,-7,28,0,44,-2v9,4,2,26,3,42r3,71v0,3,-1,4,-4,4v-3,0,-24,-10,-26,-12v-22,15,-46,22,-76,22v-67,1,-117,-59,-117,-128v0,-71,49,-131,117,-129v41,1,79,21,94,53v2,2,-26,32,-27,30v-15,-14,-36,-41,-66,-41v-42,0,-73,43,-73,87v0,43,31,90,74,88v21,0,41,-6,59,-18","w":242},"H":{"d":"236,-120r4,116v-3,10,-30,-1,-44,4v-3,0,-4,-1,-4,-4r2,-95v-4,-19,-19,-9,-65,-9v-46,0,-61,-9,-65,9r2,93v-1,14,-27,0,-43,6v-3,0,-5,-1,-5,-4v4,-80,4,-159,0,-239v4,-9,29,1,44,-4v3,0,4,2,4,4r-3,90v6,15,20,8,66,8v46,0,60,7,65,-9r-2,-89v4,-9,29,1,43,-4v3,0,5,1,5,4","w":257},"I":{"d":"64,-125r3,121v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121r-4,-117v2,-12,28,0,44,-5v3,0,4,2,4,4","w":85},"J":{"d":"1,-2v55,-35,25,-157,28,-239v6,-11,27,-1,45,-5v3,0,4,1,4,3v-7,99,20,233,-48,270v-11,-9,-19,-21,-29,-29","w":96},"K":{"d":"144,-124v14,40,43,77,69,116v-2,18,-31,4,-46,8v-12,-7,-51,-81,-57,-98v-2,-17,-44,-11,-46,-4r2,96v-1,14,-27,0,-43,6v-3,0,-5,-1,-5,-4v4,-80,4,-159,0,-239v4,-9,28,1,43,-4v3,0,4,2,4,4r-2,90v0,10,0,10,8,11v71,5,73,-54,94,-101v3,-8,42,-6,43,1v-9,39,-29,88,-59,111v-3,2,-5,5,-5,7","w":214},"L":{"d":"66,-36r114,-5v2,0,4,1,4,3v-2,20,2,35,-9,40r-151,-2v-3,0,-5,-1,-5,-4r3,-116r-4,-122v6,-10,27,0,44,-4v3,0,4,1,4,3r-3,168v0,26,1,39,3,39","w":186},"M":{"d":"262,-120r3,116v-3,10,-28,-1,-42,4v-3,0,-5,-2,-5,-6r2,-137v-13,12,-40,98,-61,144v-1,4,-33,2,-31,-1r-64,-146v-4,27,1,111,0,140v-1,14,-25,0,-41,6v-3,0,-5,-1,-5,-3v4,-80,4,-159,0,-239v7,-9,34,-5,40,-7v36,66,59,137,87,192v25,-46,43,-99,74,-183v5,-14,27,-4,42,-6v3,0,4,1,4,4","w":284},"N":{"d":"18,-4v4,-79,4,-159,0,-238v11,-4,39,-12,47,-1r130,173v3,-50,-2,-118,-2,-171v0,-14,26,0,43,-6v2,0,3,1,3,4r-2,237v0,13,-23,0,-37,6v-2,0,-5,-2,-8,-6r-129,-170v-3,53,1,115,0,170v0,14,-24,0,-40,6v-3,0,-5,-2,-5,-4","w":258},"O":{"d":"131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87","w":261},"P":{"d":"80,-245v79,-13,137,18,137,89v1,55,-31,93,-86,92r-61,-2v-4,0,-5,3,-5,8v-1,19,6,45,-1,59v-13,0,-29,-3,-41,-1v-3,0,-4,-1,-4,-5r3,-116r-4,-121v6,-10,39,0,62,-3xm122,-98v31,0,51,-22,51,-55v0,-58,-57,-66,-108,-54r0,104v7,8,24,5,57,5","w":224},"Q":{"d":"131,-252v66,0,119,61,119,128v0,64,-46,121,-102,126v3,14,15,24,24,38v-6,9,-36,4,-52,5v-6,-1,-9,-16,-10,-43v-56,-10,-99,-62,-99,-126v0,-67,54,-128,120,-128xm130,-36v45,0,78,-42,78,-88v0,-45,-33,-86,-78,-86v-43,0,-77,42,-77,87v0,45,35,87,77,87","w":261},"R":{"d":"166,-95r42,94v-10,-1,-43,4,-51,-3v-4,-8,-14,-33,-32,-74v-7,-14,-38,-6,-58,-8v-8,20,1,57,-1,83v-6,10,-28,-2,-43,3v-3,0,-5,-1,-5,-4r4,-117r-4,-122v72,-11,186,-16,186,72v0,42,-15,55,-38,76xm160,-161v8,-53,-55,-54,-96,-46v2,27,-5,62,1,85v40,5,101,6,95,-39","w":213},"S":{"d":"20,-177v0,-72,92,-88,139,-52v-6,7,-10,25,-19,35v-26,-12,-79,-25,-78,16v-5,22,65,46,65,50v63,54,-15,158,-97,127r-9,-38v28,-3,91,1,84,-36v8,-23,-66,-52,-63,-53v-15,-12,-22,-29,-22,-49","w":168},"T":{"d":"12,-248v74,7,99,5,164,0v11,2,1,22,6,35v-5,11,-22,0,-66,2r2,207v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121v0,-21,-1,-50,-2,-86v-31,1,-56,6,-69,1v4,-12,3,-29,10,-38","w":184},"U":{"d":"175,-76r-2,-167v5,-7,29,0,42,-4v3,0,5,1,5,4r-3,162v3,74,-30,80,-101,85v-140,9,-81,-118,-98,-247v4,-8,35,-3,47,0r-2,161v1,41,13,50,56,50v39,-1,56,-8,56,-44"},"V":{"d":"166,-161r-1,-82v2,-9,28,1,42,-4v11,13,2,57,5,88v-4,21,-60,121,-78,154v-6,11,-27,3,-41,5v-12,-10,-12,-24,-47,-84v-45,-77,-34,-72,-33,-156v0,-15,26,-1,43,-7v3,0,4,2,4,4r-4,86v0,8,19,43,55,106v13,-21,55,-94,55,-110","w":222},"W":{"d":"309,-245r2,88r-76,157r-32,0v-18,-21,-23,-54,-43,-101v-12,32,-12,32,-38,96v-5,9,-34,8,-41,0r-37,-76v-43,-82,-32,-75,-32,-162v4,-8,32,-3,46,-1v-12,85,2,118,45,191v21,-56,44,-105,35,-191v5,-7,28,2,42,-3v11,12,-2,64,2,92r37,100v12,-20,54,-109,47,-103r-2,-89v15,2,35,-1,45,2","w":321},"X":{"d":"131,-123r66,96v-2,9,5,25,-4,27r-30,0r-59,-87r-61,87v-10,-1,-28,4,-33,-3r0,-25r66,-95r-66,-95v0,-16,-7,-34,20,-29v12,2,14,-2,21,8r53,81r61,-89v10,1,27,-3,32,3r0,27","w":206},"Y":{"d":"160,-184r-3,-58v2,-12,29,1,44,-5v10,10,1,48,5,67v-3,27,-65,86,-78,120r2,57v-8,8,-32,1,-46,3v-10,-12,3,-42,-1,-60v-7,-35,-65,-79,-76,-118v0,-15,-1,-36,-1,-64v0,-12,28,0,43,-5v2,0,4,1,4,3v-7,78,-6,64,53,133v12,-13,52,-62,54,-73","w":211},"Z":{"d":"56,-38v35,4,82,-8,116,-2v0,7,-6,30,-5,38v-36,9,-100,-2,-150,2v-11,-2,-9,-28,-10,-33r107,-174v-27,-6,-67,0,-98,-2v-9,-7,2,-25,2,-37v39,-3,95,2,143,0v9,3,5,19,7,30","w":181},"[":{"d":"70,30v18,1,42,-6,55,1v-2,8,3,23,-5,25r-92,0v-3,0,-5,-3,-5,-7v5,-97,3,-194,-1,-291v8,-17,66,1,98,-7v6,1,8,26,1,29r-48,-3v-14,8,-5,124,-8,136v3,38,-3,84,5,117","w":129},"\\":{"d":"32,-246r64,252v0,3,-20,15,-25,14v-19,-54,-41,-155,-64,-252v2,-3,18,-16,25,-14","w":103},"]":{"d":"59,-222v-15,-2,-35,2,-51,2v-5,-2,-6,-25,1,-29r93,0v4,0,5,3,5,7r-4,155r3,136v-7,17,-65,-1,-97,7v-7,0,-6,-23,-1,-28r49,2v3,0,5,-2,5,-6r3,-111v-3,-44,2,-96,-6,-135","w":129},"^":{"d":"97,-178v20,49,20,51,63,114r-26,15v-4,0,-22,-23,-52,-68v-1,1,-10,12,-24,36v-23,40,-27,31,-51,16v25,-37,44,-65,62,-113r28,0","w":168},"_":{"d":"-2,41v42,-5,107,-2,160,0v-2,19,5,29,-6,32r-81,-2r-70,2v-11,-2,-2,-23,-3,-32","w":156},"`":{"d":"31,-256v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":125},"a":{"d":"149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54","w":199},"b":{"d":"59,-149v44,-57,141,-11,133,64v7,70,-84,119,-133,65v-3,-1,-1,22,-5,20v-13,-1,-30,2,-40,-2v7,-48,4,-172,-1,-241v4,-11,29,-4,44,-8v8,25,-7,74,2,102xm105,-32v27,1,49,-27,48,-54v0,-26,-21,-54,-48,-54v-28,0,-49,27,-49,54v0,28,22,54,49,54","w":199},"c":{"d":"7,-86v0,-68,79,-118,134,-73v1,2,-8,31,-10,30v-34,-24,-84,0,-84,43v0,43,55,70,84,42v3,-1,8,30,8,33v-48,40,-132,-7,-132,-75","w":144},"d":{"d":"145,-247v13,2,35,-7,42,2r-4,135r3,108v-6,5,-26,0,-37,3r-4,-25v-46,59,-138,16,-138,-60v0,-76,92,-120,135,-64v8,-27,-4,-69,3,-99xm95,-31v27,0,48,-26,48,-54v1,-27,-21,-54,-48,-54v-28,0,-49,26,-49,54v0,28,22,54,49,54","w":200},"e":{"d":"90,-176v43,0,78,39,77,82v0,9,-3,14,-11,17v-5,2,-41,5,-109,10v7,46,77,44,105,15r13,25v-45,60,-158,29,-158,-58v0,-47,36,-91,83,-91xm46,-100v15,10,56,0,79,-5v1,-18,-19,-37,-37,-37v-22,0,-42,22,-42,42","w":173},"f":{"d":"25,-166v-8,-63,27,-94,78,-89v4,17,12,38,-15,34v-23,4,-22,18,-23,54v17,3,47,-9,41,19v5,19,-4,18,-22,17v-8,0,-14,-1,-18,-1r2,127v-3,11,-24,3,-36,5v-3,0,-5,-1,-5,-5r0,-121v0,-3,-3,-5,-10,-5v-23,5,-9,-13,-14,-30v0,-2,7,-4,22,-5","w":105},"g":{"d":"131,-150v-8,-39,20,-21,39,-18v8,23,2,88,2,131v0,56,-23,83,-78,83v-29,0,-54,-4,-68,-20r7,-29v36,23,109,27,97,-33v-42,51,-129,10,-123,-55v-8,-68,85,-112,123,-56v1,0,1,-1,1,-3xm89,-43v24,1,43,-22,42,-48v0,-26,-17,-49,-42,-49v-25,0,-42,23,-42,49v0,26,17,48,42,48","w":187},"h":{"d":"117,-172v76,0,54,90,54,166v0,13,-20,3,-36,6v-20,-21,25,-138,-35,-138v-11,0,-44,18,-42,29v-2,35,5,79,-3,109v-12,-2,-34,6,-37,-5r-6,-238v2,-8,31,-2,44,-7v7,30,-4,75,1,107v13,-11,35,-29,60,-29","w":187},"i":{"d":"40,-232v13,0,25,9,24,22v0,14,-8,21,-24,21v-16,0,-25,-7,-25,-21v0,-12,12,-22,25,-22xm16,-163v9,-7,30,2,43,-3v7,45,-3,102,1,162v-5,9,-26,2,-37,4v-9,-35,0,-112,-7,-163","w":79},"j":{"d":"40,-233v13,0,25,9,25,22v0,14,-9,22,-25,22v-14,0,-24,-9,-24,-22v-1,-13,11,-22,24,-22xm17,-159v4,-14,30,-4,43,-9v6,42,-2,96,1,152v2,41,-26,64,-65,68v-6,-3,-4,-26,-2,-34v49,1,27,-64,27,-108v0,-17,-1,-39,-4,-69","w":79},"k":{"d":"130,-174v33,0,62,20,61,53v0,30,-15,52,-43,62v0,11,26,42,36,55v-16,1,-43,12,-51,-1r-26,-41r-45,-2v-4,20,13,57,-21,49v-11,-2,-20,4,-20,-8r-3,-237v6,-8,27,-3,41,-6v8,27,-4,73,2,109v15,-12,48,-33,69,-33xm61,-79v34,8,88,3,87,-33v0,-17,-10,-25,-32,-25v-16,0,-35,10,-55,32r0,26","w":196},"l":{"d":"20,-4r-3,-239v4,-9,28,1,42,-4v3,0,3,2,3,5v-3,44,-4,82,-4,113r2,125v-5,9,-26,2,-37,4v-2,0,-3,-1,-3,-4","w":79},"m":{"d":"231,-172v78,0,54,88,54,165v0,15,-21,3,-38,7v-18,-33,27,-139,-35,-139v-13,0,-40,20,-40,33r1,102v-4,10,-23,0,-38,4v-18,-28,27,-139,-33,-139v-12,0,-43,18,-43,30r0,104v-3,11,-25,3,-36,5v-13,-40,7,-112,-11,-158v7,-8,28,-4,40,-10v7,9,-1,38,16,18v23,-29,92,-31,102,11v12,-16,35,-33,61,-33","w":301},"n":{"d":"118,-172v80,0,47,94,55,168v-4,9,-23,2,-38,4v-18,-27,26,-138,-35,-138v-10,0,-41,19,-41,28r0,106v-4,10,-22,1,-37,4v-10,-43,7,-116,-11,-159v10,-6,29,-5,42,-9v5,5,3,18,6,25v11,-9,38,-29,59,-29","w":188},"o":{"d":"92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53","w":184},"p":{"d":"59,-146v47,-59,135,-11,135,61v0,73,-92,122,-134,62v-5,16,0,48,-2,72v-5,12,-40,7,-40,1v0,-73,5,-151,-5,-216v10,-6,28,-4,41,-7v4,1,2,22,5,27xm106,-31v26,0,47,-27,47,-54v0,-26,-21,-54,-48,-54v-27,0,-47,27,-46,54v0,27,20,54,47,54","w":203},"q":{"d":"10,-85v0,-73,88,-123,134,-63v1,0,1,-9,1,-24v9,-2,32,-2,44,6v-11,48,-5,150,-5,215v-3,9,-23,3,-38,5v-6,-20,2,-54,-3,-76v-16,13,-31,26,-55,26v-43,0,-78,-44,-78,-89xm98,-32v30,1,46,-24,46,-54v0,-30,-18,-54,-47,-54v-28,0,-48,27,-48,54v0,29,22,54,49,54","w":201},"r":{"d":"112,-126v-34,-3,-55,-1,-54,43r1,79v-3,9,-23,2,-37,4v-11,-29,4,-123,-11,-162v1,-6,39,-6,38,-9v3,7,3,16,8,21v12,-11,41,-26,61,-15v-1,14,3,33,-6,39","w":119},"s":{"d":"45,-122v13,26,58,29,55,68v-3,37,-36,61,-79,56v-4,-6,-8,-29,-2,-35v33,8,65,-19,31,-37v-31,-16,-40,-18,-42,-49v-2,-34,29,-55,65,-54v7,0,14,31,8,33v-15,2,-37,2,-36,18","w":107},"t":{"d":"62,-61v-4,38,30,30,52,25v5,5,-2,21,0,29v-24,14,-91,18,-90,-28r1,-90v-2,-17,-32,5,-23,-33v2,-9,24,0,22,-13v2,-16,-4,-46,4,-55v1,0,13,1,34,5v13,10,-9,46,6,55v24,1,54,-11,44,32v-8,9,-32,0,-47,2v-5,14,0,48,-3,71","w":123},"u":{"d":"96,-31v13,0,45,-21,43,-33v1,-9,0,-40,0,-93v0,-16,24,-7,37,-9v3,0,5,3,5,7r-1,154v-3,11,-27,3,-39,5r-4,-26v-21,14,-41,27,-61,27v-76,0,-61,-101,-53,-160v2,-14,21,-4,37,-7v10,33,-29,135,36,135","w":198},"v":{"d":"130,-127v0,-12,-4,-29,0,-38r34,-1v4,0,6,17,6,50v-1,49,-3,29,-30,75v-16,27,-29,40,-32,41v-41,5,-32,-3,-62,-40v-37,-46,-34,-48,-34,-122v3,-8,35,-5,42,0r-1,34v-9,35,27,75,40,88v12,-15,44,-51,37,-87","w":182},"w":{"d":"232,-165v30,-4,22,8,22,39v0,57,-3,45,-30,88v-23,38,-11,42,-52,38v-4,-1,-17,-21,-41,-60v-20,21,-26,70,-65,60v-7,1,-52,-77,-53,-85v-1,-16,-20,-94,18,-80v19,-6,22,9,18,29v-1,58,4,50,33,94v34,-38,35,-58,30,-122v5,-9,26,-2,37,-4v7,5,-1,64,3,74v-1,2,31,53,34,51v31,-40,31,-60,27,-119v1,-6,13,-2,19,-3","w":262},"x":{"d":"103,-83r47,61v0,13,4,22,-18,22v-9,0,-15,-1,-17,-3r-37,-53v-1,0,-7,10,-20,27v-23,30,-7,29,-47,29v-8,-1,-2,-15,-4,-22r47,-62r-47,-61v0,-14,-4,-28,17,-22v37,2,24,28,54,56v12,-12,18,-28,37,-54v6,-3,30,-6,35,1r0,18","w":156},"y":{"d":"124,-159v5,-10,26,-3,37,-6v4,0,5,15,5,43v0,20,-1,32,-2,36v2,3,-89,139,-92,137v-5,4,-20,6,-46,6v-12,4,-12,-25,-16,-28v0,-3,3,-4,9,-4v29,4,39,-13,45,-31v2,-5,-58,-77,-55,-80v-4,-11,-5,-58,-2,-75v1,-9,26,-2,37,-3v7,4,0,20,2,33v-10,40,29,77,43,92v11,-17,47,-51,37,-90","w":171},"z":{"d":"20,-164v22,-5,100,1,117,0v11,3,2,36,3,34r-86,97v42,0,73,-5,94,0v-5,15,2,41,-25,33v-33,-3,-81,-1,-110,2v-10,-3,-8,-20,-7,-32v18,-24,57,-61,89,-100r-77,0v-7,-7,2,-23,2,-34","w":151},"{":{"d":"36,-97v52,-3,41,72,31,112v1,21,30,13,48,9v3,5,5,23,1,30v-36,7,-95,5,-90,-36v4,-30,36,-98,-14,-100v-7,-3,0,-15,-3,-25v13,-9,35,-7,31,-34v2,-14,-15,-56,-14,-70v2,-31,24,-39,61,-39v17,1,28,-1,31,6v-1,6,3,28,-5,28v-17,0,-46,-13,-46,11v10,38,21,108,-31,108","w":122},"|":{"d":"58,-245r2,262v-5,8,-31,12,-30,4r-2,-262v-2,-8,16,-10,27,-8v2,0,3,1,3,4","w":88},"}":{"d":"84,-141v-4,27,18,25,31,34v-3,8,3,22,-3,25v-50,2,-17,71,-14,100v4,41,-57,44,-93,35v4,-7,-2,-24,5,-29v22,5,44,11,47,-9v-9,-41,-22,-115,31,-112v-51,0,-42,-69,-31,-108v0,-27,-37,-5,-50,-14r-2,-25v25,-14,100,-8,93,33v2,14,-16,56,-14,70","w":122},"~":{"d":"108,-120v6,3,40,-17,41,-19v1,0,6,5,13,14v7,9,10,15,10,16v1,5,-44,32,-58,29v-12,1,-38,-13,-47,-13v-5,-3,-34,18,-36,18v-2,-1,-25,-27,-25,-28v-1,-3,46,-34,58,-31v12,-2,33,15,44,14","w":175},"\u00c4":{"d":"137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7xm144,-305v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm79,-305v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4"},"\u00c5":{"d":"153,-214r83,212v-7,5,-31,-3,-44,2v-7,3,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25r78,-210v-27,-29,-1,-76,36,-76v36,0,63,44,37,74xm116,-222v9,0,20,-9,19,-19v1,-12,-9,-21,-19,-21v-26,0,-23,40,0,40xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7"},"\u00c7":{"d":"125,-37v28,0,51,-20,65,-33r22,29v-18,30,-53,46,-88,46v-69,0,-114,-58,-114,-128v0,-71,46,-130,115,-129v38,0,69,13,85,42v2,1,-19,35,-21,32v-16,-11,-35,-33,-63,-33v-45,0,-72,40,-72,87v-1,48,26,87,71,87xm87,33v12,13,32,9,32,-9v0,-7,-3,-13,-8,-19v20,-1,29,0,35,15v6,45,-53,68,-78,35","w":213},"\u00c9":{"d":"62,-101v6,29,-12,74,28,66v32,1,38,-2,91,-5v8,2,1,15,0,21v-1,6,2,24,-13,21v-30,-6,-107,-3,-145,-2v-4,0,-5,-2,-5,-5r4,-118r-4,-120v29,-10,102,-4,149,-4v15,0,15,36,8,38r-90,-3v-35,-5,-18,31,-22,62v23,16,84,-4,112,5r-3,35v-18,7,-65,-2,-102,1v-5,0,-7,3,-8,8xm125,-314v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":193},"\u00d1":{"d":"150,-276v4,2,22,-16,25,-11v9,9,13,14,13,18v1,6,-31,23,-38,21v-20,-4,-44,-21,-56,-1v-9,-3,-15,-10,-19,-18v11,-25,54,-21,75,-9xm18,-4v4,-79,4,-159,0,-238v11,-4,39,-12,47,-1r130,173v3,-50,-2,-118,-2,-171v0,-14,26,0,43,-6v2,0,3,1,3,4r-2,237v0,13,-23,0,-37,6v-2,0,-5,-2,-8,-6r-129,-170v-3,53,1,115,0,170v0,14,-24,0,-40,6v-3,0,-5,-2,-5,-4","w":258},"\u00d6":{"d":"131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87xm156,-309v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm91,-309v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":261},"\u00dc":{"d":"175,-76r-2,-167v5,-7,29,0,42,-4v3,0,5,1,5,4r-3,162v3,74,-30,80,-101,85v-140,9,-81,-118,-98,-247v4,-8,35,-3,47,0r-2,161v1,41,13,50,56,50v39,-1,56,-8,56,-44xm146,-309v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm81,-309v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4"},"\u00e1":{"d":"149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54xm131,-249v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":199},"\u00e0":{"d":"149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54xm68,-253v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":199},"\u00e2":{"d":"95,-219v-6,1,-26,44,-40,24v-6,-3,-9,-5,-9,-5v10,-11,30,-35,37,-52v5,-4,20,-3,26,0v6,17,26,38,38,53v-25,15,-21,9,-52,-20xm149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54","w":199},"\u00e4":{"d":"149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54xm121,-235v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm56,-235v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":199},"\u00e3":{"d":"115,-219v4,2,20,-13,25,-12v9,9,13,15,13,19v0,5,-32,23,-38,21v-12,2,-27,-13,-36,-13v-9,-3,-17,17,-24,10v-5,-6,-11,-9,-15,-16v3,-8,24,-20,35,-21v9,-1,32,12,40,12xm149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54","w":199},"\u00e5":{"d":"98,-271v23,-1,42,19,42,42v0,22,-20,41,-42,41v-22,0,-41,-19,-41,-41v0,-23,18,-42,41,-42xm98,-208v12,0,22,-10,22,-21v0,-13,-10,-23,-22,-23v-12,0,-21,11,-21,23v0,12,9,21,21,21xm149,-145v5,-9,0,-31,25,-20v11,5,17,2,14,9v-11,72,-7,54,-2,151v-3,10,-23,4,-34,7r-8,-24v-13,9,-35,26,-57,26v-44,0,-79,-42,-79,-87v0,-80,95,-124,141,-62xm97,-32v27,0,47,-26,47,-54v0,-27,-20,-53,-47,-53v-28,0,-49,25,-49,53v0,29,22,55,49,54","w":199},"\u00e7":{"d":"7,-86v0,-68,79,-118,134,-73v1,2,-8,31,-10,30v-34,-24,-84,0,-84,43v0,43,55,70,84,42v3,-1,8,30,8,33v-48,40,-132,-7,-132,-75xm51,31v12,13,32,9,32,-9v0,-7,-3,-13,-8,-19v20,-1,29,0,35,15v6,45,-53,68,-78,35","w":144},"\u00e9":{"d":"90,-176v43,0,78,39,77,82v0,9,-3,14,-11,17v-5,2,-41,5,-109,10v7,46,77,44,105,15r13,25v-45,60,-158,29,-158,-58v0,-47,36,-91,83,-91xm46,-100v15,10,56,0,79,-5v1,-18,-19,-37,-37,-37v-22,0,-42,22,-42,42xm116,-249v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":173},"\u00e8":{"d":"90,-176v43,0,78,39,77,82v0,9,-3,14,-11,17v-5,2,-41,5,-109,10v7,46,77,44,105,15r13,25v-45,60,-158,29,-158,-58v0,-47,36,-91,83,-91xm46,-100v15,10,56,0,79,-5v1,-18,-19,-37,-37,-37v-22,0,-42,22,-42,42xm58,-253v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":173},"\u00ea":{"d":"85,-219v-6,1,-27,44,-41,24v-6,-3,-8,-5,-8,-5v10,-11,30,-35,37,-52v5,-4,20,-3,26,0v5,18,26,39,38,53v-25,15,-21,9,-52,-20xm90,-176v43,0,78,39,77,82v0,9,-3,14,-11,17v-5,2,-41,5,-109,10v7,46,77,44,105,15r13,25v-45,60,-158,29,-158,-58v0,-47,36,-91,83,-91xm46,-100v15,10,56,0,79,-5v1,-18,-19,-37,-37,-37v-22,0,-42,22,-42,42","w":173},"\u00eb":{"d":"90,-176v43,0,78,39,77,82v0,9,-3,14,-11,17v-5,2,-41,5,-109,10v7,46,77,44,105,15r13,25v-45,60,-158,29,-158,-58v0,-47,36,-91,83,-91xm46,-100v15,10,56,0,79,-5v1,-18,-19,-37,-37,-37v-22,0,-42,22,-42,42xm115,-235v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm50,-235v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":173},"\u00ed":{"d":"16,-163v9,-7,30,2,43,-3v7,45,-3,102,1,162v-5,9,-26,2,-37,4v-9,-35,0,-112,-7,-163xm68,-249v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":79},"\u00ec":{"d":"16,-163v9,-7,30,2,43,-3v7,45,-3,102,1,162v-5,9,-26,2,-37,4v-9,-35,0,-112,-7,-163xm5,-253v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":79},"\u00ee":{"d":"-11,-198v12,-11,29,-41,41,-55v7,1,20,-3,22,3v6,17,26,38,38,52v-25,15,-21,9,-52,-20v-6,1,-27,44,-41,24xm16,-163v9,-7,30,2,43,-3v7,45,-3,102,1,162v-5,9,-26,2,-37,4v-9,-35,0,-112,-7,-163","w":79},"\u00ef":{"d":"16,-163v9,-7,30,2,43,-3v7,45,-3,102,1,162v-5,9,-26,2,-37,4v-9,-35,0,-112,-7,-163xm67,-238v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm2,-238v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":79},"\u00f1":{"d":"113,-217v4,2,22,-16,24,-12v9,9,13,15,13,19v1,5,-31,22,-37,21v-11,1,-27,-13,-37,-13v-8,-3,-17,18,-23,10v-10,-11,-18,-14,-15,-16v3,-8,24,-20,35,-21v9,-1,32,13,40,12xm118,-172v80,0,47,94,55,168v-4,9,-23,2,-38,4v-18,-27,26,-138,-35,-138v-10,0,-41,19,-41,28r0,106v-4,10,-22,1,-37,4v-10,-43,7,-116,-11,-159v10,-6,29,-5,42,-9v5,5,3,18,6,25v11,-9,38,-29,59,-29","w":188},"\u00f3":{"d":"92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53xm119,-249v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":184},"\u00f2":{"d":"92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53xm52,-253v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":184},"\u00f4":{"d":"90,-219v-6,1,-27,44,-41,24v-6,-3,-8,-5,-8,-5v10,-11,30,-35,37,-52v5,-4,20,-3,26,0v5,18,26,39,38,53v-25,15,-21,9,-52,-20xm92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53","w":184},"\u00f6":{"d":"92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53xm119,-235v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm54,-235v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":184},"\u00f5":{"d":"110,-219v4,2,20,-13,25,-12v9,9,13,15,13,19v1,5,-31,22,-37,21v-12,2,-28,-12,-37,-13v-9,-3,-17,17,-24,10v-5,-6,-11,-9,-15,-16v3,-8,24,-20,35,-21v9,-1,32,12,40,12xm92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53","w":184},"\u00fa":{"d":"96,-31v13,0,45,-21,43,-33v1,-9,0,-40,0,-93v0,-16,24,-7,37,-9v3,0,5,3,5,7r-1,154v-3,11,-27,3,-39,5r-4,-26v-21,14,-41,27,-61,27v-76,0,-61,-101,-53,-160v2,-14,21,-4,37,-7v10,33,-29,135,36,135xm130,-249v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":198},"\u00f9":{"d":"96,-31v13,0,45,-21,43,-33v1,-9,0,-40,0,-93v0,-16,24,-7,37,-9v3,0,5,3,5,7r-1,154v-3,11,-27,3,-39,5r-4,-26v-21,14,-41,27,-61,27v-76,0,-61,-101,-53,-160v2,-14,21,-4,37,-7v10,33,-29,135,36,135xm66,-253v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":198},"\u00fb":{"d":"51,-200v12,-10,30,-40,41,-54v7,1,18,-2,22,2v6,17,26,38,38,53v-25,15,-21,9,-51,-20v-6,1,-27,44,-41,24v-6,-3,-9,-5,-9,-5xm96,-31v13,0,45,-21,43,-33v1,-9,0,-40,0,-93v0,-16,24,-7,37,-9v3,0,5,3,5,7r-1,154v-3,11,-27,3,-39,5r-4,-26v-21,14,-41,27,-61,27v-76,0,-61,-101,-53,-160v2,-14,21,-4,37,-7v10,33,-29,135,36,135","w":198},"\u00fc":{"d":"96,-31v13,0,45,-21,43,-33v1,-9,0,-40,0,-93v0,-16,24,-7,37,-9v3,0,5,3,5,7r-1,154v-3,11,-27,3,-39,5r-4,-26v-21,14,-41,27,-61,27v-76,0,-61,-101,-53,-160v2,-14,21,-4,37,-7v10,33,-29,135,36,135xm129,-235v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm64,-235v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":198},"\u00b0":{"d":"70,-249v33,0,57,30,57,64v0,33,-23,64,-57,64v-33,0,-57,-32,-57,-64v0,-32,24,-64,57,-64xm70,-146v20,0,33,-17,33,-39v0,-22,-12,-39,-33,-39v-20,0,-32,18,-32,39v0,20,12,39,32,39","w":141},"\u00a2":{"d":"97,-210r-5,28v23,3,32,10,18,36v-7,-4,-16,-9,-22,-9v-4,28,-4,29,-13,85v12,4,26,-3,34,-9v2,0,6,23,6,27v-1,9,-31,12,-45,11v-2,19,-3,31,-6,41v-26,0,-11,-8,-8,-45v-26,-9,-46,-33,-46,-67v0,-40,29,-73,68,-72r5,-31xm73,-154v-31,6,-40,60,-12,78v1,-7,5,-33,12,-78","w":124},"\u00a3":{"d":"60,-158v1,13,14,31,21,42v8,2,39,-3,55,4v-1,10,5,26,-2,31v-22,0,-33,-1,-35,-1v5,19,1,33,-12,46v28,1,62,-3,87,2v-4,11,-1,29,-11,34v-45,0,-111,-4,-144,4v-7,-12,-18,-37,-3,-38v22,-2,56,-21,42,-48v-16,-4,-46,13,-45,-11v1,-25,4,-28,23,-24v-38,-52,1,-100,60,-99v14,-1,63,11,60,22v-3,11,-4,25,-9,34v-15,-8,-37,-21,-55,-20v-16,0,-32,7,-32,22","w":168},"\u00a7":{"d":"112,-76v9,11,22,23,22,44v0,59,-98,73,-124,29r16,-26v8,15,67,40,69,-1v-8,-33,-82,-36,-82,-79v0,-17,10,-32,18,-43v-33,-32,-19,-103,42,-97v23,2,42,5,49,21r-13,24v-12,-16,-59,-31,-61,1v11,51,120,53,74,114xm48,-122v1,17,44,50,48,16v2,-13,-25,-35,-37,-34v-4,-1,-11,13,-11,18","w":146},"\u00b6":{"d":"13,-160v0,-84,83,-106,160,-77v8,19,1,70,2,106v3,86,-44,136,-125,140v-8,-1,-15,-19,-6,-21v106,5,112,-84,108,-193v-3,-5,-10,-7,-20,-7v2,11,3,33,3,65v1,73,-21,116,-87,120v-16,1,-21,-18,-14,-29v40,15,81,-8,74,-51v-38,25,-95,1,-95,-53xm113,-130v2,-22,1,-62,0,-83v-29,-13,-54,11,-54,50v0,42,28,49,54,33","w":195},"\u00df":{"d":"120,-150v28,11,51,30,51,64v0,38,-26,72,-75,88v-3,2,-18,-25,-17,-26v27,-15,52,-34,52,-58v0,-30,-27,-46,-56,-36v-2,0,-4,-9,-4,-27v18,-12,37,-24,37,-44v0,-18,-7,-27,-21,-27v-17,-1,-30,18,-29,36r4,177v-6,10,-21,-2,-38,3v-3,0,-4,-1,-4,-5r2,-94r-2,-75v-1,-39,28,-73,66,-73v59,0,70,69,34,97","w":180},"\u00ae":{"d":"111,-246v54,0,98,52,98,109v0,57,-44,109,-98,109v-54,0,-98,-53,-98,-109v0,-57,44,-109,98,-109xm113,-213v67,0,68,70,35,95v0,1,7,17,21,46v54,-57,6,-183,-83,-153v-13,4,-22,8,-19,14v12,-1,28,-2,46,-2xm136,-161v0,-24,-24,-33,-49,-27r-1,44v22,2,50,4,50,-17xm105,-114v-34,-7,-7,34,-12,48r-32,1v27,26,72,27,100,0v-52,14,-14,-56,-56,-49xm51,-200v-29,38,-28,96,4,127v9,-18,2,-103,-4,-127","w":222},"\u00a9":{"d":"112,-246v54,0,98,52,98,109v0,56,-44,109,-98,109v-54,0,-98,-52,-98,-109v0,-58,42,-109,98,-109xm112,-47v45,0,79,-44,79,-90v0,-45,-34,-90,-79,-90v-45,0,-80,43,-80,90v0,46,35,90,80,90xm50,-138v-5,-56,67,-92,106,-57r-13,24v-26,-19,-58,-8,-58,33v0,39,31,49,57,35v4,0,12,20,13,23v-38,33,-112,-2,-105,-58","w":222},"\u00b4":{"d":"72,-254v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":125},"\u00a8":{"d":"91,-255v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm26,-255v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":125},"\u00c6":{"d":"182,-86v2,27,-8,51,22,51v25,0,53,-3,81,-5v8,8,-4,26,-3,38v-35,8,-91,-4,-135,2v-14,-4,-1,-33,-5,-55v-21,-2,-62,-6,-71,4v-6,12,-18,47,-24,51v-18,-2,-48,7,-35,-22r100,-220v35,-10,112,-3,161,-8v10,3,21,37,2,37v-23,0,-47,1,-75,2v-25,-6,-16,32,-18,58v14,25,60,-2,98,9v-3,11,2,30,-7,36v-16,3,-105,-23,-91,22xm139,-203v-27,46,-54,114,-51,112v13,8,45,0,54,0v-2,-37,2,-79,-3,-112","w":297},"\u00d8":{"d":"221,-243v4,3,17,16,7,22r-200,222v-6,4,-5,2,-10,-5v-2,-4,-4,-7,-5,-9v2,-1,232,-261,208,-230xm131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87","w":261},"\u00b1":{"d":"135,-114r-51,0r0,44r-21,0r0,-44r-51,0r0,-20r51,0r0,-47r21,0r0,47r51,0r0,20xm136,-33r-124,0r0,-22r124,0r0,22","w":147},"\u00a5":{"d":"22,-214v7,-9,34,-2,45,0r-1,47r101,0v2,-16,-5,-39,2,-49v8,-1,21,-2,39,-2v10,4,2,37,3,49v27,-8,17,10,19,29v-1,4,-22,3,-30,2v-7,11,-18,25,-33,44v17,0,40,-5,54,-1v-1,11,5,27,-3,32r-77,1r-4,62v-14,-4,-37,7,-44,-5v-1,-19,4,-41,-1,-57v-52,-1,-77,-1,-77,-1v-3,0,-5,-4,-5,-13v-8,-38,33,-14,57,-18v-8,-9,-19,-24,-33,-44v-8,-2,-33,9,-31,-9v2,-26,-11,-20,20,-22xm156,-139r-77,0v16,19,30,34,41,45v11,-11,22,-25,36,-45","w":236},"\u00b5":{"d":"119,0r-23,0r0,-5v-11,5,-47,10,-54,-2r0,72r-23,0r0,-236r23,0r0,127v-3,29,33,26,54,21r0,-148r23,0r0,171","w":137},"\u03bc":{"d":"119,0r-23,0r0,-5v-11,5,-47,10,-54,-2r0,72r-23,0r0,-236r23,0r0,127v-3,29,33,26,54,21r0,-148r23,0r0,171","w":137},"\u00aa":{"d":"124,-246v6,1,32,0,30,10v-10,44,-2,86,-2,129v0,11,-21,2,-31,6r-6,-22v-37,51,-106,10,-106,-51v0,-64,78,-100,109,-49v5,-5,0,-16,6,-23xm150,-57v-38,3,-94,1,-132,0v1,-16,-3,-25,4,-29r127,1v7,4,0,7,1,28xm81,-130v41,-1,44,-89,-1,-88v-21,0,-35,21,-35,43v0,25,12,45,36,45","w":165},"\u00ba":{"d":"82,-251v37,0,67,37,67,76v0,39,-30,76,-67,76v-37,0,-67,-37,-67,-76v0,-39,30,-76,67,-76xm141,-57v-39,2,-82,1,-118,0v1,-16,-3,-26,5,-29r112,1v7,2,1,17,1,28xm83,-130v44,0,44,-90,0,-90v-45,0,-48,91,0,90","w":165},"\u00e6":{"d":"187,-161v51,-39,132,14,113,78v-19,16,-78,10,-116,17v7,43,82,45,103,13r14,26v-18,32,-96,42,-118,9r1,18v-9,1,-25,2,-35,0r-1,-29v-17,20,-30,32,-61,33v-47,2,-79,-41,-79,-88v0,-80,92,-125,142,-59r7,-25v2,0,12,3,30,7xm224,-142v-22,0,-42,18,-40,40v0,4,1,6,4,6v7,0,28,-2,63,-5v7,-1,10,-3,10,-6v1,-17,-20,-35,-37,-35xm97,-31v28,0,48,-26,48,-55v0,-29,-21,-54,-48,-54v-29,0,-48,24,-49,55v-1,30,21,54,49,54","w":308},"\u00f8":{"d":"156,-179v5,-5,8,6,12,11v-44,60,-98,111,-143,169v-6,7,-9,-7,-13,-11v1,-3,151,-180,144,-169xm92,-174v47,0,85,41,85,88v0,48,-38,90,-85,90v-47,0,-85,-42,-85,-89v0,-47,38,-89,85,-89xm92,-32v27,0,48,-25,48,-53v0,-28,-20,-53,-48,-53v-28,0,-48,25,-48,53v0,28,21,53,48,53","w":184},"\u00bf":{"d":"81,-247v12,0,23,11,22,24v0,13,-9,24,-22,24v-14,0,-23,-11,-23,-24v0,-12,10,-24,23,-24xm54,-74v-2,47,62,39,79,18v4,0,6,8,6,27v7,23,-49,30,-64,32v-74,7,-85,-98,-32,-133v21,-14,28,-24,27,-46v4,-5,28,-14,28,3v0,45,-42,59,-44,99","w":143},"\u00a1":{"d":"43,-247v14,0,23,11,23,25v0,13,-9,24,-23,24v-14,0,-22,-11,-22,-24v0,-13,8,-25,22,-25xm49,-181v12,42,22,124,14,185v-13,-2,-26,-2,-39,0v-4,-67,-7,-111,9,-182v3,-4,10,-2,16,-3","w":83},"\u00ac":{"d":"145,-58r-22,0r0,-52r-102,0r0,-21r124,0r0,73","w":165},"\u00ab":{"d":"172,-137v0,8,-41,33,-49,36v12,9,48,27,48,38v-2,3,-7,18,-13,27v-17,-14,-44,-35,-68,-46v-5,-5,-5,-28,0,-36v23,-11,48,-32,69,-46xm94,-137v-1,7,-37,30,-49,37v13,9,52,26,48,37v-3,5,-6,19,-12,27v-19,-15,-42,-32,-68,-46v-5,-5,-8,-30,0,-36v27,-13,46,-30,68,-46v5,4,4,8,13,27","w":181},"\u00bb":{"d":"89,-63v-5,-11,41,-32,48,-37v-12,-8,-48,-28,-49,-37v9,-11,6,-42,28,-16v24,19,30,22,54,35v6,5,4,30,-1,36v-30,14,-48,32,-68,46v-5,-5,-6,-15,-12,-27xm10,-137v8,-8,9,-21,14,-27v22,17,42,32,68,46v5,6,5,28,0,36v-32,17,-49,33,-68,46v-6,-5,-5,-17,-13,-28v12,-18,33,-27,49,-36v-12,-9,-49,-29,-50,-37","w":181},"\u00a0":{"w":45},"\u00c0":{"d":"137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7xm80,-321v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19"},"\u00c3":{"d":"134,-292v4,2,22,-16,24,-12v9,9,13,15,13,19v1,5,-31,22,-37,20v-12,2,-28,-12,-37,-12v-8,-3,-17,18,-23,10v-10,-11,-18,-14,-15,-16v3,-8,24,-20,35,-21v9,-1,32,13,40,12xm137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7"},"\u00d5":{"d":"147,-291v3,2,22,-16,24,-11v9,9,13,14,13,18v1,5,-30,23,-37,21v-12,2,-28,-12,-37,-12v-8,-3,-17,18,-23,10v-10,-12,-18,-13,-15,-17v2,-8,23,-20,35,-20v9,0,32,12,40,11xm131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87","w":261},"\u00f7":{"d":"73,-185v9,0,20,9,19,19v1,10,-10,19,-19,19v-22,-1,-23,-37,0,-38xm135,-110r-123,0r0,-22r123,0r0,22xm73,-94v10,-1,20,8,19,18v1,10,-9,20,-19,19v-10,1,-18,-10,-18,-19v0,-9,9,-19,18,-18","w":147},"\u00ff":{"d":"124,-159v5,-10,26,-3,37,-6v4,0,5,15,5,43v0,20,-1,32,-2,36v2,3,-89,139,-92,137v-5,4,-20,6,-46,6v-12,4,-12,-25,-16,-28v0,-3,3,-4,9,-4v29,4,39,-13,45,-31v2,-5,-58,-77,-55,-80v-4,-11,-5,-58,-2,-75v1,-9,26,-2,37,-3v7,4,0,20,2,33v-10,40,29,77,43,92v11,-17,47,-51,37,-90xm115,-222v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm50,-222v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":171},"\u00a4":{"d":"192,-193r-31,31r0,70r31,31r-20,20r-34,-34r-58,0r-34,34r-21,-20r31,-32r0,-69r-31,-31r21,-21r34,34r58,0r34,-34xm133,-101r0,-53r-48,0r0,53r48,0","w":214},"\u00b7":{"d":"38,-158v16,0,28,13,28,28v0,15,-12,29,-28,29v-15,0,-26,-15,-26,-29v0,-14,11,-28,26,-28","w":77},"\u2219":{"d":"38,-158v16,0,28,13,28,28v0,15,-12,29,-28,29v-15,0,-26,-15,-26,-29v0,-14,11,-28,26,-28","w":77},"\u00c2":{"d":"115,-284v-6,2,-26,44,-41,24v-6,-3,-8,-5,-8,-5v10,-11,30,-35,37,-52v5,-4,20,-3,26,0v6,17,26,38,38,53v-25,15,-21,9,-52,-20xm137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7"},"\u00ca":{"d":"48,-266v13,-11,30,-41,42,-55v7,1,19,-3,21,3v6,17,26,38,38,52v-24,15,-21,9,-51,-19v-6,1,-26,42,-41,24v-6,-3,-9,-5,-9,-5xm62,-101v6,29,-12,74,28,66v32,1,38,-2,91,-5v8,2,1,15,0,21v-1,6,2,24,-13,21v-30,-6,-107,-3,-145,-2v-4,0,-5,-2,-5,-5r4,-118r-4,-120v29,-10,102,-4,149,-4v15,0,15,36,8,38r-90,-3v-35,-5,-18,31,-22,62v23,16,84,-4,112,5r-3,35v-18,7,-65,-2,-102,1v-5,0,-7,3,-8,8","w":193},"\u00c1":{"d":"137,-251v4,9,115,267,95,251v-13,0,-28,-2,-40,0v-7,4,-19,-60,-28,-54r-95,0v-4,0,-10,9,-13,27v-5,39,-25,27,-54,25v13,-43,28,-85,45,-126r51,-123v13,2,26,2,39,0xm129,-92v47,0,21,-11,9,-53v-8,-27,-18,-44,-22,-52v-24,62,-36,95,-36,98v3,11,33,7,49,7xm140,-319v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42"},"\u00cb":{"d":"62,-101v6,29,-12,74,28,66v32,1,38,-2,91,-5v8,2,1,15,0,21v-1,6,2,24,-13,21v-30,-6,-107,-3,-145,-2v-4,0,-5,-2,-5,-5r4,-118r-4,-120v29,-10,102,-4,149,-4v15,0,15,36,8,38r-90,-3v-35,-5,-18,31,-22,62v23,16,84,-4,112,5r-3,35v-18,7,-65,-2,-102,1v-5,0,-7,3,-8,8xm125,-302v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm60,-302v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":193},"\u00c8":{"d":"62,-101v6,29,-12,74,28,66v32,1,38,-2,91,-5v8,2,1,15,0,21v-1,6,2,24,-13,21v-30,-6,-107,-3,-145,-2v-4,0,-5,-2,-5,-5r4,-118r-4,-120v29,-10,102,-4,149,-4v15,0,15,36,8,38r-90,-3v-35,-5,-18,31,-22,62v23,16,84,-4,112,5r-3,35v-18,7,-65,-2,-102,1v-5,0,-7,3,-8,8xm75,-318v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":193},"\u00cd":{"d":"64,-125r3,121v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121r-4,-117v2,-12,28,0,44,-5v3,0,4,2,4,4xm69,-314v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":85},"\u00ce":{"d":"-8,-266v13,-11,30,-41,42,-55v8,1,20,-3,22,3v6,17,26,38,38,52v-25,15,-21,9,-52,-20v-6,1,-26,43,-41,25v-6,-3,-9,-5,-9,-5xm64,-125r3,121v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121r-4,-117v2,-12,28,0,44,-5v3,0,4,2,4,4","w":85},"\u00cf":{"d":"64,-125r3,121v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121r-4,-117v2,-12,28,0,44,-5v3,0,4,2,4,4xm69,-302v43,-8,23,21,29,41v-5,4,-38,8,-42,-1v3,-15,-10,-46,13,-40xm4,-302v34,-7,18,23,22,42v-6,7,-27,-1,-38,3v-7,-5,0,-29,-4,-41v0,-8,13,-3,20,-4","w":85},"\u00cc":{"d":"64,-125r3,121v-4,9,-29,-1,-44,4v-3,0,-5,-1,-5,-4r4,-121r-4,-117v2,-12,28,0,44,-5v3,0,4,2,4,4xm18,-315v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":85},"\u00d3":{"d":"131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87xm155,-317v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":261},"\u00d4":{"d":"128,-285v-6,1,-27,44,-41,24v-6,-3,-9,-5,-9,-5v10,-11,31,-35,38,-52v5,-4,20,-3,26,0v5,18,26,39,38,53v-25,15,-21,9,-52,-20xm131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87","w":261},"\u00d2":{"d":"131,-252v67,0,119,61,119,129v0,68,-53,128,-119,128v-68,0,-120,-59,-120,-128v0,-69,53,-129,120,-129xm130,-36v45,0,78,-42,78,-88v0,-45,-34,-87,-78,-87v-44,0,-77,43,-77,88v0,45,34,87,77,87xm106,-318v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19","w":261},"\u00da":{"d":"175,-76r-2,-167v5,-7,29,0,42,-4v3,0,5,1,5,4r-3,162v3,74,-30,80,-101,85v-140,9,-81,-118,-98,-247v4,-8,35,-3,47,0r-2,161v1,41,13,50,56,50v39,-1,56,-8,56,-44xm156,-311v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42"},"\u00db":{"d":"71,-264v12,-11,29,-41,41,-55v7,1,20,-3,22,3v6,17,26,38,38,52v-25,15,-21,9,-52,-20v-6,1,-25,43,-40,25v-6,-3,-9,-5,-9,-5xm175,-76r-2,-167v5,-7,29,0,42,-4v3,0,5,1,5,4r-3,162v3,74,-30,80,-101,85v-140,9,-81,-118,-98,-247v4,-8,35,-3,47,0r-2,161v1,41,13,50,56,50v39,-1,56,-8,56,-44"},"\u00d9":{"d":"175,-76r-2,-167v5,-7,29,0,42,-4v3,0,5,1,5,4r-3,162v3,74,-30,80,-101,85v-140,9,-81,-118,-98,-247v4,-8,35,-3,47,0r-2,161v1,41,13,50,56,50v39,-1,56,-8,56,-44xm89,-315v10,10,92,35,64,63v-45,-17,-71,-33,-86,-44v1,-2,19,-19,22,-19"},"\u00af":{"d":"20,-233v33,5,72,-4,102,1v-5,5,3,36,-16,31v-32,-2,-63,1,-94,2v-3,0,-5,-2,-5,-5v0,-4,9,-30,13,-29","w":125},"\u02c9":{"d":"20,-233v33,5,72,-4,102,1v-5,5,3,36,-16,31v-32,-2,-63,1,-94,2v-3,0,-5,-2,-5,-5v0,-4,9,-30,13,-29","w":125},"\u00b8":{"d":"29,33v12,13,32,9,32,-9v0,-7,-3,-13,-8,-19v20,-1,29,0,35,15v6,45,-53,68,-78,35","w":125},"\u00a6":{"d":"58,-270v-1,48,5,103,0,147v-11,1,-23,6,-28,1r-2,-145v0,-4,6,-6,19,-6v7,0,11,1,11,3xm58,-88v-1,48,5,103,0,147v-11,1,-23,6,-28,1r-2,-145v0,-4,6,-6,19,-6v7,0,11,1,11,3","w":88},"\u00d0":{"d":"108,-106v-27,4,-75,0,-108,3v-12,-6,-1,-15,5,-35v15,-6,39,-1,106,-4v10,4,-2,18,-3,36xm24,-247v118,-6,212,10,211,122v-1,74,-51,138,-134,124r-78,1v-3,0,-4,-1,-4,-4r3,-116r-3,-123v0,-2,2,-4,5,-4xm85,-35v71,8,106,-30,107,-90v1,-60,-46,-87,-107,-87v-34,0,-21,24,-21,48r0,121v0,4,7,7,21,8","w":244},"\u00f0":{"d":"105,-188v-8,-5,1,-26,10,-33v31,1,67,-5,94,0r-6,30v-1,2,-34,3,-98,3xm145,-247v13,2,35,-7,42,2r-4,135r3,108v-6,5,-26,0,-37,3r-4,-25v-46,59,-138,16,-138,-60v0,-76,92,-120,135,-64v8,-27,-4,-69,3,-99xm95,-31v27,0,48,-26,48,-54v1,-27,-21,-54,-48,-54v-28,0,-49,26,-49,54v0,28,22,54,49,54","w":200},"\u00dd":{"d":"160,-184r-3,-58v2,-12,29,1,44,-5v10,10,1,48,5,67v-3,27,-65,86,-78,120r2,57v-8,8,-32,1,-46,3v-10,-12,3,-42,-1,-60v-7,-35,-65,-79,-76,-118v0,-15,-1,-36,-1,-64v0,-12,28,0,43,-5v2,0,4,1,4,3v-7,78,-6,64,53,133v12,-13,52,-62,54,-73xm135,-314v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":211},"\u00de":{"d":"65,-220v80,-7,152,6,152,86v0,65,-44,97,-116,87v-12,3,-35,-7,-36,7v-1,13,6,33,-1,41v-13,0,-29,-3,-41,-1v-3,0,-4,-1,-4,-5r3,-116r-4,-120v2,-13,28,-1,44,-6v9,4,2,10,3,27xm173,-131v0,-57,-58,-63,-108,-51r0,97v7,8,24,5,57,5v34,0,51,-17,51,-51","w":224},"\u00fe":{"d":"63,-146v46,-59,134,-11,134,61v0,72,-90,124,-134,61v-1,1,-1,25,-1,73v-4,12,-41,6,-40,1r-4,-293v4,-11,29,-3,44,-8v8,24,-5,69,1,105xm110,-31v26,0,46,-27,46,-54v0,-27,-21,-54,-48,-54v-27,0,-45,27,-45,54v0,28,20,54,47,54","w":206},"\u00ad":{"d":"8,-123v37,-4,93,-3,130,1r-5,33r-124,0v-8,-1,2,-22,-1,-34","w":145},"\u2212":{"d":"8,-123v37,-4,93,-3,130,1r-5,33r-124,0v-8,-1,2,-22,-1,-34","w":145},"\u00b9":{"d":"32,-169v-4,-8,-18,4,-25,0v2,-8,-4,-22,3,-25v10,-2,24,-17,31,-23v9,0,23,0,31,6v-7,37,-2,90,-3,137v-3,7,-33,6,-40,2","w":86},"\u00b2":{"d":"5,-197v25,-23,117,-33,117,23v0,26,-20,51,-59,74r65,-3v4,6,0,21,2,34v-33,2,-80,2,-119,-1v-1,-7,-7,-24,0,-29v35,-8,73,-44,70,-66v-5,-31,-58,-10,-70,-1","w":137},"\u00b3":{"d":"7,-78v5,-5,2,-26,11,-26v25,11,64,18,68,-10v4,-24,-42,-17,-62,-22v-5,-39,18,-21,39,-21v11,0,15,-5,15,-14v1,-23,-47,-17,-62,-9v-3,-5,-3,-12,-3,-24v24,-20,107,-15,107,26v0,16,-6,27,-18,32v45,23,15,87,-38,80v-21,-3,-41,-3,-57,-12","w":136},"\u00bd":{"d":"159,-223v2,1,29,14,22,22r-59,103r-60,112r-24,-20xm32,-169v-4,-8,-18,4,-25,0v2,-8,-4,-22,3,-25v10,-2,24,-17,31,-23v9,0,23,0,31,6v-7,37,-2,90,-3,137v-3,7,-33,6,-40,2xm133,-129v25,-23,117,-33,117,23v0,26,-20,51,-59,74r65,-3v4,6,0,21,2,34v-33,2,-80,2,-119,-1v-1,-7,-7,-24,0,-29v35,-8,73,-44,70,-66v-5,-31,-58,-10,-70,-1","w":281},"\u00bc":{"d":"166,-223v2,1,29,14,22,22r-58,103v-21,36,-37,79,-61,112r-24,-20xm238,-137r-2,82v6,0,17,-3,20,1v-3,15,10,32,-15,28v-16,3,14,36,-24,29v-38,6,-12,-14,-22,-29r-61,1v-8,-1,-7,-6,-8,-18v0,-8,1,-12,3,-14v23,-24,47,-65,72,-91v8,1,32,1,37,11xm199,-54r3,-58v-4,7,-33,43,-44,57v8,2,30,0,41,1xm32,-169v-4,-8,-18,4,-25,0v2,-8,-4,-22,3,-25v10,-2,24,-17,31,-23v9,0,23,0,31,6v-7,37,-2,90,-3,137v-3,7,-33,6,-40,2","w":281},"\u00be":{"d":"203,-223v2,2,30,15,23,22r-59,103r-60,112r-24,-20xm257,-137r-3,82v12,-1,24,-4,20,14v1,15,5,15,-15,15v-14,7,13,36,-23,29v-38,5,-15,-12,-22,-29v-22,-3,-57,9,-69,-5v-3,-39,22,-42,37,-70v13,-15,23,-33,37,-47v9,1,32,1,38,11xm217,-54v1,-19,5,-39,3,-58r-43,57v7,2,29,0,40,1xm-1,-78v5,-5,2,-26,11,-26v25,11,64,18,68,-10v4,-24,-42,-17,-62,-22v-5,-39,18,-21,39,-21v11,0,15,-5,15,-14v1,-23,-47,-17,-62,-9v-3,-5,-3,-12,-3,-24v24,-20,107,-15,107,26v0,16,-6,27,-18,32v45,23,15,87,-38,80v-21,-3,-41,-3,-57,-12","w":281},"\u00fd":{"d":"124,-159v5,-10,26,-3,37,-6v4,0,5,15,5,43v0,20,-1,32,-2,36v2,3,-89,139,-92,137v-5,4,-20,6,-46,6v-12,4,-12,-25,-16,-28v0,-3,3,-4,9,-4v29,4,39,-13,45,-31v2,-5,-58,-77,-55,-80v-4,-11,-5,-58,-2,-75v1,-9,26,-2,37,-3v7,4,0,20,2,33v-10,40,29,77,43,92v11,-17,47,-51,37,-90xm112,-248v9,-1,16,11,26,16v2,7,-76,49,-83,46v-3,1,-7,-16,-7,-20v18,-15,42,-23,64,-42","w":171},"\u00d7":{"d":"110,-164v6,1,27,17,17,27r-33,33v12,13,27,23,36,39v-1,6,-16,28,-26,18r-34,-34v-13,12,-22,27,-38,36v-7,0,-28,-16,-18,-26r33,-33v-12,-13,-27,-23,-36,-39v1,-6,16,-28,26,-18r33,34v14,-12,25,-27,40,-37","w":145}}});

/*
 * Superfish v1.4.8 - jQuery menu widget
 * Copyright (c) 2008 Joel Birch
 *
 * Dual licensed under the MIT and GPL licenses:
 * 	http://www.opensource.org/licenses/mit-license.php
 * 	http://www.gnu.org/licenses/gpl.html
 *
 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
 */

;(function($){
	$.fn.superfish = function(op){

		var sf = $.fn.superfish,
			c = sf.c,
			$arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
			over = function(){
				var $$ = $(this), menu = getMenu($$);
				clearTimeout(menu.sfTimer);
				$$.showSuperfishUl().siblings().hideSuperfishUl();
			},
			out = function(){
				var $$ = $(this), menu = getMenu($$), o = sf.op;
				clearTimeout(menu.sfTimer);
				menu.sfTimer=setTimeout(function(){
					o.retainPath=($.inArray($$[0],o.$path)>-1);
					$$.hideSuperfishUl();
					if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
				},o.delay);	
			},
			getMenu = function($menu){
				var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
				sf.op = sf.o[menu.serial];
				return menu;
			},
			addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
			
		return this.each(function() {
			var s = this.serial = sf.o.length;
			var o = $.extend({},sf.defaults,op);
			o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
				$(this).addClass([o.hoverClass,c.bcClass].join(' '))
					.filter('li:has(ul)').removeClass(o.pathClass);
			});
			sf.o[s] = sf.op = o;
			
			$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
				if (o.autoArrows) addArrow( $('>a:first-child',this) );
			})
			.not('.'+c.bcClass)
				.hideSuperfishUl();
			
			var $a = $('a',this);
			$a.each(function(i){
				var $li = $a.eq(i).parents('li');
				$a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
			});
			o.onInit.call(this);
			
		}).each(function() {
			var menuClasses = [c.menuClass];
			if (sf.op.dropShadows  && !($.browser.msie && $.browser.version < 7)) menuClasses.push(c.shadowClass);
			$(this).addClass(menuClasses.join(' '));
		});
	};

	var sf = $.fn.superfish;
	sf.o = [];
	sf.op = {};
	sf.IE7fix = function(){
		var o = sf.op;
		if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity!=undefined)
			this.toggleClass(sf.c.shadowClass+'-off');
		};
	sf.c = {
		bcClass     : 'sf-breadcrumb',
		menuClass   : 'sf-js-enabled',
		anchorClass : 'sf-with-ul',
		arrowClass  : 'sf-sub-indicator',
		shadowClass : 'sf-shadow'
	};
	sf.defaults = {
		hoverClass	: 'sfHover',
		pathClass	: 'overideThisToUse',
		pathLevels	: 1,
		delay		: 800,
		animation	: {opacity:'show'},
		speed		: 'normal',
		autoArrows	: true,
		dropShadows : true,
		disableHI	: false,		// true disables hoverIntent detection
		onInit		: function(){}, // callback functions
		onBeforeShow: function(){},
		onShow		: function(){},
		onHide		: function(){}
	};
	$.fn.extend({
		hideSuperfishUl : function(){
			var o = sf.op,
				not = (o.retainPath===true) ? o.$path : '';
			o.retainPath = false;
			var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
					.find('>ul').hide().css('visibility','hidden');
			o.onHide.call($ul);
			return this;
		},
		showSuperfishUl : function(){
			var o = sf.op,
				sh = sf.c.shadowClass+'-off',
				$ul = this.addClass(o.hoverClass)
					.find('>ul:hidden').css('visibility','visible');
			sf.IE7fix.call($ul);
			o.onBeforeShow.call($ul);
			$ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
			return this;
		}
	});

})(jQuery);
/* JavaScript File Visit Beyond										*/
/* functions.js 													*/
/* Modified June 27th 2011								 			*/
/* http://www.visitbeyond.com/		 								*/

$(document).ready(function() { 
						   
// ---------------------------------- target blank - checks for anchor tags that should be open in new window -------------------------------------------------
	
	$('a[rel=external]').attr({'target': '_blank'});
	$('a[rel=nofollow external]').attr({'target': '_blank'});

// ------------------------------------ css - controls the first child and last child for IE browsers ---------------------------------------------------------
	
	$('.topmenu li:last-child').css({'background': 'none', 'padding-right': '0'});
	$('.canvas div.body .content:first-child').css({'min-height': '400px'});
	$('.widget.tabs .data .cell:first-child').css({'display': 'block'});
	$('.slideshow .slider:first-child').css({'display': 'block'});
	$('.transition .ecard:first-child').css({'display': 'block'});
	$('.breadcrumb li:last-child').css({'margin-left': '-8px', 'background-position': '-252px -17px'});
	$('.canvas.subpage div.body .content .box:last-child').css({'margin-top': '0'});
	
	/*if ($.browser.msie && $.browser.version <= '8.0') {
		
		//$('.pagemenu li ul.dropdown li:first-child').css({'border-top': '5px solid #699232'});
		//$('.pagemenu li ul.dropdown li:last-child').css({'border-bottom-width': '5px'});
		$('.pagemenu li ul.dropdown li:last-child:hover').css({'border-bottom-color': '#699232'});
		$('.pagemenu li ul.dropdown li ul li:first-child').css({'border-top': '1px solid #8dad64'});
	}*/
	
	$('.pagemenu').superfish({hoverClass: 'hover', autoArrows: false}); 

// -------------------------------------------- facebook bar - place the facebook bar correctly -------------------------------------------------------
	
	var placement = ($('.topmenu ul').width() + 40 + 'px');
	$('.facebook-bar').css({'right': placement});
	$('.facebook-bar').css({'top': '0px'});

// ---------------------------------------- teaser slider - slides the text panel element up and down ---------------------------------------------------------
	
	$('.slider:visible').each(function (i) {
		
		var startSize =  $('.caption', this).css('height');
		startSize = parseInt(new String(startSize).replace('px', ''));
		
		var height =  $('.slider img').height();
		$('.slider').css({'height' : height});
		
		$('.slider').hover(function () {
			
			var endSize = ($('.caption > p', this).height() + startSize + 12);
			
			if ($('.caption > p', this).height() != null)
				$('.caption', this).stop().animate({bottom: '0px', height: endSize + 'px'},{queue:false, duration:160});
		}, function () {
			if ($('.caption > p', this).height() != null)
				$('.caption', this).stop().animate({bottom: '0px', height: startSize + 'px'},{queue:false, duration:160});
		});
	});
	
//------------------------------------------------------------------ Login focus ---------------------------------------------------------------------------

$('input[name="Login"]').focus();

//-------------------------------------------------------------- search box ----------------------------------------------------------------------------------
	$("#countryHotel").change(function() {
		$("#hotel_city").html('<option value="">Please wait...</option>');
		$.post("/layout/set/clean/find/find_city/"+this.value, { data: ''}, 
			function(data){
				$("#city_div").html(data);
			}
		);
	});
	$("#setSearchTrip").click(function() {
		$("#formtrip").attr("action",'/find/find_result/trip/'+$("#countryTrip").val()+'/'+$("#length_search").val()+'');
		$("#formtrip").submit();
	});

	$("#setSearchHotel").click(function() {
		$("#formhotel").attr("action",'/find/find_result/hotel/'+$("#countryHotel").val()+'/'+$("#hotel_city").val()+'');
		$("#formhotel").submit();
	});
	$("#setSearchMore").click(function() {
		$("#formsearch").attr("action",'/find/find_result/freetext/'+$("#freetext").val()+'');
		$("#formsearch").submit();
	});
	$("#formtrip").submit(function() {
		$("#formtrip").attr("action",'/find/find_result/trip/'+$("#countryTrip").val()+'/'+$("#length_search").val()+'');
	});
	$("#formhotel").submit(function() {
		$("#formhotel").attr("action",'/find/find_result/hotel/'+$("#countryHotel").val()+'/'+$("#hotel_city").val()+'');
	});
	$("#formsearch").submit(function() {
		$("#formsearch").attr("action",'/find/find_result/freetext/'+$("#freetext").val()+'');
	});

//---------------------------------------------------------------- Trip page -----------------------------------------------------------------------------

	//-----  Show price ------
 	$("#li_price").click(function() {
		if($("#price_load").val() != 1)
		{
			$("#id_price").html('<span class="pls_wait">&nbsp;</span>');
			$.post("/layout/set/clean/agent/price/"+$("#location").val()+"/"+$("#tripcode").val(), { node_id: $("#node_price_id").val()}, 
				function(data){
					$("#id_price").html(data);
					$("#price_load").val(1);
				}
			);
		}
	});
	//-----  Show booking ------
	$("#showBooking").click(function() {
		if($("#booking_load").val() != 1)
		{
			$("#id_booking").html('<span class="pls_wait">&nbsp;</span>');
			$.post("/layout/set/clean/agent/booking/"+$("#location").val()+"/"+$("#tripcode").val(), { data: ''}, 
				function(data){
					$("#id_booking").html(data);
					$("#booking_load").val(1);
				}
			);
		}
	});
	var havebook = $("div.tripinfo").find("div.booking");
	if(havebook.length > 0)
	{
		$("#id_booking").html('<span class="pls_wait">&nbsp;</span>');
		$.post("/layout/set/clean/agent/booking/"+$("#location").val()+"/"+$("#tripcode").val(), { node_id: $("#node_id").val()}, 
			function(data){
				$("#id_booking").html(data);
				$("#booking_load").val(1);
			}
		);
	}
//----------------------------------------------------------------- Transfer page -------------------------------------------------------------------------
	$("#searchTransfer").live('click', function() {
		$("#listbooking").html('<span class="pls_wait"></span>');
		$.post("/layout/set/clean/agent/transfer_find/"+$("#start_city").val()+"/"+$("#end_city").val()+"/"+$("#location").val(), { data: ''}, 
			function(data){
				$("#listbooking").html(data);
			}
		);
	});
//------------------------------------------------------------------ My booking ---------------------------------------------------------------------------
	$("#mb_location").change(function() {
		location = '/agent/mybooking/'+this.value;
	});

//----------------------------------------------------------------- Booking Trip,Hotel,Transfer,Ap --------------------------------------------------------
	
	$("#checkBooking").live('click', function() {
		if($('#adult').val() < 1)
		{
			document.getElementById('warning1').style.display = '';
			document.getElementById('warning1').innerHTML ="<div class='feedback warning1'> <strong>You have to fill in adult before posting the form</strong></div>";
			document.getElementById('adult').focus();
			return false;
		}
		document.getElementById('warning1').style.display = 'none';

		document.getElementById('datetoavail').value = document.getElementById('datefromavail').value;
		opt = $('#opt').val();
		id_adult = 'adult'+opt;
		id_kid = 'kid'+opt;
		$("#id_checking").html('<span class="pls_wait">&nbsp;</span>');
		$.post("/layout/set/clean/agent/checking/"+$('#opt').val()+"/"+$('#datefromavail').val()+"/"+$('#datetoavail').val()+"/"+$('#'+id_adult).val()+"/"+$('#'+id_kid).val()+"/"+$('#location').val(), { data: ''}, 
			function(data){
				$("#id_checking").html(data);
			}
		);
	});
//----------------------------------------------------------------- Change Calenda ------------------------------------------------------------------------
	$(".opt").live('click', function() {
		opt = $(this).val();
		$("div .calendar").hide();
		$("#"+opt).show();
		optval = parseInt($('#optval').val());
		value = (optval+1)%2;
		$('#optval').val(value);
	});
//----------------------------------------------------------------- Check Price ---------------------------------------------------------------------------
	$("#checkAllPrice").live('click', function() {
		$("#id_checkingprice").html('<span class="pls_wait">&nbsp;</span>');
		var pax=new Array();
		var roomtype = new Array();
		var paxtype = new Array();
		if($("#stype").val() == 'N' || $("#stype").val() == 'A')
		{
			pax[0] = $("#pax0").val();
			paxtype[0] = new Array();

			for(j=0;j<pax[0];j++)
			{
				var selectpax = $('#data0_'+j).find("div.selectpax");
				var paxselectcheck = $(selectpax).find("input.setNewpax");
				//alert('#data'+i+'_'+j+' : '+paxselectcheck.length);
				if(paxselectcheck.length == 1)
				{
					psid = document.getElementById("personid[0]["+j+"]").value;
					paxtype[0][j] = $("#pax"+psid).val();
				}
				else
				{
					//alert(document.getElementById("paxtype[0]["+j+"]").value);
					paxtype[0][j] = document.getElementById("paxtype[0]["+j+"]").value;
				}
			}
			len = 1;
		}
		else
		{
			for(i=0;i<$("#number_room").val();i++)
			{
				roomtype[i] = document.getElementById("roomtype["+i+"]").value;
				pax[i] = $("#pax"+i).val();
				paxtype[i] = new Array();
				for(j=0;j<pax[i];j++)
				{
					var selectpax = $('#data'+i+'_'+j).find("div.selectpax");
					var paxselectcheck = $(selectpax).find("input.setNewpax");
					if(paxselectcheck.length == 1)
					{
						psid = document.getElementById("personid["+i+"]["+j+"]").value;
						paxtype[i][j] = $("#pax"+psid).val();
					}
					else
					{
						paxtype[i][j] = document.getElementById("paxtype["+i+"]["+j+"]").value;
					}	
				}
			}
			len = $("#number_room").val();
		}
		$.post("/layout/set/clean/agent/checkingprice/"+$("#opt").val()+"/"+$("#location").val()+"/"+$("#datefrom").val()+"/"+$("#dateto").val(), {room:len,pax:pax,roomtype:roomtype,length:$("#SCUqty").val(),paxtype:paxtype,stype:$("#stype").val()}, 
			function(data){
				$("#id_checkingprice").html(data);
			}
		);
	});
	
//------------------------------------------------------------------ Send Booking ------------------------------------------------------------------------
	$("#sendBooking").live('click', function() {
		if($('#qouteid').val() == '')
		{
			if($('#name').val()=='')
			{
				$('#name').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in name before posting the form</strong></div>");
				return false;
			}
			if($('#consultant').val() == '')
			{
				$('#consultant').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in consultant before posting the form</strong></div>");
				return false;
			}
			if($('#email').val() =='')
			{
				$('#email').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in email before posting the form</strong></div>");
				return false;
			}
			if($('#agentref').val() =='')
			{
				$('#agentref').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in agentref before posting the form</strong></div>");
				return false;
			}
		}
		title_array = new Array();
		fname_array = new Array();
		lname_array = new Array();
		pid_array = new Array();
		ptype_array = new Array();
		if($('#stype').val() == 'N' || $('#stype').val() == 'A')
		{
			pax = $('#pax0').val();
			for(i=0;i<pax;i++)
			{
				if($("#paxname").val() != '')
				{
					if((i+1) <= $("#paxname").val())
					{
						if(document.getElementById('newpax'+i).checked)
						{
							if(document.getElementById('title[0]['+i+']').value=='')
							{
								document.getElementById('title[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('fname[0]['+i+']').value=='')
							{
								document.getElementById('fname[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('lname[0]['+i+']').value=='')
							{
								document.getElementById('lname[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
								return false;
							}
							
							if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
							{
								if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
								{
									if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
									{
										if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
										{
											$('#warning').show();
											$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
											return false;
										}
									}
								}
							}
							
							title_array[i] = document.getElementById('title[0]['+i+']').value;
							fname_array[i] = document.getElementById('fname[0]['+i+']').value;
							lname_array[i] = document.getElementById('lname[0]['+i+']').value;
							ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
						}
						else
						{
							if(in_array(document.getElementById('personid[0]['+i+']').value,pid_array))
							{
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
								return false;
							}
							pid_array[i] = document.getElementById('personid[0]['+i+']').value;
						}
						
					}
					else
					{
						if(document.getElementById('title[0]['+i+']').value=='')
						{
							document.getElementById('title[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('fname[0]['+i+']').value=='')
						{
							document.getElementById('fname[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('lname[0]['+i+']').value=='')
						{
							document.getElementById('lname[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
							return false;
						}

						if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
						{
							if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
							{
								if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
								{
									if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
									{
										$('#warning').show();
										$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
										return false;
									}
								}
							}
						}

						title_array[i] = document.getElementById('title[0]['+i+']').value;
						fname_array[i] = document.getElementById('fname[0]['+i+']').value;
						lname_array[i] = document.getElementById('lname[0]['+i+']').value;
						ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
					}
				}
				else
				{
					if(document.getElementById('title[0]['+i+']').value=='')
					{
						document.getElementById('title[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('fname[0]['+i+']').value=='')
					{
						document.getElementById('fname[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('lname[0]['+i+']').value=='')
					{
						document.getElementById('lname[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
						return false;
					}
					
					if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
						{
							if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
							{
								if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
								{
									if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
									{
										$('#warning').show();
										$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
										return false;
									}
								}
							}
						}
					
					title_array[i] = document.getElementById('title[0]['+i+']').value;
					fname_array[i] = document.getElementById('fname[0]['+i+']').value;
					lname_array[i] = document.getElementById('lname[0]['+i+']').value;
					ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
				}
			}
		}
		else if($('#stype').val() == 'Y' || $('#stype').val() == 'P')
		{
			if($('#SCUqty').val()=='')
			{
				$('#SCUqty').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in  length  before posting the form</strong></div>");
				return false;
			}
			numroom = $('#number_room').val();
			if($("#paxname").val() != '')
			{
				for(i=0;i<numroom;i++)
				{	
					pax = $('#pax'+i).val();
					for(j=0;j<pax;j++)
					{
						var selectpax = $('#data'+i+'_'+j).find("div.selectpax");
						var paxselectcheck = $(selectpax).find("input.setNewpax");
						//alert('#data'+i+'_'+j+' : '+paxselectcheck.length);
						if(paxselectcheck.length == 0)
						{
							if(document.getElementById('title['+i+']['+j+']').value=='')
							{
								document.getElementById('title['+i+']['+j+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('fname['+i+']['+j+']').value=='')
							{
								document.getElementById('fname['+i+']['+j+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('lname['+i+']['+j+']').value=='')
							{
								document.getElementById('lname['+i+']['+j+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
								return false;
							}
							if(in_array(document.getElementById('title['+i+']['+j+']').value,title_array))
							{
								if(in_array(document.getElementById('fname['+i+']['+j+']').value,fname_array))
								{
									if(in_array(document.getElementById('lname['+i+']['+j+']').value,lname_array))
									{
										if(in_array(document.getElementById('paxtype['+i+']['+j+']').value,ptype_array))
										{
											$('#warning').show();
											$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
											return false;
										}
									}
								}
							}
							
							title_array[j] = document.getElementById('title['+i+']['+j+']').value;
							fname_array[j] = document.getElementById('fname['+i+']['+j+']').value;
							lname_array[j] = document.getElementById('lname['+i+']['+j+']').value;
							ptype_array[j] = document.getElementById('paxtype['+i+']['+j+']').value;
						}
						else
						{
							if(in_array(document.getElementById('personid['+i+']['+j+']').value,pid_array))
							{
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
								return false;
							}
							pid_array[j] = document.getElementById('personid['+i+']['+j+']').value;
						}
					}
				}
			}
			else
			{
				for(i=0;i<numroom;i++)
				{	
					pax = $('#pax'+i).val();
					for(j=0;j<pax;j++)
					{
						if(document.getElementById('title['+i+']['+j+']').value=='')
						{
							document.getElementById('title['+i+']['+j+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('fname['+i+']['+j+']').value=='')
						{
							document.getElementById('fname['+i+']['+j+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('lname['+i+']['+j+']').value=='')
						{
							document.getElementById('lname['+i+']['+j+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
							return false;
						}
						if(in_array(document.getElementById('title['+i+']['+j+']').value,title_array))
						{
							if(in_array(document.getElementById('fname['+i+']['+j+']').value,fname_array))
							{
								if(in_array(document.getElementById('lname['+i+']['+j+']').value,lname_array))
								{
									if(in_array(document.getElementById('paxtype['+i+']['+j+']').value,ptype_array))
									{
										$('#warning').show();
										$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
										return false;
									}
								}
							}
						}
						
						title_array[j] = document.getElementById('title['+i+']['+j+']').value;
						fname_array[j] = document.getElementById('fname['+i+']['+j+']').value;
						lname_array[j] = document.getElementById('lname['+i+']['+j+']').value;
						ptype_array[j] = document.getElementById('paxtype['+i+']['+j+']').value;
					}
				}
			}
		}
		if($('#DropoffTimeAllowed').val() == 'Y')
		{
			if($('#dropoff_hour').val()=='-')
			{
				$('#dropoff_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#dropoff_minute').val()=='-')
			{
				$('#dropoff_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		if($('#PickupTimeAllowed').val() == 'Y')
		{
			if($('#pickup_hour').val()=='-')
			{
				$('#pickup_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#pickup_minute').val()=='-')
			{
				$('#pickup_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		$('#warning').hide();
		$('#isBooking').val(1);
		$("#booking_load").val(0);
		$('#formBooking').submit();
		$("#loading_qoute").html('<span class="pls_wait" style="width:270px;height:50px;">&nbsp;</span>');
	});
//------------------------------------------------------------------ Show detail for booking --------------------------------------------------------------
	$(".showBooking").live('click', function() {
		var data = $.metadata.get(this);
		$("#bookingform").show("slow");
		$("#travelerform").show("slow");
		$("#datefrombooking").val(data.dateformat);
		$("#datebookingfrom").html(data.fulldate);
		//$("#myform select[@name='list'] option[@value='2']").attr("selected","selected");
		$("#dateto select[name='dateto'] option[value='"+data.dateformat+"']").attr("selected","selected");
		//html = "<select name='num_room' id='number_room' class='changeRoom {sg:\""+data.sg+"\",sg_a_max:\""+data.sg_a_max+"\",sg_max:\""+data.sg_max+"\",tw:\""+data.tw+"\",tw_a_max:\""+data.tw_a_max+"\",tw_max:\""+data.tw_max+"\",db:\""+data.db+"\",db_a_max:\""+data.db_a_max+"\",db_max:\""+data.db_max+"\",tr:\""+data.tr+"\",tr_a_max:\""+data.tr_a_max+"\",tr_max:\""+data.tr_max+"\",qd:\""+data.qd+"\",qd_a_max:\""+data.qd_a_max+"\",qd_max:\""+data.qd_max+"\",adult:\""+data.adult+"\",child:\""+data.child+"\",infant:\""+data.infant+"\",title:\""+data.titleArray+"\"}'>";
		html = "";
		for(i=0;i<data.avail;i++)
		{
			if(data.room == (i+1))
				html += "<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>";
			else if($("#number_room").val()==(i+1))
				html += "<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>";
			else
				html += "<option value='"+(i+1)+"'>"+(i+1)+"</option>";
		}
		//html += "</select>";
		//alert(html);
		$("#number_room").html(html);
	});
//------------------------------------------------------------------ Set detail when somebody change pax --------------------------------------------------
	$(".setTravelerDetail").live('click', function() {
		var data = $.metadata.get(this);
		select = $(this).val();
		pax = $("#paxcheck"+data.room).val();
		fixpax = $("#fixpax").val();
		prefill = 1;

		num = select-pax;
		paxselect = parseInt(pax);
		prefillnum = parseInt($("#prefill").val());
		html = "";
		
		if(num>0)
		{
			for(i=0;i<num;i++)
			{
				paxselect = paxselect+1;
				html += "			<div class='data t_data' id='data"+data.room+"_"+(parseInt(pax)+parseInt(i))+"'>";
				//alert(data.paxName+":"+paxselect);
				//if(data.paxName>0 && paxselect<=data.paxName && fixpax < data.paxName)
				if(data.paxName>0 && prefillnum < data.paxName)
				{
					html += "<div class='selectpax'>";
					html += "	<select name='personid["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='personid["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					for(ii=0;ii<data.paxName;ii++)
					{
						html += "<option value="+data.personid[ii].personid+" ";
						if(ii ==(paxselect-1))
							html += "selected='selected'";
						html += ">"+data.personid[ii].selectPax+"</option>";
					}
					html += "</select>";
					html += " <input type='checkbox' name='newpax' id='newpax"+(parseInt(pax)+parseInt(i))+"' value='1' class='setNewpax {room:\""+data.room+"\",index:\""+(parseInt(pax)+parseInt(i))+"\",title:[";
					for(j=0;j<data.title.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
					}
					html += "],paxName:\""+data.paxName+"\",personid:[";
					for(j=0;j<data.personid.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
					}
					html += "]}'>";
					html += "<span id='label"+data.room+"_"+data.index+"'>New pax.</span>";
					html += "</div>";
					prefill++;
					prefillnum++;
				}
				else
				{
					html += "				<div class='t_title'><select name='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					for(j=0;j<data.title.length;j++)
					{
							html += "<option value='"+data.title[j].value+"'>"+data.title[j].value+"</option>";
					}
					html += "				</select></div>";
					html += "				<div class='t_fname'><input type='text' name='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
					html += "				<div class='t_lname'><input type='text' name='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
					html += "					<div class='t_type'><select name='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					if(data.adult=='Y')
						html += "						<option value='A'>Adult</option>";
					if(data.child=='Y')
						html += "						<option value='C'>Child</option>";
					if(data.infant=='Y')
						html += "						<option value='I'>Infant</option>";
					html += "					</select></div>";
				}
				html += "			</div>";
			}
			$("#travelerDetail"+data.room).append(html);
			$("#fixpax").val(parseInt(num)+parseInt($("#fixpax").val()));
		}
		else
		{
			num = pax-select;
			j=1;
			
			for(i=num;i>0;i--)
			{
				var paxselectcheck = $('#data'+data.room+'_'+(pax-j)).find("div.selectpax");
				//alert('#data'+data.room+'_'+(pax-j)+" : num = "+paxselectcheck.length);
				if(paxselectcheck.length == 1)
					prefillnum--;
				$('#data'+data.room+'_'+(pax-j)).remove();
				j++;
			}
			if(num>0)
				$("#fixpax").val(parseInt($("#fixpax").val())-parseInt(num));
		}
		$("#prefill").val(prefillnum);
		$("#paxcheck"+data.room).val(select);
	});

//------------------------------------------------------------------ Set detail when somebody change room --------------------------------------------------
	$(".changeRoom").live('click', function() {	
		var data = $.metadata.get(this);
		select = $(this).val();
		room = $("#roomcheck").val();
		num = select-room;
	
		prefillnum = parseInt($("#prefill").val());
		html = "";
		if(num>0)
		{
			fixpax = prefillnum;
			for(i=0;i<num;i++)
			{	
				html += "<div class='optionparams' id='optionparams"+(parseInt(room)+parseInt(i))+"'>";
				html += "			<div class='data' >";
				html += "				<div>";
				html += "					Room "+((parseInt(room)+parseInt(i))+1); 
				html += "				</div>";
				html += "				<div>";
				html += "					<dl><dt class='pax_count'>Pax:</dt><dd class='pax_count'><select name='pax["+(parseInt(room)+parseInt(i))+"]' id='pax"+(parseInt(room)+parseInt(i))+"' class='setTravelerDetail {room:\""+(parseInt(room)+parseInt(i))+"\",adult:\""+data.adult+"\",child:\""+data.child+"\",infant:\""+data.infant+"\",title:[";
				for(j=0;j<data.title.length;j++)
				{
					if(j>0)
						html += ",";
					html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
				}
				//alert(data.paxName);
				if($('#paxname').val() == '')
					html += "],paxName:\""+data.paxName+"\"}'>";
				else
				{
					html += "],paxName:"+data.paxName+",personid:[";
					for(j=0;j<data.personid.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
					}
					html += "]}'>";
				}
				
				if(data.sg == 'Y')
				{
					count = data.sg_max;
					count_a = data.sg_a_max;
				}
				else if(data.tw == 'Y')
				{
					count = data.tw_max;
					count_a = data.tw_a_max;
				}
				else if(data.db == 'Y')
				{
					count = data.db_max;
					count_a = data.db_a_max;
				}
				else if(data.tr == 'Y')
				{
					count = data.tr_max;
					count_a = data.tr_a_max;
				}
				else if(data.qd == 'Y')
				{
					count = data.qd_max;
					count_a = data.qd_a_max;
				}
				for(j=1;j<=count;j++)
				{
					if(j==count)
						html +=						"<option value='"+j+"' selected='selected'>"+j+"</option>";
					else
						html +=						"<option value='"+j+"'>"+j+"</option>";
				}
				html += "					</select><input type='hidden' id='paxcheck"+(parseInt(room)+parseInt(i))+"' value='"+count+"'></dd>";
				html += "					<dt class='roomtype'>Room type:</dt><dd class='roomtype'><select id='roomtype["+(parseInt(room)+parseInt(i))+"]' name='roomtype["+(parseInt(room)+parseInt(i))+"]' class='changeRoomtype {room:"+room+",sg_a_max:\""+data.sg_a_max+"\",sg_max:\""+data.sg_max+"\",twin_a_max:\""+data.tw_a_max+"\",twin_max:\""+data.tw_max+"\",db_a_max:\""+data.db_a_max+"\",db_max:\""+data.db_max+"\",tr_a_max:\""+data.tr_a_max+"\",tr_max:\""+data.tr_max+"\",q_a_max:\""+data.qd_a_max+"\",q_max:\""+data.qd_max+"\",title:[";
				for(j=0;j<data.title.length;j++)
				{
					if(j>0)
						html += ",";
					html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
				}
				if($('#paxname').val() == '')
					html += "],paxName:\""+data.paxName+"\"}'>";
				else
				{
					html += "],paxName:"+data.paxName+",personid:[";
					for(j=0;j<data.personid.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
					}
					html += "]}'>";
				}
				if(data.sg=='Y')
					html += "					<OPTION VALUE='SG'>Single</OPTION>";
				if(data.tw=='Y')
					html += "					<OPTION VALUE='TW'>Twin</OPTION>";
				if(data.db=='Y')
					html += "					<OPTION VALUE='DB'>Double</OPTION>";
				if(data.tr=='Y')
					html += "					<OPTION VALUE='TR'>Triple</OPTION>";
				if(data.qd=='Y')
					html += "					<OPTION VALUE='QD'>Quad</OPTION>";
				html += "					</select></dd><dt class='roomcap'>&nbsp;</dt><dd class='roomcap'>";
				html += "					<div id='textMax"+(parseInt(room)+parseInt(i))+"'> Max adults:"+count_a+"  Max adults+children:"+count+" </div></dd></dl>";
				html += "				</div>";
				html += "			</div>";
				html += "				<div class='data_titles'>";
				html += "					<div class='t_title'>Title</div>";
				html += "					<div class='t_fname'>Firstname</div>";
				html += "					<div class='t_lname'>Lastname</div>";
				html += "					<div class='t_type'>Paxtype</div>";
				html += "				</div>";
				html += "           <div id='travelerDetail"+(parseInt(room)+parseInt(i))+"' class='travelerDetail'>";
				//alert(count);
				for(j=0;j<count;j++)
				{
					html += "				<div class='data t_data' id='data"+(parseInt(room)+parseInt(i))+"_"+j+"'>";
					fixpax++;
					//alert("i: "+i+",j:"+j+", fixpax:"+fixpax+" , paxname : "+data.paxName);
					if(fixpax <= data.paxName )
					{
						html += "<div class='selectpax'>";
						html += "	<select name='personid["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='personid["+(parseInt(room)+parseInt(i))+"]["+j+"]'>";
						for(ii=0;ii<data.paxName;ii++)
						{
							html += "<option value="+data.personid[ii].personid+" ";
							if(ii ==(fixpax-1))
								html += "selected='selected'";
							html += ">"+data.personid[ii].selectPax+"</option>";
						}
						html += "</select>";
						html += " <input type='checkbox' name='newpax' id='newpax"+(parseInt(room)+parseInt(i))+"' value='1' class='setNewpax {room:\""+(parseInt(room)+parseInt(i))+"\",index:\""+j+"\",title:[";
						for(k=0;k<data.title.length;k++)
						{
							if(k>0)
								html += ",";
							html += "{\"index\":\""+k+"\",\"value\":\""+data.title[k]['value']+"\"}";
						}
						if($('#paxname').val() == '')
							html += "],paxName:\""+data.paxName+"\"}'>";
						else
						{
							html += "],paxName:"+data.paxName+",personid:[";
							for(l=0;l<data.personid.length;l++)
							{
								if(l>0)
									html += ",";
								html += "{\"personid\":\""+data.personid[l]['personid']+"\",\"selectPax\":\""+data.personid[l]['selectPax']+"\"}";
							}
							html += "]}'>";
						}
						html += "<span id='label"+data.room+"_"+data.index+"'>New pax.</span>";
						html += "</div>";
						prefillnum++;
					}
					else
					{
						//html += "				<div class='data t_data' id='data"+(parseInt(room)+parseInt(i))+"_"+j+"'>";
						html += "				<div class='t_title'><select name='title["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='title["+(parseInt(room)+parseInt(i))+"]["+j+"]'>";
						for(k=0;k<data.title.length;k++)
						{
							html += "<option value='"+data.title[k]['value']+"'>"+data.title[k]['value']+"</option>";
						}
						html += "				</select></div>";
						
						html += "					<div class='t_fname'><input type='text' name='fname["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='fname["+(parseInt(room)+parseInt(i))+"]["+j+"]'></div>";
						html += "					<div class='t_lname'><input type='text' name='lname["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='lname["+(parseInt(room)+parseInt(i))+"]["+j+"]'></div>";
						html += "					<div class='t_type'><select name='paxtype["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='paxtype["+(parseInt(room)+parseInt(i))+"]["+j+"]'>";
						if(data.adult=='Y')
							html += "						<option value='A'>Adult</option>";
						if(data.child=='Y')
						{
							if(j>(count_a-1))
								html += "						<option value='C' selected='selected'>Child</option>";
							html += "						<option value='C'>Child</option>";
						}
						if(data.infant=='Y')
							html += "						<option value='I'>Infant</option>";
						html += "					</select></div>";
						//html += "				</div>";
					}
					html += "           </div>";
				}
				//html += "           </div>";
				html += "		</div>";
			}
			$("#fixpax").val(fixpax);
			$("#traveler").append(html);
		}
		else
		{
			num = room-select;
			j=1;
			for(i=num;i>0;i--)
			{
				var traveler = $('#optionparams'+(room-j)).find('div#travelerDetail'+(room-j));
				var dataa = $('.optionparams').find('div.data');
				var tdata = $(traveler).find('div.t_data');
				var selectpax = $(tdata).find('div.selectpax');
				prefillnum = prefillnum-selectpax.length;
				$('#optionparams'+(room-j)).remove();
				
				j++;
			}
			//$("#optionparams").remove();
		}
		$("#prefill").val(prefillnum);
		$("#roomcheck").val(select);
	});
//------------------------------------------------------------------ Transfer booking popup --------------------------------------------------------------
	//------------------- Open popup ---------------------------------
	$(".transferBooking").live('click', function() {
		var data = $.metadata.get(this);
		window.open(data.link,null,'height=700,width=550,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no');
	});
	//------------------- Check availability -------------------------
	$("#CheckBookingTransfer").live('click', function() {
		//if($('#datefromavail').val() > $('#datetoavail').val())
		//{
			$('#datetoavail').val($('#datefromavail').val());
		//}
		$('#isChecking').val(1);
		$("#loading").show();
		$("#loading").html('<span class="pls_wait" style="width:270px;height:50px;">&nbsp;</span>');
		$('#formAvail').submit();
	});
	//------------------- show detail transfer booking ----------------
	$(".showBookingTransfer").live('click', function() {
		var data = $.metadata.get(this);
		$("#bookingform").show("slow");
		$("#travelerform").show("slow");
		$("#datefrombooking").val(data.dateformat);
		$("#datebookingfrom").html(data.fulldate);
		$("#dateto select[name='dateto'] option[value='"+data.dateformat+"']").attr("selected","selected");
		html = "";
		for(i=0;i<data.avail;i++)
		{
			if(data.room == (i+1))
				html += "<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>";
			else if($("#roomcheck").val()==(i+1))
				html += "<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>";
			else
				html += "<option value='"+(i+1)+"'>"+(i+1)+"</option>";
		}
		//html += "</select>";

		$("#number_room").html(html);
	});
	//------------------- set Traveldetail when somebody change pax -----
	$(".setTravelerDetailTransfer").live('click', function() {
		var data = $.metadata.get(this);
		select = $(this).val();
		pax = $("#paxcheck"+data.room).val();
		num = select-pax;
		html = "";
		if(num>0)
		{
			for(i=0;i<num;i++)
			{
				html += "			<div class='data t_data' id='data"+data.room+"_"+(parseInt(pax)+parseInt(i))+"'>";
				html += "				<div class='t_title'><select name='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
				for(j=0;j<data.title.length;j++)
				{
					html += "<option value='"+data.title[j]['value']+"'>"+data.title[j]['value']+"</option>";
				}
				html += "				</select></div>";
				html += "				<div class='t_lname'><input type='text' name='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
				html += "				<div class='t_fname'><input type='text' name='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
				html += "					<div class='t_type'><select name='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";

				if(data.adults > 0)
					html += "						<option value='A' SELECTED='selected'>Adult</option>";
				else
					html += "						<option value='A' >Adult</option>";
				if(data.child=='Y')
				{
					if(data.adults < 1)
						html += "						<option value='C' SELECTED='selected'>Child</option>";
					else
						html += "						<option value='C'>Child</option>";
				}
	
				if(data.infant=='Y')
					html += "						<option value='I'>Infant</option>";
				html += "					</select></div>";
				html += "			</div>";
				data.adults--;
				if(i == (data.max-1))
				{
					break;
				}
			}
			if(data.edit==1)
			{
				$("#travelerDetail"+data.room).html('');
				option_num = document.getElementById("pax"+data.room).getElementsByTagName("option").length;
				roomtype_num = document.getElementById("roomtype["+data.room+"]").getElementsByTagName("option").length;
				for(i=option_num;i<data.max;i++)
				{
					if(i==data.max)
						$("#pax"+data.room).append("<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>");
					else
						$("#pax"+data.room).append("<option value='"+(i+1)+"'>"+(i+1)+"</option>");
					
				}
				for(i=0;i<roomtype_num;i++)
				{
					if(document.getElementById("roomtype["+data.room+"]").options[i].value == data.roomtype)
						document.getElementById("roomtype["+data.room+"]").options.item(i).selected = true;
				}
			}
			$("#travelerDetail"+data.room).append(html);
		}
		else
		{
			num = pax-select;
			j=1;
			for(i=num;i>0;i--)
			{
				$('#data'+data.room+'_'+(pax-j)).remove();
				j++;
			}
		}
		$("#paxcheck"+data.room).val(select);
		document.getElementById("pax"+data.room).options.item((select-1)).selected = true;
	});
	//----------------------------- Check booking transfer ------------------------------------
	$("#sendBookingTransfer").live('click', function() {
		if($('#qouteid').val() == '')
		{
			if($('#name').val()=='')
			{
				$('#name').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in name before posting the form</strong></div>");
				return false;
			}
			if($('#consultant').val() == '')
			{
				$('#consultant').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in consultant before posting the form</strong></div>");
				return false;
			}
			if($('#email').val() =='')
			{
				$('#email').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in email before posting the form</strong></div>");
				return false;
			}
			if($('#agentref').val() =='')
			{
				$('#agentref').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in agentref before posting the form</strong></div>");
				return false;
			}
		}
		if($('#stype').val() == 'N' || $('#stype').val() == 'A')
		{
			pax = $('#pax0').val();
			for(i=0;i<pax;i++)
			{
				if(document.getElementById('title[0]['+i+']').value=='')
				{
					document.getElementById('title[0]['+i+']').focus();
					$('#warning').show();
					$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
					return false;
				}
				if(document.getElementById('fname[0]['+i+']').value=='')
				{
					document.getElementById('fname[0]['+i+']').focus();
					$('#warning').show();
					$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
					return false;
				}
				if(document.getElementById('lname[0]['+i+']').value=='')
				{
					document.getElementById('lname[0]['+i+']').focus();
					$('#warning').show();
					$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
					return false;
				}
			}
		}
		else if($('#stype').val() == 'Y' || $('#stype').val() == 'P')
		{
			if($('#SCUqty').val()=='')
			{
				$('#SCUqty').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in  length  before posting the form</strong></div>");
				return false;
			}
			numroom = $('#number_room').val();
			for(i=0;i<numroom;i++)
			{	
				pax = $('#pax'+i).val();
				for(j=0;j<pax;j++)
				{
					if(document.getElementById('title['+i+']['+j+']').value=='')
					{
						document.getElementById('title['+i+']['+j+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('fname['+i+']['+j+']').value=='')
					{
						document.getElementById('fname['+i+']['+j+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('lname['+i+']['+j+']').value=='')
					{
						document.getElementById('lname['+i+']['+j+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
						return false;
					}
				}
			}
		}
		if($('#DropoffTimeAllowed').val() == 'Y')
		{
			if($('#dropoff_hour').val()=='-')
			{
				$('#dropoff_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#dropoff_minute').val()=='-')
			{
				$('#dropoff_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		if($('#PickupTimeAllowed').val() == 'Y')
		{
			if($('#pickup_hour').val()=='-')
			{
				$('#pickup_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#pickup_minute').val()=='-')
			{
				$('#pickup_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		$('#warning').hide();
		$('#isBooking').val(1);
		$('#formBooking').submit();
	});
//-------------------- Transfer Booking , Edit booking ------------------------
	if($('div#transfer').find("input#transferBooking").length>0)
	{
		opener.location.reload()
		window.close();
	}
	if($('div#edit').find("input#editBooking").length>0)
	{
		url = opener.location;
		alert("This service is edit already.Please wait for loading.");
		//opener.location = url;
		//opener.location.replace(url)
		opener.location = "/agent/bookingdetail/"+$("#bookingIdEdit").val()+"/"+$("#locationEdit").val();
		window.close();
	}
//------------------------------------------------------------------ Booking-quote widget -----------------------------------------------------------------
	$("#confirmBookingQb").live('click', function() {
		$('#action').val('confirm');
		$('#formaction').submit();
	});
	$("#saveAsQb").live('click', function() {
		$('#action').val('save');
		$('#formaction').submit();
	});
	$("#cancelBookingQb").live('click', function() {
		if(confirm('Cancel policy: \n 10. CANCELLATION OF A SERVICE BY THE CLIENT/AGENT \n Customers and booking agents must notify Visit Beyond of any cancellations.\n Visit Beyond will not provide discounts or refunds for missed or unused \n services, whether voluntary or involuntary.\n The following cancellation and no-show fees are expressed as a percentage of the total tour price:\n - 100% refund if cancellation is received one month prior to arrival\n - 50% refund if cancellation is received 15 to 29 days prior to arrival\n - No refund if cancellation is received less than 15 days prior to arrival.\n\n Visit Beyond Tailored Trips may vary in cancellation policy from that detailed\n in this clause. The cancellation policy for Tailored Trips will be made clear\n upon booking confirmation if the refund policy is more strict than outlined\n above. Customers can locate the most recent and updated cancellation terms on www.visitbeyond.com.'))
		{
			$('#action').val('cancel');
			$('#formaction').submit();
		}
	});
//----------------------------------------------------------------- Booking Detail ------------------------------------------------------------------------ 
	$("#checkConfirmBooking").live('click', function() {
		if(confirm('Are you sure?'))
		{
			$('#booking').submit();
		}
	});
	$("#checkCancelBooking").live('click', function() {
		if(confirm('Cancel policy: \n 10. CANCELLATION OF A SERVICE BY THE CLIENT/AGENT \n Customers and booking agents must notify Visit Beyond of any cancellations.\n Visit Beyond will not provide discounts or refunds for missed or unused \n services, whether voluntary or involuntary.\n The following cancellation and no-show fees are expressed as a percentage of the total tour price:\n - 100% refund if cancellation is received one month prior to arrival\n - 50% refund if cancellation is received 15 to 29 days prior to arrival\n - No refund if cancellation is received less than 15 days prior to arrival.\n\n Visit Beyond Tailored Trips may vary in cancellation policy from that detailed\n in this clause. The cancellation policy for Tailored Trips will be made clear\n upon booking confirmation if the refund policy is more strict than outlined\n above. Customers can locate the most recent and updated cancellation terms on www.visitbeyond.com.'))
		{
			$('#cancelbooking').submit();
		}
	});
	$(".showDetail").live('click', function() {
		var data = $.metadata.get(this);
		$(".serviceDetail").hide("slow");
		$("#"+data.idName).slideToggle("slow");
	});
	$(".close").live('click', function() {
		$(".serviceDetail").hide("slow");
	});

	$(".canCelService").live('click', function() {
		var data = $.metadata.get(this);
		if(confirm('Cancel policy: \n 10. CANCELLATION OF A SERVICE BY THE CLIENT/AGENT \n Customers and booking agents must notify Visit Beyond of any cancellations.\n Visit Beyond will not provide discounts or refunds for missed or unused \n services, whether voluntary or involuntary.\n The following cancellation and no-show fees are expressed as a percentage of the total tour price:\n - 100% refund if cancellation is received one month prior to arrival\n - 50% refund if cancellation is received 15 to 29 days prior to arrival\n - No refund if cancellation is received less than 15 days prior to arrival.\n\n Visit Beyond Tailored Trips may vary in cancellation policy from that detailed\n in this clause. The cancellation policy for Tailored Trips will be made clear\n upon booking confirmation if the refund policy is more strict than outlined\n above. Customers can locate the most recent and updated cancellation terms on www.visitbeyond.com.'))
		{
			$('#serviceId').val(data.serviceline);
			$('#cancelservice').submit();
		}
	});
	$(".editService").live('click', function() {
		var data = $.metadata.get(this);
		window.open('/layout/set/clean/agent/edit/'+data.bookingid+'/'+data.lineId+'/'+data.index+'/'+data.locations+'/'+data.opt+'',null,'height=700,width=550,status=yes,toolbar=no,menubar=no,scrollbars=yes,location=no');
	});
	$("#sendEmail").live('click', function() {
		$("#senddialog").html('<span class="pls_wait">&nbsp;</span>');
			$.post("/layout/set/clean/agent/sendmail", { data:$("#dialog").val(),email:$("#email").val(),send:$("#send").val(),locations:$("#location").val(),quoteid:$("#quoteid").val()}, 
				function(data){
					$("#senddialog").html(data);
				}
		);
		$('#dialog').val('');
	});
//------------------------------------------------------------------ Set room edit ------------------------------------------------------------------------
if($(".changeRoomEdit").val()==1)
{
	var data = $('.changeRoomEdit').metadata();
	num = data.select-data.room;
	html = "";

	if(num>0)
	{
		for(i=0;i<num;i++)
		{	
			html += "<div class='optionparams' id='optionparams"+(parseInt(data.room)+parseInt(i))+"'>";
			html += "			<div class='data' >";
			html += "				<div>";
			html += "					Room "+((parseInt(data.room)+parseInt(i))+1); 
			html += "				</div>";
			html += "				<div>";
			html += "					Pax:<select name='pax["+(parseInt(data.room)+parseInt(i))+"]' id='pax"+(parseInt(data.room)+parseInt(i))+"' class='setTravelerDetailTransfer {room:"+(parseInt(data.room)+parseInt(i))+",adult:\""+data.adult+"\",child:\""+data.child+"\",infant:\""+data.infant+"\",title:[";
			
			for(j=0;j<data.title.length;j++)
			{
				if(j>0)
					html += ",";
				html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
			}
			html += "]}'";
																								//onChange='setTravelerDetail(this.value,document.getElementById(\"paxcheck"+(parseInt(data.room)+parseInt(i))+"\").value,"+(parseInt(data.room)+parseInt(i))+",\""+data.adult+"\",\""+data.child+"\",\""+data.infant+"\",\"\",\"\",\"\",\"\",titleArray);'
																																	//select,pax,room,adult,child,infant,edit,max,adults,roomtype,title
			if(data.sg == 'Y')
			{
				count = data.sg_max;
				count_a = data.sg_a_max;
			}
			else if(data.tw == 'Y')
			{
				count = data.tw_max;
				count_a = data.tw_a_max;
			}
			else if(data.db == 'Y')
			{
				count = data.db_max;
				count_a = data.db_a_max;
			}
			else if(data.tr == 'Y')
			{
				count = data.tr_max;
				count_a = data.tr_a_max;
			}
			else if(data.qd == 'Y')
			{
				count = data.qd_max;
				count_a = data.qd_a_max;
			}
			all = parseInt(data.all);
			max = parseInt(data.max);
			for(j=1;j<=count;j++)
			{
				/*if(data.all > data.max)
				{
					if(j==data.max)
						html +=						"<option value='"+j+"' selected='selected'>"+j+"</option>";
					else
						html +=						"<option value='"+j+"'>"+j+"</option>";
				}
				else
				{
					if(j==Math.abs(data.all))
						html +=						"<option value='"+j+"' selected='selected'>"+j+"</option>";
					else if(j==count)
						html +=						"<option value='"+j+"' selected='selected'>"+j+"</option>";
					else
						html +=						"<option value='"+j+"'>"+j+"</option>";
				}*/

				/*if(j==all)//
					html +=						"<option value='"+j+"' selected='selected'>"+j+"</option>";
				else
					html +=						"<option value='"+j+"'>"+j+"</option>";*/
			}
			html += "					</select><input type='hidden' id='paxcheck"+(parseInt(data.room)+parseInt(i))+"' value='"+count+"'>";
			all = data.all-data.max;
			//if(this.value==\"SG\"){changeRoomtype("+sg_a_max+","+sg_max+","+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\");}if(this.value==\"TW\"){changeRoomtype("+tw_a_max+","+tw_max+","+i+",\""+adult+"\",\""+child+"\",\""+infant+"\");}if(this.value==\"TR\"){changeRoomtype("+tr_a_max+","+tr_max+","+i+",\""+adult+"\",\""+child+"\",\""+infant+"\");}if(this.value==\"DB\"){changeRoomtype("+db_a_max+","+db_max+","+i+",\""+adult+"\",\""+child+"\",\""+infant+"\");}if(this.value==\"QD\"){changeRoomtype("+qd_a_max+","+qd_max+","+i+",\""+adult+"\",\""+child+"\",\""+infant+"\");}'>
			html += "					Room type:<select id='roomtype["+(parseInt(data.room)+parseInt(i))+"]' name='roomtype["+(parseInt(data.room)+parseInt(i))+"]' ";
			/*
			if(data.sg=='Y')
				html += " if(this.value==\"SG\"){changeRoomtype("+sg_a_max+","+sg_max+",document.getElementById(\"paxcheck"+(parseInt(room)+parseInt(i))+"\").value,"+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\",titleArray);}";
			if(data.tw=='Y')	
				html += " if(this.value==\"TW\"){changeRoomtype("+tw_a_max+","+tw_max+",document.getElementById(\"paxcheck"+(parseInt(room)+parseInt(i))+"\").value,"+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\",titleArray);}";
			if(data.tr=='Y')	
				html += " if(this.value==\"TR\"){changeRoomtype("+tr_a_max+","+tr_max+",document.getElementById(\"paxcheck"+(parseInt(room)+parseInt(i))+"\").value,"+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\",titleArray);}";
			if(data.db=='Y')	
				html += " if(this.value==\"DB\"){changeRoomtype("+db_a_max+","+db_max+",document.getElementById(\"paxcheck"+(parseInt(room)+parseInt(i))+"\").value,"+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\",titleArray);}";
			if(data.qd=='Y')	
				html += " if(this.value==\"QD\"){changeRoomtype("+qd_a_max+","+qd_max+",document.getElementById(\"paxcheck"+(parseInt(room)+parseInt(i))+"\").value,"+(parseInt(room)+parseInt(i))+",\""+adult+"\",\""+child+"\",\""+infant+"\",titleArray);}";
			*/html += ">";

			if(data.sg=='Y')
				html += "					<OPTION VALUE='SG'>Single</OPTION>";
			if(data.tw=='Y')
				html += "					<OPTION VALUE='TW' selected='selected'>Twin</OPTION>";
			if(data.db=='Y')
				html += "					<OPTION VALUE='DB'>Double</OPTION>";
			if(data.tr=='Y')
				html += "					<OPTION VALUE='TR'>Triple</OPTION>";
			if(data.qd=='Y')
				html += "					<OPTION VALUE='QD'>Quad</OPTION>";

			html += "					</select>";
			html += "					<div id='textMax"+(parseInt(data.room)+parseInt(i))+"'> Max adults:"+count_a+"  Max adults+children:"+count+" </div>";
			html += "				</div>";
			html += "			</div>";
			html += "				<div class='data_titles'>";
			html += "					<div class='t_title'>Title</div>";
			html += "					<div class='t_fname'>Firstname</div>";
			html += "					<div class='t_lname'>Lastname</div>";
			html += "					<div class='t_type'>Paxtype</div>";
			html += "				</div>";
			html += "           <div id='travelerDetail"+(parseInt(data.room)+parseInt(i))+"' class='travelerDetail'>";
			for(j=0;j<count;j++)
			{
				html += "				<div class='data t_data' id='data"+(parseInt(data.room)+parseInt(i))+"_"+j+"'>";

				html += "				<div class='t_title'><select name='title["+(parseInt(data.room)+parseInt(i))+"]["+j+"]' id='title["+(parseInt(data.room)+parseInt(i))+"]["+j+"]'>";
				for(k=0;k<data.title.length;k++)
				{
					html += "<option value='"+data.title[k]['value']+"'>"+data.title[k]['value']+"</option>";
				}
				html += "				</select></div>";
				//html += "					<div class='t_title'><input type='text' name='title["+(parseInt(room)+parseInt(i))+"]["+j+"]' id='title["+(parseInt(room)+parseInt(i))+"]["+j+"]'></div>";
				
				html += "					<div class='t_fname'><input type='text' name='fname["+(parseInt(data.room)+parseInt(i))+"]["+j+"]' id='fname["+(parseInt(data.room)+parseInt(i))+"]["+j+"]'></div>";
				
				html += "					<div class='t_lname'><input type='text' name='lname["+(parseInt(data.room)+parseInt(i))+"]["+j+"]' id='lname["+(parseInt(data.room)+parseInt(i))+"]["+j+"]'></div>";
				html += "					<div class='t_type'><select name='paxtype["+(parseInt(data.room)+parseInt(i))+"]["+j+"]' id='paxtype["+(parseInt(data.room)+parseInt(i))+"]["+j+"]'>";
				if(data.adult=='Y')
					html += "						<option value='A'>Adult</option>";
				if(data.child=='Y')
					html += "						<option value='C' >Child</option>";
				if(data.infant=='Y')
					html += "						<option value='I'>Infant</option>";
				html += "					</select></div>";
				html += "				</div>";
			}
			html += "           </div>";
			html += "		</div>";
		}
		$("#traveler").append(html);
	}
	else
	{
		num = data.room-data.select;
		j=1;
		for(i=num;i>0;i--)
		{
			$('#optionparams'+(data.room-j)).remove();
			j++;
		}
		//$("#optionparams").remove();
	}
	$("#roomcheck").val(data.select);
}
//------------------------------------------------------------------ Set travel detail edit ---------------------------------------------------------------
	if($(".setTravelerDetailEdit").val()==1)
	{
		//var data = $.metadata.get(this);
		var data = $('.setTravelerDetailEdit').metadata();
		name = 0;
		for(ir=0;ir<data.roomcount;ir++)
		{
			//alert(ir+"."+data.select[ir]['pax']);
			num = data.select[ir]['pax']-data.pax;
			//room = data.room;
			room = ir;
			pax = data.pax;
			html = "";
			if(num>0)
			{
				for(i=0;i<num;i++)
				{
					html += "			<div class='data t_data' id='data"+room+"_"+(parseInt(pax)+parseInt(i))+"'>";
					html += "				<div class='t_title'><select name='title["+room+"]["+(parseInt(pax)+parseInt(i))+"]' id='title["+room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					for(j=0;j<data.title.length;j++)
					{
						html += "<option value='"+data.title[j]['value']+"' ";
						if(data.title[j]['value'] == data.paxdetail[name]['title'])
							html += "selected";
						html += ">"+data.title[j]['value']+"</option>";
					}
					html += "				</select></div>";
					html += "				<div class='t_lname'><input type='text' name='fname["+room+"]["+(parseInt(pax)+parseInt(i))+"]' id='fname["+room+"]["+(parseInt(pax)+parseInt(i))+"]' value='"+data.paxdetail[name]['name']+"'></div>";
					html += "				<div class='t_fname'><input type='text' name='lname["+room+"]["+(parseInt(pax)+parseInt(i))+"]' id='lname["+room+"]["+(parseInt(pax)+parseInt(i))+"]' value='"+data.paxdetail[name]['surname']+"'></div>";
					html += "					<div class='t_type'><select name='paxtype["+room+"]["+(parseInt(pax)+parseInt(i))+"]' id='paxtype["+room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					if (data.paxdetail[name]['paxtype'] == 'A')
						html += "<option value='A' SELECTED='selected'>Adult</option>";
					else
						html += "<option value='A' >Adult</option>";
					if(data.child=='Y')
					{
						if(data.paxdetail[name]['paxtype'] == 'C')
							html += "<option value='C' SELECTED='selected'>Child</option>";
						else
							html += "<option value='C'>Child</option>";
					}
					if(data.infant=='Y')
					{
						if(data.paxdetail[name]['paxtype'] == 'I')
							html += "<option value='I' SELECTED='selected'>Infant</option>";
						else
							html += "<option value='I'>Infant</option>";
					}
					html += "					</select></div>";
					html += "			</div>";
					data.adults--;
					if(i == (data.max-1))
					{
						name++;
						break;
					}
					name++;
				}
				if(data.edit==1)
				{
					$("#travelerDetail"+room).html('');
					option_num = document.getElementById("pax"+room).getElementsByTagName("option").length;
					roomtype_num = document.getElementById("roomtype["+room+"]").getElementsByTagName("option").length;
					for(i=option_num;i<data.max;i++)
					{

						if(i==data.max)
							$("#pax"+room).append("<option value='"+(i+1)+"' selected='selected'>"+(i+1)+"</option>");
						else
							$("#pax"+room).append("<option value='"+(i+1)+"'>"+(i+1)+"</option>");
						
					}
					//alert("OK");
					for(i=0;i<roomtype_num;i++)
					{
						if(document.getElementById("roomtype["+room+"]").options[i].value == data.roomtype)
							document.getElementById("roomtype["+room+"]").options.item(i).selected = true;
					}
				}
				//alert(html);
				$("#travelerDetail"+room).append(html);
			}
			else
			{
				name++;
				num = data.pax-data.select;
				j=1;
				for(i=num;i>0;i--)
				{
					$('#data'+room+'_'+(pax-j)).remove();
					j++;
				}
			}
			//document.getElementById("number_room").options.item(room).selected = true;
			$("#paxcheck"+room).val(data.select[ir]['pax']);
			document.getElementById("pax"+room).options.item((data.select[ir]['pax']-1)).selected = true;
		}
	}
//------------------------------------------------------------------ Change room type ---------------------------------------------------------------------
	$(".changeRoomtype").live('click', function() {
		//var data = $('.changeRoomtype').metadata(this);
		var data = $.metadata.get(this);
		switch($(this).val())
		{
			case 'SG':
				pax_m = data.sg_max;
				a_max = data.sg_a_max;
			break;
			case 'TR':
				pax_m = data.tr_max;
				a_max = data.tr_a_max;
			break;
			case 'DB':
				pax_m = data.db_max;
				a_max = data.db_a_max;
			break;
			case 'TW':
				pax_m = data.twin_max;
				a_max = data.twin_a_max;
			break;
			case 'QD':
				pax_m = data.q_max;
				a_max = data.q_a_max;
			break;
			default:
				alert('Not room');
		}
		
		$("#pax"+data.room+" option").remove();
		for(i=0;i<pax_m;i++)
		{	
			if((i+1)==pax_m)
				$("#pax"+data.room).append('<option value="'+(i+1)+'" selected="selected">'+(i+1)+'</option>');
			else
				$("#pax"+data.room).append('<option value="'+(i+1)+'">'+(i+1)+'</option>');
		}
		$("#textMax"+data.room).html("Max adults:"+a_max+"  Max adults+children:"+pax_m+"");
													//select,pax,room,adult,child,infant,edit,max,adults,roomtype,title
								//setTravelerDetail(roommax,pax,room,adult,child,infant,'','','','',title);
		select = pax_m;
		adult = 'Y';
		child = 'Y';
		infant = 'Y';
		pax = $("#paxcheck"+data.room).val();
		num = select-pax;
		prefillnum = parseInt($("#prefill").val());
		html = "";
		if(num>0)
		{
			//fixpax = prefillnum;
			for(i=0;i<num;i++)
			{
				html += "			<div class='data t_data' id='data"+data.room+"_"+(parseInt(pax)+parseInt(i))+"'>";
				if(data.paxName>0 && prefillnum < data.paxName)
				{
					html += "<div class='selectpax'>";
					html += "	<select name='personid["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='personid["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					for(ii=0;ii<data.paxName;ii++)
					{
						html += "<option value="+data.personid[ii].personid+" ";
						if(ii == prefillnum)
							html += "selected='selected'";
						html += ">"+data.personid[ii].selectPax+"</option>";
					}
					html += "</select>";
					html += " <input type='checkbox' name='newpax' id='newpax"+(parseInt(pax)+parseInt(i))+"' value='1' class='setNewpax {room:\""+data.room+"\",index:\""+(parseInt(pax)+parseInt(i))+"\",title:[";
					for(j=0;j<data.title.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
					}
					html += "],paxName:\""+data.paxName+"\",personid:[";
					for(j=0;j<data.personid.length;j++)
					{
						if(j>0)
							html += ",";
						html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
					}
					html += "]}'>";
					html += "<span id='label"+data.room+"_"+data.index+"'>New pax.</span>";
					html += "</div>";
					prefillnum++;
				}
				else
				{
					html += "				<div class='t_title'><select name='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='title["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					for(j=0;j<data.title.length;j++)
					{
							html += "<option value='"+data.title[j].value+"'>"+data.title[j].value+"</option>";
					}
					html += "				</select></div>";
					html += "				<div class='t_fname'><input type='text' name='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='fname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
					html += "				<div class='t_lname'><input type='text' name='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='lname["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'></div>";
					html += "					<div class='t_type'><select name='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]' id='paxtype["+data.room+"]["+(parseInt(pax)+parseInt(i))+"]'>";
					//if(data.adult=='Y')
						html += "						<option value='A'>Adult</option>";
					//if(data.child=='Y')
					//alert(i+">"+(a_max-1));
					if((parseInt(pax)+parseInt(i))>(a_max-1))
						html += "						<option value='C' selected='selected'>Child</option>";
					html += "						<option value='C'>Child</option>";
					//if(data.infant=='Y')
						html += "						<option value='I'>Infant</option>";
					html += "					</select></div>";
				}
				html += "			</div>";
			}
			$("#fixpax").val(parseInt(num)+parseInt($("#fixpax").val()));
			$("#travelerDetail"+data.room).append(html);
		}
		else
		{
			num = pax-select;
			j=1;
			for(i=num;i>0;i--)
			{
				var paxselectcheck = $('#data'+data.room+'_'+(pax-j)).find("div.selectpax");
				//alert('#data'+data.room+'_'+(pax-j)+" : num = "+paxselectcheck.length);
				if(paxselectcheck.length == 1)
					prefillnum--;
				$('#data'+data.room+'_'+(pax-j)).remove();
				j++;
			}
		}
		$("#prefill").val(prefillnum);
		$("#paxcheck"+data.room).val(select);
	});
//------------------------------------------------------------------ Check number -------------------------------------------------------------------------
	$(".pax").live('keypress', function(a) {
			if(a.charCode < 48 || a.charCode > 57)
			{
				if(a.charCode != 0)
					return false;
			}
	});
	$(".childs").live('keypress', function(a) {
			if(a.charCode < 48 || a.charCode > 57)
			{
				if(a.charCode != 0)
					return false;
			}
	});

//------------------------------------------------------------------ New pax ------------------------------------------------------------------------------
$(".setNewpax").live('click', function() {
	var data = $.metadata.get(this);
	html = '';
	if($(this).attr('checked'))
	{
		//$('#iabel'+data.room+'_'+data.index).hide();
		html += "	<div class='t_title'><select name='title["+data.room+"]["+data.index+"]' id='title["+data.room+"]["+data.index+"]'>";
		for(j=0;j<data.title.length;j++)
		{
				html += "<option value='"+data.title[j].value+"'>"+data.title[j].value+"</option>";
		}
		html += "				</select></div>";
		html += "				<div class='t_fname'><input type='text' name='fname["+data.room+"]["+data.index+"]' id='fname["+data.room+"]["+data.index+"]'></div>";
		html += "				<div class='t_lname'><input type='text' name='lname["+data.room+"]["+data.index+"]' id='lname["+data.room+"]["+data.index+"]'></div>";
		html += "					<div class='t_type'><select name='paxtype["+data.room+"]["+data.index+"]' id='paxtype["+data.room+"]["+data.index+"]'>";
		//if(data.adult=='Y')
			html += "						<option value='A'>Adult</option>";
		//if(data.child=='Y')
			html += "						<option value='C'>Child</option>";
		//if(data.infant=='Y')
			html += "						<option value='I'>Infant</option>";
		html += "					</select></div>";
		html += " <input type='checkbox' name='newpax' id='newpax"+data.index+"' value='1' class='setNewpax {room:"+data.room+",index:"+data.index+",title:[";
			for(j=0;j<data.title.length;j++)
			{
				if(j>0)
					html += ",";
				html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
			}
		html += "],personid:[";
			for(j=0;j<data.personid.length;j++)
			{
				if(j>0)
					html += ",";
				html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"PersonId\":\""+data.personid[j]['PersonId']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
			}
		html +=	"],paxName:"+data.paxName+"}' checked='checked'>";
		prefill = parseInt($("#prefill").val())-1;
		$("#prefill").val(prefill);
	}
	else
	{
		html += "<div class='selectpax'>";
		html += "	<select name='personid["+data.room+"]["+data.index+"]' id='personid["+data.room+"]["+data.index+"]'>";
					for(ii=0;ii<data.paxName;ii++)
					{
						html += "<option value="+data.personid[ii].personid+">"+data.personid[ii].selectPax+"</option>";
					}
		html += "</select>";
		html += " <input type='checkbox' name='newpax' id='newpax"+data.index+"' value='1' class='setNewpax {room:"+data.room+",index:"+data.index+",title:[";
			for(j=0;j<data.title.length;j++)
			{
				if(j>0)
					html += ",";
				html += "{\"index\":\""+j+"\",\"value\":\""+data.title[j]['value']+"\"}";
			}
		html += "],personid:[";
			for(j=0;j<data.personid.length;j++)
			{
				if(j>0)
					html += ",";
				html += "{\"personid\":\""+data.personid[j]['personid']+"\",\"selectPax\":\""+data.personid[j]['selectPax']+"\"}";
			}
		html +=	"],paxName:"+data.paxName+"}'>";
		html += "<span id='label"+data.room+"_"+data.index+"'>New pax.</span>";
		html += "</div>";
		
		prefill = parseInt($("#prefill").val())+1;
		$("#prefill").val(prefill);
	}
	$("#data"+data.room+"_"+data.index).html(html);

});



//------------------------------------------------------------------ Data table ---------------------------------------------------------------------------
	if($("#have_datateble").val()==1)
	{
		//----- Fast track
		$('#fasttrack').dataTable( {
			"sPaginationType": "full_numbers",
			"aoColumns" : [ 
								{ sWidth: '30%' }, 
								{ sWidth: '30%' },
								{ sWidth: '40%' }
							]

		});
		//----- Transfer search 
		$('#transfer').dataTable(
		{
		});
		//----- My booking
		$('#mybooking').dataTable(
		{
			"sPaginationType": "full_numbers"
		});
	}


});


function in_array (needle, haystack, argStrict) {
    // Checks if the given value exists in the array  
    // 
    // version: 1009.2513
    // discuss at: http://phpjs.org/functions/in_array    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: vlado houba
    // +   input by: Billy
    // +   bugfixed by: Brett Zamir (http://brett-zamir.me)
    // *     example 1: in_array('van', ['Kevin', 'van', 'Zonneveld']);    // *     returns 1: true
    // *     example 2: in_array('vlado', {0: 'Kevin', vlado: 'van', 1: 'Zonneveld'});
    // *     returns 2: false
    // *     example 3: in_array(1, ['1', '2', '3']);
    // *     returns 3: true    // *     example 3: in_array(1, ['1', '2', '3'], false);
    // *     returns 3: true
    // *     example 4: in_array(1, ['1', '2', '3'], true);
    // *     returns 4: false
    var key = '', strict = !!argStrict; 
    if (strict) 
	{
        for (key in haystack) 
		{
            if (haystack[key] === needle) 
			{
                return true;            
			}
        }
    } 
	else 
	{
        for (key in haystack) 
		{
            if (haystack[key] == needle) 
			{                
				return true;
            }
        }
    }
    return false;
}

//------------------------------------------------------------------ Send Booking Transfer------------------------------------------------------------------------
	$(".sendBookingTrans").live('click', function() {

		var data = $.metadata.get(this);

		if($('#qouteid').val() == '')
		{
			if($('#name').val()=='')
			{
				$('#name').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in name before posting the form</strong></div>");
				return false;
			}
			if($('#consultant').val() == '')
			{
				$('#consultant').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in consultant before posting the form</strong></div>");
				return false;
			}
			if($('#email').val() =='')
			{
				$('#email').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in email before posting the form</strong></div>");
				return false;
			}
			if($('#agentref').val() =='')
			{
				$('#agentref').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in agentref before posting the form</strong></div>");
				return false;
			}
		}
		title_array = new Array();
		fname_array = new Array();
		lname_array = new Array();
		pid_array = new Array();
		ptype_array = new Array();
		if($('#stype').val() == 'N' || $('#stype').val() == 'A')
		{
			pax = $('#pax0').val();
			for(i=0;i<pax;i++)
			{
				if($("#paxname").val() != '')
				{
					if((i+1) <= $("#paxname").val())
					{
						if(document.getElementById('newpax'+i).checked)
						{
							if(document.getElementById('title[0]['+i+']').value=='')
							{
								document.getElementById('title[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('fname[0]['+i+']').value=='')
							{
								document.getElementById('fname[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
								return false;
							}
							if(document.getElementById('lname[0]['+i+']').value=='')
							{
								document.getElementById('lname[0]['+i+']').focus();
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
								return false;
							}
							
							if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
							{
								if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
								{
									if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
									{
										if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
										{
											$('#warning').show();
											$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
											return false;
										}
									}
								}
							}
							
							title_array[i] = document.getElementById('title[0]['+i+']').value;
							fname_array[i] = document.getElementById('fname[0]['+i+']').value;
							lname_array[i] = document.getElementById('lname[0]['+i+']').value;
							ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
						}
						else
						{
							if(in_array(document.getElementById('personid[0]['+i+']').value,pid_array))
							{
								$('#warning').show();
								$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
								return false;
							}
							pid_array[i] = document.getElementById('personid[0]['+i+']').value;
						}
						
					}
					else
					{
						if(document.getElementById('title[0]['+i+']').value=='')
						{
							document.getElementById('title[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('fname[0]['+i+']').value=='')
						{
							document.getElementById('fname[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
							return false;
						}
						if(document.getElementById('lname[0]['+i+']').value=='')
						{
							document.getElementById('lname[0]['+i+']').focus();
							$('#warning').show();
							$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
							return false;
						}

						if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
						{
							if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
							{
								if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
								{
									if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
									{
										$('#warning').show();
										$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
										return false;
									}
								}
							}
						}
					
						title_array[i] = document.getElementById('title[0]['+i+']').value;
						fname_array[i] = document.getElementById('fname[0]['+i+']').value;
						lname_array[i] = document.getElementById('lname[0]['+i+']').value;
						ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
					}
				}
				else
				{
					if(document.getElementById('title[0]['+i+']').value=='')
					{
						document.getElementById('title[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in title before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('fname[0]['+i+']').value=='')
					{
						document.getElementById('fname[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in firstname before posting the form</strong></div>");
						return false;
					}
					if(document.getElementById('lname[0]['+i+']').value=='')
					{
						document.getElementById('lname[0]['+i+']').focus();
						$('#warning').show();
						$('#warning').html("<div class='feedback warning'> <strong>You have to fill in lastname before posting the form</strong></div>");
						return false;
					}
					
					if(in_array(document.getElementById('title[0]['+i+']').value,title_array))
						{
							if(in_array(document.getElementById('fname[0]['+i+']').value,fname_array))
							{
								if(in_array(document.getElementById('lname[0]['+i+']').value,lname_array))
								{
									if(in_array(document.getElementById('paxtype[0]['+i+']').value,ptype_array))
									{
										$('#warning').show();
										$('#warning').html("<div class='feedback warning'> <strong> Person can only appear once per service</strong></div>");
										return false;
									}
								}
							}
						}
					
					title_array[i] = document.getElementById('title[0]['+i+']').value;
					fname_array[i] = document.getElementById('fname[0]['+i+']').value;
					lname_array[i] = document.getElementById('lname[0]['+i+']').value;
					ptype_array[i] = document.getElementById('paxtype[0]['+i+']').value;
				}
			}
		}
		//data.max : max for car , pax : pax count , data.checkmax : Is it fex max?
		can_not = 0;
		datamax = parseInt(data.max);
		if(data.checkmax == 1)
		{	
			car = Math.round(pax/datamax);
			
			if(pax > datamax)
			{
				for(i_car=1;i_car<=car;i_car++)
				{
					if(can_not == 1)
						break;
					mul_pax = datamax *(i_car);
					next_pax = datamax *(i_car+1);
					for (i=mul_pax;i<next_pax ;i++ )
					{
						if(i>=pax)
							break;
						if(ptype_array[i]=='C')
							can_not = 1;
						else{
							can_not = 0;
							break;
						}
					}
				}
				
			}
		}

		if(can_not == 1)
		{
			$('#warning').show();
			$('#warning').html("<div class='feedback warning'> <strong>Can't only child in car.</strong></div>");
			return false;
		}
		
		if($('#DropoffTimeAllowed').val() == 'Y')
		{
			if($('#dropoff_hour').val()=='-')
			{
				$('#dropoff_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#dropoff_minute').val()=='-')
			{
				$('#dropoff_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		if($('#PickupTimeAllowed').val() == 'Y')
		{
			if($('#pickup_hour').val()=='-')
			{
				$('#pickup_hour').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
			if($('#pickup_minute').val()=='-')
			{
				$('#pickup_minute').focus();
				$('#warning').show();
				$('#warning').html("<div class='feedback warning'> <strong>You have to fill in time before posting the form</strong></div>");
				return false;
			}
		}
		$('#warning').hide();
		$('#isBooking').val(1);
		$("#booking_load").val(0);
		$('#formBooking').submit();
		$("#loading_qoute").html('<span class="pls_wait" style="width:270px;height:50px;">&nbsp;</span>');
	});

/*  Booking list  */

$(document).ready(function() { 
	
	$('.bookinglist_tb').each(function (i) {
		$(".bookinglist_tb").html('<span class="pls_wait" style="width:270px;height:50px;margin-top: 137px;">&nbsp;</span>');
		$.post("/layout/set/clean/agent/getmybooking/"+$("#location").val(), { node_id: $("#node_id").val()}, 
			function(data){
				$(".bookinglist_tb").html(data);
				$('#mybooking').dataTable(
				{
					"sPaginationType": "full_numbers"
				});
			}
		);
	})

	$("#filterBtn").click(function (){
		$(".bookinglist_tb").html('<span class="pls_wait" style="width:270px;height:50px;margin-top: 137px;">&nbsp;</span>');

		var datefrom = $("#TravelDateFrom").val();
		var datefrom = datefrom.replace(/\//gi, "-");
		var dateto = $("#TravelDateTo").val();
		var dateto = dateto.replace(/\//gi, "-");

		$.post("/layout/set/clean/agent/getmybooking/"+$("#location").val()+"/"+datefrom+"/"+dateto, { node_id: $("#node_id").val()}, 
			function(data){
				$(".bookinglist_tb").html(data);
				$('#mybooking').dataTable(
				{
					"sPaginationType": "full_numbers"
				});
			}
		);
	})

	/* Booking detail */
	$('.booking-detail-form').each(function (i) {
		$(".booking-detail-form").html('<span class="pls_wait" style="width:270px;height:50px;margin-top: 137px;">&nbsp;</span>');
		$.post("/layout/set/clean/agent/getbookingdetail/"+$("#bookingid").val()+"/"+$("#location").val(), { node_id: $("#node_id").val()}, 
			function(data){
				$(".booking-detail-form").html(data);
				/*$('#mybooking').dataTable(
				{
					"sPaginationType": "full_numbers"
				});*/
			}
		);
	})

});/* JavaScript File Area Digital CMS	(Base 4.2)						*/
/* analytics.js 													*/
/* Modified february 15th 2010								 		*/
/* http://www.areadigital.org/ 									    */

$(document).ready(function() { 

// ---------------------------------------- google analytics - tracks the teasers and widgets in google analytics ---------------------------------------------------------
	
	$('.teaser').each(function(){
		var teaser = $(this);
		var data = teaser.metadata();
		var teaser_id = data.track_name;
        if(typeof(track_widget_views) == "undefined"){ return false} 
		adTracker({'category':'Teaser' + teaser_id, 'action': 'View', 'label': 'View', 'url': '/teaser/view/' + teaser_id}, track_widget_views);
		var teaserLink = teaser.find("a");
		
		teaserLink.each(function(){
			$(this).click(function(){
				var href = $(this).attr('href');
				adTracker({'category':'Teaser' + teaser_id, 'action': 'Click', 'label': 'Label [' +  href + ']', 'url': '/teaser/click/' + href}, track_widget_clicks);
			});
		})
	
	});
        
	$('a').each(function(){
		var filetypes = /\.(zip|exe|pdf|doc*|xls*|ppt*|mp3)$/i;  
		var a = $(this);
		var href = a.attr('href');
		
		if(href){
			if ((href.match(/^https?\:/i)) && (!href.match(document.domain))){
                if(typeof(track_external_links) == "undefined"){ return false} 
				var extLink = href.replace(/^https?\:\/\//i, '');
				$(this).click(function() {
					adTracker({'category':'External', 'action': 'Click', 'label': extLink, 'url': '/outgoing/click/'+ extLink}, track_external_links);
				});
				adTracker({'category':'External', 'action': 'View', 'label': extLink, 'url': '/outgoing/view/'+ extLink}, track_external_links); 
			}
			else if (href.match(/^mailto\:/i)){
                if(typeof(track_mailto) == "undefined"){ return false} 
				var mailLink = href.replace(/^mailto\:/i, '');
				$(this).click(function() {
					adTracker({'category':'Email', 'action': 'Click', 'label': mailLink, 'url': '/email/click/' + mailLink}, track_mailto);
				});
				adTracker({'category':'Email', 'action': 'View', 'label': mailLink, 'url': '/email/view/' + mailLink}, track_mailto);
			}
			else if (href.match(filetypes)){
                if(typeof(track_downloads) == "undefined"){ return false} 
				var extension = (/[.]/.exec(href)) ? /[^.]+$/.exec(href) : undefined;
				var filePath = href.replace(/^https?\:\/\/(www.)mydomain\.com\//i, '');
				$(this).click(function() {
					adTracker({'category':'Download', 'action': 'Click', 'label': filePath, 'url': '/download/click/' + filePath}, track_downloads);
				});
				adTracker({'category':'Download', 'action': 'View', 'label': filePath, 'url': '/download/view/' + filePath}, track_downloads);
			}
		}
	});

    function adTracker(data,trackMode){
        try {  
            switch(trackMode){
                case "0":
                  pageTracker._trackEvent(data.catagory, data.action, data.label);
                  break;
                case "1":
                  pageTracker._trackPageview(data.url);
                  break;
            }
        } catch(err) {} 
    }

// -----------------------------------------------------------------------------------------------------------------------------------------------------

});


