function encode64(c){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var j,h,g,f,d,b=0,a="";while(b<c.length){j=c.charCodeAt(b++);if(j>127){j=88}h=c.charCodeAt(b++);if(h>127){h=88}g=c.charCodeAt(b++);if(g>127){g=88}if(isNaN(g)){d=64;g=0}else{d=g&63}if(isNaN(h)){f=64;h=0}else{f=((h<<2)|(g>>6))&63}a+=e.charAt((j>>2)&63)+e.charAt(((j<<4)|(h>>4))&63)+e.charAt(f)+e.charAt(d)}return encodeURIComponent(a)}function stats(a){var e=encode64(document.referrer);var d=encode64(window.location.pathname+location.search);var b=new Date();var c=b.getTime();document.writeln('<img src="http://www.webz.es/adminwebz/estadisticas/count.php?sid='+a+"&p="+d+"&r="+e+"&t="+c+'" alt="" border="0" />\n')};var XHTMLNS="http://www.w3.org/1999/xhtml";var CURRENT_NICE_TITLE;var browser=new Browser();function Browser(){var b,c,a;this.isIE=false;this.isNS=false;this.version=null;b=navigator.userAgent;c="MSIE";if((a=b.indexOf(c))>=0){this.isIE=true;this.version=parseFloat(b.substr(a+c.length));return}c="Netscape6/";if((a=b.indexOf(c))>=0){this.isNS=true;this.version=parseFloat(b.substr(a+c.length));return}c="Gecko";if((a=b.indexOf(c))>=0){this.isNS=true;this.version=6.1;return}}var delay;var interval=0.6;function makeNiceTitles(){if(!document.createElement||!document.getElementsByTagName){return}if(!document.createElementNS){document.createElementNS=function(l,k){return document.createElement(k)}}if(!document.links){document.links=document.getElementsByTagName("a")}for(var a=0;a<document.links.length;a++){var b=document.links[a];if(b.title){b.setAttribute("nicetitle",b.title);b.removeAttribute("title");addEvent(b,"mouseover",showDelay);addEvent(b,"mouseout",hideNiceTitle);addEvent(b,"focus",showDelay);addEvent(b,"blur",hideNiceTitle)}}var i=new Array(2);i[0]=document.getElementsByTagName("ins");i[1]=document.getElementsByTagName("del");for(var d=0;d<i.length;d++){if(i[d]){for(var a=0;a<i[d].length;a++){var j=i[d][a];if(j.dateTime){var g=j.dateTime;var c=g.substring(5,7);var f=g.substring(8,10);if(c[0]=="0"){c=c[1]}if(f[0]=="0"){f=f[1]}var e=new Date(g.substring(0,4),c-1,f,g.substring(11,13),g.substring(14,16),g.substring(17,19));j.setAttribute("nicetitle",(d==0?"Added":"Deleted")+" on "+e.toString());addEvent(j,"mouseover",showDelay);addEvent(j,"mouseout",hideNiceTitle);addEvent(j,"focus",showDelay);addEvent(j,"blur",hideNiceTitle)}}}}}function addEvent(d,c,a){if(d.addEventListener){d.addEventListener(c,a,true);return true}else{if(d.attachEvent){var b=d.attachEvent("on"+c,a);return b}else{return false}}}function findPosition(b){if(b.offsetParent){for(var c=0,a=0;b.offsetParent;b=b.offsetParent){c+=b.offsetLeft;a+=b.offsetTop}return[c,a]}else{return[b.x,b.y]}}function getParent(b,a){if(b==null){return null}else{if(b.nodeType==1&&b.tagName.toLowerCase()==a.toLowerCase()){return b}else{return getParent(b.parentNode,a)}}}function showDelay(a){if(window.event&&window.event.srcElement){lnk=window.event.srcElement}else{if(a&&a.target){lnk=a.target}}if(!lnk){return}if(lnk.nodeType==3||(lnk.nodeType==1&&lnk.tagName.toLowerCase()!="ins"&&lnk.tagName.toLowerCase()!="del")){lnk=getParent(lnk,"a")}delay=setTimeout("showNiceTitle(lnk)",interval*1000)}function showNiceTitle(a){if(CURRENT_NICE_TITLE){hideNiceTitle(CURRENT_NICE_TITLE)}if(!document.getElementsByTagName){return}nicetitle=lnk.getAttribute("nicetitle");var b=document.createElementNS(XHTMLNS,"div");b.className="nicetitle";tnt=document.createTextNode(nicetitle);pat=document.createElementNS(XHTMLNS,"p");pat.className="titletext";pat.appendChild(tnt);if(lnk.accessKey){axs=document.createTextNode(" ["+lnk.accessKey+"]");axsk=document.createElementNS(XHTMLNS,"span");axsk.className="accesskey";axsk.appendChild(axs);pat.appendChild(axsk)}b.appendChild(pat);if(lnk.href){tnd=document.createTextNode(lnk.href);pad=document.createElementNS(XHTMLNS,"p");pad.className="destination";pad.appendChild(tnd);b.appendChild(pad)}STD_WIDTH=300;if(lnk.href){h=lnk.href.length}else{h=nicetitle.length}if(nicetitle.length){t=nicetitle.length}h_pixels=h*6;t_pixels=t*10;if(h_pixels>STD_WIDTH){w=h_pixels}else{if((STD_WIDTH>t_pixels)&&(t_pixels>h_pixels)){w=t_pixels}else{if((STD_WIDTH>t_pixels)&&(h_pixels>t_pixels)){w=h_pixels}else{w=STD_WIDTH}}}b.style.width=w+"px";mpos=findPosition(lnk);mx=mpos[0];my=mpos[1];b.style.left=(mx+15)+"px";b.style.top=(my+35)+"px";if(window.innerWidth&&((mx+w)>window.innerWidth)){b.style.left=(window.innerWidth-w-25)+"px"}if(document.body.scrollWidth&&((mx+w)>document.body.scrollWidth)){b.style.left=(document.body.scrollWidth-w-25)+"px"}document.getElementsByTagName("body")[0].appendChild(b);CURRENT_NICE_TITLE=b}function hideNiceTitle(a){if(delay){clearTimeout(delay)}if(!document.getElementsByTagName){return}if(CURRENT_NICE_TITLE){document.getElementsByTagName("body")[0].removeChild(CURRENT_NICE_TITLE);CURRENT_NICE_TITLE=null}}window.onload=function(a){makeNiceTitles()};(function(){if(typeof jQuery!="undefined"){var _jQuery=jQuery}var jQuery=window.jQuery=function(selector,context){return this instanceof jQuery?this.init(selector,context):new jQuery(selector,context)};if(typeof $!="undefined"){var _$=$}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(typeof selector=="string"){var m=quickExpr.exec(selector);if(m&&(m[1]||!context)){if(m[1]){selector=jQuery.clean([m[1]],context)}else{var tmp=document.getElementById(m[3]);if(tmp){if(tmp.id!=m[3]){return jQuery().find(selector)}else{this[0]=tmp;this.length=1;return this}}else{selector=[]}}}else{return new jQuery(context).find(selector)}}else{if(jQuery.isFunction(selector)){return new jQuery(document)[jQuery.fn.ready?"ready":"load"](selector)}}return this.setArray(selector.constructor==Array&&selector||(selector.jquery||selector.length&&selector!=window&&!selector.nodeType&&selector[0]!=undefined&&selector[0].nodeType)&&jQuery.makeArray(selector)||[selector])},jquery:"1.2.1",size:function(){return this.length},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num]},pushStack:function(a){var ret=jQuery(a);ret.prevObject=this;return ret},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},each:function(fn,args){return jQuery.each(this,fn,args)},index:function(obj){var pos=-1;this.each(function(i){if(this==obj){pos=i}});return pos},attr:function(key,value,type){var obj=key;if(key.constructor==String){if(value==undefined){return this.length&&jQuery[type||"attr"](this[0],key)||undefined}else{obj={};obj[key]=value}}return this.each(function(index){for(var prop in obj){jQuery.attr(type?this.style:this,prop,jQuery.prop(this,obj[prop],type,index,prop))}})},css:function(key,value){return this.attr(key,value,"curCSS")},text:function(e){if(typeof e!="object"&&e!=null){return this.empty().append(document.createTextNode(e))}var t="";jQuery.each(e||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8){t+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this])}})});return t},wrapAll:function(html){if(this[0]){jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild){elem=elem.firstChild}return elem}).append(this)}return this},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html)})},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html)})},append:function(){return this.domManip(arguments,true,1,function(a){this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,-1,function(a){this.insertBefore(a,this.firstChild)})},before:function(){return this.domManip(arguments,false,1,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,-1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})},end:function(){return this.prevObject||jQuery([])},find:function(t){var data=jQuery.map(this,function(a){return jQuery.find(t,a)});return this.pushStack(/[^+>] [^+>]/.test(t)||t.indexOf("..")>-1?jQuery.unique(data):data)},clone:function(events){var ret=this.map(function(){return this.outerHTML?jQuery(this.outerHTML)[0]:this.cloneNode(true)});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined){this[expando]=null}});if(events===true){this.find("*").andSelf().each(function(i){var events=jQuery.data(this,"events");for(var type in events){for(var handler in events[type]){jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data)}}})}return ret},filter:function(t){return this.pushStack(jQuery.isFunction(t)&&jQuery.grep(this,function(el,index){return t.apply(el,[index])})||jQuery.multiFilter(t,this))},not:function(t){return this.pushStack(t.constructor==String&&jQuery.multiFilter(t,this,true)||jQuery.grep(this,function(a){return(t.constructor==Array||t.jquery)?jQuery.inArray(a,t)<0:a!=t}))},add:function(t){return this.pushStack(jQuery.merge(this.get(),t.constructor==String?jQuery(t).get():t.length!=undefined&&(!t.nodeName||jQuery.nodeName(t,"form"))?t:[t]))},is:function(expr){return expr?jQuery.multiFilter(expr,this).length>0:false},hasClass:function(expr){return this.is("."+expr)},val:function(val){if(val==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,a=[],options=elem.options,one=elem.type=="select-one";if(index<0){return null}for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){var val=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one){return val}a.push(val)}}return a}else{return this[0].value.replace(/\r/g,"")}}}else{return this.each(function(){if(val.constructor==Array&&/radio|checkbox/.test(this.type)){this.checked=(jQuery.inArray(this.value,val)>=0||jQuery.inArray(this.name,val)>=0)}else{if(jQuery.nodeName(this,"select")){var tmp=val.constructor==Array?val:[val];jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,tmp)>=0||jQuery.inArray(this.text,tmp)>=0)});if(!tmp.length){this.selectedIndex=-1}}else{this.value=val}}})}},html:function(val){return val==undefined?(this.length?this[0].innerHTML:null):this.empty().append(val)},replaceWith:function(val){return this.after(val).remove()},eq:function(i){return this.slice(i,i+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments))},map:function(fn){return this.pushStack(jQuery.map(this,function(elem,i){return fn.call(elem,i,elem)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(args,table,dir,fn){var clone=this.length>1,a;return this.each(function(){if(!a){a=jQuery.clean(args,this.ownerDocument);if(dir<0){a.reverse()}}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(a[0],"tr")){obj=this.getElementsByTagName("tbody")[0]||this.appendChild(document.createElement("tbody"))}jQuery.each(a,function(){var elem=clone?this.cloneNode(true):this;if(!evalScript(0,elem)){fn.call(obj,elem)}})})}};function evalScript(i,elem){var script=jQuery.nodeName(elem,"script");if(script){if(elem.src){jQuery.ajax({url:elem.src,async:false,dataType:"script"})}else{jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"")}if(elem.parentNode){elem.parentNode.removeChild(elem)}}else{if(elem.nodeType==1){jQuery("script",elem).each(evalScript)}}return script}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},a=1,al=arguments.length,deep=false;if(target.constructor==Boolean){deep=target;target=arguments[1]||{}}if(al==1){target=this;a=0}var prop;for(;a<al;a++){if((prop=arguments[a])!=null){for(var i in prop){if(target==prop[i]){continue}if(deep&&typeof prop[i]=="object"&&target[i]){jQuery.extend(target[i],prop[i])}else{if(prop[i]!=undefined){target[i]=prop[i]}}}}}return target};var expando="jQuery"+(new Date()).getTime(),uuid=0,win={};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep){window.jQuery=_jQuery}return jQuery},isFunction:function(fn){return !!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/function/i.test(fn+"")},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body},globalEval:function(data){data=jQuery.trim(data);if(data){if(window.execScript){window.execScript(data)}else{if(jQuery.browser.safari){window.setTimeout(data,0)}else{eval.call(window,data)}}}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase()},cache:{},data:function(elem,name,data){elem=elem==window?win:elem;var id=elem[expando];if(!id){id=elem[expando]=++uuid}if(name&&!jQuery.cache[id]){jQuery.cache[id]={}}if(data!=undefined){jQuery.cache[id][name]=data}return name?jQuery.cache[id][name]:id},removeData:function(elem,name){elem=elem==window?win:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id]){break}if(!name){jQuery.removeData(elem)}}}else{try{delete elem[expando]}catch(e){if(elem.removeAttribute){elem.removeAttribute(expando)}}delete jQuery.cache[id]}},each:function(obj,fn,args){if(args){if(obj.length==undefined){for(var i in obj){fn.apply(obj[i],args)}}else{for(var i=0,ol=obj.length;i<ol;i++){if(fn.apply(obj[i],args)===false){break}}}}else{if(obj.length==undefined){for(var i in obj){fn.call(obj[i],i,obj[i])}}else{for(var i=0,ol=obj.length,val=obj[0];i<ol&&fn.call(val,i,val)!==false;val=obj[++i]){}}}return obj},prop:function(elem,value,type,index,prop){if(jQuery.isFunction(value)){value=value.call(elem,[index])}var exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i;return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(prop)?value+"px":value},className:{add:function(elem,c){jQuery.each((c||"").split(/\s+/),function(i,cur){if(!jQuery.className.has(elem.className,cur)){elem.className+=(elem.className?" ":"")+cur}})},remove:function(elem,c){elem.className=c!=undefined?jQuery.grep(elem.className.split(/\s+/),function(cur){return !jQuery.className.has(c,cur)}).join(" "):""},has:function(t,c){return jQuery.inArray(c,(t.className||t).toString().split(/\s+/))>-1}},swap:function(e,o,f){for(var i in o){e.style["old"+i]=e.style[i];e.style[i]=o[i]}f.apply(e,[]);for(var i in o){e.style[i]=e.style["old"+i]}},css:function(e,p){if(p=="height"||p=="width"){var old={},oHeight,oWidth,d=["Top","Bottom","Right","Left"];jQuery.each(d,function(){old["padding"+this]=0;old["border"+this+"Width"]=0});jQuery.swap(e,old,function(){if(jQuery(e).is(":visible")){oHeight=e.offsetHeight;oWidth=e.offsetWidth}else{e=jQuery(e.cloneNode(true)).find(":radio").removeAttr("checked").end().css({visibility:"hidden",position:"absolute",display:"block",right:"0",left:"0"}).appendTo(e.parentNode)[0];var parPos=jQuery.css(e.parentNode,"position")||"static";if(parPos=="static"){e.parentNode.style.position="relative"}oHeight=e.clientHeight;oWidth=e.clientWidth;if(parPos=="static"){e.parentNode.style.position="static"}e.parentNode.removeChild(e)}});return p=="height"?oHeight:oWidth}return jQuery.curCSS(e,p)},curCSS:function(elem,prop,force){var ret,stack=[],swap=[];function color(a){if(!jQuery.browser.safari){return false}var ret=document.defaultView.getComputedStyle(a,null);return !ret||ret.getPropertyValue("color")==""}if(prop=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(elem.style,"opacity");return ret==""?"1":ret}if(prop.match(/float/i)){prop=styleFloat}if(!force&&elem.style[prop]){ret=elem.style[prop]}else{if(document.defaultView&&document.defaultView.getComputedStyle){if(prop.match(/float/i)){prop="float"}prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();var cur=document.defaultView.getComputedStyle(elem,null);if(cur&&!color(elem)){ret=cur.getPropertyValue(prop)}else{for(var a=elem;a&&color(a);a=a.parentNode){stack.unshift(a)}for(a=0;a<stack.length;a++){if(color(stack[a])){swap[a]=stack[a].style.display;stack[a].style.display="block"}}ret=prop=="display"&&swap[stack.length-1]!=null?"none":document.defaultView.getComputedStyle(elem,null).getPropertyValue(prop)||"";for(a=0;a<swap.length;a++){if(swap[a]!=null){stack[a].style.display=swap[a]}}}if(prop=="opacity"&&ret==""){ret="1"}}else{if(elem.currentStyle){var newProp=prop.replace(/\-(\w)/g,function(m,c){return c.toUpperCase()});ret=elem.currentStyle[prop]||elem.currentStyle[newProp];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var style=elem.style.left;var runtimeStyle=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;elem.style.left=ret||0;ret=elem.style.pixelLeft+"px";elem.style.left=style;elem.runtimeStyle.left=runtimeStyle}}}}return ret},clean:function(a,doc){var r=[];doc=doc||document;jQuery.each(a,function(i,arg){if(!arg){return}if(arg.constructor==Number){arg=arg.toString()}if(typeof arg=="string"){arg=arg.replace(/(<(\w+)[^>]*?)\/>/g,function(m,all,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area)$/i)?m:all+"></"+tag+">"});var s=jQuery.trim(arg).toLowerCase(),div=doc.createElement("div"),tb=[];var wrap=!s.indexOf("<opt")&&[1,"<select>","</select>"]||!s.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||s.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!s.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!s.indexOf("<td")||!s.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!s.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+arg+wrap[2];while(wrap[0]--){div=div.lastChild}if(jQuery.browser.msie){if(!s.indexOf("<table")&&s.indexOf("<tbody")<0){tb=div.firstChild&&div.firstChild.childNodes}else{if(wrap[1]=="<table>"&&s.indexOf("<tbody")<0){tb=div.childNodes}}for(var n=tb.length-1;n>=0;--n){if(jQuery.nodeName(tb[n],"tbody")&&!tb[n].childNodes.length){tb[n].parentNode.removeChild(tb[n])}}if(/^\s/.test(arg)){div.insertBefore(doc.createTextNode(arg.match(/^\s*/)[0]),div.firstChild)}}arg=jQuery.makeArray(div.childNodes)}if(0===arg.length&&(!jQuery.nodeName(arg,"form")&&!jQuery.nodeName(arg,"select"))){return}if(arg[0]==undefined||jQuery.nodeName(arg,"form")||arg.options){r.push(arg)}else{r=jQuery.merge(r,arg)}});return r},attr:function(elem,name,value){var fix=jQuery.isXMLDoc(elem)?{}:jQuery.props;if(name=="selected"&&jQuery.browser.safari){elem.parentNode.selectedIndex}if(fix[name]){if(value!=undefined){elem[fix[name]]=value}return elem[fix[name]]}else{if(jQuery.browser.msie&&name=="style"){return jQuery.attr(elem.style,"cssText",value)}else{if(value==undefined&&jQuery.browser.msie&&jQuery.nodeName(elem,"form")&&(name=="action"||name=="method")){return elem.getAttributeNode(name).nodeValue}else{if(elem.tagName){if(value!=undefined){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode){throw"type property can't be changed"}elem.setAttribute(name,value)}if(jQuery.browser.msie&&/href|src/.test(name)&&!jQuery.isXMLDoc(elem)){return elem.getAttribute(name,2)}return elem.getAttribute(name)}else{if(name=="opacity"&&jQuery.browser.msie){if(value!=undefined){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseFloat(value).toString()=="NaN"?"":"alpha(opacity="+value*100+")")}return elem.filter?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100).toString():""}name=name.replace(/-([a-z])/ig,function(z,b){return b.toUpperCase()});if(value!=undefined){elem[name]=value}return elem[name]}}}}},trim:function(t){return(t||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var r=[];if(typeof a!="array"){for(var i=0,al=a.length;i<al;i++){r.push(a[i])}}else{r=a.slice(0)}return r},inArray:function(b,a){for(var i=0,al=a.length;i<al;i++){if(a[i]==b){return i}}return -1},merge:function(first,second){if(jQuery.browser.msie){for(var i=0;second[i];i++){if(second[i].nodeType!=8){first.push(second[i])}}}else{for(var i=0;second[i];i++){first.push(second[i])}}return first},unique:function(first){var r=[],done={};try{for(var i=0,fl=first.length;i<fl;i++){var id=jQuery.data(first[i]);if(!done[id]){done[id]=true;r.push(first[i])}}}catch(e){r=first}return r},grep:function(elems,fn,inv){if(typeof fn=="string"){fn=eval("false||function(a,i){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){if(!inv&&fn(elems[i],i)||inv&&!fn(elems[i],i)){result.push(elems[i])}}return result},map:function(elems,fn){if(typeof fn=="string"){fn=eval("false||function(a){return "+fn+"}")}var result=[];for(var i=0,el=elems.length;i<el;i++){var val=fn(elems[i],i);if(val!==null&&val!=undefined){if(val.constructor!=Array){val=[val]}result=result.concat(val)}}return result}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",styleFloat:jQuery.browser.msie?"styleFloat":"cssFloat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,innerHTML:"innerHTML",className:"className",value:"value",disabled:"disabled",checked:"checked",readonly:"readOnly",selected:"selected",maxlength:"maxLength"}});jQuery.each({parent:"a.parentNode",parents:"jQuery.dir(a,'parentNode')",next:"jQuery.nth(a,2,'nextSibling')",prev:"jQuery.nth(a,2,'previousSibling')",nextAll:"jQuery.dir(a,'nextSibling')",prevAll:"jQuery.dir(a,'previousSibling')",siblings:"jQuery.sibling(a.parentNode.firstChild,a)",children:"jQuery.sibling(a.firstChild)",contents:"jQuery.nodeName(a,'iframe')?a.contentDocument||a.contentWindow.document:jQuery.makeArray(a.childNodes)"},function(i,n){jQuery.fn[i]=function(a){var ret=jQuery.map(this,n);if(a&&typeof a=="string"){ret=jQuery.multiFilter(a,ret)}return this.pushStack(jQuery.unique(ret))}});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(i,n){jQuery.fn[i]=function(){var a=arguments;return this.each(function(){for(var j=0,al=a.length;j<al;j++){jQuery(a[j])[n](this)}})}});jQuery.each({removeAttr:function(key){jQuery.attr(this,key,"");this.removeAttribute(key)},addClass:function(c){jQuery.className.add(this,c)},removeClass:function(c){jQuery.className.remove(this,c)},toggleClass:function(c){jQuery.className[jQuery.className.has(this,c)?"remove":"add"](this,c)},remove:function(a){if(!a||jQuery.filter(a,[this]).r.length){jQuery.removeData(this);this.parentNode.removeChild(this)}},empty:function(){jQuery("*",this).each(function(){jQuery.removeData(this)});while(this.firstChild){this.removeChild(this.firstChild)}}},function(i,n){jQuery.fn[i]=function(){return this.each(n,arguments)}});jQuery.each(["Height","Width"],function(i,name){var n=name.toLowerCase();jQuery.fn[n]=function(h){return this[0]==window?jQuery.browser.safari&&self["inner"+name]||jQuery.boxModel&&Math.max(document.documentElement["client"+name],document.body["client"+name])||document.body["client"+name]:this[0]==document?Math.max(document.body["scroll"+name],document.body["offset"+name]):h==undefined?(this.length?jQuery.css(this[0],n):null):this.css(n,h.constructor==String?h:h+"px")}});var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":"m[2]=='*'||jQuery.nodeName(a,m[2])","#":"a.getAttribute('id')==m[2]",":":{lt:"i<m[3]-0",gt:"i>m[3]-0",nth:"m[3]-0==i",eq:"m[3]-0==i",first:"i==0",last:"i==r.length-1",even:"i%2==0",odd:"i%2","first-child":"a.parentNode.getElementsByTagName('*')[0]==a","last-child":"jQuery.nth(a.parentNode.lastChild,1,'previousSibling')==a","only-child":"!jQuery.nth(a.parentNode.lastChild,2,'previousSibling')",parent:"a.firstChild",empty:"!a.firstChild",contains:"(a.textContent||a.innerText||jQuery(a).text()||'').indexOf(m[3])>=0",visible:'"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden"',hidden:'"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden"',enabled:"!a.disabled",disabled:"a.disabled",checked:"a.checked",selected:"a.selected||jQuery.attr(a,'selected')",text:"'text'==a.type",radio:"'radio'==a.type",checkbox:"'checkbox'==a.type",file:"'file'==a.type",password:"'password'==a.type",submit:"'submit'==a.type",image:"'image'==a.type",reset:"'reset'==a.type",button:'"button"==a.type||jQuery.nodeName(a,"button")',input:"/input|select|textarea|button/i.test(a.nodeName)",has:"jQuery.find(m[3],a).length",header:"/h\\d/i.test(a.nodeName)",animated:"jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length"}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r)}return cur},find:function(t,context){if(typeof t!="string"){return[t]}if(context&&!context.nodeType){context=null}context=context||document;var ret=[context],done=[],last;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false;var re=quickChild;var m=re.exec(t);if(m){var nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++){for(var c=ret[i].firstChild;c;c=c.nextSibling){if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName.toUpperCase())){r.push(c)}}}ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0){continue}foundToken=true}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var nodeName=m[2],merge={};m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling){if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id]){break}if(!nodeName||n.nodeName.toUpperCase()==nodeName.toUpperCase()){if(m=="~"){merge[id]=true}r.push(n)}if(m=="+"){break}}}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length)}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]]}else{re2=quickClass;m=re2.exec(t)}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2]){oid=jQuery('[@id="'+m[2]+'"]',elem)[0]}ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[]}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object"){tag="param"}r=jQuery.merge(r,ret[i].getElementsByTagName(tag))}if(m[1]=="."){r=jQuery.classFilter(r,m[2])}if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++){if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break}}r=tmp}ret=r}t=t.replace(re2,"")}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t)}}if(t){ret=[]}if(ret&&context==ret[0]){ret.shift()}done=jQuery.merge(done,ret);return done},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass){tmp.push(r[i])}}return tmp},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break}}if(!m){break}if(m[1]==":"&&m[2]=="not"){r=jQuery.filter(m[3],r,true).r}else{if(m[1]=="."){r=jQuery.classFilter(r,m[2],not)}else{if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2])){z=jQuery.attr(a,m[2])||""}if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not){tmp.push(a)}}r=tmp}else{if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(\d*)n\+?(\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"n+"+m[3]||m[3]),first=(test[1]||1)-0,last=test[2]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling){if(n.nodeType==1){n.nodeIndex=c++}}merge[id]=true}var add=false;if(first==1){if(last==0||node.nodeIndex==last){add=true}}else{if((node.nodeIndex+last)%first==0){add=true}}if(add^not){tmp.push(node)}}r=tmp}else{var f=jQuery.expr[m[1]];if(typeof f!="string"){f=jQuery.expr[m[1]][m[2]]}f=eval("false||function(a,i){return "+f+"}");r=jQuery.grep(r,f,not)}}}}}return{r:r,t:t}},dir:function(elem,dir){var matched=[];var cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1){matched.push(cur)}cur=cur[dir]}return matched},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir]){if(cur.nodeType==1&&++num==result){break}}return cur},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&(!elem||n!=elem)){r.push(n)}}return r}});jQuery.event={add:function(element,type,handler,data){if(jQuery.browser.msie&&element.setInterval!=undefined){element=window}if(!handler.guid){handler.guid=this.guid++}if(data!=undefined){var fn=handler;handler=function(){return fn.apply(this,arguments)};handler.data=data;handler.guid=fn.guid}var parts=type.split(".");type=parts[0];handler.type=parts[1];var events=jQuery.data(element,"events")||jQuery.data(element,"events",{});var handle=jQuery.data(element,"handle",function(){var val;if(typeof jQuery=="undefined"||jQuery.event.triggered){return val}val=jQuery.event.handle.apply(element,arguments);return val});var handlers=events[type];if(!handlers){handlers=events[type]={};if(element.addEventListener){element.addEventListener(type,handle,false)}else{element.attachEvent("on"+type,handle)}}handlers[handler.guid]=handler;this.global[type]=true},guid:1,global:{},remove:function(element,type,handler){var events=jQuery.data(element,"events"),ret,index;if(typeof type=="string"){var parts=type.split(".");type=parts[0]}if(events){if(type&&type.type){handler=type.handler;type=type.type}if(!type){for(type in events){this.remove(element,type)}}else{if(events[type]){if(handler){delete events[type][handler.guid]}else{for(handler in events[type]){if(!parts[1]||events[type][handler].type==parts[1]){delete events[type][handler]}}}for(ret in events[type]){break}if(!ret){if(element.removeEventListener){element.removeEventListener(type,jQuery.data(element,"handle"),false)}else{element.detachEvent("on"+type,jQuery.data(element,"handle"))}ret=null;delete events[type]}}}for(ret in events){break}if(!ret){jQuery.removeData(element,"events");jQuery.removeData(element,"handle")}}},trigger:function(type,data,element,donative,extra){data=jQuery.makeArray(data||[]);if(!element){if(this.global[type]){jQuery("*").add([window,document]).trigger(type,data)}}else{var val,ret,fn=jQuery.isFunction(element[type]||null),evt=!data[0]||!data[0].preventDefault;if(evt){data.unshift(this.fix({type:type,target:element}))}data[0].type=type;if(jQuery.isFunction(jQuery.data(element,"handle"))){val=jQuery.data(element,"handle").apply(element,data)}if(!fn&&element["on"+type]&&element["on"+type].apply(element,data)===false){val=false}if(evt){data.shift()}if(extra&&extra.apply(element,data)===false){val=false}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(element,"a")&&type=="click")){this.triggered=true;element[type]()}this.triggered=false}return val},handle:function(event){var val;event=jQuery.event.fix(event||window.event||{});var parts=event.type.split(".");event.type=parts[0];var c=jQuery.data(this,"events")&&jQuery.data(this,"events")[event.type],args=Array.prototype.slice.call(arguments,1);args.unshift(event);for(var j in c){args[0].handler=c[j];args[0].data=c[j].data;if(!parts[1]||c[j].type==parts[1]){var tmp=c[j].apply(this,args);if(val!==false){val=tmp}if(tmp===false){event.preventDefault();event.stopPropagation()}}}if(jQuery.browser.msie){event.target=event.preventDefault=event.stopPropagation=event.handler=event.data=null}return val},fix:function(event){var originalEvent=event;event=jQuery.extend({},originalEvent);event.preventDefault=function(){if(originalEvent.preventDefault){originalEvent.preventDefault()}originalEvent.returnValue=false};event.stopPropagation=function(){if(originalEvent.stopPropagation){originalEvent.stopPropagation()}originalEvent.cancelBubble=true};if(!event.target&&event.srcElement){event.target=event.srcElement}if(jQuery.browser.safari&&event.target.nodeType==3){event.target=originalEvent.target.parentNode}if(!event.relatedTarget&&event.fromElement){event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement}if(event.pageX==null&&event.clientX!=null){var e=document.documentElement,b=document.body;event.pageX=event.clientX+(e&&e.scrollLeft||b.scrollLeft||0);event.pageY=event.clientY+(e&&e.scrollTop||b.scrollTop||0)}if(!event.which&&(event.charCode||event.keyCode)){event.which=event.charCode||event.keyCode}if(!event.metaKey&&event.ctrlKey){event.metaKey=event.ctrlKey}if(!event.which&&event.button){event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)))}return event}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data)})},one:function(type,data,fn){return this.each(function(){jQuery.event.add(this,type,function(event){jQuery(this).unbind(event);return(fn||data).apply(this,arguments)},fn&&data)})},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn)})},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn)})},triggerHandler:function(type,data,fn){if(this[0]){return jQuery.event.trigger(type,data,this[0],false,fn)}},toggle:function(){var a=arguments;return this.click(function(e){this.lastToggle=0==this.lastToggle?1:0;e.preventDefault();return a[this.lastToggle].apply(this,[e])||false})},hover:function(f,g){function handleHover(e){var p=e.relatedTarget;while(p&&p!=this){try{p=p.parentNode}catch(e){p=this}}if(p==this){return false}return(e.type=="mouseover"?f:g).apply(this,[e])}return this.mouseover(handleHover).mouseout(handleHover)},ready:function(f){bindReady();if(jQuery.isReady){f.apply(document,[jQuery])}else{jQuery.readyList.push(function(){return f.apply(this,[jQuery])})}return this}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.apply(document)});jQuery.readyList=null}if(jQuery.browser.mozilla||jQuery.browser.opera){document.removeEventListener("DOMContentLoaded",jQuery.ready,false)}if(!window.frames.length){jQuery(window).load(function(){jQuery("#__ie_init").remove()})}}}});jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,change,select,submit,keydown,keypress,keyup,error").split(","),function(i,o){jQuery.fn[o]=function(f){return f?this.bind(o,f):this.trigger(o)}});var readyBound=false;function bindReady(){if(readyBound){return}readyBound=true;if(jQuery.browser.mozilla||jQuery.browser.opera){document.addEventListener("DOMContentLoaded",jQuery.ready,false)}else{if(jQuery.browser.msie){document.write("<script id=__ie_init defer=true src=//:><\/script>");var script=document.getElementById("__ie_init");if(script){script.onreadystatechange=function(){if(this.readyState!="complete"){return}jQuery.ready()}}script=null}else{if(jQuery.browser.safari){jQuery.safariTimer=setInterval(function(){if(document.readyState=="loaded"||document.readyState=="complete"){clearInterval(jQuery.safariTimer);jQuery.safariTimer=null;jQuery.ready()}},10)}}}jQuery.event.add(window,"load",jQuery.ready)}jQuery.fn.extend({load:function(url,params,callback){if(jQuery.isFunction(url)){return this.bind("load",url)}var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off)}callback=callback||function(){};var type="GET";if(params){if(jQuery.isFunction(params)){callback=params;params=null}else{params=jQuery.param(params);type="POST"}}var self=this;jQuery.ajax({url:url,type:type,data:params,complete:function(res,status){if(status=="success"||status=="notmodified"){self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText)}setTimeout(function(){self.each(callback,[res.responseText,status,res])},13)}});return this},serialize:function(){return jQuery.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.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(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val}}):{name:elem.name,value:val}}).get()}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f)}});var jsc=(new Date).getTime();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type})},getScript:function(url,callback){return jQuery.get(url,null,callback,"script")},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json")},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={}}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type})},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings)},ajaxSettings:{global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null},lastModified:{},ajax:function(s){var jsonp,jsre=/=(\?|%3F)/g,status,data;s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));if(s.data&&s.processData&&typeof s.data!="string"){s.data=jQuery.param(s.data)}if(s.dataType=="jsonp"){if(s.type.toLowerCase()=="get"){if(!s.url.match(jsre)){s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?"}}else{if(!s.data||!s.data.match(jsre)){s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?"}}s.dataType="json"}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data){s.data=s.data.replace(jsre,"="+jsonp)}s.url=s.url.replace(jsre,"="+jsonp);s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp]}catch(e){}}}if(s.dataType=="script"&&s.cache==null){s.cache=false}if(s.cache===false&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+"_="+(new Date()).getTime()}if(s.data&&s.type.toLowerCase()=="get"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null}if(s.global&&!jQuery.active++){jQuery.event.trigger("ajaxStart")}if(!s.url.indexOf("http")&&s.dataType=="script"){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(!jsonp&&(s.success||s.complete)){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script)}}}head.appendChild(script);return}var requestDone=false;var xml=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();xml.open(s.type,s.url,s.async);if(s.data){xml.setRequestHeader("Content-Type",s.contentType)}if(s.ifModified){xml.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}xml.setRequestHeader("X-Requested-With","XMLHttpRequest");if(s.beforeSend){s.beforeSend(xml)}if(s.global){jQuery.event.trigger("ajaxSend",[xml,s])}var onreadystatechange=function(isTimeout){if(!requestDone&&xml&&(xml.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xml)&&"error"||s.ifModified&&jQuery.httpNotModified(xml,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xml,s.dataType)}catch(e){status="parsererror"}}if(status=="success"){var modRes;try{modRes=xml.getResponseHeader("Last-Modified")}catch(e){}if(s.ifModified&&modRes){jQuery.lastModified[s.url]=modRes}if(!jsonp){success()}}else{jQuery.handleError(s,xml,status)}complete();if(s.async){xml=null}}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0){setTimeout(function(){if(xml){xml.abort();if(!requestDone){onreadystatechange("timeout")}}},s.timeout)}}try{xml.send(s.data)}catch(e){jQuery.handleError(s,xml,null,e)}if(!s.async){onreadystatechange()}return xml;function success(){if(s.success){s.success(data,status)}if(s.global){jQuery.event.trigger("ajaxSuccess",[xml,s])}}function complete(){if(s.complete){s.complete(xml,status)}if(s.global){jQuery.event.trigger("ajaxComplete",[xml,s])}if(s.global&&!--jQuery.active){jQuery.event.trigger("ajaxStop")}}},handleError:function(s,xml,status,e){if(s.error){s.error(xml,status,e)}if(s.global){jQuery.event.trigger("ajaxError",[xml,s,e])}},active:0,httpSuccess:function(r){try{return !r.status&&location.protocol=="file:"||(r.status>=200&&r.status<300)||r.status==304||jQuery.browser.safari&&r.status==undefined}catch(e){}return false},httpNotModified:function(xml,url){try{var xmlRes=xml.getResponseHeader("Last-Modified");return xml.status==304||xmlRes==jQuery.lastModified[url]||jQuery.browser.safari&&xml.status==undefined}catch(e){}return false},httpData:function(r,type){var ct=r.getResponseHeader("content-type");var xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0;var data=xml?r.responseXML:r.responseText;if(xml&&data.documentElement.tagName=="parsererror"){throw"parsererror"}if(type=="script"){jQuery.globalEval(data)}if(type=="json"){data=eval("("+data+")")}return data},param:function(a){var s=[];if(a.constructor==Array||a.jquery){jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value))})}else{for(var j in a){if(a[j]&&a[j].constructor==Array){jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this))})}else{s.push(encodeURIComponent(j)+"="+encodeURIComponent(a[j]))}}}return s.join("&").replace(/%20/g,"+")}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock?this.oldblock:"";if(jQuery.css(this,"display")=="none"){this.style.display="block"}}).end()},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");if(this.oldblock=="none"){this.oldblock="block"}this.style.display="none"}).end()},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle(fn,fn2):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]()})},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback)},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback)},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback)},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback)},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback)},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback)},animate:function(prop,speed,easing,callback){var opt=jQuery.speed(speed,easing,callback);return this[opt.queue===false?"each":"queue"](function(){opt=jQuery.extend({},opt);var hidden=jQuery(this).is(":hidden"),self=this;for(var p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden){return jQuery.isFunction(opt.complete)&&opt.complete.apply(this)}if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow}}if(opt.overflow!=null){this.style.overflow="hidden"}opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val)){e[val=="toggle"?hidden?"show":"hide":val](prop)}else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit}if(parts[1]){end=((parts[1]=="-="?-1:1)*end)+start}e.custom(start,end,unit)}else{e.custom(start,val,"")}}});return true})},queue:function(type,fn){if(jQuery.isFunction(type)){fn=type;type="fx"}if(!type||(typeof type=="string"&&!fn)){return queue(this[0],type)}return this.each(function(){if(fn.constructor==Array){queue(this,type,fn)}else{queue(this,type).push(fn);if(queue(this,type).length==1){fn.apply(this)}}})},stop:function(){var timers=jQuery.timers;return this.each(function(){for(var i=0;i<timers.length;i++){if(timers[i].elem==this){timers.splice(i--,1)}}}).dequeue()}});var queue=function(elem,type,array){if(!elem){return}var q=jQuery.data(elem,type+"queue");if(!q||array){q=jQuery.data(elem,type+"queue",array?jQuery.makeArray(array):[])}return q};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length){q[0].apply(this)}})};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:{slow:600,fast:200}[opt.duration])||400;opt.old=opt.complete;opt.complete=function(){jQuery(this).dequeue();if(jQuery.isFunction(opt.old)){opt.old.apply(this)}};return opt},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum}},timers:[],fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig){options.orig={}}}});jQuery.fx.prototype={update:function(){if(this.options.step){this.options.step.apply(this.elem,[this.now,this])}(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width"){this.elem.style.display="block"}},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null){return this.elem[this.prop]}var r=parseFloat(jQuery.curCSS(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.css(this.elem,this.prop))||0},custom:function(from,to,unit){this.startTime=(new Date()).getTime();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(){return self.step()}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timers.length==1){var timer=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++){if(!timers[i]()){timers.splice(i--,1)}}if(!timers.length){clearInterval(timer)}},13)}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height"){this.elem.style[this.prop]="1px"}jQuery(this.elem).show()},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(){var t=(new Date()).getTime();if(t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim){if(this.options.curAnim[i]!==true){done=false}}if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){this.elem.style.display="none"}if(this.options.hide||this.options.show){for(var p in this.options.curAnim){jQuery.attr(this.elem.style,p,this.options.orig[p])}}}if(done&&jQuery.isFunction(this.options.complete)){this.options.complete.apply(this.elem)}return false}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};jQuery.fx.step={scrollLeft:function(fx){fx.elem.scrollLeft=fx.now},scrollTop:function(fx){fx.elem.scrollTop=fx.now},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now)},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit}};jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem){with(jQuery.browser){var absolute=jQuery.css(elem,"position")=="absolute",parent=elem.parentNode,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522;if(elem.getBoundingClientRect){box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));if(msie){var border=jQuery("html").css("borderWidth");border=(border=="medium"||jQuery.boxModel&&parseInt(version)>=7)&&2||border;add(-border,-border)}}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&/^t[d|h]$/i.test(parent.tagName)||!safari2){border(offsetParent)}if(safari2&&!absolute&&jQuery.css(offsetParent,"position")=="absolute"){absolute=true}offsetParent=offsetParent.offsetParent}while(parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table-row.*$/i.test(jQuery.css(parent,"display"))){add(-parent.scrollLeft,-parent.scrollTop)}if(mozilla&&jQuery.css(parent,"overflow")!="visible"){border(parent)}parent=parent.parentNode}if(safari2&&absolute){add(-doc.body.offsetLeft,-doc.body.offsetTop)}}results={top:top,left:left}}}return results;function border(elem){add(jQuery.css(elem,"borderLeftWidth"),jQuery.css(elem,"borderTopWidth"))}function add(l,t){left+=parseInt(l)||0;top+=parseInt(t)||0}}})();var tb_pathToImage="images/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(a){$(a).click(function(){var c=this.title||this.name||null;var b=this.href||this.alt;var d=this.rel||false;tb_show(c,b,d);this.blur();return false})}function tb_show(j,b,h){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(j===null){j=""}$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$("#TB_load").show();var c;if(b.indexOf("?")!==-1){c=b.substr(0,b.indexOf("?"))}else{c=b}var f=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var k=c.toLowerCase().match(f);if(k==".jpg"||k==".jpeg"||k==".png"||k==".gif"||k==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(h){TB_TempArray=$("a[@rel="+h+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var g=TB_TempArray[TB_Counter].href.toLowerCase().match(f);if(!(TB_TempArray[TB_Counter].href==b)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Siguiente &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Anterior</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Im&aacute;gen "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var n=tb_getPageSize();var l=n[0]-150;var q=n[1]-150;var m=imgPreloader.width;var e=imgPreloader.height;if(m>l){e=e*(l/m);m=l;if(e>q){m=m*(q/e);e=q}}else{if(e>q){m=m*(q/e);e=q;if(m>l){e=e*(l/m);m=l}}}TB_WIDTH=m+30;TB_HEIGHT=e+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+b+"' width='"+m+"' height='"+e+"' alt='"+j+"'/></a><div id='TB_caption'>"+j+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Cerrar'>Cerrar</a> o pulsa la tecla ESC</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function p(){if($(document).unbind("click",p)){$(document).unbind("click",p)}$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,h);return false}$("#TB_prev").click(p)}if(!(TB_NextHTML==="")){function o(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,h);return false}$("#TB_next").click(o)}document.onkeydown=function(r){if(r==null){keycode=event.keyCode}else{keycode=r.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";o()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";p()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=b}else{var a=b.replace(/^[^\?]+\??/,"");var d=tb_parseQuery(a);TB_WIDTH=(d.width*1)+30||630;TB_HEIGHT=(d.height*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(b.indexOf("TB_iframe")!=-1){urlNoQuery=b.split("TB_");$("#TB_iframeContent").remove();if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+j+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>cerrar</a> o pulsa Esc</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if($("#TB_window").css("display")!="block"){if(d.modal!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+j+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>cerrar</a> o pulsa Esc</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(j)}}$("#TB_closeWindowButton").click(tb_remove);if(b.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+d.inlineId).children());$("#TB_window").unload(function(){$("#"+d.inlineId).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(b.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(b+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!d.modal){document.onkeyup=function(l){if(l==null){keycode=event.keyCode}else{keycode=l.which}if(keycode==27){tb_remove()}}}}catch(i){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(d){var e={};if(!d){return e}var a=d.split(/[;&]/);for(var c=0;c<a.length;c++){var g=a[c].split("=");if(!g||g.length!=2){continue}var b=unescape(g[0]);var f=unescape(g[1]);f=f.replace(/\+/g," ");e[b]=f}return e}function tb_getPageSize(){var c=document.documentElement;var a=window.innerWidth||self.innerWidth||(c&&c.clientWidth)||document.body.clientWidth;var b=window.innerHeight||self.innerHeight||(c&&c.clientHeight)||document.body.clientHeight;arrayPageSize=[a,b];return arrayPageSize}function tb_detectMacXFF(){var a=navigator.userAgent.toLowerCase();if(a.indexOf("mac")!=-1&&a.indexOf("firefox")!=-1){return true}};function TinyMCE(){this.instances=new Array();this.stickyClassesLookup=new Array();this.windowArgs=new Array();this.loadedFiles=new Array();this.configs=new Array();this.currentConfig=0;this.eventHandlers=new Array();this.isMSIE=(navigator.appName=="Microsoft Internet Explorer");this.isMSIE5=this.isMSIE&&(navigator.userAgent.indexOf("MSIE 5")!=-1);this.isMSIE5_0=this.isMSIE&&(navigator.userAgent.indexOf("MSIE 5.0")!=-1);this.isGecko=navigator.userAgent.indexOf("Gecko")!=-1;this.idCounter=0}TinyMCE.prototype.init=function(f){var h;this.settings=f;function e(l,i){f[l]=tinyMCE.getParam(l,i)}if(typeof(document.execCommand)=="undefined"){return}if(!tinyMCE.baseURL){var c=document.getElementsByTagName("script");for(var j=0;j<c.length;j++){if(c[j].src&&(c[j].src.indexOf("tiny_mce.js")!=-1||c[j].src.indexOf("tiny_mce_src.js")!=-1)){var b=c[j].src;tinyMCE.srcMode=(b.indexOf("_src")!=-1)?"_src":"";b=b.substring(0,b.lastIndexOf("/"));tinyMCE.baseURL=b;break}}}this.documentBasePath=document.location.href;if(this.documentBasePath.indexOf("?")!=-1){this.documentBasePath=this.documentBasePath.substring(0,this.documentBasePath.indexOf("?"))}this.documentURL=this.documentBasePath;this.documentBasePath=this.documentBasePath.substring(0,this.documentBasePath.lastIndexOf("/"));if(tinyMCE.baseURL.indexOf("://")==-1&&tinyMCE.baseURL.charAt(0)!="/"){tinyMCE.baseURL=this.documentBasePath+"/"+tinyMCE.baseURL}e("mode","none");e("theme","advanced");e("plugins","",true);e("language","es");e("docs_language",this.settings.language);e("elements","");e("textarea_trigger","mce_editable");e("valid_elements","+a[name|href|target|title],strong/b[class],em/i[class],strike[class],u[class],p[class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[class|colspan|rowspan|width|height|align|valign],div[class|align],span[class|align],pre[class|align],address[class|align],h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr");e("extended_valid_elements","");e("invalid_elements","");e("encoding","");e("urlconvertor_callback","TinyMCE.prototype.convertURL");e("save_callback","");e("debug",false);e("force_br_newlines",false);e("force_p_newlines",true);e("add_form_submit_trigger",true);e("relative_urls",true);e("remove_script_host",true);e("focus_alert",true);e("document_base_url",this.documentURL);e("visual",true);e("visual_table_style","border: 1px dashed #BBBBBB");e("setupcontent_callback","");e("fix_content_duplication",true);e("custom_undo_redo",true);e("custom_undo_redo_levels",-1);e("custom_undo_redo_keyboard_shortcuts",true);e("verify_css_classes",false);e("trim_span_elements",true);e("verify_html",true);e("apply_source_formatting",false);e("directionality","ltr");e("auto_cleanup_word",false);e("cleanup_on_startup",false);e("inline_styles",false);e("convert_newlines_to_brs",false);e("auto_reset_designmode",false);e("entities","160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,181,micro,183,middot,8226,bull,8230,hellip,8242,prime,8243,Prime,167,sect,182,para,223,szlig,8249,lsaquo,8250,rsaquo,171,laquo,187,raquo,8216,lsquo,8217,rsquo,8220,ldquo,8221,rdquo,8218,sbquo,8222,bdquo,60,lt,62,gt,8804,le,8805,ge,8211,ndash,8212,mdash,175,macr,8254,oline,164,curren,166,brvbar,168,uml,161,iexcl,191,iquest,710,circ,732,tilde,176,deg,8722,minus,177,plusmn,247,divide,8260,frasl,215,times,185,sup1,178,sup2,179,sup3,188,frac14,189,frac12,190,frac34,402,fnof,8747,int,8721,sum,8734,infin,8730,radic,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8712,isin,8713,notin,8715,ni,8719,prod,8743,and,8744,or,172,not,8745,cap,8746,cup,8706,part,8704,forall,8707,exist,8709,empty,8711,nabla,8727,lowast,8733,prop,8736,ang,180,acute,184,cedil,170,ordf,186,ordm,8224,dagger,8225,Dagger,192,Agrave,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,202,Ecirc,203,Euml,204,Igrave,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,212,Ocirc,213,Otilde,214,Ouml,216,Oslash,338,OElig,217,Ugrave,219,Ucirc,220,Uuml,376,Yuml,222,THORN,224,agrave,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,234,ecirc,235,euml,236,igrave,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,244,ocirc,245,otilde,246,ouml,248,oslash,339,oelig,249,ugrave,251,ucirc,252,uuml,254,thorn,255,yuml,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,8501,alefsym,982,piv,8476,real,977,thetasym,978,upsih,8472,weierp,8465,image,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8756,there4,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,173,shy,233,eacute");e("entity_encoding","named");e("cleanup_callback","");e("add_unload_trigger",true);e("ask",false);e("nowrap",false);e("auto_resize",false);e("auto_focus",false);e("cleanup",true);e("remove_linebreaks",true);e("button_tile_map",false);e("submit_patch",true);var k=tinyMCE.settings.document_base_url;if(k.indexOf("?")!=-1){k=k.substring(0,k.indexOf("?"))}this.settings.base_href=k.substring(0,k.lastIndexOf("/"))+"/";h=this.settings.theme;this.blockRegExp=new RegExp("^(h1|h2|h3|h4|h5|h6|p|div|address|pre|form|table|li|ol|ul|td)$","i");this.settings.theme_href=tinyMCE.baseURL+"/themes/"+h;if(!tinyMCE.isMSIE){this.settings.force_br_newlines=false}if(tinyMCE.getParam("content_css",false)){var g=tinyMCE.getParam("content_css","");if(g.indexOf("://")==-1&&g.charAt(0)!="/"){this.settings.content_css=this.documentBasePath+"/"+g}else{this.settings.content_css=g}}else{this.settings.content_css=tinyMCE.baseURL+"/themes/"+h+"/editor_content.css"}if(tinyMCE.getParam("popups_css",false)){var g=tinyMCE.getParam("popups_css","");if(g.indexOf("://")==-1&&g.charAt(0)!="/"){this.settings.popups_css=this.documentBasePath+"/"+g}else{this.settings.popups_css=g}}else{this.settings.popups_css=tinyMCE.baseURL+"/themes/"+h+"/editor_popup.css"}if(tinyMCE.getParam("editor_css",false)){var g=tinyMCE.getParam("editor_css","");if(g.indexOf("://")==-1&&g.charAt(0)!="/"){this.settings.editor_css=this.documentBasePath+"/"+g}else{this.settings.editor_css=g}}else{this.settings.editor_css=tinyMCE.baseURL+"/themes/"+h+"/editor_ui.css"}if(tinyMCE.settings.debug){var d="Debug: \n";d+="baseURL: "+this.baseURL+"\n";d+="documentBasePath: "+this.documentBasePath+"\n";d+="content_css: "+this.settings.content_css+"\n";d+="popups_css: "+this.settings.popups_css+"\n";d+="editor_css: "+this.settings.editor_css+"\n";alert(d)}this._initCleanup();if(this.configs.length==0){tinyMCE.addEvent(window,"load",TinyMCE.prototype.onLoad);if(tinyMCE.isMSIE){if(tinyMCE.settings.add_unload_trigger){tinyMCE.addEvent(window,"unload",TinyMCE.prototype.unloadHandler);tinyMCE.addEvent(window.document,"beforeunload",TinyMCE.prototype.unloadHandler)}else{tinyMCE.addEvent(window,"unload",TinyMCE.prototype.cleanEvents)}}else{if(tinyMCE.settings.add_unload_trigger){tinyMCE.addEvent(window,"unload",function(){tinyMCE.triggerSave(true,true)})}}}this.loadScript(tinyMCE.baseURL+"/themes/"+this.settings.theme+"/editor_template"+tinyMCE.srcMode+".js");this.loadScript(tinyMCE.baseURL+"/langs/"+this.settings.language+".js");this.loadCSS(this.settings.editor_css);var a=tinyMCE.getParam("plugins","",true,",");if(this.settings.plugins!=""){for(var j=0;j<a.length;j++){this.loadScript(tinyMCE.baseURL+"/plugins/"+a[j]+"/editor_plugin"+tinyMCE.srcMode+".js")}}f.index=this.configs.length;this.configs[this.configs.length]=f};TinyMCE.prototype.loadScript=function(a){for(var b=0;b<this.loadedFiles.length;b++){if(this.loadedFiles[b]==a){return}}document.write('<script language="javascript" type="text/javascript" src="'+a+'"><\/script>');this.loadedFiles[this.loadedFiles.length]=a};TinyMCE.prototype.loadCSS=function(a){for(var b=0;b<this.loadedFiles.length;b++){if(this.loadedFiles[b]==a){return}}document.write('<link href="'+a+'" rel="stylesheet" type="text/css" />');this.loadedFiles[this.loadedFiles.length]=a};TinyMCE.prototype.importCSS=function(b,a){if(tinyMCE.isMSIE){var d=b.createStyleSheet(a)}else{var c=b.createElement("link");c.rel="stylesheet";c.href=a;if(headArr=b.getElementsByTagName("head")){}headArr[0].appendChild(c)}};TinyMCE.prototype.confirmAdd=function(c,b){var d=tinyMCE.isMSIE?event.srcElement:c.target;var a=d.name?d.name:d.id;tinyMCE.settings=b;if(!d.getAttribute("mce_noask")&&confirm(tinyMCELang.lang_edit_confirm)){tinyMCE.addMCEControl(d,a)}d.setAttribute("mce_noask","true")};TinyMCE.prototype.queryInstanceCommandValue=function(c,b){var a=tinyMCE.getInstanceById(c);if(a){return a.getDoc().queryCommandValue(b)}return null};TinyMCE.prototype.queryInstanceCommandState=function(c,b){var a=tinyMCE.getInstanceById(c);if(a){return a.getDoc().queryCommandState(b)}return null};TinyMCE.prototype.updateContent=function(a){var b=document.getElementById(a);for(var e in tinyMCE.instances){var c=tinyMCE.instances[e];c.switchSettings();if(c.formElement==b){var d=c.getDoc();tinyMCE._setHTML(d,c.formElement.value);if(!tinyMCE.isMSIE){d.body.innerHTML=tinyMCE._cleanupHTML(d,this.settings,d.body,c.visualAid)}}}};TinyMCE.prototype.addMCEControl=function(d,a,b){var e="mce_editor_"+tinyMCE.idCounter++;var c=new TinyMCEControl(tinyMCE.settings);c.editorId=e;this.instances[e]=c;c.onAdd(d,a,b)};TinyMCE.prototype.triggerSave=function(skip_cleanup,skip_callback){for(var n in tinyMCE.instances){var inst=tinyMCE.instances[n];inst.switchSettings();tinyMCE.settings.preformatted=false;if(typeof(skip_cleanup)=="undefined"){skip_cleanup=false}if(typeof(skip_callback)=="undefined"){skip_callback=false}tinyMCE._setHTML(inst.getDoc(),inst.getBody().innerHTML);var htm=skip_cleanup?inst.getBody().innerHTML:tinyMCE._cleanupHTML(inst.getDoc(),this.settings,inst.getBody(),this.visualAid,true);if(tinyMCE.settings.encoding=="xml"||tinyMCE.settings.encoding=="html"){htm=tinyMCE.convertStringToXML(htm)}if(!skip_callback&&tinyMCE.settings.save_callback!=""){var content=eval(tinyMCE.settings.save_callback+"(inst.formTargetElementId,htm,inst.getBody());")}if((typeof(content)!="undefined")&&content!=null){htm=content}htm=tinyMCE.regexpReplace(htm,"&#40;","(","gi");htm=tinyMCE.regexpReplace(htm,"&#41;",")","gi");htm=tinyMCE.regexpReplace(htm,"&#59;",";","gi");htm=tinyMCE.regexpReplace(htm,"&#34;","&quot;","gi");htm=tinyMCE.regexpReplace(htm,"&#94;","^","gi");inst.formElement.value=htm}};TinyMCE.prototype._convertOnClick=function(d){if(tinyMCE.isMSIE5){return}var c=d.getElementsByTagName("a");for(var b=0;b<c.length;b++){var a=c[b].getAttribute("onclick");if(a&&a!=""){c[b].removeAttribute("onclick");c[b].setAttribute("mce_onclick",tinyMCE.cleanupEventStr(""+a));c[b].onclick=null}}};TinyMCE.prototype.resetForm=function(d){var a=document.forms[d];for(var e in tinyMCE.instances){var c=tinyMCE.instances[e];c.switchSettings();for(var b=0;b<a.elements.length;b++){if(c.formTargetElementId==a.elements[b].name){c.getBody().innerHTML=a.elements[b].value;return}}}};TinyMCE.prototype.execInstanceCommand=function(e,d,f,c,a){var b=tinyMCE.getInstanceById(e);if(b){if(typeof(a)=="undefined"){a=true}if(a){b.contentWindow.focus()}b.autoResetDesignMode();this.selectedElement=b.getFocusElement();this.selectedInstance=b;tinyMCE.execCommand(d,f,c)}};TinyMCE.prototype.execCommand=function(c,e,b){e=e?e:false;b=b?b:null;if(tinyMCE.selectedInstance){tinyMCE.selectedInstance.switchSettings()}switch(c){case"mceHelp":window.open(tinyMCE.themeURL+"/docs/"+this.settings.docs_language+"/index.htm","mceHelp","menubar=yes,toolbar=yes,scrollbars=yes,left=20,top=20,width=550,height=600");return;case"mceFocus":var a=tinyMCE.getInstanceById(b);if(a){a.contentWindow.focus()}return;case"mceAddControl":case"mceAddEditor":tinyMCE.addMCEControl(tinyMCE._getElementById(b),b);return;case"mceAddFrameControl":tinyMCE.addMCEControl(tinyMCE._getElementById(b),b.element,b.document);return;case"mceRemoveControl":case"mceRemoveEditor":tinyMCE.removeMCEControl(b);return;case"mceResetDesignMode":if(!tinyMCE.isMSIE){for(var d in tinyMCE.instances){tinyMCE.instances[d].getDoc().designMode="on"}}return}if(this.selectedInstance){this.selectedInstance.execCommand(c,e,b)}else{if(tinyMCE.settings.focus_alert){alert(tinyMCELang.lang_focus_alert)}}};TinyMCE.prototype.eventPatch=function(c){if(typeof(tinyMCE)=="undefined"){return true}for(var a=0;a<document.frames.length;a++){if(document.frames[a].event){var b=document.frames[a].event;b.target=b.srcElement;b.target.editor_id=document.frames[a].editor_id;TinyMCE.prototype.handleEvent(b);return}}};TinyMCE.prototype.unloadHandler=function(){tinyMCE.triggerSave(true,true);tinyMCE.cleanEvents()};TinyMCE.prototype.addEventHandlers=function(editor_id){if(tinyMCE.isMSIE){var doc=document.frames[editor_id].document;document.frames[editor_id].editor_id=editor_id;tinyMCE.addEvent(doc,"keypress",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(doc,"keyup",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(doc,"keydown",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(doc,"mouseup",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(doc,"click",TinyMCE.prototype.eventPatch)}else{var inst=tinyMCE.instances[editor_id];var doc=inst.getDoc();inst.switchSettings();doc.editor_id=editor_id;tinyMCE.addEvent(doc,"keypress",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"keypress",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"keydown",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"keyup",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"click",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"mouseup",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"mousedown",tinyMCE.handleEvent);tinyMCE.addEvent(doc,"focus",tinyMCE.handleEvent);eval('try { doc.designMode = "On"; } catch(e) {}')}};TinyMCE.prototype._createIFrame=function(b){var a=document.createElement("iframe");var c=b.getAttribute("id");a.setAttribute("id",c);a.setAttribute("className","mceEditorArea");a.setAttribute("border","0");a.setAttribute("frameBorder","0");a.setAttribute("marginWidth","0");a.setAttribute("marginHeight","0");a.setAttribute("leftMargin","0");a.setAttribute("topMargin","0");a.setAttribute("width",tinyMCE.settings.area_width);a.setAttribute("height",tinyMCE.settings.area_height);if(tinyMCE.settings.auto_resize){a.setAttribute("scrolling","no")}if(tinyMCE.isMSIE){a.setAttribute("src",this.settings.default_document)}a.style.width=tinyMCE.settings.area_width;a.style.height=tinyMCE.settings.area_height;if(tinyMCE.isMSIE){b.outerHTML=a.outerHTML}else{b.parentNode.replaceChild(a,b)}if(tinyMCE.isMSIE){return window.frames[c]}else{return a}};TinyMCE.prototype.setupContent=function(editor_id){var inst=tinyMCE.instances[editor_id];var doc=inst.getDoc();var head=doc.getElementsByTagName("head").item(0);var content=inst.startContent;inst.switchSettings();if(!tinyMCE.isMSIE&&doc.title!="blank_page"){doc.location.href=tinyMCE.baseURL+"/blank.htm";window.setTimeout("tinyMCE.setupContent('"+editor_id+"');",1000);return}if(!head){window.setTimeout("tinyMCE.setupContent('"+editor_id+"');",10);return}tinyMCE.importCSS(inst.getDoc(),inst.settings.content_css);tinyMCE.executeCallback("init_instance_callback","_initInstance",0,inst);if(tinyMCE.settings.nowrap){doc.body.style.whiteSpace="nowrap"}doc.body.dir=this.settings.directionality;doc.editorId=editor_id;if(!tinyMCE.isMSIE){doc.documentElement.editorId=editor_id}base=doc.createElement("base");base.setAttribute("href",tinyMCE.settings.base_href);head.appendChild(base);if(tinyMCE.settings.convert_newlines_to_brs){content=tinyMCE.regexpReplace(content,"\r\n","<br />","gi");content=tinyMCE.regexpReplace(content,"\r","<br />","gi");content=tinyMCE.regexpReplace(content,"\n","<br />","gi")}content=tinyMCE._customCleanup("insert_to_editor",content);if(tinyMCE.isMSIE){window.setInterval('try{tinyMCE.getCSSClasses(document.frames["'+editor_id+'"].document, "'+editor_id+'");}catch(e){}',500);if(tinyMCE.settings.force_br_newlines){document.frames[editor_id].document.styleSheets[0].addRule("p","margin: 0px;")}var body=document.frames[editor_id].document.body;tinyMCE.addEvent(body,"beforepaste",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(body,"beforecut",TinyMCE.prototype.eventPatch);tinyMCE.addEvent(body,"paste",TinyMCE.prototype.eventPatch);body.editorId=editor_id}if(!tinyMCE.isMSIE){var contentElement=inst.getDoc().createElement("body");var doc=inst.getDoc();contentElement.innerHTML=content;if(tinyMCE.settings.force_p_newlines){content=content.replace(new RegExp("&lt;&gt;","g"),"")}if(tinyMCE.settings.cleanup_on_startup){inst.getBody().innerHTML=tinyMCE._cleanupHTML(doc,this.settings,contentElement)}else{content=tinyMCE.regexpReplace(content,"<strong","<b","gi");content=tinyMCE.regexpReplace(content,"<em","<i","gi");content=tinyMCE.regexpReplace(content,"</strong>","</b>","gi");content=tinyMCE.regexpReplace(content,"</em>","</i>","gi");inst.getBody().innerHTML=content}inst.convertAllRelativeURLs()}else{if(tinyMCE.settings.cleanup_on_startup){tinyMCE._setHTML(inst.getDoc(),content);eval("try {inst.getBody().innerHTML = tinyMCE._cleanupHTML(inst.contentDocument, this.settings, inst.getBody());} catch(e) {}")}else{inst.getBody().innerHTML=content}}tinyMCE._convertOnClick(inst.getBody());var parentElm=document.getElementById(inst.editorId+"_parent");if(parentElm.lastChild.nodeName.toLowerCase()=="input"){inst.formElement=parentElm.lastChild}else{inst.formElement=parentElm.nextSibling}tinyMCE.handleVisualAid(inst.getBody(),true,tinyMCE.settings.visual);tinyMCE.executeCallback("setupcontent_callback","_setupContent",0,editor_id,inst.getBody(),inst.getDoc());if(!tinyMCE.isMSIE){TinyMCE.prototype.addEventHandlers(editor_id)}inst.startContent=inst.getBody().innerHTML;tinyMCE.selectedInstance=inst;tinyMCE.selectedElement=inst.contentWindow.document.body;tinyMCE.triggerNodeChange(false,true)};TinyMCE.prototype.cancelEvent=function(a){if(tinyMCE.isMSIE){a.returnValue=false;a.cancelBubble=true}else{a.preventDefault()}};TinyMCE.prototype.handleEvent=function(e){if(typeof(tinyMCE)=="undefined"){return true}switch(e.type){case"submit":var formObj=tinyMCE.isMSIE?window.event.srcElement:e.target;for(var i=0;i<formObj.elements.length;i++){var elementId=formObj.elements[i].name?formObj.elements[i].name:formObj.elements[i].id;if(elementId.indexOf("mce_editor_")==0){formObj.elements[i].disabled=true}}tinyMCE.triggerSave();return;case"reset":var formObj=tinyMCE.isMSIE?window.event.srcElement:e.target;for(var i=0;i<document.forms.length;i++){if(document.forms[i]==formObj){window.setTimeout("tinyMCE.resetForm("+i+");",10)}}return;case"paste":if(tinyMCE.settings.auto_cleanup_word){window.setTimeout("tinyMCE.execInstanceCommand('"+e.target.editorId+"', 'mceCleanupWord', false, null);",1)}break;case"beforecut":case"beforepaste":if(tinyMCE.selectedInstance){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel")}break;case"keypress":if(e.target.editorId){tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId]}else{if(e.target.ownerDocument.editorId){tinyMCE.selectedInstance=tinyMCE.instances[e.target.ownerDocument.editorId]}}if(tinyMCE.selectedInstance){tinyMCE.selectedInstance.switchSettings()}if(tinyMCE.isGecko&&tinyMCE.settings.force_p_newlines&&e.keyCode==13&&!e.shiftKey){if(tinyMCE.selectedInstance._insertPara(e)){e.preventDefault();return false}}if(tinyMCE.isGecko&&tinyMCE.settings.force_p_newlines&&(e.keyCode==8||e.keyCode==46)&&!e.shiftKey){if(tinyMCE.selectedInstance._handleBackSpace(e.type)){e.preventDefault();return false}}if(!tinyMCE.isMSIE&&e.ctrlKey&&tinyMCE.settings.custom_undo_redo){if(e.charCode==120||e.charCode==118){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");return}if(tinyMCE.settings.custom_undo_redo_keyboard_shortcuts){if(e.charCode==122){tinyMCE.selectedInstance.execCommand("Undo");e.preventDefault();return false}if(e.charCode==121){tinyMCE.selectedInstance.execCommand("Redo");e.preventDefault();return false}}if(e.charCode==98){tinyMCE.selectedInstance.execCommand("Bold");e.preventDefault();return false}if(e.charCode==105){tinyMCE.selectedInstance.execCommand("Italic");e.preventDefault();return false}if(e.charCode==117){tinyMCE.selectedInstance.execCommand("Underline");e.preventDefault();return false}}if(tinyMCE.settings.custom_undo_redo){var keys=new Array(13,45,36,35,33,34,37,38,39,40);var posKey=false;for(var i=0;i<keys.length;i++){if(keys[i]==e.keyCode){tinyMCE.selectedInstance.typing=false;posKey=true;break}}if(!tinyMCE.selectedInstance.typing&&!posKey){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.selectedInstance.typing=true}}if(tinyMCE.isMSIE&&tinyMCE.settings.force_br_newlines&&e.keyCode==13){if(e.target.editorId){tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId]}if(tinyMCE.selectedInstance){var sel=tinyMCE.selectedInstance.getDoc().selection;var rng=sel.createRange();if(tinyMCE.getParentElement(rng.parentElement(),"li")!=null){return false}e.returnValue=false;e.cancelBubble=true;rng.pasteHTML("<br />");rng.collapse(false);rng.select();tinyMCE.triggerNodeChange(false);return false}}if(e.keyCode==8||e.keyCode==46){tinyMCE.selectedElement=e.target;tinyMCE.linkElement=tinyMCE.getParentElement(e.target,"a");tinyMCE.imgElement=tinyMCE.getParentElement(e.target,"img");tinyMCE.triggerNodeChange(false)}return false;break;case"keyup":case"keydown":if(e.target.editorId){tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId]}else{return}if(tinyMCE.selectedInstance){tinyMCE.selectedInstance.switchSettings()}if(tinyMCE.isGecko&&tinyMCE.settings.force_p_newlines&&(e.keyCode==8||e.keyCode==46)&&!e.shiftKey){if(tinyMCE.selectedInstance._handleBackSpace(e.type)){e.preventDefault();return false}}tinyMCE.selectedElement=null;tinyMCE.selectedNode=null;var elm=tinyMCE.selectedInstance.getFocusElement();tinyMCE.linkElement=tinyMCE.getParentElement(elm,"a");tinyMCE.imgElement=tinyMCE.getParentElement(elm,"img");tinyMCE.selectedElement=elm;if(tinyMCE.isGecko&&e.type=="keyup"&&e.keyCode==9){tinyMCE.handleVisualAid(tinyMCE.selectedInstance.getBody(),true,tinyMCE.settings.visual)}if(tinyMCE.isGecko&&tinyMCE.settings.document_base_url!=""+document.location.href&&e.type=="keyup"&&e.ctrlKey&&e.keyCode==86){tinyMCE.selectedInstance.fixBrokenURLs()}if(tinyMCE.isMSIE&&tinyMCE.settings.custom_undo_redo){var keys=new Array(13,45,36,35,33,34,37,38,39,40);var posKey=false;for(var i=0;i<keys.length;i++){if(keys[i]==e.keyCode){tinyMCE.selectedInstance.typing=false;posKey=true;break}}if(!tinyMCE.selectedInstance.typing&&!posKey&&(e.keyCode<16||e.keyCode>18&&e.keyCode!=255)){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.selectedInstance.typing=true;tinyMCE.triggerNodeChange(false)}if(posKey&&e.type=="keyup"){tinyMCE.triggerNodeChange(false)}var keys=new Array(8,46);for(var i=0;i<keys.length;i++){if(keys[i]==e.keyCode){if(!tinyMCE.selectedInstance.typing){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.selectedInstance.typing=true}if(e.type=="keyup"){tinyMCE.triggerNodeChange(false)}return true}}var ctrlKeys=new Array(66,73,85,86,88);for(var i=0;i<keys.length;i++){if(ctrlKeys[i]==e.keyCode&&e.ctrlKey){tinyMCE.selectedInstance.execCommand("mceAddUndoLevel");tinyMCE.triggerNodeChange(false);return true}}if(tinyMCE.settings.custom_undo_redo_keyboard_shortcuts){if(e.keyCode==90&&e.ctrlKey&&e.type=="keydown"){tinyMCE.selectedInstance.execCommand("Undo");tinyMCE.triggerNodeChange(false);e.returnValue=false;e.cancelBubble=true;return false}if(e.keyCode==89&&e.ctrlKey&&e.type=="keydown"){tinyMCE.selectedInstance.execCommand("Redo");tinyMCE.triggerNodeChange(false);e.returnValue=false;e.cancelBubble=true;return false}}}var keys=new Array(13,45,36,35,33,34,37,38,39,40);var posKey=false;for(var i=0;i<keys.length;i++){if(keys[i]==e.keyCode){posKey=true;break}}if(posKey&&e.type=="keyup"){tinyMCE.triggerNodeChange(false)}break;case"mousedown":case"mouseup":case"click":case"focus":if(tinyMCE.selectedInstance){tinyMCE.selectedInstance.switchSettings()}var targetBody=tinyMCE.getParentElement(e.target,"body");for(var instanceName in tinyMCE.instances){var inst=tinyMCE.instances[instanceName];inst.autoResetDesignMode();if(inst.getBody()==targetBody){tinyMCE.selectedInstance=inst;tinyMCE.selectedElement=e.target;tinyMCE.linkElement=tinyMCE.getParentElement(tinyMCE.selectedElement,"a");tinyMCE.imgElement=tinyMCE.getParentElement(tinyMCE.selectedElement,"img");tinyMCE.selectedInstance.typing=false;break}}if(e.type!="focus"){tinyMCE.selectedNode=null}tinyMCE.triggerNodeChange(false);if(!tinyMCE.selectedInstance&&e.target.editorId){tinyMCE.selectedInstance=tinyMCE.instances[e.target.editorId]}if(e.target.nodeName.toLowerCase()=="a"&&e.type=="click"&&e.altKey){var evalCode=""+tinyMCE.cleanupEventStr(e.target.getAttribute("mce_onclick"));eval(evalCode.replace("return false;",""))}if(tinyMCE.isGecko&&tinyMCE.settings.document_base_url!=""+document.location.href){window.setTimeout('tinyMCE.getInstanceById("'+inst.editorId+'").fixBrokenURLs();',10)}return false;break}};TinyMCE.prototype.switchClass=function(b,c,a){var d=false;if(typeof(a)!="undefined"&&b!=null){b.classLock=a;d=true}if(b!=null&&(d||!b.classLock)){b.oldClassName=b.className;b.className=c}};TinyMCE.prototype.restoreAndSwitchClass=function(a,b){if(a!=null&&!a.classLock){this.restoreClass(a);this.switchClass(a,b)}};TinyMCE.prototype.switchClassSticky=function(e,c,b){var a,d=false;if(!this.stickyClassesLookup[e]){this.stickyClassesLookup[e]=document.getElementById(e)}a=this.stickyClassesLookup[e];if(typeof(b)!="undefined"&&a!=null){a.classLock=b;d=true}if(a!=null&&(d||!a.classLock)){a.className=c;a.oldClassName=c}};TinyMCE.prototype.restoreClass=function(a){if(a!=null&&a.oldClassName&&!a.classLock){a.className=a.oldClassName;a.oldClassName=null}};TinyMCE.prototype.setClassLock=function(b,a){if(b!=null){b.classLock=a}};TinyMCE.prototype.addEvent=function(c,a,b){if(tinyMCE.isMSIE){c.attachEvent("on"+a,b);this.eventHandlers[this.eventHandlers.length]={obj:c,name:a,handler:b}}else{c.addEventListener(a,b,false)}};TinyMCE.prototype.cleanEvents=function(){if(tinyMCE.isMSIE5){return}if(tinyMCE.eventHandlers){for(var i=0;i<tinyMCE.eventHandlers.length;i++){try{with(tinyMCE.eventHandlers[i]){obj.detachEvent("on"+name,handler);eval("obj.on"+name+" = null;")}}catch(e){}tinyMCE.eventHandlers[i]["obj"]=null;tinyMCE.eventHandlers[i]["handler"]=null;tinyMCE.eventHandlers[i]=null}tinyMCE.eventHandlers=null}};TinyMCE.prototype.onLoad=function(){for(var n=0;n<tinyMCE.configs.length;n++){tinyMCE.settings=tinyMCE.configs[n];var o=new Array();if(document.forms&&tinyMCE.settings.add_form_submit_trigger&&!tinyMCE.submitTriggers){for(var j=0;j<document.forms.length;j++){var b=document.forms[j];tinyMCE.addEvent(b,"submit",TinyMCE.prototype.handleEvent);tinyMCE.addEvent(b,"reset",TinyMCE.prototype.handleEvent);tinyMCE.submitTriggers=true;if(tinyMCE.settings.submit_patch){try{b.oldSubmit=b.submit;b.submit=function(){tinyMCE.triggerSave();b.oldSubmit()}}catch(m){}}}}var l=tinyMCE.settings.mode;switch(l){case"exact":var a=tinyMCE.getParam("elements","",true,",");for(var j=0;j<a.length;j++){var k=tinyMCE._getElementById(a[j]);var d=k?k.getAttribute(tinyMCE.settings.textarea_trigger):"";if(d=="false"){continue}if(tinyMCE.settings.ask&&k){o[o.length]=k;continue}if(k){tinyMCE.addMCEControl(k,a[j])}else{if(tinyMCE.settings.debug){alert("Error: Could not find element by id or name: "+a[j])}}}break;case"specific_textareas":case"textareas":var g=document.getElementsByTagName("textarea");for(var j=0;j<g.length;j++){var d=g.item(j).getAttribute(tinyMCE.settings.textarea_trigger);if((l=="specific_textareas"&&d=="true")||(l=="textareas"&&d!="false")){o[o.length]=g.item(j)}}break}for(var j=0;j<o.length;j++){var k=o[j];var h=k.name?k.name:k.id;if(tinyMCE.settings.ask){if(tinyMCE.isGecko){var f=tinyMCE.settings;tinyMCE.addEvent(k,"focus",function(c){window.setTimeout(function(){TinyMCE.prototype.confirmAdd(c,f)},10)})}else{var f=tinyMCE.settings;tinyMCE.addEvent(k,"focus",function(){TinyMCE.prototype.confirmAdd(null,f)})}}else{tinyMCE.addMCEControl(k,h)}}if(tinyMCE.settings.auto_focus){window.setTimeout(function(){var c=tinyMCE.getInstanceById(tinyMCE.settings.auto_focus);c.selectNode(c.getBody(),true,true);c.contentWindow.focus()},10)}tinyMCE.executeCallback("oninit","_oninit",0)}};TinyMCE.prototype.removeMCEControl=function(g){var d=tinyMCE.getInstanceById(g);if(d){d.switchSettings();g=d.editorId;var e=tinyMCE.getContent(g);var a=new Array();for(var h in tinyMCE.instances){var i=tinyMCE.instances[h];if(h!=g){a[h]=i}}tinyMCE.instances=a;tinyMCE.selectedElement=null;tinyMCE.selectedInstance=null;var b=document.getElementById(g+"_parent");var f=d.oldTargetElement;var c=f.nodeName.toLowerCase();if(c=="textarea"||c=="input"){b.parentNode.removeChild(b);f.style.display="inline";f.value=e}else{f.innerHTML=e;b.parentNode.insertBefore(f,b);b.parentNode.removeChild(b)}}};TinyMCE.prototype._cleanupElementName=function(h,d){h=h.toLowerCase();if(h=="body"){return null}if(tinyMCE.cleanup_verify_html){for(var e=0;e<tinyMCE.cleanup_invalidElements.length;e++){if(tinyMCE.cleanup_invalidElements[e]==h){return null}}var k=false;var g=null;for(var e=0;e<tinyMCE.cleanup_validElements.length&&!g;e++){for(var j=0,a=tinyMCE.cleanup_validElements[e][0].length;j<a;j++){var b=tinyMCE.cleanup_validElements[e][0][j];if(b.charAt(0)=="+"){b=b.substring(1)}if(b.match(new RegExp("\\*|\\?|\\+","g"))!=null){b=b.replace(new RegExp("\\?","g"),"(\\S?)");b=b.replace(new RegExp("\\+","g"),"(\\S+)");b=b.replace(new RegExp("\\*","g"),"(\\S*)");b="^"+b+"$";if(h.match(new RegExp(b,"g"))){g=tinyMCE.cleanup_validElements[e];k=true;break}}if(h==b){g=tinyMCE.cleanup_validElements[e];k=true;h=g[0][0];break}}}if(!k){return null}}if(!tinyMCE.isMSIE){if(h=="strong"&&!tinyMCE.cleanup_on_save){h="b"}else{if(h=="em"&&!tinyMCE.cleanup_on_save){h="i"}}}if(tinyMCE.isMSIE){if(h=="table"){var f=d.style.pixelWidth==0?d.getAttribute("width"):d.style.pixelWidth;d.setAttribute("width",f);f=d.style.pixelHeight==0?d.getAttribute("height"):d.style.pixelHeight;d.setAttribute("height",f)}}var c=new Object();c.element_name=h;c.valid_attribs=g;return c};TinyMCE.prototype._fixInlineStyles=function(b){if(b.nodeName.toLowerCase()!="table"){var a;a=tinyMCE.isMSIE?b.width:b.getAttribute("width");if(a&&a!=""){if(typeof(a)!="string"||!a.indexOf("%")){a+="px"}b.style.width=a}a=tinyMCE.isMSIE?b.height:b.getAttribute("height");if(a&&a!=""){if(typeof(a)!="string"||!a.indexOf("%")){a+="px"}b.style.height=a}a=tinyMCE.isMSIE?b.border:b.getAttribute("border");if(a&&a!=""){b.style.borderWidth=a+"px"}}a=b.getAttribute("align");if(a&&a!=""){if(b.nodeName.toLowerCase()=="img"){if(tinyMCE.isMSIE){b.style.styleFloat=a}else{b.style.cssFloat=a}}else{b.style.textAlign=a}}a=b.getAttribute("vspace");if(a&&a!=""){b.style.marginTop=a+"px";b.style.marginBottom=a+"px"}a=b.getAttribute("hspace");if(a&&a!=""){b.style.marginLeft=a+"px";b.style.marginRight=a+"px"}};TinyMCE.prototype._cleanupAttribute=function(valid_attributes,element_name,attribute_node,element_node){var attribName=attribute_node.nodeName.toLowerCase();var attribValue=attribute_node.nodeValue;var attribMustBeValue=null;var verified=false;if(tinyMCE.cleanup_inline_styles&&element_name!="table"&&element_name!="td"){if(attribName=="width"||attribName=="height"||attribName=="border"||attribName=="align"||attribName=="valign"||attribName=="hspace"||attribName=="vspace"){return null}}if(attribName.indexOf("moz_")!=-1){return null}if(!tinyMCE.isMSIE&&(attribName=="mce_real_href"||attribName=="mce_real_src")){if(!tinyMCE.cleanup_on_save){var attrib=new Object();attrib.name=attribName;attrib.value=attribValue;return attrib}else{return null}}if(attribName=="mce_onclick"){verified=true}if(tinyMCE.cleanup_verify_html&&!verified){for(var i=1;i<valid_attributes.length;i++){var attribMatch=valid_attributes[i][0];var re=null;if(attribMatch.match(new RegExp("\\*|\\?|\\+","g"))!=null){attribMatch=attribMatch.replace(new RegExp("\\?","g"),"(\\S?)");attribMatch=attribMatch.replace(new RegExp("\\+","g"),"(\\S+)");attribMatch=attribMatch.replace(new RegExp("\\*","g"),"(\\S*)");attribMatch="^"+attribMatch+"$";re=new RegExp(attribMatch,"g")}if((re&&attribName.match(re)!=null)||attribName==attribMatch){verified=true;attribMustBeValue=valid_attributes[i][3];break}}if((element_name=="table"||element_name=="td")&&attribName=="style"){verified=true}if(!verified){return false}}else{verified=true}switch(attribName){case"size":if(tinyMCE.isMSIE5&&element_name=="font"){attribValue=element_node.size}break;case"color":if(tinyMCE.isMSIE5&&element_name=="font"){attribValue=element_node.color}break;case"width":if(tinyMCE.isMSIE){attribValue=element_node.width}break;case"height":if(tinyMCE.isMSIE){attribValue=element_node.height}break;case"border":if(tinyMCE.isMSIE){attribValue=element_node.border}break;case"class":if(!tinyMCE._verifyClass(element_node)){return null}break;case"style":if(element_name=="table"||element_name=="td"){if(tinyMCE.cleanup_visual_table_style!=""){var tableElement=element_node;if(element_name=="td"){tableElement=tinyMCE.getParentElement(tableElement,"table")}if(tableElement&&tableElement.getAttribute("border")==0){if(tinyMCE.cleanup_visual_aid){attribValue=tinyMCE.cleanup_visual_table_style}else{return null}}}}else{attribValue=element_node.style.cssText.toLowerCase()}if(tinyMCE.isMSIE){var border=element_node.style.border;var bt=element_node.style.borderTop;var bl=element_node.style.borderLeft;var br=element_node.style.borderRight;var bb=element_node.style.borderBottom;if(border!=""&&(bt==border&&bl==border&&br==border&&bb==border)){attribValue=tinyMCE.regexpReplace(attribValue,"border-top: "+border+"?; ?","");attribValue=tinyMCE.regexpReplace(attribValue,"border-left: "+border+"?; ?","");attribValue=tinyMCE.regexpReplace(attribValue,"border-right: "+border+"?; ?","");attribValue=tinyMCE.regexpReplace(attribValue,"border-bottom: "+border+"?;( ?)","border: "+border+";$1")}}break;case"onclick":case"mce_onclick":if(tinyMCE.isMSIE5){break}if(tinyMCE.cleanup_on_save){if(element_node.getAttribute("mce_onclick")){attribName="onclick";attribValue=""+element_node.getAttribute("mce_onclick")}}else{if(attribName=="onclick"&&!tinyMCE.cleanup_on_save){return null}}break;case"href":case"src":if(!tinyMCE.isMSIE&&attribName=="href"&&element_node.getAttribute("mce_real_href")){attribValue=element_node.getAttribute("mce_real_href")}if(!tinyMCE.isMSIE&&attribName=="src"&&element_node.getAttribute("mce_real_src")){attribValue=element_node.getAttribute("mce_real_src")}if(tinyMCE.isGecko&&!tinyMCE.settings.relative_urls){attribValue=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings.base_href,attribValue)}attribValue=eval(tinyMCE.cleanup_urlconvertor_callback+"(attribValue, element_node, tinyMCE.cleanup_on_save);");break;case"colspan":case"rowspan":if(attribValue=="1"){return null}break;case"_moz-userdefined":case"editorid":case"editor_id":case"mce_real_href":case"mce_real_src":return null}if(attribMustBeValue!=null){var isCorrect=false;for(var i=0;i<attribMustBeValue.length;i++){if(attribValue==attribMustBeValue[i]){isCorrect=true;break}}if(!isCorrect){return null}}var attrib=new Object();attrib.name=attribName;attrib.value=attribValue;return attrib};TinyMCE.prototype._verifyClass=function(b){if(tinyMCE.isGecko){var a=b.getAttribute("class");if(!a){return false}}if(tinyMCE.isMSIE){var a=b.getAttribute("className")}if(tinyMCE.cleanup_verify_css_classes&&tinyMCE.cleanup_on_save){var d=tinyMCE.getCSSClasses();nonDefinedCSS=true;for(var e=0;e<d.length;e++){if(d[e]==a){nonDefinedCSS=false;break}}if(nonDefinedCSS&&a.indexOf("mce_")!=0){b.removeAttribute("className");b.removeAttribute("class");return false}}return true};TinyMCE.prototype.cleanupNode=function(p){var f="";switch(p.nodeType){case 1:var e=tinyMCE._cleanupElementName(p.nodeName,p);var g=e?e.element_name:null;var k=e?e.valid_attribs:null;var v="";var m=false;if(g!=null&&g.charAt(0)=="+"){g=g.substring(1);m=true}if(tinyMCE.isMSIE&&tinyMCE.settings.fix_content_duplication){var y=tinyMCE.cleanup_elementLookupTable;for(var r=0;r<y.length;r++){if(y[r]==p){return f}}y[y.length]=p}if(!g){if(p.hasChildNodes()){for(var r=0;r<p.childNodes.length;r++){f+=this.cleanupNode(p.childNodes[r])}}return f}if(p.style&&(p.style.cssText.indexOf("mso-")!=-1&&tinyMCE.settings.auto_cleanup_word)||p.style.cssText==""){p.style.cssText="";p.removeAttribute("style")}if(tinyMCE.cleanup_inline_styles){tinyMCE._fixInlineStyles(p)}if(k){for(var z=1;z<k.length;z++){var b,q,n,l;b=k[z][0];q=k[z][1];n=k[z][2];if(q!=null||n!=null){var l=p.getAttribute(b);if(p.getAttribute(b)==null||p.getAttribute(b)==""){l=q}l=n?n:l;if(l=="{$uid}"){l="uid_"+(tinyMCE.cleanup_idCount++)}p.setAttribute(b,l)}}}if(g=="span"&&tinyMCE.cleanup_trim_span_elements){var o=new RegExp("^[ \t]+","g");var c=true;for(var z=0;z<p.childNodes.length;z++){var x=p.childNodes[z];if((x.nodeType==3&&!x.nodeValue.match(o))||x.nodeName.toLowerCase()!="span"){c=false;break}}tinyMCE._verifyClass(p);var u=0;for(var r=0;r<p.attributes.length;r++){if(p.attributes[r].specified){u++}}if(c||u==0){if(p.hasChildNodes()){for(var r=0;r<p.childNodes.length;r++){f+=this.cleanupNode(p.childNodes[r])}}return f}}if(g=="table"||g=="td"){if(tinyMCE.cleanup_visual_table_style!=""){var t=p;if(g=="td"){t=tinyMCE.getParentElement(t,"table")}if(t&&t.getAttribute("border")==0){if(tinyMCE.cleanup_visual_aid){v+=' style="'+tinyMCE.cleanup_visual_table_style+'"'}}}}if(g=="table"&&!p.hasChildNodes()){return""}if(tinyMCE.isGecko&&g=="img"){var j=p.style.width;if(j!=null&&j!=""){p.setAttribute("width",j)}var s=p.style.height;if(s!=null&&s!=""){p.setAttribute("height",s)}}if(p.attributes.length>0){for(var r=0;r<p.attributes.length;r++){if(p.attributes[r].specified){var d=tinyMCE._cleanupAttribute(k,g,p.attributes[r],p);if(d){v+=" "+d.name+'="'+d.value+'"'}}}}if(tinyMCE.isMSIE&&g=="input"){if(p.type){v+=' type="'+p.type+'"'}if(p.value){v+=' value="'+p.value+'"'}}if((g=="p"||g=="td")&&(p.innerHTML==""||p.innerHTML=="&nbsp;")){return"<"+g+v+">&nbsp;</"+g+">"}if(tinyMCE.isMSIE&&g=="script"){return"<"+g+v+">"+p.text+"</"+g+">"}if(p.hasChildNodes()){if(g=="p"&&tinyMCE.cleanup_force_br_newlines){f+="<div"+v+">"}else{f+="<"+g+v+">"}for(var r=0;r<p.childNodes.length;r++){f+=this.cleanupNode(p.childNodes[r])}if(g=="p"&&tinyMCE.cleanup_force_br_newlines){f+="</div><br />"}else{f+="</"+g+">"}}else{if(m){f+="<"+g+v+"></"+g+">"}else{f+="<"+g+v+" />"}}return f;case 3:if(p.parentNode.nodeName.toLowerCase()=="script"){return p.nodeValue}return this.convertStringToXML(p.nodeValue);case 8:return"<!--"+p.nodeValue+"-->";default:return"[UNKNOWN NODETYPE "+p.nodeType+"]"}};TinyMCE.prototype.convertStringToXML=function(d){var a="";for(var b=0;b<d.length;b++){var c=d.charCodeAt(b);if(tinyMCE.settings.entity_encoding=="numeric"){if(c>127){a+="&#"+c+";"}else{a+=String.fromCharCode(c)}continue}if(tinyMCE.settings.entity_encoding=="raw"){a+=String.fromCharCode(c);continue}if(typeof(tinyMCE.cleanup_entities["c"+c])!="undefined"&&tinyMCE.cleanup_entities["c"+c]!=""){a+="&"+tinyMCE.cleanup_entities["c"+c]+";"}else{a+=""+String.fromCharCode(c)}}return a};TinyMCE.prototype._initCleanup=function(){function c(i){var q;if(i.charAt(0)=="+"){i=i.substring(1)}if((q=i.indexOf("/"))!=-1){i=i.substring(0,q)}if((q=i.indexOf("["))!=-1){i=i.substring(0,q)}return i}var b=tinyMCE.settings.valid_elements;b=b.split(",");var e=tinyMCE.settings.extended_valid_elements;e=e.split(",");for(var g=0;g<e.length;g++){var p=c(e[g]);var j=false;for(var k=0;k<b.length;k++){if(c(b[k])==p){b[k]=e[g];j=true;break}}if(!j){b[b.length]=e[g]}}for(var g=0;g<b.length;g++){var n=b[g];n=n.replace("[","|");n=n.replace("]","");var a=n.split("|");for(var k=0;k<a.length;k++){a[k]=a[k].toLowerCase()}a[0]=a[0].split("/");for(var k=1;k<a.length;k++){var d=a[k];var f=null;var l=null;var m=null;if((pos=d.indexOf("="))!=-1){f=d.substring(pos+1);d=d.substring(0,pos)}if((pos=d.indexOf(":"))!=-1){l=d.substring(pos+1);d=d.substring(0,pos)}if((pos=d.indexOf("<"))!=-1){m=d.substring(pos+1).split("?");d=d.substring(0,pos)}a[k]=new Array(d,f,l,m)}b[g]=a}var o=tinyMCE.settings.invalid_elements.split(",");for(var g=0;g<o.length;g++){o[g]=o[g].toLowerCase()}tinyMCE.settings.cleanup_validElements=b;tinyMCE.settings.cleanup_invalidElements=o;tinyMCE.settings.cleanup_entities=new Array();var h=tinyMCE.getParam("entities","",true,",");for(var g=0;g<h.length;g+=2){tinyMCE.settings.cleanup_entities["c"+h[g]]=h[g+1]}};TinyMCE.prototype._cleanupHTML=function(h,b,d,g,a){if(!tinyMCE.settings.cleanup){return d.innerHTML}tinyMCE.cleanup_validElements=tinyMCE.settings.cleanup_validElements;tinyMCE.cleanup_entities=tinyMCE.settings.cleanup_entities;tinyMCE.cleanup_invalidElements=tinyMCE.settings.cleanup_invalidElements;tinyMCE.cleanup_verify_html=tinyMCE.settings.verify_html;tinyMCE.cleanup_force_br_newlines=tinyMCE.settings.force_br_newlines;tinyMCE.cleanup_urlconvertor_callback=tinyMCE.settings.urlconvertor_callback;tinyMCE.cleanup_verify_css_classes=tinyMCE.settings.verify_css_classes;tinyMCE.cleanup_visual_table_style=tinyMCE.settings.visual_table_style;tinyMCE.cleanup_apply_source_formatting=tinyMCE.settings.apply_source_formatting;tinyMCE.cleanup_trim_span_elements=tinyMCE.settings.trim_span_elements;tinyMCE.cleanup_inline_styles=tinyMCE.settings.inline_styles;tinyMCE.cleanup_visual_aid=g;tinyMCE.cleanup_on_save=a;tinyMCE.cleanup_idCount=0;tinyMCE.cleanup_elementLookupTable=new Array();var f=new Date().getTime();tinyMCE._convertOnClick(d);if(tinyMCE.isMSIE){d.innerHTML=tinyMCE.regexpReplace(d.innerHTML,"<p>[ \n\r]*<hr id=null>[ \n\r]*</p>","<hr />","gi");d.innerHTML=tinyMCE.regexpReplace(d.innerHTML,"<!([^-(DOCTYPE)]* )|<!/[^-]*>","","gi")}var c=this.cleanupNode(d);if(tinyMCE.settings.debug){alert("Cleanup process executed in: "+(new Date().getTime()-f)+" ms.")}c=tinyMCE.regexpReplace(c,"<p><hr /></p>","<hr />");c=tinyMCE.regexpReplace(c,"<p>&nbsp;</p><hr /><p>&nbsp;</p>","<hr />");if(!tinyMCE.isMSIE){c=c.replace(new RegExp('<o:p _moz-userdefined="" />',"g"),"")}if(tinyMCE.settings.apply_source_formatting){c=c.replace(new RegExp("<(p|div)([^>]*)>","g"),"\n<$1$2>\n");c=c.replace(new RegExp("</(p|div)([^>]*)>","g"),"\n</$1$2>\n");c=c.replace(new RegExp("<br />","g"),"<br />\n")}if(tinyMCE.settings.force_br_newlines){var e=new RegExp("<p>&nbsp;</p>","g");c=c.replace(e,"<br />")}if(tinyMCE.settings.force_p_newlines){var e=new RegExp("&lt;&gt;","g");c=c.replace(e,"")}if(tinyMCE.settings.remove_linebreaks){c=c.replace(new RegExp("\r|\n","g")," ")}c=tinyMCE._customCleanup(a?"get_from_editor":"insert_to_editor",c);if(c=="<br />"||c=="<br />\n"||c=="<p>&nbsp;</p>"){c=""}if(tinyMCE.settings.preformatted){return"<pre>"+c+"</pre>"}return c};TinyMCE.prototype.insertLink=function(href,target,title,onclick){function setAttrib(element,name,value){if(value!=null&&value!=""){element.setAttribute(name,value)}else{element.removeAttribute(name)}}this.execCommand("mceAddUndoLevel");if(this.selectedInstance&&this.selectedElement&&this.selectedElement.nodeName.toLowerCase()=="img"){var doc=this.selectedInstance.getDoc();var linkElement=doc.createElement("a");href=eval(tinyMCE.settings.urlconvertor_callback+"(href, linkElement);");setAttrib(linkElement,"href",href);setAttrib(linkElement,"target",target);setAttrib(linkElement,"title",title);setAttrib(linkElement,"mce_onclick",onclick);linkElement.appendChild(this.selectedElement.cloneNode(true));this.selectedElement.parentNode.replaceChild(linkElement,this.selectedElement);return}if(!this.linkElement&&this.selectedInstance){this.selectedInstance.contentDocument.execCommand("createlink",false,"#mce_temp_url#");tinyMCE.linkElement=this.getElementByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");var elementArray=this.getElementsByAttributeValue(this.selectedInstance.contentDocument.body,"a","href","#mce_temp_url#");for(var i=0;i<elementArray.length;i++){href=eval(tinyMCE.settings.urlconvertor_callback+"(href, elementArray[i]);");setAttrib(elementArray[i],"href",href);setAttrib(elementArray[i],"mce_real_href",href);setAttrib(elementArray[i],"target",target);setAttrib(elementArray[i],"title",title);setAttrib(elementArray[i],"mce_onclick",onclick)}tinyMCE.linkElement=elementArray[0]}if(this.linkElement){href=eval(tinyMCE.settings.urlconvertor_callback+"(href, this.linkElement);");setAttrib(this.linkElement,"href",href);setAttrib(this.linkElement,"mce_real_href",href);setAttrib(this.linkElement,"target",target);setAttrib(this.linkElement,"title",title);setAttrib(this.linkElement,"mce_onclick",onclick)}};TinyMCE.prototype.insertImage=function(src,alt,border,hspace,vspace,width,height,align,title,onmouseover,onmouseout){if(src==""){return}this.execCommand("mceAddUndoLevel");function setAttrib(element,name,value,no_fix_value){if(!no_fix_value&&value!=null){var re=new RegExp("[^0-9%]","g");value=value.replace(re,"")}if(value!=null&&value!=""){element.setAttribute(name,value)}else{element.removeAttribute(name)}}if(!this.imgElement&&this.selectedInstance){this.selectedInstance.contentDocument.execCommand("insertimage",false,"#mce_temp_url#");tinyMCE.imgElement=this.getElementByAttributeValue(this.selectedInstance.contentDocument.body,"img","src","#mce_temp_url#")}if(this.imgElement){src=eval(tinyMCE.settings.urlconvertor_callback+"(src, tinyMCE.imgElement);");if(typeof(title)=="undefined"){title=alt}tinyMCE.setAttrib(this.imgElement,"src",src,true);tinyMCE.setAttrib(this.imgElement,"mce_real_src",src,true);tinyMCE.setAttrib(this.imgElement,"alt",alt,true);tinyMCE.setAttrib(this.imgElement,"title",title,true);tinyMCE.setAttrib(this.imgElement,"align",align,true);tinyMCE.setAttrib(this.imgElement,"border",border);tinyMCE.setAttrib(this.imgElement,"hspace",hspace);tinyMCE.setAttrib(this.imgElement,"vspace",vspace);tinyMCE.setAttrib(this.imgElement,"width",width);tinyMCE.setAttrib(this.imgElement,"height",height);tinyMCE.setAttrib(this.imgElement,"border",border);tinyMCE.setAttrib(this.imgElement,"onmouseover",onmouseover,true);tinyMCE.setAttrib(this.imgElement,"onmouseout",onmouseout,true);if(width&&width!=""){this.imgElement.style.pixelWidth=width}if(height&&height!=""){this.imgElement.style.pixelHeight=height}}};TinyMCE.prototype.getElementByAttributeValue=function(a,e,d,c){var b=this.getElementsByAttributeValue(a,e,d,c);if(b.length==0){return null}return b[0]};TinyMCE.prototype.getElementsByAttributeValue=function(d,g,f,j){var a=new Array();if(d&&d.nodeName.toLowerCase()==g){if(d.getAttribute(f)&&d.getAttribute(f).indexOf(j)!=-1){a[a.length]=d}}if(d.hasChildNodes){for(var h=0,b=d.childNodes.length;h<b;h++){var k=this.getElementsByAttributeValue(d.childNodes[h],g,f,j);for(var e=0,c=k.length;e<c;e++){a[a.length]=k[e]}}}return a};TinyMCE.prototype.isBlockElement=function(a){return a!=null&&a.nodeType==1&&this.blockRegExp.test(a.nodeName)};TinyMCE.prototype.getParentBlockElement=function(a){while(a){if(this.blockRegExp.test(a.nodeName)){return a}a=a.parentNode}return null};TinyMCE.prototype.getNodeTree=function(e,b,d,a){if(typeof(d)=="undefined"||e.nodeType==d&&(typeof(a)=="undefined"||e.nodeName.toLowerCase()==a.toLowerCase())){b[b.length]=e}if(e.hasChildNodes()){for(var c=0;c<e.childNodes.length;c++){tinyMCE.getNodeTree(e.childNodes[c],b,d,a)}}return b};TinyMCE.prototype.getParentElement=function(d,f,b,e){if(typeof(f)=="undefined"){if(d.nodeType==1){return d}while((d=d.parentNode)!=null&&d.nodeType!=1){}return d}var a=f.split(",");if(d==null){return null}do{for(var c=0;c<a.length;c++){if(d.nodeName.toLowerCase()==a[c].toLowerCase()||f=="*"){if(typeof(b)=="undefined"){return d}else{if(d.getAttribute(b)){if(typeof(e)=="undefined"){if(d.getAttribute(b)!=""){return d}}else{if(d.getAttribute(b)==e){return d}}}}}}}while(d=d.parentNode);return null};TinyMCE.prototype.convertURL=function(a,g,i){var l=document.location.protocol;var m=document.location.hostname;var f=document.location.port;var d=(l=="file:");a=tinyMCE.regexpReplace(a,"(http|https):///","/");if(a.indexOf("mailto:")!=-1||a.indexOf("javascript:")!=-1||tinyMCE.regexpReplace(a,"[ \t\r\n+]|%20","").charAt(0)=="#"){return a}if(!tinyMCE.isMSIE&&!i&&a.indexOf("://")==-1&&a.charAt(0)!="/"){return tinyMCE.settings.base_href+a}if(!tinyMCE.settings.relative_urls){var e=tinyMCE.parseURL(a);var c=tinyMCE.parseURL(tinyMCE.settings.base_href);if(e.anchor&&e.path==c.path){return"#"+e.anchor}}if(i&&tinyMCE.settings.relative_urls){var e=tinyMCE.parseURL(a);if(!e.protocol&&!tinyMCE.isMSIE){var h="http://";h+=m;if(f!=""){h+=":"+f}a=h+a;e=tinyMCE.parseURL(a)}var k=tinyMCE.parseURL(tinyMCE.settings.document_base_url);if(e.host==k.host&&(!e.port||e.port==k.port)){return tinyMCE.convertAbsoluteURLToRelativeURL(tinyMCE.settings.document_base_url,a)}}if(!d&&tinyMCE.settings.remove_script_host){var b="",j="";if(f!=""){j=":"+f}b=l+"//"+m+j+"/";if(a.indexOf(b)==0){a=a.substring(b.length-1)}if(!tinyMCE.settings.relative_urls&&a.indexOf("://")==-1&&a.charAt(0)!="/"){a="/"+a}}return a};TinyMCE.prototype.parseURL=function(d){var f=new Array();if(d){var e,c;e=d.indexOf("://");if(e!=-1){f.protocol=d.substring(0,e);c=e+3}for(var a=c;a<d.length;a++){var b=d.charAt(a);if(b==":"){break}if(b=="/"){break}}e=a;f.host=d.substring(c,e);c=e;if(d.charAt(e)==":"){e=d.indexOf("/",c);f.port=d.substring(c+1,e)}c=e;e=d.indexOf("?",c);if(e==-1){e=d.indexOf("#",c)}if(e==-1){e=d.length}f.path=d.substring(c,e);c=e;if(d.charAt(e)=="?"){e=d.indexOf("#");e=(e==-1)?d.length:e;f.query=d.substring(c+1,e)}c=e;if(d.charAt(e)=="#"){e=d.length;f.anchor=d.substring(c+1,e)}}return f};TinyMCE.prototype.convertAbsoluteURLToRelativeURL=function(g,e){var b;var a;var f=0;var d="";g=g.substring(0,g.lastIndexOf("/"));b=g.split("/");a=e.split("/");if(b.length>=a.length){for(var c=0;c<b.length;c++){if(c>=a.length||b[c]!=a[c]){f=c+1;break}}}if(b.length<a.length){for(var c=0;c<a.length;c++){if(c>=b.length||b[c]!=a[c]){f=c+1;break}}}if(f==1){return e}for(var c=0;c<(b.length-(f-1));c++){d+="../"}for(var c=f-1;c<a.length;c++){if(c!=(f-1)){d+="/"+a[c]}else{d+=a[c]}}return d};TinyMCE.prototype.convertRelativeToAbsoluteURL=function(l,h){var c=TinyMCE.prototype.parseURL(l);var j=TinyMCE.prototype.parseURL(h);if(h==""||h.charAt(0)=="/"||h.indexOf("://")!=-1||h.indexOf("mailto:")!=-1||h.indexOf("javascript:")!=-1||tinyMCE.regexpReplace(h,"[ \t\r\n+]|%20","").charAt(0)=="#"){return h}baseURLParts=c.path.split("/");relURLParts=j.path.split("/");var f=new Array();for(var e=baseURLParts.length-1;e>=0;e--){if(baseURLParts[e].length==0){continue}f[f.length]=baseURLParts[e]}baseURLParts=f.reverse();var k=new Array();var m=0;for(var e=relURLParts.length-1;e>=0;e--){if(relURLParts[e].length==0||relURLParts[e]=="."){continue}if(relURLParts[e]==".."){m++;continue}if(m>0){m--;continue}k[k.length]=relURLParts[e]}relURLParts=k.reverse();var g=baseURLParts.length-m;var a=(g<=0?"":"/")+baseURLParts.slice(0,g).join("/")+"/"+relURLParts.join("/");var b="",d="";if(c.protocol){b+=c.protocol+"://"}if(c.host){b+=c.host}if(c.port){b+=":"+c.port}if(j.query){d+="?"+j.query}if(j.anchor){d+="#"+j.anchor}if(h.charAt(h.length-1)=="/"){d+="/"}return b+a+d};TinyMCE.prototype.getParam=function(c,a,g,b){var f=(typeof(this.settings[c])=="undefined")?a:this.settings[c];if(f=="true"||f=="false"){return(f=="true")}if(g){f=tinyMCE.regexpReplace(f,"[ \t\r\n]","")}if(typeof(b)!="undefined"&&b!=null){f=f.split(b);var e=new Array();for(var d=0;d<f.length;d++){if(f[d]&&f[d]!=""){e[e.length]=f[d]}}f=e}return f};TinyMCE.prototype.getLang=function(c,a,b){var e=(typeof(tinyMCELang[c])=="undefined")?a:tinyMCELang[c];if(b){var d=document.createElement("div");d.innerHTML=e;e=d.innerHTML}return e};TinyMCE.prototype.replaceVar=function(a,d,c){var b=new RegExp("{\\$"+d+"}","g");return a.replace(b,c)};TinyMCE.prototype.replaceVars=function(b,c){for(var a in c){var d=c[a];b=tinyMCE.replaceVar(b,a,d)}return b};TinyMCE.prototype.triggerNodeChange=function(j,h){if(tinyMCE.settings.handleNodeChangeCallback){if(tinyMCE.selectedInstance){var c=tinyMCE.selectedInstance;var b=c.editorId;var f=(typeof(h)!="undefined"&&h)?tinyMCE.selectedElement:c.getFocusElement();var d=-1;var i=-1;var e=false;var a=c.getSelectedText();if(tinyMCE.settings.auto_resize){var g=c.getDoc();c.iframeElement.style.width=g.body.offsetWidth+"px";c.iframeElement.style.height=g.body.offsetHeight+"px"}if(tinyMCE.selectedElement){e=(tinyMCE.selectedElement.nodeName.toLowerCase()=="img")||(a&&a.length>0)}if(tinyMCE.settings.custom_undo_redo){d=c.undoIndex;i=c.undoLevels.length}tinyMCE.executeCallback("handleNodeChangeCallback","_handleNodeChange",0,b,f,d,i,c.visualAid,e)}}if(this.selectedInstance&&(typeof(j)=="undefined"||j)){this.selectedInstance.contentWindow.focus()}};TinyMCE.prototype._customCleanup=function(type,content){var customCleanup=tinyMCE.settings.cleanup_callback;if(customCleanup!=""&&eval("typeof("+customCleanup+")")!="undefined"){content=eval(customCleanup+"(type, content);")}var plugins=tinyMCE.getParam("plugins","",true,",");for(var i=0;i<plugins.length;i++){if(eval("typeof(TinyMCE_"+plugins[i]+"_cleanup)")!="undefined"){content=eval("TinyMCE_"+plugins[i]+"_cleanup(type, content);")}}return content};TinyMCE.prototype.getContent=function(a){if(typeof(a)!="undefined"){tinyMCE.selectedInstance=tinyMCE.getInstanceById(a)}if(tinyMCE.selectedInstance){return tinyMCE._cleanupHTML(this.selectedInstance.getDoc(),tinyMCE.settings,this.selectedInstance.getBody(),false,true)}return null};TinyMCE.prototype.setContent=function(a){if(tinyMCE.selectedInstance){var b=this.selectedInstance.getDoc();a=tinyMCE._customCleanup("insert_to_editor",a);tinyMCE._setHTML(b,a);b.body.innerHTML=tinyMCE._cleanupHTML(b,tinyMCE.settings,b.body);tinyMCE.handleVisualAid(b.body,true,tinyMCE.selectedInstance.visualAid)}};TinyMCE.prototype.importThemeLanguagePack=function(a){if(typeof(a)=="undefined"){a=tinyMCE.settings.theme}tinyMCE.loadScript(tinyMCE.baseURL+"/themes/"+a+"/langs/"+tinyMCE.settings.language+".js")};TinyMCE.prototype.importPluginLanguagePack=function(a,c){var d="en";c=c.split(",");for(var b=0;b<c.length;b++){if(tinyMCE.settings.language==c[b]){d=tinyMCE.settings.language}}tinyMCE.loadScript(tinyMCE.baseURL+"/plugins/"+a+"/langs/"+d+".js")};TinyMCE.prototype.applyTemplate=function(b,a){b=tinyMCE.replaceVar(b,"themeurl",tinyMCE.themeURL);if(typeof(a)!="undefined"){b=tinyMCE.replaceVars(b,a)}b=tinyMCE.replaceVars(b,tinyMCE.settings);b=tinyMCE.replaceVars(b,tinyMCELang);return b};TinyMCE.prototype.openWindow=function(template,args){var html,width,height,x,y,resizable,scrollbars,url;args.mce_template_file=template.file;tinyMCE.windowArgs=args;html=template.html;if(!(width=template.width)){width=320}if(!(height=template.height)){height=200}if(tinyMCE.isMSIE){height+=30}x=parseInt(screen.width/2)-(width/2);y=parseInt(screen.height/2)-(height/2);resizable=(args&&args.resizable)?args.resizable:"no";scrollbars=(args&&args.scrollbars)?args.scrollbars:"no";url=tinyMCE.baseURL+"/themes/"+tinyMCE.getParam("theme")+"/"+template.file;for(var name in args){url=tinyMCE.replaceVar(url,name,escape(args[name]))}if(html){html=tinyMCE.replaceVar(html,"css",this.settings.popups_css);html=tinyMCE.applyTemplate(html,args);var win=window.open("","mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog=yes,minimizable="+resizable+",modal=yes,width="+width+",height="+height+",resizable="+resizable);win.document.write(html);win.document.close();win.resizeTo(width,height);win.focus()}else{if(tinyMCE.isMSIE&&resizable!="yes"){var features="resizable:"+resizable+";scroll:"+scrollbars+";status:yes;center:yes;help:no;dialogWidth:"+width+"px;dialogHeight:"+height+"px;";window.showModalDialog(url,window,features)}else{var modal=(resizable=="yes")?"no":"yes";var win=window.open(url,"mcePopup","top="+y+",left="+x+",scrollbars="+scrollbars+",dialog="+modal+",minimizable="+resizable+",modal="+modal+",width="+width+",height="+height+",resizable="+resizable);eval("try { win.resizeTo(width, height); } catch(e) { }");win.focus()}}};TinyMCE.prototype.handleVisualAid=function(e,j,b){if(!e){return}function l(m,i){return m.getAttribute(i)?m.getAttribute(i):""}var a=null;switch(e.nodeName.toLowerCase()){case"table":var c=e.getAttribute("border")==0?tinyMCE.settings.visual_table_style:"";var k=e.style.width;var f=e.style.height;e.style.cssText=b?c:"";e.style.width=k;e.style.height=f;for(var g=0;g<e.rows.length;g++){for(var h=0;h<e.rows[g].cells.length;h++){e.rows[g].cells[h].style.cssText=b?c:""}}break}if(j&&e.hasChildNodes()){for(var d=0;d<e.childNodes.length;d++){tinyMCE.handleVisualAid(e.childNodes[d],j,b)}}};TinyMCE.prototype.getAttrib=function(d,c,a){var b=d.getAttribute(c);return(b&&b!="")?b:a};TinyMCE.prototype.setAttrib=function(b,a,d,e){if(typeof(d)=="number"){d=""+d}if(!e&&d!=null&&d!=-1){var c=new RegExp("[^0-9%]","g");d=d.replace(c,"")}if(d!=null&&d!=""&&d!=-1){b.setAttribute(a,d)}else{b.removeAttribute(a)}};TinyMCE.prototype._setHTML=function(h,g){if(tinyMCE.isMSIE){var e=new RegExp("<p><hr /></p>","g");g=g.replace(e,"<hr>")}h.body.innerHTML=g;if(tinyMCE.isMSIE&&tinyMCE.settings.fix_content_duplication){var a=h.getElementsByTagName("P");for(var c=0;c<a.length;c++){var f=a[c];while((f=f.parentNode)!=null){if(f.nodeName.toLowerCase()=="p"){f.outerHTML=f.innerHTML}}}var b=h.body.createTextRange().htmlText;if(b.indexOf('="mso')!=-1){for(var c=0;c<h.body.all.length;c++){var d=h.body.all[c];d.removeAttribute("className","",0);d.removeAttribute("style","",0)}b=h.body.createTextRange().htmlText;b=tinyMCE.regexpReplace(b,"<o:p></o:p>","<br />");b=tinyMCE.regexpReplace(b,"<o:p>&nbsp;</o:p>","");b=tinyMCE.regexpReplace(b,"<st1:.*?>","");b=tinyMCE.regexpReplace(b,"<p></p>","");b=tinyMCE.regexpReplace(b,"<p></p>\r\n<p></p>","");b=tinyMCE.regexpReplace(b,"<p>&nbsp;</p>","<br />");b=tinyMCE.regexpReplace(b,"<p>s*(<p>s*)?","<p>");b=tinyMCE.regexpReplace(b,"</p>s*(</p>s*)?","</p>")}h.body.innerHTML=b}};TinyMCE.prototype._getElementById=function(a){var d=document.getElementById(a);if(!d){for(var c=0;c<document.forms.length;c++){for(var b=0;b<document.forms[c].elements.length;b++){if(document.forms[c].elements[b].name==a){d=document.forms[c].elements[b];break}}}}return d};TinyMCE.prototype.getEditorId=function(a){var b=this.getInstanceById(a);if(!b){return null}return b.editorId};TinyMCE.prototype.getInstanceById=function(d){var c=this.instances[d];if(!c){for(var b in tinyMCE.instances){var a=tinyMCE.instances[b];if(a.formTargetElementId==d){c=a;break}}}return c};TinyMCE.prototype.queryInstanceCommandValue=function(c,b){var a=tinyMCE.getInstanceById(c);if(a){return a.queryCommandValue(b)}return false};TinyMCE.prototype.queryInstanceCommandState=function(c,b){var a=tinyMCE.getInstanceById(c);if(a){return a.queryCommandState(b)}return null};TinyMCE.prototype.setWindowArg=function(a,b){this.windowArgs[a]=b};TinyMCE.prototype.getWindowArg=function(b,a){return(typeof(this.windowArgs[b])=="undefined")?a:this.windowArgs[b]};TinyMCE.prototype.getCSSClasses=function(editor_id,doc){var output=new Array();if(typeof(tinyMCE.cssClasses)!="undefined"){return tinyMCE.cssClasses}if(typeof(editor_id)=="undefined"&&typeof(doc)=="undefined"){var instance;for(var instanceName in tinyMCE.instances){instance=tinyMCE.instances[instanceName];break}doc=instance.getDoc()}if(typeof(doc)=="undefined"){var instance=tinyMCE.getInstanceById(editor_id);doc=instance.getDoc()}if(doc){var styles=tinyMCE.isMSIE?doc.styleSheets:doc.styleSheets;if(styles&&styles.length>0){var csses=null;eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(0).rules : doc.styleSheets[0].cssRules;} catch(e) {}");if(!csses){return new Array()}for(var i=0;i<csses.length;i++){var selectorText=csses[i].selectorText;if(selectorText){var rules=selectorText.split(",");for(var c=0;c<rules.length;c++){if(rules[c].indexOf(" ")!=-1||rules[c].indexOf(":")!=-1||rules[c].indexOf("mce_")==1){continue}if(rules[c].indexOf(".")!=-1){output[output.length]=rules[c].substring(rules[c].indexOf(".")+1)}}}}}}if(output.length>0){tinyMCE.cssClasses=output}return output};TinyMCE.prototype.regexpReplace=function(e,a,c,d){if(typeof(d)=="undefined"){d="g"}var b=new RegExp(a,d);return e.replace(b,c)};TinyMCE.prototype.cleanupEventStr=function(a){a=""+a;a=a.replace("function anonymous()\n{\n","");a=a.replace("\n}","");return a};TinyMCE.prototype.getAbsPosition=function(b){var c=new Object();c.absLeft=c.absTop=0;var a=b;while(a){c.absLeft+=a.offsetLeft;c.absTop+=a.offsetTop;a=a.offsetParent}return c};TinyMCE.prototype.openFileBrowser=function(field_name,url,type,win){var cb=tinyMCE.getParam("file_browser_callback");this.setWindowArg("window",win);if(eval("typeof("+cb+")")=="undefined"){alert("Callback function: "+cb+" could not be found.")}else{eval(cb+"(field_name, url, type, win);")}};TinyMCE.prototype.getControlHTML=function(control_name){var themePlugins=tinyMCE.getParam("plugins","",true,",");var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction="TinyMCE_"+themePlugins[i]+"_getControlHTML";if(eval("typeof("+templateFunction+")")!="undefined"){var html=eval(templateFunction+"('"+control_name+"');");if(html!=""){return tinyMCE.replaceVar(html,"pluginurl",tinyMCE.baseURL+"/plugins/"+themePlugins[i])}}}return eval("TinyMCE_"+tinyMCE.settings.theme+"_getControlHTML('"+control_name+"');")};TinyMCE.prototype._themeExecCommand=function(editor_id,element,command,user_interface,value){var themePlugins=tinyMCE.getParam("plugins","",true,",");var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction="TinyMCE_"+themePlugins[i]+"_execCommand";if(eval("typeof("+templateFunction+")")!="undefined"){if(eval(templateFunction+"(editor_id, element, command, user_interface, value);")){return true}}}templateFunction="TinyMCE_"+tinyMCE.settings.theme+"_execCommand";if(eval("typeof("+templateFunction+")")!="undefined"){return eval(templateFunction+"(editor_id, element, command, user_interface, value);")}return false};TinyMCE.prototype._getThemeFunction=function(suffix,skip_plugins){if(skip_plugins){return"TinyMCE_"+tinyMCE.settings.theme+suffix}var themePlugins=tinyMCE.getParam("plugins","",true,",");var templateFunction;for(var i=themePlugins.length;i>=0;i--){templateFunction="TinyMCE_"+themePlugins[i]+suffix;if(eval("typeof("+templateFunction+")")!="undefined"){return templateFunction}}return"TinyMCE_"+tinyMCE.settings.theme+suffix};TinyMCE.prototype.executeCallback=function(param,suffix,mode){function isFunc(func_name){if(func_name==null||func_name==""){return false}return eval("typeof("+func_name+")")!="undefined"}function exec(func_name,args){var str=func_name+"(";for(var i=3;i<args.length;i++){str+="args["+i+"]";if(i<args.length-1){str+=","}}str+=");";return eval(str)}switch(mode){case 0:var state=false;var plugins=tinyMCE.getParam("plugins","",true,",");for(var i=0;i<plugins.length;i++){var func="TinyMCE_"+plugins[i]+suffix;if(isFunc(func)){exec(func,this.executeCallback.arguments);state=true}}var func="TinyMCE_"+tinyMCE.settings.theme+suffix;if(isFunc(func)){exec(func,this.executeCallback.arguments);state=true}var func=tinyMCE.getParam(param,"");if(isFunc(func)){exec(func,this.executeCallback.arguments);state=true}return state;case 1:var plugins=tinyMCE.getParam("plugins","",true,",");for(var i=0;i<plugins.length;i++){var func="TinyMCE_"+plugins[i]+suffix;if(isFunc(func)){if(exec(func,this.executeCallback.arguments)){return true}}}var func="TinyMCE_"+tinyMCE.settings.theme+suffix;if(isFunc(func)){if(exec(func,this.executeCallback.arguments)){return true}}var func=tinyMCE.getParam(param,"");if(isFunc(func)){if(exec(func,this.executeCallback.arguments)){return true}}return false}};function TinyMCEControl(a){this.undoLevels=new Array();this.undoIndex=0;this.isDirty=false;this.settings=a;this.settings.theme=tinyMCE.getParam("theme","default");this.settings.width=tinyMCE.getParam("width",-1);this.settings.height=tinyMCE.getParam("height",-1)}TinyMCEControl.prototype.switchSettings=function(){if(tinyMCE.configs.length>1&&tinyMCE.currentConfig!=this.settings.index){tinyMCE.settings=this.settings;tinyMCE.currentConfig=this.settings.index}};TinyMCEControl.prototype.fixBrokenURLs=function(){var a=this.getBody();var d=a.getElementsByTagName("img");for(var c=0;c<d.length;c++){var e=d[c].getAttribute("mce_real_src");if(e&&e!=""){d[c].setAttribute("src",e)}}var d=a.getElementsByTagName("a");for(var c=0;c<d.length;c++){var b=d[c].getAttribute("mce_real_href");if(b&&b!=""){d[c].setAttribute("href",b)}}};TinyMCEControl.prototype.convertAllRelativeURLs=function(){var a=this.getBody();var d=a.getElementsByTagName("img");for(var c=0;c<d.length;c++){var e=d[c].getAttribute("src");if(e&&e!=""){e=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings.base_href,e);d[c].setAttribute("src",e);d[c].setAttribute("mce_real_src",e)}}var d=a.getElementsByTagName("a");for(var c=0;c<d.length;c++){var b=d[c].getAttribute("href");if(b&&b!=""){b=tinyMCE.convertRelativeToAbsoluteURL(tinyMCE.settings.base_href,b);d[c].setAttribute("href",b);d[c].setAttribute("mce_real_href",b)}}};TinyMCEControl.prototype.getSelectedHTML=function(){var a=document.createElement("body");if(tinyMCE.isGecko){a.appendChild(this.getRng().cloneContents())}else{a.innerHTML=this.getRng().htmlText}return tinyMCE._cleanupHTML(this.contentDocument,this.settings,a,this.visualAid)};TinyMCEControl.prototype.getSelectedText=function(){if(tinyMCE.isMSIE){var c=this.getDoc();if(c.selection.type=="Text"){var a=c.selection.createRange();selectedText=a.text}else{selectedText=""}}else{var b=this.contentWindow.getSelection();if(b&&b.toString){selectedText=b.toString()}else{selectedText=""}}return selectedText};TinyMCEControl.prototype.selectNode=function(d,h,e,f){if(typeof(h)=="undefined"){h=true}if(typeof(e)=="undefined"){e=false}if(typeof(f)=="undefined"){f=true}if(tinyMCE.isMSIE){var a=this.getBody().createTextRange();a.moveToElementText(d);if(h){a.collapse(f)}a.select()}else{var a=this.getDoc().createRange();var c=this.contentWindow.getSelection();if(!c){return}if(e){var b=tinyMCE.getNodeTree(d,new Array(),3);if(b.length>0){a.selectNodeContents(b[0])}else{a.selectNodeContents(d)}}else{a.selectNode(d)}if(h){if(!f&&d.nodeType==3){a.setStart(d,d.nodeValue.length);a.setEnd(d,d.nodeValue.length)}else{a.collapse(f)}}c.removeAllRanges();c.addRange(a)}var g=tinyMCE.getAbsPosition(d);var j=this.getDoc();var k=j.body.scrollLeft+j.documentElement.scrollLeft;var i=j.body.scrollTop+j.documentElement.scrollTop;var l=tinyMCE.isMSIE?document.getElementById(this.editorId).style.pixelHeight:this.targetElement.clientHeight;if(!tinyMCE.settings.auto_resize&&!(d.absTop>i&&d.absTop<(i-25+l))){this.contentWindow.scrollTo(g.absLeft,g.absTop-l+25)}tinyMCE.selectedElement=null;if(d.nodeType==1){tinyMCE.selectedElement=d}};TinyMCEControl.prototype.getBody=function(){return this.getDoc().body};TinyMCEControl.prototype.getDoc=function(){return this.contentWindow.document};TinyMCEControl.prototype.getWin=function(){return this.contentWindow};TinyMCEControl.prototype.getSel=function(){if(tinyMCE.isMSIE){return this.getDoc().selection}return this.contentWindow.getSelection()};TinyMCEControl.prototype.getRng=function(){var a=this.getSel();if(a==null){return null}if(tinyMCE.isMSIE){return a.createRange()}return this.getSel().getRangeAt(0)};TinyMCEControl.prototype._insertPara=function(y){function n(e){function E(i){return i.replace(new RegExp("[ \t\r\n]+","g"),"").toLowerCase()==""}if(e.getElementsByTagName("img").length>0){return false}if(e.getElementsByTagName("table").length>0){return false}if(e.getElementsByTagName("hr").length>0){return false}var C=tinyMCE.getNodeTree(e,new Array(),3);for(var D=0;D<C.length;D++){if(!E(C[D].nodeValue)){return false}}return true}var B=this.getDoc();var s=this.contentWindow.getSelection();var h=this.contentWindow;var l=s.getRangeAt(0);var m=B.body;var d=B.documentElement;var q=this;var t="P";var b=B.createRange();b.setStart(s.anchorNode,s.anchorOffset);b.collapse(true);var x=B.createRange();x.setStart(s.focusNode,s.focusOffset);x.collapse(true);var a=b.compareBoundaryPoints(b.START_TO_END,x)<0;var A=a?s.anchorNode:s.focusNode;var v=a?s.anchorOffset:s.focusOffset;var p=a?s.focusNode:s.anchorNode;var j=a?s.focusOffset:s.anchorOffset;var k=tinyMCE.getParentBlockElement(A);var f=tinyMCE.getParentBlockElement(p);if(k!=null){t=k.nodeName.toUpperCase();if(t=="TD"||t=="TABLE"){t="P"}}if((k!=null&&k.nodeName.toLowerCase()=="li")||(f!=null&&f.nodeName.toLowerCase()=="li")){return false}if((k!=null&&k.nodeName.toLowerCase()=="table")||(f!=null&&f.nodeName.toLowerCase()=="table")){k=f=null}var c=(k!=null&&k.nodeName.toUpperCase()==t)?k.cloneNode(false):B.createElement(t);var g=(f!=null&&f.nodeName.toUpperCase()==t)?f.cloneNode(false):B.createElement(t);var z=A;var o=p;node=z;do{if(node==m||node.nodeType==9||tinyMCE.isBlockElement(node)){break}z=node}while((node=node.previousSibling?node.previousSibling:node.parentNode));node=o;do{if(node==m||node.nodeType==9||tinyMCE.isBlockElement(node)){break}o=node}while((node=node.nextSibling?node.nextSibling:node.parentNode));if(k==null){l.deleteContents();s.removeAllRanges();if(z!=d&&o!=d){b=l.cloneRange();if(z==m){b.setStart(z,0)}else{b.setStartBefore(z)}c.appendChild(b.cloneContents());if(o.parentNode.nodeName==t){o=o.parentNode}l.setEndAfter(o);var w=l.cloneContents();if(w.firstChild&&(w.firstChild.nodeName==t||w.firstChild.nodeName.toLowerCase()=="body")){var r=w.firstChild.childNodes;for(var u=0;u<r.length;u++){if(r[u].nodeName.toLowerCase()!="body"){g.appendChild(r[u])}}}else{g.appendChild(w)}if(n(c)){c.innerHTML="&nbsp;"}if(n(g)){g.innerHTML="&nbsp;"}l.deleteContents();x.deleteContents();b.deleteContents();g.normalize();b.insertNode(g);c.normalize();b.insertNode(c)}else{m.innerHTML="<"+t+">&nbsp;</"+t+"><"+t+">&nbsp;</"+t+">";g=m.childNodes[1]}this.selectNode(g,true,true);return true}if(z.nodeName==t){b.setStart(z,0)}else{b.setStartBefore(z)}b.setEnd(A,v);c.appendChild(b.cloneContents());x.setEndAfter(o);x.setStart(p,j);var w=x.cloneContents();if(w.firstChild&&w.firstChild.nodeName==t){var r=w.firstChild.childNodes;for(var u=0;u<r.length;u++){if(r[u].nodeName.toLowerCase()!="body"){g.appendChild(r[u])}}}else{g.appendChild(w)}if(n(c)){c.innerHTML="&nbsp;"}if(n(g)){g.innerHTML="&nbsp;"}var l=B.createRange();if(!z.previousSibling&&z.parentNode.nodeName.toUpperCase()==t){l.setStartBefore(z.parentNode)}else{if(b.startContainer.nodeName.toUpperCase()==t&&b.startOffset==0){l.setStartBefore(b.startContainer)}else{l.setStart(b.startContainer,b.startOffset)}}if(!o.nextSibling&&o.parentNode.nodeName.toUpperCase()==t){l.setEndAfter(o.parentNode)}else{l.setEnd(x.endContainer,x.endOffset)}l.deleteContents();l.insertNode(g);l.insertNode(c);g.normalize();c.normalize();this.selectNode(g,true,true);return true};TinyMCEControl.prototype._handleBackSpace=function(k){var j=this.getDoc();var c=this.contentWindow.getSelection();if(c==null){return false}var a=c.getRangeAt(0);var d=a.startContainer;var h=d.nodeType==3?d.parentNode:d;if(d==null){return}if(h&&h.nodeName==""){var l=j.createElement("p");while(h.firstChild){l.appendChild(h.firstChild)}h.parentNode.insertBefore(l,h);h.parentNode.removeChild(h);var a=a.cloneRange();a.setStartBefore(d.nextSibling);a.setEndAfter(d.nextSibling);a.extractContents();this.selectNode(d.nextSibling,true,true)}var l=tinyMCE.getParentBlockElement(d);if(l!=null&&l.nodeName.toLowerCase()=="p"&&k=="keypress"){var f=l.innerHTML;var e=tinyMCE.getParentBlockElement(d);if(f==""||f=="&nbsp;"||e.nodeName.toLowerCase()=="li"){var i=l.previousSibling;while(i!=null&&i.nodeType!=1){i=i.previousSibling}if(i==null){return false}var b=tinyMCE.getNodeTree(i,new Array(),3);var g=b.length==0?null:b[b.length-1];if(g!=null){this.selectNode(g,true,false,false)}l.parentNode.removeChild(l);return true}}return false};TinyMCEControl.prototype._insertSpace=function(){return true};TinyMCEControl.prototype.autoResetDesignMode=function(){if(!tinyMCE.isMSIE&&tinyMCE.settings.auto_reset_designmode){var sel=this.contentWindow.getSelection();if(!sel||!sel.rangeCount||sel.rangeCount==0){eval('try { this.getDoc().designMode = "On"; } catch(e) {}')}}};TinyMCEControl.prototype.isDirty=function(){return this.isDirty};TinyMCEControl.prototype.execCommand=function(command,user_interface,value){var doc=this.getDoc();var win=this.getWin();function getAttrib(elm,name){return elm.getAttribute(name)?elm.getAttribute(name):""}if(!tinyMCE.isMSIE&&!this.useCSS){doc.execCommand("useCSS",false,true);this.useCSS=true}this.contentDocument=doc;if(tinyMCE._themeExecCommand(this.editorId,this.getBody(),command,user_interface,value)){return}if(command!="mceAddUndoLevel"&&command!="Undo"&&command!="Redo"&&command!="mceImage"&&command!="mceLink"&&command!="mceToggleVisualAid"&&(command!="mceInsertTable"&&!user_interface)){this.execCommand("mceAddUndoLevel")}if(this.getFocusElement()&&this.getFocusElement().nodeName.toLowerCase()=="img"){var align=this.getFocusElement().getAttribute("align");switch(command){case"JustifyLeft":if(align=="left"){this.getFocusElement().removeAttribute("align")}else{this.getFocusElement().setAttribute("align","left")}tinyMCE.triggerNodeChange();return;case"JustifyCenter":if(align=="middle"){this.getFocusElement().removeAttribute("align")}else{this.getFocusElement().setAttribute("align","middle")}tinyMCE.triggerNodeChange();return;case"JustifyRight":if(align=="right"){this.getFocusElement().removeAttribute("align")}else{this.getFocusElement().setAttribute("align","right")}tinyMCE.triggerNodeChange();return}}if(tinyMCE.settings.force_br_newlines){var alignValue="";if(doc.selection.type!="Control"){switch(command){case"JustifyLeft":alignValue="left";break;case"JustifyCenter":alignValue="center";break;case"JustifyFull":alignValue="justify";break;case"JustifyRight":alignValue="right";break}if(alignValue!=""){var rng=doc.selection.createRange();if((divElm=tinyMCE.getParentElement(rng.parentElement(),"div"))!=null){divElm.setAttribute("align",alignValue)}else{if(rng.pasteHTML&&rng.htmlText.length>0){rng.pasteHTML('<div align="'+alignValue+'">'+rng.htmlText+"</div>")}}tinyMCE.triggerNodeChange();return}}}switch(command){case"mceSelectNode":this.selectNode(value);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=value;break;case"mceSelectNodeDepth":var parentNode=this.getFocusElement();for(var i=0;parentNode;i++){if(parentNode.nodeName.toLowerCase()=="body"){break}if(parentNode.nodeName.toLowerCase()=="#text"){i--;parentNode=parentNode.parentNode;continue}if(i==value){this.selectNode(parentNode,false);tinyMCE.triggerNodeChange();tinyMCE.selectedNode=parentNode;return}parentNode=parentNode.parentNode}break;case"HiliteColor":if(tinyMCE.isGecko){this.getDoc().execCommand("useCSS",false,false);this.getDoc().execCommand("hilitecolor",false,value);this.getDoc().execCommand("useCSS",false,true)}else{this.getDoc().execCommand("backcolor",false,value)}break;case"Cut":case"Copy":case"Paste":var cmdFailed=false;eval("try {this.getDoc().execCommand(command, user_interface, value);} catch (e) {cmdFailed = true;}");if(tinyMCE.isGecko&&cmdFailed){if(confirm(tinyMCE.getLang("lang_clipboard_msg"))){window.open("http://www.mozilla.org/editor/midasdemo/securityprefs.html","mceExternal")}return}else{tinyMCE.triggerNodeChange()}break;case"mceLink":var selectedText="";if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=rng.text}else{selectedText=this.contentWindow.getSelection().toString()}if(!tinyMCE.linkElement){if((tinyMCE.selectedElement.nodeName.toLowerCase()!="img")&&(selectedText.length<=0)){return}}var href="",target="",title="",onclick="",action="insert";if(tinyMCE.selectedElement.nodeName.toLowerCase()=="a"){tinyMCE.linkElement=tinyMCE.selectedElement}if(tinyMCE.linkElement!=null&&getAttrib(tinyMCE.linkElement,"href")==""){tinyMCE.linkElement=null}if(tinyMCE.linkElement){href=getAttrib(tinyMCE.linkElement,"href");target=getAttrib(tinyMCE.linkElement,"target");title=getAttrib(tinyMCE.linkElement,"title");onclick=getAttrib(tinyMCE.linkElement,"mce_onclick");if(onclick==""){onclick=getAttrib(tinyMCE.linkElement,"onclick")}onclick=tinyMCE.cleanupEventStr(onclick);mceRealHref=getAttrib(tinyMCE.linkElement,"mce_real_href");if(mceRealHref!=""){href=mceRealHref}href=eval(tinyMCE.settings.urlconvertor_callback+"(href, tinyMCE.linkElement, true);");action="update"}if(this.settings.insertlink_callback){var returnVal=eval(this.settings.insertlink_callback+"(href, target, title, onclick, action);");if(returnVal&&returnVal.href){tinyMCE.insertLink(returnVal.href,returnVal.target,returnVal.title,returnVal.onclick)}}else{tinyMCE.openWindow(this.insertLinkTemplate,{href:href,target:target,title:title,onclick:onclick,action:action})}break;case"mceImage":var src="",alt="",border="",hspace="",vspace="",width="",height="",align="";var title="",onmouseover="",onmouseout="",action="insert";var img=tinyMCE.imgElement;if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){img=tinyMCE.selectedElement;tinyMCE.imgElement=img}if(img){if(getAttrib(img,"name").indexOf("mce_")==0){return}src=getAttrib(img,"src");alt=getAttrib(img,"alt");if(alt==""){alt=getAttrib(img,"title")}if(tinyMCE.isGecko){var w=img.style.width;if(w!=null&&w!=""){img.setAttribute("width",w)}var h=img.style.height;if(h!=null&&h!=""){img.setAttribute("height",h)}}border=getAttrib(img,"border");hspace=getAttrib(img,"hspace");vspace=getAttrib(img,"vspace");width=getAttrib(img,"width");height=getAttrib(img,"height");align=getAttrib(img,"align");onmouseover=getAttrib(img,"onmouseover");onmouseout=getAttrib(img,"onmouseout");title=getAttrib(img,"title");if(tinyMCE.isMSIE){width=img.attributes.width.specified?width:"";height=img.attributes.height.specified?height:""}onmouseover=tinyMCE.cleanupEventStr(onmouseover);onmouseout=tinyMCE.cleanupEventStr(onmouseout);mceRealSrc=getAttrib(img,"mce_real_src");if(mceRealSrc!=""){src=mceRealSrc}src=eval(tinyMCE.settings.urlconvertor_callback+"(src, img, true);");action="update"}if(this.settings.insertimage_callback){var returnVal=eval(this.settings.insertimage_callback+"(src, alt, border, hspace, vspace, width, height, align, title, onmouseover, onmouseout, action);");if(returnVal&&returnVal.src){tinyMCE.insertImage(returnVal.src,returnVal.alt,returnVal.border,returnVal.hspace,returnVal.vspace,returnVal.width,returnVal.height,returnVal.align,returnVal.title,returnVal.onmouseover,returnVal.onmouseout)}}else{tinyMCE.openWindow(this.insertImageTemplate,{src:src,alt:alt,border:border,hspace:hspace,vspace:vspace,width:width,height:height,align:align,title:title,onmouseover:onmouseover,onmouseout:onmouseout,action:action})}break;case"mceCleanupWord":if(tinyMCE.isMSIE){var html=this.getBody().createTextRange().htmlText;if(html.indexOf('="mso')!=-1){tinyMCE._setHTML(this.contentDocument,this.getBody().innerHTML);html=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.getBody(),this.visualAid)}this.getBody().innerHTML=html}break;case"mceCleanup":tinyMCE._setHTML(this.contentDocument,this.getBody().innerHTML);this.getBody().innerHTML=tinyMCE._cleanupHTML(this.contentDocument,this.settings,this.getBody(),this.visualAid);tinyMCE.triggerNodeChange();break;case"mceAnchor":if(!user_interface){var aElm=tinyMCE.getParentElement(this.getFocusElement(),"a","name");if(aElm){if(value==null||value==""){if(tinyMCE.isMSIE){aElm.outerHTML=aElm.innerHTML}else{var rng=aElm.ownerDocument.createRange();rng.setStartBefore(aElm);rng.setEndAfter(aElm);rng.deleteContents();rng.insertNode(rng.createContextualFragment(aElm.innerHTML))}}else{aElm.setAttribute("name",value)}}else{this.getDoc().execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.getBody(),"font","face","#mce_temp_font#");for(var x=0;x<elementArray.length;x++){elm=elementArray[x];var aElm=this.getDoc().createElement("a");aElm.setAttribute("name",value);if(elm.hasChildNodes()){for(var i=0;i<elm.childNodes.length;i++){aElm.appendChild(elm.childNodes[i].cloneNode(true))}}elm.parentNode.replaceChild(aElm,elm)}}tinyMCE.triggerNodeChange()}break;case"mceReplaceContent":var selectedText="";if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=rng.text}else{selectedText=this.contentWindow.getSelection().toString()}if(selectedText.length>0){value=tinyMCE.replaceVar(value,"selection",selectedText);tinyMCE.execCommand("mceInsertContent",false,value)}tinyMCE.triggerNodeChange();break;case"mceSetAttribute":if(typeof(value)=="object"){var targetElms=(typeof(value.targets)=="undefined")?"p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address":value.targets;var targetNode=tinyMCE.getParentElement(this.getFocusElement(),targetElms);if(targetNode){targetNode.setAttribute(value.name,value.value);tinyMCE.triggerNodeChange()}}break;case"mceSetCSSClass":var selectedText=false;if(tinyMCE.isMSIE){var rng=doc.selection.createRange();selectedText=(rng.text&&rng.text.length>0)}else{selectedText=(this.contentWindow.getSelection().toString().length>0)}if(tinyMCE.selectedNode){tinyMCE.selectedElement=tinyMCE.selectedNode}if(selectedText&&!tinyMCE.selectedNode){this.getDoc().execCommand("RemoveFormat",false,null);if(value==null){return this.execCommand("RemoveFormat",false,null)}this.getDoc().execCommand("fontname",false,"#mce_temp_font#");var elementArray=tinyMCE.getElementsByAttributeValue(this.getBody(),"font","face","#mce_temp_font#");for(var x=0;x<elementArray.length;x++){elm=elementArray[x];if(elm){var spanElm=this.getDoc().createElement("span");spanElm.className=value;if(elm.hasChildNodes()){for(var i=0;i<elm.childNodes.length;i++){spanElm.appendChild(elm.childNodes[i].cloneNode(true))}}elm.parentNode.replaceChild(spanElm,elm)}}}else{var targetElm=this.getFocusElement();if(tinyMCE.selectedElement.nodeName.toLowerCase()=="img"||tinyMCE.selectedElement.nodeName.toLowerCase()=="table"){targetElm=tinyMCE.selectedElement}var targetNode=tinyMCE.getParentElement(targetElm,"p,img,span,div,td,h1,h2,h3,h4,h5,h6,pre,address");if(tinyMCE.selectedElement.nodeType==1){targetNode=tinyMCE.selectedElement}if(!tinyMCE.isMSIE&&!targetNode){targetNode=tinyMCE.imgElement}if(targetNode){if(targetNode.nodeName.toLowerCase()=="span"&&(!value||value=="")){if(targetNode.hasChildNodes()){for(var i=0;i<targetNode.childNodes.length;i++){targetNode.parentNode.insertBefore(targetNode.childNodes[i].cloneNode(true),targetNode)}}targetNode.parentNode.removeChild(targetNode)}else{if(value!=null&&value!=""){targetNode.className=value}else{targetNode.removeAttribute("className");targetNode.removeAttribute("class")}}}}tinyMCE.triggerNodeChange();break;case"mceInsertContent":if(!tinyMCE.isMSIE){var sel=this.contentWindow.getSelection();var rng=sel.getRangeAt(0);var isHTML=value.indexOf("<")!=-1;if(isHTML){value=rng.createContextualFragment(value)}else{var el=document.createElement("div");el.innerHTML=value;value=el.innerHTML;value=doc.createTextNode(value)}rng.deleteContents();if(rng.startContainer.nodeType==3){var node=rng.startContainer.splitText(rng.startOffset);node.parentNode.insertBefore(value,node)}else{rng.insertNode(value)}if(!isHTML){sel.selectAllChildren(doc.body);sel.removeAllRanges();var rng=doc.createRange();rng.selectNode(value);rng.collapse(false);sel.addRange(rng)}else{rng.collapse(false)}}else{var rng=doc.selection.createRange();if(rng.item){rng.item(0).outerHTML=value}else{rng.pasteHTML(value)}}tinyMCE.triggerNodeChange();break;case"mceAddUndoLevel":if(tinyMCE.settings.custom_undo_redo){var customUndoLevels=tinyMCE.settings.custom_undo_redo_levels;var newHTML=this.getBody().innerHTML;if(newHTML!=this.undoLevels[this.undoLevels.length-1]){tinyMCE.executeCallback("onchange_callback","_onchange",0,this);this.isDirty=true;if(customUndoLevels!=-1&&this.undoLevels.length>customUndoLevels){for(var i=0;i<this.undoLevels.length-1;i++){this.undoLevels[i]=this.undoLevels[i+1]}this.undoLevels.length--;this.undoIndex--}this.undoLevels[this.undoIndex++]=newHTML;this.undoLevels.length=this.undoIndex}tinyMCE.triggerNodeChange(false)}break;case"Undo":if(tinyMCE.settings.custom_undo_redo){if(this.undoIndex==this.undoLevels.length){this.execCommand("mceAddUndoLevel");this.undoIndex--}if(this.undoIndex>0){this.undoIndex--;this.getBody().innerHTML=this.undoLevels[this.undoIndex]}tinyMCE.triggerNodeChange()}else{this.getDoc().execCommand(command,user_interface,value)}break;case"Redo":if(tinyMCE.settings.custom_undo_redo){if(this.undoIndex<(this.undoLevels.length-1)){this.undoIndex++;this.getBody().innerHTML=this.undoLevels[this.undoIndex]}tinyMCE.triggerNodeChange()}else{this.getDoc().execCommand(command,user_interface,value)}break;case"mceToggleVisualAid":this.visualAid=!this.visualAid;tinyMCE.handleVisualAid(this.getBody(),true,this.visualAid);tinyMCE.triggerNodeChange();break;case"removeformat":var text=this.getSelectedText();if(tinyMCE.isMSIE){try{win.focus();var rng=doc.selection.createRange();rng.execCommand("RemoveFormat",false,null);rng.pasteHTML(rng.text)}catch(e){}}else{this.getDoc().execCommand(command,user_interface,value)}if(text.length==0){this.execCommand("mceSetCSSClass",false,"")}tinyMCE.triggerNodeChange();break;default:this.getDoc().execCommand(command,user_interface,value);tinyMCE.triggerNodeChange()}};TinyMCEControl.prototype.queryCommandValue=function(a){return this.getDoc().queryCommandValue(a)};TinyMCEControl.prototype.queryCommandState=function(a){return this.getDoc().queryCommandState(a)};TinyMCEControl.prototype.onAdd=function(replace_element,form_element_name,target_document){var targetDoc=target_document?target_document:document;this.targetDoc=targetDoc;tinyMCE.themeURL=tinyMCE.baseURL+"/themes/"+this.settings.theme;this.settings.themeurl=tinyMCE.themeURL;if(!replace_element){alert("Error: Could not find the target element.");return false}var templateFunction=tinyMCE._getThemeFunction("_getInsertLinkTemplate");if(eval("typeof("+templateFunction+")")!="undefined"){this.insertLinkTemplate=eval(templateFunction+"(this.settings);")}var templateFunction=tinyMCE._getThemeFunction("_getInsertImageTemplate");if(eval("typeof("+templateFunction+")")!="undefined"){this.insertImageTemplate=eval(templateFunction+"(this.settings);")}var templateFunction=tinyMCE._getThemeFunction("_getEditorTemplate");if(eval("typeof("+templateFunction+")")=="undefined"){alert("Error: Could not find the template function: "+templateFunction);return false}var editorTemplate=eval(templateFunction+"(this.settings, this.editorId);");var deltaWidth=editorTemplate.delta_width?editorTemplate.delta_width:0;var deltaHeight=editorTemplate.delta_height?editorTemplate.delta_height:0;var html='<span id="'+this.editorId+'_parent">'+editorTemplate.html;var templateFunction=tinyMCE._getThemeFunction("_handleNodeChange",true);if(eval("typeof("+templateFunction+")")!="undefined"){this.settings.handleNodeChangeCallback=templateFunction}html=tinyMCE.replaceVar(html,"editor_id",this.editorId);html=tinyMCE.replaceVar(html,"default_document",tinyMCE.baseURL+"/blank.htm");this.settings.default_document=tinyMCE.baseURL+"/blank.htm";this.settings.old_width=this.settings.width;this.settings.old_height=this.settings.height;if(this.settings.width==-1){this.settings.width=replace_element.offsetWidth}if(this.settings.height==-1){this.settings.height=replace_element.offsetHeight}if(this.settings.width==0){this.settings.width=replace_element.style.width}if(this.settings.height==0){this.settings.height=replace_element.style.height}if(this.settings.width==0){this.settings.width=320}if(this.settings.height==0){this.settings.height=240}this.settings.area_width=parseInt(this.settings.width);this.settings.area_height=parseInt(this.settings.height);this.settings.area_width+=deltaWidth;this.settings.area_height+=deltaHeight;if((""+this.settings.width).indexOf("%")!=-1){this.settings.area_width="100%"}if((""+this.settings.height).indexOf("%")!=-1){this.settings.area_height="100%"}if((""+replace_element.style.width).indexOf("%")!=-1){this.settings.width=replace_element.style.width;this.settings.area_width="100%"}if((""+replace_element.style.height).indexOf("%")!=-1){this.settings.height=replace_element.style.height;this.settings.area_height="100%"}html=tinyMCE.applyTemplate(html);this.settings.width=this.settings.old_width;this.settings.height=this.settings.old_height;this.visualAid=this.settings.visual;this.formTargetElementId=form_element_name;if(replace_element.nodeName.toLowerCase()=="textarea"){this.startContent=replace_element.value}else{this.startContent=replace_element.innerHTML}if(replace_element.nodeName.toLowerCase()!="textarea"){this.oldTargetElement=replace_element.cloneNode(true);if(tinyMCE.settings.debug){html+='<textarea wrap="off" id="'+form_element_name+'" name="'+form_element_name+'" cols="100" rows="15"></textarea>'}else{html+='<input type="hidden" type="text" id="'+form_element_name+'" name="'+form_element_name+'" />'}html+="</span>";if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.replaceChild(fragment,replace_element)}else{replace_element.outerHTML=html}}else{html+="</span>";this.oldTargetElement=replace_element;if(!tinyMCE.settings.debug){this.oldTargetElement.style.display="none"}if(!tinyMCE.isMSIE){var rng=replace_element.ownerDocument.createRange();rng.setStartBefore(replace_element);var fragment=rng.createContextualFragment(html);replace_element.parentNode.insertBefore(fragment,replace_element)}else{replace_element.insertAdjacentHTML("beforeBegin",html)}}var dynamicIFrame=false;var tElm=targetDoc.getElementById(this.editorId);if(!tinyMCE.isMSIE){if(tElm&&tElm.nodeName.toLowerCase()=="span"){tElm=tinyMCE._createIFrame(tElm);dynamicIFrame=true}this.targetElement=tElm;this.iframeElement=tElm;this.contentDocument=tElm.contentDocument;this.contentWindow=tElm.contentWindow}else{if(tElm&&tElm.nodeName.toLowerCase()=="span"){tElm=tinyMCE._createIFrame(tElm)}else{tElm=targetDoc.frames[this.editorId]}this.targetElement=tElm;this.iframeElement=targetDoc.getElementById(this.editorId);this.contentDocument=tElm.window.document;this.contentWindow=tElm.window;this.getDoc().designMode="on"}var doc=this.contentDocument;if(dynamicIFrame){var html='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><base href="'+tinyMCE.settings.base_href+'" /><title>blank_page</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body></body></html>';try{this.getDoc().designMode="on";doc.open();doc.write(html);doc.close()}catch(e){this.getDoc().location.href=tinyMCE.baseURL+"/blank.htm"}}if(tinyMCE.isMSIE){window.setTimeout("TinyMCE.prototype.addEventHandlers('"+this.editorId+"');",1)}tinyMCE.setupContent(this.editorId,true);return true};TinyMCEControl.prototype.getFocusElement=function(){if(tinyMCE.isMSIE){var c=this.getDoc();var a=c.selection.createRange();if(a.collapse){a.collapse(true)}var d=a.item?a.item(0):a.parentElement()}else{var b=this.contentWindow.getSelection();var d=(b&&b.anchorNode)?b.anchorNode:null;if(tinyMCE.selectedElement!=null&&tinyMCE.selectedElement.nodeName.toLowerCase()=="img"){d=tinyMCE.selectedElement}}return d};var tinyMCE=new TinyMCE();var tinyMCELang=new Array();function debug(){var d="";var e=document.getElementById("tinymce_debug");if(!e){var a=document.createElement("div");a.setAttribute("className","debugger");a.className="debugger";a.innerHTML='			Debug output:			<textarea id="tinymce_debug" style="width: 100%; height: 300px">			</textarea>';document.body.appendChild(a);e=document.getElementById("tinymce_debug")}var b=this.debug.arguments;for(var c=0;c<b.length;c++){d+=b[c];if(c<b.length-1){d+=", "}}e.value+=d+"\n"};function TinyMCE_simple_getEditorTemplate(){var a=new Array();a.html='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}"><tr><td align="center"><span id="{$editor_id}">IFRAME</span></td></tr><tr><td class="mceToolbar" align="center" height="1"><img id="{$editor_id}_bold" src="{$themeurl}/images/{$lang_bold_img}" title="{$lang_bold_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Bold\')"><img id="{$editor_id}_italic" src="{$themeurl}/images/{$lang_italic_img}" title="{$lang_italic_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Italic\')"><img id="{$editor_id}_underline" src="{$themeurl}/images/{$lang_underline_img}" title="{$lang_underline_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Underline\')"><img id="{$editor_id}_strikethrough" src="{$themeurl}/images/strikethrough.gif" title="{$lang_striketrough_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Strikethrough\')"><img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine"><img src="{$themeurl}/images/undo.gif" title="{$lang_undo_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Undo\')"><img src="{$themeurl}/images/redo.gif" title="{$lang_redo_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'Redo\')"><img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine"><img src="{$themeurl}/images/cleanup.gif" title="{$lang_cleanup_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'mceCleanup\')"><img src="{$themeurl}/images/spacer.gif" width="1" height="15" class="mceSeparatorLine"><img id="{$editor_id}_bullist" src="{$themeurl}/images/bullist.gif" title="{$lang_bullist_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertUnorderedList\')"><img id="{$editor_id}_numlist" src="{$themeurl}/images/numlist.gif" title="{$lang_numlist_desc}" width="20" height="20" class="mceButtonNormal" onmouseover="tinyMCE.switchClass(this,\'mceButtonOver\');" onmouseout="tinyMCE.restoreClass(this);" onmousedown="tinyMCE.restoreAndSwitchClass(this,\'mceButtonDown\');" onclick="tinyMCE.execInstanceCommand(\'{$editor_id}\',\'InsertOrderedList\')"></td></tr></table>';a.delta_width=0;a.delta_height=-20;return a}function TinyMCE_simple_handleNodeChange(b,a){tinyMCE.switchClassSticky(b+"_bold","mceButtonNormal");tinyMCE.switchClassSticky(b+"_italic","mceButtonNormal");tinyMCE.switchClassSticky(b+"_underline","mceButtonNormal");tinyMCE.switchClassSticky(b+"_strikethrough","mceButtonNormal");tinyMCE.switchClassSticky(b+"_bullist","mceButtonNormal");tinyMCE.switchClassSticky(b+"_numlist","mceButtonNormal");do{switch(a.nodeName.toLowerCase()){case"b":case"strong":tinyMCE.switchClassSticky(b+"_bold","mceButtonSelected");break;case"i":case"em":tinyMCE.switchClassSticky(b+"_italic","mceButtonSelected");break;case"u":tinyMCE.switchClassSticky(b+"_underline","mceButtonSelected");break;case"strike":tinyMCE.switchClassSticky(b+"_strikethrough","mceButtonSelected");break;case"ul":tinyMCE.switchClassSticky(b+"_bullist","mceButtonSelected");break;case"ol":tinyMCE.switchClassSticky(b+"_numlist","mceButtonSelected");break}}while((a=a.parentNode))};tinyMCELang.lang_bold_desc="Negrita";tinyMCELang.lang_italic_desc="Cursiva";tinyMCELang.lang_underline_desc="Subrayado";tinyMCELang.lang_striketrough_desc="Tachado";tinyMCELang.lang_justifyleft_desc="Alinear a la izquierda";tinyMCELang.lang_justifycenter_desc="Alinear al centro";tinyMCELang.lang_justifyright_desc="Alinear a la derecha";tinyMCELang.lang_justifyfull_desc="Alinear justificado";tinyMCELang.lang_bullist_desc="Lista sin ordenar";tinyMCELang.lang_numlist_desc="Lista ordenada";tinyMCELang.lang_outdent_desc="Disminuye sangria";tinyMCELang.lang_indent_desc="Aumentar sangria";tinyMCELang.lang_undo_desc="Deshacer";tinyMCELang.lang_redo_desc="Rehacer";tinyMCELang.lang_link_desc="Insertar enlace";tinyMCELang.lang_unlink_desc="Quitar enlace";tinyMCELang.lang_image_desc="Insertar imagen";tinyMCELang.lang_cleanup_desc="Limpiar codigo";tinyMCELang.lang_focus_alert="Una instanacia del editor debe ser enfocada antes de usar este comando.";tinyMCELang.lang_edit_confirm="Quieres usar el modo WYSIWYG para esta area de texto?";tinyMCELang.lang_insert_link_title="Insertar/editar enlace";tinyMCELang.lang_insert="Insertar";tinyMCELang.lang_update="Insertar";tinyMCELang.lang_cancel="Cancelar";tinyMCELang.lang_insert_link_url="Direccion del enlace";tinyMCELang.lang_insert_link_target="Destino";tinyMCELang.lang_insert_link_target_same="Abrir enlace en la misma ventana";tinyMCELang.lang_insert_link_target_blank="Abrir enlace en una ventana nueva";tinyMCELang.lang_insert_image_title="Insertar/editar imagen";tinyMCELang.lang_insert_image_src="URL de la imagen";tinyMCELang.lang_insert_image_alt="Descripcion de la imagen";tinyMCELang.lang_help_desc="Ayuda";tinyMCELang.lang_bold_img="bold.gif";tinyMCELang.lang_italic_img="italic.gif";tinyMCELang.lang_underline_img="underline.gif";tinyMCELang.lang_clipboard_msg="Copy/Cut/Paste is not available in Mozilla and Firefox.\nDo you want more information about this issue?";