(function(){var X=this,ac,G=X.jQuery,T=X.$,U=X.jQuery=X.$=function(b,a){return new U.fn.init(b,a)},N=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ad=/^.[^:#\[\.,]*$/;U.fn=U.prototype={init:function(f,b){f=f||document;if(f.nodeType){this[0]=f;this.length=1;this.context=f;return this}if(typeof f==="string"){var c=N.exec(f);if(c&&(c[1]||!b)){if(c[1]){f=U.clean([c[1]],b)}else{var a=document.getElementById(c[3]);if(a&&a.id!=c[3]){return U().find(f)}var e=U(a||[]);e.context=document;e.selector=f;return e}}else{return U(b).find(f)}}else{if(U.isFunction(f)){return U(document).ready(f)}}if(f.selector&&f.context){this.selector=f.selector;this.context=f.context}return this.setArray(U.isArray(f)?f:U.makeArray(f))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===ac?Array.prototype.slice.call(this):this[a]},pushStack:function(c,a,e){var b=U(c);b.prevObject=this;b.context=this.context;if(a==="find"){b.selector=this.selector+(this.selector?" ":"")+e}else{if(a){b.selector=this.selector+"."+a+"("+e+")"}}return b},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return U.each(this,a,b)},index:function(a){return U.inArray(a&&a.jquery?a[0]:a,this)},attr:function(c,a,b){var e=c;if(typeof c==="string"){if(a===ac){return this[0]&&U[b||"attr"](this[0],c)}else{e={};e[c]=a}}return this.each(function(f){for(c in e){U.attr(b?this.style:this,c,U.prop(this,e[c],b,f,c))}})},css:function(b,a){if((b=="width"||b=="height")&&parseFloat(a)<0){a=ac}return this.attr(b,a,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a))}var b="";U.each(a||this,function(){U.each(this.childNodes,function(){if(this.nodeType!=8){b+=this.nodeType!=1?this.nodeValue:U.fn.text([this])}})});return b},wrapAll:function(b){if(this[0]){var a=U(b,this[0].ownerDocument).clone();if(this[0].parentNode){a.insertBefore(this[0])}a.map(function(){var c=this;while(c.firstChild){c=c.firstChild}return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){U(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){U(this).wrapAll(a)})},append:function(){return this.domManip(arguments,true,function(a){if(this.nodeType==1){this.appendChild(a)}})},prepend:function(){return this.domManip(arguments,true,function(a){if(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||U([])},push:[].push,sort:[].sort,splice:[].splice,find:function(b){if(this.length===1){var a=this.pushStack([],"find",b);a.length=0;U.find(b,this[0],a);return a}else{return this.pushStack(U.unique(U.map(this,function(c){return U.find(b,c)})),"find",b)}},clone:function(b){var e=this.map(function(){if(!U.support.noCloneEvent&&!U.isXMLDoc(this)){var g=this.outerHTML;if(!g){var f=this.ownerDocument.createElement("div");f.appendChild(this.cloneNode(true));g=f.innerHTML}return U.clean([g.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(b===true){var a=this.find("*").andSelf(),c=0;e.find("*").andSelf().each(function(){if(this.nodeName!==a[c].nodeName){return}var h=U.data(a[c],"events");for(var f in h){for(var g in h[f]){U.event.add(this,f,h[f][g],h[f][g].data)}}c++})}return e},filter:function(a){return this.pushStack(U.isFunction(a)&&U.grep(this,function(b,c){return a.call(b,c)})||U.multiFilter(a,U.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(c){var a=U.expr.match.POS.test(c)?U(c):null,b=0;return this.map(function(){var e=this;while(e&&e.ownerDocument){if(a?a.index(e)>-1:U(e).is(c)){U.data(e,"closest",b);return e}e=e.parentNode;b++}})},not:function(b){if(typeof b==="string"){if(ad.test(b)){return this.pushStack(U.multiFilter(b,this,true),"not",b)}else{b=U.multiFilter(b,this)}}var a=b.length&&b[b.length-1]!==ac&&!b.nodeType;return this.filter(function(){return a?U.inArray(this,b)<0:this!=b})},add:function(a){return this.pushStack(U.unique(U.merge(this.get(),typeof a==="string"?U(a):U.makeArray(a))))},is:function(a){return !!a&&U.multiFilter(a,this).length>0},hasClass:function(a){return !!a&&this.is("."+a)},val:function(c){if(c===ac){var j=this[0];if(j){if(U.nodeName(j,"option")){return(j.attributes.value||{}).specified?j.value:j.text}if(U.nodeName(j,"select")){var f=j.selectedIndex,b=[],a=j.options,g=j.type=="select-one";if(f<0){return null}for(var i=g?f:0,e=g?f+1:a.length;i<e;i++){var h=a[i];if(h.selected){c=U(h).val();if(g){return c}b.push(c)}}return b}return(j.value||"").replace(/\r/g,"")}return ac}if(typeof c==="number"){c+=""}return this.each(function(){if(this.nodeType!=1){return}if(U.isArray(c)&&/radio|checkbox/.test(this.type)){this.checked=(U.inArray(this.value,c)>=0||U.inArray(this.name,c)>=0)}else{if(U.nodeName(this,"select")){var k=U.makeArray(c);U("option",this).each(function(){this.selected=(U.inArray(this.value,k)>=0||U.inArray(this.text,k)>=0)});if(!k.length){this.selectedIndex=-1}}else{this.value=c}}})},html:function(a){return a===ac?(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(U.map(this,function(b,c){return a.call(b,c,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(e,a,b){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment(),i=U.clean(e,(this[0].ownerDocument||this[0]),f),g=f.firstChild;if(g){for(var h=0,j=this.length;h<j;h++){b.call(c(this[h],g),this.length>1||h>0?f.cloneNode(true):f)}}if(i){U.each(i,F)}}return this;function c(l,k){return a&&U.nodeName(l,"table")&&U.nodeName(k,"tr")?(l.getElementsByTagName("tbody")[0]||l.appendChild(l.ownerDocument.createElement("tbody"))):l}}};U.fn.init.prototype=U.fn;function F(b,a){if(a.src){U.ajax({url:a.src,async:false,dataType:"script"})}else{U.globalEval(a.text||a.textContent||a.innerHTML||"")}if(a.parentNode){a.parentNode.removeChild(a)}}function ae(){return +new Date}U.extend=U.fn.extend=function(){var c=arguments[0]||{},f=1,e=arguments.length,i=false,g;if(typeof c==="boolean"){i=c;c=arguments[1]||{};f=2}if(typeof c!=="object"&&!U.isFunction(c)){c={}}if(e==f){c=this;--f}for(;f<e;f++){if((g=arguments[f])!=null){for(var h in g){var b=c[h],a=g[h];if(c===a){continue}if(i&&a&&typeof a==="object"&&!a.nodeType){c[h]=U.extend(i,b||(a.length!=null?[]:{}),a)}else{if(a!==ac){c[h]=a}}}}}return c};var ah=/z-?index|font-?weight|opacity|zoom|line-?height/i,R=document.defaultView||{},M=Object.prototype.toString;U.extend({noConflict:function(a){X.$=T;if(a){X.jQuery=G}return U},isFunction:function(a){return M.call(a)==="[object Function]"},isArray:function(a){return M.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&U.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,c=document.createElement("script");c.type="text/javascript";if(U.support.scriptEval){c.appendChild(document.createTextNode(a))}else{c.text=a}b.insertBefore(c,b.firstChild);b.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(f,a,g){var h,e=0,c=f.length;if(g){if(c===ac){for(h in f){if(a.apply(f[h],g)===false){break}}}else{for(;e<c;){if(a.apply(f[e++],g)===false){break}}}}else{if(c===ac){for(h in f){if(a.call(f[h],h,f[h])===false){break}}}else{for(var b=f[0];e<c&&a.call(b,e,b)!==false;b=f[++e]){}}}return f},prop:function(b,a,c,e,f){if(U.isFunction(a)){a=a.call(b,e)}return typeof a==="number"&&c=="curCSS"&&!ah.test(f)?a+"px":a},className:{add:function(b,a){U.each((a||"").split(/\s+/),function(e,c){if(b.nodeType==1&&!U.className.has(b.className,c)){b.className+=(b.className?" ":"")+c}})},remove:function(b,a){if(b.nodeType==1){b.className=a!==ac?U.grep(b.className.split(/\s+/),function(c){return !U.className.has(a,c)}).join(" "):""}},has:function(a,b){return a&&U.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(b,c,a){var f={};for(var e in c){f[e]=b.style[e];b.style[e]=c[e]}a.call(b);for(var e in c){b.style[e]=f[e]}},css:function(f,h,c,i){if(h=="width"||h=="height"){var a,g={position:"absolute",visibility:"hidden",display:"block"},b=h=="width"?["Left","Right"]:["Top","Bottom"];function e(){a=h=="width"?f.offsetWidth:f.offsetHeight;if(i==="border"){return}U.each(b,function(){if(!i){a-=parseFloat(U.curCSS(f,"padding"+this,true))||0}if(i==="margin"){a+=parseFloat(U.curCSS(f,"margin"+this,true))||0}else{a-=parseFloat(U.curCSS(f,"border"+this+"Width",true))||0}})}if(f.offsetWidth!==0){e()}else{U.swap(f,g,e)}return Math.max(0,Math.round(a))}return U.curCSS(f,h,c)},curCSS:function(f,i,h){var b,j=f.style;if(i=="opacity"&&!U.support.opacity){b=U.attr(j,"opacity");return b==""?"1":b}if(i.match(/float/i)){i=I}if(!h&&j&&j[i]){b=j[i]}else{if(R.getComputedStyle){if(i.match(/float/i)){i="float"}i=i.replace(/([A-Z])/g,"-$1").toLowerCase();var a=R.getComputedStyle(f,null);if(a){b=a.getPropertyValue(i)}if(i=="opacity"&&b==""){b="1"}}else{if(f.currentStyle){var e=i.replace(/\-(\w)/g,function(l,k){return k.toUpperCase()});b=f.currentStyle[i]||f.currentStyle[e];if(!/^\d+(px)?$/i.test(b)&&/^\d/.test(b)){var g=j.left,c=f.runtimeStyle.left;f.runtimeStyle.left=f.currentStyle.left;j.left=b||0;b=j.pixelLeft+"px";j.left=g;f.runtimeStyle.left=c}}}}return b},clean:function(h,b,e){b=b||document;if(typeof b.createElement==="undefined"){b=b.ownerDocument||b[0]&&b[0].ownerDocument||document}if(!e&&h.length===1&&typeof h[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(h[0]);if(f){return[b.createElement(f[1])]}}var g=[],i=[],a=b.createElement("div");U.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>"]||!U.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];a.innerHTML=l[1]+j+l[2];while(l[0]--){a=a.lastChild}if(!U.support.tbody){var k=/<tbody/i.test(j),o=!n.indexOf("<table")&&!k?a.firstChild&&a.firstChild.childNodes:l[1]=="<table>"&&!k?a.childNodes:[];for(var p=o.length-1;p>=0;--p){if(U.nodeName(o[p],"tbody")&&!o[p].childNodes.length){o[p].parentNode.removeChild(o[p])}}}if(!U.support.leadingWhitespace&&/^\s/.test(j)){a.insertBefore(b.createTextNode(j.match(/^\s*/)[0]),a.firstChild)}j=U.makeArray(a.childNodes)}if(j.nodeType){g.push(j)}else{g=U.merge(g,j)}});if(e){for(var c=0;g[c];c++){if(U.nodeName(g[c],"script")&&(!g[c].type||g[c].type.toLowerCase()==="text/javascript")){i.push(g[c].parentNode?g[c].parentNode.removeChild(g[c]):g[c])}else{if(g[c].nodeType===1){g.splice.apply(g,[c+1,0].concat(U.makeArray(g[c].getElementsByTagName("script"))))}e.appendChild(g[c])}}return i}return g},attr:function(c,g,b){if(!c||c.nodeType==3||c.nodeType==8){return ac}var f=!U.isXMLDoc(c),a=b!==ac;g=f&&U.props[g]||g;if(c.tagName){var h=/href|src|style/.test(g);if(g=="selected"&&c.parentNode){c.parentNode.selectedIndex}if(g in c&&f&&!h){if(a){if(g=="type"&&U.nodeName(c,"input")&&c.parentNode){throw"type property can't be changed"}c[g]=b}if(U.nodeName(c,"form")&&c.getAttributeNode(g)){return c.getAttributeNode(g).nodeValue}if(g=="tabIndex"){var e=c.getAttributeNode("tabIndex");return e&&e.specified?e.value:c.nodeName.match(/(button|input|object|select|textarea)/i)?0:c.nodeName.match(/^(a|area)$/i)&&c.href?0:ac}return c[g]}if(!U.support.style&&f&&g=="style"){return U.attr(c.style,"cssText",b)}if(a){c.setAttribute(g,""+b)}var i=!U.support.hrefNormalized&&f&&h?c.getAttribute(g,2):c.getAttribute(g);return i===null?ac:i}if(!U.support.opacity&&g=="opacity"){if(a){c.zoom=1;c.filter=(c.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+""=="NaN"?"":"alpha(opacity="+b*100+")")}return c.filter&&c.filter.indexOf("opacity=")>=0?(parseFloat(c.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}g=g.replace(/-([a-z])/ig,function(k,j){return j.toUpperCase()});if(a){c[g]=b}return c[g]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var b=a.length;if(b==null||typeof a==="string"||U.isFunction(a)||a.setInterval){c[0]=a}else{while(b){c[--b]=a[b]}}}return c},inArray:function(b,a){for(var e=0,c=a.length;e<c;e++){if(a[e]===b){return e}}return -1},merge:function(b,f){var e=0,c,a=b.length;if(!U.support.getAll){while((c=f[e++])!=null){if(c.nodeType!=8){b[a++]=c}}}else{while((c=f[e++])!=null){b[a++]=c}}return b},unique:function(a){var g=[],h={};try{for(var f=0,e=a.length;f<e;f++){var b=U.data(a[f]);if(!h[b]){h[b]=true;g.push(a[f])}}}catch(c){g=a}return g},grep:function(f,a,g){var e=[];for(var c=0,b=f.length;c<b;c++){if(!g!=!a(f[c],c)){e.push(f[c])}}return e},map:function(g,a){var f=[];for(var e=0,c=g.length;e<c;e++){var b=a(g[e],e);if(b!=null){f[f.length]=b}}return f.concat.apply([],f)}});var P=navigator.userAgent.toLowerCase();U.browser={version:(P.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(P),opera:/opera/.test(P),msie:/msie/.test(P)&&!/opera/.test(P),mozilla:/mozilla/.test(P)&&!/(compatible|webkit)/.test(P)};U.each({parent:function(a){return a.parentNode},parents:function(a){return U.dir(a,"parentNode")},next:function(a){return U.nth(a,2,"nextSibling")},prev:function(a){return U.nth(a,2,"previousSibling")},nextAll:function(a){return U.dir(a,"nextSibling")},prevAll:function(a){return U.dir(a,"previousSibling")},siblings:function(a){return U.sibling(a.parentNode.firstChild,a)},children:function(a){return U.sibling(a.firstChild)},contents:function(a){return U.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:U.makeArray(a.childNodes)}},function(b,a){U.fn[b]=function(e){var c=U.map(this,a);if(e&&typeof e=="string"){c=U.multiFilter(e,c)}return this.pushStack(U.unique(c),b,e)}});U.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,a){U.fn[b]=function(i){var f=[],c=U(i);for(var e=0,h=c.length;e<h;e++){var g=(e>0?this.clone(true):this).get();U.fn[a].apply(U(c[e]),g);f=f.concat(g)}return this.pushStack(f,b,i)}});U.each({removeAttr:function(a){U.attr(this,a,"");if(this.nodeType==1){this.removeAttribute(a)}},addClass:function(a){U.className.add(this,a)},removeClass:function(a){U.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean"){b=!U.className.has(this,a)}U.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||U.filter(a,[this]).length){U("*",this).add([this]).each(function(){U.event.remove(this);U.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){U(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(b,a){U.fn[b]=function(){return this.each(a,arguments)}});function Z(b,a){return b[0]&&parseInt(U.curCSS(b[0],a,true),10)||0}var ab="jQuery"+ae(),J=0,S={};U.extend({cache:{},data:function(c,e,b){c=c==X?S:c;var a=c[ab];if(!a){a=c[ab]=++J}if(e&&!U.cache[a]){U.cache[a]={}}if(b!==ac){U.cache[a][e]=b}return e?U.cache[a][e]:a},removeData:function(c,e){c=c==X?S:c;var a=c[ab];if(e){if(U.cache[a]){delete U.cache[a][e];e="";for(e in U.cache[a]){break}if(!e){U.removeData(c)}}}else{try{delete c[ab]}catch(b){if(c.removeAttribute){c.removeAttribute(ab)}}delete U.cache[a]}},queue:function(c,e,a){if(c){e=(e||"fx")+"queue";var b=U.data(c,e);if(!b||U.isArray(a)){b=U.data(c,e,U.makeArray(a))}else{if(a){b.push(a)}}}return b},dequeue:function(a,b){var e=U.queue(a,b),c=e.shift();if(!b||b==="fx"){c=e[0]}if(c!==ac){c.call(a)}}});U.fn.extend({data:function(e,b){var a=e.split(".");a[1]=a[1]?"."+a[1]:"";if(b===ac){var c=this.triggerHandler("getData"+a[1]+"!",[a[0]]);if(c===ac&&this.length){c=U.data(this[0],e)}return c===ac&&a[1]?this.data(a[0]):c}else{return this.trigger("setData"+a[1]+"!",[a[0],b]).each(function(){U.data(this,e,b)})}},removeData:function(a){return this.each(function(){U.removeData(this,a)})},queue:function(b,a){if(typeof b!=="string"){a=b;b="fx"}if(a===ac){return U.queue(this[0],b)}return this.each(function(){var c=U.queue(this,b,a);if(b=="fx"&&c.length==1){c[0].call(this)}})},dequeue:function(a){return this.each(function(){U.dequeue(this,a)})}});(function(){var b=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,i=0,m=Object.prototype.toString;var o=function(s,w,al,ak){al=al||[];w=w||document;if(w.nodeType!==1&&w.nodeType!==9){return[]}if(!s||typeof s!=="string"){return al}var r=[],u,B,y,x,aj,v,t=true;b.lastIndex=0;while((u=b.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=ak?{expr:r.pop(),set:p(ak)}:o.find(r.pop(),r.length===1&&w.parentNode?w.parentNode:w,c(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,c(w))}}if(!y){y=B}if(!y){throw"Syntax error, unrecognized expression: "+(z||s)}if(m.call(y)==="[object Array]"){if(!t){al.push.apply(al,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]))){al.push(B[q])}}}else{for(var q=0;y[q]!=null;q++){if(y[q]&&y[q].nodeType===1){al.push(B[q])}}}}}else{p(y,al)}if(v){o(v,w,al,ak);if(n){hasDuplicate=false;al.sort(n);if(hasDuplicate){for(var q=1;q<al.length;q++){if(al[q]===al[q-1]){al.splice(q--,1)}}}}}return al};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(aj,ak,A,u){var v=aj,y=[],q=ak,s,x,r=ak&&ak[0]&&c(ak[0]);while(aj&&ak.length){for(var al in l.filter){if((s=l.match[al].exec(aj))!=null){var w=l.filter[al],z,B;x=false;if(q==y){y=[]}if(l.preFilter[al]){s=l.preFilter[al](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!==ac){if(!A){q=y}aj=aj.replace(l.match[al],"");if(!x){return[]}break}}}if(aj==v){if(x==null){throw"Syntax error, unrecognized expression: "+aj}else{break}}v=aj}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=a;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=a;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]&&c(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(b).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]:ac:[]}};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&&!c(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 a(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 c=function(q){return q.nodeType===9&&q.documentElement.nodeName!=="HTML"||!!q.ownerDocument&&c(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)};U.find=o;U.filter=o.filter;U.expr=o.selectors;U.expr[":"]=U.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 U.grep(U.timers,function(r){return q===r.elem}).length};U.multiFilter=function(q,s,r){if(r){q=":not("+q+")"}return o.matches(q,s)};U.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};U.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};U.sibling=function(q,r){var s=[];for(;q;q=q.nextSibling){if(q.nodeType==1&&q!=r){s.push(q)}}return s};return;X.Sizzle=o})();U.event={add:function(c,g,e,a){if(c.nodeType==3||c.nodeType==8){return}if(c.setInterval&&c!=X){c=X}if(!e.guid){e.guid=this.guid++}if(a!==ac){var f=e;e=this.proxy(f);e.data=a}var h=U.data(c,"events")||U.data(c,"events",{}),b=U.data(c,"handle")||U.data(c,"handle",function(){return typeof U!=="undefined"&&!U.event.triggered?U.event.handle.apply(arguments.callee.elem,arguments):ac});b.elem=c;U.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(U.event.specialAll[k]){U.event.specialAll[k].setup.call(c,a,j)}if(!i){i=h[k]={};if(!U.event.special[k]||U.event.special[k].setup.call(c,a,j)===false){if(c.addEventListener){c.addEventListener(k,b,false)}else{if(c.attachEvent){c.attachEvent("on"+k,b)}}}}i[e.guid]=e;U.event.global[k]=true});c=null},guid:1,global:{},remove:function(b,f,c){if(b.nodeType==3||b.nodeType==8){return}var g=U.data(b,"events"),h,i;if(g){if(f===ac||(typeof f==="string"&&f.charAt(0)==".")){for(var e in g){this.remove(b,e+(f||""))}}else{if(f.type){c=f.handler;f=f.type}U.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(c){delete g[l][c.guid]}else{for(var k in g[l]){if(m.test(g[l][k].type)){delete g[l][k]}}}if(U.event.specialAll[l]){U.event.specialAll[l].teardown.call(b,j)}for(h in g[l]){break}if(!h){if(!U.event.special[l]||U.event.special[l].teardown.call(b,j)===false){if(b.removeEventListener){b.removeEventListener(l,U.data(b,"handle"),false)}else{if(b.detachEvent){b.detachEvent("on"+l,U.data(b,"handle"))}}}h=null;delete g[l]}}})}for(h in g){break}if(!h){var a=U.data(b,"handle");if(a){a.elem=null}U.removeData(b,"events");U.removeData(b,"handle")}}},trigger:function(e,b,f,i){var g=e.type||e;if(!i){e=typeof e==="object"?e[ab]?e:U.extend(U.Event(g),e):U.Event(g);if(g.indexOf("!")>=0){e.type=g=g.slice(0,-1);e.exclusive=true}if(!f){e.stopPropagation();if(this.global[g]){U.each(U.cache,function(){if(this.events&&this.events[g]){U.event.trigger(e,b,this.handle.elem)}})}}if(!f||f.nodeType==3||f.nodeType==8){return ac}e.result=ac;e.target=f;b=U.makeArray(b);b.unshift(e)}e.currentTarget=f;var c=U.data(f,"handle");if(c){c.apply(f,b)}if((!f[g]||(U.nodeName(f,"a")&&g=="click"))&&f["on"+g]&&f["on"+g].apply(f,b)===false){e.result=false}if(!i&&f[g]&&!e.isDefaultPrevented()&&!(U.nodeName(f,"a")&&g=="click")){this.triggered=true;try{f[g]()}catch(a){}}this.triggered=false;if(!e.isPropagationStopped()){var h=f.parentNode||f.ownerDocument;if(h){U.event.trigger(e,b,h,true)}}},handle:function(b){var c,i;b=arguments[0]=U.event.fix(b||X.event);b.currentTarget=this;var a=b.type.split(".");b.type=a.shift();c=!a.length&&!b.exclusive;var e=RegExp("(^|\\.)"+a.slice().sort().join(".*\\.")+"(\\.|$)");i=(U.data(this,"events")||{})[b.type];for(var g in i){var f=i[g];if(c||e.test(f.type)){b.handler=f;b.data=f.data;var h=f.apply(this,arguments);if(h!==ac){b.result=h;if(h===false){b.preventDefault();b.stopPropagation()}}if(b.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(c){if(c[ab]){return c}var f=c;c=U.Event(f);for(var e=this.props.length,a;e;){a=this.props[--e];c[a]=f[a]}if(!c.target){c.target=c.srcElement||document}if(c.target.nodeType==3){c.target=c.target.parentNode}if(!c.relatedTarget&&c.fromElement){c.relatedTarget=c.fromElement==c.target?c.toElement:c.fromElement}if(c.pageX==null&&c.clientX!=null){var b=document.documentElement,g=document.body;c.pageX=c.clientX+(b&&b.scrollLeft||g&&g.scrollLeft||0)-(b.clientLeft||0);c.pageY=c.clientY+(b&&b.scrollTop||g&&g.scrollTop||0)-(b.clientTop||0)}if(!c.which&&((c.charCode||c.charCode===0)?c.charCode:c.keyCode)){c.which=c.charCode||c.keyCode}if(!c.metaKey&&c.ctrlKey){c.metaKey=c.ctrlKey}if(!c.which&&c.button){c.which=(c.button&1?1:(c.button&2?3:(c.button&4?2:0)))}return c},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:Q,teardown:function(){}}},specialAll:{live:{setup:function(b,a){U.event.add(this,a[0],ag)},teardown:function(a){if(a.length){var c=0,b=RegExp("(^|\\.)"+a[0]+"(\\.|$)");U.each((U.data(this,"events").live||{}),function(){if(b.test(this.type)){c++}});if(c<1){U.event.remove(this,a[0],ag)}}}}}};U.Event=function(a){if(!this.preventDefault){return new U.Event(a)}if(a&&a.type){this.originalEvent=a;this.type=a.type}else{this.type=a}this.timeStamp=ae();this[ab]=true};function Y(){return false}function K(){return true}U.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;if(!a){return}if(a.preventDefault){a.preventDefault()}a.returnValue=false},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;if(!a){return}if(a.stopPropagation){a.stopPropagation()}a.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var ai=function(b){var c=b.relatedTarget;while(c&&c!=this){try{c=c.parentNode}catch(a){c=this}}if(c!=this){b.type=b.data;U.event.handle.apply(this,arguments)}};U.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){U.event.special[b]={setup:function(){U.event.add(this,a,ai,b)},teardown:function(){U.event.remove(this,a,ai)}}});U.fn.extend({bind:function(b,a,c){return b=="unload"?this.one(b,a,c):this.each(function(){U.event.add(this,b,c||a,c&&a)})},one:function(b,a,c){var e=U.event.proxy(c||a,function(f){U(this).unbind(f,e);return(c||a).apply(this,arguments)});return this.each(function(){U.event.add(this,b,e,c&&a)})},unbind:function(a,b){return this.each(function(){U.event.remove(this,a,b)})},trigger:function(b,a){return this.each(function(){U.event.trigger(b,a,this)})},triggerHandler:function(c,a){if(this[0]){var b=U.Event(c);b.preventDefault();b.stopPropagation();U.event.trigger(b,a,this[0]);return b.result}},toggle:function(a){var c=arguments,b=1;while(b<c.length){U.event.proxy(a,c[b++])}return this.click(U.event.proxy(a,function(e){this.lastToggle=(this.lastToggle||0)%b;e.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(b,a){return this.mouseenter(b).mouseleave(a)},ready:function(a){Q();if(U.isReady){a.call(document,U)}else{U.readyList.push(a)}return this},live:function(a,b){var c=U.event.proxy(b);c.guid+=this.selector+a;U(document).bind(aa(a,this.selector),this.selector,c);return this},die:function(a,b){U(document).unbind(aa(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});function ag(a){var e=RegExp("(^|\\.)"+a.type+"(\\.|$)"),b=true,c=[];U.each(U.data(this,"events").live||[],function(h,g){if(e.test(g.type)){var f=U(a.target).closest(g.data)[0];if(f){c.push({elem:f,fn:g})}}});c.sort(function(f,g){return U.data(f.elem,"closest")-U.data(g.elem,"closest")});U.each(c,function(){if(this.fn.call(this.elem,a,this.fn.data)===false){return(b=false)}});return b}function aa(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}U.extend({isReady:false,readyList:[],ready:function(){if(!U.isReady){U.isReady=true;if(U.readyList){U.each(U.readyList,function(){this.call(document,U)});U.readyList=null}U(document).triggerHandler("ready")}}});var H=false;function Q(){if(H){return}H=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);U.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);U.ready()}});if(document.documentElement.doScroll&&X==X.top){(function(){if(U.isReady){return}try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}U.ready()})()}}}U.event.add(X,"load",U.ready)}U.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){U.fn[b]=function(c){return c?this.bind(b,c):this.trigger(b)}});U(X).bind("unload",function(){for(var a in U.cache){if(a!=1&&U.cache[a].handle){U.event.remove(U.cache[a].handle.elem)}}});(function(){U.support={};var g=document.documentElement,f=document.createElement("script"),a=document.createElement("div"),b="script"+(new Date).getTime();a.style.display="none";a.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=a.getElementsByTagName("*"),h=a.getElementsByTagName("a")[0];if(!e||!e.length||!h){return}U.support={leadingWhitespace:a.firstChild.nodeType==3,tbody:!a.getElementsByTagName("tbody").length,objectAll:!!a.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!a.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."+b+"=1;"))}catch(c){}g.insertBefore(f,g.firstChild);if(X[b]){U.support.scriptEval=true;delete X[b]}g.removeChild(f);if(a.attachEvent&&a.fireEvent){a.attachEvent("onclick",function(){U.support.noCloneEvent=false;a.detachEvent("onclick",arguments.callee)});a.cloneNode(true).fireEvent("onclick")}U(function(){var i=document.createElement("div");i.style.width=i.style.paddingLeft="1px";document.body.appendChild(i);U.boxModel=U.support.boxModel=i.offsetWidth===2;document.body.removeChild(i).style.display="none"})})();var I=U.support.cssFloat?"cssFloat":"styleFloat";U.props={"for":"htmlFor","class":"className","float":I,cssFloat:I,styleFloat:I,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};U.fn.extend({_load:U.fn.load,load:function(f,b,a){if(typeof f!=="string"){return this._load(f)}var c=f.indexOf(" ");if(c>=0){var h=f.slice(c,f.length);f=f.slice(0,c)}var e="GET";if(b){if(U.isFunction(b)){a=b;b=null}else{if(typeof b==="object"){b=U.param(b);e="POST"}}}var g=this;U.ajax({url:f,type:e,dataType:"html",data:b,complete:function(j,i){if(i=="success"||i=="notmodified"){g.html(h?U("<div/>").append(j.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):j.responseText)}if(a){g.each(a,[j.responseText,i,j])}}});return this},serialize:function(){return U.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?U.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(c,b){var a=U(this).val();return a==null?null:U.isArray(a)?U.map(a,function(e,f){return{name:b.name,value:e}}):{name:b.name,value:a}}).get()}});U.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(b,a){U.fn[a]=function(c){return this.bind(a,c)}});var O=ae();U.extend({get:function(e,b,a,c){if(U.isFunction(b)){a=b;b=null}return U.ajax({type:"GET",url:e,data:b,success:a,dataType:c})},getScript:function(b,a){return U.get(b,null,a,"script")},getJSON:function(c,b,a){return U.get(c,b,a,"json")},post:function(e,b,a,c){if(U.isFunction(b)){a=b;b={}}return U.ajax({type:"POST",url:e,data:b,success:a,dataType:c})},ajaxSetup:function(a){U.extend(U.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return X.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=U.extend(true,l,U.extend(true,{},U.ajaxSettings,l));var a,s=/=\?(&|$)/g,g,b,r=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=U.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))){a="jsonp"+O++;if(l.data){l.data=(l.data+"").replace(s,"="+a+"$1")}l.url=l.url.replace(s,"="+a+"$1");l.dataType="script";X[a]=function(v){b=v;p();m();X[a]=ac;try{delete X[a]}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=ae();var c=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+t+"$2");l.url=c+((c==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+t:"")}if(l.data&&r=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!U.active++){U.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(!a){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 ac}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",U.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&&!--U.active){U.event.trigger("ajaxStop")}o.abort();return false}if(l.global){U.event.trigger("ajaxSend",[o,l])}var k=function(w){if(o.readyState==0){if(i){clearInterval(i);i=null;if(l.global&&!--U.active){U.event.trigger("ajaxStop")}}}else{if(!n&&o&&(o.readyState==4||w=="timeout")){n=true;if(i){clearInterval(i);i=null}g=w=="timeout"?"timeout":!U.httpSuccess(o)?"error":l.ifModified&&U.httpNotModified(o,l.url)?"notmodified":"success";if(g=="success"){try{b=U.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){U.lastModified[l.url]=v}if(!a){p()}}else{U.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){U.handleError(l,o,null,f)}if(!l.async){k()}function p(){if(l.success){l.success(b,g)}if(l.global){U.event.trigger("ajaxSuccess",[o,l])}}function m(){if(l.complete){l.complete(o,g)}if(l.global){U.event.trigger("ajaxComplete",[o,l])}if(l.global&&!--U.active){U.event.trigger("ajaxStop")}}return o},handleError:function(c,a,e,b){if(c.error){c.error(a,e,b)}if(c.global){U.event.trigger("ajaxError",[a,c,b])}},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(b,e){try{var a=b.getResponseHeader("Last-Modified");return b.status==304||a==U.lastModified[e]}catch(c){}return false},httpData:function(a,c,e){var f=a.getResponseHeader("content-type"),g=c=="xml"||!c&&f&&f.indexOf("xml")>=0,b=g?a.responseXML:a.responseText;if(g&&b.documentElement.tagName=="parsererror"){throw"parsererror"}if(e&&e.dataFilter){b=e.dataFilter(b,c)}if(typeof b==="string"){if(c=="script"){U.globalEval(b)}if(c=="json"){b=X["eval"]("("+b+")")}}return b},param:function(e){var b=[];function a(g,f){b[b.length]=encodeURIComponent(g)+"="+encodeURIComponent(f)}if(U.isArray(e)||e.jquery){U.each(e,function(){a(this.name,this.value)})}else{for(var c in e){if(U.isArray(e[c])){U.each(e[c],function(){a(c,this)})}else{a(c,U.isFunction(e[c])?e[c]():e[c])}}}return b.join("&").replace(/%20/g,"+")}});var W={},V,af=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function L(b,c){var a={};U.each(af.concat.apply([],af.slice(0,c)),function(){a[this]=b});return a}U.fn.extend({show:function(c,a){if(c){return this.animate(L("show",3),c,a)}else{for(var f=0,h=this.length;f<h;f++){var i=U.data(this[f],"olddisplay");this[f].style.display=i||"";if(U.css(this[f],"display")==="none"){var g=this[f].tagName,b;if(W[g]){b=W[g]}else{var e=U("<"+g+" />").appendTo("body");b=e.css("display");if(b==="none"){b="block"}e.remove();W[g]=b}U.data(this[f],"olddisplay",b)}}for(var f=0,h=this.length;f<h;f++){this[f].style.display=U.data(this[f],"olddisplay")||""}return this}},hide:function(b,a){if(b){return this.animate(L("hide",3),b,a)}else{for(var c=0,e=this.length;c<e;c++){var f=U.data(this[c],"olddisplay");if(!f&&f!=="none"){U.data(this[c],"olddisplay",U.css(this[c],"display"))}}for(var c=0,e=this.length;c<e;c++){this[c].style.display="none"}return this}},_toggle:U.fn.toggle,toggle:function(a,b){var c=typeof a==="boolean";return U.isFunction(a)&&U.isFunction(b)?this._toggle.apply(this,arguments):a==null||c?this.each(function(){var e=c?a:U(this).is(":hidden");U(this)[e?"show":"hide"]()}):this.animate(L("toggle",3),a,b)},fadeTo:function(c,a,b){return this.animate({opacity:a},c,b)},animate:function(a,e,b,c){var f=U.speed(e,b,c);return this[f.queue===false?"each":"queue"](function(){var h=U.extend({},f),j,g=this.nodeType==1&&U(this).is(":hidden"),i=this;for(j in a){if(a[j]=="hide"&&g||a[j]=="show"&&!g){return h.complete.call(this)}if((j=="height"||j=="width")&&this.style){h.display=U.css(this,"display");h.overflow=this.style.overflow}}if(h.overflow!=null){this.style.overflow="hidden"}h.curAnim=U.extend({},a);U.each(a,function(p,l){var m=new U.fx(i,h,p);if(/toggle|show|hide/.test(l)){m[l=="toggle"?g?"show":"hide":l](a)}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(b,c){var a=U.timers;if(b){this.queue([])}this.each(function(){for(var e=a.length-1;e>=0;e--){if(a[e].elem==this){if(c){a[e](true)}a.splice(e,1)}}});if(!c){this.dequeue()}return this}});U.each({slideDown:L("show",1),slideUp:L("hide",1),slideToggle:L("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,a){U.fn[b]=function(e,c){return this.animate(a,e,c)}});U.extend({speed:function(b,a,c){var e=typeof b==="object"?b:{complete:c||!c&&a||U.isFunction(b)&&b,duration:b,easing:c&&a||a&&!U.isFunction(a)&&a};e.duration=U.fx.off?0:typeof e.duration==="number"?e.duration:U.fx.speeds[e.duration]||U.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){U(this).dequeue()}if(U.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(b,a,e,c){return e+c*b},swing:function(b,a,e,c){return((-Math.cos(b*Math.PI)/2)+0.5)*c+e}},timers:[],fx:function(b,c,a){this.options=c;this.elem=b;this.prop=a;if(!c.orig){c.orig={}}}});U.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(U.fx.step[this.prop]||U.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]}var b=parseFloat(U.css(this.elem,this.prop,a));return b&&b>-10000?b:parseFloat(U.curCSS(this.elem,this.prop))||0},custom:function(a,b,c){this.startTime=ae();this.start=a;this.end=b;this.unit=c||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()&&U.timers.push(e)&&!V){V=setInterval(function(){var g=U.timers;for(var h=0;h<g.length;h++){if(!g[h]()){g.splice(h--,1)}}if(!g.length){clearInterval(V);V=ac}},13)}},show:function(){this.options.orig[this.prop]=U.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());U(this.elem).show()},hide:function(){this.options.orig[this.prop]=U.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(c){var e=ae();if(c||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(U.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){U(this.elem).hide()}if(this.options.hide||this.options.show){for(var b in this.options.curAnim){U.attr(this.elem.style,b,this.options.orig[b])}}this.options.complete.call(this.elem)}return false}else{var a=e-this.startTime;this.state=a/this.options.duration;this.pos=U.easing[this.options.easing||(U.easing.swing?"swing":"linear")](this.state,a,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};U.extend(U.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){U.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}}}});if(document.documentElement.getBoundingClientRect){U.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return U.offset.bodyOffset(this[0])}var g=this[0].getBoundingClientRect(),c=this[0].ownerDocument,h=c.body,i=c.documentElement,a=i.clientTop||h.clientTop||0,b=i.clientLeft||h.clientLeft||0,e=g.top+(self.pageYOffset||U.boxModel&&i.scrollTop||h.scrollTop)-a,f=g.left+(self.pageXOffset||U.boxModel&&i.scrollLeft||h.scrollLeft)-b;return{top:e,left:f}}}else{U.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return U.offset.bodyOffset(this[0])}U.offset.initialized||U.offset.initialize();var g=this[0],j=g.offsetParent,k=g,a=g.ownerDocument,c,i=a.documentElement,f=a.body,e=a.defaultView,l=e.getComputedStyle(g,null),b=g.offsetTop,h=g.offsetLeft;while((g=g.parentNode)&&g!==f&&g!==i){c=e.getComputedStyle(g,null);b-=g.scrollTop,h-=g.scrollLeft;if(g===j){b+=g.offsetTop,h+=g.offsetLeft;if(U.offset.doesNotAddBorder&&!(U.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName))){b+=parseInt(c.borderTopWidth,10)||0,h+=parseInt(c.borderLeftWidth,10)||0}k=j,j=g.offsetParent}if(U.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"){b+=parseInt(c.borderTopWidth,10)||0,h+=parseInt(c.borderLeftWidth,10)||0}l=c}if(l.position==="relative"||l.position==="static"){b+=f.offsetTop,h+=f.offsetLeft}if(l.position==="fixed"){b+=Math.max(i.scrollTop,f.scrollTop),h+=Math.max(i.scrollLeft,f.scrollLeft)}return{top:b,left:h}}}U.offset={initialize:function(){if(this.initialized){return}var c=document.body,j=document.createElement("div"),h,i,a,g,b,k,f=c.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>';b={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(k in b){j.style[k]=b[k]}j.innerHTML=e;c.insertBefore(j,c.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);c.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(c.offsetTop===0);c.style.marginTop=f;c.removeChild(j);this.initialized=true},bodyOffset:function(c){U.offset.initialized||U.offset.initialize();var a=c.offsetTop,b=c.offsetLeft;if(U.offset.doesNotIncludeMarginInBodyOffset){a+=parseInt(U.curCSS(c,"marginTop",true),10)||0,b+=parseInt(U.curCSS(c,"marginLeft",true),10)||0}return{top:a,left:b}}};U.fn.extend({position:function(){var b=0,c=0,f;if(this[0]){var e=this.offsetParent(),a=this.offset(),g=/^body|html$/i.test(e[0].tagName)?{top:0,left:0}:e.offset();a.top-=Z(this,"marginTop");a.left-=Z(this,"marginLeft");g.top+=Z(e,"borderTopWidth");g.left+=Z(e,"borderLeftWidth");f={top:a.top-g.top,left:a.left-g.left}}return f},offsetParent:function(){var a=this[0].offsetParent||document.body;while(a&&(!/^body|html$/i.test(a.tagName)&&U.css(a,"position")=="static")){a=a.offsetParent}return U(a)}});U.each(["Left","Top"],function(b,c){var a="scroll"+c;U.fn[a]=function(e){if(!this[0]){return null}return e!==ac?this.each(function(){this==X||this==document?X.scrollTo(!b?e:U(X).scrollLeft(),b?e:U(X).scrollTop()):this[a]=e}):this[0]==X||this[0]==document?self[b?"pageYOffset":"pageXOffset"]||U.boxModel&&document.documentElement[a]||document.body[a]:this[0][a]}});U.each(["Height","Width"],function(b,e){var g=b?"Left":"Top",c=b?"Right":"Bottom",f=e.toLowerCase();U.fn["inner"+e]=function(){return this[0]?U.css(this[0],f,false,"padding"):null};U.fn["outer"+e]=function(h){return this[0]?U.css(this[0],f,false,h?"margin":"border"):null};var a=e.toLowerCase();U.fn[a]=function(h){return this[0]==X?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===ac?(this.length?U.css(this[0],a):null):this.css(a,typeof h==="string"?h:h+"px")}})})();(function(){var b=navigator.userAgent;isWebKit=/WebKit/.test(b);isOldWebKit=isWebKit&&!window.getSelection().getRangeAt;isIE6=$.browser.msie&&/MSIE [56]/.test(b);isGecko=!isWebKit&&/Gecko/.test(b);isMac=b.indexOf("Mac")!=-1;isChrome=/Chrome/.test(b);$.browser.webkit=isWebKit;$.browser.oldwebkit=isOldWebKit;$.browser.ie6=isIE6;$.browser.gecko=isGecko;$.browser.mac=isMac;$.Dom={getViewPort:function(){var p=document,m=p.body;var o=p.compatMode;var n=self.innerWidth;var l=self.innerHeight;if(o||$.browser.msie){n=(o=="CSS1Compat")?p.documentElement.clientWidth:m.clientWidth;if(!$.browser.opera){l=(o=="CSS1Compat")?p.documentElement.clientHeight:m.clientHeight}}return{x:Math.max(p.documentElement.scrollLeft,m.scrollLeft),y:Math.max(p.documentElement.scrollTop,m.scrollTop),w:n,h:l}},getContextXY:function(q,o,r,t){var n={},p,u,s,l,m;s=$(q);if(s.length==0){return n}u={x:s.offset().left,y:s.offset().top,w:s.width(),h:s.height()};if(o&&(l=$(o)).length>0){p={x:l.offset().left,y:l.offset().top,w:l.width(),h:l.innerHeight()}}else{if(t&&t.x&&t.y){p={x:t.x,y:t.y,w:0,h:0}}else{return n}}m=this.getViewPort();if(!r){r="bottom"}if(r=="bottom"){n.x=p.x;if(u.h+p.y+p.h>m.y+m.h&&p.y-m.y>u.h){n.y=p.y-u.h}else{n.y=p.y+p.h}}else{if(r=="right"){if(p.x+p.w+u.w>m.x+m.w&&p.x-m.x>u.w){n.x=p.x-u.w}else{n.x=p.x+p.w}n.y=p.y}else{if(r=="left"){if(p.x-u.w<m.x&&p.x-m.x<u.w){n.x=p.x+p.w}else{n.x=p.x-u.w}n.y=p.y}else{if(r=="top"){n.x=p.x;if(p.y-m.y<u.h&&m.h+m.y-p.y-p.h>u.h){n.y=p.y+p.h}else{n.y=p.y-u.h}}}}}if(r=="bottom"||r=="top"){if(p.x+u.w>m.x+m.w&&p.x+p.w-m.x>u.w){n.x=p.x+p.w-u.w}}if(r=="left"||r=="right"){if(u.h+p.y>m.y+m.h&&p.y+p.h-m.y>u.h){n.y=p.y+p.h-u.h}}return n},getIframeWindow:function(m){var l=(typeof m=="object")?$(m):$("#"+m);return l.contentWindow},getIframeDocument:function(m){var l=(typeof m=="object")?$(m):$("#"+m);return l.contentDocument||l.contentWindow.document}};$.global={counter_id:0,generateId:function(l,m){if(l&&l.id){return l.id}var n=(m||"jqauto_")+$.global.counter_id++;if(l){l.id=n}return n},htmlEncode:function(l){return l?(""+l).replace(/[<>&\"]/g,function(n,m){switch(n){case"&":return"&amp;";case'"':return"&quot;";case"<":return"&lt;";case">":return"&gt;"}return n}):l}};$.fn.jqDrag=function(n,m,l){return a(this,n,"drag",m,l)};$.fn.jqResize=function(n,m,l){return a(this,n,"resize",m,l)};var f={},k,e,h,c,g={};$.jqDnR={drag:function(p){if(e&&!h){$(document.body).append('<div id="jqDnR_move" style="position:absolute; border:1px dotted #000; background:#ccc; opacity:0.5; filter:alpha(opacity=50)"></div>');h=$("#jqDnR_move");try{h.css({left:f.X,top:f.Y,width:f.W,height:f.H,marginLeft:f.marginLeft,marginTop:f.marginTop,zIndex:(f.zIndex+1)})}catch(s){}}var m=$(document).scrollLeft(),n=$(document).scrollTop();if(f.kind=="drag"){var r=Math.max(5-f.marginLeft+m,f.X+p.pageX-f.pX);var q=Math.max(5-f.marginTop+n,f.Y+p.pageY-f.pY);r=Math.min(r,f.vp.w-f.W-f.marginLeft-5+m);q=Math.min(q,f.vp.h-f.H-f.marginTop-5+n);g={left:r,top:q}}else{var o=Math.max(p.pageX-f.pX+f.W,0);var l=Math.max(p.pageY-f.pY+f.H,0);o=Math.min(o,f.vp.w+m-f.marginLeft-f.X-5);l=Math.min(l,f.vp.h+n-f.marginTop-f.Y-5);g={width:o,height:l}}if(h){h.css(g)}else{k.css(g)}return false},stop:function(l){if(h){h.remove()}if(c){c(g)}else{k.css(g)}g={};f={};k=null;e=false;h=null;c=null;$().unbind("mousemove",$.jqDnR.drag).unbind("mouseup",$.jqDnR.stop)}};function a(p,o,n,m,l){return p.each(function(){o=(o)?$(o,p):p;o.bind("mousedown",{obj:p,kind:n,proxy:m,cb:l},function(q){var t=q.data,s={};c=l;k=t.obj;if(k.css("position")!="relative"){try{s=k.position()}catch(r){}}f={X:s.left||getCss("left",0),Y:s.top||getCss("top",0),W:k.width(),H:k.height(),pX:q.pageX,pY:q.pageY,kind:t.kind,marginLeft:getCss("margin-left",0),marginTop:getCss("margin-top",0),zIndex:getCss("z-index",0),vp:$.Dom.getViewPort()};e=t.proxy;$().mousemove($.jqDnR.drag).mouseup($.jqDnR.stop);return false})})}getCss=function(l,m){return parseInt(k.css(l))||m};$.JqPanel={panels:[],currId:0,groupAreas:[],groupModules:[],zIndex:300000,getJqObj:function(l){return(typeof l=="object")?$(l):$("#"+l)},getPanel:function(q){var l=0,o,m,n;if(q){if(typeof q=="object"&&q.id&&this.panels[q.id]){return this.panels[q.id]}else{if(typeof q=="string"&&this.panels[q]){return this.panels[q]}}return null}for(n in this.panels){if((m=this.panels[n])&&(m.type=="panel"||m.type=="alert"||m.type=="confirm")&&m.zIndex>l&&m.isHide===false){o=m;l=m.zIndex}}return o},alert:function(l,m){return new j({title:"信息提示",type:"alert",mask:true,callback:m,content:$.global.htmlEncode(l),width:400,id:$.global.generateId()}).show()},confirm:function(l,m){return new j({title:"信息提示",type:"confirm",mask:true,callback:m,content:$.global.htmlEncode(l),width:400,id:$.global.generateId()}).show()},panel:function(l){if(!l.id){l.id=$.global.generateId()}return new j(l).show()},dropdown:function(r,o,t){r=this.getJqObj(r);if(!r){return false}var n,v=false,s=false,w=null,q=null;o=o||{};o.type="dropdown";if(!o.resizeable){o.resizeable=false}if(!o.moveable){o.moveable=false}if(!o.closeable){o.closeable=false}if(!o.minimizable){o.minimizable=false}if(!o.context){o.context=[r,o.align||"bottom"]}if(!o.id){o.id=$.global.generateId()}function u(){if(w){clearTimeout(w);w=null}if(q){clearTimeout(q);q=null}}var m=function(p){if(typeof t=="function"&&!t()){return false}if(!n){n=new j(o);n.jqp_panel.hover(function(){n.show();v=true;u()},function(){v=false;q=setTimeout(function(){if(!s){n.close()}if(n.overClassName){r.removeClass(n.overClassName)}},100)})}n.show().setPlace();if(n.overClassName){r.addClass(n.overClassName)}s=true;u()};var l=function(){if(typeof t=="function"&&!t()){return false}if(!n){return false}s=false;w=setTimeout(function(){if(!v){n.close()}if(n.overClassName){r.removeClass(n.overClassName)}},100)};if(o.mouseType=="click"){r.click(function(p){m(p);return false});r.mouseout(l)}else{r.hover(m,l)}},context:function(o,m,q){o=this.getJqObj(o);if(!o){return false}var l,t=false,r=false,u=null,n=null;m=$.extend(m||{},{type:"context",resizeable:false,moveable:false,closeable:false,minimizable:false});m.context=[];if(!m.id){m.id=$.global.generateId()}var s=function(){if(l){l.close()}$(document).unbind("mousedown",s)};o.bind("contextmenu",function(p){if(typeof q=="function"&&!q()){return false}if(!l){l=new j(m)}l.left=p.pageX+10;l.top=p.pageY;l.setPlace().show();$(document).bind("mousedown",s);return false});o.bind("mousedown",function(p){return false})},module:function(l){var m,n;l=l||{};if(!l.id||$("#"+l.id).size()==0){alert("请用文档对象id作为面板id")}l.inline=true;l.type="module";m=new j(l);if(m.visibility=="visible"){m.show()}else{if(m.visibility=="minsize"){m.showMinimiz()}}return m},moduleGroup:function(m,l){m=this.getJqObj(m);if(!m){return false}$(m).each(function(n){$.JqPanel.groupAreas[n]=$(this)});$.each(l,function(n,o){if(o.id){$.JqPanel.groupModules[o.id]=o}else{if(typeof o=="object"||typeof o=="array"){$.each(o,function(q,p){if(p.id){$.JqPanel.groupModules[p.id]=p}})}}})},closePanel:function(m){var l=this.getPanel(m);if(l){l.close()}}};function j(m){m=m||{};this.id=m.id||$.global.generateId();if($.JqPanel.panels[this.id]){return $.JqPanel.panels[this.id]}else{$.JqPanel.panels[this.id]=this}this.type=m.type||"panel";this.content=m.content||"";this.title=m.title||"";this.url=m.url&&m.url!="#"?m.url:"";this.inline=m.inline||false;this.width=this.inline?"100%":(m.width||0);this.height=parseInt(m.height||0);this.left=parseInt(m.left||0);this.top=parseInt(m.top||0);this.minWidth=100;this.minHeight=(this.type=="dropdown"||this.type=="context")?20:70;this.mask=(m.mask||this.type=="alert"||this.type=="confirm")?true:false;this.moveable=m.moveable!=false?true:false;this.resizeable=m.resizeable!=false?true:false;this.closeable=m.closeable!=false?true:false;this.minimizable=m.minimizable!=false?true:false;this.shadow=m.shadow!=false?true:false;this.iframeScrolling=m.iframeScrolling!="no"?"yes":"no";this.refresh=m.refresh||0;this.el=m.el||null;this.iframe=m.iframe?true:false;this.callback=m.callback||null;this.visibility=m.visibility||"visible";this.opennew=m.opennew?true:false;this.context=m.context||[];this.custom_vars=m.custom_vars||[];this.className=m.className||"";this.overClassName=m.overClassName||"";this.closeText=m.closeText||"";this.tmpWidth=null;this.tmpHeight=null;this.isImage=false;this.jqp_panel=null;this.jqp_underlay=null;this.jqp_wrapper=null;this.jqp_iframe=null;this.jqp_canvas=null;this.jqpTmpCanvas=null;this.jqp_bd=null;this.jqp_ft=null;this.jqp_mask=null;this.jqp_minimiz=null;this.jqp_resize=null;this.jqp_refresh=null;this.jqp_load=null;this.zIndex=0;this.hd_height=0;this.ft_height=0;this.isHide=null;this.isMin=false;this.loaded=false;this.error="";var u=this,x,n="",s=0,B=0,A,z,p,q,r,C=false,v,o;var l,G;var F=showft=showbutton=showcancel=showicon=showrefresh=false;v=$("#"+u.id);if(v.size()>0){if((l=$(".hd",v)).size()>0){u.title=l.get(0)}if((G=$(".bd",v)).size()>0){u.content=G.get(0)}}if(u.content){if(typeof u.content=="object"){x=$(u.content).attr("id");if(x){u.id=x}$(u.content).addClass("bd")}}if(u.content){u.setContent(u.content)}else{if(u.url){u.setUrl(u.url)}}n+=" jqp_panel_"+u.type;if(u.inline){n+=" jqp_inline"}if(u.type=="alert"||u.type=="confirm"){u.resizeable=false;u.minimizable=false}if(u.moveable){n+=" jqp_hd_move"}if(u.className){n+=" "+u.className}if(u.type=="alert"||u.type=="confirm"){showbutton=true;showicon=true;this.height="";if(u.type=="confirm"){showcancel=true}}if(u.type!="alert"&&u.type!="confirm"&&u.url){if(u.refresh===true){showrefresh=true}}if(u.title||u.closeable||u.moveable||u.minimizable){F=true}if(showbutton||u.resizeable){showft=true}var y="";if(u.mask){y+='<div id="'+u.id+'_mask" class="jqp_mask"></div>'}y+='	<div id="'+u.id+'_panel" class="jqp_panel '+n+'">';if(u.shadow&&!u.inline){y+='		<div class="jqp_underlay"></div>'}y+='			<div id="'+u.id+'" class="jqp_wrapper">';if(F){y+='			<div class="hd">窗口</div>'}y+='				<div class="jqp_canvas"></div>';if(showft){y+='			<div class="ft"> ';if(showbutton){y+='			<div class="jqp_button_group">';y+='				<button type="button" class="jqp_submit">确定</button>';if(showcancel){y+='			<button type="button" class="jqp_cancel">取消</button>'}y+="			</div>"}if(u.resizeable){y+='			<div class="jqp_resize_br"></div>'}y+="				</div>"}y+='					<div class="jqp_ctrl_group_right">';if(u.closeable){y+='				<div class="jqp_close">'+(this.closeText?this.closeText:"&nbsp;")+"</div>"}if(u.minimizable){y+='				<div class="jqp_minimiz_open">&nbsp;</div>'}if(showrefresh){y+='				<div class="jqp_refresh">&nbsp;</div>'}y+="					</div>";if(showicon){y+='			<div class="jqp_icon"></div>'}y+="			</div>";y+="	</div>";if(u.inline){v.after(y);v.remove()}else{$("body").append(y);if(v&&v.length>0){v.remove()}}u.jqp_panel=$("#"+u.id+"_panel");u.jqp_wrapper=$(".jqp_wrapper",u.jqp_panel);if(u.mask){u.jqp_mask=$("#"+u.id+"_mask")}if(u.shadow&&!u.inline){u.jqp_underlay=$(".jqp_underlay",u.jqp_panel)}u.jqp_canvas=$(".jqp_canvas",u.jqp_panel);if(u.minimizable){u.jqp_minimiz=$(".jqp_minimiz_open",u.jqp_panel)}if(u.resizeable){u.jqp_resize=$(".jqp_resize_br",u.jqp_panel)}if(showrefresh){u.jqp_refresh=$(".jqp_refresh",u.jqp_panel)}$(".jqp_ctrl_group_right",u.jqp_wrapper).css("width",$(".jqp_close",u.jqp_wrapper).outerWidth(true)+$(".jqp_minimiz_open",u.jqp_wrapper).outerWidth(true)+$(".jqp_refresh",u.jqp_wrapper).outerWidth(true));if(F){u.jqp_hd=$(".hd",u.jqp_panel);u.hd_height=u.jqp_hd.height();u.setTitle(u.title)}if(showft){u.jqp_ft=$(".ft",u.jqp_panel);u.ft_height=u.jqp_ft.outerHeight(true)}if(u.jqp_hd&&u.moveable){u.jqp_panel.jqDrag(u.jqp_hd,true,function(t){u.moveBy(t.left,t.top);u.focus()})}if(u.jqp_resize){u.jqp_panel.jqResize(u.jqp_resize,true,function(t){u.resize(t.width,t.height);u.focus()})}u.jqp_panel.mousedown(function(t){u.focus()});u.jqp_panel.click(function(H){var w=H.target.className;switch(w){case"jqp_close":u.close();break;case"jqp_refresh":u.doRefresh();break;case"jqp_submit":case"jqp_cancel":var t=u.callback;if(u.callback){u.callback.call(u,w=="jqp_submit"?true:false)}u.close();break;case"jqp_minimiz_open":case"jqp_minimiz_close":u.minimiz();break}return true})}j.prototype.showMask=function(){if(this.jqp_mask){if(typeof document.body.style.maxHeight==="undefined"){}this.jqp_mask.css({left:$(document).scrollLeft(),top:$(document).scrollTop(),width:3000,height:$(document).height()+500});$(document.body).addClass("masked");$("body").css({overflow:"hidden"});if(!isGecko){$("html").css({overflow:"hidden"})}this.jqp_mask.show()}return this};j.prototype.hideMask=function(){if(this.jqp_mask){this.jqp_mask.hide();if(typeof document.body.style.maxHeight==="undefined"){}$(document.body).removeClass("masked");if(!isGecko){$("html").css({overflow:""})}$("body").css({overflow:""})}return this};j.prototype.setScroll=function(l){if(isChrome||!this.jqp_iframe){return false}if(l){this.jqp_iframe.attr("scrolling","yes");this.jqp_iframe.contents().find("body").attr("scroll","yes")}else{this.jqp_iframe.attr("scrolling","no");this.jqp_iframe.contents().find("body").attr("scroll","no")}};j.prototype.setTitle=function(m){var l=this;m=m||l.title;if(typeof m=="object"){l.jqp_hd.replaceWith(m);l.jqp_hd=$(m)}else{if(typeof m=="string"&&m!=""){l.jqp_hd.html(m)}}return this};j.prototype.setUrl=function(l){if(l){var n,m;this.isImage=false;this.url=l;this.content=null;this.loaded=false;if((m=this.url.indexOf("?"))!==-1){n=this.url.substr(0,m)}else{n=this.url}if(/\.(jpg|jpeg|png|gif|bmp)$/i.test(n)){this.content='<img src="'+this.url+'" onload="$.JqPanel.getPanel(\''+this.id+"').hideLoading().replaceCanvas()\">";this.url="";this.isImage=true}if(this.isHide===false){this.loadContent()}}return this};j.prototype.setContent=function(l){if(l){this.isImage=false;this.content=l;this.loaded=false;this.url="";if(this.isHide===false){this.loadContent()}}return this};j.prototype.loadContent=function(){var m=this,l;if(m.loaded){return this}m.loaded=true;if((m.url==""||m.url=="#")&&m.content==""){m.error="未指定要显示内容或Url。";alert(m.error);return this}m.error="";m.showLoading();if(m.jqp_iframe){m.jqp_iframe.unbind();m.jqp_iframe.attr("src","javascript:false");m.jqp_iframe.remove();delete m.jqp_iframe}else{if(m.jqp_bd){m.jqp_bd.remove();delete m.jqp_bd}}if(m.url&&m.iframe){if(!m.width){m.width=320}if(!m.height){m.height=240}m.jqp_canvas.html('<iframe id="'+m.id+'_ifr" name="'+m.id+'_ifr" frameBorder="0" style="border:0px;width:100%;height:100%;overflow-x:hidden;"></iframe>');m.jqp_iframe=$("#"+m.id+"_ifr");m.jqp_iframe.attr("src",m.getUrl());m.jqp_iframe.load(function(){m.hideLoading();if(m.type!="alert"&&m.type!="confirm"&&m.callback){m.callback.call(m,"load")}try{m.jqp_iframe.contents().find("head").append('<style type="text/css">html{overflow-x:hidden;overflow-y:auto;}*html body{min-width:auto;max-width:auto;width:auto;position:absolute;}</style>');var o=m.jqp_iframe.get(0).contentDocument||m.jqp_iframe.get(0).contentWindow.document;$(o).mousedown(function(){m.focus()});var n=m.jqp_iframe.get(0).contentWindow;if(typeof n.onload=="function"){m.jqp_iframe.data("onload",n.onload)}}catch(p){}})}else{m.jqpTmpCanvas=$('<div class="jqp_canvas"></div>');$("body").append(m.jqpTmpCanvas);m.jqp_bd=$('<div class="bd"></div>');m.jqpTmpCanvas.append(m.jqp_bd);if(m.content){if(typeof m.content=="object"){m.jqp_bd.replaceWith(m.content);m.jqp_bd=$(m.content)}else{if(typeof m.content=="string"){m.jqp_bd.html(m.content)}}}else{if(!m.width){m.width=320}m.jqp_bd.load(m.getUrl(),null,function(){m.hideLoading().replaceCanvas()})}if(!m.url&&!m.isImage){m.replaceCanvas()}}return this};j.prototype.replaceCanvas=function(){if(this.jqpTmpCanvas){if(!this.inline){if(this.width){this.jqpTmpCanvas.css("width",this.width);this.tmpHeight=this.jqpTmpCanvas.height();this.jqpTmpCanvas.css("width","100%")}else{this.jqpTmpCanvas.addClass("jqp_panel_tmp_canvas");this.tmpWidth=this.jqpTmpCanvas.width();this.tmpHeight=this.jqpTmpCanvas.height();this.jqpTmpCanvas.removeClass("jqp_panel_tmp_canvas")}}this.jqp_canvas.replaceWith(this.jqpTmpCanvas);this.jqp_canvas=this.jqpTmpCanvas;this.resize().setPlace()}return this};j.prototype.show=function(){if(this.error){return this}if(this.isHide===false){return this.focus()}if(this.opennew&&this.url){this.loaded=false}this.jqp_panel.show();this.isHide=false;this.loadContent().focus().resize().setPlace().showMask();if(this.type!="alert"&&this.type!="confirm"&&this.callback){this.callback.call(this,"show")}if(this.jqp_iframe&&typeof this.jqp_iframe.data("onload")=="function"){this.jqp_iframe.data("onload")()}return this};j.prototype.showMinimiz=function(){if(this.error){return this}if(this.isHide===false){return this.focus()}this.jqp_panel.show();this.isHide=false;this.setPlace().focus();this.jqp_minimiz.removeClass("jqp_minimiz_open");this.jqp_minimiz.addClass("jqp_minimiz_close");this.jqp_canvas.hide();if(this.jqp_ft){this.jqp_ft.hide()}this.isMin=true;if(this.type!="alert"&&this.type!="confirm"&&this.callback){this.callback.call(this,"showMinimiz")}return this};j.prototype.minimiz=function(){if(this.error){return this}if(!this.jqp_minimiz){return this}if(!this.isMin){this.jqp_minimiz.removeClass("jqp_minimiz_open");this.jqp_minimiz.addClass("jqp_minimiz_close");this.jqp_canvas.hide();if(this.jqp_ft){this.jqp_ft.hide()}this.isMin=true}else{this.loadContent();this.jqp_minimiz.removeClass("jqp_minimiz_close");this.jqp_minimiz.addClass("jqp_minimiz_open");this.jqp_canvas.show();if(this.jqp_ft){this.jqp_ft.show()}this.isMin=false}this.setUnderlaySize();return this};j.prototype.focus=function(){if(this.error){return this}$(".jqp_submit",this.jqp_panel).focus();$.JqPanel.currId=this.id;if(!this.inline){if(this.jqp_mask){this.jqp_mask.css("z-index",$.JqPanel.zIndex++)}this.jqp_panel.css("z-index",$.JqPanel.zIndex++);this.jqp_wrapper.css("z-index",$.JqPanel.zIndex++);this.zIndex=$.JqPanel.zIndex}return this};j.prototype.close=function(r){if(this.error){return this}var n=this,q=window.document,l=0,o;function m(){n.hideMask();n.isHide=true;if(n.type!="alert"&&n.type!="confirm"&&n.callback){n.callback.call(n,"close")}}r=(!isNaN(r))?parseInt(r):"fast";if(r=="fast"){n.jqp_panel.fadeOut("fast",m)}else{if(r==0){n.jqp_panel.hide();m()}else{setTimeout(function(){n.jqp_panel.fadeOut("fast",m)},r*1000)}}return this};j.prototype.showLoading=function(){if(this.error){return this}if(this.url||this.isImage){if(!this.jqp_load){this.jqp_wrapper.append('<div class="jqp_load">&nbsp;</div>');this.jqp_load=$(".jqp_load",this.jqp_panel)}this.jqp_load.show()}return this};j.prototype.hideLoading=function(){if(this.error){return this}if(this.jqp_load){this.jqp_load.hide()}return this};j.prototype.doRefresh=function(){if(this.error){return this}if(this.isMin==true||!this.url){return this}if(this.jqp_iframe){this.jqp_iframe.attr("src",this.getUrl())}else{this.jqp_bd.load(this.getUrl())}return this};j.prototype.moveBy=function(r,z){if(this.error){return this}var F=this,C,y={},s,p,m,q,v,x,B={},o={},u={},l={};if($.JqPanel.groupAreas.length>0&&$.JqPanel.groupModules[F.id]){for(var p in $.JqPanel.groupAreas){m=$.JqPanel.groupAreas[p];B={x:m.offset().left,y:m.offset().top,w:m.width(),h:m.height()};if(r>B.x&&z>B.y){if(!o.x||(o.x<B.x||o.y<B.y)){q=m;o=B}}}for(var s in $.JqPanel.groupModules){v=$.JqPanel.groupModules[s].jqp_panel;u={x:v.offset().left,y:v.offset().top,w:v.width(),h:v.height()};if(F.id!=s&&z>u.y&&(o.x&&u.x>o.x&&u.x<o.x+o.w&&u.y>o.y&&u.y<o.y+o.h)){if(!l.x||(l.x<u.x||l.y<u.y)){x=v,l=u}}}if(x){x.after(F.jqp_panel)}else{if(q){q.prepend(F.jqp_panel)}}}else{F.jqp_panel.css({left:r,top:z})}return this};j.prototype.setUnderlaySize=function(){if(this.error){return this}if(this.jqp_underlay){this.jqp_underlay.css({width:this.jqp_wrapper.outerWidth(true)+6,height:this.jqp_wrapper.outerHeight(true)})}};j.prototype.resize=function(n,p){if(this.error){return this}if(this.inline){n="100%"}if(n!=undefined){this.width=n}if(p!=undefined){this.height=p}if(n===""||n===0){this.tmpWidth=0}if(p===""||p===0){this.tmpHeight=0}var l,o,m=$.Dom.getViewPort();l=this.width>0?this.width:this.tmpWidth;if(!this.inline){if(l>m.w-30){l=m.w-30}if(l<this.minWidth){l=this.minWidth}}this.jqp_panel.css("width",l);o=this.height>0?this.height-this.hd_height-this.ft_height:this.tmpHeight;if(o>m.h-60){this.jqp_canvas.css("height",m.h-60)}else{if(o<this.minHeight){this.jqp_canvas.css("height",this.minHeight)}else{if(this.height>0){this.jqp_canvas.css("height",this.height-this.hd_height-this.ft_height)}}}this.setUnderlaySize();return this};j.prototype.setPlace=function(){if(this.error){return this}if(this.type=="dropdown"||this.type=="context"||(this.context&&this.context[0])){var l={};if(this.context&&this.context[0]){l=$.Dom.getContextXY(this.jqp_panel,this.context[0],this.context[1])}else{if(this.left&&this.top){l=$.Dom.getContextXY(this.jqp_panel,null,null,{x:this.left,y:this.top})}}if(l.x&&l.y){this.jqp_panel.css({top:l.y,left:l.x})}}else{if(this.inline){this.jqp_panel.css({top:0,left:0,marginLeft:0,marginTop:0})}else{this.jqp_panel.css({top:this.top||"50%",left:this.left||"50%",marginLeft:-Math.round(this.jqp_panel.width()/2)+$(document).scrollLeft(),marginTop:-Math.round(this.jqp_panel.height()/2)+$(document).scrollTop()})}}return this};j.prototype.useIframe=function(l){this.iframe=l?true:false;return this};j.prototype.getUrl=function(){if(this.url){return this.url+(this.url.indexOf("?")==-1?"?":"&")+"panelId="+this.id+"&random="+(new Date().getTime()+Math.random())}return""};function i(n,p){var m={},o,l;n=$(n);if(o=n.attr("title")){m.title=o}if(l=n.attr("href")){m.url=l}if(p){m=$.extend(m,p)}return m}$.fn.extend({panel:function(l){return this.each(function(){l=i(this,l);$(this).click(function(){$.JqPanel.panel(l);this.blur();return false})})},dropdown:function(m,l){return this.each(function(){m=i(this,m);$.JqPanel.dropdown(this,m,l)})},context:function(m,l){return this.each(function(){m=i(this,m);$.JqPanel.context(this,m,l)})},moduleGroup:function(){$.JqPanel.moduleGroup(this,arguments)}})})();String.prototype.format=function(){var c=this;for(var a=0;a<arguments.length;a++){var b=new RegExp("\\{"+(a)+"\\}","gm");c=c.replace(b,arguments[a])}return c};$.fn.autocomplete=function(b){b=$.extend({panelId:"",dataProvider:false,closeButtons:false,showHighLightValue:true,autoPosition:true,getItemValue:function(k){return k.text()},formatValue:function(k){return k},offsetAdjust:{left:0,top:6},defaultText:"没有结果",autocomplete:false,hideOnDocumentClick:true},b);var f=function(k,l){if(!k){throw new Error(l)}};var h=this;var j=$("#"+b.panelId);f(j.size()==1,"The panelId must be the id of the pop div element.");h.attr("autocompletePanelId",b.panelId);var i=function(){var l=b.panelId+"_iframe";var k=$("#"+l);if(k.size()==0){k=$('<iframe id="'+l+'" class="jquery_autocomplete_iframe"></iframe>').insertBefore(j)}k.css({left:j.css("left"),top:j.css("top"),width:j.width(),height:j.height()}).show();return k};var e=function(){var k=$("li.selected",j);if(k.size()>0){var l=b.getItemValue(k);h.val(l)}h.autocompleteHide();h.trigger("autocompleteEventSelectValue");return false};var a=function(k){if(k.size()>0){var l=b.getItemValue(k);h.val(l)}return false};var c=function(l){if(l===false){h.autocompleteHide();return false}var n=$("ul",j);if(n.size()==0){n=$("<ul/>").appendTo(j)}var k=$("h3",j);if(k.size()==0){k=$("<h3/>").appendTo(j)}n.html("").hide();k.html("").hide();var p="",r="";if(l&&l.length>0){for(var o=0;o<l.length;o++){p+="<li>{0}</li>".format(b.formatValue(l[o]))}}else{if(b.defaultText){r="<span>{0}</span>".format(b.defaultText)}else{h.autocompleteHide();return false}}if(p){n.html(p).show()}if(r){k.html(r).show()}if(b.autoPosition){var q=h.offset();var m=$.isFunction(b.offsetAdjust)?b.offsetAdjust():b.offsetAdjust;j.css({left:q.left+m.left,top:q.top+h.height()+m.top})}if($.browser.msie&&$.browser.version<7){i()}j.show();h.trigger("autocompleteEventShow");return false};h.attr("autocomplete",b.autocomplete?"on":"off");if(b.hideOnDocumentClick){$(document).click(function(){h.autocompleteHide()})}f(b.dataProvider&&$.isFunction(b.dataProvider),"The dataProvider option must be a function.");h.bind("autocompleteEventUpdate",function(){if($.isFunction($.fn.fixInputPromptText)){h.fixInputPromptText()}var k=h.val();b.dataProvider(k,c)});h.bind("autocompleteEventShow",function(){h.attr("autocompleteshow","1")});h.bind("autocompleteEventHide",function(){h.attr("autocompleteshow","0")});var g=function(m){var l=j.get(0);while(m!=null&&m!=l&&m.tagName.toUpperCase()!="LI"){try{m=m.parentNode}catch(k){m=null}}if(m&&m.tagName.toUpperCase()=="LI"){return m}return null};j.mouseover(function(l){var n=g(l.target);if(n){var k=$(n);var m=$("li.selected",j);if(m!=k){m.removeClass("selected");k.addClass("selected");if(b.showHighLightValue){a(k)}}}}).click(function(l){l.stopPropagation();var n=g(l.target);if(n){var k=$(n);var m=$("li.selected",j);if(m!=k){m.removeClass("selected");k.addClass("selected")}e()}});if(b.closeButtons){b.closeButtons.click(function(){h.autocompleteHide()})}h.keypress(function(k){var l=k.keyCode;if(l==13&&h.autocompleteIsShow()){k.stopPropagation();e()}}).keyup(function(m){var o=h.val();var p=m.keyCode;switch(p){case 27:h.autocompleteHide();break;case 38:m.stopPropagation();if(h.autocompleteIsShow()){var n=$("li.selected",j);var l=n.prev();if(l.size()==0){l=$("li:last",j)}n.removeClass("selected");l.addClass("selected");if(b.showHighLightValue){a(l)}}else{h.trigger("autocompleteEventUpdate",o)}break;case 40:m.stopPropagation();if(h.autocompleteIsShow()){var n=$("li.selected",j);var k=n.next();if(k.size()==0){k=$("li:first",j)}n.removeClass("selected");k.addClass("selected");if(b.showHighLightValue){a(k)}}else{h.trigger("autocompleteEventUpdate",o)}break;case 13:m.stopPropagation();break;default:m.stopPropagation();h.trigger("autocompleteEventUpdate",o)}});h.focus(function(){h.trigger("autocompleteEventUpdate",h.val())}).click(function(k){k.stopPropagation()});return this};$.fn.autocompleteHide=function(){var a=this.attr("autocompletePanelId");if(a){$("#"+a).hide();$("#"+a+"_iframe").hide()}this.trigger("autocompleteEventHide");return this};$.fn.autocompleteIsShow=function(){return this.attr("autocompleteshow")=="1"};$.autocompleteWriteDefaultStyle=function(){var a=[".jquery_autocomplete {position:absolute;z-index:20000;background-color:#eee;border:1px solid silver;width:300px;}",".jquery_autocomplete h3 {font-weight:normal;font-size:13px;line-height:150%;margin:0;padding:2px;}",".jquery_autocomplete ul {list-style:none;padding:0;margin:2px;}",".jquery_autocomplete ul li {font-size:13px;line-height:150%;}",".jquery_autocomplete ul li.selected {background-color:#ffa;}",".jquery_autocomplete p {font-size:12px;padding:5px;margin:0;text-align:right;clear:both;}",".jquery_autocomplete_iframe {position:absolute;z-index:100;top:0;left:0;width:100;height:100;background-color:white;display:none;}"];document.writeln('<style type="text/css">');document.writeln(a.join("\n"));document.writeln("</style>")};$.autocompleteWriteDefaultStyle();$.fn.withXiaoquPrompt=function(b){var b=$.extend({panelId:"panel",city:"bj",ue3:false},b);var a=b.ue3?16:6;return this.autocomplete({panelId:b.panelId,offsetAdjust:function(){var c=$("#wrapper");if(c.size()>0){return{left:-c.offset().left+5,top:a}}return{left:0,top:a}},dataProvider:function(e,f){e=$.trim(e);if(e.length==0){f(false)}else{var c="/_/xiaoqu/fastcode/?city="+b.city+"&key="+encodeURIComponent(e);$.getJSON(c,function(g){g.sort(function(i,h){return i.name>h.name});f(g)})}},formatValue:function(c){if(b.ue3){return'<span class="n">{0}套房源</span><font class="name">{1}</font><span class="sn v">-{2}</span>'.format(c.n,c.s_n||"",c.name)}return'<span>{0}条记录</span><font class="name">{1}</font>'.format(c.n,c.name)},getItemValue:function(c){if(b.ue3){return c.find(".v").text().replace("-","")}return $("font.name",c).text()},closeButtons:$("#"+b.panelId+" a.close"),showHighLightValue:false,defaultText:""})};$.fn.withBusPrompt=function(c){var c=$.extend({panelId:"panel",city:"bj"},c);var b={left:0,top:6};var a=$("#wrapper");if(a.size()>0){b={left:-a.offset().left+5,top:6}}this.autocomplete({panelId:c.panelId,offsetAdjust:b,dataProvider:function(e,f){e=$.trim(e);$("#busid").val("isnull");$("#busname").val("");if(e.length==0){f(false)}else{$.getJSON("/bus/api/ajax_suggestion.php?city="+c.city+"&key="+encodeURIComponent(e),function(g){if(g){window._bus_prompt_cache=g.concat(window._bus_prompt_cache||[]);f(g)}})}},formatValue:function(e){return'<font class="name">{0}</font>'.format(e.name,e.ID)},getItemValue:function(e){return $("font.name",e).text()},closeButtons:$("#"+c.panelId+" a.close"),showHighLightValue:true,defaultText:""});this.bind("autocompleteEventSelectValue",function(){var e=$(this).val();var g=window._bus_prompt_cache||[];for(var f=0,j=g.length;f<j;++f){if(g[f].name==e){$("#busid").val(g[f].ID);var h=new RegExp("[^(]*");$("#busname").val(h.exec(g[f].name))}}});this.bind("autocompleteEventShow",function(){var e=$(this).val();var f=window._bus_prompt_cache||[];$("#busid").val(f[0].ID);var g=new RegExp("[^(]*");$("#busname").val(g.exec(f[0].name))})};$.fn.withErshouchePrompt=function(c,a,b){if(b===undefined){b="/ershoucheSuggestion.php"}this.autocomplete({panelId:c,dataProvider:function(e,f){e=$.trim(e);if(e.length==0){f(false)}else{$.getJSON(b,{k:e,limit:a},function(j){if(j&&j.ResultSet){var g=[];for(var h=0;h<j.ResultSet.length;h++){g.push(j.ResultSet[h].suggestionKeyword)}f(g)}else{f(false)}})}},showHighLightValue:false,autoPosition:false})};$.fn.withXiaoqu2Prompt=function(a){if(a.url===undefined){a.url="/ajax/xiaoquNameAutocomplete.php"}this.autocomplete({panelId:a.panelId,dataProvider:function(b,c){if(b.length==0){c(false)}else{$.getJSON(a.url,{key:b,city:a.city},function(e){if(e){e.sort(function(g,f){return g.name>f.name});c(e)}else{c(false)}})}},formatValue:function(b){return'<span><font class="name" address="{0}" latlng="{2}">{1}</font></span>'.format(b.address,b.name,b.latlng)},getItemValue:function(b){if(a.callback){a.callback(b)}if(a.ue3){return b.find(".v").text().replace("-","")}return $("font.name",b).text()},closeButtons:$("#"+a.panelId+" a.close"),showHighLightValue:false,autoPosition:false,defaultText:function(){if(a.emptyCallBack){return a.emptyCallBack()}return"没有找到小区"},highlight:true})};$.fn.websiteSearch=function(){this.autocomplete({panelId:"container_website",dataProvider:function(a,b){a=$.trim(a);if(a.length==0){b(false)}else{$.getJSON("/websiteSearchSuggestion.php",{cate:$("#search_type").val(),k:a},function(f){if(f&&f.ResultSet){var c=[];for(var e=0;e<f.ResultSet.length;e++){c.push(f.ResultSet[e].suggestionKeyword)}b(c)}else{b(false)}})}},showHighLightValue:false,autoPosition:false})};$.fn.busSearch=function(b,a,c){this.autocomplete({panelId:b,dataProvider:function(e,f){e=$.trim(e);if(e.length==0){f(false)}else{$.getJSON(a,{input:e},function(j){if(j){var g=[];for(var h=0;h<j.length;h++){g.push(j[h])}f(g)}else{f(false)}})}},showHighLightValue:false,autoPosition:false})};function click_input(a,e){var b=document.getElementById("search_keyword").value;if(b=="想找什么？输入类别或关键字试试"){b=""}if(document.images){(new Image()).src="http://bj.ganji.com/adcount.php?search-from-URL="+location.href+"&search-keyword="+b+"&search-select="}if(!b){window.location.href="/";return false}else{if(e){var c=e+"/"+document.getElementById("search_type").value+"/s/_"+document.getElementById("search_keyword").value}else{var c="http://"+window.location.host+"/"+document.getElementById("search_type").value+"/s/_"+document.getElementById("search_keyword").value}window.location.href=encodeURI(c);return false}}function inputStyle(){var a=document.getElementById("search_keyword").value;if(a!="想找什么？输入类别或关键字试试"){document.getElementById("search_keyword").className="txt_search"}else{document.getElementById("search_keyword").className="f_c_gray2"}}function open_new_window(a,c,b){window.open(a,c,b)}function clickGoogleSearch(a){var b="searchword";if(document.images){(new Image()).src="http://bj.ganji.com/adcount.php?search-googlefrom-URL="+location.href+"&search-googlekeyword="+b}}var searchInput=document.getElementById("search_keyword");function inputFocus(){if(searchInput.value=="想找什么？输入类别或关键字试试"){searchInput.value=""}}function inputBlur(){if(searchInput.value==""){searchInput.className="f_c_gray2 txt_search_gray txt_search";searchInput.value="想找什么？输入类别或关键字试试"}}if(window.addEventListener){searchInput.addEventListener("focus",inputFocus,false);searchInput.addEventListener("blur",inputBlur,false)}else{searchInput.attachEvent("onfocus",inputFocus);searchInput.attachEvent("onblur",inputBlur)}if(window.jQuery){$("#search_keyword").websiteSearch()}window.overlayHelper=function(){var k;var h;var g='<div id="superman_bg" style="display:none"></div>';var e=$.browser.msie&&$.browser.version<7;var j=false;var f;function m(){if(!h){var n=$("#superman_bg");h=n.size()?n:$(g).appendTo($("body"))}return h}function b(){var p=f.opacity;h.css({position:"absolute",filter:"Alpha(Opacity="+p*100+")",opacity:p,backgroundColor:"black",left:0,top:0,zIndex:1000,width:"100%",height:$(document).height()+200});var o=$(document).width();var n=$("body").width();if(f.left===null){var r=Math.floor((o-n)/2)}else{var r=f.left}var q=e&&window.screen.width+r||window.innerWidth&&Math.max(window.innerWidth,o)||o;h.width(q).css("left",-r);return h}function a(){if(!k){k=$("select:visible")}k.css("visibility","hidden")}function i(){if(k){k.css("visibility","visible")}}function c(){$("html").addClass("removeX")}function l(){$("html").removeClass("removeX")}$(window).resize(function(){if(j){m();b()}});return{show:function(n){n=$.extend({opacity:0.7,hiddenSelect:true,left:null},n);f=n;var p=m();b();if(f.hiddenSelect){a()}c();p.show();j=true},hide:function(){var n=m();n.hide();l();i();j=false}}}();$.fn.asPopPanel=function(h){h=$.extend({show:true,width:600,top:100,left:0,fixChildrenPos:false,focus:false},h);var e=$(this).css({position:"absolute",zIndex:20000}).addClass("window_box");if(h.width>0){e.width(h.width)}var i=document.documentElement;var c=self.innerWidth||(i&&i.clientWidth)||document.body.clientWidth;var b=$("body").width();if(b>0&&b<c){c=b}var g=$(this).width();e.css({top:$(document).scrollTop()+h.top,left:(c-g)/2+h.left});if(h.fixChildrenPos){var a=e.find("div.window_alpha");if(a.size()>0){a.css({width:e.width()+10,height:e.height()+10})}var f=e.find("div.window_cont");if(f.size()>0){f.css({width:e.width()-10,height:e.height()-10})}}if(h.focus){window.setTimeout(function(){$(h.focus,e).focus()},0)}if(h.show){e.show()}return e};$.loadIframePopPanel=function(b){b=$.extend({title:"提示消息",contentUrl:"",show:true,showCloseButton:true,withOverlay:true,width:600,className:"",hideTitleBar:false,overlayOpacity:0.6,ue3:false,iframe_scrolling:"no",height:0,loading_image:"/images/common/loading.gif"},b);var e=$.browser.msie&&$.browser.version<7;var g=b.loading_image?'<div id="iframe_panel_loading" style="text-align:center;padding:25px 0"><img src="'+b.loading_image+'" /></div>':"";var h="<dl><dt"+(b.hideTitleBar?' style="display:none"':"")+'><b id="iframe_panel_title">'+b.title+'</b><a id="iframe_panel_close" href="#" onclick="return false;" class="closeWin" style="display:none">关闭</a></dt><dd>'+g+'<iframe id="iframe_panel" height="1" frameborder="0" scrolling="'+b.iframe_scrolling+'" allowtransparency="true" hspace="0" vspace="0" marginheight="0" marginwidth="0"></iframe></dd></dl>';$("#iframe_panel_wrapper").remove();var a=document.createElement("div");a.id="iframe_panel_wrapper";if(b.className){a.className=b.className}var j=$(a);var i='<div class="window_cont">'+h+"</div>";if(b.ue3){i=' <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>'+i+'<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>'}i+='<div id="iframe_panel_alpha_div" class="window_alpha">&nbsp;</div>';a.innerHTML=i;$("body").append(j);var l=$("#iframe_panel");if($.browser.mozilla){var c=document.getElementById("iframe_panel");if(c){c.contentWindow.location=b.contentUrl;c.width=b.width}}else{l.attr({width:b.width,src:b.contentUrl})}l.bind("doPanelResize",function(){$("#iframe_panel_loading").hide();var m=this;if(b.height>0){m.height=b.height}else{if(m.contentDocument&&m.contentDocument.body.offsetHeight){m.height=m.contentDocument.body.offsetHeight+20}else{if(m.Document&&m.Document.body.scrollHeight){m.height=m.Document.body.scrollHeight+20}}}$.browser.mozilla&&m.contentWindow.scrollTo(0,0);$.iframePopPanelFixAlphaDivSize()});l.load(function(){$(this).trigger("doPanelResize")});var k=b.ue3?b.width+2:b.width;$(window).resize(function(){j.asPopPanel({show:false,width:k})});$.iframePopPanelFixAlphaDivSize=function(){$("#iframe_panel_alpha_div").css({width:j.width()+10,height:j.height()+(e?5:10)})};$.iframePopPanelCloseHandler_close=function(){j.hide();b.withOverlay&&overlayHelper.hide()};$.iframePopPanelCloseHandler_refresh=function(){$.iframePopPanelCloseHandler_close();window.location.reload()};$.iframePopPanelCloseHandler=$.iframePopPanelCloseHandler_close;var f=$("#iframe_panel_close").click(function(){if($.isFunction($.iframePopPanelCloseHandler)){$.iframePopPanelCloseHandler.apply()}return false});b.showCloseButton&&f.show();j.asPopPanel({show:b.show,width:k});$.iframePopPanelFixAlphaDivSize();b.withOverlay&&overlayHelper.show({opacity:b.overlayOpacity});$.iframePopPanelIsShow=true;return j};$.hideIframePopPanel=function(a){a=$.extend({withOverlay:true,dummy:""},a);$("#iframe_panel_wrapper").hide();a.withOverlay&&overlayHelper.hide();$.iframePopPanelIsShow=false};$.setIframePopPanelOptions=function(b){b=$.extend({title:null,width:null,showCloseButton:null,refreshOnClose:null,ue3:false},b);var a=b.ue3?b.width+20:b.width;if(b.title!==null){$("#iframe_panel_title").html(b.title)}if(b.width!==null){$("#iframe_panel_wrapper, #iframe_panel").width(a),$("#iframe_panel_wrapper").asPopPanel({width:a}),$.iframePopPanelFixAlphaDivSize()}if(b.showCloseButton===true){$("#iframe_panel_close").show()}else{if(b.showCloseButton===false){$("#iframe_panel_close").hide()}}if(b.refreshOnClose===true){$.iframePopPanelCloseHandler=$.iframePopPanelCloseHandler_refresh}};$.fn.asRelatedPanel=function(h){h=$.extend({targetObj:null,adjust:{},show:true},h);var a=h.targetObj;var f=$(this);var g=a.offset();var e=$("#wrapper");if(e.size()>0){g.left-=e.offset().left}g.left-=f.width()/2;g.top+=a.height()+3;g.left=Math.max(0,g.left);var b=window.innerWidth||document.body&&document.body.clientWidth;if(b>0){var c=f.width();if(c+g.left>b){g.left=Math.max(b-c-30,30)}}f.css({left:g.left+(h.adjust.left||0),top:g.top+(h.adjust.top||0)});if(h.show){f.show()}return f};function displayUserLogin(c){c=$.extend({showCloseButton:true,action:"login",loginType:"pub",next:""},c);var a=false;if(c.loginType=="ue3"){a=true}if(c.action=="register"){$.loadIframePopPanel({contentUrl:"/user/ajax_register.php"+(a?"?ue3=1":""),title:"会员注册",showCloseButton:c.showCloseButton})}else{var b="/user/ajax_login.php?login_type="+encodeURIComponent(c.loginType);if(c.next){b+=("&next="+encodeURIComponent(c.next))}if(a){b+="&ue3=1"}$.loadIframePopPanel({contentUrl:b,title:"会员登录",width:500,showCloseButton:c.showCloseButton,ue3:a})}return false}function getCurrentUser(){function a(h){function g(i){return i.replace(/(^[\s]+)|([\s]+$)/g,"")}var n=null;if(document.cookie&&document.cookie!=""){var l=document.cookie.split(";");for(var k=0;k<l.length;k++){var j=g(l[k]);if(j.substring(0,h.length+1)==(h+"=")){try{n=decodeURIComponent(j.substring(h.length+1))}catch(m){n=j.substring(h.length+1)}break}}}return n}var f=a("GanjiUserName");var c=a("GanjiEmail");var e=a("GanjiMemberScore");var b={username:f,email:c,score:e,isValid:function(){return this.username!=null}};return b}function tips(b,a){var c="";switch(b){case"housing":if(a==1){c="housing_common_1"}else{if(a==3||a==5){c="housing_common_3"}else{if(a==2||a==4){c="housing_common_2"}else{if(a==6||a==7){c="housing_common_6"}else{if(a==8||a==9||a==10||a==11){c="housing_common_8"}}}}}break;case"secondmarket":if(a==21){c="secondmarket_21"}else{c="sort_common_1"}break;case"ticketing":if(a==18){c="sort_common_4";break}else{if(a==10){c="ticketing_10";break}}case"pet":c="sort_common_2";break;case"vehicle":if(a==1){c="sort_common_5"}else{c="sort_common_2"}break;case"wanted":if(a==2){c="wanted_2"}else{if(a==5){c="wanted_5"}else{if(a==10){c="wanted_10"}else{if(a==18){c="wanted_18"}else{if(a==28){c="wanted_28"}else{if(a==21||a==32){c="wanted_21"}else{c="wanted"}}}}}}break;case"parttime_wanted":if(a==2){c="parttime_wanted_2"}else{if(a==3){c="parttime_wanted_3"}else{if(a==19){c="parttime_wanted_4"}else{c="parttime_wanted"}}}break;case"findjob":case"parttime_findjob":c="sort_common_3";break;case"service_biz":c="service_biz";break;case"service_living":if(a==49){c="service_living_49"}else{if(a==35){c="service_living_35"}else{if(a==1){c="service_living_1"}else{c="service_living"}}}break;case"personals":c="personals";break;case"training":c="training";break;case"event":if(a==5){c="event_5"}else{if(a==3){c="event_3"}}break}if(c){$.get("/ajax/tips.php?tips="+c,function(e){$(".tips").html(e);$(".tips").show()})}}window.pageStatistic=function(){var p=0;var m=15000;var l=0;function q(){var r=$("form","#mainSide");r.find("input,select,textarea").focus(function(){pageStatistic.pageCount({e:$(this).attr("name")})});$("#iframe_ditu_mark").load(function(){$("#iframe_ditu_mark").contents().find("input:button").click(function(){pageStatistic.pageCount({e:"latlng"})})});$("#swfuploader_0").load(function(){$(this).contents().find("#SWFUpload_0").click(function(){pageStatistic.pageCount({e:"swfuploadimage"})});$(this).contents().find("#idFile","#form_upload").focus(function(){pageStatistic.pageCount({e:"fileuploadimage"})})})}function i(r){$("#iframe_panel").bind("click",{o:r},f)}function n(){$("#iframe_panel").unbind("click",f)}function f(t){var v=t.data.o;var u={};var s=1;if($("#iframe_panel").contents().find("form").attr("id")=="registerform"){s=2}if(pv_page=="pub"){var r=$.extend(u,v,{type:s,page_type:"flow"});pageStatistic.pageCount(r)}$("#iframe_panel").contents().find("input").focus(function(){var x=$(this).attr("name");if(!x){x=$(this).attr("id")}var w=$.extend(u,v,{type:s,e:x,page_type:"click"});pageStatistic.pageCount(w)})}function g(r){$("a","#id_tips_login").bind("click",{o:r},b)}function k(){$("a","#id_tips_login").unbind("click",b)}function b(t){var s=window.location.href;var r;var u={};var v=t.data.o;if($(this).html()=="登录"){j("login");r=$.extend(u,v,{type:1,page_type:"flow"})}else{j("register");r=$.extend(u,v,{type:2,page_type:"flow"})}pageStatistic.pageCount(r);i(v);return false}function j(s){var r=c("seed");if(s=="login"){if(!r){displayUserLogin({next:a()})}else{displayUserLogin()}}else{if(!r){displayUserLogin({action:"register",next:a()})}else{displayUserLogin({action:"register"})}}}function a(){var s=window.location.href.replace(/(^http:\/\/[^/]+)/,"");var r=s;if(!c("seed")){if(s.indexOf("?")!=-1){r=s.replace("?","?seed="+pv_seed+"&")}else{if(s.indexOf("#")!=-1){r=s.replace("#","?seed="+pv_seed+"#")}else{r=s+"?seed="+pv_seed}}}return r}function c(s){var t=new RegExp("(^|&)"+s+"=([^&]*)(&|$)");var u=window.location.search.substr(1).match(t);if(u!=null){return unescape(u[2])}return null}function o(r){$("a","#userLoginMsg").bind("click",{o:r},h)}function e(){$("a","#userLoginMsg").unbind("click",h)}function h(r){var u=r.data.o;var v=$(this);var A=v.html();var s=window.location.href;if(A=="注册"||A=="登录"||A=="退出"){var t=new Date();var x=Math.floor(Math.random()*(t.getTime()/1000)+1);var w=$.extend({type:0,seed:x,refer:s,page_type:"flow",url:"http://"+document.domain+v.attr("href")},u);pageStatistic.pageCount(w);var y=v.attr("href");var z=y.indexOf("next=");if(z!=-1){v.attr("href",y.substring(0,z)+"next="+encodeURIComponent(a()))}}}return{alive:function(s){var r={};if(s){p=0;window.d=$.extend(r,s,{page_type:"alive"});if(window.djs){clearTimeout(window.djs)}}window.d=window.d||{page_type:"alive"};pageStatistic.pageCount(d);p++;if(p==4){m=m*2;p=0}window.djs=setTimeout(pageStatistic.alive,m)},flowcount:function(t){var r=new Date();var s=Math.floor(r.getTime()/1000);var u=$.extend({type:0,refer:"",url:"",uid:0,c:"",mc:0,seed:"",timestamp:s},t);$.post("/log_lxy/log/pm_flow.php",u,function(v){})},clickcount:function(t){var r=new Date();var s=Math.floor(r.getTime()/1000);var u=$.extend({type:0,refer:"",url:"",uid:0,c:"",mc:0,e:"",seed:"",timestamp:s},t);$.post("/log_lxy/log/pm_click.php",u,function(v){})},alivecount:function(t){var r=new Date();var s=Math.floor(r.getTime()/1000);var u=$.extend({refer:"",url:"",uid:0,c:"",mc:0,seed:"",timestamp:s},t);$.post("/log_lxy/log/pm_alive.php",u,function(v){})},pageCount:function(u){var r;var s=document.referrer;var t=window.location.href;if(pv_page=="pub_select"){r={type:0,refer:s,url:t,uid:pv_uid,c:"",mc:0,seed:pv_seed,page_type:"flow"}}else{r={type:0,refer:s,url:t,uid:pv_uid,e:"",c:pv_c,mc:pv_mc,seed:pv_seed,page_type:"click"}}$.extend(r,u);if(r.page_type=="flow"){pageStatistic.flowcount(r)}else{if(r.page_type=="click"){pageStatistic.clickcount(r)}else{pageStatistic.alivecount(r)}}},pubFlowPageCount:function(r,v,u){var s=window.location.href;var y=document.referrer;var A={url:s,c:v,mc:u};if(r){var z=r?r:(window.event?window.event:null);var w=z.srcElement?z.srcElement:z.target;y=window.location.href;s=w.href;A={refer:y,url:s,c:v,mc:u};if(s.indexOf("#")==-1){var t=new Date();var x=Math.floor(Math.random()*(t.getTime()/1000)+1);A={refer:y,url:s,seed:x,c:v,mc:u}}}g(A);pageStatistic.pageCount(A);o({uid:pv_uid});if(s.indexOf("pub_select")!=-1){pageStatistic.alive(A)}},pubPageCount:function(){pageStatistic.alive();i();q();$(function(){o({uid:pv_uid})})},cacelCount:function(){if(window.djs){clearTimeout(window.djs)}k();n();e()}}}();$.fn.wantedCategorySearch=function(a,b){this.autocomplete({panelId:a,dataProvider:function(f,g){f=$.trim(f);if(f.length==0){g(false)}else{var c=[];for(var e in b){if(b[e].indexOf(f)===0){c.push(b[e])}}g(c)}},showHighLightValue:false,autoPosition:false})};function showCategory(e){removeWantedCategory();pubFlowPageCount(e,"",0);$(".tips").hide();$(".stepCtrl").hide();var b="";var a=0;for(var c in postSort){if(c!="findjob"){str='<a href="#'+c+'" name="'+c+'" onclick="showType(\''+c+"', event);\">"+postSort[c]+"</a>"}else{str='<a href="/common/pub.php?category=findjob&type=2&step=select" onclick="pubFlowPageCount(event,\'findjob\',2);">'+postSort[c]+"</a>"}if(a==0||a==1||a==4||a==8||a==11){b+='<li class="H_leftLi">'+str}else{b+=str}if(a==0||a==3||a==7||a==10||a==12){b+="</li>"}a++}$("#ul_class_1").html(b);$("dl.xiangguanXX").html("");buildStep(1,"","","","","");return false}function showMinType(f,c,e){removeWantedCategory();pubFlowPageCount(e,f,c);$(".tips").hide();var b="";for(var a in postMinType){min_type=getKey(a);if(min_type!=1188){b+='<li><a href="/common/pub.php?category='+f+"&amp;type="+c+"&amp;min_type="+min_type+'" onclick="pubFlowPageCount(event, \''+f+"', '"+c+"');\">"+postMinType[a]+"</a></li>"}else{b+='<li><a href="#'+f+"-"+c+"_"+min_type+'" name="'+f+"-"+c+"_"+min_type+'" onclick="showDistrict2(\''+f+"','"+c+"','"+min_type+"', event);\">"+postMinType[a]+"</a></li>"}}$("#ul_class_1").html(b);buildStep2(3,f,c,"","","");return false}function showType(e,c){removeWantedCategory();pubFlowPageCount(c,e,0);var b="";var a=0;$.each(postType[e],function(f,g){data=f.split("-");type=data[0];if(e=="wanted"){}else{if(e=="event"&&type==5){b+='<li><a href="/common/pub.php?category=event&type=5" onclick="pubFlowPageCount(event, \'event\', 5);">'+g+"</a></li>"}else{if(e=="service_living"&&type==8){var h='<a href="#'+e+"-"+type+'" name="'+e+"-"+type+'" onclick="showMinType(\''+e+"','"+type+"', event);\">"+g+"</a>";b+="<li>"+h+"</li>"}else{if(e=="ticketing"&&type==18){var h='<a href="/common/pub.php?category=ticketing&type=18" onclick="pubFlowPageCount(event, \'ticketing\', 18);">'+g+"</a>";b+="<li>"+h+"</li>"}else{if(!(e=="personals"&&(type==6||type==5||type==10||type==8))&&!(e=="housing"&&type==3)&&!(e=="service_living"&&type==5)){var h='<a href="#'+e+"-"+type+'" name="'+e+"-"+type+'" onclick="showDistrict(\''+e+"','"+type+"', '', event);\">"+g+"</a>";if(e=="secondmarket"){if(a==0||a==3||a==7||a==10||a==13){b+='<li class="H_leftLi">'+h}else{b+=h}if(a==2||a==6||a==9||a==12||a==14){b+="</li>"}a++}else{b+="<li>"+h+"</li>"}}}}}}});if(e=="secondmarket"){$("dl.xiangguanXX").html('<dt>相关类别：</dt><dd><a href="/pub/pub_select.php?category=ticketing" class="xiangguanXX_t">票务</a>——<a href="/common/pub.php?category=ticketing&type=18">火车票</a>&nbsp;<a href="/pub/pub_select.php?category=ticketing&type=9">门票</a>&nbsp;<a href="/pub/pub_select.php?category=ticketing&type=7">消费卡</a>&nbsp;<a href="/pub/pub_select.php?category=ticketing&type=8">购物券</a></dd><dd><a href="/pub/pub_select.php?category=vehicle" class="xiangguanXX_t">车辆服务</a>——<a href="/pub/pub_select.php?category=vehicle&type=1">二手汽车</a>&nbsp;<a href="/pub/pub_select.php?category=vehicle&type=10">自行车</a>&nbsp;<a href="/pub/pub_select.php?category=vehicle&type=11">摩托车</a>&nbsp;<a href="/pub/pub_select.php?category=vehicle&type=12">电动车</a></dd>')}load_city(e,"","",false);if(e=="wanted"){setWantedCategory()}else{$("#ul_class_1").html(b)}if(e=="housing"){$(".tips").html("<dd></dd><dt>合租房源请发布到租房中，并在租房中选择相应的合租方式</dt>");$(".tips").show()}buildStep(2,e,"","","","");$(".stepCtrl").html('<a href="#" onclick="showCategory(event)">&laquo; 返回上一步</a>').show();return false}function showDistrict(j,f,a,h){removeWantedCategory();pubFlowPageCount(h,j,f);if(j=="wanted"||j=="parttime_wanted"){$(".H_Pub_Job_tip").show();$(".H_Pub_Job_tip").html("<div style='font-size:13px;padding-left:34px;margin-top:10px;'>请选择工作地点所在的区域：</div>")}var e="";for(var c=0;c<D.length;c++){var g=D[c][0];var b=D[c][1];if(typeof(E[g])=="undefined"||(j=="vehicle"&&f==1)){url=make_post_url(j,f,g,-1,a);e+='<li><a href="'+url+'" onclick="pubFlowPageCount(event, \''+j+"', '"+f+"');\">"+b+"</a></li>"}else{e+='<li><a href="#'+j+"-"+f+"_"+a+"-"+g+'" name="'+j+"-"+f+"-"+g+'" onclick="showStreet(\''+j+"','"+f+"', '"+g+"', '"+a+"', event);\">"+b+"</a></li>"}}$("#ul_class_1").html(e);$("dl.xiangguanXX").html("");$(".stepCtrl").html('<a href="#'+j+'" onclick="showType(\''+j+"', event)\">&laquo; 返回上一步</a>").show();buildStep(3,j,f,"","",a);if(typeof(E[province_id])=="undefined"||(j=="vehicle"&&f==1)){$("#id_step4").hide();$("#this_step5").html("4.")}return false}function showDistrict2(h,e,j,g){removeWantedCategory();pubFlowPageCount(g,h,e);var c="";for(var b=0;b<D.length;b++){var f=D[b][0];var a=D[b][1];if(typeof(E[f])=="undefined"){c+='<li><a href="/common/pub.php?category='+h+"&amp;type="+e+"&amp;min_type="+j+"&amp;district_id="+f+'&amp;street_id=-1" onclick="pubFlowPageCount(event, \''+h+"', '"+e+"');\">"+a+"</a></li>"}else{c+='<li><a href="#'+h+"-"+e+"_"+j+"-"+f+'" name="'+h+"-"+e+"-"+f+'" onclick="showStreet2(\''+h+"','"+e+"', '"+f+"', '"+j+"', event);\">"+a+"</a></li>"}}$("#ul_class_1").html(c);$(".stepCtrl").html('<a href="#'+h+'" onclick="showType(\''+h+"', event)\">&laquo; 返回上一步</a>").show();buildStep2(4,h,e,"","",j);return false}function showStreet2(c,j,k,h,a){removeWantedCategory();pubFlowPageCount(a,c,j);var f="";var b="";if(typeof(E[k])!="undefined"){for(var e=0;e<E[k].length;e++){f+='<li><a href="/common/pub.php?category='+c+"&amp;type="+j+"&amp;min_type="+h+"&amp;district_id="+k+"&amp;street_id="+E[k][e][0]+'" onclick="pubFlowPageCount(event, \''+c+"', '"+j+"');\">"+E[k][e][1]+"</a></li>"}$("#ul_class_1").html(f)}else{$("#ul_class_1").html("")}district_name="";for(var e=0;e<D.length;e++){if(D[e][0]==k){district_name=D[e][1];break}}var g="/common/pub.php?category="+c+"&amp;type="+j+"&amp;min_type="+h+"&amp;district_id="+k+"&amp;street_id=-1";$(".stepCtrl").html('<a href="#'+c+"-"+j+"_"+h+'" onclick="showDistrict2(\''+c+"',"+j+",'"+h+'\', event)">&laquo; 返回上一步</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="'+g+'" onclick="pubFlowPageCount(event, \''+c+"', '"+j+"');\">忽略，直接进入下一步 &raquo;</a>").show();buildStep2(5,c,j,k,district_name,h);return false}function showStreet(c,j,k,g,a){removeWantedCategory();pubFlowPageCount(a,c,j);if(c=="wanted"||c=="parttime_wanted"){$(".H_Pub_Job_tip").show();$(".H_Pub_Job_tip").html("<div style='font-size:13px;padding-left:34px;margin-top:10px;'>请选择工作地点所在的街道：</div>")}var f="";var b="";if(typeof(E[k])!="undefined"){for(var e=0;e<E[k].length;e++){b=make_post_url(c,j,k,E[k][e][0],g);f+='<li><a href="'+b+'" onclick="pubFlowPageCount(event, \''+c+"', '"+j+"');\">"+E[k][e][1]+"</a></li>"}$("#ul_class_1").html(f)}else{$("#ul_class_1").html("")}district_name="";for(var e=0;e<D.length;e++){if(D[e][0]==k){district_name=D[e][1];break}}var h=make_post_url(c,j,k,-1,g);$(".stepCtrl").html('<a href="#'+c+"-"+j+"_"+g+'" onclick="showDistrict(\''+c+"','"+j+"','"+g+'\', event)">&laquo; 返回上一步</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="'+h+'" onclick="pubFlowPageCount(event, \''+c+"', '"+j+"');\">忽略，直接进入下一步 &raquo;</a>").show();buildStep(4,c,j,k,district_name,g);return false}function initStepHtml(){$(".pubStep").html('<li id="id_step1"><span><b id="this_step1">1.</b>选择信息类别</span></li><li id="id_step2"><span><b id="this_step2">2.</b>选择信息子类别</span></li><li id="id_step3"><span><b id="this_step3">3.</b>选择区域</span></li><li id="id_step4"><span><b id="this_step4">4.</b>选择街道</span></li><li id="id_step5"><span><b id="this_step5">5.</b>填写信息</span></li>')}function initStepHtml2(){$(".pubStep").html('<li id="id_step1"><span><b id="this_step1">1.</b>选择信息类别</span></li><li id="id_step2"><span><b id="this_step2">2.</b>选择信息子类别</span></li><li id="id_step3"><span><b id="this_step3">3.</b>选择旅游二级类别</span></li><li id="id_step4"><span><b id="this_step4">4.</b>选择区域</span></li><li id="id_step5"><span><b id="this_step5">5.</b>选择街道</span></li><li id="id_step6"><span><b id="this_step6">6.</b>填写信息</span></li>')}function buildStep(h,g,e,f,c,a){initStepHtml();switch(h){case 4:var b='<span><b id="this_step3">3.</b><a href="#'+g+"-"+e+"_"+a+'" onclick="showDistrict(\''+g+"',"+e+", '"+a+"', event)\" ";b+=f!==""?'style="color:#800080;">':">";b+=c+"</a></span>";$("#id_step3").html(b);case 3:var b='<span><b id="this_step2">2.</b><a href="#'+g+'" onclick="showType(\''+g+"', event)\" ";b+=e!==""?'style="color:#800080;">':">";b+=postType[g][e+"-t"]+"</a></span>";$("#id_step2").html(b);case 2:var b='<span><b id="this_step1">1.</b><a href="#" onclick="showCategory(event)" ';b+=g!==""?'style="color:#800080;">':">";b+=postSort[g]+"</a></span>";$("#id_step1").html(b)}$("#id_step"+h).attr("className","this_step");if(h==1){showPostHistory(cityScriptIndex,"category",g,e,a)}else{if(h==3&&g!="housing"){showPostHistory(cityScriptIndex,"area",g,e,a)}else{$("#latest_pub").hide()}}}function buildStep2(h,f,c,e,b,g){initStepHtml2();switch(h){case 5:var a='<span><b id="this_step4">4.</b><a href="#'+f+"-"+c+"_"+g+'" onclick="showDistrict2(\''+f+"',"+c+", '"+g+"', event)\" ";a+=e!==""?'style="color:#800080;">':">";a+=b+"</a></span>";$("#id_step4").html(a);case 4:var a='<span><b id="this_step3">3.</b><a href="#'+f+"-"+c+'" onclick="showMinType(\''+f+"',"+c+', event)" ';a+=g!==""?'style="color:#800080;">':">";a+=postMinType[g+"-t"]+"</a></span>";$("#id_step3").html(a);case 3:var a='<span><b id="this_step2">2.</b><a href="#'+f+'" onclick="showType(\''+f+"', event)\" ";a+=c!==""?'style="color:#800080;">':">";a+=postType[f][c+"-t"]+"</a></span>";$("#id_step2").html(a);case 2:var a='<span><b id="this_step1">1.</b><a href="#" onclick="showCategory(event)" ';a+=f!==""?'style="color:#800080;">':">";a+=postSort[f]+"</a></span>";$("#id_step1").html(a)}$("#id_step"+h).attr("className","this_step");if(h==1){showPostHistory(cityScriptIndex,"category",f,c,"",g)}else{if(h==4){showPostHistory(cityScriptIndex,"area",f,c,"",g)}else{$("#latest_pub").hide()}}}function load_city(g,e,f,a,b){removeWantedCategory();var c="/js/pub/config/"+cityurl+"_common_city.js";if(cityurl=="shenzhen"){if(g=="housing"){c="/js/pub/config/shenzhen_housing_city.js"}}else{if(cityurl=="shanghai"){if(g=="housing"){c="/js/pub/config/shanghai_housing_city.js"}}else{if(cityurl=="beijing"){if(g=="housing"){c="/js/pub/config/beijing_housing_city.js"}}}}if(c!=window.url_file){if(a){$.getScript(c,function(){if(f){showStreet(g,e,f,b,"")}else{if(e){showDistrict(g,e,b,"")}}})}else{$.getScript(c)}}window.url_file=c}function load_city2(f,c,e,a,g){removeWantedCategory();var b="/js/pub/config/"+cityurl+"_common_city.js";if(cityurl=="shenzhen"){if(f=="housing"){b="/js/pub/config/shenzhen_housing_city.js"}}else{if(cityurl=="shanghai"){if(f=="housing"){b="/js/pub/config/shanghai_housing_city.js"}}else{if(cityurl=="beijing"){if(f=="housing"){b="/js/pub/config/beijing_housing_city.js"}}}}if(b!=window.url_file){if(a){$.getScript(b,function(){if(e){showStreet2(f,c,e,g)}else{if(g){showDistrict2(f,c,g)}else{if(c){showMinType(f,c,"")}}}})}else{$.getScript(b)}}window.url_file=b}function make_post_url(f,c,e,h,b){var a="/common/pub.php?";var g="category="+f+"&amp;type="+c+"&amp;biz_type="+b+"&amp;district_id="+e+"&amp;street_id="+h;if((f=="housing"&&(c==1||c==3||c==5))||f=="wanted"){if(pv_seed){g+="&seed="+pv_seed}}a+=g;return a}function IE_ver(){var b=navigator.appName;var c=navigator.appVersion;var a=parseFloat(c);if(b=="Microsoft Internet Explorer"){if(a<6.9){sObj=document.getElementsByTagName("body")[0].style;sObj.width=(document.documentElement.clientWidth<980)?"980px":"auto"}}}var wanted_init=false;var wanted_notice_panel="";function setWantedCategory(){$("#ul_class_1").html("");$("#ul_class_1").hide();$("#ul_class_2").show();$("#ul_class_3").show();$("#ul_class_4").show();$("#ul_class_5").show();$(".H_Pub_Hangye").show();$(".H_Pub_Job_Search").show();if(!wanted_init){wanted_init=true;$("#ul_class_2").html("<b>热门职位：</b>");$("#ul_class_3").html(getWantedHotCategoryData());$("#ul_class_4").html("<b>按行业查找：</b>");$(".H_Pub_Hangye").html(getWantedBizCategoryData());$("#ul_class_5").html("<b>找不到您想要发布的类别，请到“"+getWantedShowDistrictLink("20",postType.wanted["20-t"],"")+"”发布</b>");var a="找不到类别？输入关键字查询一下...";var b="";b+='<div style="height:30px;">';b+='	<form id="wanted_category_search_form" method="get" name="wanted_category_search_form" style="float:right">';b+='		<div style="width:380px;height:23px;">';b+='			<input id="wanted_category_search" type="text" value="'+a+'"  class="txt_search f_c_gray2" style="float:left;" />';b+='			<input type="submit" class="btn_search" id="wanted_category_search_btn" style="float:left;" value="确定"/>';b+="		</div>";b+='		<div id="wanted_category_search_auto_list" class="jquery_autocomplete" style="display:none;width:270px;"></div>';b+="	</form>";b+="</div>";$(".H_Pub_Job_Search").html(b);$("#wanted_category_search").bind("mousedown",function(){if($(this).val()==a){$(this).val("");$(this).removeClass("f_c_gray2")}$(this).focus()});$("#wanted_category_search").bind("blur",function(){if($(this).val()==""){$(this).val(a);$(this).addClass("f_c_gray2")}});$("#wanted_category_search").wantedCategorySearch("wanted_category_search_auto_list",postType.wanted);$("#wanted_category_search_form").bind("submit",function(){var e=$("#wanted_category_search").val();if(e==a||e==""){return false}else{var c="";for(var f in postType.wanted){if(postType.wanted[f]==e){c=f}}if(c){showDistrict("wanted",getKey(c),"")}else{if(wanted_notice_panel){wanted_notice_panel.show()}else{wanted_notice_panel=$.JqPanel.panel({id:"wanted_category_search_notice",title:"信息提示",content:'<div style="font-size:14px;padding:15px;">没有该类别，建议您重新搜索或发布到其他到<strong>'+getWantedShowDistrictLink("20",postType.wanted["20-t"],"")+"</strong>类别。</div>",width:480,mask:true,resizeable:false,closeText:"关闭",minimizable:false})}}}return false})}}function removeWantedCategory(){$("#ul_class_1").show();$("#ul_class_2").hide();$("#ul_class_3").hide();$("#ul_class_4").hide();$("#ul_class_5").hide();$(".H_Pub_Hangye").hide();$(".H_Pub_Job_Search").hide();$(".H_Pub_Job_tip").hide();if(wanted_notice_panel){wanted_notice_panel.close(0)}}function getWantedBizCategoryData(){var c,a,b,e="";for(c in wantedBizMajorData){a=bizData[c];e+="<dl><dt>"+a+":</dt><dd>";for(b in wantedBizMajorData[c]){e+=getWantedShowDistrictLink(getKey(b),wantedBizMajorData[c][b],getKey(c))}e+="</dd></dl>"}return e}function getWantedHotCategoryData(){var b,c="",a=0;for(b in wantedHotMajorData){if(a%6==0){c+='<li class="H_leftLi">'}c+=getWantedShowDistrictLink(getKey(b),wantedHotMajorData[b],"");if(a%6==5){c+="</li>"}a++}if(a%6!=0){c+="</li>"}return c}function getWantedShowDistrictLink(b,e,a){var c="wanted";return'<a href="#'+c+"-"+b+'" name="'+c+"-"+b+"_"+a+'" onclick="showDistrict(\''+c+"','"+b+"','"+a+"', event);\">"+e+"</a>"}function getKey(a){var b=a.split("-");return b[0]}function getNextUrl(a){$("a","#userLoginMsg").each(function(){var g=$(this).html();if(g=="登录"||g=="退出"){if(a){var c=a?a:(window.event?window.event:null);var f=c.srcElement?c.srcElement:c.target;var e=f.href.toString();if(g=="登录"){$(this).attr("href","/user/login.php?next="+encodeURIComponent(e))}else{$(this).attr("href","/user/logout.php?next="+encodeURIComponent(e))}}else{var b=document.referrer.match("pub.php");if(b){var e=window.location.toString().split("#")[0];if(g=="登录"){$(this).attr("href","/user/login.php?next="+encodeURIComponent(e))}else{$(this).attr("href","/user/logout.php?next="+encodeURIComponent(e))}}}}})}function showPostHistory(g,b,e,c,a,f){if(pv_uid){$.post("/ajax/get_latest_pub_history.php",{city:g,user_id:pv_uid,type:b},function(l){if(l.length>0){var k="您最近发布过信息的类别： ";if(b=="area"){k="您常用的发帖区域是："}for(var j=0;j<l.length;j++){if(b=="area"){if(e=="vehicle"&&c==1){l[j].street_id=-1;var h=l[j].title.indexOf("-");if(h!=-1){l[j].title=l[j].title.substr(0,l[j].title.indexOf("-"))}}l[j].url=make_post_url(e,c,l[j].district_id,l[j].street_id,a);if(e=="service_living"&&c==8&&f==1188){l[j].url="/common/pub.php?category="+e+"&amp;type="+c+"&amp;min_type="+f+"&amp;district_id="+l[j].district_id+"&amp;street_id="+l[j].street_id}}k+='<a href="'+l[j].url+'">'+l[j].title+"</a> "}$("#latest_pub").html(k);$("#latest_pub").show();$("a","#latest_pub").click(function(){LogServerCount.pubSelectLinkCount(b)})}},"json")}}function displayLoginMsg(){function k(o){function m(u){return u.replace(/(^[\s]+)|([\s]+$)/g,"")}var t=null;if(document.cookie&&document.cookie!=""){var r=document.cookie.split(";");for(var q=0;q<r.length;q++){var p=m(r[q]);if(p.substring(0,o.length+1)==(o+"=")){try{t=decodeURIComponent(p.substring(o.length+1))}catch(s){t=p.substring(o.length+1)}break}}}return t}function n(){var p=window.location.toString();var m=["login","logout","&next="];for(var o=0,q=m.length;o<q;++o){if(p.indexOf(m[o])!=-1){return"/"}}return p}function j(){var p=arguments[0]||"";for(var m=1,q=arguments.length;m<q;m++){var o=new RegExp("\\{"+(m-1)+"\\}","gm");p=p.replace(o,arguments[m])}return p}var l=window.location.toString();var h=/^http:\/\/\w+\.ganji\.com\/$/.test(l);var b=/\w+\.ganji\.com/.exec(l);var a=b?b[0]:"bj.ganji.com";var e=k("GanjiUserName");var i=k("GanjiEmail");var g="";var f=n();if(e!=null&&i!=null){g=j('<font class="username">{0}</font>&nbsp;<a href="http://{1}/vip/">会员中心</a>',e,a);if(!h){g+='|<a href="http://club.ganji.com/" target="_blank">论坛</a>'}g+='|<a target="_blank" href="http://www.ganji.com/aboutus/help_reg.htm">帮助</a>';if(h){g+='|<a target="_blank" href="http://www.ganji.com/aboutus/adviceNew.php" style="color:#FFFC00">意见反馈</a>'}g+=j('|<a href="http://{0}/user/logout.php?next={1}">退出</a>',a,encodeURIComponent(f))}else{g=j('<a href="/user/register.php" {0}>注册</a>|<a href="http://{1}/user/login.php?next={2}">登录</a>',(h?' target="_blank"':""),a,encodeURIComponent(f));if(!h){g+='|<a href="http://club.ganji.com/" target="_blank">论坛</a>'}g+='|<a target="_blank" href="http://www.ganji.com/aboutus/help_reg.htm">帮助</a>';if(h){g+='|<a target="_blank" href="http://www.ganji.com/aboutus/adviceNew.php" style="color:#FFFC00">意见反馈</a>'}}var c=document.getElementById("userLoginMsg");if(c!=null){c.innerHTML=g}};