function Searchbox(d,j,h,q){if(d==void 0)throw"Missing Parameter 'elem' in Constructor 'Searchbox'.";var s=document.getElementById(d);s.first=true;s.previous=null;s.empty_value=q;s.color=s.style.color;if(j)s.value=j;if(!s.form.searchboxes){s.form.searchboxes=[];s.form.searchbox_status=false}s.form.searchboxes.push(s);if(h)s.form.onsubmit=function(){if(s.form.searchbox_status==true)return null;for(var v in s.form.searchboxes)try{var y=s.form.searchboxes[v];if(y.empty_value&&y.value==y.empty_value)y.value=
"";else if(y.first&&!y.empty_value&&!y.previous)y.value=""}catch(D){}s.form.searchbox_status=true};s.onfocus=function(){s.style.color="#333333";if(this.first&&!this.previous)this.previous=this.value;if(this.value==this.previous)this.value="";this.first=false};s.onblur=function(){s.style.color=s.color;if(this.value=="")this.value=this.previous};return s};Window={open:function(d,j,h,q,s,v,y,D,B,L,S){var c=screen.availWidth,O=screen.availHeight;h=h=="__MAX__"?c-10:h;q=q=="__MAX__"?O-30:q;s=s?"yes":"no";B=B?"yes":"no";v=!v?Math.round((c-h)/2):v;y=!y?Math.round((O-q)/2):y;L=L?","+L:"";d=window.open(d,j,"width="+h+",height="+q+",resizable="+B+",scrollbars="+s+",top="+y+",left="+v+L);Window.setFocus(d,D);return S?d:null},keepFocus:function(d){d.onblur=function(){Window.setFocus(d,true)}},center:function(d,j){d.moveTo(Math.round((screen.availWidth-Window.getWidth(d))/
2),Math.round((screen.availHeight-Window.getHeight(d))/2));Window.setFocus(d,j)},resize:function(d,j,h,q,s){d.resizeTo(j,h);q&&Window.center(d);Window.setFocus(d,s)},setFocus:function(d,j){j&&d.focus()},getWidth:function(d){return d.innerWidth?d.innerWidth:d.document.documentElement?d.document.documentElement.clientWidth:d.document.body?d.document.body.clientWidth:0},getHeight:function(d){return d.innerHeight?d.innerHeight:d.document.documentElement?d.document.documentElement.clientHeight:d.document.body?
d.document.body.clientHeight:0},getScrollX:function(){return win.pageXOffset?win.pageXOffset:win.document.documentElement?win.document.documentElement.scrollLeft:win.document.body?win.document.body.scrollLeft:0},getScrollY:function(){return win.pageYOffset?win.pageYOffset:win.document.documentElement?win.document.documentElement.scrollTop:win.document.body?win.document.body.scrollTop:0}};(function(){function d(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function j(a,b){return a[0]&&parseInt(c.curCSS(a[0],b,true),10)||0}function h(){return false}function q(){return true}function s(a){var b=RegExp("(^|\\.)"+a.type+"(\\.|$)"),e=true,g=[];c.each(c.data(this,"events").live||[],function(l,m){if(b.test(m.type)){var r=c(a.target).closest(m.data)[0];r&&g.push({elem:r,fn:m})}});c.each(g,
function(){if(this.fn.call(this.elem,a,this.fn.data)===false)e=false});return e}function v(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function y(){if(!U){U=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",
arguments.callee);c.ready()}});document.documentElement.doScroll&&typeof B.frameElement==="undefined"&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(B,"load",c.ready)}}function D(a,b){var e={};c.each(V.concat.apply([],V.slice(0,b)),function(){e[this]=a});return e}var B=this,L=B.jQuery,S=B.$,c=B.jQuery=B.$=function(a,b){return new c.fn.init(a,b)},O=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,ca=/^.[^:#\[\.,]*$/;
c.fn=c.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var e=O.exec(a);if(e&&(e[1]||!b))if(e[1])a=c.clean([e[1]],b);else{var g=document.getElementById(e[3]);if(g&&g.id!=e[3])return c().find(a);e=c(g||[]);e.context=document;e.selector=a;return e}else return c(b).find(a)}else if(c.isFunction(a))return c(document).ready(a);if(a.selector&&a.context){this.selector=a.selector;this.context=a.context}return this.setArray(c.makeArray(a))},
selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(a){return a===void 0?c.makeArray(this):this[a]},pushStack:function(a,b,e){a=c(a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+e;else if(b)a.selector=this.selector+"."+b+"("+e+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(a,b){return c.each(this,a,b)},index:function(a){return c.inArray(a&&a.jquery?a[0]:
a,this)},attr:function(a,b,e){var g=a;if(typeof a==="string")if(b===void 0)return this[0]&&c[e||"attr"](this[0],a);else{g={};g[a]=b}return this.each(function(l){for(a in g)c.attr(e?this.style:this,a,c.prop(this,g[a],e,l,a))})},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0)b=void 0;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(a));var b="";c.each(a||this,function(){c.each(this.childNodes,
function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:c.fn.text([this])})});return b},wrapAll:function(a){if(this[0]){a=c(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var b=this;b.firstChild;)b=b.firstChild;return b}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},append:function(){return this.domManip(arguments,
true,function(a){this.nodeType==1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType==1&&this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||c([])},push:[].push,find:function(a){if(this.length===
1&&!/,/.test(a)){var b=this.pushStack([],"find",a);b.length=0;c.find(a,this[0],b);return b}else{b=c.map(this,function(e){return c.find(a,e)});return this.pushStack(/[^+>] [^+>]/.test(a)?c.unique(b):b,"find",a)}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var g=this.cloneNode(true),l=document.createElement("div");l.appendChild(g);return c.clean([l.innerHTML])[0]}else return this.cloneNode(true)}),e=b.find("*").andSelf().each(function(){if(this[J]!==void 0)this[J]=
null});a===true&&this.find("*").andSelf().each(function(g){if(this.nodeType!=3){var l=c.data(this,"events"),m;for(m in l)for(var r in l[m])c.event.add(e[g],m,l[m][r],l[m][r].data)}});return b},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(b,e){return a.call(b,e)})||c.multiFilter(a,c.grep(this,function(b){return b.nodeType===1})),"filter",a)},closest:function(a){var b=c.expr.match.POS.test(a)?c(a):null;return this.map(function(){for(var e=this;e&&e.ownerDocument;){if(b?
b.index(e)>-1:c(e).is(a))return e;e=e.parentNode}})},not:function(a){if(typeof a==="string")if(ca.test(a))return this.pushStack(c.multiFilter(a,this,true),"not",a);else a=c.multiFilter(a,this);var b=a.length&&a[a.length-1]!==void 0&&!a.nodeType;return this.filter(function(){return b?c.inArray(this,a)<0:this!=a})},add:function(a){return this.pushStack(c.unique(c.merge(this.get(),typeof a==="string"?c(a):c.makeArray(a))))},is:function(a){return!!a&&c.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&
this.is("."+a)},val:function(a){if(a===void 0){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var e=b.selectedIndex,g=[],l=b.options;b=b.type=="select-one";if(e<0)return null;var m=b?e:0;for(e=b?e+1:l.length;m<e;m++){var r=l[m];if(r.selected){a=c(r).val();if(b)return a;g.push(a)}}return g}return(b.value||"").replace(/\r/g,"")}}else{if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(c.isArray(a)&&
/radio|checkbox/.test(this.type))this.checked=c.inArray(this.value,a)>=0||c.inArray(this.name,a)>=0;else if(c.nodeName(this,"select")){var t=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,t)>=0||c.inArray(this.text,t)>=0});if(!t.length)this.selectedIndex=-1}else this.value=a})}},html:function(a){return a===void 0?this[0]?this[0].innerHTML:null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},
slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,e){return a.call(b,e,b)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(a,b,e){if(this[0]){var g=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],g);var l=g.firstChild,m=this.length>1?g.cloneNode(true):g;if(l)for(var r=0,
t=this.length;r<t;r++)e.call(b&&c.nodeName(this[r],"table")&&c.nodeName(l,"tr")?this[r].getElementsByTagName("tbody")[0]||this[r].appendChild(this[r].ownerDocument.createElement("tbody")):this[r],r>0?m.cloneNode(true):g);a&&c.each(a,d)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,e=arguments.length,g=false,l;if(typeof a==="boolean"){g=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(e==b){a=this;--b}for(;b<e;b++)if((l=arguments[b])!=
null)for(var m in l){var r=a[m],t=l[m];if(a!==t)if(g&&t&&typeof t==="object"&&!t.nodeType)a[m]=c.extend(g,r||(t.length!=null?[]:{}),t);else if(t!==void 0)a[m]=t}return a};var da=/z-?index|font-?weight|opacity|zoom|line-?height/i,W=document.defaultView||{},X=Object.prototype.toString;c.extend({noConflict:function(a){B.$=S;if(a)B.jQuery=L;return c},isFunction:function(a){return X.call(a)==="[object Function]"},isArray:function(a){return X.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===
9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&c.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a=c.trim(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,e=document.createElement("script");e.type="text/javascript";if(c.support.scriptEval)e.appendChild(document.createTextNode(a));else e.text=a;b.insertBefore(e,b.firstChild);b.removeChild(e)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,b,e){var g,
l=0,m=a.length;if(e)if(m===void 0)for(g in a){if(b.apply(a[g],e)===false)break}else for(;l<m;){if(b.apply(a[l++],e)===false)break}else if(m===void 0)for(g in a){if(b.call(a[g],g,a[g])===false)break}else for(e=a[0];l<m&&b.call(e,l,e)!==false;e=a[++l]);return a},prop:function(a,b,e,g,l){if(c.isFunction(b))b=b.call(a,g);return typeof b==="number"&&e=="curCSS"&&!da.test(l)?b+"px":b},className:{add:function(a,b){c.each((b||"").split(/\s+/),function(e,g){if(a.nodeType==1&&!c.className.has(a.className,g))a.className+=
(a.className?" ":"")+g})},remove:function(a,b){if(a.nodeType==1)a.className=b!==void 0?c.grep(a.className.split(/\s+/),function(e){return!c.className.has(b,e)}).join(" "):""},has:function(a,b){return a&&c.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,e){var g={},l;for(l in b){g[l]=a.style[l];a.style[l]=b[l]}e.call(a);for(l in b)a.style[l]=g[l]},css:function(a,b,e){if(b=="width"||b=="height"){var g;e={position:"absolute",visibility:"hidden",display:"block"};var l=b=="width"?
["Left","Right"]:["Top","Bottom"],m=function(){g=b=="width"?a.offsetWidth:a.offsetHeight;var r=0,t=0;c.each(l,function(){r+=parseFloat(c.curCSS(a,"padding"+this,true))||0;t+=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0});g-=Math.round(r+t)};c(a).is(":visible")?m():c.swap(a,e,m);return Math.max(0,g)}return c.curCSS(a,b,e)},curCSS:function(a,b,e){var g,l=a.style;if(b=="opacity"&&!c.support.opacity){g=c.attr(l,"opacity");return g==""?"1":g}if(b.match(/float/i))b=P;if(!e&&l&&l[b])g=l[b];else if(W.getComputedStyle){if(b.match(/float/i))b=
"float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=W.getComputedStyle(a,null))g=a.getPropertyValue(b);if(b=="opacity"&&g=="")g="1"}else if(a.currentStyle){g=b.replace(/\-(\w)/g,function(m,r){return r.toUpperCase()});g=a.currentStyle[b]||a.currentStyle[g];if(!/^\d+(px)?$/i.test(g)&&/^\d/.test(g)){b=l.left;e=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;l.left=g||0;g=l.pixelLeft+"px";l.left=b;a.runtimeStyle.left=e}}return g},clean:function(a,b,e){b=b||document;if(typeof b.createElement===
"undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;if(!e&&a.length===1&&typeof a[0]==="string"){var g=/^<(\w+)\s*\/?>$/.exec(a[0]);if(g)return[b.createElement(g[1])]}var l=[];g=[];var m=b.createElement("div");c.each(a,function(r,t){if(typeof t==="number")t+="";if(t){if(typeof t==="string"){t=t.replace(/(<(\w+)[^>]*?)\/>/g,function(F,I,G){return G.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?F:I+"></"+G+">"});var z=c.trim(t).toLowerCase(),C=!z.indexOf("<opt")&&[1,
"<select multiple='multiple'>","</select>"]||!z.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||z.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!z.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!z.indexOf("<td")||!z.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!z.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(m.innerHTML=C[1]+t+C[2];C[0]--;)m=m.lastChild;
if(!c.support.tbody){z=!z.indexOf("<table")&&z.indexOf("<tbody")<0?m.firstChild&&m.firstChild.childNodes:C[1]=="<table>"&&z.indexOf("<tbody")<0?m.childNodes:[];for(C=z.length-1;C>=0;--C)c.nodeName(z[C],"tbody")&&!z[C].childNodes.length&&z[C].parentNode.removeChild(z[C])}!c.support.leadingWhitespace&&/^\s/.test(t)&&m.insertBefore(b.createTextNode(t.match(/^\s*/)[0]),m.firstChild);t=c.makeArray(m.childNodes)}if(t.nodeType)l.push(t);else l=c.merge(l,t)}});if(e){for(a=0;l[a];a++)if(c.nodeName(l[a],"script")&&
(!l[a].type||l[a].type.toLowerCase()==="text/javascript"))g.push(l[a].parentNode?l[a].parentNode.removeChild(l[a]):l[a]);else{l[a].nodeType===1&&l.splice.apply(l,[a+1,0].concat(c.makeArray(l[a].getElementsByTagName("script"))));e.appendChild(l[a])}return g}return l},attr:function(a,b,e){if(!(!a||a.nodeType==3||a.nodeType==8)){var g=!c.isXMLDoc(a),l=e!==void 0;b=g&&c.props[b]||b;if(a.tagName){var m=/href|src|style/.test(b);if(b in a&&g&&!m){if(l){if(b=="type"&&c.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";
a[b]=e}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b=="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0;return a[b]}if(!c.support.style&&g&&b=="style")return c.attr(a.style,"cssText",e);l&&a.setAttribute(b,""+e);a=!c.support.hrefNormalized&&g&&m?a.getAttribute(b,2):a.getAttribute(b);return a===null?void 0:a}if(!c.support.opacity&&
b=="opacity"){if(l){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(e)+""=="NaN"?"":"alpha(opacity="+e*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/100+"":""}b=b.replace(/-([a-z])/ig,function(r,t){return t.toUpperCase()});if(l)a[b]=e;return a[b]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var e=a.length;if(e==null||typeof a==="string"||c.isFunction(a)||a.setInterval)b[0]=
a;else for(;e;)b[--e]=a[e]}return b},inArray:function(a,b){for(var e=0,g=b.length;e<g;e++)if(b[e]===a)return e;return-1},merge:function(a,b){var e=0,g,l=a.length;if(c.support.getAll)for(;(g=b[e++])!=null;)a[l++]=g;else for(;(g=b[e++])!=null;)if(g.nodeType!=8)a[l++]=g;return a},unique:function(a){var b=[],e={};try{for(var g=0,l=a.length;g<l;g++){var m=c.data(a[g]);if(!e[m]){e[m]=true;b.push(a[g])}}}catch(r){b=a}return b},grep:function(a,b,e){for(var g=[],l=0,m=a.length;l<m;l++)!e!=!b(a[l],l)&&g.push(a[l]);
return g},map:function(a,b){for(var e=[],g=0,l=a.length;g<l;g++){var m=b(a[g],g);if(m!=null)e[e.length]=m}return e.concat.apply([],e)}});var K=navigator.userAgent.toLowerCase();c.browser={version:(K.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(K),opera:/opera/.test(K),msie:/msie/.test(K)&&!/opera/.test(K),mozilla:/mozilla/.test(K)&&!/(compatible|webkit)/.test(K)};c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},next:function(a){return c.nth(a,
2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(e){var g=c.map(this,b);if(e&&typeof e=="string")g=
c.multiFilter(e,g);return this.pushStack(c.unique(g),a,e)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(){var e=arguments;return this.each(function(){for(var g=0,l=e.length;g<l;g++)c(e[g])[b](this)})}});c.each({removeAttr:function(a){c.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a,
b){if(typeof b!=="boolean")b=!c.className.has(this,a);c.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);c.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(c(">*",this).remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});var J="jQuery"+ +new Date,ea=0,Y={};c.extend({cache:{},data:function(a,
b,e){a=a==B?Y:a;var g=a[J];g||(g=a[J]=++ea);if(b&&!c.cache[g])c.cache[g]={};if(e!==void 0)c.cache[g][b]=e;return b?c.cache[g][b]:g},removeData:function(a,b){a=a==B?Y:a;var e=a[J];if(b){if(c.cache[e]){delete c.cache[e][b];b="";for(b in c.cache[e])break;b||c.removeData(a)}}else{try{delete a[J]}catch(g){a.removeAttribute&&a.removeAttribute(J)}delete c.cache[e]}},queue:function(a,b,e){if(a){b=(b||"fx")+"queue";var g=c.data(a,b);if(!g||c.isArray(e))g=c.data(a,b,c.makeArray(e));else e&&g.push(e)}return g},
dequeue:function(a,b){var e=c.queue(a,b),g=e.shift();if(!b||b==="fx")g=e[0];g!==void 0&&g.call(a)}});c.fn.extend({data:function(a,b){var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===void 0){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===void 0&&this.length)g=c.data(this[0],a);return g===void 0&&e[1]?this.data(e[0]):g}else return this.trigger("setData"+e[1]+"!",[e[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})},queue:function(a,
b){if(typeof a!=="string"){b=a;a="fx"}if(b===void 0)return c.queue(this[0],a);return this.each(function(){var e=c.queue(this,a,b);a=="fx"&&e.length==1&&e[0].call(this)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})}});(function(){function a(f,k,n,p,o,u){o=0;for(var w=p.length;o<w;o++){var x=p[o];if(x){x=x[f];for(var E=false;x&&x.nodeType;){var H=x[n];if(H){E=p[H];break}if(x.nodeType===1&&!u)x[n]=o;if(x.nodeName===k){E=x;break}x=x[f]}p[o]=E}}}function b(f,k,n,p,o,u){o=0;for(var w=
p.length;o<w;o++){var x=p[o];if(x){x=x[f];for(var E=false;x&&x.nodeType;){if(x[n]){E=p[x[n]];break}if(x.nodeType===1){u||(x[n]=o);if(typeof k!=="string"){if(x===k){E=true;break}}else if(m.filter(k,[x]).length>0){E=x;break}}x=x[f]}p[o]=E}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,g=0,l=Object.prototype.toString,m=function(f,k,n,p){n=n||[];k=k||document;if(k.nodeType!==1&&k.nodeType!==9)return[];if(!f||typeof f!=="string")return n;
var o=[],u,w,x,E=true;for(e.lastIndex=0;(u=e.exec(f))!==null;){o.push(u[1]);if(u[2]){x=RegExp.rightContext;break}}if(o.length>1&&t.exec(f))if(o.length===2&&r.relative[o[0]])u=A(o[0]+o[1],k);else for(u=r.relative[o[0]]?[k]:m(o.shift(),k);o.length;){f=o.shift();if(r.relative[f])f+=o.shift();u=A(f,u)}else{u=p?{expr:o.pop(),set:C(p)}:m.find(o.pop(),o.length===1&&k.parentNode?k.parentNode:k,G(k));u=m.filter(u.expr,u.set);if(o.length>0)w=C(u);else E=false;for(;o.length;){var H=o.pop(),M=H;if(r.relative[H])M=
o.pop();else H="";if(M==null)M=k;r.relative[H](w,M,G(k))}}w||(w=u);if(!w)throw"Syntax error, unrecognized expression: "+(H||f);if(l.call(w)==="[object Array]")if(E)if(k.nodeType===1)for(f=0;w[f]!=null;f++){if(w[f]&&(w[f]===true||w[f].nodeType===1&&I(k,w[f])))n.push(u[f])}else for(f=0;w[f]!=null;f++)w[f]&&w[f].nodeType===1&&n.push(u[f]);else n.push.apply(n,w);else C(w,n);x&&m(x,k,n,p);return n};m.matches=function(f,k){return m(f,null,null,k)};m.find=function(f,k,n){var p,o;if(!f)return[];for(var u=
0,w=r.order.length;u<w;u++){var x=r.order[u];if(o=r.match[x].exec(f)){var E=RegExp.leftContext;if(E.substr(E.length-1)!=="\\"){o[1]=(o[1]||"").replace(/\\/g,"");p=r.find[x](o,k,n);if(p!=null){f=f.replace(r.match[x],"");break}}}}p||(p=k.getElementsByTagName("*"));return{set:p,expr:f}};m.filter=function(f,k,n,p){for(var o=f,u=[],w=k,x,E;f&&k.length;){for(var H in r.filter)if((x=r.match[H].exec(f))!=null){var M=r.filter[H],N,Q;E=false;if(w==u)u=[];if(r.preFilter[H])if(x=r.preFilter[H](x,w,n,u,p)){if(x===
true)continue}else E=N=true;if(x)for(var R=0;(Q=w[R])!=null;R++)if(Q){N=M(Q,x,R,w);var Z=p^!!N;if(n&&N!=null)if(Z)E=true;else w[R]=false;else if(Z){u.push(Q);E=true}}if(N!==void 0){n||(w=u);f=f.replace(r.match[H],"");if(!E)return[];break}}f=f.replace(/\s*,\s*/,"");if(f==o)if(E==null)throw"Syntax error, unrecognized expression: "+f;else break;o=f}return w};var r=m.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(f){return f.getAttribute("href")}},relative:{"+":function(f,k){for(var n=0,p=f.length;n<p;n++){var o=
f[n];if(o){for(o=o.previousSibling;o&&o.nodeType!==1;)o=o.previousSibling;f[n]=typeof k==="string"?o||false:o===k}}typeof k==="string"&&m.filter(k,f,true)},">":function(f,k,n){if(typeof k==="string"&&!/\W/.test(k)){k=n?k:k.toUpperCase();n=0;for(var p=f.length;n<p;n++){var o=f[n];if(o){o=o.parentNode;f[n]=o.nodeName===k?o:false}}}else{n=0;for(p=f.length;n<p;n++)if(o=f[n])f[n]=typeof k==="string"?o.parentNode:o.parentNode===k;typeof k==="string"&&m.filter(k,f,true)}},"":function(f,k,n){var p="done"+
g++,o=b;if(!k.match(/\W/)){var u=k=n?k:k.toUpperCase();o=a}o("parentNode",k,p,f,u,n)},"~":function(f,k,n){var p="done"+g++,o=b;if(typeof k==="string"&&!k.match(/\W/)){var u=k=n?k:k.toUpperCase();o=a}o("previousSibling",k,p,f,u,n)}},find:{ID:function(f,k,n){if(typeof k.getElementById!=="undefined"&&!n)return(f=k.getElementById(f[1]))?[f]:[]},NAME:function(f,k,n){if(typeof k.getElementsByName!=="undefined"&&!n)return k.getElementsByName(f[1])},TAG:function(f,k){return k.getElementsByTagName(f[1])}},
preFilter:{CLASS:function(f,k,n,p,o){f=" "+f[1].replace(/\\/g,"")+" ";for(var u,w=0;(u=k[w])!=null;w++)if(u)if(o^(" "+u.className+" ").indexOf(f)>=0)n||p.push(u);else if(n)k[w]=false;return false},ID:function(f){return f[1].replace(/\\/g,"")},TAG:function(f,k){for(var n=0;k[n]===false;n++);return k[n]&&G(k[n])?f[1]:f[1].toUpperCase()},CHILD:function(f){if(f[1]=="nth"){var k=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(f[2]=="even"&&"2n"||f[2]=="odd"&&"2n+1"||!/\D/.test(f[2])&&"0n+"+f[2]||f[2]);f[2]=k[1]+(k[2]||
1)-0;f[3]=k[3]-0}f[0]="done"+g++;return f},ATTR:function(f){var k=f[1].replace(/\\/g,"");if(r.attrMap[k])f[1]=r.attrMap[k];if(f[2]==="~=")f[4]=" "+f[4]+" ";return f},PSEUDO:function(f,k,n,p,o){if(f[1]==="not")if(f[3].match(e).length>1)f[3]=m(f[3],null,null,k);else{f=m.filter(f[3],k,n,true^o);n||p.push.apply(p,f);return false}else if(r.match.POS.test(f[0]))return true;return f},POS:function(f){f.unshift(true);return f}},filters:{enabled:function(f){return f.disabled===false&&f.type!=="hidden"},disabled:function(f){return f.disabled===
true},checked:function(f){return f.checked===true},selected:function(f){return f.selected===true},parent:function(f){return!!f.firstChild},empty:function(f){return!f.firstChild},has:function(f,k,n){return!!m(n[3],f).length},header:function(f){return/h\d/i.test(f.nodeName)},text:function(f){return"text"===f.type},radio:function(f){return"radio"===f.type},checkbox:function(f){return"checkbox"===f.type},file:function(f){return"file"===f.type},password:function(f){return"password"===f.type},submit:function(f){return"submit"===
f.type},image:function(f){return"image"===f.type},reset:function(f){return"reset"===f.type},button:function(f){return"button"===f.type||f.nodeName.toUpperCase()==="BUTTON"},input:function(f){return/input|select|textarea|button/i.test(f.nodeName)}},setFilters:{first:function(f,k){return k===0},last:function(f,k,n,p){return k===p.length-1},even:function(f,k){return k%2===0},odd:function(f,k){return k%2===1},lt:function(f,k,n){return k<n[3]-0},gt:function(f,k,n){return k>n[3]-0},nth:function(f,k,n){return n[3]-
0==k},eq:function(f,k,n){return n[3]-0==k}},filter:{CHILD:function(f,k){var n=k[1],p=f.parentNode,o=k[0];if(p&&(!p[o]||!f.nodeIndex)){for(var u=1,w=p.firstChild;w;w=w.nextSibling)if(w.nodeType==1)w.nodeIndex=u++;p[o]=u-1}if(n=="first")return f.nodeIndex==1;else if(n=="last")return f.nodeIndex==p[o];else if(n=="only")return p[o]==1;else if(n=="nth"){n=false;p=k[2];o=k[3];if(p==1&&o==0)return true;if(p==0){if(f.nodeIndex==o)n=true}else if((f.nodeIndex-o)%p==0&&(f.nodeIndex-o)/p>=0)n=true;return n}},
PSEUDO:function(f,k,n,p){var o=k[1],u=r.filters[o];if(u)return u(f,n,k,p);else if(o==="contains")return(f.textContent||f.innerText||"").indexOf(k[3])>=0;else if(o==="not"){k=k[3];n=0;for(p=k.length;n<p;n++)if(k[n]===f)return false;return true}},ID:function(f,k){return f.nodeType===1&&f.getAttribute("id")===k},TAG:function(f,k){return k==="*"&&f.nodeType===1||f.nodeName===k},CLASS:function(f,k){return k.test(f.className)},ATTR:function(f,k){var n=r.attrHandle[k[1]]?r.attrHandle[k[1]](f):f[k[1]]||f.getAttribute(k[1]),
p=n+"",o=k[2],u=k[4];return n==null?o==="!=":o==="="?p===u:o==="*="?p.indexOf(u)>=0:o==="~="?(" "+p+" ").indexOf(u)>=0:!k[4]?n:o==="!="?p!=u:o==="^="?p.indexOf(u)===0:o==="$="?p.substr(p.length-u.length)===u:o==="|="?p===u||p.substr(0,u.length+1)===u+"-":false},POS:function(f,k,n,p){var o=r.setFilters[k[2]];if(o)return o(f,n,k,p)}}},t=r.match.POS,z;for(z in r.match)r.match[z]=RegExp(r.match[z].source+/(?![^\[]*\])(?![^\(]*\))/.source);var C=function(f,k){f=Array.prototype.slice.call(f);if(k){k.push.apply(k,
f);return k}return f};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(F){C=function(f,k){var n=k||[];if(l.call(f)==="[object Array]")Array.prototype.push.apply(n,f);else if(typeof f.length==="number")for(var p=0,o=f.length;p<o;p++)n.push(f[p]);else for(p=0;f[p];p++)n.push(f[p]);return n}}(function(){var f=document.createElement("form"),k="script"+(new Date).getTime();f.innerHTML="<input name='"+k+"'/>";var n=document.documentElement;n.insertBefore(f,n.firstChild);if(document.getElementById(k)){r.find.ID=
function(p,o,u){if(typeof o.getElementById!=="undefined"&&!u)return(o=o.getElementById(p[1]))?o.id===p[1]||typeof o.getAttributeNode!=="undefined"&&o.getAttributeNode("id").nodeValue===p[1]?[o]:void 0:[]};r.filter.ID=function(p,o){var u=typeof p.getAttributeNode!=="undefined"&&p.getAttributeNode("id");return p.nodeType===1&&u&&u.nodeValue===o}}n.removeChild(f)})();(function(){var f=document.createElement("div");f.appendChild(document.createComment(""));if(f.getElementsByTagName("*").length>0)r.find.TAG=
function(k,n){var p=n.getElementsByTagName(k[1]);if(k[1]==="*"){for(var o=[],u=0;p[u];u++)p[u].nodeType===1&&o.push(p[u]);p=o}return p};f.innerHTML="<a href='#'></a>";if(f.firstChild&&f.firstChild.getAttribute("href")!=="#")r.attrHandle.href=function(k){return k.getAttribute("href",2)}})();document.querySelectorAll&&function(){var f=m,k=document.createElement("div");k.innerHTML="<p class='TEST'></p>";if(!(k.querySelectorAll&&k.querySelectorAll(".TEST").length===0)){m=function(n,p,o,u){p=p||document;
if(!u&&p.nodeType===9&&!G(p))try{return C(p.querySelectorAll(n),o)}catch(w){}return f(n,p,o,u)};m.find=f.find;m.filter=f.filter;m.selectors=f.selectors;m.matches=f.matches}}();if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){r.order.splice(1,0,"CLASS");r.find.CLASS=function(f,k){return k.getElementsByClassName(f[1])}}var I=document.compareDocumentPosition?function(f,k){return f.compareDocumentPosition(k)&16}:function(f,k){return f!==k&&(f.contains?f.contains(k):
true)},G=function(f){return f.nodeType===9&&f.documentElement.nodeName!=="HTML"||!!f.ownerDocument&&G(f.ownerDocument)},A=function(f,k){for(var n=[],p="",o,u=k.nodeType?[k]:k;o=r.match.PSEUDO.exec(f);){p+=o[0];f=f.replace(r.match.PSEUDO,"")}f=r.relative[f]?f+"*":f;o=0;for(var w=u.length;o<w;o++)m(f,u[o],n);return m.filter(p,n)};c.find=m;c.filter=m.filter;c.expr=m.selectors;c.expr[":"]=c.expr.filters;m.selectors.filters.hidden=function(f){return"hidden"===f.type||c.css(f,"display")==="none"||c.css(f,
"visibility")==="hidden"};m.selectors.filters.visible=function(f){return"hidden"!==f.type&&c.css(f,"display")!=="none"&&c.css(f,"visibility")!=="hidden"};m.selectors.filters.animated=function(f){return c.grep(c.timers,function(k){return f===k.elem}).length};c.multiFilter=function(f,k,n){if(n)f=":not("+f+")";return m.matches(f,k)};c.dir=function(f,k){for(var n=[],p=f[k];p&&p!=document;){p.nodeType==1&&n.push(p);p=p[k]}return n};c.nth=function(f,k,n){k=k||1;for(var p=0;f;f=f[n])if(f.nodeType==1&&++p==
k)break;return f};c.sibling=function(f,k){for(var n=[];f;f=f.nextSibling)f.nodeType==1&&f!=k&&n.push(f);return n}})();c.event={add:function(a,b,e,g){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=B)a=B;if(!e.guid)e.guid=this.guid++;if(g!==void 0){e=this.proxy(e);e.data=g}var l=c.data(a,"events")||c.data(a,"events",{}),m=c.data(a,"handle")||c.data(a,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):void 0});m.elem=
a;c.each(b.split(/\s+/),function(r,t){var z=t.split(".");t=z.shift();e.type=z.slice().sort().join(".");var C=l[t];c.event.specialAll[t]&&c.event.specialAll[t].setup.call(a,g,z);if(!C){C=l[t]={};if(!c.event.special[t]||c.event.special[t].setup.call(a,g,z)===false)if(a.addEventListener)a.addEventListener(t,m,false);else a.attachEvent&&a.attachEvent("on"+t,m)}C[e.guid]=e;c.event.global[t]=true});a=null}},guid:1,global:{},remove:function(a,b,e){if(!(a.nodeType==3||a.nodeType==8)){var g=c.data(a,"events"),
l;if(g){if(b===void 0||typeof b==="string"&&b.charAt(0)==".")for(var m in g)this.remove(a,m+(b||""));else{if(b.type){e=b.handler;b=b.type}c.each(b.split(/\s+/),function(r,t){var z=t.split(".");t=z.shift();var C=RegExp("(^|\\.)"+z.slice().sort().join(".*\\.")+"(\\.|$)");if(g[t]){if(e)delete g[t][e.guid];else for(var F in g[t])C.test(g[t][F].type)&&delete g[t][F];c.event.specialAll[t]&&c.event.specialAll[t].teardown.call(a,z);for(l in g[t])break;if(!l){if(!c.event.special[t]||c.event.special[t].teardown.call(a,
z)===false)if(a.removeEventListener)a.removeEventListener(t,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+t,c.data(a,"handle"));l=null;delete g[t]}}})}for(l in g)break;if(!l){if(b=c.data(a,"handle"))b.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,e,g){var l=a.type||a;if(!g){a=typeof a==="object"?a[J]?a:c.extend(c.Event(l),a):c.Event(l);if(l.indexOf("!")>=0){a.type=l=l.slice(0,-1);a.exclusive=true}if(!e){a.stopPropagation();this.global[l]&&
c.each(c.cache,function(){this.events&&this.events[l]&&c.event.trigger(a,b,this.handle.elem)})}if(!e||e.nodeType==3||e.nodeType==8)return;a.result=void 0;a.target=e;b=c.makeArray(b);b.unshift(a)}a.currentTarget=e;var m=c.data(e,"handle");m&&m.apply(e,b);if((!e[l]||c.nodeName(e,"a")&&l=="click")&&e["on"+l]&&e["on"+l].apply(e,b)===false)a.result=false;if(!g&&e[l]&&!a.isDefaultPrevented()&&!(c.nodeName(e,"a")&&l=="click")){this.triggered=true;try{e[l]()}catch(r){}}this.triggered=false;if(!a.isPropagationStopped())(e=
e.parentNode||e.ownerDocument)&&c.event.trigger(a,b,e,true)},handle:function(a){var b,e;a=arguments[0]=c.event.fix(a||B.event);e=a.type.split(".");a.type=e.shift();b=!e.length&&!a.exclusive;var g=RegExp("(^|\\.)"+e.slice().sort().join(".*\\.")+"(\\.|$)");e=(c.data(this,"events")||{})[a.type];for(var l in e){var m=e[l];if(b||g.test(m.type)){a.handler=m;a.data=m.data;m=m.apply(this,arguments);if(m!==void 0){a.result=m;if(m===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}},
props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[J])return a;var b=a;a=c.Event(b);for(var e=this.props.length,g;e;){g=this.props[--e];a[g]=b[g]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType==
3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=document.documentElement;e=document.body;a.pageX=a.clientX+(b&&b.scrollLeft||e&&e.scrollLeft||0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||e&&e.scrollTop||0)-(b.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&
a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:y,teardown:function(){}}},specialAll:{live:{setup:function(a,b){c.event.add(this,b[0],s)},teardown:function(a){if(a.length){var b=0,e=RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){e.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],s)}}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);
if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=+new Date;this[J]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=q;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=q;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=q;this.stopPropagation()},
isDefaultPrevented:h,isPropagationStopped:h,isImmediatePropagationStopped:h};var aa=function(a){for(var b=a.relatedTarget;b&&b!=this;)try{b=b.parentNode}catch(e){b=this}if(b!=this){a.type=a.data;c.event.handle.apply(this,arguments)}};c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){c.event.special[b]={setup:function(){c.event.add(this,a,aa,b)},teardown:function(){c.event.remove(this,a,aa)}}});c.fn.extend({bind:function(a,b,e){return a=="unload"?this.one(a,b,e):this.each(function(){c.event.add(this,
a,e||b,e&&b)})},one:function(a,b,e){var g=c.event.proxy(e||b,function(l){c(this).unbind(l,g);return(e||b).apply(this,arguments)});return this.each(function(){c.event.add(this,a,g,e&&b)})},unbind:function(a,b){return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){var e=c.Event(a);e.preventDefault();e.stopPropagation();c.event.trigger(e,b,this[0]);return e.result}},toggle:function(a){for(var b=
arguments,e=1;e<b.length;)c.event.proxy(a,b[e++]);return this.click(c.event.proxy(a,function(g){this.lastToggle=(this.lastToggle||0)%e;g.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){y();c.isReady?a.call(document,c):c.readyList.push(a);return this},live:function(a,b){var e=c.event.proxy(b);e.guid+=this.selector+a;c(document).bind(v(a,this.selector),this.selector,e);return this},die:function(a,
b){c(document).unbind(v(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){c.each(c.readyList,function(){this.call(document,c)});c.readyList=null}c(document).triggerHandler("ready")}}});var U=false;c.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(a,b){c.fn[b]=function(e){return e?this.bind(b,e):this.trigger(b)}});c(B).bind("unload",function(){for(var a in c.cache)a!=1&&c.cache[a].handle&&c.event.remove(c.cache[a].handle.elem)});(function(){c.support={};var a=document.documentElement,b=document.createElement("script"),e=document.createElement("div"),g="script"+(new Date).getTime();e.style.display="none";e.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 l=e.getElementsByTagName("*"),m=e.getElementsByTagName("a")[0];if(!(!l||!l.length||!m)){c.support={leadingWhitespace:e.firstChild.nodeType==3,tbody:!e.getElementsByTagName("tbody").length,objectAll:!!e.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(m.getAttribute("style")),hrefNormalized:m.getAttribute("href")==="/a",opacity:m.style.opacity==="0.5",cssFloat:!!m.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+g+"=1;"))}catch(r){}a.insertBefore(b,a.firstChild);if(B[g]){c.support.scriptEval=true;delete B[g]}a.removeChild(b);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function(){c.support.noCloneEvent=false;e.detachEvent("onclick",arguments.callee)});e.cloneNode(true).fireEvent("onclick")}c(function(){var t=document.createElement("div");t.style.width="1px";t.style.paddingLeft="1px";document.body.appendChild(t);
c.boxModel=c.support.boxModel=t.offsetWidth===2;document.body.removeChild(t)})}})();var P=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":P,cssFloat:P,styleFloat:P,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};c.fn.extend({_load:c.fn.load,load:function(a,b,e){if(typeof a!=="string")return this._load(a);var g=a.indexOf(" ");if(g>=0){var l=a.slice(g,a.length);a=a.slice(0,g)}g="GET";if(b)if(c.isFunction(b)){e=
b;b=null}else if(typeof b==="object"){b=c.param(b);g="POST"}var m=this;c.ajax({url:a,type:g,dataType:"html",data:b,complete:function(r,t){if(t=="success"||t=="notmodified")m.html(l?c("<div/>").append(r.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(l):r.responseText);e&&m.each(e,[r.responseText,t,r])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&
!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(a,b){var e=c(this).val();return e==null?null:c.isArray(e)?c.map(e,function(g){return{name:b.name,value:g}}):{name:b.name,value:e}}).get()}});c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){c.fn[b]=function(e){return this.bind(b,e)}});var fa=+new Date;c.extend({get:function(a,b,e,g){if(c.isFunction(b)){e=b;b=null}return c.ajax({type:"GET",
url:a,data:b,success:e,dataType:g})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,e){return c.get(a,b,e,"json")},post:function(a,b,e,g){if(c.isFunction(b)){e=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:e,dataType:g})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return B.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):
new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(a){function b(){a.success&&a.success(r,m);a.global&&c.event.trigger("ajaxSuccess",[A,a])}function e(){a.complete&&a.complete(A,m);a.global&&c.event.trigger("ajaxComplete",[A,a]);a.global&&!--c.active&&c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,
a));var g,l=/=\?(&|$)/g,m,r,t=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(t=="GET")a.url.match(l)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(l))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(l)||a.url.match(l))){g="jsonp"+fa++;if(a.data)a.data=(a.data+"").replace(l,"="+g+"$1");a.url=a.url.replace(l,
"="+g+"$1");a.dataType="script";B[g]=function(o){r=o;b();e();B[g]=void 0;try{delete B[g]}catch(u){}C&&C.removeChild(F)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&t=="GET"){l=+new Date;var z=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+l+"$2");a.url=z+(z==a.url?(a.url.match(/\?/)?"&":"?")+"_="+l:"")}if(a.data&&t=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&!c.active++&&c.event.trigger("ajaxStart");l=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType==
"script"&&t=="GET"&&l&&(l[1]&&l[1]!=location.protocol||l[2]!=location.host)){var C=document.getElementsByTagName("head")[0],F=document.createElement("script");F.src=a.url;if(a.scriptCharset)F.charset=a.scriptCharset;if(!g){var I=false;F.onload=F.onreadystatechange=function(){if(!I&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){I=true;b();e();C.removeChild(F)}}}C.appendChild(F)}else{var G=false,A=a.xhr();a.username?A.open(t,a.url,a.async,a.username,a.password):A.open(t,
a.url,a.async);try{a.data&&A.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)A.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");A.setRequestHeader("X-Requested-With","XMLHttpRequest");A.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(f){}if(a.beforeSend&&a.beforeSend(A,a)===false){a.global&&!--c.active&&c.event.trigger("ajaxStop");A.abort();return false}a.global&&c.event.trigger("ajaxSend",
[A,a]);var k=function(o){if(A.readyState==0){if(n){clearInterval(n);n=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!G&&A&&(A.readyState==4||o=="timeout")){G=true;if(n){clearInterval(n);n=null}m=o=="timeout"?"timeout":!c.httpSuccess(A)?"error":a.ifModified&&c.httpNotModified(A,a.url)?"notmodified":"success";if(m=="success")try{r=c.httpData(A,a.dataType,a)}catch(u){m="parsererror"}if(m=="success"){var w;try{w=A.getResponseHeader("Last-Modified")}catch(x){}if(a.ifModified&&w)c.lastModified[a.url]=
w;g||b()}else c.handleError(a,A,m);e();o&&A.abort();if(a.async)A=null}};if(a.async){var n=setInterval(k,13);a.timeout>0&&setTimeout(function(){A&&!G&&k("timeout")},a.timeout)}try{A.send(a.data)}catch(p){c.handleError(a,A,null,p)}a.async||k();return A}},handleError:function(a,b,e,g){a.error&&a.error(b,e,g);a.global&&c.event.trigger("ajaxError",[b,a,g])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223}catch(b){}return false},
httpNotModified:function(a,b){try{var e=a.getResponseHeader("Last-Modified");return a.status==304||e==c.lastModified[b]}catch(g){}return false},httpData:function(a,b,e){var g=a.getResponseHeader("content-type");a=(g=b=="xml"||!b&&g&&g.indexOf("xml")>=0)?a.responseXML:a.responseText;if(g&&a.documentElement.tagName=="parsererror")throw"parsererror";if(e&&e.dataFilter)a=e.dataFilter(a,b);if(typeof a==="string"){b=="script"&&c.globalEval(a);if(b=="json")a=B.eval("("+a+")")}return a},param:function(a){function b(l,
m){e[e.length]=encodeURIComponent(l)+"="+encodeURIComponent(m)}var e=[];if(c.isArray(a)||a.jquery)c.each(a,function(){b(this.name,this.value)});else for(var g in a)c.isArray(a[g])?c.each(a[g],function(){b(g,this)}):b(g,c.isFunction(a[g])?a[g]():a[g]);return e.join("&").replace(/%20/g,"+")}});var T={},ba,V=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a)return this.animate(D("show",
3),a,b);else{for(var e=0,g=this.length;e<g;e++){var l=c.data(this[e],"olddisplay");this[e].style.display=l||"";if(c.css(this[e],"display")==="none"){l=this[e].tagName;var m;if(T[l])m=T[l];else{var r=c("<"+l+" />").appendTo("body");m=r.css("display");if(m==="none")m="block";r.remove();T[l]=m}this[e].style.display=c.data(this[e],"olddisplay",m)}}return this}},hide:function(a,b){if(a)return this.animate(D("hide",3),a,b);else{for(var e=0,g=this.length;e<g;e++){var l=c.data(this[e],"olddisplay");!l&&l!==
"none"&&c.data(this[e],"olddisplay",c.css(this[e],"display"));this[e].style.display="none"}return this}},_toggle:c.fn.toggle,toggle:function(a,b){var e=typeof a==="boolean";return c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||e?this.each(function(){var g=e?a:c(this).is(":hidden");c(this)[g?"show":"hide"]()}):this.animate(D("toggle",3),a,b)},fadeTo:function(a,b,e){return this.animate({opacity:b},a,e)},animate:function(a,b,e,g){var l=c.speed(b,e,g);return this[l.queue===
false?"each":"queue"](function(){var m=c.extend({},l),r,t=this.nodeType==1&&c(this).is(":hidden"),z=this;for(r in a){if(a[r]=="hide"&&t||a[r]=="show"&&!t)return m.complete.call(this);if((r=="height"||r=="width")&&this.style){m.display=c.css(this,"display");m.overflow=this.style.overflow}}if(m.overflow!=null)this.style.overflow="hidden";m.curAnim=c.extend({},a);c.each(a,function(C,F){var I=new c.fx(z,m,C);if(/toggle|show|hide/.test(F))I[F=="toggle"?t?"show":"hide":F](a);else{var G=F.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
A=I.cur(true)||0;if(G){var f=parseFloat(G[2]),k=G[3]||"px";if(k!="px"){z.style[C]=(f||1)+k;A=(f||1)/I.cur(true)*A;z.style[C]=A+k}if(G[1])f=(G[1]=="-="?-1:1)*f+A;I.custom(A,f,k)}else I.custom(A,F,"")}});return true})},stop:function(a,b){var e=c.timers;a&&this.queue([]);this.each(function(){for(var g=e.length-1;g>=0;g--)if(e[g].elem==this){b&&e[g](true);e.splice(g,1)}});b||this.dequeue();return this}});c.each({slideDown:D("show",1),slideUp:D("hide",1),slideToggle:D("toggle",1),fadeIn:{opacity:"show"},
fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(e,g){return this.animate(b,e,g)}});c.extend({speed:function(a,b,e){var g=typeof a==="object"?a:{complete:e||!e&&b||c.isFunction(a)&&a,duration:a,easing:e&&b||b&&!c.isFunction(b)&&b};g.duration=c.fx.off?0:typeof g.duration==="number"?g.duration:c.fx.speeds[g.duration]||c.fx.speeds._default;g.old=g.complete;g.complete=function(){g.queue!==false&&c(this).dequeue();c.isFunction(g.old)&&g.old.call(this)};return g},easing:{linear:function(a,b,e,g){return e+
g*a},swing:function(a,b,e,g){return(-Math.cos(a*Math.PI)/2+0.5)*g+e}},timers:[],fx:function(a,b,e){this.options=b;this.elem=a;this.prop=e;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==
null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-1E4?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,e){function g(m){return l.step(m)}this.startTime=+new Date;this.start=a;this.end=b;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var l=this;g.elem=this.elem;if(g()&&c.timers.push(g)==1)ba=setInterval(function(){for(var m=c.timers,r=0;r<m.length;r++)m[r]()||m.splice(r--,1);m.length||clearInterval(ba)},13)},show:function(){this.options.orig[this.prop]=
c.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=+new Date;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==
true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(c.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var g in this.options.curAnim)c.attr(this.elem.style,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;this.pos=c.easing[this.options.easing||
(c.easing.swing?"swing":"linear")](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};
if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),b=this[0].ownerDocument,e=b.body;b=b.documentElement;return{top:a.top+(self.pageYOffset||c.boxModel&&b.scrollTop||e.scrollTop)-(b.clientTop||e.clientTop||0),left:a.left+(self.pageXOffset||c.boxModel&&b.scrollLeft||e.scrollLeft)-(b.clientLeft||e.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);c.offset.initialized||
c.offset.initialize();var a=this[0],b=a.offsetParent,e=a.ownerDocument,g,l=e.documentElement,m=e.body;e=e.defaultView;g=e.getComputedStyle(a,null);for(var r=a.offsetTop,t=a.offsetLeft;(a=a.parentNode)&&a!==m&&a!==l;){g=e.getComputedStyle(a,null);r-=a.scrollTop;t-=a.scrollLeft;if(a===b){r+=a.offsetTop;t+=a.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){r+=parseInt(g.borderTopWidth,10)||0;t+=parseInt(g.borderLeftWidth,10)||0}b=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&
g.overflow!=="visible"){r+=parseInt(g.borderTopWidth,10)||0;t+=parseInt(g.borderLeftWidth,10)||0}g=g}if(g.position==="relative"||g.position==="static"){r+=m.offsetTop;t+=m.offsetLeft}if(g.position==="fixed"){r+=Math.max(l.scrollTop,m.scrollTop);t+=Math.max(l.scrollLeft,m.scrollLeft)}return{top:r,left:t}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),e,g,l,m=a.style.marginTop;e={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",
height:"1px",visibility:"hidden"};for(g in e)b.style[g]=e[g];b.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';a.insertBefore(b,a.firstChild);e=b.firstChild;g=e.firstChild;l=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=g.offsetTop!==
5;this.doesAddBorderForTableAndCells=l.offsetTop===5;e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=g.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=m;a.removeChild(b);this.initialized=true}},bodyOffset:function(a){c.offset.initialized||c.offset.initialize();var b=a.offsetTop,e=a.offsetLeft;if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(c.curCSS(a,"marginTop",true),10)||0;e+=
parseInt(c.curCSS(a,"marginLeft",true),10)||0}return{top:b,left:e}}};c.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var b=this.offset(),e=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();b.top-=j(this,"marginTop");b.left-=j(this,"marginLeft");e.top+=j(a,"borderTopWidth");e.left+=j(a,"borderLeftWidth");a={top:b.top-e.top,left:b.left-e.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,
"position")=="static";)a=a.offsetParent;return c(a)}});c.each(["Left","Top"],function(a,b){var e="scroll"+b;c.fn[e]=function(g){if(!this[0])return null;return g!==void 0?this.each(function(){this==B||this==document?B.scrollTo(!a?g:c(B).scrollLeft(),a?g:c(B).scrollTop()):this[e]=g}):this[0]==B||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[e]||document.body[e]:this[0][e]}});c.each(["Height","Width"],function(a,b){var e=a?"Left":"Top",g=a?"Right":"Bottom";
c.fn["inner"+b]=function(){return this[b.toLowerCase()]()+j(this,"padding"+e)+j(this,"padding"+g)};c.fn["outer"+b]=function(m){return this["inner"+b]()+j(this,"border"+e+"Width")+j(this,"border"+g+"Width")+(m?j(this,"margin"+e)+j(this,"margin"+g):0)};var l=b.toLowerCase();c.fn[l]=function(m){return this[0]==B?document.compatMode=="CSS1Compat"&&document.documentElement["client"+b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+
b],document.body["offset"+b],document.documentElement["offset"+b]):m===void 0?this.length?c.css(this[0],l):null:this.css(l,typeof m==="string"?m:m+"px")}})})();var femImg={_play:{},_cur:{},_idle:1,ToImg:function(d,j){femImg._play[j]=0;femImg.Pause(j);femImg._SetImg(d,j)},Play:function(d,j){var h=d+1;femImg._play[j]=1;window.setTimeout("femImg._PlayTimer("+h+", '"+j+"')",4E3);$("."+$("#"+j+"_1").attr("class")+" .play").hide();$("."+$("#"+j+"_1").attr("class")+" .pause").show()},Pause:function(d){femImg._play[d]=0;$("."+$("#"+d+"_1").attr("class")+" .pause").hide();$("."+$("#"+d+"_1").attr("class")+" .play").show()},Next:function(d){femImg._play[d]=0;femImg.Pause(d);
femImg._cur[d]?femImg._SetImg(femImg._cur[d]+1,d):femImg._SetImg(2,d)},Back:function(d){femImg._play[d]=0;femImg.Pause(d);femImg._cur[d]?femImg._SetImg(femImg._cur[d]-1,d):femImg._SetImg(0,d)},_SetImg:function(d,j){if(femImg._idle){femImg._idle=0;var h=d;if(h==0)for(i=1;$("#"+j+"_"+i).length!=0;i++)h=i;if($("#"+j+"_"+h).length==0)h=1;femImg._cur[j]=h;var q="#"+j+"_"+h;$("."+$("#"+j+"_1").attr("class")+":visible").fadeOut("fast",function(){$(q).fadeIn("fast",function(){femImg._idle=1});window.SOI_WERBUNG&&
window.SOI_Move&&SOI_Move()})}},_PlayTimer:function(d,j){var h=d;if(femImg._play[j]){if($("#"+j+"_"+h).length==0)h=1;femImg._SetImg(h,j);h+=1;window.setTimeout("femImg._PlayTimer("+h+", '"+j+"')",7E3)}}};var femPreviousOnloadToday=window.onload;window.onload=function(){femPreviousOnloadToday&&femPreviousOnloadToday();femImg.Play(1,"t470")};function smf_addButton(d,j,h){d=document.getElementById(d);var q=document.createElement("span");setInnerHTML(q,' <a href="'+h.sUrl+'" '+(typeof h.sCustom=="string"?h.sCustom:"")+'><span class="last"'+(typeof h.sId=="string"?' id="'+h.sId+'"':"")+">"+(j?'<img src="'+h.sImage+'" alt="'+h.sText+'" />':h.sText)+"</span></a>");d.appendChild(q)};var smf_formSubmitted=false,lastKeepAliveCheck=(new Date).getTime(),smf_editorArray=[],ua=navigator.userAgent.toLowerCase(),is_opera=ua.indexOf("opera")!=-1,is_opera5=ua.indexOf("opera/5")!=-1||ua.indexOf("opera 5")!=-1,is_opera6=ua.indexOf("opera/6")!=-1||ua.indexOf("opera 6")!=-1,is_opera7=ua.indexOf("opera/7")!=-1||ua.indexOf("opera 7")!=-1,is_opera8=ua.indexOf("opera/8")!=-1||ua.indexOf("opera 8")!=-1,is_opera9=ua.indexOf("opera/9")!=-1||ua.indexOf("opera 9")!=-1,is_opera95=ua.indexOf("opera/9.5")!=
-1||ua.indexOf("opera 9.5")!=-1,is_opera96=ua.indexOf("opera/9.6")!=-1||ua.indexOf("opera 9.6")!=-1,is_opera95up=is_opera95||is_opera96,is_ff=(ua.indexOf("firefox")!=-1||ua.indexOf("iceweasel")!=-1||ua.indexOf("icecat")!=-1)&&!is_opera,is_gecko=ua.indexOf("gecko")!=-1&&!is_opera,is_chrome=ua.indexOf("chrome")!=-1,is_safari=ua.indexOf("applewebkit")!=-1&&!is_chrome,is_ie=ua.indexOf("msie")!=-1&&!is_opera,is_ie4=is_ie&&ua.indexOf("msie 4")!=-1,is_ie5=is_ie&&ua.indexOf("msie 5")!=-1,is_ie50=is_ie&&ua.indexOf("msie 5.0")!=
-1,is_ie55=is_ie&&ua.indexOf("msie 5.5")!=-1,is_ie5up=is_ie&&!is_ie4,is_ie6=is_ie&&ua.indexOf("msie 6")!=-1,is_ie6up=is_ie5up&&!is_ie55&&!is_ie5,is_ie6down=is_ie6||is_ie5||is_ie4,is_ie7=is_ie&&ua.indexOf("msie 7")!=-1,is_ie7up=is_ie6up&&!is_ie6,is_ie7down=is_ie7||is_ie6||is_ie5||is_ie4,is_ie8=is_ie&&ua.indexOf("msie 8")!=-1,is_ie8up=is_ie8&&!is_ie7down,is_phone=ua.indexOf("iphone")!=-1||ua.indexOf("ipod")!=-1,ajax_indicator_ele=null;
if(typeof document.getElementById=="undefined")document.getElementById=function(d){return document.all[d]};else if(!window.XMLHttpRequest&&window.ActiveXObject)window.XMLHttpRequest=function(){return new ActiveXObject(is_ie5?"Microsoft.XMLHTTP":"MSXML2.XMLHTTP")};if(typeof document.getElementsByTagName=="undefined")document.getElementsByTagName=function(d){return document.all.tags[d]};if(typeof document.forms=="undefined")document.forms=document.getElementsByTagName("form");
function getXMLDocument(d,j){if(!window.XMLHttpRequest)return null;var h=new XMLHttpRequest,q=typeof j!="undefined",s=this;if(q)h.onreadystatechange=function(){if(h.readyState==4)if(h.responseXML!=null&&h.status==200)if(j.call)j.call(s,h.responseXML);else{s.tmpMethod=j;s.tmpMethod(h.responseXML);delete s.tmpMethod}};h.open("GET",d,q);h.send(null);return h}
function sendXMLDocument(d,j,h){if(!window.XMLHttpRequest)return false;var q=new window.XMLHttpRequest,s=this;if(typeof h!="undefined")q.onreadystatechange=function(){if(q.readyState==4)q.responseXML!=null&&q.status==200?h.call(s,q.responseXML):h.call(s,false)};q.open("POST",d,true);typeof q.setRequestHeader!="undefined"&&q.setRequestHeader("Content-Type","application/x-www-form-urlencoded");q.send(j);return true}String.prototype.php_strtr=function(d,j){return this.replace(RegExp("["+d+"]","g"),function(h){return j.charAt(d.indexOf(h))})};
String.prototype.php_strtolower=function(){return typeof smf_iso_case_folding!="undefined"&&smf_iso_case_folding==true?this.php_strtr("ABCDEFGHIJKLMNOPQRSTUVWXYZ\u008a\u008c\u008e\u009f\u00c0\u00c1\u00c2\u00c3\u00c4\u00c5\u00c6\u00c7\u00c8\u00c9\u00ca\u00cb\u00cc\u00cd\u00ce\u00cf\u00d0\u00d1\u00d2\u00d3\u00d4\u00d5\u00d6\u00d7\u00d8\u00d9\u00da\u00db\u00dc\u00dd\u00de","abcdefghijklmnopqrstuvwxyz\u009a\u009c\u009e\u00ff\u00e0\u00e1\u00e2\u00e3\u00e4\u00e5\u00e6\u00e7\u00e8\u00e9\u00ea\u00eb\u00ec\u00ed\u00ee\u00ef\u00f0\u00f1\u00f2\u00f3\u00f4\u00f5\u00f6\u00f7\u00f8\u00f9\u00fa\u00fb\u00fc\u00fd\u00fe"):
this.php_strtr("ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")};String.prototype.oCharsetConversion={from:"",to:""};
String.prototype.php_to8bit=function(){if(smf_charset=="UTF-8"){for(var d,j="",h=0,q=this.length;h<q;h++){d=this.charCodeAt(h);j+=d<128?String.fromCharCode(d):d<2048?String.fromCharCode(192|d>>6)+String.fromCharCode(128|d&63):d<65536?String.fromCharCode(224|d>>12)+String.fromCharCode(128|d>>6&63)+String.fromCharCode(128|d&63):String.fromCharCode(240|d>>18)+String.fromCharCode(128|d>>12&63)+String.fromCharCode(128|d>>6&63)+String.fromCharCode(128|d&63)}return j}else if(typeof this.oCharsetConversion==
"undefined"){switch(smf_charset){case "ISO-8859-1":this.oCharsetConversion={from:"\u00a0-\u00ff",to:"\u00a0-\u00ff"};break;case "ISO-8859-2":this.oCharsetConversion={from:"\u00a0\u0104\u02d8\u0141\u00a4\u013d\u015a\u00a7\u00a8\u0160\u015e\u0164\u0179\u00ad\u017d\u017b\u00b0\u0105\u02db\u0142\u00b4\u013e\u015b\u02c7\u00b8\u0161\u015f\u0165\u017a\u02dd\u017e\u017c\u0154\u00c1\u00c2\u0102\u00c4\u0139\u0106\u00c7\u010c\u00c9\u0118\u00cb\u011a\u00cd\u00ce\u010e\u0110\u0143\u0147\u00d3\u00d4\u0150\u00d6\u00d7\u0158\u016e\u00da\u0170\u00dc\u00dd\u0162\u00df\u0155\u00e1\u00e2\u0103\u00e4\u013a\u0107\u00e7\u010d\u00e9\u0119\u00eb\u011b\u00ed\u00ee\u010f\u0111\u0144\u0148\u00f3\u00f4\u0151\u00f6\u00f7\u0159\u016f\u00fa\u0171\u00fc\u00fd\u0163\u02d9",
to:"\u00a0-\u00ff"};break;case "ISO-8859-5":this.oCharsetConversion={from:"\u00a0\u0401-\u040c\u00ad\u040e-\u044f\u2116\u0451-\u045c\u00a7\u045e\u045f",to:"\u00a0-\u00ff"};break;case "ISO-8859-9":this.oCharsetConversion={from:"\u00a0-\u00cf\u011e\u00d1-\u00dc\u0130\u015e\u00df-\u00ef\u011f\u00f1-\u00fc\u0131\u015f\u00ff",to:"\u00a0-\u00ff"};break;case "ISO-8859-15":this.oCharsetConversion={from:"\u00a0-\u00a3\u20ac\u00a5\u0160\u00a7\u0161\u00a9-\u00b3\u017d\u00b5-\u00b7\u017e\u00b9-\u00bb\u0152\u0153\u0178\u00bf-\u00ff",
to:"\u00a0-\u00ff"};break;case "tis-620":this.oCharsetConversion={from:"\u20ac\u2026\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u00a0\u0e01-\u0e3a\u0e3f-\u0e5b",to:"\u0080\u0085\u0091-\u0097\u00a0-\u00da\u00df-\u00fb"};break;case "windows-1251":this.oCharsetConversion={from:"\u0402\u0403\u201a\u0453\u201e\u2026\u2020\u2021\u20ac\u2030\u0409\u2039\u040a\u040c\u040b\u040f\u0452\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u2122\u0459\u203a\u045a\u045c\u045b\u045f\u00a0\u040e\u045e\u0408\u00a4\u0490\u00a6\u00a7\u0401\u00a9\u0404\u00ab-\u00ae\u0407\u00b0\u00b1\u0406\u0456\u0491\u00b5-\u00b7\u0451\u2116\u0454\u00bb\u0458\u0405\u0455\u0457\u0410-\u044f",
to:"\u0080-\u0097\u0099-\u00ff"};break;case "windows-1253":this.oCharsetConversion={from:"\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u2030\u2039\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u2122\u203a\u00a0\u0385\u0386\u00a3-\u00a9\u00ab-\u00ae\u2015\u00b0-\u00b3\u0384\u00b5-\u00b7\u0388-\u038a\u00bb\u038c\u00bd\u038e-\u03a1\u03a3-\u03ce",to:"\u0080\u0082-\u0087\u0089\u008b\u0091-\u0097\u0099\u009b\u00a0-\u00a9\u00ab-\u00d1\u00d3-\u00fe"};break;case "windows-1255":this.oCharsetConversion={from:"\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u2039\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u203a\u00a0-\u00a3\u20aa\u00a5-\u00a9\u00d7\u00ab-\u00b9\u00f7\u00bb-\u00bf\u05b0-\u05b9\u05bb-\u05c3\u05f0-\u05f4\u05d0-\u05ea\u200e\u200f",
to:"\u0080\u0082-\u0089\u008b\u0091-\u0099\u009b\u00a0-\u00c9\u00cb-\u00d8\u00e0-\u00fa\u00fd\u00fe"};break;case "windows-1256":this.oCharsetConversion={from:"\u20ac\u067e\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0679\u2039\u0152\u0686\u0698\u0688\u06af\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u06a9\u2122\u0691\u203a\u0153\u200c\u200d\u06ba\u00a0\u060c\u00a2-\u00a9\u06be\u00ab-\u00b9\u061b\u00bb-\u00be\u061f\u06c1\u0621-\u0636\u00d7\u0637-\u063a\u0640-\u0643\u00e0\u0644\u00e2\u0645-\u0648\u00e7-\u00eb\u0649\u064a\u00ee\u00ef\u064b-\u064e\u00f4\u064f\u0650\u00f7\u0651\u00f9\u0652\u00fb\u00fc\u200e\u200f\u06d2",
to:"\u0080-\u00ff"};break;default:this.oCharsetConversion={from:"",to:""}}d=function(s){var v="",y=s.charCodeAt(0);for(s=s.charCodeAt(2);y<=s;y++)v+=String.fromCharCode(y);return v};this.oCharsetConversion.from=this.oCharsetConversion.from.replace(/.\-./g,d);this.oCharsetConversion.to=this.oCharsetConversion.to.replace(/.\-./g,d)}j="";h=q=0;for(d=this.length;h<d;h++){q=this.oCharsetConversion.from.indexOf(this.charAt(h));j+=q>-1?this.oCharsetConversion.to.charAt(q):this.charCodeAt(h)>127?"&#"+this.charCodeAt(h)+
";":this.charAt(h)}return j};String.prototype.php_urlencode=function(){return escape(this).replace(/\+/g,"%2b").replace("*","%2a").replace("/","%2f").replace("@","%40")};String.prototype._replaceEntities=function(d,j,h){return String.fromCharCode(parseInt(h))};String.prototype.removeEntities=function(){return this.replace(/&(amp;)?#(\d+);/g,this._replaceEntities)};
function reqWin(d,j,h,q){if(j&&self.screen.availWidth*0.8<j||h&&self.screen.availHeight*0.8<h){q=false;j=Math.min(j,self.screen.availWidth*0.8);h=Math.min(h,self.screen.availHeight*0.8)}else q=typeof q!="undefined"&&q==true;window.open(d,"requested_popup","toolbar=no,location=no,status=no,menubar=no,scrollbars="+(q?"no":"yes")+",width="+(j?j:480)+",height="+(h?h:220)+",resizable=no");return false}
function storeCaret(d){if(typeof d.createTextRange!="undefined")d.caretPos=document.selection.createRange().duplicate()}
function replaceText(d,j){if(typeof j.caretPos!="undefined"&&j.createTextRange){var h=j.caretPos;h.text=h.text.charAt(h.text.length-1)==" "?d+" ":d;h.select()}else if(typeof j.selectionStart!="undefined"){h=j.value.substr(0,j.selectionStart);var q=j.value.substr(j.selectionEnd),s=j.scrollTop;j.value=h+d+q;if(j.setSelectionRange){j.focus();j.setSelectionRange(h.length+d.length,h.length+d.length)}j.scrollTop=s}else{j.value+=d;j.focus(j.value.length-1)}}
function surroundText(d,j,h){if(typeof h.caretPos!="undefined"&&h.createTextRange){var q=h.caretPos,s=q.text.length;q.text=q.text.charAt(q.text.length-1)==" "?d+q.text+j+" ":d+q.text+j;if(s==0){q.moveStart("character",-j.length);q.moveEnd("character",-j.length);q.select()}else h.focus(q)}else if(typeof h.selectionStart!="undefined"){q=h.value.substr(0,h.selectionStart);s=h.value.substr(h.selectionStart,h.selectionEnd-h.selectionStart);var v=h.value.substr(h.selectionEnd),y=h.selectionStart,D=h.scrollTop;
h.value=q+d+s+j+v;if(h.setSelectionRange){s.length==0?h.setSelectionRange(y+d.length,y+d.length):h.setSelectionRange(y,y+d.length+s.length+j.length);h.focus()}h.scrollTop=D}else{h.value+=d+j;h.focus(h.value.length-1)}}function isEmptyText(d){for(d=d.value;d.length>0&&(d.charAt(0)==" "||d.charAt(0)=="\t");)d=d.substring(1,d.length);for(;d.length>0&&(d.charAt(d.length-1)==" "||d.charAt(d.length-1)=="\t");)d=d.substring(0,d.length-1);return d==""?true:false}
function submitonce(){smf_formSubmitted=true;for(var d=0;d<smf_editorArray.length;d++)smf_editorArray[d].doSubmit()}function submitThisOnce(d){if(is_safari)return!smf_formSubmitted;if(typeof d.form!="undefined")d=d.form;for(var j=0;j<d.length;j++)if(typeof d[j]!="undefined"&&d[j].tagName.toLowerCase()=="textarea")d[j].readOnly=true;return!smf_formSubmitted}
function setInnerHTML(d,j){if(typeof d.innerHTML!="undefined")d.innerHTML=j;else{var h=document.createRange();h.selectNodeContents(d);h.deleteContents();d.appendChild(h.createContextualFragment(j))}}function setOuterHTML(d,j){if(typeof d.outerHTML!="undefined")d.outerHTML=j;else{var h=document.createRange();h.setStartBefore(d);d.parentNode.replaceChild(h.createContextualFragment(j),d)}}
function getInnerHTML(d){if(typeof d.innerHTML!="undefined")return d.innerHTML;else{for(var j="",h=0;h<d.childNodes.length;h++)j+=getOuterHTML(d.childNodes[h]);return j}}
function getOuterHTML(d){if(typeof d.outerHTML!="undefined")return d.outerHTML;var j="";switch(d.nodeType){case 1:j+="<"+d.nodeName;for(var h=0;h<d.attributes.length;h++)if(d.attributes[h].nodeValue!=null)j+=" "+d.attributes[h].nodeName+'="'+d.attributes[h].nodeValue+'"';j+=d.childNodes.length==0&&in_array(d.nodeName.toLowerCase(),["hr","input","img","link","meta","br"])?" />":">"+getInnerHTML(d)+"</"+d.nodeName+">";break;case 3:j+=d.nodeValue;break;case 4:j+="<![CDATA["+d.nodeValue+"]]\>";break;
case 5:j+="&"+d.nodeName+";";break;case 8:j+="<!--"+d.nodeValue+"--\>"}return j}function in_array(d,j){for(var h in j)if(j[h]==d)return true;return false}function array_search(d,j){for(var h in j)if(j[h]==d)return h;return null}function selectRadioByName(d,j){if(typeof d.length=="undefined")return d.checked=true;for(var h=0;h<d.length;h++)if(d[h].value==j)return d[h].checked=true;return false}
function invertAll(d,j,h,q){for(var s=0;s<j.length;s++)if(!(typeof j[s].name=="undefined"||typeof h!="undefined"&&j[s].name.substr(0,h.length)!=h&&j[s].id.substr(0,h.length)!=h))if(!j[s].disabled||typeof q!="undefined")j[s].checked=d.checked}lastKeepAliveCheck=(new Date).getTime();
function smf_sessionKeepAlive(){var d=(new Date).getTime();if(smf_scripturl&&d-lastKeepAliveCheck>9E5){(new Image).src=smf_scripturl+(smf_scripturl.indexOf("?")==-1?"?":"&")+"action=keepalive;time="+d;lastKeepAliveCheck=d}window.setTimeout("smf_sessionKeepAlive();",12E5)}window.setTimeout("smf_sessionKeepAlive();",12E5);
function smf_setThemeOption(d,j,h,q,s){if(q==null)q=smf_session_id;if(s==null)s="";(new Image).src=smf_scripturl+(smf_scripturl.indexOf("?")==-1?"?":"&")+"action=jsoption;var="+d+";val="+j+";sesc="+q+s+(h==null?"":"&id="+h)+";"+(new Date).getTime()}
function smf_avatarResize(){for(var d=document.getElementsByTagName("img"),j=0;j<d.length;j++)if(d[j].className=="avatar"){var h=new Image;h.src=d[j].src;if(smf_avatarMaxWidth!=0&&h.width>smf_avatarMaxWidth){d[j].height=smf_avatarMaxWidth*h.height/h.width;d[j].width=smf_avatarMaxWidth}else if(smf_avatarMaxHeight!=0&&h.height>smf_avatarMaxHeight){d[j].width=smf_avatarMaxHeight*h.width/h.height;d[j].height=smf_avatarMaxHeight}else{d[j].width=h.width;d[j].height=h.height}}if(typeof window_oldAvatarOnload!=
"undefined"&&window_oldAvatarOnload){window_oldAvatarOnload();window_oldAvatarOnload=null}}function hashLoginPassword(d,j){if(j==null)j=smf_session_id;if(typeof hex_sha1!="undefined")if(d.user.value.indexOf("@")==-1){if(typeof window.opera=="undefined")d.passwrd.autocomplete="off";d.hash_passwrd.value=hex_sha1(hex_sha1(d.user.value.php_to8bit().php_strtolower()+d.passwrd.value.php_to8bit())+j);d.passwrd.value=is_ff!=-1?"":d.passwrd.value.replace(/./g,"*")}}
function hashAdminPassword(d,j,h){if(h==null)h=smf_session_id;if(typeof hex_sha1!="undefined"){d.admin_hash_pass.value=hex_sha1(hex_sha1(j.toLowerCase()+d.admin_pass.value)+h);d.admin_pass.value=d.admin_pass.value.replace(/./g,"*")}}
function expandPages(d,j,h,q,s){var v="",y=0;d.style.fontWeight="normal";d.onclick="";if((q-h)/s>50){y=q;q=h+50*s}for(h=h;h<q;h+=s)v+='<a class="navPages" href="'+j.replace(/%d/,h)+'">'+(1+h/s)+"</a> ";if(y>0)v+='<span style="font-weight: bold; cursor: '+(is_ie&&!is_ie6up?"hand":"pointer")+';" onclick="expandPages(this, \''+j+"', "+q+", "+y+", "+s+');"> ... </span> ';setInnerHTML(d,v)}
function smfToggle(d,j){this.uid=d;this.state=j;this.use_cookie=0;var h=Array(5);h[0]=null;this.useCookie=function(q){this.use_cookie=q?1:0};this.toggle=function(q){if(q==null)q=!this.state;if(this.use_cookie)document.cookie=this.uid+"="+(q?1:0);if(h[0]!=null){var s=h[2]?!q:q;smf_setThemeOption(h[0],s?1:0,h[3]==0?null:h[3],h[1],h[4])}var v=0;for(v=0;v<this.imageToggles.length;v++)if(s=document.getElementById(this.imageToggles[v][0]))s.src=q?this.imageToggles[v][2]:this.imageToggles[v][1];for(v=0;v<
this.panelToggles.length;v++){s=this.panelToggles[v][1]?!q:q;var y=document.getElementById(this.panelToggles[v][0]);if(y)y.style.display=s?"none":""}this.state=q};this.setOptions=function(q,s,v,y,D){h[0]=q;h[1]=s;h[2]=v==null?0:1;h[3]=y==null?0:y;h[4]=D==null?"":";admin_key="+D};this.imageToggles=[];this.panelToggles=[];this.addToggleImage=function(q,s,v,y){var D=this.imageToggles.length;this.imageToggles[D]=Array(3);this.imageToggles[D][0]=q;this.imageToggles[D][1]=(y==null?smf_images_url:"")+s;
this.imageToggles[D][2]=(y==null?smf_images_url:"")+v};this.addTogglePanel=function(q,s){var v=this.panelToggles.length;this.panelToggles[v]=Array(2);this.panelToggles[v][0]=q;this.panelToggles[v][1]=s==null?0:1}}
function ajax_indicator(d){if(ajax_indicator_ele==null){ajax_indicator_ele=document.getElementById("ajax_in_progress");ajax_indicator_ele==null&&typeof ajax_notification_text!=null&&create_ajax_indicator_ele()}if(ajax_indicator_ele!=null){if(navigator.appName=="Microsoft Internet Explorer"&&!is_ie7up){ajax_indicator_ele.style.position="absolute";ajax_indicator_ele.style.top=document.documentElement.scrollTop}ajax_indicator_ele.style.display=d?"block":"none"}}
function create_ajax_indicator_ele(){ajax_indicator_ele=document.createElement("div");ajax_indicator_ele.id="ajax_in_progress";var d=document.createElement("a");d.href="javascript:ajax_indicator(false)";var j=document.createElement("img");j.src=smf_images_url+"/icons/quick_remove.gif";if(typeof ajax_notification_cancel_text!=null){j.alt=ajax_notification_cancel_text;j.title=ajax_notification_cancel_text}d.appendChild(j);ajax_indicator_ele.appendChild(d);ajax_indicator_ele.innerHTML+=ajax_notification_text;
document.body.appendChild(ajax_indicator_ele)}function smf_htmlspecialchars(d){d=d.replace(/&/g,"&amp;");d=d.replace(/</g,"&lt;");d=d.replace(/>/g,"&gt;");return d=d.replace(/"/g,"&quot;")}function smf_unhtmlspecialchars(d){d=d.replace(/&amp;/g,"&");d=d.replace(/&lt;/g,"<");d=d.replace(/&gt;/g,">");return d=d.replace(/&quot;/g,'"')}function smf_addslashes(d){return d=d.replace(/\\/g,"\\\\").replace(/'/g,"\\'")}
function createEventListener(d){if(typeof d.addEventListener=="undefined")if(d.attachEvent){d.addEventListener=function(j,h){d.attachEvent("on"+j,h)};d.removeEventListener=function(j,h){d.detachEvent("on"+j,h)}}else{d.addEventListener=function(j,h){d["on"+j]=h};d.removeEventListener=function(j){d["on"+j]=null}}}
function grabJumpToContent(){var d=getXMLDocument(smf_prepareScriptUrl(smf_scripturl)+"action=xmlhttp;sa=jumpto;xml"),j=[];ajax_indicator(true);if(d.responseXML){d=d.responseXML.getElementsByTagName("smf")[0].getElementsByTagName("item");for(var h=0,q=d.length;h<q;h++)j[j.length]={id:parseInt(d[h].getAttribute("id")),isCategory:d[h].getAttribute("type")=="category",name:d[h].firstChild.nodeValue.removeEntities(),is_current:false,childLevel:parseInt(d[h].getAttribute("childlevel"))}}ajax_indicator(false);
h=0;for(q=aJumpTo.length;h<q;h++)aJumpTo[h].fillSelect(j)}var aJumpTo=[];function JumpTo(d){this.opt=d;this.dropdownList=null;this.showSelect()}
JumpTo.prototype.showSelect=function(){for(var d="",j=this.opt.iCurBoardChildLevel;j>0;j--)d+=this.opt.sBoardChildLevelIndicator;setInnerHTML(document.getElementById(this.opt.sContainerId),this.opt.sJumpToTemplate.replace(/%select_id%/,this.opt.sContainerId+"_select").replace(/%dropdown_list%/,'<select name="'+this.opt.sContainerId+'_select" id="'+this.opt.sContainerId+'_select" '+(typeof document.implementation=="undefined"?'onmouseover="grabJumpToContent();" ':"")+(typeof document.onbeforeactivate==
"undefined"?"onfocus":"onbeforeactivate")+'="grabJumpToContent();"><option value="?board='+this.opt.iCurBoardId+'.0">'+d+this.opt.sBoardPrefix+this.opt.sCurBoardName.removeEntities()+'</option></select>&nbsp;<input type="button" value="'+this.opt.sGoButtonLabel+'" onclick="window.location.href = \''+smf_scripturl+"?board="+this.opt.iCurBoardId+".0';\" />"));this.dropdownList=document.getElementById(this.opt.sContainerId+"_select")};
JumpTo.prototype.fillSelect=function(d){var j=typeof document.implementation=="undefined",h=0,q=document.createElement("option");q.appendChild(document.createTextNode(this.opt.sCatSeparator));q.disabled="disabled";q.value="";if(j){this.dropdownList.onmouseover=null;this.dropdownList.remove(0)}if(typeof document.onbeforeactivate=="undefined")this.dropdownList.onfocus=null;else this.dropdownList.onbeforeactivate=null;for(var s=j?this.dropdownList:document.createDocumentFragment(),v=0,y=d.length;v<y;v++){var D,
B;if(!d[v].isCategory&&d[v].id==this.opt.iCurBoardId)if(j)h=this.dropdownList.options.length;else{this.dropdownList.insertBefore(s,this.dropdownList.options[0]);s=document.createDocumentFragment();continue}if(d[v].isCategory)s.appendChild(q.cloneNode(true));else{D=d[v].childLevel;for(B="";D>0;D--)B+=this.opt.sBoardChildLevelIndicator}D=document.createElement("option");D.appendChild(document.createTextNode((d[v].isCategory?this.opt.sCatPrefix:B+this.opt.sBoardPrefix)+d[v].name));D.value=d[v].isCategory?
"#c"+d[v].id:"?board="+d[v].id+".0";s.appendChild(D);d[v].isCategory&&s.appendChild(q.cloneNode(true))}this.dropdownList.appendChild(s);if(j)this.dropdownList.options[h].selected=true;this.dropdownList.style.width="auto";this.dropdownList.focus();this.dropdownList.onchange=function(){if(this.selectedIndex>0&&this.options[this.selectedIndex].value)window.location.href=smf_scripturl+this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf("?")==-1||this.options[this.selectedIndex].value.substr(0,
1)!="?"?0:1)}};var aIconLists=[];function IconList(d){if(window.XMLHttpRequest){this.opt=d;this.bListLoaded=false;this.funcMousedownHandler=this.oContainerDiv=null;this.funcParent=this;this.iCurTimeout=this.iCurMessageId=0;this.initIcons()}}
IconList.prototype.initIcons=function(){for(var d=document.images.length-1,j=this.opt.sIconIdPrefix.length;d>=0;d--)if(document.images[d].id.substr(0,j)==this.opt.sIconIdPrefix)setOuterHTML(document.images[d],'<div title="'+this.opt.sLabelIconList+'" onclick="'+this.opt.sBackReference+".openPopup(this, "+document.images[d].id.substr(j)+')" onmouseover="'+this.opt.sBackReference+'.onBoxHover(this, true)" onmouseout="'+this.opt.sBackReference+'.onBoxHover(this, false)" style="background: '+this.opt.sBoxBackground+
"; cursor: "+(is_ie&&!is_ie6up?"hand":"pointer")+'; padding: 3px; text-align: center;"><img src="'+document.images[d].src+'" alt="'+document.images[d].alt+'" style="margin: 0px; padding: '+(is_ie?"3px":"3px 0px 3px 0px")+';" /></div>')};
IconList.prototype.onBoxHover=function(d,j){d.style.border=j?this.opt.iBoxBorderWidthHover+"px solid "+this.opt.sBoxBorderColorHover:"";d.style.background=j?this.opt.sBoxBackgroundHover:this.opt.sBoxBackground;d.style.padding=j?3-this.opt.iBoxBorderWidthHover+"px":"3px"};
IconList.prototype.openPopup=function(d,j){if(!this.bListLoaded&&this.oContainerDiv==null){this.oContainerDiv=document.createElement("div");this.oContainerDiv.id="iconList";this.oContainerDiv.style.display="none";this.oContainerDiv.style.cursor=is_ie&&!is_ie6up?"hand":"pointer";this.oContainerDiv.style.position="absolute";this.oContainerDiv.style.width=d.offsetWidth+"px";this.oContainerDiv.style.background=this.opt.sContainerBackground;this.oContainerDiv.style.border=this.opt.sContainerBorder;this.oContainerDiv.style.padding=
"1px";this.oContainerDiv.style.textAlign="center";document.body.appendChild(this.oContainerDiv);ajax_indicator(true);this.tmpMethod=getXMLDocument;this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl)+"action=xmlhttp;sa=messageicons;board="+this.opt.iBoardId+";xml",this.onIconsReceived);delete this.tmpMethod;createEventListener(document.body)}this.iCurMessageId=j;var h=smf_itemPos(d);if(is_ie50)h[1]+=4;this.oContainerDiv.style.top=h[1]+d.offsetHeight+"px";this.oContainerDiv.style.left=h[0]-1+"px";
this.oClickedIcon=d;if(this.bListLoaded)this.oContainerDiv.style.display="block";document.body.addEventListener("mousedown",this.onWindowMouseDown,false)};
IconList.prototype.onIconsReceived=function(d){d=d.getElementsByTagName("smf")[0].getElementsByTagName("icon");for(var j="",h=0,q=d.length;h<q;h++)j+='<div onmouseover="'+this.opt.sBackReference+'.onItemHover(this, true)" onmouseout="'+this.opt.sBackReference+'.onItemHover(this, false);" onmousedown="'+this.opt.sBackReference+".onItemMouseDown(this, '"+d[h].getAttribute("value")+'\');" style="padding: 3px 0px 3px 0px; margin-left: auto; margin-right: auto; border: '+this.opt.sItemBorder+"; background: "+
this.opt.sItemBackground+'"><img src="'+d[h].getAttribute("url")+'" alt="'+d[h].getAttribute("name")+'" title="'+d[h].firstChild.nodeValue+'" border="0" /></div>';setInnerHTML(this.oContainerDiv,j);this.oContainerDiv.style.display="block";this.bListLoaded=true;if(is_ie)this.oContainerDiv.style.width=this.oContainerDiv.clientWidth+"px";ajax_indicator(false)};
IconList.prototype.onItemHover=function(d,j){d.style.background=j?this.opt.sItemBackgroundHover:this.opt.sItemBackground;d.style.border=j?this.opt.sItemBorderHover:this.opt.sItemBorder;this.iCurTimeout!=0&&window.clearTimeout(this.iCurTimeout);if(j)this.onBoxHover(this.oClickedIcon,true);else this.iCurTimeout=window.setTimeout(this.opt.sBackReference+".collapseList();",500)};
IconList.prototype.onItemMouseDown=function(d,j){if(this.iCurMessageId!=0){ajax_indicator(true);this.tmpMethod=getXMLDocument;var h=this.tmpMethod(smf_prepareScriptUrl(this.opt.sScriptUrl)+"action=jsmodify;topic="+this.opt.iTopicId+";msg="+this.iCurMessageId+";sesc="+this.opt.sSessionId+";icon="+j+";xml");delete this.tmpMethod;ajax_indicator(false);h=h.responseXML.getElementsByTagName("smf")[0].getElementsByTagName("message")[0];if(h.getElementsByTagName("error").length==0){this.opt.bShowModify&&
h.getElementsByTagName("modified").length!=0&&setInnerHTML(document.getElementById("modified_"+this.iCurMessageId),h.getElementsByTagName("modified")[0].childNodes[0].nodeValue);this.oClickedIcon.getElementsByTagName("img")[0].src=d.getElementsByTagName("img")[0].src}}};IconList.prototype.onWindowMouseDown=function(){for(var d=aIconLists.length-1;d>=0;d--){aIconLists[d].funcParent.tmpMethod=aIconLists[d].collapseList;aIconLists[d].funcParent.tmpMethod();delete aIconLists[d].funcParent.tmpMethod}};
IconList.prototype.collapseList=function(){this.onBoxHover(this.oClickedIcon,false);this.oContainerDiv.style.display="none";this.iCurMessageId=0;document.body.removeEventListener("mousedown",this.onWindowMouseDown,false)};
function smf_mousePose(d){var j=0,h=0;if(d.pageX){h=d.pageY;j=d.pageX}else if(d.clientX){j=d.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);h=d.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}return[j,h]}
function smf_itemPos(d){var j=0,h=0;if(typeof d.offsetParent!="undefined"){j=d.offsetLeft;for(h=d.offsetTop;d.offsetParent&&typeof d.offsetParent=="object";){d=d.offsetParent;j+=d.offsetLeft;h+=d.offsetTop}}else if(typeof d.x!="undefined"){j=d.x;h=d.y}return[j,h]}function smf_prepareScriptUrl(d){return d.indexOf("?")==-1?d+"?":d+(d.charAt(d.length-1)=="?"||d.charAt(d.length-1)=="&"||d.charAt(d.length-1)==";"?"":";")}var onload_events=[];
function add_load_event(d){var j=window.onload;if(typeof j!="function")window.onload=d;else if(onload_events.length==0){onload_events[0]=j;onload_events[1]=d;window.onload=function(){for(var h=0;h<onload_events.length;h++)onload_events[h]&&onload_events[h]()}}else onload_events[onload_events.length]=d}function smfFooterHighlight(d,j){d.src=smf_images_url+"/"+(j?"h_":"")+d.id+".gif"}
function smfSelectText(d,j){var h=typeof j=="boolean"&&j?document.getElementById(d):d.parentNode.nextSibling;if(typeof h!="object"||h==null)return false;if(document.body.createTextRange){var q=document.body.createTextRange();q.moveToElementText(h);q.select()}else if(window.getSelection){q=window.getSelection();if(q.setBaseAndExtent){var s=h.lastChild;q.setBaseAndExtent(h,0,s,typeof s.innerText=="undefined"?s.textContent.length:s.innerText.length)}else{s=document.createRange();s.selectNodeContents(h);
q.removeAllRanges();q.addRange(s)}}return false};
