(function(){if(!(window.google&&google.gears)){var i=null;if(typeof GearsFactory!="undefined")i=new GearsFactory;else try{i=new ActiveXObject("Gears.Factory");i.getBuildInfo().indexOf("ie_mobile")!=-1&&i.privateSetGlobalObject(this)}catch(u){if(typeof navigator.mimeTypes!="undefined"&&navigator.mimeTypes["application/x-googlegears"]){i=document.createElement("object");i.style.display="none";i.width=0;i.height=0;i.type="application/x-googlegears";document.documentElement.appendChild(i)}}if(i){window.google||
(google={});if(!google.gears)google.gears={factory:i}}}})();var bb_successCallback,bb_errorCallback;
function handleBlackBerryLocation(){if(bb_successCallback&&bb_errorCallback){if(blackberry.location.latitude==0&&blackberry.location.longitude==0)bb_errorCallback({message:"Position unavailable",code:2});else{var i=null;if(blackberry.location.timestamp)i=new Date(blackberry.location.timestamp);bb_successCallback({timestamp:i,coords:{latitude:blackberry.location.latitude,longitude:blackberry.location.longitude}})}parseFloat(navigator.appVersion)>=4.6&&blackberry.location.removeLocationUpdate(handleBlackBerryLocation);bb_errorCallback=
bb_successCallback=null}}
var geo_position_js=function(){var i={},u=null;i.getCurrentPosition=function(z,y,x){u.getCurrentPosition(z,y,x)};i.init=function(){try{if(typeof geo_position_js_simulator!="undefined")u=geo_position_js_simulator;else if(typeof bondi!="undefined"&&typeof bondi.geolocation!="undefined")u=bondi.geolocation;else if(typeof window.google!="undefined"&&typeof window.google.gears!="undefined"){u=google.gears.factory.create("beta.geolocation");i.getCurrentPosition=function(y,x,g){try{function m(A){typeof A.latitude!="undefined"?
y({timestamp:A.timestamp,coords:{latitude:A.latitude,longitude:A.longitude}}):y(A)}u.getCurrentPosition(m,x,g)}catch(v){x({message:v,code:1})}}}else if(typeof navigator.geolocation!="undefined"){u=navigator.geolocation;i.getCurrentPosition=function(y,x,g){function m(v){typeof v.latitude!="undefined"?y({timestamp:v.timestamp,coords:{latitude:v.latitude,longitude:v.longitude}}):y(v)}u.getCurrentPosition(m,x,g)};i.watchPosition=function(y,x,g){try{u.watchPosition(y,x,g);i.clearWatch=function(v){typeof u.clearWatch!=
"undefined"&&u.clearWatch(v)}}catch(m){x({message:m,code:1})}}}else if(typeof Mojo!="undefined"&&typeof Mojo.Service!="undefined"&&typeof Mojo.Service.Request!="Mojo.Service.Request"){u=true;i.getCurrentPosition=function(y,x,g){parameters={};if(g){if(g.enableHighAccuracy&&g.enableHighAccuracy==true)parameters.accuracy=1;if(g.maximumAge)parameters.maximumAge=g.maximumAge;if(g.responseTime)if(g.responseTime<5)parameters.responseTime=1;else if(g.responseTime<20)parameters.responseTime=2;else parameters.timeout=
3}r=new Mojo.Service.Request("palm://com.palm.location",{method:"getCurrentPosition",parameters:parameters,onSuccess:function(m){y({timestamp:m.timestamp,coords:{latitude:m.latitude,longitude:m.longitude,heading:m.heading}})},onFailure:function(m){if(m.errorCode==1)x({code:3,message:"Timeout"});else m.errorCode==2?x({code:2,message:"Position Unavailable"}):x({code:0,message:"Unknown Error: webOS-code"+errorCode})}})}}else if(typeof device!="undefined"&&typeof device.getServiceObject!="undefined"){u=
device.getServiceObject("Service.Location","ILocation");i.getCurrentPosition=function(y,x){function g(v,A,n){A==4?x({message:"Position unavailable",code:2}):y({timestamp:null,coords:{latitude:n.ReturnValue.Latitude,longitude:n.ReturnValue.Longitude,altitude:n.ReturnValue.Altitude,heading:n.ReturnValue.Heading}})}var m={};m.LocationInformationClass="BasicLocationInformation";u.ILocation.GetLocation(m,g)}}else if(typeof window.blackberry!="undefined"&&blackberry.location.GPSSupported){blackberry.location.setAidMode(2);
i.getCurrentPosition=function(y,x){bb_successCallback=y;bb_errorCallback=x;parseFloat(navigator.appVersion)>=4.6?blackberry.location.onLocationUpdate(handleBlackBerryLocation):blackberry.location.onLocationUpdate("handleBlackBerryLocation()");blackberry.location.refreshLocation()};u=blackberry.location}}catch(z){typeof console!="undefined"&&console.log(z)}return u!=null};return i}();(function(){function i(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 u(){return+new Date}function z(a,b){return a[0]&&parseInt(c.curCSS(a[0],b,true),10)||0}function y(){return false}function x(){return true}function g(a){var b=RegExp("(^|\\.)"+a.type+"(\\.|$)"),d=true,f=[];c.each(c.data(this,"events").live||[],function(j,l){if(b.test(l.type))(j=c(a.target).closest(l.data)[0])&&f.push({elem:j,
fn:l})});f.sort(function(j,l){return c.data(j.elem,"closest")-c.data(l.elem,"closest")});c.each(f,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return d=false});return d}function m(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function v(){if(!Z){Z=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);c.ready()}});document.documentElement.doScroll&&n==n.top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(n,"load",c.ready)}}function A(a,b){var d={};c.each(ga.concat.apply([],ga.slice(0,b)),function(){d[this]=a});return d}var n=this,s,D=n.jQuery,N=n.$,c=n.jQuery=n.$=function(a,b){return new c.fn.init(a,
b)},U=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,G=/^.[^:#\[\.,]*$/;c.fn=c.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var d=U.exec(a);if(d&&(d[1]||!b))if(d[1])a=c.clean([d[1]],b);else{if((b=document.getElementById(d[3]))&&b.id!=d[3])return c().find(a);d=c(b||[]);d.context=document;d.selector=a;return d}else return c(b).find(a)}else if(c.isFunction(a))return c(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(c.isArray(a)?a:c.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===s?Array.prototype.slice.call(this):this[a]},pushStack:function(a,b,d){a=c(a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,b){return c.each(this,a,b)},index:function(a){return c.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,d){var f=a;if(typeof a==="string")if(b===s)return this[0]&&c[d||"attr"](this[0],a);else{f={};f[a]=b}return this.each(function(j){for(a in f)c.attr(d?this.style:this,a,c.prop(this,f[a],d,j,a))})},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0)b=s;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var b="";c.each(a||this,function(){c.each(this.childNodes,function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:c.fn.text([this])})});return b},wrapAll:function(a){if(this[0]){a=c(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var b=this;b.firstChild;)b=b.firstChild;return b}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},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(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,
this.nextSibling)})},end:function(){return this.prevObject||c([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);b.length=0;c.find(a,this[0],b);return b}else return this.pushStack(c.unique(c.map(this,function(d){return c.find(a,d)})),"find",a)},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var j=this.outerHTML;if(!j){j=this.ownerDocument.createElement("div");j.appendChild(this.cloneNode(true));
j=j.innerHTML}return c.clean([j.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(a===true){var d=this.find("*").andSelf(),f=0;b.find("*").andSelf().each(function(){if(this.nodeName===d[f].nodeName){var j=c.data(d[f],"events");for(var l in j)for(var p in j[l])c.event.add(this,l,j[l][p],j[l][p].data);f++}})}return b},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(b,d){return a.call(b,d)})||c.multiFilter(a,c.grep(this,
function(b){return b.nodeType===1})),"filter",a)},closest:function(a){var b=c.expr.match.POS.test(a)?c(a):null,d=0;return this.map(function(){for(var f=this;f&&f.ownerDocument;){if(b?b.index(f)>-1:c(f).is(a)){c.data(f,"closest",d);return f}f=f.parentNode;d++}})},not:function(a){if(typeof a==="string")if(G.test(a))return this.pushStack(c.multiFilter(a,this,true),"not",a);else a=c.multiFilter(a,this);var b=a.length&&a[a.length-1]!==s&&!a.nodeType;return this.filter(function(){return b?c.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(c.unique(c.merge(this.get(),typeof a==="string"?c(a):c.makeArray(a))))},is:function(a){return!!a&&c.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===s){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=[],j=b.options;b=b.type=="select-one";if(d<0)return null;var l=b?d:0;for(d=b?d+1:j.length;l<
d;l++){var p=j[l];if(p.selected){a=c(p).val();if(b)return a;f.push(a)}}return f}return(b.value||"").replace(/\r/g,"")}return s}if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(c.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=c.inArray(this.value,a)>=0||c.inArray(this.name,a)>=0;else if(c.nodeName(this,"select")){var q=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,q)>=0||c.inArray(this.text,q)>=0});if(!q.length)this.selectedIndex=
-1}else this.value=a})},html:function(a){return a===s?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,b,d){function f(F,L){return b&&c.nodeName(F,"table")&&c.nodeName(L,"tr")?F.getElementsByTagName("tbody")[0]||F.appendChild(F.ownerDocument.createElement("tbody")):F}if(this[0]){var j=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],j);var l=j.firstChild;if(l)for(var p=0,q=this.length;p<q;p++)d.call(f(this[p],l),this.length>1||p>0?j.cloneNode(true):j);a&&c.each(a,i)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=
arguments[0]||{},b=1,d=arguments.length,f=false,j;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((j=arguments[b])!=null)for(var l in j){var p=a[l],q=j[l];if(a!==q)if(f&&q&&typeof q==="object"&&!q.nodeType)a[l]=c.extend(f,p||(q.length!=null?[]:{}),q);else if(q!==s)a[l]=q}return a};var M=/z-?index|font-?weight|opacity|zoom|line-?height/i,H=document.defaultView||{},I=Object.prototype.toString;c.extend({noConflict:function(a){n.$=
N;if(a)n.jQuery=D;return c},isFunction:function(a){return I.call(a)==="[object Function]"},isArray:function(a){return I.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&c.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(document.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,j=0,l=a.length;if(d)if(l===s)for(f in a){if(b.apply(a[f],d)===false)break}else for(;j<l;){if(b.apply(a[j++],d)===false)break}else if(l===s)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];j<l&&b.call(d,j,d)!==false;d=a[++j]);return a},prop:function(a,b,d,f,j){if(c.isFunction(b))b=b.call(a,f);return typeof b===
"number"&&d=="curCSS"&&!M.test(j)?b+"px":b},className:{add:function(a,b){c.each((b||"").split(/\s+/),function(d,f){if(a.nodeType==1&&!c.className.has(a.className,f))a.className+=(a.className?" ":"")+f})},remove:function(a,b){if(a.nodeType==1)a.className=b!==s?c.grep(a.className.split(/\s+/),function(d){return!c.className.has(b,d)}).join(" "):""},has:function(a,b){return a&&c.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,d){var f={};for(var j in b){f[j]=a.style[j];a.style[j]=
b[j]}d.call(a);for(j in b)a.style[j]=f[j]},css:function(a,b,d,f){if(b=="width"||b=="height"){var j;d={position:"absolute",visibility:"hidden",display:"block"};var l=b=="width"?["Left","Right"]:["Top","Bottom"];function p(){j=b=="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(l,function(){f||(j-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")j+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else j-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?
p():c.swap(a,d,p);return Math.max(0,Math.round(j))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,j=a.style;if(b=="opacity"&&!c.support.opacity){f=c.attr(j,"opacity");return f==""?"1":f}if(b.match(/float/i))b=ba;if(!d&&j&&j[b])f=j[b];else if(H.getComputedStyle){if(b.match(/float/i))b="float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=H.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b=="opacity"&&f=="")f="1"}else if(a.currentStyle){f=b.replace(/\-(\w)/g,function(l,p){return p.toUpperCase()});
f=a.currentStyle[b]||a.currentStyle[f];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){b=j.left;d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;j.left=f||0;f=j.pixelLeft+"px";j.left=b;a.runtimeStyle.left=d}}return f},clean:function(a,b,d){b=b||document;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;if(!d&&a.length===1&&typeof a[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(a[0]);if(f)return[b.createElement(f[1])]}var j=[];f=[];var l=b.createElement("div");
c.each(a,function(p,q){if(typeof q==="number")q+="";if(q){if(typeof q==="string"){q=q.replace(/(<(\w+)[^>]*?)\/>/g,function(J,Q,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?J:Q+"></"+T+">"});p=q.replace(/^\s+/,"").substring(0,10).toLowerCase();var F=!p.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!p.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||p.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!p.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!p.indexOf("<td")||!p.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!p.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(l.innerHTML=F[1]+q+F[2];F[0]--;)l=l.lastChild;if(!c.support.tbody){var L=/<tbody/i.test(q);p=!p.indexOf("<table")&&!L?l.firstChild&&l.firstChild.childNodes:F[1]=="<table>"&&!L?l.childNodes:[];for(F=p.length-1;F>=0;--F)c.nodeName(p[F],"tbody")&&
!p[F].childNodes.length&&p[F].parentNode.removeChild(p[F])}!c.support.leadingWhitespace&&/^\s/.test(q)&&l.insertBefore(b.createTextNode(q.match(/^\s*/)[0]),l.firstChild);q=c.makeArray(l.childNodes)}if(q.nodeType)j.push(q);else j=c.merge(j,q)}});if(d){for(a=0;j[a];a++)if(c.nodeName(j[a],"script")&&(!j[a].type||j[a].type.toLowerCase()==="text/javascript"))f.push(j[a].parentNode?j[a].parentNode.removeChild(j[a]):j[a]);else{j[a].nodeType===1&&j.splice.apply(j,[a+1,0].concat(c.makeArray(j[a].getElementsByTagName("script"))));
d.appendChild(j[a])}return f}return j},attr:function(a,b,d){if(!a||a.nodeType==3||a.nodeType==8)return s;var f=!c.isXMLDoc(a),j=d!==s;b=f&&c.props[b]||b;if(a.tagName){var l=/href|src|style/.test(b);if(b in a&&f&&!l){if(j){if(b=="type"&&c.nodeName(a,"input")&&a.parentNode)throw"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:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:s;return a[b]}if(!c.support.style&&f&&b=="style")return c.attr(a.style,"cssText",d);j&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&l?a.getAttribute(b,2):a.getAttribute(b);return a===null?s:a}if(!c.support.opacity&&b=="opacity"){if(j){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(d)+""=="NaN"?"":"alpha(opacity="+d*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}b=b.replace(/-([a-z])/ig,function(p,q){return q.toUpperCase()});if(j)a[b]=d;return a[b]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var d=a.length;if(d==null||typeof a==="string"||c.isFunction(a)||a.setInterval)b[0]=a;else for(;d;)b[--d]=a[d]}return b},inArray:function(a,b){for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=0,f,j=a.length;if(c.support.getAll)for(;(f=b[d++])!=null;)a[j++]=f;else for(;(f=
b[d++])!=null;)if(f.nodeType!=8)a[j++]=f;return a},unique:function(a){var b=[],d={};try{for(var f=0,j=a.length;f<j;f++){var l=c.data(a[f]);if(!d[l]){d[l]=true;b.push(a[f])}}}catch(p){b=a}return b},grep:function(a,b,d){for(var f=[],j=0,l=a.length;j<l;j++)!d!=!b(a[j],j)&&f.push(a[j]);return f},map:function(a,b){for(var d=[],f=0,j=a.length;f<j;f++){var l=b(a[f],f);if(l!=null)d[d.length]=l}return d.concat.apply([],d)}});var R=navigator.userAgent.toLowerCase();c.browser={version:(R.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(R),opera:/opera/.test(R),msie:/msie/.test(R)&&!/opera/.test(R),mozilla:/mozilla/.test(R)&&!/(compatible|webkit)/.test(R)};c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},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")},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){var f=c.map(this,b);if(d&&typeof d=="string")f=c.multiFilter(d,f);return this.pushStack(c.unique(f),a,d)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){for(var f=[],j=c(d),l=0,p=j.length;l<
p;l++){var q=(l>0?this.clone(true):this).get();c.fn[b].apply(c(j[l]),q);f=f.concat(q)}return this.pushStack(f,a,d)}});c.each({removeAttr:function(a){c.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean")b=!c.className.has(this,a);c.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);
c.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(c(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});var O="jQuery"+u(),W=0,K={};c.extend({cache:{},data:function(a,b,d){a=a==n?K:a;var f=a[O];f||(f=a[O]=++W);if(b&&!c.cache[f])c.cache[f]={};if(d!==s)c.cache[f][b]=d;return b?c.cache[f][b]:f},removeData:function(a,b){a=a==n?K:a;var d=a[O];if(b){if(c.cache[d]){delete c.cache[d][b];
b="";for(b in c.cache[d])break;b||c.removeData(a)}}else{try{delete a[O]}catch(f){a.removeAttribute&&a.removeAttribute(O)}delete c.cache[d]}},queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else d&&f.push(d)}return f},dequeue:function(a,b){var d=c.queue(a,b),f=d.shift();if(!b||b==="fx")f=d[0];f!==s&&f.call(a)}});c.fn.extend({data:function(a,b){var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===s){var f=this.triggerHandler("getData"+d[1]+
"!",[d[0]]);if(f===s&&this.length)f=c.data(this[0],a);return f===s&&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)})},queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===s)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a=="fx"&&d.length==1&&d[0].call(this)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
a)})}});(function(){function a(e,h,k,o,t,w){t=e=="previousSibling"&&!w;for(var B=0,P=o.length;B<P;B++){var C=o[B];if(C){if(t&&C.nodeType===1){C.sizcache=k;C.sizset=B}C=C[e];for(var S=false;C;){if(C.sizcache===k){S=o[C.sizset];break}if(C.nodeType===1&&!w){C.sizcache=k;C.sizset=B}if(C.nodeName===h){S=C;break}C=C[e]}o[B]=S}}}function b(e,h,k,o,t,w){t=e=="previousSibling"&&!w;for(var B=0,P=o.length;B<P;B++){var C=o[B];if(C){if(t&&C.nodeType===1){C.sizcache=k;C.sizset=B}C=C[e];for(var S=false;C;){if(C.sizcache===
k){S=o[C.sizset];break}if(C.nodeType===1){if(!w){C.sizcache=k;C.sizset=B}if(typeof h!=="string"){if(C===h){S=true;break}}else if(l.filter(h,[C]).length>0){S=C;break}}C=C[e]}o[B]=S}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,j=Object.prototype.toString,l=function(e,h,k,o){k=k||[];h=h||document;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!e||typeof e!=="string")return k;var t=[],w,B,P,C=true;for(d.lastIndex=0;(w=
d.exec(e))!==null;){t.push(w[1]);if(w[2]){P=RegExp.rightContext;break}}if(t.length>1&&q.exec(e))if(t.length===2&&p.relative[t[0]])w=X(t[0]+t[1],h);else for(w=p.relative[t[0]]?[h]:l(t.shift(),h);t.length;){e=t.shift();if(p.relative[e])e+=t.shift();w=X(e,w)}else{w=o?{expr:t.pop(),set:L(o)}:l.find(t.pop(),t.length===1&&h.parentNode?h.parentNode:h,E(h));w=l.filter(w.expr,w.set);if(t.length>0)B=L(w);else C=false;for(;t.length;){var S=t.pop(),V=S;if(p.relative[S])V=t.pop();else S="";if(V==null)V=h;p.relative[S](B,
V,E(h))}}B||(B=w);if(!B)throw"Syntax error, unrecognized expression: "+(S||e);if(j.call(B)==="[object Array]")if(C)if(h.nodeType===1)for(e=0;B[e]!=null;e++){if(B[e]&&(B[e]===true||B[e].nodeType===1&&T(h,B[e])))k.push(w[e])}else for(e=0;B[e]!=null;e++)B[e]&&B[e].nodeType===1&&k.push(w[e]);else k.push.apply(k,B);else L(B,k);if(P){l(P,h,k,o);if(Q){hasDuplicate=false;k.sort(Q);if(hasDuplicate)for(e=1;e<k.length;e++)k[e]===k[e-1]&&k.splice(e--,1)}}return k};l.matches=function(e,h){return l(e,null,null,
h)};l.find=function(e,h,k){var o,t;if(!e)return[];for(var w=0,B=p.order.length;w<B;w++){var P=p.order[w];if(t=p.match[P].exec(e)){var C=RegExp.leftContext;if(C.substr(C.length-1)!=="\\"){t[1]=(t[1]||"").replace(/\\/g,"");o=p.find[P](t,h,k);if(o!=null){e=e.replace(p.match[P],"");break}}}}o||(o=h.getElementsByTagName("*"));return{set:o,expr:e}};l.filter=function(e,h,k,o){for(var t=e,w=[],B=h,P,C,S=h&&h[0]&&E(h[0]);e&&h.length;){for(var V in p.filter)if((P=p.match[V].exec(e))!=null){var ia=p.filter[V],
aa,ca;C=false;if(B==w)w=[];if(p.preFilter[V])if(P=p.preFilter[V](P,B,k,w,o,S)){if(P===true)continue}else C=aa=true;if(P)for(var da=0;(ca=B[da])!=null;da++)if(ca){aa=ia(ca,P,da,B);var ha=o^!!aa;if(k&&aa!=null)if(ha)C=true;else B[da]=false;else if(ha){w.push(ca);C=true}}if(aa!==s){k||(B=w);e=e.replace(p.match[V],"");if(!C)return[];break}}if(e==t)if(C==null)throw"Syntax error, unrecognized expression: "+e;else break;t=e}return B};var p=l.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(e){return e.getAttribute("href")}},
relative:{"+":function(e,h,k){var o=typeof h==="string",t=o&&!/\W/.test(h);o=o&&!t;if(t&&!k)h=h.toUpperCase();k=0;t=e.length;for(var w;k<t;k++)if(w=e[k]){for(;(w=w.previousSibling)&&w.nodeType!==1;);e[k]=o||w&&w.nodeName===h?w||false:w===h}o&&l.filter(h,e,true)},">":function(e,h,k){var o=typeof h==="string";if(o&&!/\W/.test(h)){h=k?h:h.toUpperCase();k=0;for(var t=e.length;k<t;k++){var w=e[k];if(w){o=w.parentNode;e[k]=o.nodeName===h?o:false}}}else{k=0;for(t=e.length;k<t;k++)if(w=e[k])e[k]=o?w.parentNode:
w.parentNode===h;o&&l.filter(h,e,true)}},"":function(e,h,k){var o=f++,t=b;if(!h.match(/\W/)){var w=h=k?h:h.toUpperCase();t=a}t("parentNode",h,o,e,w,k)},"~":function(e,h,k){var o=f++,t=b;if(typeof h==="string"&&!h.match(/\W/)){var w=h=k?h:h.toUpperCase();t=a}t("previousSibling",h,o,e,w,k)}},find:{ID:function(e,h,k){if(typeof h.getElementById!=="undefined"&&!k)return(e=h.getElementById(e[1]))?[e]:[]},NAME:function(e,h){if(typeof h.getElementsByName!=="undefined"){var k=[];h=h.getElementsByName(e[1]);
for(var o=0,t=h.length;o<t;o++)h[o].getAttribute("name")===e[1]&&k.push(h[o]);return k.length===0?null:k}},TAG:function(e,h){return h.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,h,k,o,t,w){e=" "+e[1].replace(/\\/g,"")+" ";if(w)return e;w=0;for(var B;(B=h[w])!=null;w++)if(B)if(t^(B.className&&(" "+B.className+" ").indexOf(e)>=0))k||o.push(B);else if(k)h[w]=false;return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(e,h){for(var k=0;h[k]===false;k++);return h[k]&&E(h[k])?
e[1]:e[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=h[1]+(h[2]||1)-0;e[3]=h[3]-0}e[0]=f++;return e},ATTR:function(e,h,k,o,t,w){h=e[1].replace(/\\/g,"");if(!w&&p.attrMap[h])e[1]=p.attrMap[h];if(e[2]==="~=")e[4]=" "+e[4]+" ";return e},PSEUDO:function(e,h,k,o,t){if(e[1]==="not")if(e[3].match(d).length>1||/^\w/.test(e[3]))e[3]=l(e[3],null,null,h);else{e=l.filter(e[3],h,k,true^
t);k||o.push.apply(o,e);return false}else if(p.match.POS.test(e[0])||p.match.CHILD.test(e[0]))return true;return e},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){return e.selected===true},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,h,k){return!!l(k[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},
text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},
setFilters:{first:function(e,h){return h===0},last:function(e,h,k,o){return h===o.length-1},even:function(e,h){return h%2===0},odd:function(e,h){return h%2===1},lt:function(e,h,k){return h<k[3]-0},gt:function(e,h,k){return h>k[3]-0},nth:function(e,h,k){return k[3]-0==h},eq:function(e,h,k){return k[3]-0==h}},filter:{PSEUDO:function(e,h,k,o){var t=h[1],w=p.filters[t];if(w)return w(e,k,h,o);else if(t==="contains")return(e.textContent||e.innerText||"").indexOf(h[3])>=0;else if(t==="not"){h=h[3];k=0;for(o=
h.length;k<o;k++)if(h[k]===e)return false;return true}},CHILD:function(e,h){var k=h[1],o=e;switch(k){case "only":case "first":for(;o=o.previousSibling;)if(o.nodeType===1)return false;if(k=="first")return true;o=e;case "last":for(;o=o.nextSibling;)if(o.nodeType===1)return false;return true;case "nth":k=h[2];var t=h[3];if(k==1&&t==0)return true;h=h[0];var w=e.parentNode;if(w&&(w.sizcache!==h||!e.nodeIndex)){var B=0;for(o=w.firstChild;o;o=o.nextSibling)if(o.nodeType===1)o.nodeIndex=++B;w.sizcache=h}e=
e.nodeIndex-t;return k==0?e==0:e%k==0&&e/k>=0}},ID:function(e,h){return e.nodeType===1&&e.getAttribute("id")===h},TAG:function(e,h){return h==="*"&&e.nodeType===1||e.nodeName===h},CLASS:function(e,h){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(e,h){var k=h[1];e=p.attrHandle[k]?p.attrHandle[k](e):e[k]!=null?e[k]:e.getAttribute(k);k=e+"";var o=h[2];h=h[4];return e==null?o==="!=":o==="="?k===h:o==="*="?k.indexOf(h)>=0:o==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&e!==
false:o==="!="?k!=h:o==="^="?k.indexOf(h)===0:o==="$="?k.substr(k.length-h.length)===h:o==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(e,h,k,o){var t=p.setFilters[h[2]];if(t)return t(e,k,h,o)}}},q=p.match.POS;for(var F in p.match)p.match[F]=RegExp(p.match[F].source+/(?![^\[]*\])(?![^\(]*\))/.source);var L=function(e,h){e=Array.prototype.slice.call(e);if(h){h.push.apply(h,e);return h}return e};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(J){L=function(e,
h){h=h||[];if(j.call(e)==="[object Array]")Array.prototype.push.apply(h,e);else if(typeof e.length==="number")for(var k=0,o=e.length;k<o;k++)h.push(e[k]);else for(k=0;e[k];k++)h.push(e[k]);return h}}var Q;if(document.documentElement.compareDocumentPosition)Q=function(e,h){e=e.compareDocumentPosition(h)&4?-1:e===h?0:1;if(e===0)hasDuplicate=true;return e};else if("sourceIndex"in document.documentElement)Q=function(e,h){e=e.sourceIndex-h.sourceIndex;if(e===0)hasDuplicate=true;return e};else if(document.createRange)Q=
function(e,h){var k=e.ownerDocument.createRange(),o=h.ownerDocument.createRange();k.selectNode(e);k.collapse(true);o.selectNode(h);o.collapse(true);e=k.compareBoundaryPoints(Range.START_TO_END,o);if(e===0)hasDuplicate=true;return e};(function(){var e=document.createElement("form"),h="script"+(new Date).getTime();e.innerHTML="<input name='"+h+"'/>";var k=document.documentElement;k.insertBefore(e,k.firstChild);if(document.getElementById(h)){p.find.ID=function(o,t,w){if(typeof t.getElementById!=="undefined"&&
!w)return(t=t.getElementById(o[1]))?t.id===o[1]||typeof t.getAttributeNode!=="undefined"&&t.getAttributeNode("id").nodeValue===o[1]?[t]:s:[]};p.filter.ID=function(o,t){var w=typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id");return o.nodeType===1&&w&&w.nodeValue===t}}k.removeChild(e)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0)p.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=
[];for(var o=0;k[o];o++)k[o].nodeType===1&&h.push(k[o]);k=h}return k};e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#")p.attrHandle.href=function(h){return h.getAttribute("href",2)}})();document.querySelectorAll&&function(){var e=l,h=document.createElement("div");h.innerHTML="<p class='TEST'></p>";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){l=function(k,o,t,w){o=o||document;if(!w&&o.nodeType===
9&&!E(o))try{return L(o.querySelectorAll(k),t)}catch(B){}return e(k,o,t,w)};l.find=e.find;l.filter=e.filter;l.selectors=e.selectors;l.matches=e.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length!==1){p.order.splice(1,0,"CLASS");p.find.CLASS=
function(h,k,o){if(typeof k.getElementsByClassName!=="undefined"&&!o)return k.getElementsByClassName(h[1])}}}}();var T=document.compareDocumentPosition?function(e,h){return e.compareDocumentPosition(h)&16}:function(e,h){return e!==h&&(e.contains?e.contains(h):true)},E=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&E(e.ownerDocument)},X=function(e,h){var k=[],o="",t;for(h=h.nodeType?[h]:h;t=p.match.PSEUDO.exec(e);){o+=t[0];e=e.replace(p.match.PSEUDO,"")}e=
p.relative[e]?e+"*":e;t=0;for(var w=h.length;t<w;t++)l(e,h[t],k);return l.filter(o,k)};c.find=l;c.filter=l.filter;c.expr=l.selectors;c.expr[":"]=c.expr.filters;l.selectors.filters.hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0};l.selectors.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0};l.selectors.filters.animated=function(e){return c.grep(c.timers,function(h){return e===h.elem}).length};c.multiFilter=function(e,h,k){if(k)e=":not("+e+")";return l.matches(e,
h)};c.dir=function(e,h){var k=[];for(e=e[h];e&&e!=document;){e.nodeType==1&&k.push(e);e=e[h]}return k};c.nth=function(e,h,k){h=h||1;for(var o=0;e;e=e[k])if(e.nodeType==1&&++o==h)break;return e};c.sibling=function(e,h){for(var k=[];e;e=e.nextSibling)e.nodeType==1&&e!=h&&k.push(e);return k}})();c.event={add:function(a,b,d,f){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=n)a=n;if(!d.guid)d.guid=this.guid++;if(f!==s){d=this.proxy(d);d.data=f}var j=c.data(a,"events")||c.data(a,"events",{}),
l=c.data(a,"handle")||c.data(a,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):s});l.elem=a;c.each(b.split(/\s+/),function(p,q){p=q.split(".");q=p.shift();d.type=p.slice().sort().join(".");var F=j[q];c.event.specialAll[q]&&c.event.specialAll[q].setup.call(a,f,p);if(!F){F=j[q]={};if(!c.event.special[q]||c.event.special[q].setup.call(a,f,p)===false)if(a.addEventListener)a.addEventListener(q,l,false);else a.attachEvent&&a.attachEvent("on"+
q,l)}F[d.guid]=d;c.event.global[q]=true});a=null}},guid:1,global:{},remove:function(a,b,d){if(!(a.nodeType==3||a.nodeType==8)){var f=c.data(a,"events"),j;if(f){if(b===s||typeof b==="string"&&b.charAt(0)==".")for(var l in f)this.remove(a,l+(b||""));else{if(b.type){d=b.handler;b=b.type}c.each(b.split(/\s+/),function(p,q){p=q.split(".");q=p.shift();var F=RegExp("(^|\\.)"+p.slice().sort().join(".*\\.")+"(\\.|$)");if(f[q]){if(d)delete f[q][d.guid];else for(var L in f[q])F.test(f[q][L].type)&&delete f[q][L];
c.event.specialAll[q]&&c.event.specialAll[q].teardown.call(a,p);for(j in f[q])break;if(!j){if(!c.event.special[q]||c.event.special[q].teardown.call(a,p)===false)if(a.removeEventListener)a.removeEventListener(q,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+q,c.data(a,"handle"));j=null;delete f[q]}}})}for(j in f)break;if(!j){if(b=c.data(a,"handle"))b.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var j=a.type||a;if(!f){a=typeof a==="object"?
a[O]?a:c.extend(c.Event(j),a):c.Event(j);if(j.indexOf("!")>=0){a.type=j=j.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[j]&&c.each(c.cache,function(){this.events&&this.events[j]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType==3||d.nodeType==8)return s;a.result=s;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var l=c.data(d,"handle");l&&l.apply(d,b);if((!d[j]||c.nodeName(d,"a")&&j=="click")&&d["on"+j]&&d["on"+j].apply(d,b)===false)a.result=false;if(!f&&
d[j]&&!a.isDefaultPrevented()&&!(c.nodeName(d,"a")&&j=="click")){this.triggered=true;try{d[j]()}catch(p){}}this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},handle:function(a){var b,d;a=arguments[0]=c.event.fix(a||n.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var j in d){var l=d[j];
if(b||f.test(l.type)){a.handler=l;a.data=l.data;l=l.apply(this,arguments);if(l!==s){a.result=l;if(l===false){a.preventDefault();a.stopPropagation()}}if(a.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(a){if(a[O])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||document;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=document.documentElement;d=document.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b.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)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:v,teardown:function(){}}},specialAll:{live:{setup:function(a,b){c.event.add(this,b[0],g)},teardown:function(a){if(a.length){var b=
0,d=RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],g)}}}}};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=u();this[O]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=x;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
x;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=x;this.stopPropagation()},isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y};var Y=function(a){for(var b=a.relatedTarget;b&&b!=this;)try{b=b.parentNode}catch(d){b=this}if(b!=this){a.type=a.data;c.event.handle.apply(this,arguments)}};c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){c.event.special[b]=
{setup:function(){c.event.add(this,a,Y,b)},teardown:function(){c.event.remove(this,a,Y)}}});c.fn.extend({bind:function(a,b,d){return a=="unload"?this.one(a,b,d):this.each(function(){c.event.add(this,a,d||b,d&&b)})},one:function(a,b,d){var f=c.event.proxy(d||b,function(j){c(this).unbind(j,f);return(d||b).apply(this,arguments)});return this.each(function(){c.event.add(this,a,f,d&&b)})},unbind:function(a,b){return this.each(function(){c.event.remove(this,a,b)})},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.event.proxy(a,b[d++]);return this.click(c.event.proxy(a,function(f){this.lastToggle=(this.lastToggle||0)%d;f.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){v();c.isReady?a.call(document,
c):c.readyList.push(a);return this},live:function(a,b){b=c.event.proxy(b);b.guid+=this.selector+a;c(document).bind(m(a,this.selector),this.selector,b);return this},die:function(a,b){c(document).unbind(m(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){c.each(c.readyList,function(){this.call(document,c)});c.readyList=null}c(document).triggerHandler("ready")}}});var Z=false;c.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(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)}});c(n).bind("unload",function(){for(var a in c.cache)a!=1&&c.cache[a].handle&&c.event.remove(c.cache[a].handle.elem)});(function(){c.support={};var a=document.documentElement,b=document.createElement("script"),d=document.createElement("div"),f="script"+(new Date).getTime();d.style.display="none";d.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 j=d.getElementsByTagName("*"),l=d.getElementsByTagName("a")[0];if(!(!j||!j.length||!l)){c.support={leadingWhitespace:d.firstChild.nodeType==3,tbody:!d.getElementsByTagName("tbody").length,objectAll:!!d.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:l.style.opacity==="0.5",cssFloat:!!l.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+f+"=1;"))}catch(p){}a.insertBefore(b,a.firstChild);if(n[f]){c.support.scriptEval=true;delete n[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function(){c.support.noCloneEvent=false;d.detachEvent("onclick",arguments.callee)});d.cloneNode(true).fireEvent("onclick")}c(function(){var q=document.createElement("div");q.style.width=q.style.paddingLeft="1px";document.body.appendChild(q);
c.boxModel=c.support.boxModel=q.offsetWidth===2;document.body.removeChild(q).style.display="none"})}})();var ba=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":ba,cssFloat:ba,styleFloat:ba,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};c.fn.extend({_load:c.fn.load,load:function(a,b,d){if(typeof a!=="string")return this._load(a);var f=a.indexOf(" ");if(f>=0){var j=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);f="POST"}var l=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(p,q){if(q=="success"||q=="notmodified")l.html(j?c("<div/>").append(p.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(j):p.responseText);d&&l.each(d,[p.responseText,q,p])}});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||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.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)}});var ja=u();c.extend({get:function(a,
b,d,f){if(c.isFunction(b)){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)){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:function(){return n.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(a){function b(){a.success&&a.success(p,l);a.global&&c.event.trigger("ajaxSuccess",[E,a])}function d(){a.complete&&a.complete(E,l);a.global&&c.event.trigger("ajaxComplete",[E,a]);a.global&&!--c.active&&
c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,a));var f,j=/=\?(&|$)/g,l,p,q=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(q=="GET")a.url.match(j)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(j))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(j)||a.url.match(j))){f="jsonp"+
ja++;if(a.data)a.data=(a.data+"").replace(j,"="+f+"$1");a.url=a.url.replace(j,"="+f+"$1");a.dataType="script";n[f]=function(o){p=o;b();d();n[f]=s;try{delete n[f]}catch(t){}L&&L.removeChild(J)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&q=="GET"){j=u();var F=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+j+"$2");a.url=F+(F==a.url?(a.url.match(/\?/)?"&":"?")+"_="+j:"")}if(a.data&&q=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&!c.active++&&c.event.trigger("ajaxStart");
j=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&q=="GET"&&j&&(j[1]&&j[1]!=location.protocol||j[2]!=location.host)){var L=document.getElementsByTagName("head")[0],J=document.createElement("script");J.src=a.url;if(a.scriptCharset)J.charset=a.scriptCharset;if(!f){var Q=false;J.onload=J.onreadystatechange=function(){if(!Q&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){Q=true;b();d();J.onload=J.onreadystatechange=null;L.removeChild(J)}}}L.appendChild(J);return s}var T=
false,E=a.xhr();a.username?E.open(q,a.url,a.async,a.username,a.password):E.open(q,a.url,a.async);try{a.data&&E.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)E.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");E.setRequestHeader("X-Requested-With","XMLHttpRequest");E.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(X){}if(a.beforeSend&&a.beforeSend(E,a)===false){a.global&&
!--c.active&&c.event.trigger("ajaxStop");E.abort();return false}a.global&&c.event.trigger("ajaxSend",[E,a]);var e=function(o){if(E.readyState==0){if(h){clearInterval(h);h=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!T&&E&&(E.readyState==4||o=="timeout")){T=true;if(h){clearInterval(h);h=null}l=o=="timeout"?"timeout":!c.httpSuccess(E)?"error":a.ifModified&&c.httpNotModified(E,a.url)?"notmodified":"success";if(l=="success")try{p=c.httpData(E,a.dataType,a)}catch(t){l="parsererror"}if(l==
"success"){var w;try{w=E.getResponseHeader("Last-Modified")}catch(B){}if(a.ifModified&&w)c.lastModified[a.url]=w;f||b()}else c.handleError(a,E,l);d();o&&E.abort();if(a.async)E=null}};if(a.async){var h=setInterval(e,13);a.timeout>0&&setTimeout(function(){E&&!T&&e("timeout")},a.timeout)}try{E.send(a.data)}catch(k){c.handleError(a,E,null,k)}a.async||e();return E},handleError:function(a,b,d,f){a.error&&a.error(b,d,f);a.global&&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}catch(b){}return false},httpNotModified:function(a,b){try{var d=a.getResponseHeader("Last-Modified");return a.status==304||d==c.lastModified[b]}catch(f){}return false},httpData:function(a,b,d){var f=a.getResponseHeader("content-type");a=(f=b=="xml"||!b&&f&&f.indexOf("xml")>=0)?a.responseXML:a.responseText;if(f&&a.documentElement.tagName=="parsererror")throw"parsererror";if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a===
"string"){b=="script"&&c.globalEval(a);if(b=="json")a=n.eval("("+a+")")}return a},param:function(a){function b(j,l){d[d.length]=encodeURIComponent(j)+"="+encodeURIComponent(l)}var d=[];if(c.isArray(a)||a.jquery)c.each(a,function(){b(this.name,this.value)});else for(var f in a)c.isArray(a[f])?c.each(a[f],function(){b(f,this)}):b(f,c.isFunction(a[f])?a[f]():a[f]);return d.join("&").replace(/%20/g,"+")}});var fa={},ea,ga=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a)return this.animate(A("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].tagName;var f;if(fa[d])f=fa[d];else{var j=c("<"+d+" />").appendTo("body");f=j.css("display");if(f==="none")f="block";j.remove();fa[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)return this.animate(A("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";return c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");
c(this)[f?"show":"hide"]()}):this.animate(A("toggle",3),a,b)},fadeTo:function(a,b,d){return this.animate({opacity:b},a,d)},animate:function(a,b,d,f){var j=c.speed(b,d,f);return this[j.queue===false?"each":"queue"](function(){var l=c.extend({},j),p,q=this.nodeType==1&&c(this).is(":hidden"),F=this;for(p in a){if(a[p]=="hide"&&q||a[p]=="show"&&!q)return l.complete.call(this);if((p=="height"||p=="width")&&this.style){l.display=c.css(this,"display");l.overflow=this.style.overflow}}if(l.overflow!=null)this.style.overflow=
"hidden";l.curAnim=c.extend({},a);c.each(a,function(L,J){var Q=new c.fx(F,l,L);if(/toggle|show|hide/.test(J))Q[J=="toggle"?q?"show":"hide":J](a);else{var T=J.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),E=Q.cur(true)||0;if(T){J=parseFloat(T[2]);var X=T[3]||"px";if(X!="px"){F.style[L]=(J||1)+X;E=(J||1)/Q.cur(true)*E;F.style[L]=E+X}if(T[1])J=(T[1]=="-="?-1:1)*J+E;Q.custom(E,J,X)}else Q.custom(E,J,"")}});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:A("show",1),slideUp:A("hide",1),slideToggle:A("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=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(l){return j.step(l)}this.startTime=u();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var j=
this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!ea)ea=setInterval(function(){for(var l=c.timers,p=0;p<l.length;p++)l[p]()||l.splice(p--,1);if(!l.length){clearInterval(ea);ea=s}},13)},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,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.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},
step:function(a){var b=u();if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var d in this.options.curAnim)if(this.options.curAnim[d]!==true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=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 f in this.options.curAnim)c.attr(this.elem.style,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{d=b-this.startTime;this.state=d/this.options.duration;this.pos=c.easing[this.options.easing||(c.easing.swing?"swing":"linear")](this.state,d,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.attr(a.elem.style,
"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),b=this[0].ownerDocument,d=b.body;b=b.documentElement;return{top:a.top+(self.pageYOffset||c.boxModel&&b.scrollTop||d.scrollTop)-(b.clientTop||
d.clientTop||0),left:a.left+(self.pageXOffset||c.boxModel&&b.scrollLeft||d.scrollLeft)-(b.clientLeft||d.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);c.offset.initialized||c.offset.initialize();var a=this[0],b=a.offsetParent,d=a.ownerDocument,f,j=d.documentElement,l=d.body;d=d.defaultView;f=d.getComputedStyle(a,null);for(var p=a.offsetTop,q=a.offsetLeft;(a=a.parentNode)&&a!==l&&a!==j;){f=d.getComputedStyle(a,
null);p-=a.scrollTop;q-=a.scrollLeft;if(a===b){p+=a.offsetTop;q+=a.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){p+=parseInt(f.borderTopWidth,10)||0;q+=parseInt(f.borderLeftWidth,10)||0}b=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){p+=parseInt(f.borderTopWidth,10)||0;q+=parseInt(f.borderLeftWidth,10)||0}f=f}if(f.position==="relative"||f.position==="static"){p+=l.offsetTop;q+=l.offsetLeft}if(f.position===
"fixed"){p+=Math.max(j.scrollTop,l.scrollTop);q+=Math.max(j.scrollLeft,l.scrollLeft)}return{top:p,left:q}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),d,f,j,l=a.style.marginTop;d={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(f in d)b.style[f]=d[f];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;j=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=j.offsetTop===5;d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=l;a.removeChild(b);this.initialized=true}},bodyOffset:function(a){c.offset.initialized||c.offset.initialize();
var b=a.offsetTop,d=a.offsetLeft;if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(c.curCSS(a,"marginTop",true),10)||0;d+=parseInt(c.curCSS(a,"marginLeft",true),10)||0}return{top:b,left:d}}};c.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var b=this.offset(),d=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();b.top-=z(this,"marginTop");b.left-=z(this,"marginLeft");d.top+=z(a,"borderTopWidth");d.left+=z(a,"borderLeftWidth");a={top:b.top-d.top,left:b.left-
d.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static";)a=a.offsetParent;return c(a)}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){if(!this[0])return null;return f!==s?this.each(function(){this==n||this==document?n.scrollTo(!a?f:c(n).scrollLeft(),a?f:c(n).scrollTop()):(this[d]=f)}):this[0]==n||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[d]||
document.body[d]:this[0][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(j){return this[0]?c.css(this[0],d,false,j?"margin":"border"):null};var f=b.toLowerCase();c.fn[f]=function(j){return this[0]==n?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+
b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):j===s?this.length?c.css(this[0],f):null:this.css(f,typeof j==="string"?j:j+"px")}})})();(function(i){function u(n,s){return parseInt(i.css(n,s))||0}function z(n){n=parseInt(n).toString(16);return n.length<2?"0"+n:n}function y(n){for(;n&&n.nodeName.toLowerCase()!="html";n=n.parentNode){var s=i.css(n,"backgroundColor");if(s!="rgba(0, 0, 0, 0)"){if(s.indexOf("rgb")>=0){n=s.match(/\d+/g);return"#"+z(n[0])+z(n[1])+z(n[2])}if(s&&s!="transparent")return s}}return"#ffffff"}function x(n,s,D){switch(n){case "round":return Math.round(D*(1-Math.cos(Math.asin(s/D))));case "cool":return Math.round(D*
(1+Math.cos(Math.asin(s/D))));case "sharp":return Math.round(D*(1-Math.cos(Math.acos(s/D))));case "bite":return Math.round(D*Math.cos(Math.asin((D-s-1)/D)));case "slide":return Math.round(D*Math.atan2(s,D/s));case "jut":return Math.round(D*Math.atan2(D,D-s-1));case "curl":return Math.round(D*Math.atan(s));case "tear":return Math.round(D*Math.cos(s));case "wicked":return Math.round(D*Math.tan(s));case "long":return Math.round(D*Math.sqrt(s));case "sculpt":return Math.round(D*Math.log(D-s-1,D));case "dog":return s&
1?s+1:D;case "dog2":return s&2?s+1:D;case "dog3":return s&3?s+1:D;case "fray":return s%2*D;case "notch":return D;case "bevel":return s+1}}var g=navigator.userAgent,m=i.browser.mozilla&&/gecko/i.test(g),v=i.browser.safari&&/Safari\/[5-9]/.test(g),A=i.browser.msie&&function(){var n=document.createElement("div");try{n.style.setExpression("width","0+0")}catch(s){return false}return true}();i.fn.corner=function(n){if(this.length==0){if(!i.isReady&&this.selector){var s=this.selector,D=this.context;i(function(){i(s,
D).corner(n)})}return this}return this.each(function(){var N=i(this),c=[n||"",N.attr(i.fn.corner.defaults.metaAttr)||""].join(" ").toLowerCase(),U=/keep/.test(c),G=(c.match(/cc:(#[0-9a-f]+)/)||[])[1],M=(c.match(/sc:(#[0-9a-f]+)/)||[])[1],H=parseInt((c.match(/(\d+)px/)||[])[1])||10,I=(c.match(/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/)||["round"])[0],R={T:0,B:1};c={TL:/top|tl|left/.test(c),TR:/top|tr|right/.test(c),BL:/bottom|bl|left/.test(c),BR:/bottom|br|right/.test(c)};
if(!c.TL&&!c.TR&&!c.BL&&!c.BR)c={TL:1,TR:1,BL:1,BR:1};if(i.fn.corner.defaults.useNative&&I=="round"&&(m||v)&&!G&&!M){if(c.TL)N.css(m?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",H+"px");if(c.TR)N.css(m?"-moz-border-radius-topright":"-webkit-border-top-right-radius",H+"px");if(c.BL)N.css(m?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",H+"px");if(c.BR)N.css(m?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",H+"px")}else{N=document.createElement("div");
N.style.overflow="hidden";N.style.height="1px";N.style.backgroundColor=M||"transparent";N.style.borderStyle="solid";M={T:parseInt(i.css(this,"paddingTop"))||0,R:parseInt(i.css(this,"paddingRight"))||0,B:parseInt(i.css(this,"paddingBottom"))||0,L:parseInt(i.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined)this.style.zoom=1;if(!U)this.style.border="none";N.style.borderColor=G||y(this.parentNode);U=i.curCSS(this,"height");for(var O in R)if((G=R[O])&&(c.BL||c.BR)||!G&&(c.TL||c.TR)){N.style.borderStyle=
"none "+(c[O+"R"]?"solid":"none")+" none "+(c[O+"L"]?"solid":"none");var W=document.createElement("div");i(W).addClass("jquery-corner");var K=W.style;G?this.appendChild(W):this.insertBefore(W,this.firstChild);if(G&&U!="auto"){if(i.css(this,"position")=="static")this.style.position="relative";K.position="absolute";K.bottom=K.left=K.padding=K.margin="0";if(A)K.setExpression("width","this.parentNode.offsetWidth");else K.width="100%"}else if(!G&&i.browser.msie){if(i.css(this,"position")=="static")this.style.position=
"relative";K.position="absolute";K.top=K.left=K.right=K.padding=K.margin="0";if(A){var Y=u(this,"borderLeftWidth")+u(this,"borderRightWidth");K.setExpression("width","this.parentNode.offsetWidth - "+Y+'+ "px"')}else K.width="100%"}else{K.position="relative";K.margin=!G?"-"+M.T+"px -"+M.R+"px "+(M.T-H)+"px -"+M.L+"px":M.B-H+"px -"+M.R+"px -"+M.B+"px -"+M.L+"px"}for(K=0;K<H;K++){Y=Math.max(0,x(I,K,H));var Z=N.cloneNode(false);Z.style.borderWidth="0 "+(c[O+"R"]?Y:0)+"px 0 "+(c[O+"L"]?Y:0)+"px";G?W.appendChild(Z):
W.insertBefore(Z,W.firstChild)}}}})};i.fn.uncorner=function(){if(m||v)this.css(m?"-moz-border-radius":"-webkit-border-radius",0);i("div.jquery-corner",this).remove();return this};i.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);(function(i){function u(g,m){if(m===undefined)m=typeof g=="boolean"?{show:g}:g;else m.show=g;if(m&&(m.img||m.element)&&!m.pulse)m.pulse=false;if(m&&m.onAjax!==undefined&&m.show===undefined)m.show=false;return m}function z(g,m){g=g.css(m);return g=="auto"?0:parseFloat(g,10)}var y=i.loading=function(g,m){return i("body").loading(g,m,true)};i.fn.loading=function(g,m,v){m=u(g,m);var A=v?i.extend(true,{},y,y.pageOptions):y;return this.each(function(){var n=i(this),s=i.extend(true,{},A,i.metadata?n.metadata():
null,m);typeof s.onAjax=="boolean"?y.setAjax.call(n,s):y.toggle.call(n,s)})};var x={position:i.browser.msie?"absolute":"fixed"};i.extend(y,{version:"1.5",align:"top-left",pulse:"working error",mask:false,img:null,element:null,text:"Loading...",onAjax:undefined,delay:0,classname:"loading",imgClass:"loading-img",elementClass:"loading-element",maskClass:"loading-mask",css:{position:"absolute",whiteSpace:"nowrap",zIndex:1001},maskCss:{position:"absolute",opacity:0.15,background:"#333",zIndex:101,display:"block",
cursor:"wait"},cloneEvents:true,pageOptions:{page:true,align:"top-center",css:x,maskCss:x},html:"<div></div>",maskHtml:"<div></div>",maskedClass:"loading-masked",maskEvents:"mousedown mouseup keydown keypress",resizeEvents:"resize",working:{time:1E4,text:"Still working...",run:function(g){var m=g.working,v=this;m.timeout=setTimeout(function(){v.height("auto").width("auto").text(g.text=m.text);g.place.call(v,g)},m.time)}},error:{time:1E5,text:"Task may have failed...",classname:"loading-error",run:function(g){var m=
g.error,v=this;m.timeout=setTimeout(function(){v.height("auto").width("auto").text(g.text=m.text).addClass(m.classname);g.place.call(v,g)},m.time)}},fade:{time:800,speed:"slow",run:function(g){g=g.fade;var m=g.speed,v=this;g.interval=setInterval(function(){v.fadeOut(m).fadeIn(m)},g.time)}},ellipsis:{time:300,run:function(g){function m(n){var s=n.indexOf(".");return s<0?n.length:s}var v=g.ellipsis,A=this;v.interval=setInterval(function(){var n=A.text(),s=g.text,D=m(s);A.text(n.length-D<3?n+".":s.substring(0,
D))},v.time)}},type:{time:100,run:function(g){var m=g.type,v=this;m.interval=setInterval(function(){var A=v.text().length,n=g.text;v.text(A==n.length?n.charAt(0):n.substring(0,A+1))},m.time)}},toggle:function(g){var m=this.data("loading");if(m)g.show!==true&&m.off.call(this,m,g);else g.show!==false&&g.on.call(this,g)},setAjax:function(g){if(g.onAjax){var m=this,v=g.ajax={start:function(){g.on.call(m,g)},stop:function(){g.off.call(m,g,g)}};this.bind("ajaxStart.loading",v.start).bind("ajaxStop.loading",
v.stop)}else this.unbind("ajaxStart.loading ajaxStop.loading")},on:function(g,m){if(g.delay&&!run){var v=this;return g.timeout=setTimeout(function(){g.on.call(v,g,m);delete g.timeout},g.delay)}g.parent=this;if(g.mask)g.mask=g.createMask.call(this,g);g.display=g.create.call(this,g);if(g.img)g.initImg.call(this,g);else g.element?g.initElement.call(this,g):g.init.call(this,g);this.trigger("loadingStart",[g])},initImg:function(g){var m=this;g.img=i('<img src="'+g.img+'"/>').bind("load",function(){g.init.call(m,
g)});g.display.addClass(g.imgClass).append(g.img)},initElement:function(g){g.element=i(g.element).clone(g.cloneEvents).show();g.display.addClass(g.elementClass).append(g.element);g.init.call(this,g)},init:function(g){g.place.call(g.display,g);this.data("loading",g);g.pulse&&g.initPulse.call(this,g)},initPulse:function(g){i.each(g.pulse.split(" "),function(){g[this].run.call(g.display,g)})},create:function(g){var m=i(g.html).addClass(g.classname).css(g.css).appendTo(this);g.text&&!g.img&&!g.element&&
m.text(g.text);i(window).bind(g.resizeEvents,g.resizer=function(){g.resize(g)});return m},resize:function(g){g.parent.box=null;g.mask&&g.mask.hide();g.place.call(g.display.hide(),g);g.mask&&g.mask.show().css(g.parent.box)},createMask:function(g){var m=g.measure.call(this.addClass(g.maskedClass),g);g.handler=function(v){return g.maskHandler(v,g)};i(document).bind(g.maskEvents,g.handler);return i(g.maskHtml).addClass(g.maskClass).css(m).css(g.maskCss).appendTo(this)},maskHandler:function(g,m){g=i(g.target).parents().andSelf();
if(g.filter("."+m.classname).length!=0)return true;return!m.page&&g.filter("."+m.maskedClass).length==0},place:function(g){var m=g.align,v="top",A="left";if(typeof m=="object")m=i.extend(g.calc.call(this,v,A,g),m);else{if(m!="top-left"){m=m.split("-");if(m.length==1)v=A=m[0];else{v=m[0];A=m[1]}}this.hasClass(v)||this.addClass(v);this.hasClass(A)||this.addClass(A);m=g.calc.call(this,v,A,g)}this.show().css(g.box=m)},calc:function(g,m,v){v=i.extend({},v.measure.call(v.parent,v));var A=i.boxModel?this.height():
this.innerHeight(),n=i.boxModel?this.width():this.innerWidth();if(g!="top"){var s=v.height-A;if(g=="center")s/=2;else if(g!="bottom")s=0;else if(i.boxModel)s-=z(this,"paddingTop")+z(this,"paddingBottom");v.top+=s}if(m!="left"){s=v.width-n;if(m=="center")s/=2;else if(m!="right")s=0;else if(i.boxModel)s-=z(this,"paddingLeft")+z(this,"paddingRight");v.left+=s}v.height=A;v.width=n;return v},measure:function(g){return this.box||(this.box=g.page?g.pageBox(g):g.elementBox(this,g))},elementBox:function(g){var m=
g.position();m.top+=z(g,"marginTop");m.left+=z(g,"marginLeft");m.height=g.outerHeight();m.width=g.outerWidth();return m},pageBox:function(g){var m=document,v=m.body,A=i.boxModel&&g.css.position!="fixed";g=A?i(m).height():v.clientHeight;m=A?i(m).width():v.clientWidth;return{top:0,left:0,height:g,width:m}},off:function(g,m){if(g.timeout)return clearTimeout(g.timeout);this.data("loading",null);g.pulse&&g.stopPulse.call(this,g,m);g.mask&&g.stopMask.call(this,g,m);i(window).unbind(g.resizeEvents,g.resizer);
g.display&&g.display.remove();g.parent&&g.parent.trigger("loadingEnd",[g])},stopPulse:function(g,m){i.each(g.pulse.split(" "),function(){var v=g[this];v.end&&v.end.call(m.display,g,m);v.interval&&clearInterval(v.interval);v.timeout&&clearTimeout(v.timeout)})},stopMask:function(g,m){this.removeClass(m.maskedClass);i(document).unbind(g.maskEvents,g.handler);g.mask.remove()}});y.onAjax=function(g){i.loading(i.extend({onAjax:true},g))}})(jQuery);jQuery.fn.tagCloud=function(i,u){function z(A){return 1+(A-g)/m}if(!i||!i.length)return this;var y={};jQuery.extend(y,{sort:function(A,n){return A.tag<n.tag?-1:A.tag==n.tag?0:1},click:function(){},maxFontSizeEm:4},u);var x=-1,g=i[0].count;$.each(i,function(A,n){x=Math.max(n.count,x);g=Math.min(n.count,g)});y.sort&&i.sort(y.sort);var m=x==g?1:(x-g)/(y.maxFontSizeEm-1);this.empty();for(u=0;u<i.length;++u){var v=i[u].tag;v=jQuery('<a href="" class="tagcloudlink" style="font-size: '+z(i[u].count)+'em">'+
v+"</a>").data("tag",v);y.click&&v.click(function(A){A.preventDefault();y.click(jQuery(A.target).data("tag"),A)});this.append(v).append(" ")}return this};(function(i){i.jGrowl=function(u,z){i("#jGrowl").size()==0&&i('<div id="jGrowl"></div>').addClass(i.jGrowl.defaults.position).appendTo("body");i("#jGrowl").jGrowl(u,z)};i.fn.jGrowl=function(u,z){if(i.isFunction(this.each)){var y=arguments;return this.each(function(){if(i(this).data("jGrowl.instance")==undefined){i(this).data("jGrowl.instance",i.extend(new i.fn.jGrowl,{notifications:[],element:null,interval:null}));i(this).data("jGrowl.instance").startup(this)}i.isFunction(i(this).data("jGrowl.instance")[u])?
i(this).data("jGrowl.instance")[u].apply(i(this).data("jGrowl.instance"),i.makeArray(y).slice(1)):i(this).data("jGrowl.instance").create(u,z)})}};i.extend(i.fn.jGrowl.prototype,{defaults:{pool:0,header:"",group:"",sticky:false,position:"top-right",glue:"after",theme:"default",corners:"10px",check:250,life:3E3,speed:"normal",easing:"swing",closer:true,closeTemplate:"&times;",closerTemplate:"<div>[ close all ]</div>",log:function(){},beforeOpen:function(){},open:function(){},beforeClose:function(){},
close:function(){},animateOpen:{opacity:"show"},animateClose:{opacity:"hide"}},notifications:[],element:null,interval:null,create:function(u,z){z=i.extend({},this.defaults,z);this.notifications[this.notifications.length]={message:u,options:z};z.log.apply(this.element,[this.element,u,z])},render:function(u){var z=this,y=u.message,x=u.options;u=i('<div class="jGrowl-notification'+(x.group!=undefined&&x.group!=""?" "+x.group:"")+'"><div class="close">'+x.closeTemplate+'</div><div class="header">'+x.header+
'</div><div class="message">'+y+"</div></div>").data("jGrowl",x).addClass(x.theme).children("div.close,div.message,div.header").bind("click.jGrowl",function(){i(this).parent().trigger("jGrowl.close")}).parent();x.glue=="after"?i("div.jGrowl-notification:last",this.element).after(u):i("div.jGrowl-notification:first",this.element).before(u);i(u).bind("mouseover.jGrowl",function(){i(this).data("jGrowl").pause=true}).bind("mouseout.jGrowl",function(){i(this).data("jGrowl").pause=false}).bind("jGrowl.beforeOpen",
function(){x.beforeOpen.apply(z.element,[z.element,y,x])}).bind("jGrowl.open",function(){x.open.apply(z.element,[z.element,y,x])}).bind("jGrowl.beforeClose",function(){x.beforeClose.apply(z.element,[z.element,y,x])}).bind("jGrowl.close",function(){i(this).data("jGrowl").pause=true;i(this).trigger("jGrowl.beforeClose").animate(x.animateClose,x.speed,x.easing,function(){i(this).remove();x.close.apply(z.element,[z.element,y,x])})}).trigger("jGrowl.beforeOpen").animate(x.animateOpen,x.speed,x.easing,
function(){i(this).data("jGrowl").created=new Date}).trigger("jGrowl.open");i.fn.corner!=undefined&&i(u).corner(x.corners);i("div.jGrowl-notification:parent",this.element).size()>1&&i("div.jGrowl-closer",this.element).size()==0&&this.defaults.closer!=false&&i(this.defaults.closerTemplate).addClass("jGrowl-closer").addClass(this.defaults.theme).appendTo(this.element).animate(this.defaults.animateOpen,this.defaults.speed,this.defaults.easing).bind("click.jGrowl",function(){i(this).siblings().children("div.close").trigger("click.jGrowl");
i.isFunction(z.defaults.closer)&&z.defaults.closer.apply(i(this).parent()[0],[i(this).parent()[0]])})},update:function(){i(this.element).find("div.jGrowl-notification:parent").each(function(){if(i(this).data("jGrowl")!=undefined&&i(this).data("jGrowl").created!=undefined&&i(this).data("jGrowl").created.getTime()+i(this).data("jGrowl").life<(new Date).getTime()&&i(this).data("jGrowl").sticky!=true&&(i(this).data("jGrowl").pause==undefined||i(this).data("jGrowl").pause!=true))i(this).trigger("jGrowl.close")});
if(this.notifications.length>0&&(this.defaults.pool==0||i(this.element).find("div.jGrowl-notification:parent").size()<this.defaults.pool))this.render(this.notifications.shift());i(this.element).find("div.jGrowl-notification:parent").size()<2&&i(this.element).find("div.jGrowl-closer").animate(this.defaults.animateClose,this.defaults.speed,this.defaults.easing,function(){i(this).remove()})},startup:function(u){this.element=i(u).addClass("jGrowl").append('<div class="jGrowl-notification"></div>');this.interval=
setInterval(function(){i(u).data("jGrowl.instance").update()},this.defaults.check);i.browser.msie&&parseInt(i.browser.version)<7&&!window.XMLHttpRequest&&i(this.element).addClass("ie6")},shutdown:function(){i(this.element).removeClass("jGrowl").find("div.jGrowl-notification").remove();clearInterval(this.interval)}});i.jGrowl.defaults=i.fn.jGrowl.prototype.defaults})(jQuery);jQuery.fn.extend({selectbox:function(i){return this.each(function(){new jQuery.SelectBox(this,i)})}});if(!window.console)var console={log:function(){}};
jQuery.SelectBox=function(i,u){function z(){c=0;G.hide()}function y(){G.append(A(M.attr("id"))).hide();var H=M.css("width");G.width(H)}function x(H){var I=document.createElement("div");G=$(I);G.attr("id",s+"_container");G.addClass(H.containerClass);return G}function g(H){var I=document.createElement("input");I=$(I);I.attr("id",s+"_input");I.attr("type","text");I.addClass(H.inputClass);I.attr("autocomplete","off");I.attr("readonly","readonly");I.attr("tabIndex",U.attr("tabindex"));return I}function m(H){var I=
$("li",G);if(I){D+=H;if(D<0)D=0;else if(D>=I.size())D=I.size()-1;I.removeClass(n.hoverClass);$(I[D]).addClass(n.hoverClass)}}function v(){var H=$("li."+n.currentClass,G).get(0),I=(""+H.id).split("_");U.val(I[I.length-1]);M.val($(H).html());return true}function A(H){var I=document.createElement("ul");U.children("option").each(function(){var R=document.createElement("li");R.setAttribute("id",H+"_"+$(this).val());R.innerHTML=$(this).html();if($(this).is(":selected")){M.val($(this).html());$(R).addClass(n.currentClass)}I.appendChild(R);
$(R).mouseover(function(O){c=1;n.debug&&console.log("over on : "+this.id);jQuery(O.target,G).addClass(n.hoverClass)}).mouseout(function(O){c=-1;n.debug&&console.log("out on : "+this.id);jQuery(O.target,G).removeClass(n.hoverClass)}).click(function(){$("li."+n.hoverClass,G).get(0);n.debug&&console.log("click on :"+this.id);$("li."+n.currentClass).removeClass(n.currentClass);$(this).addClass(n.currentClass);v();z()})});return I}var n=u||{};n.inputClass=n.inputClass||"selectbox";n.containerClass=n.containerClass||
"selectbox-wrapper";n.hoverClass=n.hoverClass||"current";n.currentClass=n.selectedClass||"selected";n.debug=n.debug||false;var s=i.id,D=-1,N=false,c=0,U=$(i),G=x(n),M=g(n);U.hide().before(M).before(G);y();M.click(function(){N||G.toggle()}).focus(function(){if(G.not(":visible")){N=true;G.show()}}).keydown(function(H){switch(H.keyCode){case 38:H.preventDefault();m(-1);break;case 40:H.preventDefault();m(1);break;case 13:H.preventDefault();$("li."+n.hoverClass).trigger("click");break;case 27:z();break}}).blur(function(){if(G.is(":visible")&&
c>0)n.debug&&console.log("container visible and has focus");else z()})};var wwallo=function(){var i="5",u="km",z="",y="100",x=2,g=undefined,m=undefined,v=undefined,A={};return{city:function(){return"In the Mysterious Realm of"},country:function(){return"An Unknown Country"},error:function(n){return n?(v=n):v},address:function(n){return n?(m=n):m},json:function(n){return n?(A=n):A},history:function(n){return n?(y=parseInt(n)):y},pos:function(n){return n?(g=n):g},radius:function(n){return n?(i=parseInt(n)):i},search:function(n){return n?(z=n):z},significance:function(n){return n?
(x=parseInt(n)):x},units:function(n){return n?(u=n):u}}}();function update_position(i){var u=i.coords.latitude+","+i.coords.longitude+","+wwallo.radius()+wwallo.units();$.getJSON("/geocode/"+u,function(z){wwallo.json(z);wwallo.pos(u);wwallo.address(i.gearsAddress);main_screen(z,u)})}function noposition(i,u){i&&wwallo.error(i);u=typeof u!="undefined"?u:"/geocode/null,"+wwallo.radius()+wwallo.units();$.getJSON(u,function(z){wwallo.json(z);main_screen(z)})}
function get_position(){if(!geo_position_js.init()){noposition();return true}wwallo.error(undefined);geo_position_js.getCurrentPosition(update_position,noposition)}
function main_screen(i,u){var z=i.city||wwallo.city(),y=i.country||wwallo.country(),x=z+", "+y,g=wwallo.error()?'<p><span class="Alert">Geolocation Error:</span>'+wwallo.error().message:"";if(wwallo.address()){x=wwallo.address();x=(x.streetNumber?x.streetNumber+" ":"")+(x.street?x.street+", ":"")+(x.city||z)+", "+(x.country||y)}$("#location").empty().append(x);if(u)$("div.menu_help").html("Your location: "+geofmt(u)+" ("+i.address+")");else{$("span#menu_help").addClass("Alert");$("div.menu_help").html("<p>Your location (guessed from your internet address): "+
geofmt(i.pos)+" ("+i.address+")</p>"+(g?g:'<p>To enable your device to provide accurate location data,             please install             <span class="Gears">             <a href="http://gears.google.com/?action=install">Google Gears</a>.</p>             </span>'))}var m=[];$.each(i.count,function(v,A){A>=wwallo.significance()&&m.push({tag:v,count:A})});$("#tagcloud").tagCloud(m,{click:function(v){display_messages(i,v)}});$("div#menu").slideDown("slow")}
function display_messages(i,u){var z=new RegExp("\\b"+u,"i");$.each(i.tweet,function(y){z.test(i.tweet[y])&&$.jGrowl('<img src="'+i.image[y]+'" class="Profile"/><span class="Author">'+i.author[y]+'</span><br /><span class="Message">'+i.tweet[y]+"</span>",{sticky:true,closeTemplate:"",beforeOpen:function(x,g,m){$("html, body").animate({scrollTop:0},"slow")}})});$("div#tagcloud > a.tagcloudlink").filter(function(){return $(this).text()==u}).css("text-decoration","line-through")}
function geofmt(i){var u=i.split(/,/g);return u.length==3?"Lat: "+u[0]+" Lon: "+u[1]+" Distance: "+u[2]:i}function refresh_or_redraw(i,u){var z=0,y,x,g;$.each(u,function(m){y=u[m];x=wwallo[y]();g=$("#"+y).val();if(x!=g){wwallo[y](g);z=1}});$.each(i,function(m){y=i[m];x=wwallo[y]();g=$("#"+y).val();if(x!=g){wwallo[y](g);z=2}});switch(z){case 2:get_position();break;case 1:main_screen(wwallo.json(),wwallo.pos());break;default:break}};
