(function(){var W=this,ab,F=W.jQuery,S=W.$,T=W.jQuery=W.$=function(c,b){return new T.fn.init(c,b)},M=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ac=/^.[^:#\[\.,]*$/;T.fn=T.prototype={init:function(f,c){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var d=M.exec(f);if(d&&(d[1]||!c)){if(d[1]){f=T.clean([d[1]],c)}else{var b=document.getElementById(d[3]);if(b&&b.id!=d[3]){return T().find(f)}var e=T(b||[]);e.context=document;e.selector=f;return e}}else{return T(c).find(f)}}else{if(T.isFunction(f)){return T(document).ready(f)}}if(f.selector&&f.context){this.selector=f.selector;this.context=f.context}return this.setArray(T.isArray(f)?f:T.makeArray(f))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(b){return b===ab?Array.prototype.slice.call(this):this[b]},pushStack:function(d,b,e){var c=T(d);c.prevObject=this;c.context=this.context;if(b==="find"){c.selector=this.selector+(this.selector?" ":"")+e}else{if(b){c.selector=this.selector+"."+b+"("+e+")"}}return c},setArray:function(b){this.length=0;Array.prototype.push.apply(this,b);return this},each:function(b,c){return T.each(this,b,c)},index:function(b){return T.inArray(b&&b.jquery?b[0]:b,this)},attr:function(d,b,c){var e=d;if(typeof d==="string"){if(b===ab){return this[0]&&T[c||"attr"](this[0],d)}else{e={};e[d]=b}}return this.each(function(f){for(d in e){T.attr(c?this.style:this,d,T.prop(this,e[d],c,f,d))}})},css:function(c,b){if((c=="width"||c=="height")&&parseFloat(b)<0){b=ab}return this.attr(c,b,"curCSS")},text:function(b){if(typeof b!=="object"&&b!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(b))}var c="";T.each(b||this,function(){T.each(this.childNodes,function(){if(this.nodeType!=8){c+=this.nodeType!=1?this.nodeValue:T.fn.text([this])}})});return c},wrapAll:function(c){if(this[0]){var b=T(c,this[0].ownerDocument).clone();if(this[0].parentNode){b.insertBefore(this[0])}b.map(function(){var d=this;while(d.firstChild){d=d.firstChild}return d}).append(this)}return this},wrapInner:function(b){return this.each(function(){T(this).contents().wrapAll(b)})},wrap:function(b){return this.each(function(){T(this).wrapAll(b)})},append:function(){return this.domManip(arguments,true,function(b){if(this.nodeType==1){this.appendChild(b)}})},prepend:function(){return this.domManip(arguments,true,function(b){if(this.nodeType==1){this.insertBefore(b,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)})},after:function(){return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)})},end:function(){return this.prevObject||T([])},push:[].push,sort:[].sort,splice:[].splice,find:function(c){if(this.length===1){var b=this.pushStack([],"find",c);b.length=0;T.find(c,this[0],b);return b}else{return this.pushStack(T.unique(T.map(this,function(d){return T.find(c,d)})),"find",c)}},clone:function(c){var e=this.map(function(){if(!T.support.noCloneEvent&&!T.isXMLDoc(this)){var g=this.outerHTML;if(!g){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));g=f.innerHTML}return T.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(c===true){var b=this.find("*").andSelf(),d=0;e.find("*").andSelf().each(function(){if(this.nodeName!==b[d].nodeName){return}var h=T.data(b[d],"events");for(var f in h){for(var g in h[f]){T.event.add(this,f,h[f][g],h[f][g].data)}}d++})}return e},filter:function(b){return this.pushStack(T.isFunction(b)&&T.grep(this,function(c,d){return b.call(c,d)})||T.multiFilter(b,T.grep(this,function(c){return c.nodeType===1})),"filter",b)},closest:function(d){var b=T.expr.match.POS.test(d)?T(d):null,c=0;return this.map(function(){var e=this;while(e&&e.ownerDocument){if(b?b.index(e)>-1:T(e).is(d)){T.data(e,"closest",c);return e}e=e.parentNode;c++}})},not:function(c){if(typeof c==="string"){if(ac.test(c)){return this.pushStack(T.multiFilter(c,this,true),"not",c)}else{c=T.multiFilter(c,this)}}var b=c.length&&c[c.length-1]!==ab&&!c.nodeType;return this.filter(function(){return b?T.inArray(this,c)<0:this!=c})},add:function(b){return this.pushStack(T.unique(T.merge(this.get(),typeof b==="string"?T(b):T.makeArray(b))))},is:function(b){return !!b&&T.multiFilter(b,this).length>0},hasClass:function(b){return !!b&&this.is("."+b)},val:function(d){if(d===ab){var j=this[0];if(j){if(T.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(T.nodeName(j,"select")){var f=j.selectedIndex,c=[],b=j.options,g=j.type=="select-one";if(f<0){return null}for(var i=g?f:0,e=g?f+1:b.length;i<e;i++){var h=b[i];if(h.selected){d=T(h).val();if(g){return d}c.push(d)}}return c}return(j.value||"").replace(/\r/g,"")}return ab}if(typeof d==="number"){d+=""}return this.each(function(){if(this.nodeType!=1){return}if(T.isArray(d)&&/radio|checkbox/.test(this.type)){this.checked=(T.inArray(this.value,d)>=0||T.inArray(this.name,d)>=0)}else{if(T.nodeName(this,"select")){var k=T.makeArray(d);T("option",this).each(function(){this.selected=(T.inArray(this.value,k)>=0||T.inArray(this.text,k)>=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=d}}})},html:function(b){return b===ab?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(b)},replaceWith:function(b){return this.after(b).remove()},eq:function(b){return this.slice(b,+b+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(b){return this.pushStack(T.map(this,function(c,d){return b.call(c,d,c)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(e,b,c){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),i=T.clean(e,(this[0].ownerDocument||this[0]),f),g=f.firstChild;if(g){for(var h=0,j=this.length;h<j;h++){c.call(d(this[h],g),this.length>1||h>0?f.cloneNode(true):f)}}if(i){T.each(i,E)}}return this;function d(l,k){return b&&T.nodeName(l,"table")&&T.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};T.fn.init.prototype=T.fn;function E(c,b){if(b.src){T.ajax({url:b.src,async:false,dataType:"script"})}else{T.globalEval(b.text||b.textContent||b.innerHTML||"")}if(b.parentNode){b.parentNode.removeChild(b)}}function ad(){return +new Date}T.extend=T.fn.extend=function(){var d=arguments[0]||{},f=1,e=arguments.length,i=false,g;if(typeof d==="boolean"){i=d;d=arguments[1]||{};f=2}if(typeof d!=="object"&&!T.isFunction(d)){d={}}if(e==f){d=this;--f}for(;f<e;f++){if((g=arguments[f])!=null){for(var h in g){var c=d[h],b=g[h];if(d===b){continue}if(i&&b&&typeof b==="object"&&!b.nodeType){d[h]=T.extend(i,c||(b.length!=null?[]:{}),b)}else{if(b!==ab){d[h]=b}}}}}return d};var ag=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},L=Object.prototype.toString;T.extend({noConflict:function(b){W.$=S;if(b){W.jQuery=F}return T},isFunction:function(b){return L.call(b)==="[object Function]"},isArray:function(b){return L.call(b)==="[object Array]"},isXMLDoc:function(b){return b.nodeType===9&&b.documentElement.nodeName!=="HTML"||!!b.ownerDocument&&T.isXMLDoc(b.ownerDocument)},globalEval:function(b){if(b&&/\S/.test(b)){var c=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";if(T.support.scriptEval){d.appendChild(document.createTextNode(b))}else{d.text=b}c.insertBefore(d,c.firstChild);c.removeChild(d)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()==c.toUpperCase()},each:function(f,b,g){var h,e=0,d=f.length;if(g){if(d===ab){for(h in f){if(b.apply(f[h],g)===false){break}}}else{for(;e<d;){if(b.apply(f[e++],g)===false){break}}}}else{if(d===ab){for(h in f){if(b.call(f[h],h,f[h])===false){break}}}else{for(var c=f[0];e<d&&b.call(c,e,c)!==false;c=f[++e]){}}}return f},prop:function(c,b,d,e,f){if(T.isFunction(b)){b=b.call(c,e)}return typeof b==="number"&&d=="curCSS"&&!ag.test(f)?b+"px":b},className:{add:function(c,b){T.each((b||"").split(/\s+/),function(e,d){if(c.nodeType==1&&!T.className.has(c.className,d)){c.className+=(c.className?" ":"")+d}})},remove:function(c,b){if(c.nodeType==1){c.className=b!==ab?T.grep(c.className.split(/\s+/),function(d){return !T.className.has(b,d)}).join(" "):""}},has:function(b,c){return b&&T.inArray(c,(b.className||b).toString().split(/\s+/))>-1}},swap:function(c,d,b){var f={};for(var e in d){f[e]=c.style[e];c.style[e]=d[e]}b.call(c);for(var e in d){c.style[e]=f[e]}},css:function(f,h,d,i){if(h=="width"||h=="height"){var b,g={position:"absolute",visibility:"hidden",display:"block"},c=h=="width"?["Left","Right"]:["Top","Bottom"];function e(){b=h=="width"?f.offsetWidth:f.offsetHeight;if(i==="border"){return}T.each(c,function(){if(!i){b-=parseFloat(T.curCSS(f,"padding"+this,true))||0}if(i==="margin"){b+=parseFloat(T.curCSS(f,"margin"+this,true))||0}else{b-=parseFloat(T.curCSS(f,"border"+this+"Width",true))||0}})}if(f.offsetWidth!==0){e()}else{T.swap(f,g,e)}return Math.max(0,Math.round(b))}return T.curCSS(f,h,d)},curCSS:function(f,i,h){var c,j=f.style;if(i=="opacity"&&!T.support.opacity){c=T.attr(j,"opacity");return c==""?"1":c}if(i.match(/float/i)){i=H}if(!h&&j&&j[i]){c=j[i]}else{if(Q.getComputedStyle){if(i.match(/float/i)){i="float"}i=i.replace(/([A-Z])/g,"-$1").toLowerCase();var b=Q.getComputedStyle(f,null);if(b){c=b.getPropertyValue(i)}if(i=="opacity"&&c==""){c="1"}}else{if(f.currentStyle){var e=i.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});c=f.currentStyle[i]||f.currentStyle[e];if(!/^\d+(px)?$/i.test(c)&&/^\d/.test(c)){var g=j.left,d=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;j.left=c||0;c=j.pixelLeft+"px";j.left=g;f.runtimeStyle.left=d}}}}return c},clean:function(h,c,e){c=c||document;if(typeof c.createElement==="undefined"){c=c.ownerDocument||c[0]&&c[0].ownerDocument||document}if(!e&&h.length===1&&typeof h[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(h[0]);if(f){return[c.createElement(f[1])]}}var g=[],i=[],b=c.createElement("div");T.each(h,function(m,j){if(typeof j==="number"){j+=""}if(!j){return}if(typeof j==="string"){j=j.replace(/(<(\w+)[^>]*?)\/>/g,function(r,q,s){return s.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?r:q+"></"+s+">"});var n=j.replace(/^\s+/,"").substring(0,10).toLowerCase();var l=!n.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!n.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!n.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!T.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];b.innerHTML=l[1]+j+l[2];while(l[0]--){b=b.lastChild}if(!T.support.tbody){var k=/<tbody/i.test(j),o=!n.indexOf("<table")&&!k?b.firstChild&&b.firstChild.childNodes:l[1]=="<table>"&&!k?b.childNodes:[];for(var p=o.length-1;p>=0;--p){if(T.nodeName(o[p],"tbody")&&!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!T.support.leadingWhitespace&&/^\s/.test(j)){b.insertBefore(c.createTextNode(j.match(/^\s*/)[0]),b.firstChild)}j=T.makeArray(b.childNodes)}if(j.nodeType){g.push(j)}else{g=T.merge(g,j)}});if(e){for(var d=0;g[d];d++){if(T.nodeName(g[d],"script")&&(!g[d].type||g[d].type.toLowerCase()==="text/javascript")){i.push(g[d].parentNode?g[d].parentNode.removeChild(g[d]):g[d])}else{if(g[d].nodeType===1){g.splice.apply(g,[d+1,0].concat(T.makeArray(g[d].getElementsByTagName("script"))))}e.appendChild(g[d])}}return i}return g},attr:function(d,g,c){if(!d||d.nodeType==3||d.nodeType==8){return ab}var f=!T.isXMLDoc(d),b=c!==ab;g=f&&T.props[g]||g;if(d.tagName){var h=/href|src|style/.test(g);if(g=="selected"&&d.parentNode){d.parentNode.selectedIndex}if(g in d&&f&&!h){if(b){if(g=="type"&&T.nodeName(d,"input")&&d.parentNode){throw"type property can't be changed"}d[g]=c}if(T.nodeName(d,"form")&&d.getAttributeNode(g)){return d.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var e=d.getAttributeNode("tabIndex");return e&&e.specified?e.value:d.nodeName.match(/(button|input|object|select|textarea)/i)?0:d.nodeName.match(/^(a|area)$/i)&&d.href?0:ab}return d[g]}if(!T.support.style&&f&&g=="style"){return T.attr(d.style,"cssText",c)}if(b){d.setAttribute(g,""+c)}var i=!T.support.hrefNormalized&&f&&h?d.getAttribute(g,2):d.getAttribute(g);return i===null?ab:i}if(!T.support.opacity&&g=="opacity"){if(b){d.zoom=1;d.filter=(d.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(c)+""=="NaN"?"":"alpha(opacity="+c*100+")")}return d.filter&&d.filter.indexOf("opacity=")>=0?(parseFloat(d.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(b){d[g]=c}return d[g]},trim:function(b){return(b||"").replace(/^\s+|\s+$/g,"")},makeArray:function(b){var d=[];if(b!=null){var c=b.length;if(c==null||typeof b==="string"||T.isFunction(b)||b.setInterval){d[0]=b}else{while(c){d[--c]=b[c]}}}return d},inArray:function(c,b){for(var e=0,d=b.length;e<d;e++){if(b[e]===c){return e}}return -1},merge:function(c,f){var e=0,d,b=c.length;if(!T.support.getAll){while((d=f[e++])!=null){if(d.nodeType!=8){c[b++]=d}}}else{while((d=f[e++])!=null){c[b++]=d}}return c},unique:function(b){var g=[],h={};try{for(var f=0,e=b.length;f<e;f++){var c=T.data(b[f]);if(!h[c]){h[c]=true;g.push(b[f])}}}catch(d){g=b}return g},grep:function(f,b,g){var e=[];for(var d=0,c=f.length;d<c;d++){if(!g!=!b(f[d],d)){e.push(f[d])}}return e},map:function(g,b){var f=[];for(var e=0,d=g.length;e<d;e++){var c=b(g[e],e);if(c!=null){f[f.length]=c}}return f.concat.apply([],f)}});var O=navigator.userAgent.toLowerCase();T.browser={version:(O.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(O),opera:/opera/.test(O),msie:/msie/.test(O)&&!/opera/.test(O),mozilla:/mozilla/.test(O)&&!/(compatible|webkit)/.test(O)};T.each({parent:function(b){return b.parentNode},parents:function(b){return T.dir(b,"parentNode")},next:function(b){return T.nth(b,2,"nextSibling")},prev:function(b){return T.nth(b,2,"previousSibling")},nextAll:function(b){return T.dir(b,"nextSibling")},prevAll:function(b){return T.dir(b,"previousSibling")},siblings:function(b){return T.sibling(b.parentNode.firstChild,b)},children:function(b){return T.sibling(b.firstChild)},contents:function(b){return T.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:T.makeArray(b.childNodes)}},function(c,b){T.fn[c]=function(e){var d=T.map(this,b);if(e&&typeof e=="string"){d=T.multiFilter(e,d)}return this.pushStack(T.unique(d),c,e)}});T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(c,b){T.fn[c]=function(i){var f=[],d=T(i);for(var e=0,h=d.length;e<h;e++){var g=(e>0?this.clone(true):this).get();T.fn[b].apply(T(d[e]),g);f=f.concat(g)}return this.pushStack(f,c,i)}});T.each({removeAttr:function(b){T.attr(this,b,"");if(this.nodeType==1){this.removeAttribute(b)}},addClass:function(b){T.className.add(this,b)},removeClass:function(b){T.className.remove(this,b)},toggleClass:function(b,c){if(typeof c!=="boolean"){c=!T.className.has(this,b)}T.className[c?"add":"remove"](this,b)},remove:function(b){if(!b||T.filter(b,[this]).length){T("*",this).add([this]).each(function(){T.event.remove(this);T.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){T(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(c,b){T.fn[c]=function(){return this.each(b,arguments)}});function Y(c,b){return c[0]&&parseInt(T.curCSS(c[0],b,true),10)||0}var aa="jQuery"+ad(),I=0,R={};T.extend({cache:{},data:function(d,e,c){d=d==W?R:d;var b=d[aa];if(!b){b=d[aa]=++I}if(e&&!T.cache[b]){T.cache[b]={}}if(c!==ab){T.cache[b][e]=c}return e?T.cache[b][e]:b},removeData:function(d,e){d=d==W?R:d;var b=d[aa];if(e){if(T.cache[b]){delete T.cache[b][e];e="";for(e in T.cache[b]){break}if(!e){T.removeData(d)}}}else{try{delete d[aa]}catch(c){if(d.removeAttribute){d.removeAttribute(aa)}}delete T.cache[b]}},queue:function(d,e,b){if(d){e=(e||"fx")+"queue";var c=T.data(d,e);if(!c||T.isArray(b)){c=T.data(d,e,T.makeArray(b))}else{if(b){c.push(b)}}}return c},dequeue:function(b,c){var e=T.queue(b,c),d=e.shift();if(!c||c==="fx"){d=e[0]}if(d!==ab){d.call(b)}}});T.fn.extend({data:function(e,c){var b=e.split(".");b[1]=b[1]?"."+b[1]:"";if(c===ab){var d=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(d===ab&&this.length){d=T.data(this[0],e)}return d===ab&&b[1]?this.data(b[0]):d}else{return this.trigger("setData"+b[1]+"!",[b[0],c]).each(function(){T.data(this,e,c)})}},removeData:function(b){return this.each(function(){T.removeData(this,b)})},queue:function(c,b){if(typeof c!=="string"){b=c;c="fx"}if(b===ab){return T.queue(this[0],c)}return this.each(function(){var d=T.queue(this,c,b);if(c=="fx"&&d.length==1){d[0].call(this)}})},dequeue:function(b){return this.each(function(){T.dequeue(this,b)})}});(function(){var c=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,m=Object.prototype.toString;var o=function(s,w,aj,ai){aj=aj||[];w=w||document;if(w.nodeType!==1&&w.nodeType!==9){return[]}if(!s||typeof s!=="string"){return aj}var r=[],u,B,y,x,D,v,t=true;c.lastIndex=0;while((u=c.exec(s))!==null){r.push(u[1]);if(u[2]){v=RegExp.rightContext;break}}if(r.length>1&&h.exec(s)){if(r.length===2&&l.relative[r[0]]){B=k(r[0]+r[1],w)}else{B=l.relative[r[0]]?[w]:o(r.shift(),w);while(r.length){s=r.shift();if(l.relative[s]){s+=r.shift()}B=k(s,B)}}}else{var C=ai?{expr:r.pop(),set:p(ai)}:o.find(r.pop(),r.length===1&&w.parentNode?w.parentNode:w,d(w));B=o.filter(C.expr,C.set);if(r.length>0){y=p(B)}else{t=false}while(r.length){var z=r.pop(),A=z;if(!l.relative[z]){z=""}else{A=r.pop()}if(A==null){A=w}l.relative[z](y,A,d(w))}}if(!y){y=B}if(!y){throw"Syntax error, unrecognized expression: "+(z||s)}if(m.call(y)==="[object Array]"){if(!t){aj.push.apply(aj,y)}else{if(w.nodeType===1){for(var q=0;y[q]!=null;q++){if(y[q]&&(y[q]===true||y[q].nodeType===1&&j(w,y[q]))){aj.push(B[q])}}}else{for(var q=0;y[q]!=null;q++){if(y[q]&&y[q].nodeType===1){aj.push(B[q])}}}}}else{p(y,aj)}if(v){o(v,w,aj,ai);if(n){hasDuplicate=false;aj.sort(n);if(hasDuplicate){for(var q=1;q<aj.length;q++){if(aj[q]===aj[q-1]){aj.splice(q--,1)}}}}}return aj};o.matches=function(r,q){return o(r,null,null,q)};o.find=function(q,x,y){var r,t;if(!q){return[]}for(var u=0,v=l.order.length;u<v;u++){var s=l.order[u],t;if((t=l.match[s].exec(q))){var w=RegExp.leftContext;if(w.substr(w.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");r=l.find[s](t,x,y);if(r!=null){q=q.replace(l.match[s],"");break}}}}if(!r){r=x.getElementsByTagName("*")}return{set:r,expr:q}};o.filter=function(D,ai,A,u){var v=D,y=[],q=ai,s,x,r=ai&&ai[0]&&d(ai[0]);while(D&&ai.length){for(var aj in l.filter){if((s=l.match[aj].exec(D))!=null){var w=l.filter[aj],z,B;x=false;if(q==y){y=[]}if(l.preFilter[aj]){s=l.preFilter[aj](s,q,A,y,u,r);if(!s){x=z=true}else{if(s===true){continue}}}if(s){for(var t=0;(B=q[t])!=null;t++){if(B){z=w(B,s,t,q);var C=u^!!z;if(A&&z!=null){if(C){x=true}else{q[t]=false}}else{if(C){y.push(B);x=true}}}}}if(z!==ab){if(!A){q=y}D=D.replace(l.match[aj],"");if(!x){return[]}break}}}if(D==v){if(x==null){throw"Syntax error, unrecognized expression: "+D}else{break}}v=D}return q};var l=o.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(q){return q.getAttribute("href")}},relative:{"+":function(q,x,r){var t=typeof x==="string",y=t&&!/\W/.test(x),s=t&&!y;if(y&&!r){x=x.toUpperCase()}for(var u=0,v=q.length,w;u<v;u++){if((w=q[u])){while((w=w.previousSibling)&&w.nodeType!==1){}q[u]=s||w&&w.nodeName===x?w||false:w===x}}if(s){o.filter(x,q,true)}},">":function(v,s,u){var x=typeof s==="string";if(x&&!/\W/.test(s)){s=u?s:s.toUpperCase();for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){var q=w.parentNode;v[r]=q.nodeName===s?q:false}}}else{for(var r=0,t=v.length;r<t;r++){var w=v[r];if(w){v[r]=x?w.parentNode:w.parentNode===s}}if(x){o.filter(s,v,true)}}},"":function(q,s,u){var r=i++,t=b;if(!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=e}t("parentNode",s,r,q,v,u)},"~":function(q,s,u){var r=i++,t=b;if(typeof s==="string"&&!s.match(/\W/)){var v=s=u?s:s.toUpperCase();t=e}t("previousSibling",s,r,q,v,u)}},find:{ID:function(s,r,q){if(typeof r.getElementById!=="undefined"&&!q){var t=r.getElementById(s[1]);return t?[t]:[]}},NAME:function(r,v,u){if(typeof v.getElementsByName!=="undefined"){var s=[],w=v.getElementsByName(r[1]);for(var q=0,t=w.length;q<t;q++){if(w[q].getAttribute("name")===r[1]){s.push(w[q])}}return s.length===0?null:s}},TAG:function(r,q){return q.getElementsByTagName(r[1])}},preFilter:{CLASS:function(q,s,r,t,v,u){q=" "+q[1].replace(/\\/g,"")+" ";if(u){return q}for(var x=0,w;(w=s[x])!=null;x++){if(w){if(v^(w.className&&(" "+w.className+" ").indexOf(q)>=0)){if(!r){t.push(w)}}else{if(r){s[x]=false}}}}return false},ID:function(q){return q[1].replace(/\\/g,"")},TAG:function(r,s){for(var q=0;s[q]===false;q++){}return s[q]&&d(s[q])?r[1]:r[1].toUpperCase()},CHILD:function(r){if(r[1]=="nth"){var q=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(r[2]=="even"&&"2n"||r[2]=="odd"&&"2n+1"||!/\D/.test(r[2])&&"0n+"+r[2]||r[2]);r[2]=(q[1]+(q[2]||1))-0;r[3]=q[3]-0}r[0]=i++;return r},ATTR:function(w,s,r,t,v,u){var q=w[1].replace(/\\/g,"");if(!u&&l.attrMap[q]){w[1]=l.attrMap[q]}if(w[2]==="~="){w[4]=" "+w[4]+" "}return w},PSEUDO:function(v,s,r,t,u){if(v[1]==="not"){if(v[3].match(c).length>1||/^\w/.test(v[3])){v[3]=o(v[3],null,null,s)}else{var q=o.filter(v[3],s,r,true^u);if(!r){t.push.apply(t,q)}return false}}else{if(l.match.POS.test(v[0])||l.match.CHILD.test(v[0])){return true}}return v},POS:function(q){q.unshift(true);return q}},filters:{enabled:function(q){return q.disabled===false&&q.type!=="hidden"},disabled:function(q){return q.disabled===true},checked:function(q){return q.checked===true},selected:function(q){q.parentNode.selectedIndex;return q.selected===true},parent:function(q){return !!q.firstChild},empty:function(q){return !q.firstChild},has:function(q,r,s){return !!o(s[3],q).length},header:function(q){return/h\d/i.test(q.nodeName)},text:function(q){return"text"===q.type},radio:function(q){return"radio"===q.type},checkbox:function(q){return"checkbox"===q.type},file:function(q){return"file"===q.type},password:function(q){return"password"===q.type},submit:function(q){return"submit"===q.type},image:function(q){return"image"===q.type},reset:function(q){return"reset"===q.type},button:function(q){return"button"===q.type||q.nodeName.toUpperCase()==="BUTTON"},input:function(q){return/input|select|textarea|button/i.test(q.nodeName)}},setFilters:{first:function(q,r){return r===0},last:function(r,s,t,q){return s===q.length-1},even:function(q,r){return r%2===0},odd:function(q,r){return r%2===1},lt:function(q,r,s){return r<s[3]-0},gt:function(q,r,s){return r>s[3]-0},nth:function(q,r,s){return s[3]-0==r},eq:function(q,r,s){return s[3]-0==r}},filter:{PSEUDO:function(v,r,q,u){var s=r[1],x=l.filters[s];if(x){return x(v,q,r,u)}else{if(s==="contains"){return(v.textContent||v.innerText||"").indexOf(r[3])>=0}else{if(s==="not"){var w=r[3];for(var q=0,t=w.length;q<t;q++){if(w[q]===v){return false}}return true}}}},CHILD:function(x,u){var r=u[1],w=x;switch(r){case"only":case"first":while(w=w.previousSibling){if(w.nodeType===1){return false}}if(r=="first"){return true}w=x;case"last":while(w=w.nextSibling){if(w.nodeType===1){return false}}return true;case"nth":var v=u[2],y=u[3];if(v==1&&y==0){return true}var s=u[0],z=x.parentNode;if(z&&(z.sizcache!==s||!x.nodeIndex)){var t=0;for(w=z.firstChild;w;w=w.nextSibling){if(w.nodeType===1){w.nodeIndex=++t}}z.sizcache=s}var q=x.nodeIndex-y;if(v==0){return q==0}else{return(q%v==0&&q/v>=0)}}},ID:function(q,r){return q.nodeType===1&&q.getAttribute("id")===r},TAG:function(q,r){return(r==="*"&&q.nodeType===1)||q.nodeName===r},CLASS:function(q,r){return(" "+(q.className||q.getAttribute("class"))+" ").indexOf(r)>-1},ATTR:function(v,q){var r=q[1],t=l.attrHandle[r]?l.attrHandle[r](v):v[r]!=null?v[r]:v.getAttribute(r),u=t+"",w=q[2],s=q[4];return t==null?w==="!=":w==="="?u===s:w==="*="?u.indexOf(s)>=0:w==="~="?(" "+u+" ").indexOf(s)>=0:!s?u&&t!==false:w==="!="?u!=s:w==="^="?u.indexOf(s)===0:w==="$="?u.substr(u.length-s.length)===s:w==="|="?u===s||u.substr(0,s.length+1)===s+"-":false},POS:function(v,s,r,u){var t=s[2],q=l.setFilters[t];if(q){return q(v,r,s,u)}}}};var h=l.match.POS;for(var f in l.match){l.match[f]=RegExp(l.match[f].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var p=function(q,r){q=Array.prototype.slice.call(q);if(r){r.push.apply(r,q);return r}return q};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(g){p=function(u,q){var s=q||[];if(m.call(u)==="[object Array]"){Array.prototype.push.apply(s,u)}else{if(typeof u.length==="number"){for(var r=0,t=u.length;r<t;r++){s.push(u[r])}}else{for(var r=0;u[r];r++){s.push(u[r])}}}return s}}var n;if(document.documentElement.compareDocumentPosition){n=function(r,s){var q=r.compareDocumentPosition(s)&4?-1:r===s?0:1;if(q===0){hasDuplicate=true}return q}}else{if("sourceIndex" in document.documentElement){n=function(r,s){var q=r.sourceIndex-s.sourceIndex;if(q===0){hasDuplicate=true}return q}}else{if(document.createRange){n=function(q,s){var r=q.ownerDocument.createRange(),t=s.ownerDocument.createRange();r.selectNode(q);r.collapse(true);t.selectNode(s);t.collapse(true);var u=r.compareBoundaryPoints(Range.START_TO_END,t);if(u===0){hasDuplicate=true}return u}}}}(function(){var r=document.createElement("form"),q="script"+(new Date).getTime();r.innerHTML="<input name='"+q+"'/>";var s=document.documentElement;s.insertBefore(r,s.firstChild);if(!!document.getElementById(q)){l.find.ID=function(w,v,u){if(typeof v.getElementById!=="undefined"&&!u){var t=v.getElementById(w[1]);return t?t.id===w[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===w[1]?[t]:ab:[]}};l.filter.ID=function(u,t){var v=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&v&&v.nodeValue===t}}s.removeChild(r)})();(function(){var q=document.createElement("div");q.appendChild(document.createComment(""));if(q.getElementsByTagName("*").length>0){l.find.TAG=function(t,u){var v=u.getElementsByTagName(t[1]);if(t[1]==="*"){var r=[];for(var s=0;v[s];s++){if(v[s].nodeType===1){r.push(v[s])}}v=r}return v}}q.innerHTML="<a href='#'></a>";if(q.firstChild&&typeof q.firstChild.getAttribute!=="undefined"&&q.firstChild.getAttribute("href")!=="#"){l.attrHandle.href=function(r){return r.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var r=o,q=document.createElement("div");q.innerHTML="<p class='TEST'></p>";if(q.querySelectorAll&&q.querySelectorAll(".TEST").length===0){return}o=function(v,w,t,s){w=w||document;if(!s&&w.nodeType===9&&!d(w)){try{return p(w.querySelectorAll(v),t)}catch(u){}}return r(v,w,t,s)};o.find=r.find;o.filter=r.filter;o.selectors=r.selectors;o.matches=r.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var q=document.createElement("div");q.innerHTML="<div class='test e'></div><div class='test'></div>";if(q.getElementsByClassName("e").length===0){return}q.lastChild.className="e";if(q.getElementsByClassName("e").length===1){return}l.order.splice(1,0,"CLASS");l.find.CLASS=function(t,s,r){if(typeof s.getElementsByClassName!=="undefined"&&!r){return s.getElementsByClassName(t[1])}}})()}function e(w,r,s,y,q,z){var A=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(A&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1&&!z){x.sizcache=s;x.sizset=u}if(x.nodeName===r){t=x;break}x=x[w]}y[u]=t}}}function b(w,r,s,y,q,z){var A=w=="previousSibling"&&!z;for(var u=0,v=y.length;u<v;u++){var x=y[u];if(x){if(A&&x.nodeType===1){x.sizcache=s;x.sizset=u}x=x[w];var t=false;while(x){if(x.sizcache===s){t=y[x.sizset];break}if(x.nodeType===1){if(!z){x.sizcache=s;x.sizset=u}if(typeof r!=="string"){if(x===r){t=true;break}}else{if(o.filter(r,[x]).length>0){t=x;break}}}x=x[w]}y[u]=t}}}var j=document.compareDocumentPosition?function(q,r){return q.compareDocumentPosition(r)&16}:function(q,r){return q!==r&&(q.contains?q.contains(r):true)};var d=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&d(q.ownerDocument)};var k=function(t,v){var q=[],x="",w,r=v.nodeType?[v]:v;while((w=l.match.PSEUDO.exec(t))){x+=w[0];t=t.replace(l.match.PSEUDO,"")}t=l.relative[t]?t+"*":t;for(var u=0,s=r.length;u<s;u++){o(t,r[u],q)}return o.filter(x,q)};T.find=o;T.filter=o.filter;T.expr=o.selectors;T.expr[":"]=T.expr.filters;o.selectors.filters.hidden=function(q){return q.offsetWidth===0||q.offsetHeight===0};o.selectors.filters.visible=function(q){return q.offsetWidth>0||q.offsetHeight>0};o.selectors.filters.animated=function(q){return T.grep(T.timers,function(r){return q===r.elem}).length};T.multiFilter=function(q,s,r){if(r){q=":not("+q+")"}return o.matches(q,s)};T.dir=function(r,s){var t=[],q=r[s];while(q&&q!=document){if(q.nodeType==1){t.push(q)}q=q[s]}return t};T.nth=function(u,t,r,q){t=t||1;var s=0;for(;u;u=u[r]){if(u.nodeType==1&&++s==t){break}}return u};T.sibling=function(q,r){var s=[];for(;q;q=q.nextSibling){if(q.nodeType==1&&q!=r){s.push(q)}}return s};return;W.Sizzle=o})();T.event={add:function(d,g,e,b){if(d.nodeType==3||d.nodeType==8){return}if(d.setInterval&&d!=W){d=W}if(!e.guid){e.guid=this.guid++}if(b!==ab){var f=e;e=this.proxy(f);e.data=b}var h=T.data(d,"events")||T.data(d,"events",{}),c=T.data(d,"handle")||T.data(d,"handle",function(){return typeof T!=="undefined"&&!T.event.triggered?T.event.handle.apply(arguments.callee.elem,arguments):ab});c.elem=d;T.each(g.split(/\s+/),function(l,k){var j=k.split(".");k=j.shift();e.type=j.slice().sort().join(".");var i=h[k];if(T.event.specialAll[k]){T.event.specialAll[k].setup.call(d,b,j)}if(!i){i=h[k]={};if(!T.event.special[k]||T.event.special[k].setup.call(d,b,j)===false){if(d.addEventListener){d.addEventListener(k,c,false)}else{if(d.attachEvent){d.attachEvent("on"+k,c)}}}}i[e.guid]=e;T.event.global[k]=true});d=null},guid:1,global:{},remove:function(c,f,d){if(c.nodeType==3||c.nodeType==8){return}var g=T.data(c,"events"),h,i;if(g){if(f===ab||(typeof f==="string"&&f.charAt(0)==".")){for(var e in g){this.remove(c,e+(f||""))}}else{if(f.type){d=f.handler;f=f.type}T.each(f.split(/\s+/),function(n,l){var j=l.split(".");l=j.shift();var m=RegExp("(^|\\.)"+j.slice().sort().join(".*\\.")+"(\\.|$)");if(g[l]){if(d){delete g[l][d.guid]}else{for(var k in g[l]){if(m.test(g[l][k].type)){delete g[l][k]}}}if(T.event.specialAll[l]){T.event.specialAll[l].teardown.call(c,j)}for(h in g[l]){break}if(!h){if(!T.event.special[l]||T.event.special[l].teardown.call(c,j)===false){if(c.removeEventListener){c.removeEventListener(l,T.data(c,"handle"),false)}else{if(c.detachEvent){c.detachEvent("on"+l,T.data(c,"handle"))}}}h=null;delete g[l]}}})}for(h in g){break}if(!h){var b=T.data(c,"handle");if(b){b.elem=null}T.removeData(c,"events");T.removeData(c,"handle")}}},trigger:function(e,c,f,i){var g=e.type||e;if(!i){e=typeof e==="object"?e[aa]?e:T.extend(T.Event(g),e):T.Event(g);if(g.indexOf("!")>=0){e.type=g=g.slice(0,-1);e.exclusive=true}if(!f){e.stopPropagation();if(this.global[g]){T.each(T.cache,function(){if(this.events&&this.events[g]){T.event.trigger(e,c,this.handle.elem)}})}}if(!f||f.nodeType==3||f.nodeType==8){return ab}e.result=ab;e.target=f;c=T.makeArray(c);c.unshift(e)}e.currentTarget=f;var d=T.data(f,"handle");if(d){d.apply(f,c)}if((!f[g]||(T.nodeName(f,"a")&&g=="click"))&&f["on"+g]&&f["on"+g].apply(f,c)===false){e.result=false}if(!i&&f[g]&&!e.isDefaultPrevented()&&!(T.nodeName(f,"a")&&g=="click")){this.triggered=true;try{f[g]()}catch(b){}}this.triggered=false;if(!e.isPropagationStopped()){var h=f.parentNode||f.ownerDocument;if(h){T.event.trigger(e,c,h,true)}}},handle:function(c){var d,i;c=arguments[0]=T.event.fix(c||W.event);c.currentTarget=this;var b=c.type.split(".");c.type=b.shift();d=!b.length&&!c.exclusive;var e=RegExp("(^|\\.)"+b.slice().sort().join(".*\\.")+"(\\.|$)");i=(T.data(this,"events")||{})[c.type];for(var g in i){var f=i[g];if(d||e.test(f.type)){c.handler=f;c.data=f.data;var h=f.apply(this,arguments);if(h!==ab){c.result=h;if(h===false){c.preventDefault();c.stopPropagation()}}if(c.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[aa]){return d}var f=d;d=T.Event(f);for(var e=this.props.length,b;e;){b=this.props[--e];d[b]=f[b]}if(!d.target){d.target=d.srcElement||document}if(d.target.nodeType==3){d.target=d.target.parentNode}if(!d.relatedTarget&&d.fromElement){d.relatedTarget=d.fromElement==d.target?d.toElement:d.fromElement}if(d.pageX==null&&d.clientX!=null){var c=document.documentElement,g=document.body;d.pageX=d.clientX+(c&&c.scrollLeft||g&&g.scrollLeft||0)-(c.clientLeft||0);d.pageY=d.clientY+(c&&c.scrollTop||g&&g.scrollTop||0)-(c.clientTop||0)}if(!d.which&&((d.charCode||d.charCode===0)?d.charCode:d.keyCode)){d.which=d.charCode||d.keyCode}if(!d.metaKey&&d.ctrlKey){d.metaKey=d.ctrlKey}if(!d.which&&d.button){d.which=(d.button&1?1:(d.button&2?3:(d.button&4?2:0)))}return d},proxy:function(b,c){c=c||function(){return b.apply(this,arguments)};c.guid=b.guid=b.guid||c.guid||this.guid++;return c},special:{ready:{setup:P,teardown:function(){}}},specialAll:{live:{setup:function(c,b){T.event.add(this,b[0],af)},teardown:function(b){if(b.length){var d=0,c=RegExp("(^|\\.)"+b[0]+"(\\.|$)");T.each((T.data(this,"events").live||{}),function(){if(c.test(this.type)){d++}});if(d<1){T.event.remove(this,b[0],af)}}}}}};T.Event=function(b){if(!this.preventDefault){return new T.Event(b)}if(b&&b.type){this.originalEvent=b;this.type=b.type}else{this.type=b}this.timeStamp=ad();this[aa]=true};function X(){return false}function J(){return true}T.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var b=this.originalEvent;if(!b){return}if(b.preventDefault){b.preventDefault()}b.returnValue=false},stopPropagation:function(){this.isPropagationStopped=J;var b=this.originalEvent;if(!b){return}if(b.stopPropagation){b.stopPropagation()}b.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:X,isPropagationStopped:X,isImmediatePropagationStopped:X};var ah=function(c){var d=c.relatedTarget;while(d&&d!=this){try{d=d.parentNode}catch(b){d=this}}if(d!=this){c.type=c.data;T.event.handle.apply(this,arguments)}};T.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(b,c){T.event.special[c]={setup:function(){T.event.add(this,b,ah,c)},teardown:function(){T.event.remove(this,b,ah)}}});T.fn.extend({bind:function(c,b,d){return c=="unload"?this.one(c,b,d):this.each(function(){T.event.add(this,c,d||b,d&&b)})},one:function(c,b,d){var e=T.event.proxy(d||b,function(f){T(this).unbind(f,e);return(d||b).apply(this,arguments)});return this.each(function(){T.event.add(this,c,e,d&&b)})},unbind:function(b,c){return this.each(function(){T.event.remove(this,b,c)})},trigger:function(c,b){return this.each(function(){T.event.trigger(c,b,this)})},triggerHandler:function(d,b){if(this[0]){var c=T.Event(d);c.preventDefault();c.stopPropagation();T.event.trigger(c,b,this[0]);return c.result}},toggle:function(b){var d=arguments,c=1;while(c<d.length){T.event.proxy(b,d[c++])}return this.click(T.event.proxy(b,function(e){this.lastToggle=(this.lastToggle||0)%c;e.preventDefault();return d[this.lastToggle++].apply(this,arguments)||false}))},hover:function(c,b){return this.mouseenter(c).mouseleave(b)},ready:function(b){P();if(T.isReady){b.call(document,T)}else{T.readyList.push(b)}return this},live:function(b,c){var d=T.event.proxy(c);d.guid+=this.selector+b;T(document).bind(Z(b,this.selector),this.selector,d);return this},die:function(b,c){T(document).unbind(Z(b,this.selector),c?{guid:c.guid+this.selector+b}:null);return this}});function af(b){var e=RegExp("(^|\\.)"+b.type+"(\\.|$)"),c=true,d=[];T.each(T.data(this,"events").live||[],function(h,g){if(e.test(g.type)){var f=T(b.target).closest(g.data)[0];if(f){d.push({elem:f,fn:g})}}});d.sort(function(f,g){return T.data(f.elem,"closest")-T.data(g.elem,"closest")});T.each(d,function(){if(this.fn.call(this.elem,b,this.fn.data)===false){return(c=false)}});return c}function Z(b,c){return["live",b,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}T.extend({isReady:false,readyList:[],ready:function(){if(!T.isReady){T.isReady=true;if(T.readyList){T.each(T.readyList,function(){this.call(document,T)});T.readyList=null}T(document).triggerHandler("ready")}}});var G=false;function P(){if(G){return}G=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);T.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);T.ready()}});if(document.documentElement.doScroll&&W==W.top){(function(){if(T.isReady){return}try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}T.ready()})()}}}T.event.add(W,"load",T.ready)}T.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(b,c){T.fn[c]=function(d){return d?this.bind(c,d):this.trigger(c)}});T(W).bind("unload",function(){for(var b in T.cache){if(b!=1&&T.cache[b].handle){T.event.remove(T.cache[b].handle.elem)}}});(function(){T.support={};var g=document.documentElement,f=document.createElement("script"),b=document.createElement("div"),c="script"+(new Date).getTime();b.style.display="none";b.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var e=b.getElementsByTagName("*"),h=b.getElementsByTagName("a")[0];if(!e||!e.length||!h){return}T.support={leadingWhitespace:b.firstChild.nodeType==3,tbody:!b.getElementsByTagName("tbody").length,objectAll:!!b.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!b.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:h.style.opacity==="0.5",cssFloat:!!h.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};f.type="text/javascript";try{f.appendChild(document.createTextNode("window."+c+"=1;"))}catch(d){}g.insertBefore(f,g.firstChild);if(W[c]){T.support.scriptEval=true;delete W[c]}g.removeChild(f);if(b.attachEvent&&b.fireEvent){b.attachEvent("onclick",function(){T.support.noCloneEvent=false;b.detachEvent("onclick",arguments.callee)});b.cloneNode(true).fireEvent("onclick")}T(function(){var i=document.createElement("div");i.style.width=i.style.paddingLeft="1px";document.body.appendChild(i);T.boxModel=T.support.boxModel=i.offsetWidth===2;document.body.removeChild(i).style.display="none"})})();var H=T.support.cssFloat?"cssFloat":"styleFloat";T.props={"for":"htmlFor","class":"className","float":H,cssFloat:H,styleFloat:H,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};T.fn.extend({_load:T.fn.load,load:function(f,c,b){if(typeof f!=="string"){return this._load(f)}var d=f.indexOf(" ");if(d>=0){var h=f.slice(d,f.length);f=f.slice(0,d)}var e="GET";if(c){if(T.isFunction(c)){b=c;c=null}else{if(typeof c==="object"){c=T.param(c);e="POST"}}}var g=this;T.ajax({url:f,type:e,dataType:"html",data:c,complete:function(j,i){if(i=="success"||i=="notmodified"){g.html(h?T("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):j.responseText)}if(b){g.each(b,[j.responseText,i,j])}}});return this},serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?T.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(d,c){var b=T(this).val();return b==null?null:T.isArray(b)?T.map(b,function(e,f){return{name:c.name,value:e}}):{name:c.name,value:b}}).get()}});T.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(c,b){T.fn[b]=function(d){return this.bind(b,d)}});var N=ad();T.extend({get:function(e,c,b,d){if(T.isFunction(c)){b=c;c=null}return T.ajax({type:"GET",url:e,data:c,success:b,dataType:d})},getScript:function(c,b){return T.get(c,null,b,"script")},getJSON:function(d,c,b){return T.get(d,c,b,"json")},post:function(e,c,b,d){if(T.isFunction(c)){b=c;c={}}return T.ajax({type:"POST",url:e,data:c,success:b,dataType:d})},ajaxSetup:function(b){T.extend(T.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return W.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(l){l=T.extend(true,l,T.extend(true,{},T.ajaxSettings,l));var b,s=/=\?(&|$)/g,g,c,r=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=T.param(l.data)}if(l.dataType=="jsonp"){if(r=="GET"){if(!l.url.match(s)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"}}else{if(!l.data||!l.data.match(s)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"}}l.dataType="json"}if(l.dataType=="json"&&(l.data&&l.data.match(s)||l.url.match(s))){b="jsonp"+N++;if(l.data){l.data=(l.data+"").replace(s,"="+b+"$1")}l.url=l.url.replace(s,"="+b+"$1");l.dataType="script";W[b]=function(v){c=v;p();m();W[b]=ab;try{delete W[b]}catch(u){}if(q){q.removeChild(e)}}}if(l.dataType=="script"&&l.cache==null){l.cache=false}if(l.cache===false&&r=="GET"){var t=ad();var d=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");l.url=d+((d==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+t:"")}if(l.data&&r=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!T.active++){T.event.trigger("ajaxStart")}var h=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType=="script"&&r=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var q=document.getElementsByTagName("head")[0];var e=document.createElement("script");e.src=l.url;if(l.scriptCharset){e.charset=l.scriptCharset}if(!b){var j=false;e.onload=e.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;p();m();e.onload=e.onreadystatechange=null;q.removeChild(e)}}}q.appendChild(e);return ab}var n=false;var o=l.xhr();if(l.username){o.open(r,l.url,l.async,l.username,l.password)}else{o.open(r,l.url,l.async)}try{if(l.data){o.setRequestHeader("Content-Type",l.contentType)}if(l.ifModified){o.setRequestHeader("If-Modified-Since",T.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}o.setRequestHeader("X-Requested-With","XMLHttpRequest");o.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)}catch(f){}if(l.beforeSend&&l.beforeSend(o,l)===false){if(l.global&&!--T.active){T.event.trigger("ajaxStop")}o.abort();return false}if(l.global){T.event.trigger("ajaxSend",[o,l])}var k=function(w){if(o.readyState==0){if(i){clearInterval(i);i=null;if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}}else{if(!n&&o&&(o.readyState==4||w=="timeout")){n=true;if(i){clearInterval(i);i=null}g=w=="timeout"?"timeout":!T.httpSuccess(o)?"error":l.ifModified&&T.httpNotModified(o,l.url)?"notmodified":"success";if(g=="success"){try{c=T.httpData(o,l.dataType,l)}catch(u){g="parsererror"}}if(g=="success"){var v;try{v=o.getResponseHeader("Last-Modified")}catch(u){}if(l.ifModified&&v){T.lastModified[l.url]=v}if(!b){p()}}else{T.handleError(l,o,g)}m();if(w){o.abort()}if(l.async){o=null}}}};if(l.async){var i=setInterval(k,13);if(l.timeout>0){setTimeout(function(){if(o&&!n){k("timeout")}},l.timeout)}}try{o.send(l.data)}catch(f){T.handleError(l,o,null,f)}if(!l.async){k()}function p(){if(l.success){l.success(c,g)}if(l.global){T.event.trigger("ajaxSuccess",[o,l])}}function m(){if(l.complete){l.complete(o,g)}if(l.global){T.event.trigger("ajaxComplete",[o,l])}if(l.global&&!--T.active){T.event.trigger("ajaxStop")}}return o},handleError:function(d,b,e,c){if(d.error){d.error(b,e,c)}if(d.global){T.event.trigger("ajaxError",[b,d,c])}},active:0,httpSuccess:function(b){try{return !b.status&&location.protocol=="file:"||(b.status>=200&&b.status<300)||b.status==304||b.status==1223}catch(c){}return false},httpNotModified:function(c,e){try{var b=c.getResponseHeader("Last-Modified");return c.status==304||b==T.lastModified[e]}catch(d){}return false},httpData:function(b,d,e){var f=b.getResponseHeader("content-type"),g=d=="xml"||!d&&f&&f.indexOf("xml")>=0,c=g?b.responseXML:b.responseText;if(g&&c.documentElement.tagName=="parsererror"){throw"parsererror"}if(e&&e.dataFilter){c=e.dataFilter(c,d)}if(typeof c==="string"){if(d=="script"){T.globalEval(c)}if(d=="json"){c=W["eval"]("("+c+")")}}return c},param:function(e){var c=[];function b(g,f){c[c.length]=encodeURIComponent(g)+"="+encodeURIComponent(f)}if(T.isArray(e)||e.jquery){T.each(e,function(){b(this.name,this.value)})}else{for(var d in e){if(T.isArray(e[d])){T.each(e[d],function(){b(d,this)})}else{b(d,T.isFunction(e[d])?e[d]():e[d])}}}return c.join("&").replace(/%20/g,"+")}});var V={},U,ae=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function K(c,d){var b={};T.each(ae.concat.apply([],ae.slice(0,d)),function(){b[this]=c});return b}T.fn.extend({show:function(d,b){if(d){return this.animate(K("show",3),d,b)}else{for(var f=0,h=this.length;f<h;f++){var i=T.data(this[f],"olddisplay");this[f].style.display=i||"";if(T.css(this[f],"display")==="none"){var g=this[f].tagName,c;if(V[g]){c=V[g]}else{var e=T("<"+g+" />").appendTo("body");c=e.css("display");if(c==="none"){c="block"}e.remove();V[g]=c}T.data(this[f],"olddisplay",c)}}for(var f=0,h=this.length;f<h;f++){this[f].style.display=T.data(this[f],"olddisplay")||""}return this}},hide:function(c,b){if(c){return this.animate(K("hide",3),c,b)}else{for(var d=0,e=this.length;d<e;d++){var f=T.data(this[d],"olddisplay");if(!f&&f!=="none"){T.data(this[d],"olddisplay",T.css(this[d],"display"))}}for(var d=0,e=this.length;d<e;d++){this[d].style.display="none"}return this}},_toggle:T.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";return T.isFunction(b)&&T.isFunction(c)?this._toggle.apply(this,arguments):b==null||d?this.each(function(){var e=d?b:T(this).is(":hidden");T(this)[e?"show":"hide"]()}):this.animate(K("toggle",3),b,c)},fadeTo:function(d,b,c){return this.animate({opacity:b},d,c)},animate:function(b,e,c,d){var f=T.speed(e,c,d);return this[f.queue===false?"each":"queue"](function(){var h=T.extend({},f),j,g=this.nodeType==1&&T(this).is(":hidden"),i=this;for(j in b){if(b[j]=="hide"&&g||b[j]=="show"&&!g){return h.complete.call(this)}if((j=="height"||j=="width")&&this.style){h.display=T.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=T.extend({},b);T.each(b,function(p,l){var m=new T.fx(i,h,p);if(/toggle|show|hide/.test(l)){m[l=="toggle"?g?"show":"hide":l](b)}else{var n=l.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),k=m.cur(true)||0;if(n){var q=parseFloat(n[2]),o=n[3]||"px";if(o!="px"){i.style[p]=(q||1)+o;k=((q||1)/m.cur(true))*k;i.style[p]=k+o}if(n[1]){q=((n[1]=="-="?-1:1)*q)+k}m.custom(k,q,o)}else{m.custom(k,l,"")}}});return true})},stop:function(c,d){var b=T.timers;if(c){this.queue([])}this.each(function(){for(var e=b.length-1;e>=0;e--){if(b[e].elem==this){if(d){b[e](true)}b.splice(e,1)}}});if(!d){this.dequeue()}return this}});T.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(c,b){T.fn[c]=function(e,d){return this.animate(b,e,d)}});T.extend({speed:function(c,b,d){var e=typeof c==="object"?c:{complete:d||!d&&b||T.isFunction(c)&&c,duration:c,easing:d&&b||b&&!T.isFunction(b)&&b};e.duration=T.fx.off?0:typeof e.duration==="number"?e.duration:T.fx.speeds[e.duration]||T.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){T(this).dequeue()}if(T.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(c,b,e,d){return e+d*c},swing:function(c,b,e,d){return((-Math.cos(c*Math.PI)/2)+0.5)*d+e}},timers:[],fx:function(c,d,b){this.options=d;this.elem=c;this.prop=b;if(!d.orig){d.orig={}}}});T.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(T.fx.step[this.prop]||T.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var c=parseFloat(T.css(this.elem,this.prop,b));return c&&c>-10000?c:parseFloat(T.curCSS(this.elem,this.prop))||0},custom:function(b,c,d){this.startTime=ad();this.start=b;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;function e(g){return f.step(g)}e.elem=this.elem;if(e()&&T.timers.push(e)&&!U){U=setInterval(function(){var g=T.timers;for(var h=0;h<g.length;h++){if(!g[h]()){g.splice(h--,1)}}if(!g.length){clearInterval(U);U=ab}},13)}},show:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());T(this.elem).show()},hide:function(){this.options.orig[this.prop]=T.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(d){var e=ad();if(d||e>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var g=true;for(var f in this.options.curAnim){if(this.options.curAnim[f]!==true){g=false}}if(g){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(T.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){T(this.elem).hide()}if(this.options.hide||this.options.show){for(var c in this.options.curAnim){T.attr(this.elem.style,c,this.options.orig[c])}}this.options.complete.call(this.elem)}return false}else{var b=e-this.startTime;this.state=b/this.options.duration;this.pos=T.easing[this.options.easing||(T.easing.swing?"swing":"linear")](this.state,b,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};T.extend(T.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){T.attr(b.elem.style,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null){b.elem.style[b.prop]=b.now+b.unit}else{b.elem[b.prop]=b.now}}}});if(document.documentElement.getBoundingClientRect){T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}var g=this[0].getBoundingClientRect(),d=this[0].ownerDocument,h=d.body,i=d.documentElement,b=i.clientTop||h.clientTop||0,c=i.clientLeft||h.clientLeft||0,e=g.top+(self.pageYOffset||T.boxModel&&i.scrollTop||h.scrollTop)-b,f=g.left+(self.pageXOffset||T.boxModel&&i.scrollLeft||h.scrollLeft)-c;return{top:e,left:f}}}else{T.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return T.offset.bodyOffset(this[0])}T.offset.initialized||T.offset.initialize();var g=this[0],j=g.offsetParent,k=g,b=g.ownerDocument,d,i=b.documentElement,f=b.body,e=b.defaultView,l=e.getComputedStyle(g,null),c=g.offsetTop,h=g.offsetLeft;while((g=g.parentNode)&&g!==f&&g!==i){d=e.getComputedStyle(g,null);c-=g.scrollTop,h-=g.scrollLeft;if(g===j){c+=g.offsetTop,h+=g.offsetLeft;if(T.offset.doesNotAddBorder&&!(T.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){c+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}k=j,j=g.offsetParent}if(T.offset.subtractsBorderForOverflowNotVisible&&d.overflow!=="visible"){c+=parseInt(d.borderTopWidth,10)||0,h+=parseInt(d.borderLeftWidth,10)||0}l=d}if(l.position==="relative"||l.position==="static"){c+=f.offsetTop,h+=f.offsetLeft}if(l.position==="fixed"){c+=Math.max(i.scrollTop,f.scrollTop),h+=Math.max(i.scrollLeft,f.scrollLeft)}return{top:c,left:h}}}T.offset={initialize:function(){if(this.initialized){return}var d=document.body,j=document.createElement("div"),h,i,b,g,c,k,f=d.style.marginTop,e='<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>';c={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in c){j.style[k]=c[k]}j.innerHTML=e;d.insertBefore(j,d.firstChild);h=j.firstChild,i=h.firstChild,g=h.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(i.offsetTop!==5);this.doesAddBorderForTableAndCells=(g.offsetTop===5);h.style.overflow="hidden",h.style.position="relative";this.subtractsBorderForOverflowNotVisible=(i.offsetTop===-5);d.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(d.offsetTop===0);d.style.marginTop=f;d.removeChild(j);this.initialized=true},bodyOffset:function(d){T.offset.initialized||T.offset.initialize();var b=d.offsetTop,c=d.offsetLeft;if(T.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(T.curCSS(d,"marginTop",true),10)||0,c+=parseInt(T.curCSS(d,"marginLeft",true),10)||0}return{top:b,left:c}}};T.fn.extend({position:function(){var c=0,d=0,f;if(this[0]){var e=this.offsetParent(),b=this.offset(),g=/^body|html$/i.test(e[0].tagName)?{top:0,left:0}:e.offset();b.top-=Y(this,"marginTop");b.left-=Y(this,"marginLeft");g.top+=Y(e,"borderTopWidth");g.left+=Y(e,"borderLeftWidth");f={top:b.top-g.top,left:b.left-g.left}}return f},offsetParent:function(){var b=this[0].offsetParent||document.body;while(b&&(!/^body|html$/i.test(b.tagName)&&T.css(b,"position")=="static")){b=b.offsetParent}return T(b)}});T.each(["Left","Top"],function(c,d){var b="scroll"+d;T.fn[b]=function(e){if(!this[0]){return null}return e!==ab?this.each(function(){this==W||this==document?W.scrollTo(!c?e:T(W).scrollLeft(),c?e:T(W).scrollTop()):this[b]=e}):this[0]==W||this[0]==document?self[c?"pageYOffset":"pageXOffset"]||T.boxModel&&document.documentElement[b]||document.body[b]:this[0][b]}});T.each(["Height","Width"],function(c,e){var g=c?"Left":"Top",d=c?"Right":"Bottom",f=e.toLowerCase();T.fn["inner"+e]=function(){return this[0]?T.css(this[0],f,false,"padding"):null};T.fn["outer"+e]=function(h){return this[0]?T.css(this[0],f,false,h?"margin":"border"):null};var b=e.toLowerCase();T.fn[b]=function(h){return this[0]==W?document.compatMode=="CSS1Compat"&&document.documentElement["client"+e]||document.body["client"+e]:this[0]==document?Math.max(document.documentElement["client"+e],document.body["scroll"+e],document.documentElement["scroll"+e],document.body["offset"+e],document.documentElement["offset"+e]):h===ab?(this.length?T.css(this[0],b):null):this.css(b,typeof h==="string"?h:h+"px")}})})();$(document).ready(function(){$(".viewbrochure,.colorguide,.downloadbutton,.donatebutton").append('<span class="hover"></span>').each(function(){var b=$("> span.hover",this).css("opacity",0);$(this).hover(function(){b.stop().fadeTo(500,1)},function(){b.stop().fadeTo(500,0)})})});(function($){$(document).ready(function(){$(".cloud-zoom, .cloud-zoom-gallery").CloudZoom()});function format(str){for(var i=1;i<arguments.length;i++){str=str.replace("%"+(i-1),arguments[i])}return str}function CloudZoom(jWin,opts){var sImg=$("img",jWin);var img1;var img2;var zoomDiv=null;var $mouseTrap=null;var lens=null;var $tint=null;var softFocus=null;var $ie6Fix=null;var zoomImage;var controlTimer=0;var cw,ch;var destU=0;var destV=0;var currV=0;var currU=0;var filesLoaded=0;var mx,my;var ctx=this,zw;setTimeout(function(){if($mouseTrap===null){var w=jWin.width();jWin.parent().append(format('<div style="width:%0px;position:absolute;top:75%;left:%1px;text-align:center" class="cloud-zoom-loading" >Loading...</div>',w/3,(w/2)-(w/6))).find(":last").css("opacity",0.5)}},200);var ie6FixRemove=function(){if($ie6Fix!==null){$ie6Fix.remove();$ie6Fix=null}};this.removeBits=function(){if(lens){lens.remove();lens=null}if($tint){$tint.remove();$tint=null}if(softFocus){softFocus.remove();softFocus=null}ie6FixRemove();$(".cloud-zoom-loading",jWin.parent()).remove()};this.destroy=function(){jWin.data("zoom",null);if($mouseTrap){$mouseTrap.unbind();$mouseTrap.remove();$mouseTrap=null}if(zoomDiv){zoomDiv.remove();zoomDiv=null}this.removeBits()};this.fadedOut=function(){if(zoomDiv){zoomDiv.remove();zoomDiv=null}this.removeBits()};this.controlLoop=function(){if(lens){var x=(mx-sImg.offset().left-(cw*0.5))>>0;var y=(my-sImg.offset().top-(ch*0.5))>>0;if(x<0){x=0}else{if(x>(sImg.outerWidth()-cw)){x=(sImg.outerWidth()-cw)}}if(y<0){y=0}else{if(y>(sImg.outerHeight()-ch)){y=(sImg.outerHeight()-ch)}}lens.css({left:x,top:y});lens.css("background-position",(-x)+"px "+(-y)+"px");destU=(((x)/sImg.outerWidth())*zoomImage.width)>>0;destV=(((y)/sImg.outerHeight())*zoomImage.height)>>0;currU+=(destU-currU)/opts.smoothMove;currV+=(destV-currV)/opts.smoothMove;zoomDiv.css("background-position",(-(currU>>0)+"px ")+(-(currV>>0)+"px"))}controlTimer=setTimeout(function(){ctx.controlLoop()},30)};this.init2=function(img,id){filesLoaded++;if(id===1){zoomImage=img}if(filesLoaded===2){this.init()}};this.init=function(){$(".cloud-zoom-loading",jWin.parent()).remove();$mouseTrap=jWin.parent().append(format("<div class='mousetrap' style='background-image:url(\".\");z-index:999;position:absolute;width:%0px;height:%1px;left:%2px;top:%3px;'></div>",sImg.outerWidth(),sImg.outerHeight(),0,0)).find(":last");$mouseTrap.bind("mousemove",this,function(event){mx=event.pageX;my=event.pageY});$mouseTrap.bind("mouseleave",this,function(event){clearTimeout(controlTimer);if(lens){lens.fadeOut(299)}if($tint){$tint.fadeOut(299)}if(softFocus){softFocus.fadeOut(299)}zoomDiv.fadeOut(300,function(){ctx.fadedOut()});return false});$mouseTrap.bind("mouseenter",this,function(event){mx=event.pageX;my=event.pageY;zw=event.data;if(zoomDiv){zoomDiv.stop(true,false);zoomDiv.remove()}var xPos=opts.adjustX,yPos=opts.adjustY;var siw=sImg.outerWidth();var sih=sImg.outerHeight();var w=opts.zoomWidth;var h=opts.zoomHeight;if(opts.zoomWidth=="auto"){w=siw}if(opts.zoomHeight=="auto"){h=sih}var appendTo=jWin.parent();switch(opts.position){case"top":yPos-=h;break;case"right":xPos+=siw;break;case"bottom":yPos+=sih;break;case"left":xPos-=w;break;case"inside":w=siw;h=sih;break;default:appendTo=$("#"+opts.position);if(!appendTo.length){appendTo=jWin;xPos+=siw;yPos+=sih}else{w=appendTo.innerWidth();h=appendTo.innerHeight()}}zoomDiv=appendTo.append(format('<div id="cloud-zoom-big" class="cloud-zoom-big" style="display:none;position:absolute;left:%0px;top:%1px;width:%2px;height:%3px;background-image:url(\'%4\');z-index:99;"></div>',xPos,yPos,w,h,zoomImage.src)).find(":last");if(sImg.attr("title")&&opts.showTitle){zoomDiv.append(format('<div class="cloud-zoom-title">%0</div>',sImg.attr("title"))).find(":last").css("opacity",opts.titleOpacity)}if($.browser.msie&&$.browser.version<7){$ie6Fix=$('<iframe frameborder="0" src="#"></iframe>').css({position:"absolute",left:xPos,top:yPos,zIndex:99,width:w,height:h}).insertBefore(zoomDiv)}zoomDiv.fadeIn(500);if(lens){lens.remove();lens=null}cw=(sImg.outerWidth()/zoomImage.width)*zoomDiv.width();ch=(sImg.outerHeight()/zoomImage.height)*zoomDiv.height();lens=jWin.append(format("<div class = 'cloud-zoom-lens' style='display:none;z-index:98;position:absolute;width:%0px;height:%1px;'></div>",cw,ch)).find(":last");$mouseTrap.css("cursor",lens.css("cursor"));var noTrans=false;if(opts.tint){lens.css("background",'url("'+sImg.attr("src")+'")');$tint=jWin.append(format('<div style="display:none;position:absolute; left:0px; top:0px; width:%0px; height:%1px; background-color:%2;" />',sImg.outerWidth(),sImg.outerHeight(),opts.tint)).find(":last");$tint.css("opacity",opts.tintOpacity);noTrans=true;$tint.fadeIn(500)}if(opts.softFocus){lens.css("background",'url("'+sImg.attr("src")+'")');softFocus=jWin.append(format('<div style="position:absolute;display:none;top:2px; left:2px; width:%0px; height:%1px;" />',sImg.outerWidth()-2,sImg.outerHeight()-2,opts.tint)).find(":last");softFocus.css("background",'url("'+sImg.attr("src")+'")');softFocus.css("opacity",0.5);noTrans=true;softFocus.fadeIn(500)}if(!noTrans){lens.css("opacity",opts.lensOpacity)}if(opts.position!=="inside"){lens.fadeIn(500)}zw.controlLoop();return})};img1=new Image();$(img1).load(function(){ctx.init2(this,0)});img1.src=sImg.attr("src");img2=new Image();$(img2).load(function(){ctx.init2(this,1)});img2.src=jWin.attr("href")}$.fn.CloudZoom=function(options){try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}this.each(function(){var relOpts,opts;eval("var	a = {"+$(this).attr("rel")+"}");relOpts=a;if($(this).is(".cloud-zoom")){$(this).css({position:"relative",display:"block"});$("img",$(this)).css({display:"block"});if($(this).parent().attr("id")!="wrap"){$(this).wrap('<div id="wrap" style="top:0px;z-index:9999;position:relative;"></div>')}opts=$.extend({},$.fn.CloudZoom.defaults,options);opts=$.extend({},opts,relOpts);$(this).data("zoom",new CloudZoom($(this),opts))}else{if($(this).is(".cloud-zoom-gallery")){opts=$.extend({},relOpts,options);$(this).data("relOpts",opts);$(this).bind("click",$(this),function(event){var data=event.data.data("relOpts");$("#"+data.useZoom).data("zoom").destroy();$("#"+data.useZoom).attr("href",event.data.attr("href"));$("#"+data.useZoom+" img").attr("src",event.data.data("relOpts").smallImage);$("#"+event.data.data("relOpts").useZoom).CloudZoom();return false})}}});return this};$.fn.CloudZoom.defaults={zoomWidth:"auto",zoomHeight:"auto",position:"right",tint:false,tintOpacity:0.5,lensOpacity:0.5,softFocus:false,smoothMove:3,showTitle:true,titleOpacity:0.5,adjustX:0,adjustY:0}})(jQuery);

