(function(){var S=this,W,G=S.jQuery,J=S.$,M=S.jQuery=S.$=function(f,e){return new M.fn.init(f,e)},F=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,Z=/^.[^:#\[\.,]*$/;M.fn=M.prototype={init:function(h,g){h=h||document;if(h.nodeType){this[0]=h;this.length=1;this.context=h;return this}if(typeof h==="string"){var e=F.exec(h);if(e&&(e[1]||!g)){if(e[1]){h=M.clean([e[1]],g)}else{var f=document.getElementById(e[3]);if(f&&f.id!=e[3]){return M().find(h)}var i=M(f||[]);i.context=document;i.selector=h;return i}}else{return M(g).find(h)}}else{if(M.isFunction(h)){return M(document).ready(h)}}if(h.selector&&h.context){this.selector=h.selector;this.context=h.context}return this.setArray(M.isArray(h)?h:M.makeArray(h))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(e){return e===W?Array.prototype.slice.call(this):this[e]},pushStack:function(h,e,g){var f=M(h);f.prevObject=this;f.context=this.context;if(e==="find"){f.selector=this.selector+(this.selector?" ":"")+g}else{if(e){f.selector=this.selector+"."+e+"("+g+")"}}return f},setArray:function(e){this.length=0;Array.prototype.push.apply(this,e);return this},each:function(f,e){return M.each(this,f,e)},index:function(e){return M.inArray(e&&e.jquery?e[0]:e,this)},attr:function(e,h,f){var g=e;if(typeof e==="string"){if(h===W){return this[0]&&M[f||"attr"](this[0],e)}else{g={};g[e]=h}}return this.each(function(j){for(e in g){M.attr(f?this.style:this,e,M.prop(this,g[e],f,j,e))}})},css:function(f,e){if((f=="width"||f=="height")&&parseFloat(e)<0){e=W}return this.attr(f,e,"curCSS")},text:function(f){if(typeof f!=="object"&&f!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(f))}var e="";M.each(f||this,function(){M.each(this.childNodes,function(){if(this.nodeType!=8){e+=this.nodeType!=1?this.nodeValue:M.fn.text([this])}})});return e},wrapAll:function(e){if(this[0]){var f=M(e,this[0].ownerDocument).clone();if(this[0].parentNode){f.insertBefore(this[0])}f.map(function(){var g=this;while(g.firstChild){g=g.firstChild}return g}).append(this)}return this},wrapInner:function(e){return this.each(function(){M(this).contents().wrapAll(e)})},wrap:function(e){return this.each(function(){M(this).wrapAll(e)})},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType==1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType==1){this.insertBefore(e,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,false,function(e){this.parentNode.insertBefore(e,this.nextSibling)})},end:function(){return this.prevObject||M([])},push:[].push,sort:[].sort,splice:[].splice,find:function(e){if(this.length===1){var f=this.pushStack([],"find",e);f.length=0;M.find(e,this[0],f);return f}else{return this.pushStack(M.unique(M.map(this,function(g){return M.find(e,g)})),"find",e)}},clone:function(f){var h=this.map(function(){if(!M.support.noCloneEvent&&!M.isXMLDoc(this)){var j=this.outerHTML;if(!j){var i=this.ownerDocument.createElement("div");i.appendChild(this.cloneNode(true));j=i.innerHTML}return M.clean([j.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(f===true){var e=this.find("*").andSelf(),g=0;h.find("*").andSelf().each(function(){if(this.nodeName!==e[g].nodeName){return}var j=M.data(e[g],"events");for(var k in j){for(var i in j[k]){M.event.add(this,k,j[k][i],j[k][i].data)}}g++})}return h},filter:function(e){return this.pushStack(M.isFunction(e)&&M.grep(this,function(f,g){return e.call(f,g)})||M.multiFilter(e,M.grep(this,function(f){return f.nodeType===1})),"filter",e)},closest:function(f){var e=M.expr.match.POS.test(f)?M(f):null,g=0;return this.map(function(){var h=this;while(h&&h.ownerDocument){if(e?e.index(h)>-1:M(h).is(f)){M.data(h,"closest",g);return h}h=h.parentNode;g++}})},not:function(f){if(typeof f==="string"){if(Z.test(f)){return this.pushStack(M.multiFilter(f,this,true),"not",f)}else{f=M.multiFilter(f,this)}}var e=f.length&&f[f.length-1]!==W&&!f.nodeType;return this.filter(function(){return e?M.inArray(this,f)<0:this!=f})},add:function(e){return this.pushStack(M.unique(M.merge(this.get(),typeof e==="string"?M(e):M.makeArray(e))))},is:function(e){return!!e&&M.multiFilter(e,this).length>0},hasClass:function(e){return!!e&&this.is("."+e)},val:function(f){if(f===W){var m=this[0];if(m){if(M.nodeName(m,"option")){return(m.attributes.value||{}).specified?m.value:m.text}if(M.nodeName(m,"select")){var g=m.selectedIndex,h=[],e=m.options,l=m.type=="select-one";if(g<0){return null}for(var k=l?g:0,n=l?g+1:e.length;k<n;k++){var j=e[k];if(j.selected){f=M(j).val();if(l){return f}h.push(f)}}return h}return(m.value||"").replace(/\r/g,"")}return W}if(typeof f==="number"){f+=""}return this.each(function(){if(this.nodeType!=1){return}if(M.isArray(f)&&/radio|checkbox/.test(this.type)){this.checked=(M.inArray(this.value,f)>=0||M.inArray(this.name,f)>=0)}else{if(M.nodeName(this,"select")){var i=M.makeArray(f);M("option",this).each(function(){this.selected=(M.inArray(this.value,i)>=0||M.inArray(this.text,i)>=0)});if(!i.length){this.selectedIndex=-1}}else{this.value=f}}})},html:function(e){return e===W?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(e)},replaceWith:function(e){return this.after(e).remove()},eq:function(e){return this.slice(e,+e+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(e){return this.pushStack(M.map(this,function(f,g){return e.call(f,g,f)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(k,n,o){if(this[0]){var g=(this[0].ownerDocument||this[0]).createDocumentFragment(),j=M.clean(k,(this[0].ownerDocument||this[0]),g),m=g.firstChild;if(m){for(var e=0,h=this.length;e<h;e++){o.call(f(this[e],m),this.length>1||e>0?g.cloneNode(true):g)}}if(j){M.each(j,E)}}return this;function f(i,l){return n&&M.nodeName(i,"table")&&M.nodeName(l,"tr")?(i.getElementsByTagName("tbody")[0]||i.appendChild(i.ownerDocument.createElement("tbody"))):i}}};M.fn.init.prototype=M.fn;function E(f,e){if(e.src){M.ajax({url:e.src,async:false,dataType:"script"})}else{M.globalEval(e.text||e.textContent||e.innerHTML||"")}if(e.parentNode){e.parentNode.removeChild(e)}}function A(){return+new Date}M.extend=M.fn.extend=function(){var l=arguments[0]||{},j=1,k=arguments.length,g=false,e;if(typeof l==="boolean"){g=l;l=arguments[1]||{};j=2}if(typeof l!=="object"&&!M.isFunction(l)){l={}}if(k==j){l=this;--j}for(;j<k;j++){if((e=arguments[j])!=null){for(var f in e){var m=l[f],h=e[f];if(l===h){continue}if(g&&h&&typeof h==="object"&&!h.nodeType){l[f]=M.extend(g,m||(h.length!=null?[]:{}),h)}else{if(h!==W){l[f]=h}}}}}return l};var T=/z-?index|font-?weight|opacity|zoom|line-?height/i,a=document.defaultView||{},H=Object.prototype.toString;M.extend({noConflict:function(e){S.$=J;if(e){S.jQuery=G}return M},isFunction:function(e){return H.call(e)==="[object Function]"},isArray:function(e){return H.call(e)==="[object Array]"},isXMLDoc:function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&M.isXMLDoc(e.ownerDocument)},globalEval:function(g){if(g&&/\S/.test(g)){var e=document.getElementsByTagName("head")[0]||document.documentElement,f=document.createElement("script");f.type="text/javascript";if(M.support.scriptEval){f.appendChild(document.createTextNode(g))}else{f.text=g}e.insertBefore(f,e.firstChild);e.removeChild(f)}},nodeName:function(f,e){return f.nodeName&&f.nodeName.toUpperCase()==e.toUpperCase()},each:function(g,l,f){var e,h=0,k=g.length;if(f){if(k===W){for(e in g){if(l.apply(g[e],f)===false){break}}}else{for(;h<k;){if(l.apply(g[h++],f)===false){break}}}}else{if(k===W){for(e in g){if(l.call(g[e],e,g[e])===false){break}}}else{for(var j=g[0];h<k&&l.call(j,h,j)!==false;j=g[++h]){}}}return g},prop:function(g,e,h,j,f){if(M.isFunction(e)){e=e.call(g,j)}return typeof e==="number"&&h=="curCSS"&&!T.test(f)?e+"px":e},className:{add:function(e,f){M.each((f||"").split(/\s+/),function(h,g){if(e.nodeType==1&&!M.className.has(e.className,g)){e.className+=(e.className?" ":"")+g}})},remove:function(e,f){if(e.nodeType==1){e.className=f!==W?M.grep(e.className.split(/\s+/),function(g){return!M.className.has(f,g)}).join(" "):""}},has:function(e,f){return e&&M.inArray(f,(e.className||e).toString().split(/\s+/))>-1}},swap:function(g,h,i){var e={};for(var f in h){e[f]=g.style[f];g.style[f]=h[f]}i.call(g);for(var f in h){g.style[f]=e[f]}},css:function(j,i,l,k){if(i=="width"||i=="height"){var h,g={position:"absolute",visibility:"hidden",display:"block"},f=i=="width"?["Left","Right"]:["Top","Bottom"];function e(){h=i=="width"?j.offsetWidth:j.offsetHeight;if(k==="border"){return}M.each(f,function(){if(!k){h-=parseFloat(M.curCSS(j,"padding"+this,true))||0}if(k==="margin"){h+=parseFloat(M.curCSS(j,"margin"+this,true))||0}else{h-=parseFloat(M.curCSS(j,"border"+this+"Width",true))||0}})}if(j.offsetWidth!==0){e()}else{M.swap(j,g,e)}return Math.max(0,Math.round(h))}return M.curCSS(j,i,l)},curCSS:function(k,g,m){var e,l=k.style;if(g=="opacity"&&!M.support.opacity){e=M.attr(l,"opacity");return e==""?"1":e}if(g.match(/float/i)){g=Y}if(!m&&l&&l[g]){e=l[g]}else{if(a.getComputedStyle){if(g.match(/float/i)){g="float"}g=g.replace(/([A-Z])/g,"-$1").toLowerCase();var j=a.getComputedStyle(k,null);if(j){e=j.getPropertyValue(g)}if(g=="opacity"&&e==""){e="1"}}else{if(k.currentStyle){var h=g.replace(/\-(\w)/g,function(o,n){return n.toUpperCase()});e=k.currentStyle[g]||k.currentStyle[h];if(!/^\d+(px)?$/i.test(e)&&/^\d/.test(e)){var f=l.left,i=k.runtimeStyle.left;k.runtimeStyle.left=k.currentStyle.left;l.left=e||0;e=l.pixelLeft+"px";l.left=f;k.runtimeStyle.left=i}}}}return e},clean:function(j,l,f){l=l||document;if(typeof l.createElement==="undefined"){l=l.ownerDocument||l[0]&&l[0].ownerDocument||document}if(!f&&j.length===1&&typeof j[0]==="string"){var k=/^<(\w+)\s*\/?>$/.exec(j[0]);if(k){return[l.createElement(k[1])]}}var g=[],m=[],h=l.createElement("div");M.each(j,function(r,o){if(typeof o==="number"){o+=""}if(!o){return}if(typeof o==="string"){o=o.replace(/(<(\w+)[^>]*?)\/>/g,function(u,v,i){return i.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?u:v+"></"+i+">"});var n=o.replace(/^\s+/,"").substring(0,10).toLowerCase();var t=!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>"]||!M.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];h.innerHTML=t[1]+o+t[2];while(t[0]--){h=h.lastChild}if(!M.support.tbody){var q=/<tbody/i.test(o),p=!n.indexOf("<table")&&!q?h.firstChild&&h.firstChild.childNodes:t[1]=="<table>"&&!q?h.childNodes:[];for(var s=p.length-1;s>=0;--s){if(M.nodeName(p[s],"tbody")&&!p[s].childNodes.length){p[s].parentNode.removeChild(p[s])}}}if(!M.support.leadingWhitespace&&/^\s/.test(o)){h.insertBefore(l.createTextNode(o.match(/^\s*/)[0]),h.firstChild)}o=M.makeArray(h.childNodes)}if(o.nodeType){g.push(o)}else{g=M.merge(g,o)}});if(f){for(var e=0;g[e];e++){if(M.nodeName(g[e],"script")&&(!g[e].type||g[e].type.toLowerCase()==="text/javascript")){m.push(g[e].parentNode?g[e].parentNode.removeChild(g[e]):g[e])}else{if(g[e].nodeType===1){g.splice.apply(g,[e+1,0].concat(M.makeArray(g[e].getElementsByTagName("script"))))}f.appendChild(g[e])}}return m}return g},attr:function(i,e,g){if(!i||i.nodeType==3||i.nodeType==8){return W}var l=!M.isXMLDoc(i),f=g!==W;e=l&&M.props[e]||e;if(i.tagName){var k=/href|src|style/.test(e);if(e=="selected"&&i.parentNode){i.parentNode.selectedIndex}if(e in i&&l&&!k){if(f){if(e=="type"&&M.nodeName(i,"input")&&i.parentNode){throw"type property can't be changed"}i[e]=g}if(M.nodeName(i,"form")&&i.getAttributeNode(e)){return i.getAttributeNode(e).nodeValue}if(e=="tabIndex"){var j=i.getAttributeNode("tabIndex");return j&&j.specified?j.value:i.nodeName.match(/(button|input|object|select|textarea)/i)?0:i.nodeName.match(/^(a|area)$/i)&&i.href?0:W}return i[e]}if(!M.support.style&&l&&e=="style"){return M.attr(i.style,"cssText",g)}if(f){i.setAttribute(e,""+g)}var h=!M.support.hrefNormalized&&l&&k?i.getAttribute(e,2):i.getAttribute(e);return h===null?W:h}if(!M.support.opacity&&e=="opacity"){if(f){i.zoom=1;i.filter=(i.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(g)+""=="NaN"?"":"alpha(opacity="+g*100+")")}return i.filter&&i.filter.indexOf("opacity=")>=0?(parseFloat(i.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}e=e.replace(/-([a-z])/ig,function(n,m){return m.toUpperCase()});if(f){i[e]=g}return i[e]},trim:function(e){return(e||"").replace(/^\s+|\s+$/g,"")},makeArray:function(f){var g=[];if(f!=null){var e=f.length;if(e==null||typeof f==="string"||M.isFunction(f)||f.setInterval){g[0]=f}else{while(e){g[--e]=f[e]}}}return g},inArray:function(f,h){for(var g=0,e=h.length;g<e;g++){if(h[g]===f){return g}}return-1},merge:function(f,g){var j=0,e,h=f.length;if(!M.support.getAll){while((e=g[j++])!=null){if(e.nodeType!=8){f[h++]=e}}}else{while((e=g[j++])!=null){f[h++]=e}}return f},unique:function(l){var m=[],f={};try{for(var j=0,h=l.length;j<h;j++){var k=M.data(l[j]);if(!f[k]){f[k]=true;m.push(l[j])}}}catch(g){m=l}return m},grep:function(k,e,f){var g=[];for(var h=0,j=k.length;h<j;h++){if(!f!=!e(k[h],h)){g.push(k[h])}}return g},map:function(k,e){var f=[];for(var g=0,j=k.length;g<j;g++){var h=e(k[g],g);if(h!=null){f[f.length]=h}}return f.concat.apply([],f)}});var N=navigator.userAgent.toLowerCase();M.browser={version:(N.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(N),opera:/opera/.test(N),msie:/msie/.test(N)&&!/opera/.test(N),mozilla:/mozilla/.test(N)&&!/(compatible|webkit)/.test(N)};M.each({parent:function(e){return e.parentNode},parents:function(e){return M.dir(e,"parentNode")},next:function(e){return M.nth(e,2,"nextSibling")},prev:function(e){return M.nth(e,2,"previousSibling")},nextAll:function(e){return M.dir(e,"nextSibling")},prevAll:function(e){return M.dir(e,"previousSibling")},siblings:function(e){return M.sibling(e.parentNode.firstChild,e)},children:function(e){return M.sibling(e.firstChild)},contents:function(e){return M.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:M.makeArray(e.childNodes)}},function(f,e){M.fn[f]=function(g){var h=M.map(this,e);if(g&&typeof g=="string"){h=M.multiFilter(g,h)}return this.pushStack(M.unique(h),f,g)}});M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(f,e){M.fn[f]=function(j){var n=[],h=M(j);for(var k=0,g=h.length;k<g;k++){var m=(k>0?this.clone(true):this).get();M.fn[e].apply(M(h[k]),m);n=n.concat(m)}return this.pushStack(n,f,j)}});M.each({removeAttr:function(e){M.attr(this,e,"");if(this.nodeType==1){this.removeAttribute(e)}},addClass:function(e){M.className.add(this,e)},removeClass:function(e){M.className.remove(this,e)},toggleClass:function(f,e){if(typeof e!=="boolean"){e=!M.className.has(this,f)}M.className[e?"add":"remove"](this,f)},remove:function(e){if(!e||M.filter(e,[this]).length){M("*",this).add([this]).each(function(){M.event.remove(this);M.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){M(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(f,e){M.fn[f]=function(){return this.each(e,arguments)}});function O(e,f){return e[0]&&parseInt(M.curCSS(e[0],f,true),10)||0}var R="jQuery"+A(),X=0,Q={};M.extend({cache:{},data:function(f,e,h){f=f==S?Q:f;var g=f[R];if(!g){g=f[R]=++X}if(e&&!M.cache[g]){M.cache[g]={}}if(h!==W){M.cache[g][e]=h}return e?M.cache[g][e]:g},removeData:function(g,f){g=g==S?Q:g;var i=g[R];if(f){if(M.cache[i]){delete M.cache[i][f];f="";for(f in M.cache[i]){break}if(!f){M.removeData(g)}}}else{try{delete g[R]}catch(h){if(g.removeAttribute){g.removeAttribute(R)}}delete M.cache[i]}},queue:function(e,f,h){if(e){f=(f||"fx")+"queue";var g=M.data(e,f);if(!g||M.isArray(h)){g=M.data(e,f,M.makeArray(h))}else{if(h){g.push(h)}}}return g},dequeue:function(f,g){var h=M.queue(f,g),e=h.shift();if(!g||g==="fx"){e=h[0]}if(e!==W){e.call(f)}}});M.fn.extend({data:function(f,e){var g=f.split(".");g[1]=g[1]?"."+g[1]:"";if(e===W){var h=this.triggerHandler("getData"+g[1]+"!",[g[0]]);if(h===W&&this.length){h=M.data(this[0],f)}return h===W&&g[1]?this.data(g[0]):h}else{return this.trigger("setData"+g[1]+"!",[g[0],e]).each(function(){M.data(this,f,e)})}},removeData:function(e){return this.each(function(){M.removeData(this,e)})},queue:function(e,f){if(typeof e!=="string"){f=e;e="fx"}if(f===W){return M.queue(this[0],e)}return this.each(function(){var g=M.queue(this,e,f);if(e=="fx"&&g.length==1){g[0].call(this)}})},dequeue:function(e){return this.each(function(){M.dequeue(this,e)})}});(function(){var i=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,s=0,q=Object.prototype.toString;var p=function(y,Ae,x,Ac){x=x||[];Ae=Ae||document;if(Ae.nodeType!==1&&Ae.nodeType!==9){return[]}if(!y||typeof y!=="string"){return x}var Aa=[],Ah,v,Ai,Ag,e,w,z=true;i.lastIndex=0;while((Ah=i.exec(y))!==null){Aa.push(Ah[1]);if(Ah[2]){w=RegExp.rightContext;break}}if(Aa.length>1&&j.exec(y)){if(Aa.length===2&&n.relative[Aa[0]]){v=o(Aa[0]+Aa[1],Ae)}else{v=n.relative[Aa[0]]?[Ae]:p(Aa.shift(),Ae);while(Aa.length){y=Aa.shift();if(n.relative[y]){y+=Aa.shift()}v=o(y,v)}}}else{var u=Ac?{expr:Aa.pop(),set:g(Ac)}:p.find(Aa.pop(),Aa.length===1&&Ae.parentNode?Ae.parentNode:Ae,l(Ae));v=p.filter(u.expr,u.set);if(Aa.length>0){Ai=g(v)}else{z=false}while(Aa.length){var Ab=Aa.pop(),Af=Ab;if(!n.relative[Ab]){Ab=""}else{Af=Aa.pop()}if(Af==null){Af=Ae}n.relative[Ab](Ai,Af,l(Ae))}}if(!Ai){Ai=v}if(!Ai){throw"Syntax error, unrecognized expression: "+(Ab||y)}if(q.call(Ai)==="[object Array]"){if(!z){x.push.apply(x,Ai)}else{if(Ae.nodeType===1){for(var Ad=0;Ai[Ad]!=null;Ad++){if(Ai[Ad]&&(Ai[Ad]===true||Ai[Ad].nodeType===1&&m(Ae,Ai[Ad]))){x.push(v[Ad])}}}else{for(var Ad=0;Ai[Ad]!=null;Ad++){if(Ai[Ad]&&Ai[Ad].nodeType===1){x.push(v[Ad])}}}}}else{g(Ai,x)}if(w){p(w,Ae,x,Ac);if(r){hasDuplicate=false;x.sort(r);if(hasDuplicate){for(var Ad=1;Ad<x.length;Ad++){if(x[Ad]===x[Ad-1]){x.splice(Ad--,1)}}}}}return x};p.matches=function(u,e){return p(u,null,null,e)};p.find=function(Ab,Aa,y){var w,z;if(!Ab){return[]}for(var e=0,v=n.order.length;e<v;e++){var x=n.order[e],z;if((z=n.match[x].exec(Ab))){var u=RegExp.leftContext;if(u.substr(u.length-1)!=="\\"){z[1]=(z[1]||"").replace(/\\/g,"");w=n.find[x](z,Aa,y);if(w!=null){Ab=Ab.replace(n.match[x],"");break}}}}if(!w){w=Aa.getElementsByTagName("*")}return{set:w,expr:Ab}};p.filter=function(w,y,z,Ag){var Aa=w,x=[],Ai=y,Af,v,Ah=y&&y[0]&&l(y[0]);while(w&&y.length){for(var u in n.filter){if((Af=n.match[u].exec(w))!=null){var Ac=n.filter[u],Ae,e;v=false;if(Ai==x){x=[]}if(n.preFilter[u]){Af=n.preFilter[u](Af,Ai,z,x,Ag,Ah);if(!Af){v=Ae=true}else{if(Af===true){continue}}}if(Af){for(var Ad=0;(e=Ai[Ad])!=null;Ad++){if(e){Ae=Ac(e,Af,Ad,Ai);var Ab=Ag^!!Ae;if(z&&Ae!=null){if(Ab){v=true}else{Ai[Ad]=false}}else{if(Ab){x.push(e);v=true}}}}}if(Ae!==W){if(!z){Ai=x}w=w.replace(n.match[u],"");if(!v){return[]}break}}}if(w==Aa){if(v==null){throw"Syntax error, unrecognized expression: "+w}else{break}}Aa=w}return Ai};var n=p.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},relative:{"+":function(Ab,w,z){var x=typeof w==="string",y=x&&!/\W/.test(w),u=x&&!y;if(y&&!z){w=w.toUpperCase()}for(var e=0,v=Ab.length,Aa;e<v;e++){if((Aa=Ab[e])){while((Aa=Aa.previousSibling)&&Aa.nodeType!==1){}Ab[e]=u||Aa&&Aa.nodeName===w?Aa||false:Aa===w}}if(u){p.filter(w,Ab,true)}},">":function(Aa,v,x){var w=typeof v==="string";if(w&&!/\W/.test(v)){v=x?v:v.toUpperCase();for(var e=0,u=Aa.length;e<u;e++){var z=Aa[e];if(z){var y=z.parentNode;Aa[e]=y.nodeName===v?y:false}}}else{for(var e=0,u=Aa.length;e<u;e++){var z=Aa[e];if(z){Aa[e]=w?z.parentNode:z.parentNode===v}}if(w){p.filter(v,Aa,true)}}},"":function(v,w,y){var u=s++,e=f;if(!w.match(/\W/)){var x=w=y?w:w.toUpperCase();e=t}e("parentNode",w,u,v,x,y)},"~":function(v,w,y){var u=s++,e=f;if(typeof w==="string"&&!w.match(/\W/)){var x=w=y?w:w.toUpperCase();e=t}e("previousSibling",w,u,v,x,y)}},find:{ID:function(u,w,e){if(typeof w.getElementById!=="undefined"&&!e){var v=w.getElementById(u[1]);return v?[v]:[]}},NAME:function(u,y,e){if(typeof y.getElementsByName!=="undefined"){var z=[],x=y.getElementsByName(u[1]);for(var w=0,v=x.length;w<v;w++){if(x[w].getAttribute("name")===u[1]){z.push(x[w])}}return z.length===0?null:z}},TAG:function(e,u){return u.getElementsByTagName(e[1])}},preFilter:{CLASS:function(y,Aa,v,u,w,x){y=" "+y[1].replace(/\\/g,"")+" ";if(x){return y}for(var e=0,z;(z=Aa[e])!=null;e++){if(z){if(w^(z.className&&(" "+z.className+" ").indexOf(y)>=0)){if(!v){u.push(z)}}else{if(v){Aa[e]=false}}}}return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(e,u){for(var v=0;u[v]===false;v++){}return u[v]&&l(u[v])?e[1]:e[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var u=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(u[1]+(u[2]||1))-0;e[3]=u[3]-0}e[0]=s++;return e},ATTR:function(w,x,z,v,u,e){var y=w[1].replace(/\\/g,"");if(!e&&n.attrMap[y]){w[1]=n.attrMap[y]}if(w[2]==="~="){w[4]=" "+w[4]+" "}return w},PSEUDO:function(v,w,x,u,e){if(v[1]==="not"){if(v[3].match(i).length>1||/^\w/.test(v[3])){v[3]=p(v[3],null,null,w)}else{var y=p.filter(v[3],w,x,true^e);if(!x){u.push.apply(u,y)}return false}}else{if(n.match.POS.test(v[0])||n.match.CHILD.test(v[0])){return true}}return v},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){e.parentNode.selectedIndex;return e.selected===true},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(u,v,e){return!!p(e[3],u).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},setFilters:{first:function(e,u){return u===0},last:function(u,v,e,w){return v===w.length-1},even:function(e,u){return u%2===0},odd:function(e,u){return u%2===1},lt:function(u,v,e){return v<e[3]-0},gt:function(u,v,e){return v>e[3]-0},nth:function(u,v,e){return e[3]-0==v},eq:function(u,v,e){return e[3]-0==v}},filter:{PSEUDO:function(z,y,e,x){var w=y[1],u=n.filters[w];if(u){return u(z,e,y,x)}else{if(w==="contains"){return(z.textContent||z.innerText||"").indexOf(y[3])>=0}else{if(w==="not"){var v=y[3];for(var e=0,Aa=v.length;e<Aa;e++){if(v[e]===z){return false}}return true}}}},CHILD:function(Aa,y){var u=y[1],e=Aa;switch(u){case"only":case"first":while(e=e.previousSibling){if(e.nodeType===1){return false}}if(u=="first"){return true}e=Aa;case"last":while(e=e.nextSibling){if(e.nodeType===1){return false}}return true;case"nth":var Ac=y[2],z=y[3];if(Ac==1&&z==0){return true}var x=y[0],w=Aa.parentNode;if(w&&(w.sizcache!==x||!Aa.nodeIndex)){var Ab=0;for(e=w.firstChild;e;e=e.nextSibling){if(e.nodeType===1){e.nodeIndex=++Ab}}w.sizcache=x}var v=Aa.nodeIndex-z;if(Ac==0){return v==0}else{return(v%Ac==0&&v/Ac>=0)}}},ID:function(u,e){return u.nodeType===1&&u.getAttribute("id")===e},TAG:function(u,e){return(e==="*"&&u.nodeType===1)||u.nodeName===e},CLASS:function(u,e){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(v,e){var y=e[1],u=n.attrHandle[y]?n.attrHandle[y](v):v[y]!=null?v[y]:v.getAttribute(y),z=u+"",w=e[2],x=e[4];return u==null?w==="!=":w==="="?z===x:w==="*="?z.indexOf(x)>=0:w==="~="?(" "+z+" ").indexOf(x)>=0:!x?z&&u!==false:w==="!="?z!=x:w==="^="?z.indexOf(x)===0:w==="$="?z.substr(z.length-x.length)===x:w==="|="?z===x||z.substr(0,x.length+1)===x+"-":false},POS:function(v,e,w,y){var u=e[2],x=n.setFilters[u];if(x){return x(v,w,e,y)}}}};var j=n.match.POS;for(var k in n.match){n.match[k]=RegExp(n.match[k].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var g=function(u,e){u=Array.prototype.slice.call(u);if(e){e.push.apply(e,u);return e}return u};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(h){g=function(w,v){var x=v||[];if(q.call(w)==="[object Array]"){Array.prototype.push.apply(x,w)}else{if(typeof w.length==="number"){for(var u=0,e=w.length;u<e;u++){x.push(w[u])}}else{for(var u=0;w[u];u++){x.push(w[u])}}}return x}}var r;if(document.documentElement.compareDocumentPosition){r=function(e,u){var v=e.compareDocumentPosition(u)&4?-1:e===u?0:1;if(v===0){hasDuplicate=true}return v}}else{if("sourceIndex"in document.documentElement){r=function(e,u){var v=e.sourceIndex-u.sourceIndex;if(v===0){hasDuplicate=true}return v}}else{if(document.createRange){r=function(u,v){var w=u.ownerDocument.createRange(),e=v.ownerDocument.createRange();w.selectNode(u);w.collapse(true);e.selectNode(v);e.collapse(true);var x=w.compareBoundaryPoints(Range.START_TO_END,e);if(x===0){hasDuplicate=true}return x}}}}(function(){var u=document.createElement("form"),v="script"+(new Date).getTime();u.innerHTML="<input name='"+v+"'/>";var e=document.documentElement;e.insertBefore(u,e.firstChild);if(!!document.getElementById(v)){n.find.ID=function(x,z,w){if(typeof z.getElementById!=="undefined"&&!w){var y=z.getElementById(x[1]);return y?y.id===x[1]||typeof y.getAttributeNode!=="undefined"&&y.getAttributeNode("id").nodeValue===x[1]?[y]:W:[]}};n.filter.ID=function(x,w){var y=typeof x.getAttributeNode!=="undefined"&&x.getAttributeNode("id");return x.nodeType===1&&y&&y.nodeValue===w}}e.removeChild(u)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0){n.find.TAG=function(v,y){var x=y.getElementsByTagName(v[1]);if(v[1]==="*"){var w=[];for(var u=0;x[u];u++){if(x[u].nodeType===1){w.push(x[u])}}x=w}return x}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){n.attrHandle.href=function(u){return u.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var e=p,u=document.createElement("div");u.innerHTML="<p class='TEST'></p>";if(u.querySelectorAll&&u.querySelectorAll(".TEST").length===0){return}p=function(x,v,z,w){v=v||document;if(!w&&v.nodeType===9&&!l(v)){try{return g(v.querySelectorAll(x),z)}catch(y){}}return e(x,v,z,w)};p.find=e.find;p.filter=e.filter;p.selectors=e.selectors;p.matches=e.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}n.order.splice(1,0,"CLASS");n.find.CLASS=function(v,w,u){if(typeof w.getElementsByClassName!=="undefined"&&!u){return w.getElementsByClassName(v[1])}}})()}function t(v,y,Aa,Ad,Ab,z){var e=v=="previousSibling"&&!z;for(var x=0,u=Ad.length;x<u;x++){var Ac=Ad[x];if(Ac){if(e&&Ac.nodeType===1){Ac.sizcache=Aa;Ac.sizset=x}Ac=Ac[v];var w=false;while(Ac){if(Ac.sizcache===Aa){w=Ad[Ac.sizset];break}if(Ac.nodeType===1&&!z){Ac.sizcache=Aa;Ac.sizset=x}if(Ac.nodeName===y){w=Ac;break}Ac=Ac[v]}Ad[x]=w}}}function f(v,y,Aa,Ad,Ab,z){var e=v=="previousSibling"&&!z;for(var x=0,u=Ad.length;x<u;x++){var Ac=Ad[x];if(Ac){if(e&&Ac.nodeType===1){Ac.sizcache=Aa;Ac.sizset=x}Ac=Ac[v];var w=false;while(Ac){if(Ac.sizcache===Aa){w=Ad[Ac.sizset];break}if(Ac.nodeType===1){if(!z){Ac.sizcache=Aa;Ac.sizset=x}if(typeof y!=="string"){if(Ac===y){w=true;break}}else{if(p.filter(y,[Ac]).length>0){w=Ac;break}}}Ac=Ac[v]}Ad[x]=w}}}var m=document.compareDocumentPosition?function(e,u){return e.compareDocumentPosition(u)&16}:function(e,u){return e!==u&&(e.contains?e.contains(u):true)};var l=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&l(e.ownerDocument)};var o=function(x,Aa){var w=[],y="",z,u=Aa.nodeType?[Aa]:Aa;while((z=n.match.PSEUDO.exec(x))){y+=z[0];x=x.replace(n.match.PSEUDO,"")}x=n.relative[x]?x+"*":x;for(var e=0,v=u.length;e<v;e++){p(x,u[e],w)}return p.filter(y,w)};M.find=p;M.filter=p.filter;M.expr=p.selectors;M.expr[":"]=M.expr.filters;p.selectors.filters.hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0};p.selectors.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0};p.selectors.filters.animated=function(e){return M.grep(M.timers,function(u){return e===u.elem}).length};M.multiFilter=function(u,v,e){if(e){u=":not("+u+")"}return p.matches(u,v)};M.dir=function(u,e){var v=[],w=u[e];while(w&&w!=document){if(w.nodeType==1){v.push(w)}w=w[e]}return v};M.nth=function(w,u,e,v){u=u||1;var x=0;for(;w;w=w[e]){if(w.nodeType==1&&++x==u){break}}return w};M.sibling=function(u,v){var e=[];for(;u;u=u.nextSibling){if(u.nodeType==1&&u!=v){e.push(u)}}return e};return;S.Sizzle=p})();M.event={add:function(h,i,g,k){if(h.nodeType==3||h.nodeType==8){return}if(h.setInterval&&h!=S){h=S}if(!g.guid){g.guid=this.guid++}if(k!==W){var e=g;g=this.proxy(e);g.data=k}var j=M.data(h,"events")||M.data(h,"events",{}),f=M.data(h,"handle")||M.data(h,"handle",function(){return typeof M!=="undefined"&&!M.event.triggered?M.event.handle.apply(arguments.callee.elem,arguments):W});f.elem=h;M.each(i.split(/\s+/),function(n,m){var l=m.split(".");m=l.shift();g.type=l.slice().sort().join(".");var o=j[m];if(M.event.specialAll[m]){M.event.specialAll[m].setup.call(h,k,l)}if(!o){o=j[m]={};if(!M.event.special[m]||M.event.special[m].setup.call(h,k,l)===false){if(h.addEventListener){h.addEventListener(m,f,false)}else{if(h.attachEvent){h.attachEvent("on"+m,f)}}}}o[g.guid]=g;M.event.global[m]=true});h=null},guid:1,global:{},remove:function(k,g,l){if(k.nodeType==3||k.nodeType==8){return}var h=M.data(k,"events"),f,i;if(h){if(g===W||(typeof g==="string"&&g.charAt(0)==".")){for(var e in h){this.remove(k,e+(g||""))}}else{if(g.type){l=g.handler;g=g.type}M.each(g.split(/\s+/),function(p,o){var m=o.split(".");o=m.shift();var n=RegExp("(^|\\.)"+m.slice().sort().join(".*\\.")+"(\\.|$)");if(h[o]){if(l){delete h[o][l.guid]}else{for(var q in h[o]){if(n.test(h[o][q].type)){delete h[o][q]}}}if(M.event.specialAll[o]){M.event.specialAll[o].teardown.call(k,m)}for(f in h[o]){break}if(!f){if(!M.event.special[o]||M.event.special[o].teardown.call(k,m)===false){if(k.removeEventListener){k.removeEventListener(o,M.data(k,"handle"),false)}else{if(k.detachEvent){k.detachEvent("on"+o,M.data(k,"handle"))}}}f=null;delete h[o]}}})}for(f in h){break}if(!f){var j=M.data(k,"handle");if(j){j.elem=null}M.removeData(k,"events");M.removeData(k,"handle")}}},trigger:function(g,h,m,i){var f=g.type||g;if(!i){g=typeof g==="object"?g[R]?g:M.extend(M.Event(f),g):M.Event(f);if(f.indexOf("!")>=0){g.type=f=f.slice(0,-1);g.exclusive=true}if(!m){g.stopPropagation();if(this.global[f]){M.each(M.cache,function(){if(this.events&&this.events[f]){M.event.trigger(g,h,this.handle.elem)}})}}if(!m||m.nodeType==3||m.nodeType==8){return W}g.result=W;g.target=m;h=M.makeArray(h);h.unshift(g)}g.currentTarget=m;var k=M.data(m,"handle");if(k){k.apply(m,h)}if((!m[f]||(M.nodeName(m,"a")&&f=="click"))&&m["on"+f]&&m["on"+f].apply(m,h)===false){g.result=false}if(!i&&m[f]&&!g.isDefaultPrevented()&&!(M.nodeName(m,"a")&&f=="click")){this.triggered=true;try{m[f]()}catch(j){}}this.triggered=false;if(!g.isPropagationStopped()){var l=m.parentNode||m.ownerDocument;if(l){M.event.trigger(g,h,l,true)}}},handle:function(h){var l,k;h=arguments[0]=M.event.fix(h||S.event);h.currentTarget=this;var i=h.type.split(".");h.type=i.shift();l=!i.length&&!h.exclusive;var f=RegExp("(^|\\.)"+i.slice().sort().join(".*\\.")+"(\\.|$)");k=(M.data(this,"events")||{})[h.type];for(var e in k){var m=k[e];if(l||f.test(m.type)){h.handler=m;h.data=m.data;var g=m.apply(this,arguments);if(g!==W){h.result=g;if(g===false){h.preventDefault();h.stopPropagation()}}if(h.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(h){if(h[R]){return h}var g=h;h=M.Event(g);for(var j=this.props.length,k;j;){k=this.props[--j];h[k]=g[k]}if(!h.target){h.target=h.srcElement||document}if(h.target.nodeType==3){h.target=h.target.parentNode}if(!h.relatedTarget&&h.fromElement){h.relatedTarget=h.fromElement==h.target?h.toElement:h.fromElement}if(h.pageX==null&&h.clientX!=null){var f=document.documentElement,e=document.body;h.pageX=h.clientX+(f&&f.scrollLeft||e&&e.scrollLeft||0)-(f.clientLeft||0);h.pageY=h.clientY+(f&&f.scrollTop||e&&e.scrollTop||0)-(f.clientTop||0)}if(!h.which&&((h.charCode||h.charCode===0)?h.charCode:h.keyCode)){h.which=h.charCode||h.keyCode}if(!h.metaKey&&h.ctrlKey){h.metaKey=h.ctrlKey}if(!h.which&&h.button){h.which=(h.button&1?1:(h.button&2?3:(h.button&4?2:0)))}return h},proxy:function(e,f){f=f||function(){return e.apply(this,arguments)};f.guid=e.guid=e.guid||f.guid||this.guid++;return f},special:{ready:{setup:b,teardown:function(){}}},specialAll:{live:{setup:function(f,e){M.event.add(this,e[0],d)},teardown:function(e){if(e.length){var g=0,f=RegExp("(^|\\.)"+e[0]+"(\\.|$)");M.each((M.data(this,"events").live||{}),function(){if(f.test(this.type)){g++}});if(g<1){M.event.remove(this,e[0],d)}}}}}};M.Event=function(e){if(!this.preventDefault){return new M.Event(e)}if(e&&e.type){this.originalEvent=e;this.type=e.type}else{this.type=e}this.timeStamp=A();this[R]=true};function D(){return false}function L(){return true}M.Event.prototype={preventDefault:function(){this.isDefaultPrevented=L;var f=this.originalEvent;if(!f){return}if(f.preventDefault){f.preventDefault()}f.returnValue=false},stopPropagation:function(){this.isPropagationStopped=L;var f=this.originalEvent;if(!f){return}if(f.stopPropagation){f.stopPropagation()}f.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=L;this.stopPropagation()},isDefaultPrevented:D,isPropagationStopped:D,isImmediatePropagationStopped:D};var C=function(g){var f=g.relatedTarget;while(f&&f!=this){try{f=f.parentNode}catch(h){f=this}}if(f!=this){g.type=g.data;M.event.handle.apply(this,arguments)}};M.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(f,e){M.event.special[e]={setup:function(){M.event.add(this,f,C,e)},teardown:function(){M.event.remove(this,f,C)}}});M.fn.extend({bind:function(f,g,e){return f=="unload"?this.one(f,g,e):this.each(function(){M.event.add(this,f,e||g,e&&g)})},one:function(g,h,e){var f=M.event.proxy(e||h,function(i){M(this).unbind(i,f);return(e||h).apply(this,arguments)});return this.each(function(){M.event.add(this,g,f,e&&h)})},unbind:function(f,e){return this.each(function(){M.event.remove(this,f,e)})},trigger:function(e,f){return this.each(function(){M.event.trigger(e,f,this)})},triggerHandler:function(f,g){if(this[0]){var e=M.Event(f);e.preventDefault();e.stopPropagation();M.event.trigger(e,g,this[0]);return e.result}},toggle:function(e){var f=arguments,g=1;while(g<f.length){M.event.proxy(e,f[g++])}return this.click(M.event.proxy(e,function(h){this.lastToggle=(this.lastToggle||0)%g;h.preventDefault();return f[this.lastToggle++].apply(this,arguments)||false}))},hover:function(f,e){return this.mouseenter(f).mouseleave(e)},ready:function(e){b();if(M.isReady){e.call(document,M)}else{M.readyList.push(e)}return this},live:function(f,e){var g=M.event.proxy(e);g.guid+=this.selector+f;M(document).bind(P(f,this.selector),this.selector,g);return this},die:function(f,e){M(document).unbind(P(f,this.selector),e?{guid:e.guid+this.selector+f}:null);return this}});function d(e){var f=RegExp("(^|\\.)"+e.type+"(\\.|$)"),g=true,h=[];M.each(M.data(this,"events").live||[],function(l,j){if(f.test(j.type)){var k=M(e.target).closest(j.data)[0];if(k){h.push({elem:k,fn:j})}}});h.sort(function(i,j){return M.data(i.elem,"closest")-M.data(j.elem,"closest")});M.each(h,function(){if(this.fn.call(this.elem,e,this.fn.data)===false){return(g=false)}});return g}function P(e,f){return["live",e,f.replace(/\./g,"`").replace(/ /g,"|")].join(".")}M.extend({isReady:false,readyList:[],ready:function(){if(!M.isReady){M.isReady=true;if(M.readyList){M.each(M.readyList,function(){this.call(document,M)});M.readyList=null}M(document).triggerHandler("ready")}}});var c=false;function b(){if(c){return}c=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);M.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);M.ready()}});if(document.documentElement.doScroll&&S==S.top){(function(){if(M.isReady){return}try{document.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return}M.ready()})()}}}M.event.add(S,"load",M.ready)}M.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(f,e){M.fn[e]=function(g){return g?this.bind(e,g):this.trigger(e)}});M(S).bind("unload",function(){for(var e in M.cache){if(e!=1&&M.cache[e].handle){M.event.remove(M.cache[e].handle.elem)}}});(function(){M.support={};var g=document.documentElement,j=document.createElement("script"),f=document.createElement("div"),k="script"+(new Date).getTime();f.style.display="none";f.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 h=f.getElementsByTagName("*"),l=f.getElementsByTagName("a")[0];if(!h||!h.length||!l){return}M.support={leadingWhitespace:f.firstChild.nodeType==3,tbody:!f.getElementsByTagName("tbody").length,objectAll:!!f.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!f.getElementsByTagName("link").length,style:/red/.test(l.getAttribute("style")),hrefNormalized:l.getAttribute("href")==="/a",opacity:l.style.opacity==="0.5",cssFloat:!!l.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};j.type="text/javascript";try{j.appendChild(document.createTextNode("window."+k+"=1;"))}catch(i){}g.insertBefore(j,g.firstChild);if(S[k]){M.support.scriptEval=true;delete S[k]}g.removeChild(j);if(f.attachEvent&&f.fireEvent){f.attachEvent("onclick",function(){M.support.noCloneEvent=false;f.detachEvent("onclick",arguments.callee)});f.cloneNode(true).fireEvent("onclick")}M(function(){var e=document.createElement("div");e.style.width=e.style.paddingLeft="1px";document.body.appendChild(e);M.boxModel=M.support.boxModel=e.offsetWidth===2;document.body.removeChild(e).style.display="none"})})();var Y=M.support.cssFloat?"cssFloat":"styleFloat";M.props={"for":"htmlFor","class":"className","float":Y,cssFloat:Y,styleFloat:Y,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};M.fn.extend({_load:M.fn.load,load:function(h,e,k){if(typeof h!=="string"){return this._load(h)}var f=h.indexOf(" ");if(f>=0){var i=h.slice(f,h.length);h=h.slice(0,f)}var g="GET";if(e){if(M.isFunction(e)){k=e;e=null}else{if(typeof e==="object"){e=M.param(e);g="POST"}}}var j=this;M.ajax({url:h,type:g,dataType:"html",data:e,complete:function(m,l){if(l=="success"||l=="notmodified"){j.html(i?M("<div/>").append(m.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(i):m.responseText)}if(k){j.each(k,[m.responseText,l,m])}}});return this},serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?M.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(f,e){var g=M(this).val();return g==null?null:M.isArray(g)?M.map(g,function(j,h){return{name:e.name,value:j}}):{name:e.name,value:g}}).get()}});M.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(f,e){M.fn[e]=function(g){return this.bind(e,g)}});var K=A();M.extend({get:function(g,h,e,f){if(M.isFunction(h)){e=h;h=null}return M.ajax({type:"GET",url:g,data:h,success:e,dataType:f})},getScript:function(e,f){return M.get(e,null,f,"script")},getJSON:function(f,g,e){return M.get(f,g,e,"json")},post:function(g,h,e,f){if(M.isFunction(h)){e=h;h={}}return M.ajax({type:"POST",url:g,data:h,success:e,dataType:f})},ajaxSetup:function(e){M.extend(M.ajaxSettings,e)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return S.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=M.extend(true,l,M.extend(true,{},M.ajaxSettings,l));var g,p=/=\?(&|$)/g,m,n,h=l.type.toUpperCase();if(l.data&&l.processData&&typeof l.data!=="string"){l.data=M.param(l.data)}if(l.dataType=="jsonp"){if(h=="GET"){if(!l.url.match(p)){l.url+=(l.url.match(/\?/)?"&":"?")+(l.jsonp||"callback")+"=?"}}else{if(!l.data||!l.data.match(p)){l.data=(l.data?l.data+"&":"")+(l.jsonp||"callback")+"=?"}}l.dataType="json"}if(l.dataType=="json"&&(l.data&&l.data.match(p)||l.url.match(p))){g="jsonp"+K++;if(l.data){l.data=(l.data+"").replace(p,"="+g+"$1")}l.url=l.url.replace(p,"="+g+"$1");l.dataType="script";S[g]=function(s){n=s;q();u();S[g]=W;try{delete S[g]}catch(z){}if(y){y.removeChild(w)}}}if(l.dataType=="script"&&l.cache==null){l.cache=false}if(l.cache===false&&h=="GET"){var f=A();var k=l.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+f+"$2");l.url=k+((k==l.url)?(l.url.match(/\?/)?"&":"?")+"_="+f:"")}if(l.data&&h=="GET"){l.url+=(l.url.match(/\?/)?"&":"?")+l.data;l.data=null}if(l.global&&!M.active++){M.event.trigger("ajaxStart")}var x=/^(\w+:)?\/\/([^\/?#]+)/.exec(l.url);if(l.dataType=="script"&&h=="GET"&&x&&(x[1]&&x[1]!=location.protocol||x[2]!=location.host)){var y=document.getElementsByTagName("head")[0];var w=document.createElement("script");w.src=l.url;if(l.scriptCharset){w.charset=l.scriptCharset}if(!g){var j=false;w.onload=w.onreadystatechange=function(){if(!j&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){j=true;q();u();w.onload=w.onreadystatechange=null;y.removeChild(w)}}}y.appendChild(w);return W}var v=false;var i=l.xhr();if(l.username){i.open(h,l.url,l.async,l.username,l.password)}else{i.open(h,l.url,l.async)}try{if(l.data){i.setRequestHeader("Content-Type",l.contentType)}if(l.ifModified){i.setRequestHeader("If-Modified-Since",M.lastModified[l.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}i.setRequestHeader("X-Requested-With","XMLHttpRequest");i.setRequestHeader("Accept",l.dataType&&l.accepts[l.dataType]?l.accepts[l.dataType]+", */*":l.accepts._default)}catch(r){}if(l.beforeSend&&l.beforeSend(i,l)===false){if(l.global&&!--M.active){M.event.trigger("ajaxStop")}i.abort();return false}if(l.global){M.event.trigger("ajaxSend",[i,l])}var t=function(s){if(i.readyState==0){if(o){clearInterval(o);o=null;if(l.global&&!--M.active){M.event.trigger("ajaxStop")}}}else{if(!v&&i&&(i.readyState==4||s=="timeout")){v=true;if(o){clearInterval(o);o=null}m=s=="timeout"?"timeout":!M.httpSuccess(i)?"error":l.ifModified&&M.httpNotModified(i,l.url)?"notmodified":"success";if(m=="success"){try{n=M.httpData(i,l.dataType,l)}catch(Aa){m="parsererror"}}if(m=="success"){var z;try{z=i.getResponseHeader("Last-Modified")}catch(Aa){}if(l.ifModified&&z){M.lastModified[l.url]=z}if(!g){q()}}else{M.handleError(l,i,m)}u();if(s){i.abort()}if(l.async){i=null}}}};if(l.async){var o=setInterval(t,13);if(l.timeout>0){setTimeout(function(){if(i&&!v){t("timeout")}},l.timeout)}}try{i.send(l.data)}catch(r){M.handleError(l,i,null,r)}if(!l.async){t()}function q(){if(l.success){l.success(n,m)}if(l.global){M.event.trigger("ajaxSuccess",[i,l])}}function u(){if(l.complete){l.complete(i,m)}if(l.global){M.event.trigger("ajaxComplete",[i,l])}if(l.global&&!--M.active){M.event.trigger("ajaxStop")}}return i},handleError:function(f,i,g,h){if(f.error){f.error(i,g,h)}if(f.global){M.event.trigger("ajaxError",[i,f,h])}},active:0,httpSuccess:function(g){try{return!g.status&&location.protocol=="file:"||(g.status>=200&&g.status<300)||g.status==304||g.status==1223}catch(f){}return false},httpNotModified:function(i,g){try{var h=i.getResponseHeader("Last-Modified");return i.status==304||h==M.lastModified[g]}catch(f){}return false},httpData:function(i,g,e){var h=i.getResponseHeader("content-type"),f=g=="xml"||!g&&h&&h.indexOf("xml")>=0,j=f?i.responseXML:i.responseText;if(f&&j.documentElement.tagName=="parsererror"){throw"parsererror"}if(e&&e.dataFilter){j=e.dataFilter(j,g)}if(typeof j==="string"){if(g=="script"){M.globalEval(j)}if(g=="json"){j=S["eval"]("("+j+")")}}return j},param:function(g){var e=[];function f(j,i){e[e.length]=encodeURIComponent(j)+"="+encodeURIComponent(i)}if(M.isArray(g)||g.jquery){M.each(g,function(){f(this.name,this.value)})}else{for(var h in g){if(M.isArray(g[h])){M.each(g[h],function(){f(h,this)})}else{f(h,M.isFunction(g[h])?g[h]():g[h])}}}return e.join("&").replace(/%20/g,"+")}});var U={},B,I=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function V(f,g){var e={};M.each(I.concat.apply([],I.slice(0,g)),function(){e[this]=f});return e}M.fn.extend({show:function(h,n){if(h){return this.animate(V("show",3),h,n)}else{for(var e=0,f=this.length;e<f;e++){var j=M.data(this[e],"olddisplay");this[e].style.display=j||"";if(M.css(this[e],"display")==="none"){var g=this[e].tagName,k;if(U[g]){k=U[g]}else{var m=M("<"+g+" />").appendTo("body");k=m.css("display");if(k==="none"){k="block"}m.remove();U[g]=k}M.data(this[e],"olddisplay",k)}}for(var e=0,f=this.length;e<f;e++){this[e].style.display=M.data(this[e],"olddisplay")||""}return this}},hide:function(f,j){if(f){return this.animate(V("hide",3),f,j)}else{for(var h=0,g=this.length;h<g;h++){var e=M.data(this[h],"olddisplay");if(!e&&e!=="none"){M.data(this[h],"olddisplay",M.css(this[h],"display"))}}for(var h=0,g=this.length;h<g;h++){this[h].style.display="none"}return this}},_toggle:M.fn.toggle,toggle:function(e,f){var g=typeof e==="boolean";return M.isFunction(e)&&M.isFunction(f)?this._toggle.apply(this,arguments):e==null||g?this.each(function(){var h=g?e:M(this).is(":hidden");M(this)[h?"show":"hide"]()}):this.animate(V("toggle",3),e,f)},fadeTo:function(f,e,g){return this.animate({opacity:e},f,g)},animate:function(i,g,e,f){var h=M.speed(g,e,f);return this[h.queue===false?"each":"queue"](function(){var m=M.extend({},h),l,j=this.nodeType==1&&M(this).is(":hidden"),k=this;for(l in i){if(i[l]=="hide"&&j||i[l]=="show"&&!j){return m.complete.call(this)}if((l=="height"||l=="width")&&this.style){m.display=M.css(this,"display");m.overflow=this.style.overflow}}if(m.overflow!=null){this.style.overflow="hidden"}m.curAnim=M.extend({},i);M.each(i,function(n,t){var s=new M.fx(k,m,n);if(/toggle|show|hide/.test(t)){s[t=="toggle"?j?"show":"hide":t](i)}else{var r=t.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),p=s.cur(true)||0;if(r){var q=parseFloat(r[2]),o=r[3]||"px";if(o!="px"){k.style[n]=(q||1)+o;p=((q||1)/s.cur(true))*p;k.style[n]=p+o}if(r[1]){q=((r[1]=="-="?-1:1)*q)+p}s.custom(p,q,o)}else{s.custom(p,t,"")}}});return true})},stop:function(e,g){var f=M.timers;if(e){this.queue([])}this.each(function(){for(var h=f.length-1;h>=0;h--){if(f[h].elem==this){if(g){f[h](true)}f.splice(h,1)}}});if(!g){this.dequeue()}return this}});M.each({slideDown:V("show",1),slideUp:V("hide",1),slideToggle:V("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(f,e){M.fn[f]=function(g,h){return this.animate(e,g,h)}});M.extend({speed:function(g,f,e){var h=typeof g==="object"?g:{complete:e||!e&&f||M.isFunction(g)&&g,duration:g,easing:e&&f||f&&!M.isFunction(f)&&f};h.duration=M.fx.off?0:typeof h.duration==="number"?h.duration:M.fx.speeds[h.duration]||M.fx.speeds._default;h.old=h.complete;h.complete=function(){if(h.queue!==false){M(this).dequeue()}if(M.isFunction(h.old)){h.old.call(this)}};return h},easing:{linear:function(g,e,h,f){return h+f*g},swing:function(g,e,h,f){return((-Math.cos(g*Math.PI)/2)+0.5)*f+h}},timers:[],fx:function(e,f,g){this.options=f;this.elem=e;this.prop=g;if(!f.orig){f.orig={}}}});M.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(M.fx.step[this.prop]||M.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(f){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e=parseFloat(M.css(this.elem,this.prop,f));return e&&e>-10000?e:parseFloat(M.curCSS(this.elem,this.prop))||0},custom:function(e,f,g){this.startTime=A();this.start=e;this.end=f;this.unit=g||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=this;function i(j){return h.step(j)}i.elem=this.elem;if(i()&&M.timers.push(i)&&!B){B=setInterval(function(){var j=M.timers;for(var k=0;k<j.length;k++){if(!j[k]()){j.splice(k--,1)}}if(!j.length){clearInterval(B);B=W}},13)}},show:function(){this.options.orig[this.prop]=M.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());M(this.elem).show()},hide:function(){this.options.orig[this.prop]=M.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(j){var g=A();if(j||g>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var e=true;for(var h in this.options.curAnim){if(this.options.curAnim[h]!==true){e=false}}if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(M.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){M(this.elem).hide()}if(this.options.hide||this.options.show){for(var k in this.options.curAnim){M.attr(this.elem.style,k,this.options.orig[k])}}this.options.complete.call(this.elem)}return false}else{var f=g-this.startTime;this.state=f/this.options.duration;this.pos=M.easing[this.options.easing||(M.easing.swing?"swing":"linear")](this.state,f,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};M.extend(M.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){M.attr(e.elem.style,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});if(document.documentElement["getBoundingClientRect"]){M.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return M.offset.bodyOffset(this[0])}var e=this[0].getBoundingClientRect(),i=this[0].ownerDocument,l=i.body,j=i.documentElement,k=j.clientTop||l.clientTop||0,f=j.clientLeft||l.clientLeft||0,g=e.top+(self.pageYOffset||M.boxModel&&j.scrollTop||l.scrollTop)-k,h=e.left+(self.pageXOffset||M.boxModel&&j.scrollLeft||l.scrollLeft)-f;return{top:g,left:h}}}else{M.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return M.offset.bodyOffset(this[0])}M.offset.initialized||M.offset.initialize();var o=this[0],n=o.offsetParent,f=o,k=o.ownerDocument,e,l=k.documentElement,m=k.body,i=k.defaultView,j=i.getComputedStyle(o,null),g=o.offsetTop,h=o.offsetLeft;while((o=o.parentNode)&&o!==m&&o!==l){e=i.getComputedStyle(o,null);g-=o.scrollTop,h-=o.scrollLeft;if(o===n){g+=o.offsetTop,h+=o.offsetLeft;if(M.offset.doesNotAddBorder&&!(M.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(o.tagName))){g+=parseInt(e.borderTopWidth,10)||0,h+=parseInt(e.borderLeftWidth,10)||0}f=n,n=o.offsetParent}if(M.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"){g+=parseInt(e.borderTopWidth,10)||0,h+=parseInt(e.borderLeftWidth,10)||0}j=e}if(j.position==="relative"||j.position==="static"){g+=m.offsetTop,h+=m.offsetLeft}if(j.position==="fixed"){g+=Math.max(l.scrollTop,m.scrollTop),h+=Math.max(l.scrollLeft,m.scrollLeft)}return{top:g,left:h}}}M.offset={initialize:function(){if(this.initialized){return}var l=document.body,f=document.createElement("div"),n,i,e,m,j,g,k=l.style.marginTop,h='<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>';j={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(g in j){f.style[g]=j[g]}f.innerHTML=h;l.insertBefore(f,l.firstChild);n=f.firstChild,i=n.firstChild,m=n.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(i.offsetTop!==5);this.doesAddBorderForTableAndCells=(m.offsetTop===5);n.style.overflow="hidden",n.style.position="relative";this.subtractsBorderForOverflowNotVisible=(i.offsetTop===-5);l.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(l.offsetTop===0);l.style.marginTop=k;l.removeChild(f);this.initialized=true},bodyOffset:function(e){M.offset.initialized||M.offset.initialize();var f=e.offsetTop,g=e.offsetLeft;if(M.offset.doesNotIncludeMarginInBodyOffset){f+=parseInt(M.curCSS(e,"marginTop",true),10)||0,g+=parseInt(M.curCSS(e,"marginLeft",true),10)||0}return{top:f,left:g}}};M.fn.extend({position:function(){var h=0,f=0,i;if(this[0]){var j=this.offsetParent(),g=this.offset(),e=/^body|html$/i.test(j[0].tagName)?{top:0,left:0}:j.offset();g.top-=O(this,"marginTop");g.left-=O(this,"marginLeft");e.top+=O(j,"borderTopWidth");e.left+=O(j,"borderLeftWidth");i={top:g.top-e.top,left:g.left-e.left}}return i},offsetParent:function(){var e=this[0].offsetParent||document.body;while(e&&(!/^body|html$/i.test(e.tagName)&&M.css(e,"position")=="static")){e=e.offsetParent}return M(e)}});M.each(["Left","Top"],function(g,e){var f="scroll"+e;M.fn[f]=function(h){if(!this[0]){return null}return h!==W?this.each(function(){this==S||this==document?S.scrollTo(!g?h:M(S).scrollLeft(),g?h:M(S).scrollTop()):this[f]=h}):this[0]==S||this[0]==document?self[g?"pageYOffset":"pageXOffset"]||M.boxModel&&document.documentElement[f]||document.body[f]:this[0][f]}});M.each(["Height","Width"],function(h,f){var j=h?"Left":"Top",k=h?"Right":"Bottom",e=f.toLowerCase();M.fn["inner"+f]=function(){return this[0]?M.css(this[0],e,false,"padding"):null};M.fn["outer"+f]=function(i){return this[0]?M.css(this[0],e,false,i?"margin":"border"):null};var g=f.toLowerCase();M.fn[g]=function(i){return this[0]==S?document.compatMode=="CSS1Compat"&&document.documentElement["client"+f]||document.body["client"+f]:this[0]==document?Math.max(document.documentElement["client"+f],document.body["scroll"+f],document.documentElement["scroll"+f],document.body["offset"+f],document.documentElement["offset"+f]):i===W?(this.length?M.css(this[0],g):null):this.css(g,typeof i==="string"?i:i+"px")}})})();
(function(A){A.alerts={verticalOffset:-75,horizontalOffset:0,repositionOnResize:true,overlayOpacity:0.01,overlayColor:"#FFF",draggable:true,okButton:"&nbsp;OK&nbsp;",cancelButton:"&nbsp;Cancel&nbsp;",dialogClass:null,alert:function(C,B,D){if(B==null){B="Alert"}A.alerts._show(B,C,null,"alert",function(E){if(D){D(E)}})},confirm:function(C,B,D){if(B==null){B="Confirm"}A.alerts._show(B,C,null,"confirm",function(E){if(D){D(E)}})},prompt:function(D,B,C,E){if(C==null){C="Prompt"}A.alerts._show(C,D,B,"prompt",function(F){if(E){E(F)}})},_show:function(D,F,C,E,H){A.alerts._hide();A.alerts._overlay("show");A("BODY").append('<div id="popup_container"><h1 id="popup_title"></h1><div id="popup_content"><div id="popup_message"></div></div></div>');if(A.alerts.dialogClass){A("#popup_container").addClass(A.alerts.dialogClass)}var B=(A.browser.msie&&parseInt(A.browser.version)<=6)?"absolute":"fixed";A("#popup_container").css({position:B,zIndex:99999,padding:0,margin:0});A("#popup_title").text(D);A("#popup_content").addClass(E);A("#popup_message").text(F);A("#popup_message").html(A("#popup_message").text().replace(/\n/g,"<br />"));A("#popup_container").css({minWidth:A("#popup_container").outerWidth(),maxWidth:A("#popup_container").outerWidth()});A.alerts._reposition();A.alerts._maintainPosition(true);switch(E){case"alert":A("#popup_message").after('<div id="popup_panel"><input type="button" value="'+A.alerts.okButton+'" id="popup_ok" /></div>');A("#popup_ok").click(function(){A.alerts._hide();H(true)});A("#popup_ok").focus().keypress(function(I){if(I.keyCode==13||I.keyCode==27){A("#popup_ok").trigger("click")}});break;case"confirm":A("#popup_message").after('<div id="popup_panel"><input type="button" value="'+A.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+A.alerts.cancelButton+'" id="popup_cancel" /></div>');A("#popup_ok").click(function(){A.alerts._hide();if(H){H(true)}});A("#popup_cancel").click(function(){A.alerts._hide();if(H){H(false)}});A("#popup_ok").focus();A("#popup_ok, #popup_cancel").keypress(function(I){if(I.keyCode==13){A("#popup_ok").trigger("click")}if(I.keyCode==27){A("#popup_cancel").trigger("click")}});break;case"prompt":A("#popup_message").append('<br /><input type="text" size="30" id="popup_prompt" />').after('<div id="popup_panel"><input type="button" value="'+A.alerts.okButton+'" id="popup_ok" /> <input type="button" value="'+A.alerts.cancelButton+'" id="popup_cancel" /></div>');A("#popup_prompt").width(A("#popup_message").width());A("#popup_ok").click(function(){var I=A("#popup_prompt").val();A.alerts._hide();if(H){H(I)}});A("#popup_cancel").click(function(){A.alerts._hide();if(H){H(null)}});A("#popup_prompt, #popup_ok, #popup_cancel").keypress(function(I){if(I.keyCode==13){A("#popup_ok").trigger("click")}if(I.keyCode==27){A("#popup_cancel").trigger("click")}});if(C){A("#popup_prompt").val(C)}A("#popup_prompt").focus().select();break}if(A.alerts.draggable){try{A("#popup_container").draggable({handle:A("#popup_title")});A("#popup_title").css({cursor:"move"})}catch(G){}}},_hide:function(){A("#popup_container").remove();A.alerts._overlay("hide");A.alerts._maintainPosition(false)},_overlay:function(B){switch(B){case"show":A.alerts._overlay("hide");A("BODY").append('<div id="popup_overlay"></div>');A("#popup_overlay").css({position:"absolute",zIndex:99998,top:"0px",left:"0px",width:"100%",height:A(document).height(),background:A.alerts.overlayColor,opacity:A.alerts.overlayOpacity});break;case"hide":A("#popup_overlay").remove();break}},_reposition:function(){var B=((A(window).height()/2)-(A("#popup_container").outerHeight()/2))+A.alerts.verticalOffset;var C=((A(window).width()/2)-(A("#popup_container").outerWidth()/2))+A.alerts.horizontalOffset;if(B<0){B=0}if(C<0){C=0}if(A.browser.msie&&parseInt(A.browser.version)<=6){B=B+A(window).scrollTop()}A("#popup_container").css({top:B+"px",left:C+"px"});A("#popup_overlay").height(A(document).height())},_maintainPosition:function(B){if(A.alerts.repositionOnResize){switch(B){case true:A(window).bind("resize",A.alerts._reposition);break;case false:A(window).unbind("resize",A.alerts._reposition);break}}}};jAlert=function(C,B,D){A.alerts.alert(C,B,D)};jConfirm=function(C,B,D){A.alerts.confirm(C,B,D)};jPrompt=function(D,B,C,E){A.alerts.prompt(D,B,C,E)}})(jQuery);
var windowFocus=true;var username;var chatHeartbeatCount=0;var minChatHeartbeat=1000;var maxChatHeartbeat=33000;var chatHeartbeatTime=minChatHeartbeat;var originalTitle;var blinkOrder=0;var serverChat="/member/chat.aspx";var chatboxFocus=new Array();var newMessages=new Array();var newMessagesWin=new Array();var chatBoxes=new Array();var isSubscribed;$.expr[":"].asp=function(B,C,A){return(B.id&&B.id.match(A[3]+"$"))};$(document).ready(function(){if($("a:asp(LoginStatus1)").hasClass("subscribed")){isSubscribed=true}else{isSubscribed=false}originalTitle=document.title;startChatSession();$([window,document]).blur(function(){windowFocus=false}).focus(function(){windowFocus=true;document.title=originalTitle});$(".startChat").click(function(){var A=this;jConfirm("Are you sure ?","Jujeh",function(B){if(B==true){var C=$(A)[0].id;chatWith(C.substring(C.indexOf("ChatWith")+8))}});return false})});function restructureChatBoxes(){align=0;for(x in chatBoxes){chatboxtitle=chatBoxes[x];if($("#chatbox_"+chatboxtitle).css("display")!="none"){if(align==0){$("#chatbox_"+chatboxtitle).css("right","20px")}else{width=(align)*(225+7)+20;$("#chatbox_"+chatboxtitle).css("right",width+"px")}align++}}}function chatWith(A){createChatBox(A);$("#chatbox_"+A+" .chatboxtextarea").focus()}function createChatBox(A,B){if($("#chatbox_"+A).length>0){if($("#chatbox_"+A).css("display")=="none"){$("#chatbox_"+A).css("display","block");restructureChatBoxes()}$("#chatbox_"+A+" .chatboxtextarea").focus();return}if(!(isSubscribed)){$("<div />").attr("id","chatbox_"+A).addClass("chatbox").html('<div class="chatboxhead"><div class="chatboxtitle">'+A+'</div><div class="chatboxoptions"><a href="javascript:void(0)" onclick="javascript:toggleChatBoxGrowth(\''+A+'\')">-</a> <a href="javascript:void(0)" onclick="javascript:closeChatBox(\''+A+'\')">X</a></div><br clear="all"/></div><div class="chatboxcontent"></div><div class="chatboxinput"><input type="radio" name="and" value="I think we should both get subscriptions so we can message each other." onclick="javascript:return selectChatInput(event,this,\''+A+'\');"/>I think we should both get subscriptions so we can message each other.<br /><input type="radio" name="and" value="One of us has to be a paying member to send a message and I think the gentlemen should take initiative." onclick="javascript:return selectChatInput(event,this,\''+A+'\');"/>One of us has to be a paying member to send a message and I think the gentlemen should take initiative.<br /><input type="radio" name="and" value="Im broke and can not afford the $10 Subscription fee." onclick="javascript:return selectChatInput(event,this,\''+A+'\');"/>Im broke and can not afford the $10 Subscription fee.<br /><input type="radio" name="and" value="Im in the process of subscribing and will be writing you soon." onclick="javascript:return selectChatInput(event,this,\''+A+'\');"/>Im in the process of subscribing and will be writing you soon.<br /><input type="radio" name="and" value="I find this fun!" onclick="javascript:return selectChatInput(event,this,\''+A+'\');"/>I find this fun!<br /><input type="radio" name="and" value="I do not have a subscription and was hoping that you message me." onclick="javascript:return selectChatInput(event,this,\''+A+"');\"/>I do not have a subscription and was hoping that you message me.</div>").appendTo($("body"))}else{$("<div />").attr("id","chatbox_"+A).addClass("chatbox").html('<div class="chatboxhead"><div class="chatboxtitle">'+A+'</div><div class="chatboxoptions"><a href="javascript:void(0)" onclick="javascript:toggleChatBoxGrowth(\''+A+'\')">-</a> <a href="javascript:void(0)" onclick="javascript:closeChatBox(\''+A+'\')">X</a></div><br clear="all"/></div><div class="chatboxcontent"></div><div class="chatboxinput"><textarea class="chatboxtextarea" onkeydown="javascript:return checkChatBoxInputKey(event,this,\''+A+"');\"></textarea></div>").appendTo($("body"))}$("#chatbox_"+A).css("bottom","0px");chatBoxeslength=0;for(x in chatBoxes){if($("#chatbox_"+chatBoxes[x]).css("display")!="none"){chatBoxeslength++}}if(chatBoxeslength==0){$("#chatbox_"+A).css("right","20px")}else{width=(chatBoxeslength)*(225+7)+20;$("#chatbox_"+A).css("right",width+"px")}chatBoxes.push(A);if(B==1){minimizedChatBoxes=new Array();if($.cookie("chatbox_minimized")){minimizedChatBoxes=$.cookie("chatbox_minimized").split(/\|/)}minimize=0;for(j=0;j<minimizedChatBoxes.length;j++){if(minimizedChatBoxes[j]==A){minimize=1}}if(minimize==1){$("#chatbox_"+A+" .chatboxcontent").css("display","none");$("#chatbox_"+A+" .chatboxinput").css("display","none")}}chatboxFocus[A]=false;$("#chatbox_"+A+" .chatboxtextarea").blur(function(){chatboxFocus[A]=false;$("#chatbox_"+A+" .chatboxtextarea").removeClass("chatboxtextareaselected")}).focus(function(){chatboxFocus[A]=true;newMessages[A]=false;$("#chatbox_"+A+" .chatboxhead").removeClass("chatboxblink");$("#chatbox_"+A+" .chatboxtextarea").addClass("chatboxtextareaselected")});$("#chatbox_"+A).click(function(){if($("#chatbox_"+A+" .chatboxcontent").css("display")!="none"){$("#chatbox_"+A+" .chatboxtextarea").focus()}});$("#chatbox_"+A).show()}function chatHeartbeat(){var C=0;if(windowFocus==false){var B=0;var A=0;for(x in newMessagesWin){if(newMessagesWin[x]==true){++B;if(B>=blinkOrder){document.title=x+" says...";A=1;break}}}if(A==0){document.title=originalTitle;blinkOrder=0}else{++blinkOrder}}else{for(x in newMessagesWin){newMessagesWin[x]=false}}for(x in newMessages){if(newMessages[x]==true){if(chatboxFocus[x]==false){$("#chatbox_"+x+" .chatboxhead").toggleClass("chatboxblink")}}}$.ajax({url:serverChat+"?action=chatheartbeat",cache:false,dataType:"json",success:function(D){$.each(D.items,function(E,F){if(F){chatboxtitle=F.f;if($("#chatbox_"+chatboxtitle).length<=0){createChatBox(chatboxtitle)}if($("#chatbox_"+chatboxtitle).css("display")=="none"){$("#chatbox_"+chatboxtitle).css("display","block");restructureChatBoxes()}if(F.s==1){F.f=username}if(F.s==2){$("#chatbox_"+chatboxtitle+" .chatboxcontent").append('<div class="chatboxmessage"><span class="chatboxinfo">'+F.m+"</span></div>")}else{newMessages[chatboxtitle]=true;newMessagesWin[chatboxtitle]=true;$("#chatbox_"+chatboxtitle+" .chatboxcontent").append('<div class="chatboxmessage"><span class="chatboxmessagefrom">'+F.f+':&nbsp;&nbsp;</span><span class="chatboxmessagecontent">'+F.m+"</span></div>");if(!(isSubscribed)){$("#chatbox_"+chatboxtitle+" .chatboxcontent").append('<span class="chatboxNotSubscribed">You need to be a paid subscriber to respond, please click <a href="/member/subscribe.aspx">here</a> to subscriber to Jujeh.com</span>')}}$("#chatbox_"+chatboxtitle+" .chatboxcontent").scrollTop($("#chatbox_"+chatboxtitle+" .chatboxcontent")[0].scrollHeight);C+=1}});chatHeartbeatCount++;if(C>0){chatHeartbeatTime=minChatHeartbeat;chatHeartbeatCount=1}else{if(chatHeartbeatCount>=10){chatHeartbeatTime*=2;chatHeartbeatCount=1;if(chatHeartbeatTime>maxChatHeartbeat){chatHeartbeatTime=maxChatHeartbeat}}}setTimeout("chatHeartbeat();",chatHeartbeatTime)}})}function closeChatBox(A){$("#chatbox_"+A).css("display","none");restructureChatBoxes();$.post(serverChat+"?action=closechat",{chatbox:A},function(B){})}function toggleChatBoxGrowth(A){if($("#chatbox_"+A+" .chatboxcontent").css("display")=="none"){var B=new Array();if($.cookie("chatbox_minimized")){B=$.cookie("chatbox_minimized").split(/\|/)}var C="";for(i=0;i<B.length;i++){if(B[i]!=A){C+=A+"|"}}C=C.slice(0,-1);$.cookie("chatbox_minimized",C);$("#chatbox_"+A+" .chatboxcontent").css("display","block");$("#chatbox_"+A+" .chatboxinput").css("display","block");$("#chatbox_"+A+" .chatboxcontent").scrollTop($("#chatbox_"+A+" .chatboxcontent")[0].scrollHeight)}else{var C=A;if($.cookie("chatbox_minimized")){C+="|"+$.cookie("chatbox_minimized")}$.cookie("chatbox_minimized",C);$("#chatbox_"+A+" .chatboxcontent").css("display","none");$("#chatbox_"+A+" .chatboxinput").css("display","none")}}function selectChatInput(B,A,C){checkChatBoxInputKey(B,A,C)}function checkChatBoxInputKey(C,A,D){if((C.keyCode==13&&C.shiftKey==0)||!(isSubscribed)){message="";message=$(A).val();message=message.replace(/^\s+|\s+$/g,"");$(A).val("");$(A).focus();if(isSubscribed){$(A).css("height","44px")}if(message!=""){$.post(serverChat+"?action=sendchat",{to:D,message:message},function(F){message=message.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;");$("#chatbox_"+D+" .chatboxcontent").append('<div class="chatboxmessage"><span class="chatboxmessagefrom">'+username+':&nbsp;&nbsp;</span><span class="chatboxmessagecontent">'+message+"</span></div>");$("#chatbox_"+D+" .chatboxcontent").scrollTop($("#chatbox_"+D+" .chatboxcontent")[0].scrollHeight)})}chatHeartbeatTime=minChatHeartbeat;chatHeartbeatCount=1;return false}var E=A.clientHeight;var B=94;if(B>E){E=Math.max(A.scrollHeight,E);if(B){E=Math.min(B,E)}if(E>A.clientHeight){$(A).css("height",E+8+"px")}}else{$(A).css("overflow","auto")}}function startChatSession(){$.ajax({url:serverChat+"?action=startchatsession",cache:false,dataType:"json",success:function(A){username=A.username;$.each(A.items,function(B,C){if(C){chatboxtitle=C.f;if($("#chatbox_"+chatboxtitle).length<=0){createChatBox(chatboxtitle,1)}if(C.s==1){C.f=username}if(C.s==2){$("#chatbox_"+chatboxtitle+" .chatboxcontent").append('<div class="chatboxmessage"><span class="chatboxinfo">'+C.m+"</span></div>")}else{$("#chatbox_"+chatboxtitle+" .chatboxcontent").append('<div class="chatboxmessage"><span class="chatboxmessagefrom">'+C.f+':&nbsp;&nbsp;</span><span class="chatboxmessagecontent">'+C.m+"</span></div>")}}});for(i=0;i<chatBoxes.length;i++){chatboxtitle=chatBoxes[i];$("#chatbox_"+chatboxtitle+" .chatboxcontent").scrollTop($("#chatbox_"+chatboxtitle+" .chatboxcontent")[0].scrollHeight);setTimeout('$("#chatbox_"+chatboxtitle+" .chatboxcontent").scrollTop($("#chatbox_"+chatboxtitle+" .chatboxcontent")[0].scrollHeight);',100)}setTimeout("chatHeartbeat();",chatHeartbeatTime)}})}(function(A){A.cookie=function(I,E,B){if(typeof E!="undefined"){B=B||{};if(E===null){E="";B.expires=-1}var H="";if(B.expires&&(typeof B.expires=="number"||B.expires.toUTCString)){var C;if(typeof B.expires=="number"){C=new Date();C.setTime(C.getTime()+(B.expires*24*60*60*1000))}else{C=B.expires}H="; expires="+C.toUTCString()}var L=B.path?"; path="+(B.path):"";var D=B.domain?"; domain="+(B.domain):"";var J=B.secure?"; secure":"";document.cookie=[I,"=",encodeURIComponent(E),H,L,D,J].join("")}else{var G=null;if(document.cookie&&document.cookie!=""){var M=document.cookie.split(";");for(var K=0;K<M.length;K++){var F=jQuery.trim(M[K]);if(F.substring(0,I.length+1)==(I+"=")){G=decodeURIComponent(F.substring(I.length+1));break}}}return G}}})(jQuery);
jQuery(function(M){var t=navigator.userAgent.toLowerCase();var j=(t.match(/.+(?:rv|webkit|khtml|opera|msie)[\/: ]([\d.]+)/)||[0,"0"])[1];var Ad=(/msie/.test(t)&&!/opera/.test(t)&&parseInt(j)<7&&!window.XMLHttpRequest);var d=M("body");var s;var Z=false;var O={};var f=false;var Ah;var I;var K={started:false,ready:false,dataReady:false,anim:false,animContent:false,loadingShown:false,transition:false,resizing:false,closing:false,error:false,blocker:null,blockerVars:null,full:null,bg:null,loading:null,tmp:null,content:null,wrapper:null,contentWrapper:null,scripts:new Array(),scriptsShown:new Array()};var D={width:false,height:false,windowResizing:false};var p={width:null,height:null,windowResizing:true};var x;M.fn.nyroModal=function(Aj){if(!this){return false}return this.each(function(){var Ak=M(this);if(this.nodeName.toLowerCase()=="form"){Ak.unbind("submit.nyroModal").bind("submit.nyroModal",function(Al){if(Al.isDefaultPrevented()){return false}if(Ak.data("nyroModalprocessing")){return true}if(this.enctype=="multipart/form-data"){S(M.extend(Aj,{from:this}));return true}Al.preventDefault();S(M.extend(Aj,{from:this}));return false})}else{Ak.unbind("click.nyroModal").bind("click.nyroModal",function(Al){if(Al.isDefaultPrevented()){return false}Al.preventDefault();S(M.extend(Aj,{from:this}));return false})}})};M.fn.nyroModalManual=function(Aj){if(!this.length){S(Aj)}return this.each(function(){S(M.extend(Aj,{from:this}))})};M.nyroModalManual=function(Aj){S(Aj)};M.nyroModalSettings=function(Ak,Al,Aj){C(Ak,Al,Aj);if(!Al&&K.started){if(K.bg&&Ak.bgColor){s.updateBgColor(K,s,function(){})}if(K.contentWrapper&&Ak.title){m()}if(!K.error&&(Ak.windowResizing||(!K.resizing&&(("width"in Ak&&Ak.width==s.width)||("height"in Ak&&Ak.height==s.height))))){K.resizing=true;if(K.contentWrapper){Y(true)}if(K.contentWrapper&&K.contentWrapper.is(":visible")&&!K.animContent){if(f){K.content.css({position:""})}s.resize(K,s,function(){s.windowResizing=false;K.resizing=false;if(f){K.content.css({position:"fixed"})}if(M.isFunction(s.endResize)){s.endResize(K,s)}})}}}};M.nyroModalRemove=function(){e()};M.nyroModalNext=function(){var Aj=Af(1);if(Aj){return Aj.nyroModalManual(c())}return false};M.nyroModalPrev=function(){var Aj=Af(-1);if(Aj){return Aj.nyroModalManual(c())}return false};M.fn.nyroModal.settings={debug:false,blocker:false,modal:false,type:"",forceType:null,from:"",hash:"",processHandler:null,selIndicator:"nyroModalSel",formIndicator:"nyroModal",content:null,bgColor:"#000000",ajax:{},swf:{wmode:"transparent"},width:null,height:null,minWidth:400,minHeight:300,resizable:true,autoSizable:true,padding:25,regexImg:"[^.].(jpg|jpeg|png|tiff|gif|bmp)s*$",addImageDivTitle:false,defaultImgAlt:"Image",setWidthImgTitle:true,ltr:true,gallery:null,galleryLinks:'<a href="#" class="nyroModalPrev">Prev</a><a href="#"  class="nyroModalNext">Next</a>',galleryCounts:F,zIndexStart:100,css:{bg:{position:"absolute",overflow:"hidden",top:0,left:0,height:"100%",width:"100%"},wrapper:{position:"absolute",top:"50%",left:"50%"},wrapper2:{},content:{overflow:"hidden"},loading:{position:"absolute",top:"50%",left:"50%",marginTop:"-50px",marginLeft:"-50px"}},wrap:{div:'<div class="wrapper"></div>',ajax:'<div class="wrapper"></div>',form:'<div class="wrapper"></div>',formData:'<div class="wrapper"></div>',image:'<div class="wrapperImg"></div>',swf:'<div class="wrapperSwf"></div>',iframe:'<div class="wrapperIframe"></div>',iframeForm:'<div class="wrapperIframe"></div>',manual:'<div class="wrapper"></div>'},closeButton:'<a href="#" class="nyroModalClose" id="closeBut" title="close">Close</a>',title:null,titleFromIframe:true,openSelector:".nyroModal",closeSelector:".nyroModalClose",contentLoading:'<a href="#" class="nyroModalClose">Cancel</a>',errorClass:"error",contentError:'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close</a>',handleError:null,showBackground:Aa,hideBackground:i,endFillContent:null,showContent:H,endShowContent:null,beforeHideContent:null,hideContent:n,showTransition:r,hideTransition:R,showLoading:w,hideLoading:g,resize:l,endResize:null,updateBgColor:W,endRemove:null};function S(As){if(K.loadingShown||K.transition||K.anim){return}X("processModal");K.started=true;y(As);if(!K.full){K.blockerVars=K.blocker=null}K.error=false;K.closing=false;K.dataReady=false;K.scripts=new Array();K.scriptsShown=new Array();s.type=A();if(s.forceType){if(!s.content){s.from=true}s.type=s.forceType;s.forceType=null}if(M.isFunction(s.processHandler)){s.processHandler(s)}var An=s.from;var Ak=s.url;p.width=s.width;p.height=s.height;if(s.type=="swf"){C({overflow:"hidden"},"css","content");s.content='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+s.width+'" height="'+s.height+'"><param name="movie" value="'+Ak+'"></param>';var Al="";M.each(s.swf,function(At,Au){s.content+='<param name="'+At+'" value="'+Au+'"></param>';Al+=" "+At+'="'+Au+'"'});s.content+='<embed src="'+Ak+'" type="application/x-shockwave-flash" width="'+s.width+'" height="'+s.height+'"'+Al+"></embed></object>"}if(An){var Ap=M(An).blur();if(s.type=="form"){var Am=M(An).serializeArray();Am.push({name:s.formIndicator,value:1});if(s.selector){Am.push({name:s.selIndicator,value:s.selector.substring(1)})}M.ajax(M.extend({},s.ajax,{url:Ak,data:Am,type:Ap.attr("method")?Ap.attr("method"):"get",success:Ae,error:G}));X("Form Ajax Load: "+Ap.attr("action"));L()}else{if(s.type=="formData"){a();Ap.attr("target","nyroModalIframe");Ap.attr("action",Ak);Ap.prepend('<input type="hidden" name="'+s.formIndicator+'" value="1" />');if(s.selector){Ap.prepend('<input type="hidden" name="'+s.selIndicator+'" value="'+s.selector.substring(1)+'" />')}K.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:\'\';"></iframe>');M("iframe",K.tmp).css({width:s.width,height:s.height}).error(G).load(J);X("Form Data Load: "+Ap.attr("action"));L();V()}else{if(s.type=="image"){X("Image Load: "+Ak);var Ao=Ap.attr("title")||s.defaultImgAlt;a();K.tmp.html('<img id="nyroModalImg" />').find("img").attr("alt",Ao);K.tmp.css({lineHeight:0});M("img",K.tmp).error(G).load(function(){X("Image Loaded: "+this.src);M(this).unbind("load");var At=K.tmp.width();var Au=K.tmp.height();K.tmp.css({lineHeight:""});D.width=At;D.height=Au;C({width:At,height:Au,imgWidth:At,imgHeight:Au});p.width=At;p.height=Au;C({overflow:"hidden"},"css","content");K.dataReady=true;if(K.loadingShown||K.transition){V()}}).attr("src",Ak);L()}else{if(s.type=="iframeForm"){a();K.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"></iframe>');X("Iframe Form Load: "+Ak);M("iframe",K.tmp).eq(0).css({width:"100%",height:M.support.boxModel?"99%":"100%"}).load(Ag);K.dataReady=true;L()}else{if(s.type=="iframe"){a();K.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"></iframe>');X("Iframe Load: "+Ak);M("iframe",K.tmp).eq(0).css({width:"100%",height:M.support.boxModel?"99%":"100%"}).load(Ag);K.dataReady=true;L()}else{if(s.type){X("Content: "+s.type);a();K.tmp.html(s.content);var Ar=K.tmp.width();var Aq=K.tmp.height();var Aj=M(s.type);if(Aj.length){C({type:"div"});Ar=Aj.width();Aq=Aj.height();if(Ah){I=Ah}Ah=Aj;K.tmp.append(Aj.contents())}p.width=Ar;p.height=Aq;C({width:Ar,height:Aq});if(K.tmp.html()){K.dataReady=true}else{G()}if(!K.ready){L()}else{Ai()}}else{X("Ajax Load: "+Ak);C({type:"ajax"});var Am=s.ajax.data||{};if(s.selector){if(typeof Am=="string"){Am+="&"+s.selIndicator+"="+s.selector.substring(1)}else{Am[s.selIndicator]=s.selector.substring(1)}}M.ajax(M.extend(true,s.ajax,{url:Ak,success:Ae,error:G,data:Am}));L()}}}}}}}else{if(s.content){X("Content: "+s.type);C({type:"manual"});a();K.tmp.html(M("<div/>").html(s.content).contents());if(K.tmp.html()){K.dataReady=true}else{G()}L()}else{}}}function y(Aj){X("setDefaultCurrentSettings");s=M.extend(true,{},M.fn.nyroModal.settings,Aj);s.selector="";s.borderW=0;s.borderH=0;s.resizable=true;Q()}function C(Ak,Al,Aj){if(K.started){if(Al&&Aj){M.extend(true,s[Al][Aj],Ak)}else{if(Al){M.extend(true,s[Al],Ak)}else{if(K.animContent){if("width"in Ak){if(!K.resizing){Ak.setWidth=Ak.width;Z=true}delete Ak["width"]}if("height"in Ak){if(!K.resizing){Ak.setHeight=Ak.height;Z=true}delete Ak["height"]}}M.extend(true,s,Ak)}}}else{if(Al&&Aj){M.extend(true,M.fn.nyroModal.settings[Al][Aj],Ak)}else{if(Al){M.extend(true,M.fn.nyroModal.settings[Al],Ak)}else{M.extend(true,M.fn.nyroModal.settings,Ak)}}}}function h(){if(Ad&&!K.blocker){if(document.documentElement){s.marginScrollLeft=document.documentElement.scrollLeft;s.marginScrollTop=document.documentElement.scrollTop}else{s.marginScrollLeft=document.body.scrollLeft;s.marginScrollTop=document.body.scrollTop}}else{s.marginScrollLeft=0;s.marginScrollTop=0}}function Q(){h();s.marginLeft=-(s.width+s.borderW)/2;s.marginTop=-(s.height+s.borderH)/2;if(!K.blocker){s.marginLeft+=s.marginScrollLeft;s.marginTop+=s.marginScrollTop}}function k(){h();var Aj=B(K.loading);s.marginTopLoading=-(K.loading.height()+Aj.h.border+Aj.h.padding)/2;s.marginLeftLoading=-(K.loading.width()+Aj.w.border+Aj.w.padding)/2;if(!K.blocker){s.marginLefttLoading+=s.marginScrollLeft;s.marginTopLoading+=s.marginScrollTop}}function m(){var Aj=M("h1#nyroModalTitle",K.contentWrapper);if(Aj.length){Aj.text(s.title)}else{K.contentWrapper.prepend('<h1 id="nyroModalTitle">'+s.title+"</h1>")}}function a(){X("initModal");if(!K.full){if(s.debug){C({color:"white"},"css","bg")}var Aj={zIndex:s.zIndexStart,position:"fixed",top:0,left:0,width:"100%",height:"100%"};var Ao=d;var Am="";if(s.blocker){K.blocker=Ao=M(s.blocker);var An=K.blocker.offset();var Ap=K.blocker.outerWidth();var Aq=K.blocker.outerHeight();if(Ad){C({height:"100%",width:"100%",top:0,left:0},"css","bg")}K.blockerVars={top:An.top,left:An.left,width:Ap,height:Aq};var Ak=(/msie/.test(t)?0:u(d.get(0),"borderTopWidth"));var Al=(/msie/.test(t)?0:u(d.get(0),"borderLeftWidth"));Aj={position:"absolute",top:An.top+Ak,left:An.left+Al,width:Ap,height:Aq}}else{if(Ad){d.css({height:"130%",width:"130%",position:"static",overflow:"hidden"});M("html").css({overflow:"hidden"});C({css:{bg:{position:"absolute",zIndex:s.zIndexStart+1,height:"110%",width:"110%",top:s.marginScrollTop+"px",left:s.marginScrollLeft+"px"},wrapper:{zIndex:s.zIndexStart+2},loading:{zIndex:s.zIndexStart+3}}});Am=M('<iframe id="nyroModalIframeHideIe" src="javascript:\'\';"></iframe>').css(M.extend({},s.css.bg,{opacity:0,zIndex:50,border:"none"}))}}Ao.append(M('<div id="nyroModalFull"><div id="nyroModalBg"></div><div id="nyroModalWrapper"><div id="nyroModalContent"></div></div><div id="nyrModalTmp"></div><div id="nyroModalLoading"></div></div>').hide());K.full=M("#nyroModalFull").css(Aj).show();K.bg=M("#nyroModalBg").css(M.extend({backgroundColor:s.bgColor},s.css.bg)).before(Am);if(!s.modal){K.bg.click(e)}K.loading=M("#nyroModalLoading").css(s.css.loading).hide();K.contentWrapper=M("#nyroModalWrapper").css(s.css.wrapper).hide();K.content=M("#nyroModalContent");K.tmp=M("#nyrModalTmp").hide();if(M.isFunction(M.fn.mousewheel)){K.content.mousewheel(function(At,As){var Ar=K.content.get(0);if((As>0&&Ar.scrollTop==0)||(As<0&&Ar.scrollHeight-Ar.scrollTop==Ar.clientHeight)){At.preventDefault();At.stopPropagation()}})}M(document).bind("keydown.nyroModal",T);K.content.css({width:"auto",height:"auto"});K.contentWrapper.css({width:"auto",height:"auto"});if(!s.blocker){M(window).bind("resize.nyroModal",function(){window.clearTimeout(x);x=window.setTimeout(Ab,200)})}}}function Ab(){M.nyroModalSettings(p)}function L(){X("showModal");if(!K.ready){a();K.anim=true;s.showBackground(K,s,Ac)}else{K.anim=true;K.transition=true;s.showTransition(K,s,function(){Ai();K.anim=false;V()})}}function T(Aj){if(Aj.keyCode==27){if(!s.modal){e()}}else{if(s.gallery&&K.ready&&K.dataReady&&!K.anim&&!K.transition){if(Aj.keyCode==39||Aj.keyCode==40){Aj.preventDefault();M.nyroModalNext();return false}else{if(Aj.keyCode==37||Aj.keyCode==38){Aj.preventDefault();M.nyroModalPrev();return false}}}}}function A(){var An=s.from;var Ak;if(An&&An.nodeName){var Ao=M(An);Ak=Ao.attr(An.nodeName.toLowerCase()=="form"?"action":"href");if(!Ak){Ak=location.href.substring(window.location.host.length+7)}s.url=Ak;if(Ao.attr("rev")=="modal"){s.modal=true}s.title=Ao.attr("title");if(An&&An.rel&&An.rel.toLowerCase()!="nofollow"){var Aj=An.rel.indexOf(" ");s.gallery=Aj>0?An.rel.substr(0,Aj):An.rel}var Aq=q(Ak,An);if(Aq){return Aq}if(z(Ak)){return"swf"}var Am=false;if(An.target&&An.target.toLowerCase()=="_blank"||(An.hostname&&An.hostname.replace(/:\d*$/,"")!=window.location.hostname.replace(/:\d*$/,""))){Am=true}if(An.nodeName.toLowerCase()=="form"){if(Am){return"iframeForm"}C(N(Ak));if(Ao.attr("enctype")=="multipart/form-data"){return"formData"}return"form"}if(Am){return"iframe"}}else{Ak=s.url;if(!s.content){s.from=true}if(!Ak){return null}if(z(Ak)){return"swf"}var Ap=new RegExp("^http://|https://","g");if(Ak.match(Ap)){return"iframe"}}var Aq=q(Ak,An);if(Aq){return Aq}var Al=N(Ak);C(Al);if(!Al.url){return Al.selector}}function q(Ak,Aj){var Al=new RegExp(s.regexImg,"i");if(Al.test(Ak)){return"image"}}function z(Aj){var Ak=new RegExp("[^.].(swf)s*$","i");return Ak.test(Aj)}function N(Al){var Ao={url:null,selector:null};if(Al){var Aj=v(Al);var An=v(window.location.href);var Am=window.location.href.substring(0,window.location.href.length-An.length);var Ak=Al.substring(0,Al.length-Aj.length);if(Ak==Am||Ak==M("base").attr("href")){Ao.selector=Aj}else{Ao.url=Ak;Ao.selector=Aj}}return Ao}function G(){X("loadingError");K.error=true;if(!K.ready){return}if(M.isFunction(s.handleError)){s.handleError(K,s)}K.loading.addClass(s.errorClass).html(s.contentError);M(s.closeSelector,K.loading).unbind("click.nyroModal").bind("click.nyroModal",e);k();K.loading.css({marginTop:s.marginTopLoading+"px",marginLeft:s.marginLeftLoading+"px"})}function P(){X("fillContent");if(!K.tmp.html()){return}K.content.html(K.tmp.contents());K.tmp.empty();E();if(s.type=="iframeForm"){M(s.from).attr("target","nyroModalIframe").data("nyroModalprocessing",1).submit().attr("target","_blank").removeData("nyroModalprocessing")}if(!s.modal){K.wrapper.prepend(s.closeButton)}if(M.isFunction(s.endFillContent)){s.endFillContent(K,s)}K.content.append(K.scripts);M(s.closeSelector,K.contentWrapper).unbind("click.nyroModal").bind("click.nyroModal",e);M(s.openSelector,K.contentWrapper).nyroModal(c())}function c(){var Aj=M.extend(true,{},s);if(D.width){Aj.width=null}else{Aj.width=p.width}if(D.height){Aj.height=null}else{Aj.height=p.height}Aj.css.content.overflow="auto";return Aj}function E(){X("wrapContent");var Ao=M(s.wrap[s.type]);K.content.append(Ao.children().remove());K.contentWrapper.wrapInner(Ao);if(s.gallery){K.content.append(s.galleryLinks);O.links=M('[rel="'+s.gallery+'"], [rel^="'+s.gallery+' "]');O.index=O.links.index(s.from);if(s.galleryCounts&&M.isFunction(s.galleryCounts)){s.galleryCounts(O.index+1,O.links.length,K,s)}var Al=c();var Aj=Af(-1);if(Aj){var An=M(".nyroModalPrev",K.contentWrapper).attr("href",Aj.attr("href")).click(function(Ap){Ap.preventDefault();M.nyroModalPrev();return false});if(Ad&&s.type=="swf"){An.before(M('<iframe id="nyroModalIframeHideIeGalleryPrev" src="javascript:\'\';"></iframe>').css({position:An.css("position"),top:An.css("top"),left:An.css("left"),width:An.width(),height:An.height(),opacity:0,border:"none"}))}}else{M(".nyroModalPrev",K.contentWrapper).remove()}var Ak=Af(1);if(Ak){var Am=M(".nyroModalNext",K.contentWrapper).attr("href",Ak.attr("href")).click(function(Ap){Ap.preventDefault();M.nyroModalNext();return false});if(Ad&&s.type=="swf"){Am.before(M('<iframe id="nyroModalIframeHideIeGalleryNext" src="javascript:\'\';"></iframe>').css(M.extend({},{position:Am.css("position"),top:Am.css("top"),left:Am.css("left"),width:Am.width(),height:Am.height(),opacity:0,border:"none"})))}}else{M(".nyroModalNext",K.contentWrapper).remove()}}Y()}function Af(Aj){if(s.gallery){if(!s.ltr){Aj*=-1}var Ak=O.index+Aj;if(Ak>=0&&Ak<O.links.length){return O.links.eq(Ak)}}return false}function Y(Aj){X("calculateSize");K.wrapper=K.contentWrapper.children("div:first");D.width=false;D.height=false;if(false&&!s.windowResizing){p.width=s.width;p.height=s.height}if(s.autoSizable&&(!s.width||!s.height)){K.contentWrapper.css({opacity:0,width:"auto",height:"auto"}).show();var An={width:"auto",height:"auto"};if(s.width){An.width=s.width}else{if(s.type=="iframe"){An.width=s.minWidth}}if(s.height){An.height=s.height}else{if(s.type=="iframe"){An.height=s.minHeight}}K.content.css(An);if(!s.width){s.width=K.content.outerWidth(true);D.width=true}if(!s.height){s.height=K.content.outerHeight(true);D.height=true}K.contentWrapper.css({opacity:1});if(!Aj){K.contentWrapper.hide()}}if(s.type!="image"&&s.type!="swf"){s.width=Math.max(s.width,s.minWidth);s.height=Math.max(s.height,s.minHeight)}var Ao=B(K.contentWrapper);var Am=B(K.wrapper);var Ar=B(K.content);var An={content:{width:s.width,height:s.height},wrapper2:{width:s.width+Ar.w.total,height:s.height+Ar.h.total},wrapper:{width:s.width+Ar.w.total+Am.w.total,height:s.height+Ar.h.total+Am.h.total}};if(s.resizable){var Al=K.blockerVars?K.blockerVars.height:M(window).height()-Ao.h.border-(An.wrapper.height-s.height);var Av=K.blockerVars?K.blockerVars.width:M(window).width()-Ao.w.border-(An.wrapper.width-s.width);Al-=s.padding*2;Av-=s.padding*2;if(An.content.height>Al||An.content.width>Av){if(s.type=="image"||s.type=="swf"){var Ak=s.imgWidth?s.imgWidth:s.width;var Ap=s.imgHeight?s.imgHeight:s.height;var As=An.content.width-Ak;var At=An.content.height-Ap;if(At<0){At=0}if(As<0){As=0}var Ax=Al-At;var Au=Av-As;var Aw=Math.min(Ax/Ap,Au/Ak);Au=Math.floor(Ak*Aw);Ax=Math.floor(Ap*Aw);An.content.height=Ax+At;An.content.width=Au+As}else{An.content.height=Math.min(An.content.height,Al);An.content.width=Math.min(An.content.width,Av)}An.wrapper2={width:An.content.width+Ar.w.total,height:An.content.height+Ar.h.total};An.wrapper={width:An.content.width+Ar.w.total+Am.w.total,height:An.content.height+Ar.h.total+Am.h.total}}}if(s.type=="swf"){M("object, embed",K.content).attr("width",An.content.width).attr("height",An.content.height)}else{if(s.type=="image"){M("img",K.content).css({width:An.content.width,height:An.content.height})}}K.content.css(M.extend({},An.content,s.css.content));K.wrapper.css(M.extend({},An.wrapper2,s.css.wrapper2));if(!Aj){K.contentWrapper.css(M.extend({},An.wrapper,s.css.wrapper))}if(s.type=="image"&&s.addImageDivTitle){M("img",K.content).removeAttr("alt");var Aq=M("div",K.content);if(s.title!=s.defaultImgAlt&&s.title){if(Aq.length==0){Aq=M("<div>"+s.title+"</div>");K.content.append(Aq)}if(s.setWidthImgTitle){var Ay=B(Aq);Aq.css({width:(An.content.width+Ar.w.padding-Ay.w.total)+"px"})}}else{if(Aq.length=0){Aq.remove()}}}if(s.title){m()}An.wrapper.borderW=Ao.w.border;An.wrapper.borderH=Ao.h.border;C(An.wrapper);Q()}function e(Aj){X("removeModal");if(Aj){Aj.preventDefault()}if(K.full&&K.ready){M(document).unbind("keydown.nyroModal");if(!s.blocker){M(window).unbind("resize.nyroModal")}K.ready=false;K.anim=true;K.closing=true;if(K.loadingShown||K.transition){s.hideLoading(K,s,function(){K.loading.hide();K.loadingShown=false;K.transition=false;s.hideBackground(K,s,o)})}else{if(f){K.content.css({position:""})}K.wrapper.css({overflow:"hidden"});K.content.css({overflow:"hidden"});if(M.isFunction(s.beforeHideContent)){s.beforeHideContent(K,s,function(){s.hideContent(K,s,function(){Ai();s.hideBackground(K,s,o)})})}else{s.hideContent(K,s,function(){Ai();s.hideBackground(K,s,o)})}}}if(Aj){return false}}function V(){X("showContentOrLoading");if(K.ready&&!K.anim){if(K.dataReady){if(K.tmp.html()){K.anim=true;if(K.transition){P();K.animContent=true;s.hideTransition(K,s,function(){K.loading.hide();K.transition=false;K.loadingShown=false;b()})}else{s.hideLoading(K,s,function(){K.loading.hide();K.loadingShown=false;P();k();Q();K.animContent=true;s.showContent(K,s,b)})}}}else{if(!K.loadingShown&&!K.transition){K.anim=true;K.loadingShown=true;if(K.error){G()}else{K.loading.html(s.contentLoading)}M(s.closeSelector,K.loading).unbind("click.nyroModal").bind("click.nyroModal",e);k();s.showLoading(K,s,function(){K.anim=false;V()})}}}}function Ae(Aj){X("AjaxLoaded: "+this.url);K.tmp.html(s.selector?U(M("<div>"+Aj+"</div>").find(s.selector).contents()):U(Aj));if(K.tmp.html()){K.dataReady=true;V()}else{G()}}function J(){X("formDataLoaded");var Al=M(s.from);Al.attr("action",Al.attr("action")+s.selector);Al.attr("target","");M("input[name="+s.formIndicator+"]",s.from).remove();var Aj=K.tmp.children("iframe");var Ak=Aj.unbind("load").contents().find(s.selector||"body").not("script[src]");Aj.attr("src","about:blank");K.tmp.html(Ak.html());if(K.tmp.html()){K.dataReady=true;V()}else{G()}}function Ag(){if((window.location.hostname&&s.url.indexOf(window.location.hostname)>-1)||s.url.indexOf("http://")){var Ak=M("iframe",K.full).contents();var Am={};if(s.titleFromIframe){Am.title=Ak.find("title").text()}if(!Am.title){try{Am.title=Ak.find("title").html()}catch(Al){}}var Aj=Ak.find("body");if(!s.height&&Aj.height()){Am.height=Aj.height()}if(!s.width&&Aj.width()){Am.width=Aj.width()}M.extend(p,Am);M.nyroModalSettings(Am)}}function F(Am,Aj,Al,Ak){if(Aj>1){Ak.title+=(Ak.title?" - ":"")+Am+"/"+Aj}}function Ai(){X("endHideContent");K.anim=false;if(I){I.append(K.content.contents());I=null}else{if(Ah){Ah.append(K.content.contents());Ah=null}}K.content.empty();O={};K.contentWrapper.hide().children().remove().empty().attr("style","").hide();if(K.closing||K.transition){K.contentWrapper.hide()}K.contentWrapper.css(s.css.wrapper).append(K.content);V()}function o(){X("endRemove");M(document).unbind("keydown",T);K.anim=false;K.full.remove();K.full=null;if(Ad){d.css({height:"",width:"",position:"",overflow:""});M("html").css({overflow:""})}if(M.isFunction(s.endRemove)){s.endRemove(K,s)}}function Ac(){X("endBackground");K.ready=true;K.anim=false;V()}function b(){X("endShowContent");K.anim=false;K.animContent=false;K.contentWrapper.css({opacity:""});f=/mozilla/.test(t)&&!/(compatible|webkit)/.test(t)&&parseFloat(j)<1.9&&s.type!="image";if(f){K.content.css({position:"fixed"})}K.content.append(K.scriptsShown);if(s.type=="iframe"){K.content.find("iframe").attr("src",s.url)}if(M.isFunction(s.endShowContent)){s.endShowContent(K,s)}if(Z){Z=false;M.nyroModalSettings({width:s.setWidth,height:s.setHeight});delete s["setWidth"];delete s["setHeight"]}if(D.width){C({width:null})}if(D.height){C({height:null})}}function v(Ak){if(typeof Ak=="string"){var Aj=Ak.indexOf("#");if(Aj>-1){return Ak.substring(Aj)}}return""}function U(Ak){if(typeof Ak=="string"){Ak=Ak.replace(/<\/?(html|head|body)([^>]*)>/gi,"")}var Aj=new Array();M.each(M.clean({0:Ak},this.ownerDocument),function(){if(M.nodeName(this,"script")){if(!this.src||M(this).attr("rel")=="forceLoad"){if(M(this).attr("rev")=="shown"){K.scriptsShown.push(this)}else{K.scripts.push(this)}}}else{Aj.push(this)}});return Aj}function B(Aj){Aj=Aj.get(0);var Ak={h:{margin:u(Aj,"marginTop")+u(Aj,"marginBottom"),border:u(Aj,"borderTopWidth")+u(Aj,"borderBottomWidth"),padding:u(Aj,"paddingTop")+u(Aj,"paddingBottom")},w:{margin:u(Aj,"marginLeft")+u(Aj,"marginRight"),border:u(Aj,"borderLeftWidth")+u(Aj,"borderRightWidth"),padding:u(Aj,"paddingLeft")+u(Aj,"paddingRight")}};Ak.h.outer=Ak.h.margin+Ak.h.border;Ak.w.outer=Ak.w.margin+Ak.w.border;Ak.h.inner=Ak.h.padding+Ak.h.border;Ak.w.inner=Ak.w.padding+Ak.w.border;Ak.h.total=Ak.h.outer+Ak.h.padding;Ak.w.total=Ak.w.outer+Ak.w.padding;return Ak}function u(Ak,Aj){var Al=parseInt(M.curCSS(Ak,Aj,true));if(isNaN(Al)){Al=0}return Al}function X(Aj){if(M.fn.nyroModal.settings.debug||s&&s.debug){nyroModalDebug(Aj,K,s||{})}}function Aa(Ak,Aj,Al){Ak.bg.css({opacity:0}).fadeTo(500,0.75,Al)}function i(Ak,Aj,Al){Ak.bg.fadeOut(300,Al)}function w(Ak,Aj,Al){Ak.loading.css({marginTop:Aj.marginTopLoading+"px",marginLeft:Aj.marginLeftLoading+"px",opacity:0}).show().animate({opacity:1},{complete:Al,duration:400})}function g(Ak,Aj,Al){Al()}function H(Ak,Aj,Al){Ak.loading.css({marginTop:Aj.marginTopLoading+"px",marginLeft:Aj.marginLeftLoading+"px"}).show().animate({width:Aj.width+"px",height:Aj.height+"px",marginTop:Aj.marginTop+"px",marginLeft:Aj.marginLeft+"px"},{duration:350,complete:function(){Ak.contentWrapper.css({width:Aj.width+"px",height:Aj.height+"px",marginTop:Aj.marginTop+"px",marginLeft:Aj.marginLeft+"px"}).show();Ak.loading.fadeOut(200,Al)}})}function n(Ak,Aj,Al){Ak.contentWrapper.animate({height:"50px",width:"50px",marginTop:(-(25+Aj.borderH)/2+Aj.marginScrollTop)+"px",marginLeft:(-(25+Aj.borderW)/2+Aj.marginScrollLeft)+"px"},{duration:350,complete:function(){Ak.contentWrapper.hide();Al()}})}function r(Ak,Aj,Al){Ak.loading.css({marginTop:Ak.contentWrapper.css("marginTop"),marginLeft:Ak.contentWrapper.css("marginLeft"),height:Ak.contentWrapper.css("height"),width:Ak.contentWrapper.css("width"),opacity:0}).show().fadeTo(400,1,function(){Ak.contentWrapper.hide();Al()})}function R(Ak,Aj,Al){Ak.contentWrapper.hide().css({width:Aj.width+"px",height:Aj.height+"px",marginLeft:Aj.marginLeft+"px",marginTop:Aj.marginTop+"px",opacity:1});Ak.loading.animate({width:Aj.width+"px",height:Aj.height+"px",marginLeft:Aj.marginLeft+"px",marginTop:Aj.marginTop+"px"},{complete:function(){Ak.contentWrapper.show();Ak.loading.fadeOut(400,function(){Ak.loading.hide();Al()})},duration:350})}function l(Ak,Aj,Al){Ak.contentWrapper.animate({width:Aj.width+"px",height:Aj.height+"px",marginLeft:Aj.marginLeft+"px",marginTop:Aj.marginTop+"px"},{complete:Al,duration:400})}function W(Ak,Aj,Al){if(!M.fx.step.backgroundColor){Ak.bg.css({backgroundColor:Aj.bgColor});Al()}else{Ak.bg.animate({backgroundColor:Aj.bgColor},{complete:Al,duration:400})}}M(M.fn.nyroModal.settings.openSelector).nyroModal()});function nyroModalDebug(C,B,A){if(B.full){B.bg.prepend(C+"<br />")}};
$(function(){var msg=Get_Cookie("jujeh-alert");var goback=Get_Cookie("jujeh-goBack");var exec=Get_Cookie("jujeh-exec");if(msg!=null&&msg!="skip"){if(goback!=null&&goback!="0"){Set_Cookie("jujeh-goBack","0","","/","","");history.go(goback);return false}else{Set_Cookie("jujeh-alert","skip","","/","","")}if(exec!=null&&exec!="skip"){Set_Cookie("jujeh-exec","skip","","/","","");jAlert(msg,"Jujeh",function(){eval(exec)})}else{jAlert(msg,"Jujeh")}}$("#mainLogo").click(function(){location.href="http://"+location.host+"/default.aspx"}).css("cursor","hand");if($(".imgSupport").length>0){$(".imgSupport").css({"opacity":"0.4","filter":"alpha(opacity=40)"});$(".imgSupport").attr("target","_blank")[0].href="../support.aspx?mode=nyro";$(".imgSupport").nyroModal()}});function Get_Cookie(A){var D=document.cookie.split(";");var E="";var C="";var F="";var B=false;for(i=0;i<D.length;i++){E=D[i].split("=");C=E[0].replace(/^\s+|\s+$/g,"");if(C==A){B=true;if(E.length>1){F=unescape(E[1].replace(/^\s+|\s+$/g,""))}return F;break}E=null;C=""}if(!B){return null}}function Set_Cookie(E,B,D,G,A,F){var H=new Date();H.setTime(H.getTime());if(D){D=D*1000*60*60*24}var C=new Date(H.getTime()+(D));document.cookie=E+"="+escape(B)+((D)?";expires="+C.toGMTString():"")+((G)?";path="+G:"")+((A)?";domain="+A:"")+((F)?";secure":"")}function Delete_Cookie(A,C,B){if(Get_Cookie(A)){document.cookie=A+"="+((C)?";path="+C:"")+((B)?";domain="+B:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}};
