From: Subject: Date: Wed, 18 Aug 2010 15:57:07 -0500 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="----=_NextPart_000_0000_01CB3EEE.0274AAD0" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/ckeditor/syllabustests/index.php?sid=8389&preview=42023&term=201040 =EF=BB=BF Syllabus = for PH 491-001: Advanced Laboratory

PH 491 Section 001: Advanced Laboratory

Fall, 2010
3 Credit Hours
Primary Instructor: Andreas Piepke
Core Designation: Writing
Syllabus subject to change.

Office Hours=20

Wednesday 10:00 am to=20 12:00 am. I have an open door policy. You might see me whenever I am in = my=20 office, room 202 Gallalee Hall.

Phone:=20 6066,

Email: andreas@bama.ua.edu=



From the Student Records System
  • PH 255 (undergrad) with a minimum grade of D-
=

The lab will = require handling=20 of sealed radioactive calibration sources. All students need to do the = radiation=20 safety training offered by the Office of Environmental Health and Safety = (EHS)=20 on-line. Every student will need to provide an up-to-date, EHS issued=20 certificate, showing that the training has been successfully=20 passed. 


Course Description=20

This class will be = held in=20 room 322 Gallalee Hall. The class meets Tuesday and Thursday 1:30 = pm to=20 3:00 pm and has 3 credit hours.

The = class  covers=20 experimental aspects of physics with a focus radiation detection and=20 measurement. It will provide an in-depth introduction into methods = encountered=20 when collecting, summarizing and interpreting data. These are general = skills=20 required in all fields of experimental physics. Main subject = of this=20 class will be the construction of a beta spectrometer to experimentally=20 demonstrate the need for special relativity. The experiment will be = designed and built by the students. The class will have a budget = and access=20 to the department shops. If needed there will be access to my = research=20 lab. The course comprises three major = elements:

  • Lectures on = subjects=20 important for the class
  • Conducting two = pre-prepared=20 "warm-up" experiments
  • Building and = commissioning=20 of an experiment to demonstrate special=20 relativity


1. Recognizing = physics=20 concepts that involve determining the range, accuracy and sensitivity of = experimental apparatus.

2. Judiciously = discriminating=20 between reliable and less reliable information and using the scientific = method=20 to critically evaluate scientific data, reports and journal articles.=20

3. Performing = detailed=20 searches of scientific databases and journals to assess and propose new = physics=20 experiments.

4. Producing=20 publication-quality graphics for inclusion in scientific reports and = journal=20 articles.

5. Comparing = results to=20 optimize measurement methods, leading to efficient and complete analysis = of=20 fabricated samples.

6. The process of = presenting=20 scientific results as posters, research papers and talks.=20



 Lecture=20 segments:

  1. First order = differential=20 equations
  2. Statistics and = data=20 analysis
  3. Types of=20 radiation
  4. Interaction of = radiation=20 with matter
  5. Pulse signals in=20 electronics
  6. Energy and = momentum=20 analysis of electrons

Pre-prepared=20 experiments:

  1. Determination of = the=20 spectral photon detection efficiency of a NaI = scintillator
  2. Decay of Radon = daughters=20 sampled from air

Special=20 relativity

  1. Design and build = a beta=20 spectrometer
  2. Demonstrate the=20 relativistic energy-momentum = relation

Exams and Assignments=20

There will be = several=20 different types of performance assessment in class:

  1. Homework=20 assignments
  2. Demonstrated = proficiency on=20 the lab equipment
  3. Laboratory=20 notebook
  4. A midterm = seminar. Every=20 student will give one, at least 15 min seminar to the = class
  5. Final paper in = scientific=20 format


The final grade = will be=20 computed as the weighted average of the grades received for various = assessments.=20 The following weights will be applied:

  1. Homework = assignments =20 20%
  2. Demonstrated = proficiency on=20 the lab equipment  10%
  3. Laboratory = notebook =20 10%
  4. A midterm = seminar. Every=20 student will give one seminar of at least 15 min to the class.=20 The students will assign the grade.  30%
  5. Final paper in = scientific=20 format  30%

PH591 students are = required=20 to deliver a 4 page final paper, in PRL format, on the test of special=20 relativity using the beta spectrometer. PH591 will further summarize = other tests=20 of special relativity by means of a literature=20 study.


Policy on Missed Exams & = Coursework=20

Generally there = will be no=20 make-up of missed classwork or assignment.



 

 Students are = expected to=20 attend classes as scheduled. Assignments must be turned in on time, to = allow for=20 peer review and evaluation. Since the quality of the final paper is = increased=20 through reviews and revisions, it is strongly recommended to hand in = preliminary=20 work on time to allow for constructive criticisms. Late assignments may = be=20 accepted from students that experience difficulties beyond their control = which=20 result in failure to attend class or failure to complete an assignment = on time.=20  



UA Supply Store Textbook Information

  • NONE / NO TEXT REQUIRED

=20


Other Course Materials=20

A copy of W.R. Leo, = "Techniques for Nuclear and ParticlePhysics Experiments" will be = available in=20 the lab.

Other useful = reading material=20 is: P.R. Bevington and D.K. Robinson, "Data Reduction and Error Analysis = for the=20 Physical Sciences", G. Cowan, "Statistical Data = Analysis".

These are not = required=20 texts.


Extra Credit Opportunities=20

Students are = expected to=20 complete their assignments on schedule. There will be no extra credit=20 awarded. 


Disability Statement

If you are registered with = the Office of=20 Disability Services, please make an appointment with me as soon as = possible to=20 discuss any course accommodations that may be necessary. If you have a=20 disability, but have not contacted the Office of Disability Services, = please=20 call 348-4285 or visit 133-B Martha Parham Hall East to register for = services.=20 Students who may need course adaptations because of a disability are = welcome to=20 make an appointment to see me during office hours. Students with = disabilities=20 must be registered with the Office of Disability Services, 133-B Martha = Parham=20 Hall East, before receiving academic adjustments.

Policy on Academic Misconduct =

All students in attendance at the University of Alabama are expected = to be=20 honorable and to observe standards of conduct appropriate to a community = of=20 scholars. The University expects from its students a higher standard of = conduct=20 than the minimum required to avoid discipline. Academic misconduct = includes all=20 acts of dishonesty in any academically related matter and any knowing or = intentional help or attempt to help, or conspiracy to help, another = student.=20

The Academic Misconduct Disciplinary Policy will be = followed=20 in the event of academic misconduct.


Severe Weather Protocol =

In the case of a tornado warning (tornado has been sighted or = detected by=20 radar; sirens activated), all university activities are automatically = suspended,=20 including all classes and laboratories. If you are in a building, please = move=20 immediately to the lowest level and toward the center of the building = away from=20 windows (interior classrooms, offices, or corridors) and remain there = until the=20 tornado warning has expired. Classes in session when the tornado warning = is=20 issued can resume immediately after the warning has expired at the = discretion of=20 the instructor. Classes that have not yet begun will resume 30 minutes = after the=20 tornado warning has expired provided at least half of the class period=20 remains.

UA is a residential campus with many students living on or near = campus. In=20 general classes will remain in session until the National Weather = Service issues=20 safety warnings for the city of Tuscaloosa. Clearly, some students and = faculty=20 commute from adjacent counties. These counties may experience weather = related=20 problems not encountered in Tuscaloosa. Individuals should follow the = advice of=20 the National Weather Service for that area taking the necessary = precautions to=20 ensure personal safety. Whenever the National Weather Service and the = Emergency=20 Management Agency issue a warning, people in the path of the storm = (tornado or=20 severe thunderstorm) should take immediate life saving actions.

When West Alabama is under a severe weather advisory, = conditions can=20 change rapidly. It is imperative to get to where you can receive = information=20 from the National = Weather=20 Service and to follow the instructions provided. Personal safety = should=20 dictate the actions that faculty, staff and students take. The Office of = Public=20 Relations will disseminate the latest information regarding conditions = on campus=20 in the following ways:

  • Weather advisory posted on the UA homepage
  • Weather advisory sent out through Connect-ED--faculty, staff and = students=20 (sign up at = myBama)
  • Weather advisory broadcast over WVUA at 90.7 FM
  • Weather advisory broadcast over Alabama Public Radio (WUAL) at = 91.5 FM=20
  • Weather advisory broadcast over WVUA 7. WVUA 7 Storm Watch = provides a free=20 service you can subscribe to that allows you to receive weather = warnings for=20 Tuscaloosa via e-mail, pager or cell phone. Check http://www.wvua7.com/stormwatch.html for = details.

Save changes to the current section?

=

Objectives and Student Learning Outcomes:

The SACS Principles of Accreditation suggest that objectives are best = stated=20 in the form of student learning outcomes, i.e., what students should be = able to=20 know and do at the end of the course. Faculty have found it helpful to = begin the=20 Student Learning Outcomes section of a syllabus with a statement such = as, "At=20 the conclusion of the course, students will be able = to..."

------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: text/css; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/css/uaops2009.css .sect_adder { LIST-STYLE-TYPE: none } .sect_adder A { COLOR: white } .custom_sect { =09 } .del_sect A { COLOR: #f5a07a } .del_sect { TEXT-ALIGN: right; PADDING-RIGHT: 1em; DISPLAY: block } #sylobj_ul LI { LIST-STYLE: none none outside; TEXT-INDENT: -2em } .checkedOff { BACKGROUND-IMAGE: url(/images/check.gif); PADDING-LEFT: 12px } .previewA { COLOR: #222 !important } .previewA:hover { FONT-STYLE: normal !important; TEXT-DECORATION: underline !important } .sidelinks { MARGIN-LEFT: 0.5em } #sortable { PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: = 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px } #sortable LI { PADDING-BOTTOM: 0.4em; MARGIN: 0px 3px 3px; PADDING-LEFT: 1.5em; = PADDING-RIGHT: 0.4em; HEIGHT: 18px; COLOR: #333 !important; FONT-WEIGHT: = normal !important; PADDING-TOP: 0.4em } #sortable LI SPAN { POSITION: absolute; MARGIN-LEFT: -1.3em } .sidelinks A { COLOR: #222 !important } .prevul { LIST-STYLE-IMAGE: url(/images/preview.png) } .boxheader { BORDER-BOTTOM: #ccc 1px solid; MARGIN-TOP: 0px } .normchoice A { FONT-STYLE: italic; COLOR: darkblue !important } .xlisthead { DISPLAY: none } .xlistrow { DISPLAY: none } A { FONT-SIZE: 12px } ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: text/css; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/css/syllibus.css BODY { TEXT-ALIGN: center; MARGIN-TOP: 0px; FONT-FAMILY: Arial, sans-serif; = MARGIN-LEFT: 0px } #wrapper { Z-INDEX: 1; BORDER-BOTTOM: medium none; POSITION: relative; TEXT-ALIGN: = left; BORDER-LEFT: medium none; MARGIN: 0px auto; WIDTH: 710px; = OVERFLOW: visible; BORDER-TOP: medium none; TOP: 0px; BORDER-RIGHT: = medium none; LEFT: 0px } #pagecontent { BORDER-BOTTOM: #333333 1px solid; POSITION: relative; BORDER-LEFT: = #999999 1px solid; PADDING-BOTTOM: 24px; BACKGROUND-COLOR: #ffffff; = PADDING-LEFT: 24px; WIDTH: 662px; PADDING-RIGHT: 24px; BORDER-TOP: = #999999 1px solid; TOP: 0px; BORDER-RIGHT: #666666 1px solid; = PADDING-TOP: 24px; LEFT: 0px } #pageheading { Z-INDEX: 1; TEXT-ALIGN: left; WIDTH: 600px; HEIGHT: 100px; FONT-SIZE: = 85% } #sectionheader { TEXT-ALIGN: left; WIDTH: 95%; HEIGHT: 75px } .section_text { POSITION: relative; TEXT-ALIGN: left; PADDING-LEFT: 1em; PADDING-RIGHT: = 1em } .section_text > .section_head > STRONG { LETTER-SPACING: 2px; COLOR: rgb(51,51,51); FONT-SIZE: 115% } .section_text .section_head { MARGIN-LEFT: -1em } H1 { FONT-FAMILY: Arial, Helvetica, sans-serif; FONT-SIZE: 110%; = FONT-WEIGHT: bolder } H2 { FONT-SIZE: 90%; FONT-WEIGHT: bolder } .MsoNormal { MARGIN-TOP: 0px !important } .sect_hr { WIDTH: 105%; MARGIN-BOTTOM: 2em; MARGIN-LEFT: -1em } .MsoListParagraphCxSpFirst { TEXT-INDENT: -18px !important; MARGIN-BOTTOM: 0px !important; = MARGIN-LEFT: 2em !important } .MsoListParagraphCxSpMiddle { TEXT-INDENT: -18px !important; MARGIN-BOTTOM: 0px !important; = MARGIN-LEFT: 2em !important } .MsoListParagraphCxSpLast { TEXT-INDENT: -18px !important; MARGIN-BOTTOM: 0px !important; = MARGIN-LEFT: 2em !important } #wrapper { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BACKGROUND-COLOR: = transparent !important; BORDER-TOP: medium none; BORDER-RIGHT: medium = none } [border=3D'1'].MsoTableGrid TD { BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; = BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid } .section_text A { COLOR: blue } .section_text A:hover { COLOR: blue } .section_head { POSITION: relative } .section_text { PAGE-BREAK-INSIDE: avoid } .sectionButtons { POSITION: absolute; TOP: 0px; RIGHT: -1em } SPAN.cke_skin_kama { MARGIN-LEFT: -24px !important; MARGIN-RIGHT: -24px !important } .unsavedButtons SPAN { COLOR: #cc0000; FONT-SIZE: 90% } .colorButton { PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: = url(/ckeditor/skins/kama/images/sprites.png) repeat-x 0px -1069px; = COLOR: #222 !important; PADDING-TOP: 5px } .greenButton { BACKGROUND-POSITION: 0px -1143px } .orangeButton { =09 } .section_text { MARGIN-TOP: 2em; CLEAR: both } .section_div { FONT-FAMILY: Arial, Verdana, sans-serif; COLOR: #222; FONT-SIZE: 9pt } .preload_div { FONT-FAMILY: Arial, Verdana, sans-serif; COLOR: #222; FONT-SIZE: 9pt } .dialogFrame { FONT-SIZE: 12px } .dialogFrame .dialogTop { BORDER-BOTTOM: rgb(204,204,204) 1px solid; COLOR: rgb(68,68,68); = FONT-SIZE: 16px; FONT-WEIGHT: bold } A { COLOR: blue } A:hover { COLOR: blue } #bottomOptions { COLOR: green; FONT-SIZE: 120%; FONT-WEIGHT: bold } #bottomOptions A { COLOR: black; FONT-SIZE: 90%; FONT-WEIGHT: normal } .lightnotice { COLOR: #666; FONT-SIZE: 90% } DIV.growlUI { BACKGROUND: url(/images/check48.png) no-repeat 10px 10px } DIV.growlUI H1 { TEXT-ALIGN: left; PADDING-BOTTOM: 5px; PADDING-LEFT: 75px; = PADDING-RIGHT: 5px; COLOR: white; PADDING-TOP: 5px } DIV.growlUI H2 { TEXT-ALIGN: left; PADDING-BOTTOM: 5px; PADDING-LEFT: 75px; = PADDING-RIGHT: 5px; COLOR: white; PADDING-TOP: 5px } .checkedOff { BACKGROUND-IMAGE: url(/images/check.gif); PADDING-LEFT: 1.5em; = BACKGROUND-REPEAT: no-repeat } .emptysection .section_head STRONG { COLOR: #777 !important } .emptysection .section_head { BORDER-BOTTOM: rgb(153,153,153) 1px solid } .emptysection .sect_hr { DISPLAY: none } .mainSylHeader { POSITION: relative; TEXT-ALIGN: center } .preload_div { =09 } #otwarning { FONT-SIZE: 90% } .mainSylHeader .topinfo { POSITION: absolute; LETTER-SPACING: 1px; COLOR: #333; TOP: 2em } .mainSylHeader .topterm { LEFT: 30% } .mainSylHeader .tophours { RIGHT: 30% } .mainSylHeader .instruct { MARGIN-TOP: 2em } .mainSylHeader .changeDisclaimer { MARGIN-TOP: 1em; COLOR: #550000; FONT-WEIGHT: bold } .section_head .modDate { POSITION: absolute; FONT-STYLE: italic; COLOR: #900; FONT-SIZE: 90%; = TOP: 0px; RIGHT: 0px } .section_head { PADDING-RIGHT: 10em } .preloadholder { COLOR: maroon } .normalized * { FONT-FAMILY: Arial, Verdana, sans-serif !important; FONT-SIZE: 12px = !important } .prereqlist { LIST-STYLE-TYPE: none; LIST-STYLE-IMAGE: none } .prereqlist UL { LIST-STYLE-TYPE: none; LIST-STYLE-IMAGE: none } .prereqlist LI { LIST-STYLE-TYPE: none; LIST-STYLE-IMAGE: none } .prereqlist { MARGIN-LEFT: -3em } .prereqlist .joiner { COLOR: #333; FONT-WEIGHT: bold } .prereqlist UL { =09 } .preload_div FIELDSET { BORDER-BOTTOM: rgb(204,204,204) 1px solid; BORDER-LEFT: = rgb(204,204,204) 1px solid; BACKGROUND-COLOR: rgb(253,253,253); = BORDER-TOP: rgb(204,204,204) 1px solid; BORDER-RIGHT: rgb(204,204,204) = 1px solid } .preload_div LEGEND { COLOR: #333; FONT-WEIGHT: bold } #facebox * { FONT-SIZE: 13px !important } TABLE { MARGIN-LEFT: 1px } ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: text/css; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/css/dropshadow.css .wrap1 { DISPLAY: block } .wrap2 { DISPLAY: block } .wrap3 { DISPLAY: block } .img { BORDER-BOTTOM: #333333 1px solid; BORDER-LEFT: #999999 1px solid; = DISPLAY: block; BORDER-TOP: #999999 1px solid; BORDER-RIGHT: #666666 1px = solid } .wrap1 { BACKGROUND: url(../images/fx/dropshadow3/shadow.gif) no-repeat right = bottom; FLOAT: left } .wrap2 { BACKGROUND: url(../images/fx/dropshadow3/corner_bl.gif) no-repeat -12px = 100% } .wrap3 { PADDING-BOTTOM: 10px; PADDING-LEFT: 0px; PADDING-RIGHT: 10px; = BACKGROUND: url(../images/fx/dropshadow3/corner_tr.gif) no-repeat 100% = -12px; PADDING-TOP: 0px } ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: text/css; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/css/facebox.css #facebox .b { BACKGROUND: url(../images/b.png) } #facebox .tl { BACKGROUND: url(../images/tl.png) } #facebox .tr { BACKGROUND: url(../images/tr.png) } #facebox .bl { BACKGROUND: url(../images/bl.png) } #facebox .br { BACKGROUND: url(../images/br.png) } #facebox { Z-INDEX: 100; POSITION: absolute; TEXT-ALIGN: left; TOP: 0px; LEFT: 0px } #facebox .popup { POSITION: relative } #facebox TABLE { BORDER-COLLAPSE: collapse } #facebox TD { BORDER-BOTTOM: 0px; PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; PADDING-TOP: 0px } #facebox .body { PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; WIDTH: 370px; PADDING-RIGHT: = 10px; BACKGROUND: #fff; PADDING-TOP: 10px } #facebox .loading { TEXT-ALIGN: center } #facebox .image { TEXT-ALIGN: center } #facebox IMG { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; MARGIN: 0px; BORDER-TOP: 0px; = BORDER-RIGHT: 0px } #facebox .footer { TEXT-ALIGN: right; MARGIN-TOP: 10px; BORDER-TOP: #dddddd 1px solid; = PADDING-TOP: 5px } #facebox .tl { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 10px; PADDING-RIGHT: = 0px; HEIGHT: 10px; OVERFLOW: hidden; PADDING-TOP: 0px } #facebox .tr { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 10px; PADDING-RIGHT: = 0px; HEIGHT: 10px; OVERFLOW: hidden; PADDING-TOP: 0px } #facebox .bl { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 10px; PADDING-RIGHT: = 0px; HEIGHT: 10px; OVERFLOW: hidden; PADDING-TOP: 0px } #facebox .br { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; WIDTH: 10px; PADDING-RIGHT: = 0px; HEIGHT: 10px; OVERFLOW: hidden; PADDING-TOP: 0px } #facebox_overlay { POSITION: fixed; WIDTH: 100%; BACKGROUND: #990000; HEIGHT: 100%; TOP: = 0px; LEFT: 0px } .facebox_hide { Z-INDEX: -100 } .facebox_overlayBG { Z-INDEX: 99; BACKGROUND-COLOR: #000 } * HTML #facebox_overlay { POSITION: absolute } ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/js/jquery.js /*!=0A= * jQuery JavaScript Library v1.3.2=0A= * http://jquery.com/=0A= *=0A= * Copyright (c) 2009 John Resig=0A= * Dual licensed under the MIT and GPL licenses.=0A= * http://docs.jquery.com/License=0A= *=0A= * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)=0A= * Revision: 6246=0A= */=0A= (function(){=0A= =0A= var =0A= // Will speed up references to window, and allows munging its name.=0A= window =3D this,=0A= // Will speed up references to undefined, and allows munging its name.=0A= undefined,=0A= // Map over jQuery in case of overwrite=0A= _jQuery =3D window.jQuery,=0A= // Map over the $ in case of overwrite=0A= _$ =3D window.$,=0A= =0A= jQuery =3D window.jQuery =3D window.$ =3D function( selector, context ) = {=0A= // The jQuery object is actually just the init constructor 'enhanced'=0A= return new jQuery.fn.init( selector, context );=0A= },=0A= =0A= // A simple way to check for HTML strings or ID strings=0A= // (both of which we optimize for)=0A= quickExpr =3D /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,=0A= // Is it a simple selector=0A= isSimple =3D /^.[^:#\[\.,]*$/;=0A= =0A= jQuery.fn =3D jQuery.prototype =3D {=0A= init: function( selector, context ) {=0A= // Make sure that a selection was provided=0A= selector =3D selector || document;=0A= =0A= // Handle $(DOMElement)=0A= if ( selector.nodeType ) {=0A= this[0] =3D selector;=0A= this.length =3D 1;=0A= this.context =3D selector;=0A= return this;=0A= }=0A= // Handle HTML strings=0A= if ( typeof selector =3D=3D=3D "string" ) {=0A= // Are we dealing with HTML string or an ID?=0A= var match =3D quickExpr.exec( selector );=0A= =0A= // Verify a match, and that no context was specified for #id=0A= if ( match && (match[1] || !context) ) {=0A= =0A= // HANDLE: $(html) -> $(array)=0A= if ( match[1] )=0A= selector =3D jQuery.clean( [ match[1] ], context );=0A= =0A= // HANDLE: $("#id")=0A= else {=0A= var elem =3D document.getElementById( match[3] );=0A= =0A= // Handle the case where IE and Opera return items=0A= // by name instead of ID=0A= if ( elem && elem.id !=3D match[3] )=0A= return jQuery().find( selector );=0A= =0A= // Otherwise, we inject the element directly into the jQuery object=0A= var ret =3D jQuery( elem || [] );=0A= ret.context =3D document;=0A= ret.selector =3D selector;=0A= return ret;=0A= }=0A= =0A= // HANDLE: $(expr, [context])=0A= // (which is just equivalent to: $(content).find(expr)=0A= } else=0A= return jQuery( context ).find( selector );=0A= =0A= // HANDLE: $(function)=0A= // Shortcut for document ready=0A= } else if ( jQuery.isFunction( selector ) )=0A= return jQuery( document ).ready( selector );=0A= =0A= // Make sure that old selector state is passed along=0A= if ( selector.selector && selector.context ) {=0A= this.selector =3D selector.selector;=0A= this.context =3D selector.context;=0A= }=0A= =0A= return this.setArray(jQuery.isArray( selector ) ?=0A= selector :=0A= jQuery.makeArray(selector));=0A= },=0A= =0A= // Start with an empty selector=0A= selector: "",=0A= =0A= // The current version of jQuery being used=0A= jquery: "1.3.2",=0A= =0A= // The number of elements contained in the matched element set=0A= size: function() {=0A= return this.length;=0A= },=0A= =0A= // Get the Nth element in the matched element set OR=0A= // Get the whole matched element set as a clean array=0A= get: function( num ) {=0A= return num =3D=3D=3D undefined ?=0A= =0A= // Return a 'clean' array=0A= Array.prototype.slice.call( this ) :=0A= =0A= // Return just the object=0A= this[ num ];=0A= },=0A= =0A= // Take an array of elements and push it onto the stack=0A= // (returning the new matched element set)=0A= pushStack: function( elems, name, selector ) {=0A= // Build a new jQuery matched element set=0A= var ret =3D jQuery( elems );=0A= =0A= // Add the old object onto the stack (as a reference)=0A= ret.prevObject =3D this;=0A= =0A= ret.context =3D this.context;=0A= =0A= if ( name =3D=3D=3D "find" )=0A= ret.selector =3D this.selector + (this.selector ? " " : "") + = selector;=0A= else if ( name )=0A= ret.selector =3D this.selector + "." + name + "(" + selector + ")";=0A= =0A= // Return the newly-formed element set=0A= return ret;=0A= },=0A= =0A= // Force the current matched set of elements to become=0A= // the specified array of elements (destroying the stack in the process)=0A= // You should use pushStack() in order to do this, but maintain the = stack=0A= setArray: function( elems ) {=0A= // Resetting the length to 0, then using the native Array push=0A= // is a super-fast way to populate an object with array-like properties=0A= this.length =3D 0;=0A= Array.prototype.push.apply( this, elems );=0A= =0A= return this;=0A= },=0A= =0A= // Execute a callback for every element in the matched set.=0A= // (You can seed the arguments with an array of args, but this is=0A= // only used internally.)=0A= each: function( callback, args ) {=0A= return jQuery.each( this, callback, args );=0A= },=0A= =0A= // Determine the position of an element within=0A= // the matched set of elements=0A= index: function( elem ) {=0A= // Locate the position of the desired element=0A= return jQuery.inArray(=0A= // If it receives a jQuery object, the first element is used=0A= elem && elem.jquery ? elem[0] : elem=0A= , this );=0A= },=0A= =0A= attr: function( name, value, type ) {=0A= var options =3D name;=0A= =0A= // Look for the case where we're accessing a style value=0A= if ( typeof name =3D=3D=3D "string" )=0A= if ( value =3D=3D=3D undefined )=0A= return this[0] && jQuery[ type || "attr" ]( this[0], name );=0A= =0A= else {=0A= options =3D {};=0A= options[ name ] =3D value;=0A= }=0A= =0A= // Check to see if we're setting style values=0A= return this.each(function(i){=0A= // Set all the styles=0A= for ( name in options )=0A= jQuery.attr(=0A= type ?=0A= this.style :=0A= this,=0A= name, jQuery.prop( this, options[ name ], type, i, name )=0A= );=0A= });=0A= },=0A= =0A= css: function( key, value ) {=0A= // ignore negative width and height values=0A= if ( (key =3D=3D 'width' || key =3D=3D 'height') && parseFloat(value) = < 0 )=0A= value =3D undefined;=0A= return this.attr( key, value, "curCSS" );=0A= },=0A= =0A= text: function( text ) {=0A= if ( typeof text !=3D=3D "object" && text !=3D null )=0A= return this.empty().append( (this[0] && this[0].ownerDocument || = document).createTextNode( text ) );=0A= =0A= var ret =3D "";=0A= =0A= jQuery.each( text || this, function(){=0A= jQuery.each( this.childNodes, function(){=0A= if ( this.nodeType !=3D 8 )=0A= ret +=3D this.nodeType !=3D 1 ?=0A= this.nodeValue :=0A= jQuery.fn.text( [ this ] );=0A= });=0A= });=0A= =0A= return ret;=0A= },=0A= =0A= wrapAll: function( html ) {=0A= if ( this[0] ) {=0A= // The elements to wrap the target around=0A= var wrap =3D jQuery( html, this[0].ownerDocument ).clone();=0A= =0A= if ( this[0].parentNode )=0A= wrap.insertBefore( this[0] );=0A= =0A= wrap.map(function(){=0A= var elem =3D this;=0A= =0A= while ( elem.firstChild )=0A= elem =3D elem.firstChild;=0A= =0A= return elem;=0A= }).append(this);=0A= }=0A= =0A= return this;=0A= },=0A= =0A= wrapInner: function( html ) {=0A= return this.each(function(){=0A= jQuery( this ).contents().wrapAll( html );=0A= });=0A= },=0A= =0A= wrap: function( html ) {=0A= return this.each(function(){=0A= jQuery( this ).wrapAll( html );=0A= });=0A= },=0A= =0A= append: function() {=0A= return this.domManip(arguments, true, function(elem){=0A= if (this.nodeType =3D=3D 1)=0A= this.appendChild( elem );=0A= });=0A= },=0A= =0A= prepend: function() {=0A= return this.domManip(arguments, true, function(elem){=0A= if (this.nodeType =3D=3D 1)=0A= this.insertBefore( elem, this.firstChild );=0A= });=0A= },=0A= =0A= before: function() {=0A= return this.domManip(arguments, false, function(elem){=0A= this.parentNode.insertBefore( elem, this );=0A= });=0A= },=0A= =0A= after: function() {=0A= return this.domManip(arguments, false, function(elem){=0A= this.parentNode.insertBefore( elem, this.nextSibling );=0A= });=0A= },=0A= =0A= end: function() {=0A= return this.prevObject || jQuery( [] );=0A= },=0A= =0A= // For internal use only.=0A= // Behaves like an Array's method, not like a jQuery method.=0A= push: [].push,=0A= sort: [].sort,=0A= splice: [].splice,=0A= =0A= find: function( selector ) {=0A= if ( this.length =3D=3D=3D 1 ) {=0A= var ret =3D this.pushStack( [], "find", selector );=0A= ret.length =3D 0;=0A= jQuery.find( selector, this[0], ret );=0A= return ret;=0A= } else {=0A= return this.pushStack( jQuery.unique(jQuery.map(this, function(elem){=0A= return jQuery.find( selector, elem );=0A= })), "find", selector );=0A= }=0A= },=0A= =0A= clone: function( events ) {=0A= // Do the clone=0A= var ret =3D this.map(function(){=0A= if ( !jQuery.support.noCloneEvent && !jQuery.isXMLDoc(this) ) {=0A= // IE copies events bound via attachEvent when=0A= // using cloneNode. Calling detachEvent on the=0A= // clone will also remove the events from the orignal=0A= // In order to get around this, we use innerHTML.=0A= // Unfortunately, this means some modifications to=0A= // attributes in IE that are actually only stored=0A= // as properties will not be copied (such as the=0A= // the name attribute on an input).=0A= var html =3D this.outerHTML;=0A= if ( !html ) {=0A= var div =3D this.ownerDocument.createElement("div");=0A= div.appendChild( this.cloneNode(true) );=0A= html =3D div.innerHTML;=0A= }=0A= =0A= return jQuery.clean([html.replace(/ jQuery\d+=3D"(?:\d+|null)"/g, = "").replace(/^\s*/, "")])[0];=0A= } else=0A= return this.cloneNode(true);=0A= });=0A= =0A= // Copy the events from the original to the clone=0A= if ( events =3D=3D=3D true ) {=0A= var orig =3D this.find("*").andSelf(), i =3D 0;=0A= =0A= ret.find("*").andSelf().each(function(){=0A= if ( this.nodeName !=3D=3D orig[i].nodeName )=0A= return;=0A= =0A= var events =3D jQuery.data( orig[i], "events" );=0A= =0A= for ( var type in events ) {=0A= for ( var handler in events[ type ] ) {=0A= jQuery.event.add( this, type, events[ type ][ handler ], events[ = type ][ handler ].data );=0A= }=0A= }=0A= =0A= i++;=0A= });=0A= }=0A= =0A= // Return the cloned set=0A= return ret;=0A= },=0A= =0A= filter: function( selector ) {=0A= return this.pushStack(=0A= jQuery.isFunction( selector ) &&=0A= jQuery.grep(this, function(elem, i){=0A= return selector.call( elem, i );=0A= }) ||=0A= =0A= jQuery.multiFilter( selector, jQuery.grep(this, function(elem){=0A= return elem.nodeType =3D=3D=3D 1;=0A= }) ), "filter", selector );=0A= },=0A= =0A= closest: function( selector ) {=0A= var pos =3D jQuery.expr.match.POS.test( selector ) ? jQuery(selector) = : null,=0A= closer =3D 0;=0A= =0A= return this.map(function(){=0A= var cur =3D this;=0A= while ( cur && cur.ownerDocument ) {=0A= if ( pos ? pos.index(cur) > -1 : jQuery(cur).is(selector) ) {=0A= jQuery.data(cur, "closest", closer);=0A= return cur;=0A= }=0A= cur =3D cur.parentNode;=0A= closer++;=0A= }=0A= });=0A= },=0A= =0A= not: function( selector ) {=0A= if ( typeof selector =3D=3D=3D "string" )=0A= // test special case where just one selector is passed in=0A= if ( isSimple.test( selector ) )=0A= return this.pushStack( jQuery.multiFilter( selector, this, true ), = "not", selector );=0A= else=0A= selector =3D jQuery.multiFilter( selector, this );=0A= =0A= var isArrayLike =3D selector.length && selector[selector.length - 1] = !=3D=3D undefined && !selector.nodeType;=0A= return this.filter(function() {=0A= return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this !=3D = selector;=0A= });=0A= },=0A= =0A= add: function( selector ) {=0A= return this.pushStack( jQuery.unique( jQuery.merge(=0A= this.get(),=0A= typeof selector =3D=3D=3D "string" ?=0A= jQuery( selector ) :=0A= jQuery.makeArray( selector )=0A= )));=0A= },=0A= =0A= is: function( selector ) {=0A= return !!selector && jQuery.multiFilter( selector, this ).length > 0;=0A= },=0A= =0A= hasClass: function( selector ) {=0A= return !!selector && this.is( "." + selector );=0A= },=0A= =0A= val: function( value ) {=0A= if ( value =3D=3D=3D undefined ) { =0A= var elem =3D this[0];=0A= =0A= if ( elem ) {=0A= if( jQuery.nodeName( elem, 'option' ) )=0A= return (elem.attributes.value || {}).specified ? elem.value : = elem.text;=0A= =0A= // We need to handle select boxes special=0A= if ( jQuery.nodeName( elem, "select" ) ) {=0A= var index =3D elem.selectedIndex,=0A= values =3D [],=0A= options =3D elem.options,=0A= one =3D elem.type =3D=3D "select-one";=0A= =0A= // Nothing was selected=0A= if ( index < 0 )=0A= return null;=0A= =0A= // Loop through all the selected options=0A= for ( var i =3D one ? index : 0, max =3D one ? index + 1 : = options.length; i < max; i++ ) {=0A= var option =3D options[ i ];=0A= =0A= if ( option.selected ) {=0A= // Get the specifc value for the option=0A= value =3D jQuery(option).val();=0A= =0A= // We don't need an array for one selects=0A= if ( one )=0A= return value;=0A= =0A= // Multi-Selects return an array=0A= values.push( value );=0A= }=0A= }=0A= =0A= return values; =0A= }=0A= =0A= // Everything else, we just grab the value=0A= return (elem.value || "").replace(/\r/g, "");=0A= =0A= }=0A= =0A= return undefined;=0A= }=0A= =0A= if ( typeof value =3D=3D=3D "number" )=0A= value +=3D '';=0A= =0A= return this.each(function(){=0A= if ( this.nodeType !=3D 1 )=0A= return;=0A= =0A= if ( jQuery.isArray(value) && /radio|checkbox/.test( this.type ) )=0A= this.checked =3D (jQuery.inArray(this.value, value) >=3D 0 ||=0A= jQuery.inArray(this.name, value) >=3D 0);=0A= =0A= else if ( jQuery.nodeName( this, "select" ) ) {=0A= var values =3D jQuery.makeArray(value);=0A= =0A= jQuery( "option", this ).each(function(){=0A= this.selected =3D (jQuery.inArray( this.value, values ) >=3D 0 ||=0A= jQuery.inArray( this.text, values ) >=3D 0);=0A= });=0A= =0A= if ( !values.length )=0A= this.selectedIndex =3D -1;=0A= =0A= } else=0A= this.value =3D value;=0A= });=0A= },=0A= =0A= html: function( value ) {=0A= return value =3D=3D=3D undefined ?=0A= (this[0] ?=0A= this[0].innerHTML.replace(/ jQuery\d+=3D"(?:\d+|null)"/g, "") :=0A= null) :=0A= this.empty().append( value );=0A= },=0A= =0A= replaceWith: function( value ) {=0A= return this.after( value ).remove();=0A= },=0A= =0A= eq: function( i ) {=0A= return this.slice( i, +i + 1 );=0A= },=0A= =0A= slice: function() {=0A= return this.pushStack( Array.prototype.slice.apply( this, arguments ),=0A= "slice", Array.prototype.slice.call(arguments).join(",") );=0A= },=0A= =0A= map: function( callback ) {=0A= return this.pushStack( jQuery.map(this, function(elem, i){=0A= return callback.call( elem, i, elem );=0A= }));=0A= },=0A= =0A= andSelf: function() {=0A= return this.add( this.prevObject );=0A= },=0A= =0A= domManip: function( args, table, callback ) {=0A= if ( this[0] ) {=0A= var fragment =3D (this[0].ownerDocument || = this[0]).createDocumentFragment(),=0A= scripts =3D jQuery.clean( args, (this[0].ownerDocument || this[0]), = fragment ),=0A= first =3D fragment.firstChild;=0A= =0A= if ( first )=0A= for ( var i =3D 0, l =3D this.length; i < l; i++ )=0A= callback.call( root(this[i], first), this.length > 1 || i > 0 ?=0A= fragment.cloneNode(true) : fragment );=0A= =0A= if ( scripts )=0A= jQuery.each( scripts, evalScript );=0A= }=0A= =0A= return this;=0A= =0A= function root( elem, cur ) {=0A= return table && jQuery.nodeName(elem, "table") && = jQuery.nodeName(cur, "tr") ?=0A= (elem.getElementsByTagName("tbody")[0] ||=0A= elem.appendChild(elem.ownerDocument.createElement("tbody"))) :=0A= elem;=0A= }=0A= }=0A= };=0A= =0A= // Give the init function the jQuery prototype for later instantiation=0A= jQuery.fn.init.prototype =3D jQuery.fn;=0A= =0A= function evalScript( i, elem ) {=0A= if ( elem.src )=0A= jQuery.ajax({=0A= url: elem.src,=0A= async: false,=0A= dataType: "script"=0A= });=0A= =0A= else=0A= jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || = "" );=0A= =0A= if ( elem.parentNode )=0A= elem.parentNode.removeChild( elem );=0A= }=0A= =0A= function now(){=0A= return +new Date;=0A= }=0A= =0A= jQuery.extend =3D jQuery.fn.extend =3D function() {=0A= // copy reference to target object=0A= var target =3D arguments[0] || {}, i =3D 1, length =3D = arguments.length, deep =3D false, options;=0A= =0A= // Handle a deep copy situation=0A= if ( typeof target =3D=3D=3D "boolean" ) {=0A= deep =3D target;=0A= target =3D arguments[1] || {};=0A= // skip the boolean and the target=0A= i =3D 2;=0A= }=0A= =0A= // Handle case when target is a string or something (possible in deep = copy)=0A= if ( typeof target !=3D=3D "object" && !jQuery.isFunction(target) )=0A= target =3D {};=0A= =0A= // extend jQuery itself if only one argument is passed=0A= if ( length =3D=3D i ) {=0A= target =3D this;=0A= --i;=0A= }=0A= =0A= for ( ; i < length; i++ )=0A= // Only deal with non-null/undefined values=0A= if ( (options =3D arguments[ i ]) !=3D null )=0A= // Extend the base object=0A= for ( var name in options ) {=0A= var src =3D target[ name ], copy =3D options[ name ];=0A= =0A= // Prevent never-ending loop=0A= if ( target =3D=3D=3D copy )=0A= continue;=0A= =0A= // Recurse if we're merging object values=0A= if ( deep && copy && typeof copy =3D=3D=3D "object" && = !copy.nodeType )=0A= target[ name ] =3D jQuery.extend( deep, =0A= // Never move original objects, clone them=0A= src || ( copy.length !=3D null ? [ ] : { } )=0A= , copy );=0A= =0A= // Don't bring in undefined values=0A= else if ( copy !=3D=3D undefined )=0A= target[ name ] =3D copy;=0A= =0A= }=0A= =0A= // Return the modified object=0A= return target;=0A= };=0A= =0A= // exclude the following css properties to add px=0A= var exclude =3D /z-?index|font-?weight|opacity|zoom|line-?height/i,=0A= // cache defaultView=0A= defaultView =3D document.defaultView || {},=0A= toString =3D Object.prototype.toString;=0A= =0A= jQuery.extend({=0A= noConflict: function( deep ) {=0A= window.$ =3D _$;=0A= =0A= if ( deep )=0A= window.jQuery =3D _jQuery;=0A= =0A= return jQuery;=0A= },=0A= =0A= // See test/unit/core.js for details concerning isFunction.=0A= // Since version 1.3, DOM methods and functions like alert=0A= // aren't supported. They return false on IE (#2968).=0A= isFunction: function( obj ) {=0A= return toString.call(obj) =3D=3D=3D "[object Function]";=0A= },=0A= =0A= isArray: function( obj ) {=0A= return toString.call(obj) =3D=3D=3D "[object Array]";=0A= },=0A= =0A= // check if an element is in a (or is an) XML document=0A= isXMLDoc: function( elem ) {=0A= return elem.nodeType =3D=3D=3D 9 && elem.documentElement.nodeName = !=3D=3D "HTML" ||=0A= !!elem.ownerDocument && jQuery.isXMLDoc( elem.ownerDocument );=0A= },=0A= =0A= // Evalulates a script in a global context=0A= globalEval: function( data ) {=0A= if ( data && /\S/.test(data) ) {=0A= // Inspired by code by Andrea Giammarchi=0A= // = http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom= .html=0A= var head =3D document.getElementsByTagName("head")[0] || = document.documentElement,=0A= script =3D document.createElement("script");=0A= =0A= script.type =3D "text/javascript";=0A= if ( jQuery.support.scriptEval )=0A= script.appendChild( document.createTextNode( data ) );=0A= else=0A= script.text =3D data;=0A= =0A= // Use insertBefore instead of appendChild to circumvent an IE6 bug.=0A= // This arises when a base node is used (#2709).=0A= head.insertBefore( script, head.firstChild );=0A= head.removeChild( script );=0A= }=0A= },=0A= =0A= nodeName: function( elem, name ) {=0A= return elem.nodeName && elem.nodeName.toUpperCase() =3D=3D = name.toUpperCase();=0A= },=0A= =0A= // args is for internal usage only=0A= each: function( object, callback, args ) {=0A= var name, i =3D 0, length =3D object.length;=0A= =0A= if ( args ) {=0A= if ( length =3D=3D=3D undefined ) {=0A= for ( name in object )=0A= if ( callback.apply( object[ name ], args ) =3D=3D=3D false )=0A= break;=0A= } else=0A= for ( ; i < length; )=0A= if ( callback.apply( object[ i++ ], args ) =3D=3D=3D false )=0A= break;=0A= =0A= // A special, fast, case for the most common use of each=0A= } else {=0A= if ( length =3D=3D=3D undefined ) {=0A= for ( name in object )=0A= if ( callback.call( object[ name ], name, object[ name ] ) = =3D=3D=3D false )=0A= break;=0A= } else=0A= for ( var value =3D object[0];=0A= i < length && callback.call( value, i, value ) !=3D=3D false; value = =3D object[++i] ){}=0A= }=0A= =0A= return object;=0A= },=0A= =0A= prop: function( elem, value, type, i, name ) {=0A= // Handle executable functions=0A= if ( jQuery.isFunction( value ) )=0A= value =3D value.call( elem, i );=0A= =0A= // Handle passing in a number to a CSS property=0A= return typeof value =3D=3D=3D "number" && type =3D=3D "curCSS" && = !exclude.test( name ) ?=0A= value + "px" :=0A= value;=0A= },=0A= =0A= className: {=0A= // internal only, use addClass("class")=0A= add: function( elem, classNames ) {=0A= jQuery.each((classNames || "").split(/\s+/), function(i, className){=0A= if ( elem.nodeType =3D=3D 1 && !jQuery.className.has( = elem.className, className ) )=0A= elem.className +=3D (elem.className ? " " : "") + className;=0A= });=0A= },=0A= =0A= // internal only, use removeClass("class")=0A= remove: function( elem, classNames ) {=0A= if (elem.nodeType =3D=3D 1)=0A= elem.className =3D classNames !=3D=3D undefined ?=0A= jQuery.grep(elem.className.split(/\s+/), function(className){=0A= return !jQuery.className.has( classNames, className );=0A= }).join(" ") :=0A= "";=0A= },=0A= =0A= // internal only, use hasClass("class")=0A= has: function( elem, className ) {=0A= return elem && jQuery.inArray( className, (elem.className || = elem).toString().split(/\s+/) ) > -1;=0A= }=0A= },=0A= =0A= // A method for quickly swapping in/out CSS properties to get correct = calculations=0A= swap: function( elem, options, callback ) {=0A= var old =3D {};=0A= // Remember the old values, and insert the new ones=0A= for ( var name in options ) {=0A= old[ name ] =3D elem.style[ name ];=0A= elem.style[ name ] =3D options[ name ];=0A= }=0A= =0A= callback.call( elem );=0A= =0A= // Revert the old values=0A= for ( var name in options )=0A= elem.style[ name ] =3D old[ name ];=0A= },=0A= =0A= css: function( elem, name, force, extra ) {=0A= if ( name =3D=3D "width" || name =3D=3D "height" ) {=0A= var val, props =3D { position: "absolute", visibility: "hidden", = display:"block" }, which =3D name =3D=3D "width" ? [ "Left", "Right" ] : = [ "Top", "Bottom" ];=0A= =0A= function getWH() {=0A= val =3D name =3D=3D "width" ? elem.offsetWidth : elem.offsetHeight;=0A= =0A= if ( extra =3D=3D=3D "border" )=0A= return;=0A= =0A= jQuery.each( which, function() {=0A= if ( !extra )=0A= val -=3D parseFloat(jQuery.curCSS( elem, "padding" + this, true)) = || 0;=0A= if ( extra =3D=3D=3D "margin" )=0A= val +=3D parseFloat(jQuery.curCSS( elem, "margin" + this, true)) = || 0;=0A= else=0A= val -=3D parseFloat(jQuery.curCSS( elem, "border" + this + = "Width", true)) || 0;=0A= });=0A= }=0A= =0A= if ( elem.offsetWidth !=3D=3D 0 )=0A= getWH();=0A= else=0A= jQuery.swap( elem, props, getWH );=0A= =0A= return Math.max(0, Math.round(val));=0A= }=0A= =0A= return jQuery.curCSS( elem, name, force );=0A= },=0A= =0A= curCSS: function( elem, name, force ) {=0A= var ret, style =3D elem.style;=0A= =0A= // We need to handle opacity special in IE=0A= if ( name =3D=3D "opacity" && !jQuery.support.opacity ) {=0A= ret =3D jQuery.attr( style, "opacity" );=0A= =0A= return ret =3D=3D "" ?=0A= "1" :=0A= ret;=0A= }=0A= =0A= // Make sure we're using the right name for getting the float value=0A= if ( name.match( /float/i ) )=0A= name =3D styleFloat;=0A= =0A= if ( !force && style && style[ name ] )=0A= ret =3D style[ name ];=0A= =0A= else if ( defaultView.getComputedStyle ) {=0A= =0A= // Only "float" is needed here=0A= if ( name.match( /float/i ) )=0A= name =3D "float";=0A= =0A= name =3D name.replace( /([A-Z])/g, "-$1" ).toLowerCase();=0A= =0A= var computedStyle =3D defaultView.getComputedStyle( elem, null );=0A= =0A= if ( computedStyle )=0A= ret =3D computedStyle.getPropertyValue( name );=0A= =0A= // We should always get a number back from opacity=0A= if ( name =3D=3D "opacity" && ret =3D=3D "" )=0A= ret =3D "1";=0A= =0A= } else if ( elem.currentStyle ) {=0A= var camelCase =3D name.replace(/\-(\w)/g, function(all, letter){=0A= return letter.toUpperCase();=0A= });=0A= =0A= ret =3D elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];=0A= =0A= // From the awesome hack by Dean Edwards=0A= // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291=0A= =0A= // If we're not dealing with a regular pixel number=0A= // but a number that has a weird ending, we need to convert it to = pixels=0A= if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {=0A= // Remember the original values=0A= var left =3D style.left, rsLeft =3D elem.runtimeStyle.left;=0A= =0A= // Put in the new values to get a computed value out=0A= elem.runtimeStyle.left =3D elem.currentStyle.left;=0A= style.left =3D ret || 0;=0A= ret =3D style.pixelLeft + "px";=0A= =0A= // Revert the changed values=0A= style.left =3D left;=0A= elem.runtimeStyle.left =3D rsLeft;=0A= }=0A= }=0A= =0A= return ret;=0A= },=0A= =0A= clean: function( elems, context, fragment ) {=0A= context =3D context || document;=0A= =0A= // !context.createElement fails in IE with an error but returns typeof = 'object'=0A= if ( typeof context.createElement =3D=3D=3D "undefined" )=0A= context =3D context.ownerDocument || context[0] && = context[0].ownerDocument || document;=0A= =0A= // If a single string is passed in and it's a single tag=0A= // just do a createElement and skip the rest=0A= if ( !fragment && elems.length =3D=3D=3D 1 && typeof elems[0] = =3D=3D=3D "string" ) {=0A= var match =3D /^<(\w+)\s*\/?>$/.exec(elems[0]);=0A= if ( match )=0A= return [ context.createElement( match[1] ) ];=0A= }=0A= =0A= var ret =3D [], scripts =3D [], div =3D context.createElement("div");=0A= =0A= jQuery.each(elems, function(i, elem){=0A= if ( typeof elem =3D=3D=3D "number" )=0A= elem +=3D '';=0A= =0A= if ( !elem )=0A= return;=0A= =0A= // Convert html string into DOM nodes=0A= if ( typeof elem =3D=3D=3D "string" ) {=0A= // Fix "XHTML"-style tags in all browsers=0A= elem =3D elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, = tag){=0A= return = tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?=0A= all :=0A= front + ">";=0A= });=0A= =0A= // Trim whitespace, otherwise indexOf won't work as expected=0A= var tags =3D elem.replace(/^\s+/, "").substring(0, 10).toLowerCase();=0A= =0A= var wrap =3D=0A= // option or optgroup=0A= !tags.indexOf("", "" ] ||=0A= =0A= !tags.indexOf("", "" ] ||=0A= =0A= tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&=0A= [ 1, "", "
" ] ||=0A= =0A= !tags.indexOf("", "" ] ||=0A= =0A= // matched above=0A= (!tags.indexOf("", "" ] ||=0A= =0A= !tags.indexOf("", "" ] ||=0A= =0A= // IE can't serialize and ")');}return = i&&new g(i.contentWindow.document);},copyAttributes:function(i,j){var = p=3Dthis;var k=3Dp.$.attributes;j=3Dj||{};for(var = l=3D0;l0&&j)j=3Dj.childNodes[i.shift()];return j?new = d.node(j):null;},getChildCount:function(){return = this.$.childNodes.length;},disableContextMenu:function(){this.on('context= menu',function(i){if(!i.data.getTarget().hasClass('cke_enable_context_men= u'))i.data.preventDefault();});}});a.command=3Dfunction(i,j){this.uiItems= =3D[];this.exec=3Dfunction(k){if(this.state=3D=3D0)return = false;if(this.editorFocus)i.focus();return = j.exec.call(this,i,k)!=3D=3Dfalse;};e.extend(this,j,{modes:{wysiwyg:1},ed= itorFocus:true,state:2});a.event.call(this);};a.command.prototype=3D{enab= le:function(){var = i=3Dthis;if(i.state=3D=3D0)i.setState(!i.preserveState||typeof = i.previousState=3D=3D'undefined'?2:i.previousState);},disable:function(){= this.setState(0);},setState:function(i){var = j=3Dthis;if(j.state=3D=3Di)return = false;j.previousState=3Dj.state;j.state=3Di;j.fire('state');return = true;},toggleState:function(){var = i=3Dthis;if(i.state=3D=3D2)i.setState(1);else = if(i.state=3D=3D1)i.setState(2);}};a.event.implementOn(a.command.prototyp= e,true); a.ENTER_P=3D1;a.ENTER_BR=3D2;a.ENTER_DIV=3D3;a.config=3D{customConfig:a.g= etUrl('config.js'),autoUpdateElement:true,baseHref:'',contentsCss:a.baseP= ath+'contents.css',contentsLangDirection:'ltr',language:'',defaultLanguag= e:'en',enterMode:1,shiftEnterMode:2,corePlugins:'',docType:'',fullPage:fals= e,height:200,plugins:'about,basicstyles,blockquote,button,clipboard,color= button,colordialog,contextmenu,elementspath,enterkey,entities,filebrowser= ,find,flash,font,format,forms,horizontalrule,htmldataprocessor,image,inde= nt,justify,keystrokes,link,list,maximize,newpage,pagebreak,pastefromword,= pastetext,popup,preview,print,removeformat,resize,save,scayt,smiley,showb= locks,sourcearea,stylescombo,table,tabletools,specialchar,tab,templates,t= oolbar,undo,wysiwygarea,wsc',extraPlugins:'',removePlugins:'',protectedSo= urce:[],tabIndex:0,theme:'default',skin:'kama',width:'',baseFloatZIndex:1= 0000};var = i=3Da.config;a.focusManager=3Dfunction(j){if(j.focusManager)return = j.focusManager;this.hasFocus=3Dfalse;this._=3D{editor:j};return = this;};a.focusManager.prototype=3D{focus:function(){var = k=3Dthis;if(k._.timer)clearTimeout(k._.timer);if(!k.hasFocus){if(a.curren= tInstance)a.currentInstance.focusManager.forceBlur();var = j=3Dk._.editor;j.container.getFirst().addClass('cke_focus');k.hasFocus=3D= true;j.fire('focus');}},blur:function(){var = j=3Dthis;if(j._.timer)clearTimeout(j._.timer);j._.timer=3DsetTimeout(func= tion(){delete = j._.timer;j.forceBlur();},100);},forceBlur:function(){if(this.hasFocus){v= ar = j=3Dthis._.editor;j.container.getFirst().removeClass('cke_focus');this.ha= sFocus=3Dfalse;j.fire('blur');}}};(function(){var = j=3D{};a.lang=3D{languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,da:1,de:1,= el:1,'en-au':1,'en-ca':1,'en-uk':1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:= 1,'fr-ca':1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,km:1,ko:1,l= t:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,'pt-br':1,pt:1,ro:1,ru:1,sk:1,sl:1= ,'sr-latn':1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,'zh-cn':1,zh:1},load:function(= k,l,m){if(!k||!a.lang.languages[k])k=3Dthis.detect(l,k);if(!this[k])a.scr= iptLoader.load(a.getUrl('lang/'+k+'.js'),function(){m(k,this[k]);},this);= else m(k,this[k]);},detect:function(k,l){var = m=3Dthis.languages;l=3Dl||navigator.userLanguage||navigator.language;var = n=3Dl.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),o=3Dn[1],p=3Dn[2];if(= m[o+'-'+p])o=3Do+'-'+p;else = if(!m[o])o=3Dnull;a.lang.detect=3Do?function(){return = o;}:function(q){return q;};return o||k;}}; })();a.scriptLoader=3D(function(){var = j=3D{},k=3D{};return{load:function(l,m,n,o){var p=3Dtypeof = l=3D=3D'string';if(p)l=3D[l];if(!n)n=3Da;var = q=3Dl.length,r=3D[],s=3D[],t=3Dfunction(y){if(m)if(p)m.call(n,y);else = m.call(n,r,s);};if(q=3D=3D=3D0){t(true);return;}var = u=3Dfunction(y,z){(z?r:s).push(y);if(--q<=3D0)t(z);},v=3Dfunction(y,z){j[= y]=3D1;var A=3Dk[y];delete k[y];for(var = B=3D0;B1)return;var A=3Dnew = h('script');A.setAttributes({type:'text/javascript',src:y});if(m)if(c)A.$= .onreadystatechange=3Dfunction(){if(A.$.readyState=3D=3D'loaded'||A.$.rea= dyState=3D=3D'complete'){A.$.onreadystatechange=3Dnull;v(y,true);}};else{= A.$.onload=3Dfunction(){setTimeout(function(){v(y,true);},0);};A.$.onerro= r=3Dfunction(){v(y,false);};}A.appendTo(a.document.getHead());};for(var = x=3D0;x0){s(t);a.imageCacher.load(t,function(){l[o]= =3D1;n(o,p,q);});return;}l[o]=3D1;}p=3Dr[p];var = u=3D!p||!!p._isLoaded;if(u)q&&q();else{var = v=3Dp._pending||(p._pending=3D[]);v.push(q);if(v.length>1)return;var = w=3D!p.css||!p.css.length,x=3D!p.js||!p.js.length,y=3Dfunction(){if(w&&x)= {p._isLoaded=3D1;for(var = A=3D0;A=3D0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'l= ang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=3Dnull;}}F.push(L);E.pu= sh(I);}a.scriptLoader.load(G,function(){var = M=3D['beforeInit','init','afterInit'];for(var = N=3D0;N]+)>)|(?:!--([\\S|\\s]*?)-->)|(?:([^\\s>]+)\\s*((?:= (?:[^\"'>]+)|(?:\"[^\"]*\")|(?:'[^']*'))*)\\/?>))",'g')};};(function(){va= r = l=3D/([\w\-:.]+)(?:(?:\s*=3D\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))= |(?=3D\s|$))/g,m=3D{checked:1,compact:1,declare:1,defer:1,disabled:1,isma= p:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected= :1};a.htmlParser.prototype=3D{onTagOpen:function(){},onTagClose:function(= ){},onText:function(){},onCDATA:function(){},onComment:function(){},parse= :function(n){var A=3Dthis;var = o,p,q=3D0,r;while(o=3DA._.htmlPartsRegex.exec(n)){var s=3Do.index; if(s>q){var t=3Dn.substring(q,s);if(r)r.push(t);else = A.onText(t);}q=3DA._.htmlPartsRegex.lastIndex;if(p=3Do[1]){p=3Dp.toLowerC= ase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=3Dnull;}if(!r){A.onTagCl= ose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=3Do[3]){p=3Dp.toLower= Case();var = u=3D{},v,w=3Do[4],x=3D!!(w&&w.charAt(w.length-1)=3D=3D'/');if(w)while(v=3D= l.exec(w)){var = y=3Dv[1].toLowerCase(),z=3Dv[2]||v[3]||v[4]||'';if(!z&&m[y])u[y]=3Dy;else= = u[y]=3Dz;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=3D[];continue;}if(p=3Do= [2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})= ();a.htmlParser.comment=3Dfunction(l){this.value=3Dl;this._=3D{isBlockLik= e:false};};a.htmlParser.comment.prototype=3D{type:8,writeHtml:function(l,= m){var n=3Dthis.value;if(m){if(!(n=3Dm.onComment(n)))return;if(typeof = n!=3D'string'){n.writeHtml(l,m);return;}}l.comment(n);}};(function(){var = l=3D/[\t\r\n = ]{2,}|[\t\r\n]/g;a.htmlParser.text=3Dfunction(m){this.value=3Dm;this._=3D= {isBlockLike:false};};a.htmlParser.text.prototype=3D{type:3,writeHtml:fun= ction(m,n){var = o=3Dthis.value;if(n&&!(o=3Dn.onText(o,this)))return;m.text(o);}};})();(fu= nction(){a.htmlParser.cdata=3Dfunction(l){this.value=3Dl;};a.htmlParser.c= data.prototype=3D{type:3,writeHtml:function(l){l.write(this.value);}};})(= );a.htmlParser.fragment=3Dfunction(){this.children=3D[];this.parent=3Dnul= l;this._=3D{isBlockLike:true,hasInlineStarted:false};};(function(){var = l=3D{colgroup:1,dd:1,dt:1,li:1,option:1,p:1,td:1,tfoot:1,th:1,thead:1,tr:= 1},m=3De.extend({table:1,ul:1,ol:1,dl:1},f.table,f.ul,f.ol,f.dl),n=3Df.$l= ist,o=3Df.$listItem;a.htmlParser.fragment.fromHtml=3Dfunction(p,q){var = r=3Dnew a.htmlParser(),s=3D[],t=3Dnew = a.htmlParser.fragment(),u=3D[],v=3Dt,w=3Dfalse,x;function = y(C){if(u.length>0)for(var D=3D0;D=3D0;D--){if(C=3D=3Du[D].name){u.splice(D,1);return;}}va= r = E=3D[],F=3Dv;while(F.type&&F.name!=3DC){if(!F._.isBlockLike)u.unshift(F);= E.push(F);F=3DF.parent;}if(F.type){for(D=3D0;Dn?1:0;};a.htmlParser.element.prototype=3D{type:1,add:a.htmlParse= r.fragment.prototype.add,clone:function(){return new = a.htmlParser.element(this.name,this.attributes);},writeHtml:function(m,n)= {var = o=3Dthis.attributes;if(o._cke_replacedata){m.write(o._cke_replacedata);re= turn;}var = p=3Dthis,q=3Dp.name,r,s;if(n){for(;;){if(!(q=3Dn.onElementName(q)))return= ;p.name=3Dq;if(!(p=3Dn.onElement(p)))return;if(p.name=3D=3Dq)break;q=3Dp.= name;if(!q){a.htmlParser.fragment.prototype.writeHtml.apply(p,arguments);= return;}}o=3Dp.attributes;}m.openTag(q,o);if(m.sortAttributes){var = t=3D[]; for(r in = o){s=3Do[r];if(n&&(!(r=3Dn.onAttributeName(r))||(s=3Dn.onAttribute(p,r,s)= )=3D=3D=3Dfalse))continue;t.push([r,s]);}t.sort(l);for(var = u=3D0,v=3Dt.length;u=3D0;u--){var = x=3Dr[u];x.pri=3Ds;q.splice(t,0,x);}}};function n(q,r,s){if(r)for(var t = in r){var u=3Dq[t];q[t]=3Do(u,r[t],s);if(!u)q.$length++;}};function = o(q,r,s){if(r){r.pri=3Ds;if(q){if(!q.splice){if(q.pri>s)q=3D[r,q];else = q=3D[q,r];q.filter=3Dp;}else m(q,r,s);return q;}else{r.filter=3Dr;return = r;}}};function p(q){var r=3Dtypeof q=3D=3D'object';for(var = s=3D0;s');else = this._.output.push('>');},attribute:function(l,m){this._.output.push(' = ',l,'=3D"',m,'"'); },closeTag:function(l){this._.output.push('');},text:function(l){= this._.output.push(l);},comment:function(l){this._.output.push('');},write:function(l){this._.output.push(l);},reset:function(){this._= .output=3D[];},getHtml:function(l){var = m=3Dthis._.output.join('');if(l)this.reset();return m;}}});delete = a.loadFullCore;a.instances=3D{};a.document=3Dnew = g(document);a.add=3Dfunction(l){a.instances[l.name]=3Dl;l.on('focus',func= tion(){if(a.currentInstance!=3Dl){a.currentInstance=3Dl;a.fire('currentIn= stance');}});l.on('blur',function(){if(a.currentInstance=3D=3Dl){a.curren= tInstance=3Dnull;a.fire('currentInstance');}});};a.remove=3Dfunction(l){d= elete = a.instances[l.name];};a.TRISTATE_ON=3D1;a.TRISTATE_OFF=3D2;a.TRISTATE_DIS= ABLED=3D0;(function(){var = l=3D{address:1,blockquote:1,dl:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,= li:1,dt:1,de:1},m=3D{body:1,div:1,table:1,tbody:1,tr:1,td:1,th:1,caption:= 1,form:1},n=3Dfunction(o){var p=3Do.getChildren();for(var = q=3D0,r=3Dp.count();q0&&z.getChild(s.startOffset-1);thi= s._.guardRTL=3Dfunction(C,D){return(!D||!z.equals(C))&&(!A||!C.equals(A))= &&(C.type!=3D1||!D||C.getName()!=3D'body');};}var = B=3Dp?this._.guardRTL:this._.guardLTR;if(u)t=3Dfunction(C,D){if(B(C,D)=3D= =3D=3Dfalse)return false;return u(C,D);};else = t=3DB;if(this.current)r=3Dthis.current[w](false,v,t);else = if(p){r=3Ds.endContainer;if(s.endOffset>0){r=3Dr.getChild(s.endOffset-1);= if(t(r)=3D=3D=3Dfalse)r=3Dnull;}else = r=3Dt(r)=3D=3D=3Dfalse?null:r.getPreviousSourceNode(true,v,t);}else{r=3Ds= .startContainer;r=3Dr.getChild(s.startOffset);if(r){if(t(r)=3D=3D=3Dfalse= )r=3Dnull;}else = r=3Dt(s.startContainer)=3D=3D=3Dfalse?null:s.startContainer.getNextSource= Node(true,v,t);}while(r&&!this._.end){this.current=3Dr;if(!this.evaluator= ||this.evaluator(r)!=3D=3Dfalse){if(!q)return r;}else = if(q&&this.evaluator)return false;r=3Dr[w](false,v,t);}this.end();return = this.current=3Dnull;};function m(p){var = q,r=3Dnull;while(q=3Dl.call(this,p))r=3Dq;return = r;};d.walker=3De.createClass({$:function(p){this.range=3Dp;this._=3D{};},= proto:{end:function(){this._.end=3D1;},next:function(){return = l.call(this);},previous:function(){return = l.call(this,true);},checkForward:function(){return = l.call(this,false,true)!=3D=3Dfalse;},checkBackward:function(){return = l.call(this,true,true)!=3D=3Dfalse;},lastForward:function(){return = m.call(this);},lastBackward:function(){return = m.call(this,true);},reset:function(){delete = this.current;this._=3D{};}}});var = n=3D{block:1,'list-item':1,table:1,'table-row-group':1,'table-header-grou= p':1,'table-footer-group':1,'table-row':1,'table-column-group':1,'table-c= olumn':1,'table-cell':1,'table-caption':1},o=3D{hr:1};h.prototype.isBlock= Boundary=3Dfunction(p){var q=3De.extend({},o,p||{});return = n[this.getComputedStyle('display')]||q[this.getName()];};d.walker.blockBo= undary=3Dfunction(p){return = function(q,r){return!(q.type=3D=3D1&&q.isBlockBoundary(p));};};d.walker.l= istItemBoundary=3Dfunction(){return = this.blockBoundary({br:1});};d.walker.bookmarkContents=3Dfunction(p){},d.= walker.bookmark=3Dfunction(p,q){function r(s){return = s&&s.getName&&s.getName()=3D=3D'span'&&s.hasAttribute('_fck_bookmark'); };return function(s){var = t,u;t=3Ds&&!s.getName&&(u=3Ds.getParent())&&r(u);t=3Dp?t:t||r(s);return = q^t;};};d.walker.whitespaces=3Dfunction(p){return function(q){var = r=3Dq&&q.type=3D=3D3&&!e.trim(q.getText());return = p^r;};};d.walker.invisible=3Dfunction(p){var = q=3Dd.walker.whitespaces();return function(r){var = s=3Dq(r)||r.is&&!r.$.offsetHeight;return = p^s;};};})();d.range=3Dfunction(l){var = m=3Dthis;m.startContainer=3Dnull;m.startOffset=3Dnull;m.endContainer=3Dnu= ll;m.endOffset=3Dnull;m.collapsed=3Dtrue;m.document=3Dl;};(function(){var= = l=3Dfunction(t){t.collapsed=3Dt.startContainer&&t.endContainer&&t.startCo= ntainer.equals(t.endContainer)&&t.startOffset=3D=3Dt.endOffset;},m=3Dfunc= tion(t,u,v){t.optimizeBookmark();var = w=3Dt.startContainer,x=3Dt.endContainer,y=3Dt.startOffset,z=3Dt.endOffset= ,A,B;if(x.type=3D=3D3)x=3Dx.split(z);else = if(x.getChildCount()>0)if(z>=3Dx.getChildCount()){x=3Dx.append(t.document= .createText(''));B=3Dtrue;}else = x=3Dx.getChild(z);if(w.type=3D=3D3){w.split(y);if(w.equals(x))x=3Dw.getNe= xt();}else = if(!y){w=3Dw.getFirst().insertBeforeMe(t.document.createText(''));A=3Dtru= e;}else = if(y>=3Dw.getChildCount()){w=3Dw.append(t.document.createText(''));A=3Dtr= ue;}else w=3Dw.getChild(y).getPrevious();var = C=3Dw.getParents(),D=3Dx.getParents(),E,F,G;for(E=3D0;E0&&!I.equals(x))J=3DH.append(I.clone(= ));if(!C[N]||I.$.parentNode!=3DC[N].$.parentNode){K=3DI.getPrevious();whi= le(K){if(K.equals(C[N])||K.equals(w))break;L=3DK.getPrevious();if(u=3D=3D= 2)H.$.insertBefore(K.$.cloneNode(true),H.$.firstChild);else{K.remove();if= (u=3D=3D1)H.$.insertBefore(K.$,H.$.firstChild);}K=3DL;}}if(H)H=3DJ;}if(u=3D= =3D2){var = O=3Dt.startContainer;if(O.type=3D=3D3){O.$.data+=3DO.$.nextSibling.data;O= .$.parentNode.removeChild(O.$.nextSibling);}var = P=3Dt.endContainer;if(P.type=3D=3D3&&P.$.nextSibling){P.$.data+=3DP.$.nex= tSibling.data;P.$.parentNode.removeChild(P.$.nextSibling);}}else{if(F&&G&= &(w.$.parentNode!=3DF.$.parentNode||x.$.parentNode!=3DG.$.parentNode)){va= r = Q=3DG.getIndex();if(A&&G.$.parentNode=3D=3Dw.$.parentNode)Q--;t.setStart(= G.getParent(),Q);}t.collapse(true);}if(A)w.remove();if(B&&x.$.parentNode)= x.remove();},n=3D{abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,df= n:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:= 1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1};function o(t){var = u=3Dfalse,v=3Dd.walker.bookmark(true); return function(w){if(v(w))return = true;if(w.type=3D=3D3){if(e.trim(w.getText()).length)return false;}else = if(w.type=3D=3D1)if(!n[w.getName()])if(!t&&!c&&w.getName()=3D=3D'br'&&!u)= u=3Dtrue;else return false;return true;};};function p(t){return = t.type!=3D3&&t.getName() in = f.$removeEmpty||!e.trim(t.getText())||t.getParent().hasAttribute('_fck_bo= okmark');};var q=3Dnew d.walker.whitespaces(),r=3Dnew = d.walker.bookmark();function = s(t){return!q(t)&&!r(t);};d.range.prototype=3D{clone:function(){var = u=3Dthis;var t=3Dnew = d.range(u.document);t.startContainer=3Du.startContainer;t.startOffset=3Du= .startOffset;t.endContainer=3Du.endContainer;t.endOffset=3Du.endOffset;t.= collapsed=3Du.collapsed;return t;},collapse:function(t){var = u=3Dthis;if(t){u.endContainer=3Du.startContainer;u.endOffset=3Du.startOff= set;}else{u.startContainer=3Du.endContainer;u.startOffset=3Du.endOffset;}= u.collapsed=3Dtrue;},cloneContents:function(){var t=3Dnew = d.documentFragment(this.document);if(!this.collapsed)m(this,2,t);return = t;},deleteContents:function(){if(this.collapsed)return;m(this,0);},extrac= tContents:function(){var t=3Dnew = d.documentFragment(this.document);if(!this.collapsed)m(this,1,t);return = t;},createBookmark:function(t){var y=3Dthis;var = u,v,w,x;u=3Dy.document.createElement('span');u.setAttribute('_fck_bookmar= k',1);u.setStyle('display','none');u.setHtml(' ');if(t){w=3D'cke_bm_= '+e.getNextNumber();u.setAttribute('id',w+'S');}if(!y.collapsed){v=3Du.cl= one();v.setHtml(' ');if(t)v.setAttribute('id',w+'E');x=3Dy.clone();x= .collapse();x.insertNode(v);}x=3Dy.clone();x.collapse(true);x.insertNode(= u);if(v){y.setStartAfter(u);y.setEndBefore(v);}else = y.moveToPosition(u,4);return{startNode:t?w+'S':u,endNode:t?w+'E':v,serial= izable:t};},createBookmark2:function(t){var A=3Dthis;var = u=3DA.startContainer,v=3DA.endContainer,w=3DA.startOffset,x=3DA.endOffset= ,y,z;if(!u||!v)return{start:0,end:0};if(t){if(u.type=3D=3D1){y=3Du.getChi= ld(w);if(y&&y.type=3D=3D3&&w>0&&y.getPrevious().type=3D=3D3){u=3Dy;w=3D0;= }}while(u.type=3D=3D3&&(z=3Du.getPrevious())&&z.type=3D=3D3){u=3Dz;w+=3Dz= .getLength();}if(!A.isCollapsed){if(v.type=3D=3D1){y=3Dv.getChild(x);if(y= &&y.type=3D=3D3&&x>0&&y.getPrevious().type=3D=3D3){v=3Dy;x=3D0;}}while(v.= type=3D=3D3&&(z=3Dv.getPrevious())&&z.type=3D=3D3){v=3Dz;x+=3Dz.getLength= ();}}}return{start:u.getAddress(t),end:A.isCollapsed?null:v.getAddress(t)= ,startOffset:w,endOffset:x,normalized:t,is2:true};},moveToBookmark:functi= on(t){var B=3Dthis;if(t.is2){var = u=3DB.document.getByAddress(t.start,t.normalized),v=3Dt.startOffset,w=3Dt= .end&&B.document.getByAddress(t.end,t.normalized),x=3Dt.endOffset;B.setSt= art(u,v);if(w)B.setEnd(w,x);else B.collapse(true); }else{var = y=3Dt.serializable,z=3Dy?B.document.getById(t.startNode):t.startNode,A=3D= y?B.document.getById(t.endNode):t.endNode;B.setStartBefore(z);z.remove();= if(A){B.setEndBefore(A);A.remove();}else = B.collapse(true);}},getBoundaryNodes:function(){var y=3Dthis;var = t=3Dy.startContainer,u=3Dy.endContainer,v=3Dy.startOffset,w=3Dy.endOffset= ,x;if(t.type=3D=3D1){x=3Dt.getChildCount();if(x>v)t=3Dt.getChild(v);else = if(x<1)t=3Dt.getPreviousSourceNode();else{t=3Dt.$;while(t.lastChild)t=3Dt= .lastChild;t=3Dnew = d.node(t);t=3Dt.getNextSourceNode()||t;}}if(u.type=3D=3D1){x=3Du.getChild= Count();if(x>w)u=3Du.getChild(w).getPreviousSourceNode(true);else = if(x<1)u=3Du.getPreviousSourceNode();else{u=3Du.$;while(u.lastChild)u=3Du= .lastChild;u=3Dnew = d.node(u);}}if(t.getPosition(u)&2)t=3Du;return{startNode:t,endNode:u};},g= etCommonAncestor:function(t,u){var y=3Dthis;var = v=3Dy.startContainer,w=3Dy.endContainer,x;if(v.equals(w)){if(t&&v.type=3D= =3D1&&y.startOffset=3D=3Dy.endOffset-1)x=3Dv.getChild(y.startOffset);else= x=3Dv;}else x=3Dv.getCommonAncestor(w);return = u&&!x.is?x.getParent():x;},optimize:function(){var v=3Dthis;var = t=3Dv.startContainer,u=3Dv.startOffset;if(t.type!=3D1)if(!u)v.setStartBef= ore(t);else = if(u>=3Dt.getLength())v.setStartAfter(t);t=3Dv.endContainer;u=3Dv.endOffs= et;if(t.type!=3D1)if(!u)v.setEndBefore(t);else = if(u>=3Dt.getLength())v.setEndAfter(t);},optimizeBookmark:function(){var = v=3Dthis;var = t=3Dv.startContainer,u=3Dv.endContainer;if(t.is&&t.is('span')&&t.hasAttri= bute('_fck_bookmark'))v.setStartAt(t,3);if(u&&u.is&&u.is('span')&&u.hasAt= tribute('_fck_bookmark'))v.setEndAt(u,4);},trim:function(t,u){var = B=3Dthis;var = v=3DB.startContainer,w=3DB.startOffset,x=3DB.collapsed;if((!t||x)&&v&&v.t= ype=3D=3D3){if(!w){w=3Dv.getIndex();v=3Dv.getParent();}else = if(w>=3Dv.getLength()){w=3Dv.getIndex()+1;v=3Dv.getParent();}else{var = y=3Dv.split(w);w=3Dv.getIndex()+1;v=3Dv.getParent();if(!x&&B.startContain= er.equals(B.endContainer))B.setEnd(y,B.endOffset-B.startOffset);}B.setSta= rt(v,w);if(x)B.collapse(true);}var = z=3DB.endContainer,A=3DB.endOffset;if(!(u||x)&&z&&z.type=3D=3D3){if(!A){A= =3Dz.getIndex();z=3Dz.getParent();}else = if(A>=3Dz.getLength()){A=3Dz.getIndex()+1;z=3Dz.getParent();}else{z.split= (A);A=3Dz.getIndex()+1;z=3Dz.getParent();}B.setEnd(z,A);}},enlarge:functi= on(t){switch(t){case 1:if(this.collapsed)return;var = u=3Dthis.getCommonAncestor(),v=3Dthis.document.getBody(),w,x,y,z,A,B=3Dfa= lse,C,D,E=3Dthis.startContainer,F=3Dthis.startOffset;if(E.type=3D=3D3){if= (F){E=3D!e.trim(E.substring(0,F)).length&&E;B=3D!!E;}if(E)if(!(z=3DE.getP= revious()))y=3DE.getParent();}else{if(F)z=3DE.getChild(F-1)||E.getLast();= if(!z)y=3DE;}while(y||z){if(y&&!z){if(!A&&y.equals(u))A=3Dtrue; if(!v.contains(y))break;if(!B||y.getComputedStyle('display')!=3D'inline')= {B=3Dfalse;if(A)w=3Dy;else = this.setStartBefore(y);}z=3Dy.getPrevious();}while(z){C=3Dfalse;if(z.type= =3D=3D3){D=3Dz.getText();if(/[^\s\ufeff]/.test(D))z=3Dnull;C=3D/[\s\ufeff= ]$/.test(D);}else = if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmp= ty[z.getName()]){D=3Dz.getText();if(!/[^\s\ufeff]/.test(D))z=3Dnull;else{= var G=3Dz.$.all||z.$.getElementsByTagName('*');for(var = H=3D0,I;I=3DG[H++];){if(!f.$removeEmpty[I.nodeName.toLowerCase()]){z=3Dnu= ll;break;}}}if(z)C=3D!!D.length;}else = z=3Dnull;if(C)if(B){if(A)w=3Dy;else if(y)this.setStartBefore(y);}else = B=3Dtrue;if(z){var = J=3Dz.getPrevious();if(!y&&!J){y=3Dz;z=3Dnull;break;}z=3DJ;}else = y=3Dnull;}if(y)y=3Dy.getParent();}E=3Dthis.endContainer;F=3Dthis.endOffse= t;y=3Dz=3Dnull;A=3DB=3Dfalse;if(E.type=3D=3D3){E=3D!e.trim(E.substring(F)= ).length&&E;B=3D!(E&&E.getLength());if(E)if(!(z=3DE.getNext()))y=3DE.getP= arent();}else{z=3DE.getChild(F);if(!z)y=3DE;}while(y||z){if(y&&!z){if(!A&= &y.equals(u))A=3Dtrue;if(!v.contains(y))break;if(!B||y.getComputedStyle('= display')!=3D'inline'){B=3Dfalse;if(A)x=3Dy;else = if(y)this.setEndAfter(y);}z=3Dy.getNext();}while(z){C=3Dfalse;if(z.type=3D= =3D3){D=3Dz.getText();if(/[^\s\ufeff]/.test(D))z=3Dnull;C=3D/^[\s\ufeff]/= .test(D);}else = if(z.$.offsetWidth>0&&!z.getAttribute('_fck_bookmark'))if(B&&f.$removeEmp= ty[z.getName()]){D=3Dz.getText();if(!/[^\s\ufeff]/.test(D))z=3Dnull;else{= G=3Dz.$.all||z.$.getElementsByTagName('*');for(H=3D0;I=3DG[H++];){if(!f.$= removeEmpty[I.nodeName.toLowerCase()]){z=3Dnull;break;}}}if(z)C=3D!!D.len= gth;}else z=3Dnull;if(C)if(B)if(A)x=3Dy;else = this.setEndAfter(y);if(z){J=3Dz.getNext();if(!y&&!J){y=3Dz;z=3Dnull;break= ;}z=3DJ;}else = y=3Dnull;}if(y)y=3Dy.getParent();}if(w&&x){u=3Dw.contains(x)?x:w;this.set= StartBefore(u);this.setEndAfter(u);}break;case 2:case 3:var K=3Dnew = d.range(this.document);v=3Dthis.document.getBody();K.setStartAt(v,1);K.se= tEnd(this.startContainer,this.startOffset);var L=3Dnew = d.walker(K),M,N,O=3Dd.walker.blockBoundary(t=3D=3D3?{br:1}:null),P=3Dfunc= tion(R){var S=3DO(R);if(!S)M=3DR;return S;},Q=3Dfunction(R){var = S=3DP(R);if(!S&&R.is&&R.is('br'))N=3DR;return = S;};L.guard=3DP;y=3DL.lastBackward();M=3DM||v;this.setStartAt(M,!M.is('br= ')&&(!y&&this.checkStartOfBlock()||y&&M.contains(y))?1:4);K=3Dthis.clone(= );K.collapse();K.setEndAt(v,2);L=3Dnew = d.walker(K);L.guard=3Dt=3D=3D3?Q:P;M=3Dnull;y=3DL.lastForward();M=3DM||v;= this.setEndAt(M,!y&&this.checkEndOfBlock()||y&&M.contains(y)?2:3);if(N)th= is.setEndAfter(N);}},insertNode:function(t){var = x=3Dthis;x.optimizeBookmark();x.trim(false,true);var = u=3Dx.startContainer,v=3Dx.startOffset,w=3Du.getChild(v);if(w)t.insertBef= ore(w); else = u.append(t);if(t.getParent().equals(x.endContainer))x.endOffset++;x.setSt= artBefore(t);},moveToPosition:function(t,u){this.setStartAt(t,u);this.col= lapse(true);},selectNodeContents:function(t){this.setStart(t,0);this.setE= nd(t,t.type=3D=3D3?t.getLength():t.getChildCount());},setStart:function(t= ,u){var = v=3Dthis;v.startContainer=3Dt;v.startOffset=3Du;if(!v.endContainer){v.end= Container=3Dt;v.endOffset=3Du;}l(v);},setEnd:function(t,u){var = v=3Dthis;v.endContainer=3Dt;v.endOffset=3Du;if(!v.startContainer){v.start= Container=3Dt;v.startOffset=3Du;}l(v);},setStartAfter:function(t){this.se= tStart(t.getParent(),t.getIndex()+1);},setStartBefore:function(t){this.se= tStart(t.getParent(),t.getIndex());},setEndAfter:function(t){this.setEnd(= t.getParent(),t.getIndex()+1);},setEndBefore:function(t){this.setEnd(t.ge= tParent(),t.getIndex());},setStartAt:function(t,u){var = v=3Dthis;switch(u){case 1:v.setStart(t,0);break;case = 2:if(t.type=3D=3D3)v.setStart(t,t.getLength());else = v.setStart(t,t.getChildCount());break;case = 3:v.setStartBefore(t);break;case = 4:v.setStartAfter(t);}l(v);},setEndAt:function(t,u){var = v=3Dthis;switch(u){case 1:v.setEnd(t,0);break;case = 2:if(t.type=3D=3D3)v.setEnd(t,t.getLength());else = v.setEnd(t,t.getChildCount());break;case 3:v.setEndBefore(t);break;case = 4:v.setEndAfter(t);}l(v);},fixBlock:function(t,u){var x=3Dthis;var = v=3Dx.createBookmark(),w=3Dx.document.createElement(u);x.collapse(t);x.en= large(2);x.extractContents().appendTo(w);w.trim();if(!c)w.appendBogus();x= .insertNode(w);x.moveToBookmark(v);return w;},splitBlock:function(t){var = D=3Dthis;var u=3Dnew d.elementPath(D.startContainer),v=3Dnew = d.elementPath(D.endContainer),w=3Du.blockLimit,x=3Dv.blockLimit,y=3Du.blo= ck,z=3Dv.block,A=3Dnull;if(!w.equals(x))return = null;if(t!=3D'br'){if(!y){y=3DD.fixBlock(true,t);z=3Dnew = d.elementPath(D.endContainer).block;}if(!z)z=3DD.fixBlock(false,t);}var = B=3Dy&&D.checkStartOfBlock(),C=3Dz&&D.checkEndOfBlock();D.deleteContents(= );if(y&&y.equals(z))if(C){A=3Dnew = d.elementPath(D.startContainer);D.moveToPosition(z,4);z=3Dnull;}else = if(B){A=3Dnew = d.elementPath(D.startContainer);D.moveToPosition(y,3);y=3Dnull;}else{z=3D= D.splitElement(y);if(!c&&!y.is('ul','ol'))y.appendBogus();}return{previou= sBlock:y,nextBlock:z,wasStartOfBlock:B,wasEndOfBlock:C,elementPath:A};},s= plitElement:function(t){var w=3Dthis;if(!w.collapsed)return = null;w.setEndAt(t,2);var = u=3Dw.extractContents(),v=3Dt.clone(false);u.appendTo(v);v.insertAfter(t)= ;w.moveToPosition(t,4);return = v;},checkBoundaryOfElement:function(t,u){var = v=3Dthis.clone();v[u=3D=3D1?'setStartAt':'setEndAt'](t,u=3D=3D1?1:2);var = w=3Dnew d.walker(v),x=3Dfalse; w.evaluator=3Dp;return = w[u=3D=3D1?'checkBackward':'checkForward']();},checkStartOfBlock:function= (){var z=3Dthis;var = t=3Dz.startContainer,u=3Dz.startOffset;if(u&&t.type=3D=3D3){var = v=3De.ltrim(t.substring(0,u));if(v.length)return false;}z.trim();var = w=3Dnew = d.elementPath(z.startContainer),x=3Dz.clone();x.collapse(true);x.setStart= At(w.block||w.blockLimit,1);var y=3Dnew = d.walker(x);y.evaluator=3Do(true);return = y.checkBackward();},checkEndOfBlock:function(){var z=3Dthis;var = t=3Dz.endContainer,u=3Dz.endOffset;if(t.type=3D=3D3){var = v=3De.rtrim(t.substring(u));if(v.length)return false;}z.trim();var = w=3Dnew = d.elementPath(z.endContainer),x=3Dz.clone();x.collapse(false);x.setEndAt(= w.block||w.blockLimit,2);var y=3Dnew = d.walker(x);y.evaluator=3Do(false);return = y.checkForward();},moveToElementEditStart:function(t){var = u;while(t&&t.type=3D=3D1){u=3Dt.isEditable();if(u)this.moveToPosition(t,1= );else if(f.$inline[t.getName()]){this.moveToPosition(t,3);return = true;}if(f.$empty[t.getName()])t=3Dt.getNext(s);else = t=3Dt.getFirst(s);if(t&&t.type=3D=3D3){this.moveToPosition(t,3);return = true;}}return u;},getEnclosedNode:function(){var = t=3Dthis.clone(),u=3Dnew = d.walker(t),v=3Dd.walker.bookmark(true),w=3Dd.walker.whitespaces(true),x=3D= function(z){return w(z)&&v(z);};t.evaluator=3Dx;var = y=3Du.next();u.reset();return = y&&y.equals(u.previous())?y:null;},getTouchedStartNode:function(){var = t=3Dthis.startContainer;if(this.collapsed||t.type!=3D1)return t;return = t.getChild(this.startOffset)||t;},getTouchedEndNode:function(){var = t=3Dthis.endContainer;if(this.collapsed||t.type!=3D1)return t;return = t.getChild(this.endOffset-1)||t;}};})();a.POSITION_AFTER_START=3D1;a.POSI= TION_BEFORE_END=3D2;a.POSITION_BEFORE_START=3D3;a.POSITION_AFTER_END=3D4;= a.ENLARGE_ELEMENT=3D1;a.ENLARGE_BLOCK_CONTENTS=3D2;a.ENLARGE_LIST_ITEM_CO= NTENTS=3D3;a.START=3D1;a.END=3D2;a.STARTEND=3D3;(function(){var = l=3Dc&&b.version<7?a.basePath+'images/spacer.gif':'about:blank',m=3Dh.cre= ateFromHtml('
',a.document);m.appendTo(a.document.getHead());tr= y{b.hc=3Dm.getComputedStyle('background-image')=3D=3D'none';}catch(n){b.h= c=3Dfalse;}if(b.hc)b.cssClass+=3D' = cke_hc';m.remove();})();j.load(i.corePlugins.split(','),function(){a.stat= us=3D'loaded';a.fire('loaded');var l=3Da._.pending;if(l){delete = a._.pending;for(var = m=3D0;m0){y=3Dz.shift();while(!y.getParent().equals(C))y= =3Dy.getParent();if(!y.equals(G))D.push(y);G=3Dy;}while(D.length>0){y=3DD= .shift();if(y.getName()=3D=3D'blockquote'){var H=3Dnew = d.documentFragment(p.document);while(y.getFirst()){H.append(y.getFirst().= remove());z.push(H.getLast()); }H.replace(y);}else z.push(y);}var = I=3Dp.document.createElement('blockquote');I.insertBefore(z[0]);while(z.l= ength>0){y=3Dz.shift();I.append(y);}}else if(q=3D=3D1){var = J=3D[],K=3D{};while(y=3Dx.getNextParagraph()){var = L=3Dnull,M=3Dnull;while(y.getParent()){if(y.getParent().getName()=3D=3D'b= lockquote'){L=3Dy.getParent();M=3Dy;break;}y=3Dy.getParent();}if(L&&M&&!M= .getCustomData('blockquote_moveout')){J.push(M);h.setMarker(K,M,'blockquo= te_moveout',true);}}h.clearAllMarkers(K);var = N=3D[],O=3D[];K=3D{};while(J.length>0){var = P=3DJ.shift();I=3DP.getParent();if(!P.getPrevious())P.remove().insertBefo= re(I);else = if(!P.getNext())P.remove().insertAfter(I);else{P.breakParent(P.getParent(= ));O.push(P.getNext());}if(!I.getCustomData('blockquote_processed')){O.pu= sh(I);h.setMarker(K,I,'blockquote_processed',true);}N.push(P);}h.clearAll= Markers(K);for(E=3DO.length-1;E>=3D0;E--){I=3DO[E];if(n(I))I.remove();}if= (p.config.enterMode=3D=3D2){var = Q=3Dtrue;while(N.length){P=3DN.shift();if(P.getName()=3D=3D'div'){H=3Dnew= d.documentFragment(p.document);var = R=3DQ&&P.getPrevious()&&!(P.getPrevious().type=3D=3D1&&P.getPrevious().is= BlockBoundary());if(R)H.append(p.document.createElement('br'));var = S=3DP.getNext()&&!(P.getNext().type=3D=3D1&&P.getNext().isBlockBoundary()= );while(P.getFirst())P.getFirst().remove().appendTo(H);if(S)H.append(p.do= cument.createElement('br'));H.replace(P);Q=3Dfalse;}}}}r.selectBookmarks(= t);p.focus();}};j.add('blockquote',{init:function(p){p.addCommand('blockq= uote',o);p.ui.addButton('Blockquote',{label:p.lang.blockquote,command:'bl= ockquote'});p.on('selectionChange',m);},requires:['domiterator']});})();j= .add('button',{beforeInit:function(l){l.ui.addHandler(1,k.button.handler)= ;}});a.UI_BUTTON=3D1;k.button=3Dfunction(l){e.extend(this,l,{title:l.labe= l,className:l.className||l.command&&'cke_button_'+l.command||'',click:l.c= lick||(function(m){m.execCommand(l.command);})});this._=3D{};};k.button.h= andler=3D{create:function(l){return new = k.button(l);}};k.button.prototype=3D{canGroup:true,render:function(l,m){v= ar n=3Db,o=3Dthis._.id=3D'cke_'+e.getNextNumber();this._.editor=3Dl;var = p=3D{id:o,button:this,editor:l,focus:function(){var = v=3Da.document.getById(o);v.focus();},execute:function(){this.button.clic= k(l);}},q=3De.addFunction(p.execute,p),r=3Dk.button._.instances.push(p)-1= ,s=3D'',t=3Dthis.command;if(this.modes)l.on('mode',function(){this.setSta= te(this.modes[l.mode]?2:0);},this);else = if(t){t=3Dl.getCommand(t);if(t){t.on('state',function(){this.setState(t.s= tate);},this);s+=3D'cke_'+(t.state=3D=3D1?'on':t.state=3D=3D0?'disabled':= 'off');}}if(!t)s+=3D'cke_off';if(this.className)s+=3D' '+this.className; m.push('','',this.label,'');if(this.hasArrow)m.push('');m.push('','');if(this.onRe= nder)this.onRender();return p;},setState:function(l){var = q=3Dthis;if(q._.state=3D=3Dl)return;var = m=3Da.document.getById(q._.id);if(m){m.setState(l);var = n=3Dq.title,o=3Dq._.editor.lang.common.unavailable,p=3Dm.getChild(1);if(l= =3D=3D0)n=3Do.replace('%1',q.title);p.setHtml(n);}q._.state=3Dl;}};k.butt= on._=3D{instances:[],keydown:function(l,m){var = n=3Dk.button._.instances[l];if(n.onkey){m=3Dnew d.event(m);return = n.onkey(n,m.getKeystroke())!=3D=3Dfalse;}},focus:function(l,m){var = n=3Dk.button._.instances[l],o;if(n.onfocus)o=3Dn.onfocus(n,new = d.event(m))!=3D=3Dfalse;if(b.gecko&&b.version<10900)m.preventBubble();ret= urn = o;}};k.prototype.addButton=3Dfunction(l,m){this.add(l,1,m);};(function(){= var l=3Dfunction(q,r){var = s=3Dq.document,t=3Ds.getBody(),u=3Dfalse,v=3Dfunction(){u=3Dtrue;};t.on(r= ,v);s.$.execCommand(r);t.removeListener(r,v);return = u;},m=3Dc?function(q,r){return l(q,r);}:function(q,r){try{return = q.document.$.execCommand(r);}catch(s){return = false;}},n=3Dfunction(q){this.type=3Dq;this.canUndo=3Dthis.type=3D=3D'cut= ';};n.prototype=3D{exec:function(q,r){var = s=3Dm(q,this.type);if(!s)alert(q.lang.clipboard[this.type+'Error']);retur= n s;}};var = o=3Dc?{exec:function(q,r){q.focus();if(!q.fire('beforePaste')&&!l(q,'past= e'))q.openDialog('paste');}}:{exec:function(q){try{if(!q.fire('beforePast= e')&&!q.document.$.execCommand('Paste',false,null))throw = 0;}catch(r){q.openDialog('paste');}}},p=3Dfunction(q){switch(q.data.keyCo= de){case 1000+86:case 2000+45:var = r=3Dthis;r.fire('saveSnapshot');if(r.fire('beforePaste'))q.cancel();setTi= meout(function(){r.fire('saveSnapshot');},0);return;case 1000+88:case = 2000+46:r=3Dthis;r.fire('saveSnapshot');setTimeout(function(){r.fire('sav= eSnapshot');},0);}};j.add('clipboard',{init:function(q){function = r(t,u,v,w){var x=3Dq.lang[u]; q.addCommand(u,v);q.ui.addButton(t,{label:x,command:u});if(q.addMenuItems= )q.addMenuItem(u,{label:x,command:u,group:'clipboard',order:w});};r('Cut'= ,'cut',new n('cut'),1);r('Copy','copy',new = n('copy'),4);r('Paste','paste',o,8);a.dialog.add('paste',a.getUrl(this.pa= th+'dialogs/paste.js'));q.on('key',p,q);if(q.contextMenu){function = s(t){return = q.document.$.queryCommandEnabled(t)?2:0;};q.contextMenu.addListener(funct= ion(){return{cut:s('Cut'),copy:s('Cut'),paste:b.webkit?2:s('Paste')};});}= }});})();j.add('colorbutton',{requires:['panelbutton','floatpanel','style= s'],init:function(l){var = m=3Dl.config,n=3Dl.lang.colorButton,o;if(!b.hc){p('TextColor','fore',n.te= xtColorTitle);p('BGColor','back',n.bgColorTitle);}function = p(r,s,t){l.ui.add(r,4,{label:t,title:t,className:'cke_button_'+r.toLowerC= ase(),modes:{wysiwyg:1},panel:{css:[a.getUrl(l.skinPath+'editor.css')]},o= nBlock:function(u,v){var = w=3Du.addBlock(v);w.autoSize=3Dtrue;w.element.addClass('cke_colorblock');= w.element.setHtml(q(u,s));var = x=3Dw.keys;x[39]=3D'next';x[9]=3D'next';x[37]=3D'prev';x[2000+9]=3D'prev'= ;x[32]=3D'click';}});};function q(r,s){var = t=3D[],u=3Dm.colorButton_colors.split(','),v=3De.addFunction(function(z,A= ){if(z=3D=3D'?')return;l.focus();r.hide();var B=3Dnew = a.style(m['colorButton_'+A+'Style'],z&&{color:z});l.fire('saveSnapshot');= if(z)B.apply(l.document);else = B.remove(l.document);l.fire('saveSnapshot');});t.push('
',n.auto,'
');for(var = w=3D0;w');var = x=3Du[w],y=3Dl.lang.colors[x]||x;t.push('');}if(m.colorButton_en= ableMore)t.push('');t.push('
",n.more,'
');return = t.join('');};}});i.colorButton_enableMore=3Dfalse;i.colorButton_colors=3D= '000,800000,8B4513,2F4F4F,008080,000080,4B0082,696969,B22222,A52A2A,DAA52= 0,006400,40E0D0,0000CD,800080,808080,F00,FF8C00,FFD700,008000,0FF,00F,EE8= 2EE,A9A9A9,FFA07A,FFA500,FFFF00,00FF00,AFEEEE,ADD8E6,DDA0DD,D3D3D3,FFF0F5= ,FAEBD7,FFFFE0,F0FFF0,F0FFFF,F0F8FF,E6E6FA,FFF'; i.colorButton_foreStyle=3D{element:'span',styles:{color:'#(color)'},overr= ides:[{element:'font',attributes:{color:null}}]};i.colorButton_backStyle=3D= {element:'span',styles:{'background-color':'#(color)'}};(function(){j.col= ordialog=3D{init:function(l){l.addCommand('colordialog',new = a.dialogCommand('colordialog'));a.dialog.add('colordialog',this.path+'dia= logs/colordialog.js');}};j.add('colordialog',j.colordialog);})();j.add('c= ontextmenu',{requires:['menu'],beforeInit:function(l){l.contextMenu=3Dnew= = j.contextMenu(l);l.addCommand('contextMenu',{exec:function(){l.contextMen= u.show(l.document.getBody());}});}});j.contextMenu=3De.createClass({$:fun= ction(l){this.id=3D'cke_'+e.getNextNumber();this.editor=3Dl;this._.listen= ers=3D[];this._.functionId=3De.addFunction(function(m){this._.panel.hide(= );l.focus();l.execCommand(m);},this);},_:{onMenu:function(l,m,n,o){var = p=3Dthis._.menu,q=3Dthis.editor;if(p){p.hide();p.removeAll();}else{p=3Dth= is._.menu=3Dnew a.menu(q);p.onClick=3De.bind(function(z){var = A=3Dtrue;p.hide();if(c)p.onEscape();if(z.onClick)z.onClick();else = if(z.command)q.execCommand(z.command);A=3Dfalse;},this);p.onEscape=3Dfunc= tion(){q.focus();if(c)q.getSelection().unlock(true);};}var = r=3Dthis._.listeners,s=3D[],t=3Dthis.editor.getSelection(),u=3Dt&&t.getSt= artElement();if(c)t.lock();p.onHide=3De.bind(function(){p.onHide=3Dnull;i= f(c)q.getSelection().unlock();this.onHide&&this.onHide();},this);for(var = v=3D0;v ';j.add('elementspath',{requires:['selec= tion'],init:function(n){var = o=3D'cke_path_'+n.name,p,q=3Dfunction(){if(!p)p=3Da.document.getById(o);r= eturn = p;},r=3D'cke_elementspath_'+e.getNextNumber()+'_';n._.elementsPath=3D{idB= ase:r};n.on('themeSpace',function(s){if(s.data.space=3D=3D'bottom')s.data= .html+=3D'
'+m+'
';});n.on('selectionChange',function(s){var= = t=3Db,u=3Ds.data.selection,v=3Du.getStartElement(),w=3D[],x=3Dthis._.elem= entsPath.list=3D[];while(v){var = y=3Dx.push(v)-1,z;if(v.getAttribute('_cke_real_element_type'))z=3Dv.getAt= tribute('_cke_real_element_type');else z=3Dv.getName();var = A=3D'';if(t.opera||t.gecko&&t.mac)A+=3D' onkeypress=3D"return = false;"';if(t.gecko)A+=3D' onblur=3D"this.style.cssText =3D = this.style.cssText;"';w.unshift('',z,'');if(z=3D= =3D'body')break;v=3Dv.getParent();}q().setHtml(w.join('')+m);});n.on('con= tentDomUnload',function(){q().setHtml(m);});n.addCommand('elementsPathFoc= us',l.toolbarFocus);}});})();a._.elementsPath=3D{click:function(l,m){var = n=3Da.instances[l];n.focus();var = o=3Dn._.elementsPath.list[m];n.getSelection().selectElement(o);return = false;},keydown:function(l,m,n){var = o=3Dk.button._.instances[m],p=3Da.instances[l],q=3Dp._.elementsPath.idBas= e,r;n=3Dnew d.event(n);switch(n.getKeystroke()){case 37:case = 9:r=3Da.document.getById(q+(m+1));if(!r)r=3Da.document.getById(q+'0');r.f= ocus();return false;case 39:case = 2000+9:r=3Da.document.getById(q+(m-1));if(!r)r=3Da.document.getById(q+(p.= _.elementsPath.list.length-1));r.focus();return false;case = 27:p.focus();return false;case 13:case 32:this.click(l,m);return = false;}return = true;}};(function(){j.add('enterkey',{requires:['keystrokes','indent'],in= it:function(s){var t=3Ds.specialKeys;t[13]=3Do;t[2000+13]=3Dn;}});var = l,m=3D/^h[1-6]$/;function n(s){l=3D1;return = o(s,s.config.shiftEnterMode);};function = o(s,t){if(s.mode!=3D'wysiwyg')return false;if(!t)t=3Ds.config.enterMode; setTimeout(function(){s.fire('saveSnapshot');if(t=3D=3D2||s.getSelection(= ).getStartElement().hasAscendant('pre',true))q(s,t);else = p(s,t);l=3D0;},0);return true;};function p(s,t,u){u=3Du||r(s);var = v=3Du.document,w=3Dt=3D=3D3?'div':'p',x=3Du.splitBlock(w);if(!x)return;va= r = y=3Dx.previousBlock,z=3Dx.nextBlock,A=3Dx.wasStartOfBlock,B=3Dx.wasEndOfB= lock,C;if(z){C=3Dz.getParent();if(C.is('li')){z.breakParent(C);z.move(z.g= etNext(),true);}}else = if(y&&(C=3Dy.getParent())&&C.is('li')){y.breakParent(C);u.moveToElementEd= itStart(y.getNext());y.move(y.getPrevious());}if(!A&&!B){if(z.is('li')&&(= C=3Dz.getFirst(d.walker.invisible(true)))&&C.is&&C.is('ul','ol'))(c?v.cre= ateText('\xa0'):v.createElement('br')).insertBefore(C);if(z)u.moveToEleme= ntEditStart(z);}else{if(A&&B&&y.is('li')){s.execCommand('outdent');return= ;}var D;if(y){if(!l&&!m.test(y.getName()))D=3Dy.clone();}else = if(z)D=3Dz.clone();if(!D)D=3Dv.createElement(w);var = E=3Dx.elementPath;if(E)for(var F=3D0,G=3DE.elements.length;F0;u--)t[u].deleteContents();return = t[0];};})();(function(){var = l=3D'nbsp,gt,lt,quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ord= f,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,ced= il,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hel= lip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rar= r,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,= isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,i= nt,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otim= es,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,= diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsqu= o,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro',m=3D'A= grave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Eum= l,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Osl= ash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atild= e,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iu= ml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,= uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml',n=3D'Alpha,Beta,Ga= mma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rh= o,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta= ,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,ups= ilon,phi,chi,psi,omega,thetasym,upsih,piv'; function o(p){var = q=3D{},r=3D[],s=3D{nbsp:'\xa0',shy:'=C2=AD',gt:'>',lt:'<'};p=3Dp.replace(= /\b(nbsp|shy|gt|lt|amp)(?:,|$)/g,function(x,y){q[s[y]]=3D'&'+y+';';r.push= (s[y]);return '';});p=3Dp.split(',');var = t=3Ddocument.createElement('div'),u;t.innerHTML=3D'&'+p.join(';&')+';';u=3D= t.innerHTML;t=3Dnull;for(var v=3D0;v'+C+'',C);}},onClick:function(B){m.f= ocus();m.fire('saveSnapshot');var = C=3Dw[B];if(this.getValue()=3D=3DB)C.remove(m.document);else = C.apply(m.document);m.fire('saveSnapshot');},onRender:function(){m.on('se= lectionChange',function(B){var = C=3Dthis.getValue(),D=3DB.data.path,E=3DD.elements;for(var = F=3D0,G;F'+t+'',t);}},onClick:function(= s){l.focus();l.fire('saveSnapshot');p[s].apply(l.document);l.fire('saveSn= apshot');},onRender:function(){l.on('selectionChange',function(s){var = t=3Dthis.getValue(),u=3Ds.data.path;for(var v in = p){if(p[v].checkActive(u)){if(v!=3Dt)this.setValue(v,l.lang.format['tag_'= +v]);return;}}this.setValue('');},this);}});}});i.format_tags=3D'p;h1;h2;= h3;h4;h5;h6;pre;address;div';i.format_p=3D{element:'p'};i.format_div=3D{e= lement:'div'};i.format_pre=3D{element:'pre'};i.format_address=3D{element:= 'address'};i.format_h1=3D{element:'h1'};i.format_h2=3D{element:'h2'};i.fo= rmat_h3=3D{element:'h3'};i.format_h4=3D{element:'h4'};i.format_h5=3D{elem= ent:'h5'};i.format_h6=3D{element:'h6'};j.add('forms',{init:function(l){va= r m=3Dl.lang;l.addCss('form{border: 1px dotted #FF0000;padding: = 2px;}');var n=3Dfunction(p,q,r){l.addCommand(q,new = a.dialogCommand(q));l.ui.addButton(p,{label:m.common[p.charAt(0).toLowerC= ase()+p.slice(1)],command:q});a.dialog.add(q,r);},o=3Dthis.path+'dialogs/= ';n('Form','form',o+'form.js');n('Checkbox','checkbox',o+'checkbox.js');n= ('Radio','radio',o+'radio.js');n('TextField','textfield',o+'textfield.js'= );n('Textarea','textarea',o+'textarea.js');n('Select','select',o+'select.= js');n('Button','button',o+'button.js');n('ImageButton','imagebutton',j.g= etPath('image')+'dialogs/image.js');n('HiddenField','hiddenfield',o+'hidd= enfield.js');if(l.addMenuItems)l.addMenuItems({form:{label:m.form.menu,co= mmand:'form',group:'form'},checkbox:{label:m.checkboxAndRadio.checkboxTit= le,command:'checkbox',group:'checkbox'},radio:{label:m.checkboxAndRadio.r= adioTitle,command:'radio',group:'radio'},textfield:{label:m.textfield.tit= le,command:'textfield',group:'textfield'},hiddenfield:{label:m.hidden.tit= le,command:'hiddenfield',group:'hiddenfield'},imagebutton:{label:m.image.= titleButton,command:'imagebutton',group:'imagebutton'},button:{label:m.bu= tton.title,command:'button',group:'button'},select:{label:m.select.title,= command:'select',group:'select'},textarea:{label:m.textarea.title,command= :'textarea',group:'textarea'}}); if(l.contextMenu){l.contextMenu.addListener(function(p){if(p&&p.hasAscend= ant('form',true))return{form:2};});l.contextMenu.addListener(function(p){= if(p){var = q=3Dp.getName();if(q=3D=3D'select')return{select:2};if(q=3D=3D'textarea')= return{textarea:2};if(q=3D=3D'input'){var = r=3Dp.getAttribute('type');if(r=3D=3D'text'||r=3D=3D'password')return{tex= tfield:2};if(r=3D=3D'button'||r=3D=3D'submit'||r=3D=3D'reset')return{butt= on:2};if(r=3D=3D'checkbox')return{checkbox:2};if(r=3D=3D'radio')return{ra= dio:2};if(r=3D=3D'image')return{imagebutton:2};}if(q=3D=3D'img'&&p.getAtt= ribute('_cke_real_element_type')=3D=3D'hiddenfield')return{hiddenfield:2}= ;}});}},afterInit:function(l){if(c){var = m=3Dl.dataProcessor,n=3Dm&&m.htmlFilter;n&&n.addRules({elements:{input:fu= nction(o){var = p=3Do.attributes,q=3Dp.type;if(q=3D=3D'checkbox'||q=3D=3D'radio')p.value=3D= =3D'on'&&delete = p.value;}}});}},requires:['image']});if(c)h.prototype.hasAttribute=3Dfunc= tion(l){var o=3Dthis;var = m=3Do.$.attributes.getNamedItem(l);if(o.getName()=3D=3D'input')switch(l){= case 'class':return o.$.className.length>0;case = 'checked':return!!o.$.checked;case 'value':var = n=3Do.getAttribute('type');if(n=3D=3D'checkbox'||n=3D=3D'radio')return = o.$.value!=3D'on';break;default:}return!!(m&&m.specified);};(function(){v= ar = l=3D{canUndo:false,exec:function(n){n.insertElement(n.document.createElem= ent('hr'));}},m=3D'horizontalrule';j.add(m,{init:function(n){n.addCommand= (m,l);n.ui.addButton('HorizontalRule',{label:n.lang.horizontalrule,comman= d:m});}});})();(function(){var l=3D/^[\t\r\n = ]*(?: |\xa0)$/,m=3D'{cke_protected}';function n(M){var = N=3DM.children.length,O=3DM.children[N-1];while(O&&O.type=3D=3D3&&!e.trim= (O.value))O=3DM.children[--N];return O;};function o(M,N){var = O=3DM.children,P=3Dn(M);if(P){if((N||!c)&&P.type=3D=3D1&&P.name=3D=3D'br'= )O.pop();if(P.type=3D=3D3&&l.test(P.value))O.pop();}};function p(M){var = N=3Dn(M);return!N||N.type=3D=3D1&&N.name=3D=3D'br';};function = q(M){o(M,true);if(p(M))if(c)M.add(new a.htmlParser.text('\xa0'));else = M.add(new a.htmlParser.element('br',{}));};function = r(M){o(M);if(p(M))M.add(new a.htmlParser.text('\xa0'));};var = s=3Df,t=3De.extend({},s.$block,s.$listItem,s.$tableContent);for(var u in = t){if(!('br' in s[u]))delete t[u];}delete t.pre;var = v=3D{attributeNames:[[/^on/,'_cke_pa_on']]},w=3D{elements:{}};for(u in = t)w.elements[u]=3Dq;var = x=3D{elementNames:[[/^cke:/,''],[/^\?xml:namespace$/,'']],attributeNames:= [[/^_cke_(saved|pa)_/,''],[/^_cke.*/,'']],elements:{$:function(M){var = N=3DM.attributes;if(N){var O=3D['name','href','src'],P;for(var = Q=3D0;Q]+)))/gi;function A(M){return M.replace(z,'$& = _cke_saved_$1');};var B=3D/<(style)(?=3D[ = >])[^>]*>[^<]*<\/\1>/gi,C=3D/([^<]*)<\/cke:encoded>/gi,D=3D/= (<\/?)((?:object|embed|param)[\s\S]*?>)/gi,E=3D//gi;function F(M){return = ''+encodeURIComponent(M)+'';};function = G(M){return M.replace(B,F);};function H(M){return = M.replace(D,'$1cke:$2');};function I(M){return = M.replace(E,'');};function J(M,N){return = decodeURIComponent(N);};function K(M){return M.replace(C,J);};function = L(M,N){var = O=3D[],P=3D/<\!--\{cke_temp\}(\d*?)-->/g,Q=3D[//g,//gi,//gi].concat(N);for(va= r = R=3D0;R';});M=3DM.replace(P,function(S,T){ret= urn = '';});return= = M;};j.add('htmldataprocessor',{requires:['htmlwriter'],init:function(M){v= ar N=3DM.dataProcessor=3Dnew = a.htmlDataProcessor(M);N.writer.forceSimpleAmpersand=3DM.config.forceSimp= leAmpersand;N.dataFilter.addRules(v);N.dataFilter.addRules(w);N.htmlFilte= r.addRules(x);N.htmlFilter.addRules(y);}});a.htmlDataProcessor=3Dfunction= (M){var N=3Dthis;N.editor=3DM;N.writer=3Dnew = a.htmlWriter();N.dataFilter=3Dnew = a.htmlParser.filter();N.htmlFilter=3Dnew = a.htmlParser.filter();};a.htmlDataProcessor.prototype=3D{toHtml:function(= M,N){M=3DL(M,this.editor.config.protectedSource);M=3DA(M);if(c)M=3DG(M);M= =3DH(M);M=3DI(M);var = O=3Ddocument.createElement('div');O.innerHTML=3D'a'+M;M=3DO.innerHTML.sub= str(1);if(c)M=3DK(M);var P=3Da.htmlParser.fragment.fromHtml(M,N),Q=3Dnew = a.htmlParser.basicWriter();P.writeHtml(Q,this.dataFilter);return = Q.getHtml(true);},toDataFormat:function(M,N){var = O=3Dthis.writer,P=3Da.htmlParser.fragment.fromHtml(M,N);O.reset();P.write= Html(O,this.htmlFilter); return = O.getHtml(true);}};})();i.forceSimpleAmpersand=3Dfalse;j.add('image',{ini= t:function(l){var = m=3D'image';a.dialog.add(m,this.path+'dialogs/image.js');l.addCommand(m,n= ew = a.dialogCommand(m));l.ui.addButton('Image',{label:l.lang.common.image,com= mand:m});if(l.addMenuItems)l.addMenuItems({image:{label:l.lang.image.menu= ,command:'image',group:'image'}});if(l.contextMenu)l.contextMenu.addListe= ner(function(n,o){if(!n||!n.is('img')||n.getAttribute('_cke_realelement')= )return = null;return{image:2};});}});i.image_removeLinkByEmptyURL=3Dtrue;(function= (){var l=3D{ol:1,ul:1};function = m(r,s){r.getCommand(this.name).setState(s);};function n(r){var = C=3Dthis;var s=3Dr.data.path.elements,t,u,v=3Dr.editor;for(var = w=3D0;wG;A++)F[A].indent+=3DB;var = H=3Dj.list.arrayToList(F,E,null,r.config.enterMode,0);if(this.name=3D=3D'= outdent'){var I;if((I=3Dt.getParent())&&I.is('li')){var = J=3DH.listNode.getChildren(),K=3D[],L=3DJ.count(),M;for(A=3DL-1;A>=3D0;A-= -){if((M=3DJ.getItem(A))&&M.is&&M.is('li'))K.push(M);}}}if(H)H.listNode.r= eplace(t);if(K&&K.length)for(A=3D0;A0;if(u.useIndentClasses){u.classNameRegex=3Dnew = RegExp('(?:^|\\s+)('+r.config.indentClasses.join('|')+')(?=3D$|\\s)');u.i= ndentClassMap=3D{};for(var = t=3D0;t=3D0;w--){u=3Ds[w].createIterator();while(v=3Du.getNextP= aragraph()){v.removeAttribute('align');if(t){var = x=3Dv.$.className=3De.ltrim(v.$.className.replace(y.cssClassRegex,''));if= (y.state=3D=3D2&&!y.isDefaultAlign)v.addClass(t);else = if(!x)v.removeAttribute('class');}else = if(y.state=3D=3D2&&!y.isDefaultAlign)v.setStyle('text-align',y.value);els= e = v.removeStyle('text-align');}}p.focus();p.forceNextSelectionCheck();q.sel= ectBookmarks(r);}};j.add('justify',{init:function(p){var q=3Dnew = o(p,'justifyleft','left'),r=3Dnew o(p,'justifycenter','center'),s=3Dnew = o(p,'justifyright','right'),t=3Dnew = o(p,'justifyblock','justify');p.addCommand('justifyleft',q);p.addCommand(= 'justifycenter',r);p.addCommand('justifyright',s);p.addCommand('justifybl= ock',t);p.ui.addButton('JustifyLeft',{label:p.lang.justify.left,command:'= justifyleft'});p.ui.addButton('JustifyCenter',{label:p.lang.justify.cente= r,command:'justifycenter'});p.ui.addButton('JustifyRight',{label:p.lang.j= ustify.right,command:'justifyright'});p.ui.addButton('JustifyBlock',{labe= l:p.lang.justify.block,command:'justifyblock'});p.on('selectionChange',e.= bind(n,q));p.on('selectionChange',e.bind(n,s));p.on('selectionChange',e.b= ind(n,r));p.on('selectionChange',e.bind(n,t));},requires:['domiterator']}= );})();e.extend(i,{justifyClasses:null});j.add('keystrokes',{beforeInit:f= unction(l){l.keystrokeHandler=3Dnew = a.keystrokeHandler(l);l.specialKeys=3D{};},init:function(l){var = m=3Dl.config.keystrokes,n=3Dl.config.blockedKeystrokes,o=3Dl.keystrokeHan= dler.keystrokes,p=3Dl.keystrokeHandler.blockedKeystrokes;for(var = q=3D0;qD[F-1].indent+1){var = J=3DD[F-1].indent+1-D[F].indent,K=3DD[F].indent;while(D[F]&&D[F].indent>=3D= K){D[F].indent+=3DJ;F++;}F--;}}var = L=3Dj.list.arrayToList(D,C,null,A.config.enterMode),M=3DL.listNode,N,O;fu= nction = P(Q){if((N=3DM[Q?'getFirst':'getLast']())&&!(N.is&&N.isBlockBoundary())&&= (O=3DB.root[Q?'getPrevious':'getNext'](d.walker.whitespaces(true)))&&!(O.= is&&O.isBlockBoundary({br:1})))A.document.createElement('br')[Q?'insertBe= fore':'insertAfter'](N);};P(true);P();M.replace(B.root);};function = s(A,B){this.name=3DA;this.type=3DB;};s.prototype=3D{exec:function(A){A.fo= cus();var = B=3DA.document,C=3DA.getSelection(),D=3DC&&C.getRanges();if(!D||D.length<= 1)return;if(this.state=3D=3D2){var = E=3DB.getBody();E.trim();if(!E.getFirst()){var = F=3DB.createElement(A.config.enterMode=3D=3D1?'p':A.config.enterMode=3D=3D= 3?'div':'br'); F.appendTo(E);D=3D[new = d.range(B)];if(F.is('br')){D[0].setStartBefore(F);D[0].setEndAfter(F);}el= se D[0].selectNodeContents(F);C.selectRanges(D);}else{var = G=3DD.length=3D=3D1&&D[0],H=3DG&&G.getEnclosedNode();if(H&&H.is&&this.typ= e=3D=3DH.getName())n.call(this,A,1);}}var = I=3DC.createBookmarks(true),J=3D[],K=3D{};while(D.length>0){G=3DD.shift()= ;var = L=3DG.getBoundaryNodes(),M=3DL.startNode,N=3DL.endNode;if(M.type=3D=3D1&&= M.getName()=3D=3D'td')G.setStartAt(L.startNode,1);if(N.type=3D=3D1&&N.get= Name()=3D=3D'td')G.setEndAt(L.endNode,2);var = O=3DG.createIterator(),P;O.forceBrBreak=3Dthis.state=3D=3D2;while(P=3DO.g= etNextParagraph()){var Q=3Dnew = d.elementPath(P),R=3DQ.elements,S=3DR.length,T=3Dnull,U=3Dfalse,V=3DQ.blo= ckLimit,W;for(var = X=3DS-1;X>=3D0&&(W=3DR[X]);X--){if(l[W.getName()]&&V.contains(W)){V.remov= eCustomData('list_group_object');var = Y=3DW.getCustomData('list_group_object');if(Y)Y.contents.push(P);else{Y=3D= {root:W,contents:[P]};J.push(Y);h.setMarker(K,W,'list_group_object',Y);}U= =3Dtrue;break;}}if(U)continue;var = Z=3DV;if(Z.getCustomData('list_group_object'))Z.getCustomData('list_group= _object').contents.push(P);else{Y=3D{root:Z,contents:[P]};h.setMarker(K,Z= ,'list_group_object',Y);J.push(Y);}}}var = aa=3D[];while(J.length>0){Y=3DJ.shift();if(this.state=3D=3D2){if(l[Y.root= .getName()])p.call(this,A,Y,K,aa);else q.call(this,A,Y,aa);}else = if(this.state=3D=3D1&&l[Y.root.getName()])r.call(this,A,Y,K);}for(X=3D0;X= 0)for= (var s=3Dr.length-1;s>=3D0;s--){var = t=3Dr[s][0],u=3Dr[s][1];if(u)t.insertBefore(u);else = t.appendTo(q);}};function n(q,r){var = s=3Dl(q),t=3D{},u=3Dq.$;if(!r){t['class']=3Du.className||'';u.className=3D= '';}t.inline=3Du.style.cssText||'';if(!r)u.style.cssText=3D'position: = static; overflow: visible';m(s);return t;};function o(q,r){var = s=3Dl(q),t=3Dq.$;if('class' in r)t.className=3Dr['class'];if('inline' in = r)t.style.cssText=3Dr.inline;m(s);};function p(q,r){return = function(){var = s=3Dq.getViewPaneSize();r.resize(s.width,s.height,null,true);};};j.add('m= aximize',{init:function(q){var = r=3Dq.lang,s=3Da.document,t=3Ds.getWindow(),u,v,w,x=3Dp(t,q),y=3D2;q.addC= ommand('maximize',{modes:{wysiwyg:1,source:1},editorFocus:false,exec:func= tion(){var M=3Dthis;var = z=3Dq.container.getChild([0,0]),A=3Dq.getThemeSpace('contents');if(q.mode= =3D=3D'wysiwyg'){var = B=3Dq.getSelection();u=3DB&&B.getRanges();v=3Dt.getScrollPosition();}else= {var = C=3Dq.textarea.$;u=3D!c&&[C.selectionStart,C.selectionEnd];v=3D[C.scrollL= eft,C.scrollTop];}if(M.state=3D=3D2){t.on('resize',x);w=3Dt.getScrollPosi= tion();var = D=3Dq.container;while(D=3DD.getParent()){D.setCustomData('maximize_saved_= styles',n(D));D.setStyle('z-index',q.config.baseFloatZIndex-1);}A.setCust= omData('maximize_saved_styles',n(A,true));z.setCustomData('maximize_saved= _styles',n(z,true));if(c)s.$.documentElement.style.overflow=3Ds.getBody()= .$.style.overflow=3D'hidden';else = s.getBody().setStyles({overflow:'hidden',width:'0px',height:'0px'});t.$.s= crollTo(0,0);var = E=3Dt.getViewPaneSize();z.setStyle('position','absolute');z.$.offsetLeft;= z.setStyles({'z-index':q.config.baseFloatZIndex-1,left:'0px',top:'0px'});= q.resize(E.width,E.height,null,true);var = F=3Dz.getDocumentPosition();z.setStyles({left:-1*F.x+'px',top:-1*F.y+'px'= });z.addClass('cke_maximized');}else = if(M.state=3D=3D1){t.removeListener('resize',x);var G=3D[A,z];for(var = H=3D0;H ');m=3Dl.createFakeElement(m,'cke_pagebreak','d= iv');var n=3Dl.getSelection().getRanges();for(var = o,p=3D0;p0)m=3Dm.clone(true);o.splitBlock('p= ');o.insertNode(m);}}};j.add('pastefromword',{init:function(l){l.addComma= nd('pastefromword',new = a.dialogCommand('pastefromword'));l.ui.addButton('PasteFromWord',{label:l= .lang.pastefromword.toolbar,command:'pastefromword'});a.dialog.add('paste= fromword',this.path+'dialogs/pastefromword.js'); }});i.pasteFromWordIgnoreFontFace=3Dtrue;i.pasteFromWordRemoveStyle=3Dfal= se;i.pasteFromWordKeepsStructure=3Dfalse;(function(){var = l=3D{exec:function(n){if(a.getClipboardData()=3D=3D=3Dfalse||!window.clip= boardData){n.openDialog('pastetext');return;}n.insertText(window.clipboar= dData.getData('Text'));}};j.add('pastetext',{init:function(n){var = o=3D'pastetext',p=3Dn.addCommand(o,l);n.ui.addButton('PasteText',{label:n= .lang.pasteText.button,command:o});a.dialog.add(o,a.getUrl(this.path+'dia= logs/pastetext.js'));if(n.config.forcePasteAsPlainText)n.on('beforePaste'= ,function(q){if(n.mode=3D=3D'wysiwyg'){setTimeout(function(){p.exec();},0= );q.cancel();}},null,null,20);},requires:['clipboard']});var = m;a.getClipboardData=3Dfunction(){if(!c)return false;var = n=3Da.document,o=3Dn.getBody();if(!m){m=3Dn.createElement('div',{attribut= es:{id:'cke_hiddenDiv'},styles:{position:'absolute',visibility:'hidden',o= verflow:'hidden',width:'1px',height:'1px'}});m.setHtml('');m.appendTo(o);= }var p=3Dfalse,q=3Dfunction(){p=3Dtrue;};o.on('paste',q);var = r=3Do.$.createTextRange();r.moveToElementText(m.$);r.execCommand('Paste')= ;var s=3Dm.getHtml();m.setHtml('');o.removeListener('paste',q);return = p&&s;};})();a.editor.prototype.insertText=3Dfunction(l){l=3De.htmlEncode(= l);l=3Dl.replace(/(?:\r\n)|\n|\r/g,'
');this.insertHtml(l);};i.forcePa= steAsPlainText=3Dfalse;j.add('popup');e.extend(a.editor.prototype,{popup:= function(l,m,n){m=3Dm||'80%';n=3Dn||'70%';if(typeof = m=3D=3D'string'&&m.length>1&&m.substr(m.length-1,1)=3D=3D'%')m=3DparseInt= (window.screen.width*parseInt(m,10)/100,10);if(typeof = n=3D=3D'string'&&n.length>1&&n.substr(n.length-1,1)=3D=3D'%')n=3DparseInt= (window.screen.height*parseInt(n,10)/100,10);if(m<640)m=3D640;if(n<420)n=3D= 420;var = o=3DparseInt((window.screen.height-n)/2,10),p=3DparseInt((window.screen.w= idth-m)/2,10),q=3D'location=3Dno,menubar=3Dno,toolbar=3Dno,dependent=3Dye= s,minimizable=3Dno,modal=3Dyes,alwaysRaised=3Dyes,resizable=3Dyes,width=3D= '+m+',height=3D'+n+',top=3D'+o+',left=3D'+p,r=3Dwindow.open('',null,q,tru= e);if(!r)return = false;try{r.moveTo(p,o);r.resizeTo(m,n);r.focus();r.location.href=3Dl;}ca= tch(s){r=3Dwindow.open(l,null,q,true);}return true;}});(function(){var = l=3D{modes:{wysiwyg:1,source:1},canUndo:false,exec:function(n){var = o,p=3Db.isCustomDomain();if(n.config.fullPage)o=3Dn.getData();else{var = q=3D'0?'':'';if(r.getAttribute('id'))q+=3D'id=3D"'+r.getA= ttribute('id')+'" = ';if(r.getAttribute('class'))q+=3D'class=3D"'+r.getAttribute('class')+'" = ';q+=3D'>';o=3Dn.config.docType+''+''+s+''+n.lang.= preview+''+''+''+q+n.getData()+''; }var t=3D640,u=3D420,v=3D80;try{var = w=3Dwindow.screen;t=3DMath.round(w.width*0.8);u=3DMath.round(w.height*0.7= );v=3DMath.round(w.width*0.1);}catch(z){}var = x=3D'';if(p){window._cke_htmlToLoad=3Do;x=3D'javascript:void( = (function(){document.open();document.domain=3D"'+document.domain+'";'+'do= cument.write( window.opener._cke_htmlToLoad = );'+'document.close();'+'window.opener._cke_htmlToLoad =3D null;'+'})() = )';}var = y=3Dwindow.open(x,null,'toolbar=3Dyes,location=3Dno,status=3Dyes,menubar=3D= yes,scrollbars=3Dyes,resizable=3Dyes,width=3D'+t+',height=3D'+u+',left=3D= '+v);if(!p){y.document.open();y.document.write(o);y.document.close();}}},= m=3D'preview';j.add(m,{init:function(n){n.addCommand(m,l);n.ui.addButton(= 'Preview',{label:n.lang.preview,command:m});}});})();j.add('print',{init:= function(l){var = m=3D'print',n=3Dl.addCommand(m,j.print);l.ui.addButton('Print',{label:l.l= ang.print,command:m});}});j.print=3D{exec:function(l){if(b.opera)return;e= lse if(b.gecko)l.window.$.print();else = l.document.$.execCommand('Print');},canUndo:false,modes:{wysiwyg:!b.opera= }};j.add('removeformat',{requires:['selection'],init:function(l){l.addCom= mand('removeFormat',j.removeformat.commands.removeformat);l.ui.addButton(= 'RemoveFormat',{label:l.lang.removeFormat,command:'removeFormat'});}});j.= removeformat=3D{commands:{removeformat:{exec:function(l){var = m=3Dl._.removeFormatRegex||(l._.removeFormatRegex=3Dnew = RegExp('^(?:'+l.config.removeFormatTags.replace(/,/g,'|')+')$','i')),n=3D= l._.removeAttributes||(l._.removeAttributes=3Dl.config.removeFormatAttrib= utes.split(',')),o=3Dl.getSelection().getRanges();for(var = p=3D0,q;q=3Do[p];p++){if(q.collapsed)continue;q.enlarge(1);var = r=3Dq.createBookmark(),s=3Dr.startNode,t=3Dr.endNode,u=3Dfunction(x){var = y=3Dnew d.elementPath(x),z=3Dy.elements;for(var = A=3D1,B;B=3Dz[A];A++){if(B.equals(y.block)||B.equals(y.blockLimit))break;= if(m.test(B.getName()))x.breakParent(B);}};u(s);u(t);var = v=3Ds.getNextSourceNode(true,1);while(v){if(v.equals(t))break;var = w=3Dv.getNextSourceNode(false,1);if(!(v.getName()=3D=3D'img'&&v.getAttrib= ute('_cke_realelement')))if(m.test(v.getName()))v.remove(true);else = v.removeAttributes(n);v=3Dw;}q.moveToBookmark(r);}l.getSelection().select= Ranges(o);}}}};i.removeFormatTags=3D'b,big,code,del,dfn,em,font,i,ins,kbd= ,q,samp,small,span,strike,strong,sub,sup,tt,u,var';i.removeFormatAttribut= es=3D'class,style,lang,width,height,align,hspace,valign';j.add('resize',{= init:function(l){var m=3Dl.config;if(m.resize_enabled){var = n=3Dnull,o,p;function q(t){var = u=3Dt.data.$.screenX-o.x,v=3Dt.data.$.screenY-o.y,w=3Dp.width+u*(l.lang.d= ir=3D=3D'rtl'?-1:1),x=3Dp.height+v;l.resize(Math.max(m.resize_minWidth,Ma= th.min(w,m.resize_maxWidth)),Math.max(m.resize_minHeight,Math.min(x,m.res= ize_maxHeight))); };function = r(t){a.document.removeListener('mousemove',q);a.document.removeListener('= mouseup',r);if(l.document){l.document.removeListener('mousemove',q);l.doc= ument.removeListener('mouseup',r);}};var = s=3De.addFunction(function(t){if(!n)n=3Dl.getResizable();p=3D{width:n.$.o= ffsetWidth||0,height:n.$.offsetHeight||0};o=3D{x:t.screenX,y:t.screenY};a= .document.on('mousemove',q);a.document.on('mouseup',r);if(l.document){l.d= ocument.on('mousemove',q);l.document.on('mouseup',r);}});l.on('themeSpace= ',function(t){if(t.data.space=3D=3D'bottom')t.data.html+=3D'
';},l,null,100);}}});i.resize_minWidth=3D750;i.resize_mi= nHeight=3D250;i.resize_maxWidth=3D3000;i.resize_maxHeight=3D3000;i.resize= _enabled=3Dtrue;(function(){var = l=3D{modes:{wysiwyg:1,source:1},exec:function(n){var = o=3Dn.element.$.form;if(o)try{o.submit();}catch(p){if(o.submit.click)o.su= bmit.click();}}},m=3D'save';j.add(m,{init:function(n){var = o=3Dn.addCommand(m,l);o.modes=3D{wysiwyg:!!n.element.$.form};n.ui.addButt= on('Save',{label:n.lang.save,command:m});}});})();(function(){var = l=3D'scaytcheck',m=3D'',n=3Dfunction(){var r=3Dthis,s=3Dfunction(){var = v=3D{};v.srcNodeRef=3Dr.document.getWindow().$.frameElement;v.assocApp=3D= 'CKEDITOR.'+a.version+'@'+a.revision;v.customerid=3Dr.config.scayt_custom= erid||'1:11111111111111111111111111111111111111';v.customDictionaryName=3D= r.config.scayt_customDictionaryName;v.userDictionaryName=3Dr.config.scayt= _userDictionaryName;v.defLang=3Dr.scayt_defLang;if(a._scaytParams)for(var= w in a._scaytParams)v[w]=3Da._scaytParams[w];var x=3Dnew = window.scayt(v),y=3Do.instances[r.name];if(y){x.sLang=3Dy.sLang;x.option(= y.option());x.paused=3Dy.paused;}o.instances[r.name]=3Dx;try{x.setDisable= d(x.paused=3D=3D=3Dfalse);}catch(z){}r.fire('showScaytState');};r.on('con= tentDom',s);r.on('contentDomUnload',function(){var = v=3Da.document.getElementsByTag('script'),w=3D/^dojoIoScript(\d+)$/i,x=3D= /^https?:\/\/svc\.spellchecker\.net\/spellcheck\/script\/ssrv\.cgi/i;for(= var y=3D0;y=3D0){this.setState(0);r.o= n('showScaytState',function(){this.removeListener();this.setState(o.isSca= ytEnabled(r)?1:2);},this);o.loadEngine(r);}}};j.add('scayt',{requires:['m= enubutton'],beforeInit:function(r){r.config.menu_groups=3D'scayt_suggest,= scayt_moresuggest,scayt_control,'+r.config.menu_groups;},init:function(r)= {var = s=3D{},t=3D{},u=3Dr.addCommand(l,q);a.dialog.add(l,a.getUrl(this.path+'di= alogs/options.js'));var = v=3D'scaytButton';r.addMenuGroup(v);r.addMenuItems({scaytToggle:{label:r.= lang.scayt.enable,command:l,group:v},scaytOptions:{label:r.lang.scayt.opt= ions,group:v,onClick:function(){m=3D'options';r.openDialog(l);}},scaytLan= gs:{label:r.lang.scayt.langs,group:v,onClick:function(){m=3D'langs';r.ope= nDialog(l);}},scaytAbout:{label:r.lang.scayt.about,group:v,onClick:functi= on(){m=3D'about'; r.openDialog(l);}}});r.ui.add('Scayt',5,{label:r.lang.scayt.title,title:r= .lang.scayt.title,className:'cke_button_scayt',onRender:function(){u.on('= state',function(){this.setState(u.state);},this);},onMenu:function(){var = x=3Do.isScaytEnabled(r);r.getMenuItem('scaytToggle').label=3Dr.lang.scayt= [x?'disable':'enable'];return{scaytToggle:2,scaytOptions:x?2:0,scaytLangs= :x?2:0,scaytAbout:x?2:0};}});if(r.contextMenu&&r.addMenuItems)r.contextMe= nu.addListener(function(x){if(!(o.isScaytEnabled(r)&&x))return null;var = y=3Do.getScayt(r),z=3Dy.getWord(x.$);if(!z)return null;var = A=3Dy.getLang(),B=3D{},C=3Dwindow.scayt.getSuggestion(z,A);if(!C||!C.leng= th)return null;for(i in s){delete r._.menuItems[i];delete = r._.commands[i];}for(i in t){delete r._.menuItems[i];delete = r._.commands[i];}s=3D{};t=3D{};var D=3Dfalse;for(var = E=3D0,F=3DC.length;E',o.name,'');return = p.join('');};function n(o,p){var q=3Do.type,r=3Dp.type;return = q=3D=3Dr?0:q=3D=3D3?-1:r=3D=3D3?1:r=3D=3D1?1:-1;};})();i.stylesCombo_styl= esSet=3D'default';j.add('table',{init:function(l){var = m=3Dj.table,n=3Dl.lang.table;l.addCommand('table',new = a.dialogCommand('table'));l.addCommand('tableProperties',new = a.dialogCommand('tableProperties'));l.ui.addButton('Table',{label:n.toolb= ar,command:'table'});a.dialog.add('table',this.path+'dialogs/table.js');a= .dialog.add('tableProperties',this.path+'dialogs/table.js');if(l.addMenuI= tems)l.addMenuItems({table:{label:n.menu,command:'tableProperties',group:= 'table',order:5},tabledelete:{label:n.deleteTable,command:'tableDelete',g= roup:'table',order:1}});if(l.contextMenu)l.contextMenu.addListener(functi= on(o,p){if(!o)return null;var = q=3Do.is('table')||o.hasAscendant('table');if(q)return{tabledelete:2,tabl= e:2};return null;});}});(function(){function = l(y,z){if(c)y.removeAttribute(z);else delete y[z];};var = m=3D/^(?:td|th)$/;function n(y){var = z=3Dy.createBookmarks(),A=3Dy.getRanges(),B=3D[],C=3D{};function = D(L){if(B.length>0)return;if(L.type=3D=3D1&&m.test(L.getName())&&!L.getCu= stomData('selected_cell')){h.setMarker(C,L,'selected_cell',true);B.push(L= );}};for(var E=3D0;EE)E=3DC;if(D._cke_colScanned)continue;if(y[B][C-1]=3D= =3DD)D.colSpan++;if(y[B][C+1]!=3DD)D._cke_colScanned=3D1;}for(B=3D0;B<=3D= E;B++)for(C=3D0;C=3D0;B--){if= (A[B])s(A[B]);}}else if(y instanceof h){var = D=3Dy.getAscendant('table');if(D.$.rows.length=3D=3D1)D.remove();else = y.remove();}};function t(y,z){var = A=3Dy.getStartElement(),B=3DA.getAscendant('td',true)||A.getAscendant('th= ',true);if(!B)return;var = C=3DB.getAscendant('table'),D=3DB.$.cellIndex;for(var = E=3D0;E=3D0;A--){if(z[A])u(z[A]);}}else if(y instanceof h){var = B=3Dy.getAscendant('table'),C=3Dy.$.cellIndex;for(A=3DB.$.rows.length-1;A= >=3D0;A--){var D=3Dnew = h(B.$.rows[A]);if(!C&&D.$.cells.length=3D=3D1){s(D);continue;}if(D.$.cell= s[C])D.$.removeChild(D.$.cells[C]);}}};function v(y,z){var = A=3Dy.getStartElement(),B=3DA.getAscendant('td',true)||A.getAscendant('th= ',true);if(!B)return;var = C=3DB.clone();if(!c)C.appendBogus();if(z)C.insertBefore(B);else = C.insertAfter(B);};function w(y){if(y instanceof d.selection){var = z=3Dn(y);for(var A=3Dz.length-1;A>=3D0;A--)w(z[A]);}else if(y instanceof = h)if(y.getParent().getChildCount()=3D=3D1)y.getParent().remove();else = y.remove();};var = x=3D{thead:1,tbody:1,tfoot:1,td:1,tr:1,th:1};j.tabletools=3D{init:functio= n(y){var z=3Dy.lang.table; y.addCommand('cellProperties',new = a.dialogCommand('cellProperties'));a.dialog.add('cellProperties',this.pat= h+'dialogs/tableCell.js');y.addCommand('tableDelete',{exec:function(A){va= r = B=3DA.getSelection(),C=3DB&&B.getStartElement(),D=3DC&&C.getAscendant('ta= ble',true);if(!D)return;B.selectElement(D);var = E=3DB.getRanges()[0];E.collapse();B.selectRanges([E]);if(D.getParent().ge= tChildCount()=3D=3D1)D.getParent().remove();else = D.remove();}});y.addCommand('rowDelete',{exec:function(A){var = B=3DA.getSelection();s(B);}});y.addCommand('rowInsertBefore',{exec:functi= on(A){var = B=3DA.getSelection();r(B,true);}});y.addCommand('rowInsertAfter',{exec:fu= nction(A){var = B=3DA.getSelection();r(B);}});y.addCommand('columnDelete',{exec:function(= A){var = B=3DA.getSelection();u(B);}});y.addCommand('columnInsertBefore',{exec:fun= ction(A){var = B=3DA.getSelection();t(B,true);}});y.addCommand('columnInsertAfter',{exec= :function(A){var = B=3DA.getSelection();t(B);}});y.addCommand('cellDelete',{exec:function(A)= {var = B=3DA.getSelection();w(B);}});y.addCommand('cellInsertBefore',{exec:funct= ion(A){var = B=3DA.getSelection();v(B,true);}});y.addCommand('cellInsertAfter',{exec:f= unction(A){var = B=3DA.getSelection();v(B);}});if(y.addMenuItems)y.addMenuItems({tablecell= :{label:z.cell.menu,group:'tablecell',order:1,getItems:function(){var = A=3Dn(y.getSelection());return{tablecell_insertBefore:2,tablecell_insertA= fter:2,tablecell_delete:2,tablecell_properties:A.length>0?2:0};}},tablece= ll_insertBefore:{label:z.cell.insertBefore,group:'tablecell',command:'cel= lInsertBefore',order:5},tablecell_insertAfter:{label:z.cell.insertAfter,g= roup:'tablecell',command:'cellInsertAfter',order:10},tablecell_delete:{la= bel:z.cell.deleteCell,group:'tablecell',command:'cellDelete',order:15},ta= blecell_properties:{label:z.cell.title,group:'tablecellproperties',comman= d:'cellProperties',order:20},tablerow:{label:z.row.menu,group:'tablerow',= order:1,getItems:function(){return{tablerow_insertBefore:2,tablerow_inser= tAfter:2,tablerow_delete:2};}},tablerow_insertBefore:{label:z.row.insertB= efore,group:'tablerow',command:'rowInsertBefore',order:5},tablerow_insert= After:{label:z.row.insertAfter,group:'tablerow',command:'rowInsertAfter',= order:10},tablerow_delete:{label:z.row.deleteRow,group:'tablerow',command= :'rowDelete',order:15},tablecolumn:{label:z.column.menu,group:'tablecolum= n',order:1,getItems:function(){return{tablecolumn_insertBefore:2,tablecol= umn_insertAfter:2,tablecolumn_delete:2};}},tablecolumn_insertBefore:{labe= l:z.column.insertBefore,group:'tablecolumn',command:'columnInsertBefore',= order:5},tablecolumn_insertAfter:{label:z.column.insertAfter,group:'table= column',command:'columnInsertAfter',order:10},tablecolumn_delete:{label:z= .column.deleteColumn,group:'tablecolumn',command:'columnDelete',order:15}= }); if(y.contextMenu)y.contextMenu.addListener(function(A,B){if(!A)return = null;while(A){if(A.getName() in = x)return{tablecell:2,tablerow:2,tablecolumn:2};A=3DA.getParent();}return = null;});},getSelectedCells:n};j.add('tabletools',j.tabletools);})();j.add= ('specialchar',{init:function(l){var = m=3D'specialchar';a.dialog.add(m,this.path+'dialogs/specialchar.js');l.ad= dCommand(m,new = a.dialogCommand(m));l.ui.addButton('SpecialChar',{label:l.lang.specialCha= r.toolbar,command:m});}});(function(){var = l=3D{exec:function(n){n.container.focusNext(true);}},m=3D{exec:function(n= ){n.container.focusPrevious(true);}};j.add('tab',{requires:['keystrokes']= ,init:function(n){var = o=3Dn.keystrokeHandler.keystrokes;o[9]=3D'tab';o[2000+9]=3D'shiftTab';var= = p=3Dn.config.tabSpaces,q=3D'';while(p--)q+=3D'\xa0';n.addCommand('tab',{e= xec:function(r){if(!r.fire('tab'))if(q.length>0)r.insertHtml(q);else = return r.execCommand('blur');return = true;}});n.addCommand('shiftTab',{exec:function(r){if(!r.fire('shiftTab')= )return r.execCommand('blurBack');return = true;}});n.addCommand('blur',l);n.addCommand('blurBack',m);}});})();h.pro= totype.focusNext=3Dfunction(l){var u=3Dthis;var = m=3Du.$,n=3Du.getTabIndex(),o,p,q,r,s,t;if(n<=3D0){s=3Du.getNextSourceNod= e(l,1);while(s){if(s.isVisible()&&s.getTabIndex()=3D=3D=3D0){q=3Ds;break;= }s=3Ds.getNextSourceNode(false,1);}}else{s=3Du.getDocument().getBody().ge= tFirst();while(s=3Ds.getNextSourceNode(false,1)){if(!o)if(!p&&s.equals(u)= ){p=3Dtrue;if(l){if(!(s=3Ds.getNextSourceNode(true,1)))break;o=3D1;}}else= = if(p&&!u.contains(s))o=3D1;if(!s.isVisible()||(t=3Ds.getTabIndex())<0)con= tinue;if(o&&t=3D=3Dn){q=3Ds;break;}if(t>n&&(!q||!r||tr){q=3Dt;r=3Ds;}}el= se{if(o&&s=3D=3Dn){q=3Dt;break;}if(sr)){q=3Dt;r=3Ds;}}}if(q)q.= focus();};i.tabSpaces=3D0;(function(){j.add('templates',{requires:['dialo= g'],init:function(n){a.dialog.add('templates',a.getUrl(this.path+'dialogs= /templates.js'));n.addCommand('templates',new = a.dialogCommand('templates'));n.ui.addButton('Templates',{label:n.lang.te= mplates.button,command:'templates'});}});var = l=3D{},m=3D{};a.addTemplates=3Dfunction(n,o){l[n]=3Do;};a.getTemplates=3D= function(n){return l[n];};a.loadTemplates=3Dfunction(n,o){var p=3D[]; for(var = q=3D0;q0)a.scriptLoader.load(p,o);else = setTimeout(o,0);};})();i.templates=3D'default';i.templates_files=3D[a.get= Url('plugins/templates/templates/default.js')];i.templates_replaceContent= =3Dtrue;(function(){var = l=3Dfunction(){this.toolbars=3D[];this.focusCommandExecuted=3Dfalse;};l.p= rototype.focus=3Dfunction(){for(var = n=3D0,o;o=3Dthis.toolbars[n++];)for(var = p=3D0,q;q=3Do.items[p++];){if(q.focus){q.focus();return;}}};var = m=3D{toolbarFocus:{modes:{wysiwyg:1,source:1},exec:function(n){if(n.toolb= ox){n.toolbox.focusCommandExecuted=3Dtrue;if(c)setTimeout(function(){n.to= olbox.focus();},100);else = n.toolbox.focus();}}}};j.add('toolbar',{init:function(n){var = o=3Dfunction(p,q){switch(q){case 39:case = 9:while((p=3Dp.next||p.toolbar.next&&p.toolbar.next.items[0])&&!p.focus){= }if(p)p.focus();else n.toolbox.focus();return false;case 37:case = 2000+9:while((p=3Dp.previous||p.toolbar.previous&&p.toolbar.previous.item= s[p.toolbar.previous.items.length-1])&&!p.focus){}if(p)p.focus();else{var= = r=3Dn.toolbox.toolbars[n.toolbox.toolbars.length-1].items;r[r.length-1].f= ocus();}return false;case 27:n.focus();return false;case 13:case = 32:p.execute();return false;}return = true;};n.on('themeSpace',function(p){if(p.data.space=3D=3Dn.config.toolba= rLocation){n.toolbox=3Dnew l();var q=3D['
':' style=3D"display:none">');var = t=3Dn.toolbox.toolbars,u=3Dn.config.toolbar instanceof = Array?n.config.toolbar:n.config['toolbar_'+n.config.toolbar];for(var = v=3D0;v');s= =3D0;}if(w=3D=3D=3D'/'){q.push('
');continue;}q.push('');var = z=3Dt.push(y)-1;if(z>0){y.previous=3Dt[z-1];y.previous.next=3Dy;}for(var = A=3D0;A');s=3D1;}}else = if(s){q.push('');s=3D0;}var = D=3DB.render(n,q);z=3Dy.items.push(D)-1;if(z>0){D.previous=3Dy.items[z-1]= ;D.previous.next=3DD;}D.toolbar=3Dy;D.onkey=3Do;D.onfocus=3Dfunction(){if= (!n.toolbox.focusCommandExecuted)n.focus();};}}if(s){q.push('');s=3D= 0;}q.push('');}q.push('
');if(n.config.= toolbarCanCollapse){var = E=3De.addFunction(function(){n.execCommand('toolbarCollapse');}),F=3D'cke= _'+e.getNextNumber();n.addCommand('toolbarCollapse',{exec:function(G){var= = H=3Da.document.getById(F),I=3DH.getPrevious(),J=3DG.getThemeSpace('conten= ts'),K=3DI.getParent(),L=3DparseInt(J.$.style.height,10),M=3DK.$.offsetHe= ight; if(I.isVisible()){I.hide();H.addClass('cke_toolbox_collapser_min');H.setA= ttribute('title',G.lang.toolbarExpand);}else{I.show();H.removeClass('cke_= toolbox_collapser_min');H.setAttribute('title',G.lang.toolbarCollapse);}v= ar = N=3DK.$.offsetHeight-M;J.setStyle('height',L-N+'px');},modes:{wysiwyg:1,s= ource:1}});q.push('');}p.data.html+=3Dq.j= oin('');}});n.addCommand('toolbarFocus',m.toolbarFocus);}});})();k.separa= tor=3D{render:function(l,m){m.push('');return{};}};i.toolbarLocation=3D'top';i= .toolbar_Basic=3D[['Bold','Italic','-','NumberedList','BulletedList','-',= 'Link','Unlink','-','About']];i.toolbar_Full=3D[['Source','-','Save','New= Page','Preview','-','Templates'],['Cut','Copy','Paste','PasteText','Paste= FromWord','-','Print','SpellChecker','Scayt'],['Undo','Redo','-','Find','= Replace','-','SelectAll','RemoveFormat'],['Form','Checkbox','Radio','Text= Field','Textarea','Select','Button','ImageButton','HiddenField'],'/',['Bo= ld','Italic','Underline','Strike','-','Subscript','Superscript'],['Number= edList','BulletedList','-','Outdent','Indent','Blockquote'],['JustifyLeft= ','JustifyCenter','JustifyRight','JustifyBlock'],['Link','Unlink','Anchor= '],['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar','Page= Break'],'/',['Styles','Format','Font','FontSize'],['TextColor','BGColor']= ,['Maximize','ShowBlocks','-','About']];i.toolbar=3D'Full';i.toolbarCanCo= llapse=3Dtrue;(function(){j.add('undo',{requires:['selection','wysiwygare= a'],init:function(r){var s=3Dnew = n(r),t=3Dr.addCommand('undo',{exec:function(){if(s.undo()){r.selectionCha= nge();this.fire('afterUndo');}},state:0,canUndo:false}),u=3Dr.addCommand(= 'redo',{exec:function(){if(s.redo()){r.selectionChange();this.fire('after= Redo');}},state:0,canUndo:false});s.onChange=3Dfunction(){t.setState(s.un= doable()?2:0);u.setState(s.redoable()?2:0);};function = v(w){if(s.enabled&&w.data.command.canUndo!=3D=3Dfalse)s.save();};r.on('be= foreCommandExec',v);r.on('afterCommandExec',v);r.on('saveSnapshot',functi= on(){s.save();});r.on('contentDom',function(){r.document.on('keydown',fun= ction(w){if(!w.data.$.ctrlKey&&!w.data.$.metaKey)s.type(w);});});r.on('be= foreModeUnload',function(){r.mode=3D=3D'wysiwyg'&&s.save(true);});r.on('m= ode',function(){s.enabled=3Dr.mode=3D=3D'wysiwyg';s.onChange();});r.ui.ad= dButton('Undo',{label:r.lang.undo,command:'undo'}); r.ui.addButton('Redo',{label:r.lang.redo,command:'redo'});r.resetUndo=3Df= unction(){s.reset();r.fire('saveSnapshot');};}});function l(r){var = t=3Dthis;var = s=3Dr.getSelection();t.contents=3Dr.getSnapshot();t.bookmarks=3Ds&&s.crea= teBookmarks2(true);if(c)t.contents=3Dt.contents.replace(/\s+_cke_expando=3D= ".*?"/g,'');};var = m=3D/\b(?:href|src|name)=3D"[^"]*?"/gi;l.prototype=3D{equals:function(r,s= ){var = t=3Dthis.contents,u=3Dr.contents;if(c&&(b.ie7Compat||b.ie6Compat)){t=3Dt.= replace(m,'');u=3Du.replace(m,'');}if(t!=3Du)return false;if(s)return = true;var = v=3Dthis.bookmarks,w=3Dr.bookmarks;if(v||w){if(!v||!w||v.length!=3Dw.leng= th)return false;for(var x=3D0;x25){this.save();this.modifiersCount=3D1;}}else = if(!x){this.modifiersCount=3D0;this.typesCount++;if(this.typesCount>25){t= his.save();this.typesCount=3D1;}}this.typing=3Dtrue;},reset:function(){va= r = r=3Dthis;r.lastKeystroke=3D0;r.snapshots=3D[];r.index=3D-1;r.limit=3Dr.ed= itor.config.undoStackSize;r.currentImage=3Dnull;r.hasUndo=3Dfalse;r.hasRe= do=3Dfalse;r.resetType();},resetType:function(){var = r=3Dthis;r.typing=3Dfalse;delete = r.lastKeystroke;r.typesCount=3D0;r.modifiersCount=3D0;},fireChange:functi= on(){var = r=3Dthis;r.hasUndo=3D!!r.getNextImage(true);r.hasRedo=3D!!r.getNextImage(= false);r.resetType();r.onChange();},save:function(r,s,t){var = v=3Dthis;var u=3Dv.snapshots;if(!s)s=3Dnew = l(v.editor);if(v.currentImage&&s.equals(v.currentImage,r))return = false;u.splice(v.index+1,u.length-v.index-1);if(u.length=3D=3Dv.limit)u.s= hift();v.index=3Du.push(s)-1;v.currentImage=3Ds;if(t!=3D=3Dfalse)v.fireCh= ange();return true;},restoreImage:function(r){var = t=3Dthis;t.editor.loadSnapshot(r.contents);if(r.bookmarks)t.editor.getSel= ection().selectBookmarks(r.bookmarks); else if(c){var = s=3Dt.editor.document.getBody().$.createTextRange();s.collapse(true);s.se= lect();}t.index=3Dr.index;t.currentImage=3Dr;t.fireChange();},getNextImag= e:function(r){var w=3Dthis;var = s=3Dw.snapshots,t=3Dw.currentImage,u,v;if(t)if(r)for(v=3Dw.index-1;v>=3D0= ;v--){u=3Ds[v];if(!t.equals(u,true)){u.index=3Dv;return u;}}else = for(v=3Dw.index+1;v]*>\s*(?:= ]*>| |\u00A0| )?\s*(:?<\/\1>)?\s*$/gi;function n(w){var = B=3Dthis;if(B.mode=3D=3D'wysiwyg'){B.focus();var = x=3DB.getSelection(),y=3Dw.data;if(B.dataProcessor)y=3DB.dataProcessor.to= Html(y);if(c){var z=3Dx.isLocked;if(z)x.unlock();var = A=3Dx.getNative();if(A.type=3D=3D'Control')A.clear();A.createRange().past= eHTML(y);if(z)B.getSelection().lock();}else = B.document.$.execCommand('inserthtml',false,y);}};function = o(w){if(this.mode=3D=3D'wysiwyg'){this.focus();this.fire('saveSnapshot');= var = x=3Dw.data,y=3Dx.getName(),z=3Df.$block[y],A=3Dthis.getSelection(),B=3DA.= getRanges(),C=3DA.isLocked;if(C)A.unlock();var D,E,F,G;for(var = H=3DB.length-1;H>=3D0;H--){D=3DB[H];D.deleteContents();E=3D!H&&x||x.clone= (true);var = I,J;if(z)while((I=3DD.getCommonAncestor(false,true))&&(J=3Df[I.getName()]= )&&!(J&&J[y])){if(I.getName() in f.span)D.splitElement(I);else = if(D.checkStartOfBlock()&&D.checkEndOfBlock()){D.setStartBefore(I);D.coll= apse(true);I.remove();}else = D.splitBlock();}D.insertNode(E);if(!F)F=3DE;}D.moveToPosition(F,4);var = K=3DF.getNextSourceNode(true);if(K&&K.type=3D=3D1)D.moveToElementEditStar= t(K);A.selectRanges([D]);if(C)this.getSelection().lock();e.setTimeout(fun= ction(){this.fire('saveSnapshot');},0,this);}};function = p(w){if(!w.checkDirty())setTimeout(function(){w.resetDirty();});};var = q=3Dd.walker.whitespaces(true),r=3Dd.walker.bookmark(false,true);function= s(w){return q(w)&&r(w);};function t(w){return = w.type=3D=3D3&&e.trim(w.getText()).match(/^(?: |\xa0)$/);};function = u(w){var = x=3Dw.editor,y=3Dw.data.path,z=3Dy.blockLimit,A=3Dw.data.selection,B=3DA.= getRanges()[0],C=3Dx.document.getBody(),D=3Dx.config.enterMode;if(D!=3D2&= &B.collapsed&&z.getName()=3D=3D'body'&&!y.block){p(x); var E=3DB.fixBlock(true,x.config.enterMode=3D=3D3?'div':'p');if(c){var = F=3DE.getFirst(s);F&&t(F)&&F.remove();}if(E.getOuterHtml().match(m)){var = G=3DE.getPrevious(q),H=3DE.getNext(q);if(G&&G.getName&&!(G.getName() in = l)&&B.moveToElementEditStart(G)||H&&H.getName&&!(H.getName() in = l)&&B.moveToElementEditStart(H))E.remove();}B.select();if(!c)x.selectionC= hange();}var = I=3DC.getLast(d.walker.whitespaces(true));if(I&&I.getName&&I.getName() = in l){p(x);if(!c)C.appendBogus();else = C.append(x.document.createText('\xa0'));}};j.add('wysiwygarea',{requires:= ['editingblock'],init:function(w){var = x=3Dw.config.enterMode!=3D2?w.config.enterMode=3D=3D3?'div':'p':false;w.o= n('editingBlockReady',function(){var = z,A,B,C,D,E,F,G=3Db.isCustomDomain(),H=3Dfunction(){if(B)B.remove();if(A)= A.remove();E=3D0;var K=3D'void( '+(b.gecko?'setTimeout':'')+'( = function(){'+'document.open();'+(c&&G?'document.domain=3D"'+document.doma= in+'";':'')+'document.write( window.parent[ "_cke_htmlToLoad_'+w.name+'" = ] );'+'document.close();'+'window.parent[ "_cke_htmlToLoad_'+w.name+'" ] = =3D null;'+'}'+(b.gecko?', 0 )':')()')+' = )';if(b.opera)K=3D'void(0);';B=3Dh.createFromHtml('');var = L=3Dw.lang.editorTitle.replace('%1',w.name);if(b.gecko){B.on('load',funct= ion(M){M.removeListener();J(B.$.contentWindow);});z.setAttributes({role:'= region',title:L});B.setAttributes({role:'region',title:' '});}else = if(b.webkit){B.setAttribute('title',L);B.setAttribute('name',L);}else = if(c){A=3Dh.createFromHtml('
'+''+e.htmlEncode(L)+''+'
',a.do= cument);B.appendTo(A);A.appendTo(z);}if(!c)z.append(B);},I=3D'',J=3Dfunction(K){if(E)return;E=3D1;var = L=3DK.document,M=3DL.body,N=3DL.getElementById('cke_actscrpt');N.parentNo= de.removeChild(N);delete = a._['contentDomReady'+w.name];M.spellcheck=3D!w.config.disableNativeSpell= Checker;if(c){M.hideFocus=3Dtrue;M.disabled=3Dtrue;M.contentEditable=3Dtr= ue;M.removeAttribute('disabled');}else = L.designMode=3D'on';try{L.execCommand('enableObjectResizing',false,!w.con= fig.disableObjectResizing);}catch(S){}try{L.execCommand('enableInlineTabl= eEditing',false,!w.config.disableNativeTableHandles);}catch(T){}K=3Dw.win= dow=3Dnew d.window(K); L=3Dw.document=3Dnew = g(L);if(!(c||b.opera))L.on('mousedown',function(U){var = V=3DU.data.getTarget();if(V.is('img','hr','input','textarea','select'))w.= getSelection().selectElement(V);});if(b.webkit){L.on('click',function(U){= if(U.data.getTarget().is('input','select'))U.data.preventDefault();});L.o= n('mouseup',function(U){if(U.data.getTarget().is('input','textarea'))U.da= ta.preventDefault();});}if(c&&L.$.compatMode=3D=3D'CSS1Compat'){var = O=3DL.getDocumentElement();O.on('mousedown',function(U){if(U.data.getTarg= et().equals(O))y.focus();});}var = P=3Dc||b.webkit?K:L;P.on('blur',function(){w.focusManager.blur();});P.on(= 'focus',function(){if(b.gecko){var = U=3DM;while(U.firstChild)U=3DU.firstChild;if(!U.nextSibling&&'BR'=3D=3DU.= tagName&&U.hasAttribute('_moz_editor_bogus_node')){var = V=3DL.$.createEvent('KeyEvents');V.initKeyEvent('keypress',true,true,K.$,= false,false,false,false,0,32);L.$.dispatchEvent(V);var = W=3DL.getBody().getFirst();if(w.config.enterMode=3D=3D2)L.createElement('= br',{attributes:{_moz_dirty:''}}).replace(W);else = W.remove();}}w.focusManager.focus();});var = Q=3Dw.keystrokeHandler;if(Q)Q.attach(L);if(c){L.on('keydown',function(U){= var = V=3DU.data.getKeystroke()=3D=3D8&&w.getSelection().getSelectedElement();i= f(V){w.fire('saveSnapshot');V.remove();w.fire('saveSnapshot');U.cancel();= }});if(L.$.compatMode=3D=3D'CSS1Compat'){var = R=3D{33:1,34:1};L.on('keydown',function(U){if(U.data.getKeystroke() in = R)setTimeout(function(){w.getSelection().scrollIntoView();},0);});}}if(w.= contextMenu)w.contextMenu.addTarget(L,w.config.browserContextMenuOnCtrl!=3D= =3Dfalse);setTimeout(function(){w.fire('contentDom');if(F){w.mode=3D'wysi= wyg';w.fire('mode');F=3Dfalse;}C=3Dfalse;if(D){w.focus();D=3Dfalse;}setTi= meout(function(){w.fire('dataReady');},0);if(c)setTimeout(function(){if(w= .document){var = U=3Dw.document.$.body;U.runtimeStyle.marginBottom=3D'0px';U.runtimeStyle.= marginBottom=3D'';}},1000);},0);};w.addMode('wysiwyg',{load:function(K,L,= M){z=3DK;if(c&&b.quirks)K.setStyle('position','relative');w.mayBeDirty=3D= true;F=3Dtrue;if(M)this.loadSnapshotData(L);else = this.loadData(L);},loadData:function(K){C=3Dtrue;if(w.dataProcessor)K=3Dw= .dataProcessor.toHtml(K,x);K=3Dw.config.docType+''+''+''+''+''+''+K= +''+''+I;window['_cke_htmlToLoad_'+w.name]=3DK;a._['content= DomReady'+w.name]=3DJ;H();if(b.opera){var = L=3DB.$.contentWindow.document; L.open();L.write(K);L.close();}},getData:function(){var = K=3DB.getFrameDocument().getBody().getHtml();if(w.dataProcessor)K=3Dw.dat= aProcessor.toDataFormat(K,x);if(w.config.ignoreEmptyParagraph)K=3DK.repla= ce(m,'');return K;},getSnapshotData:function(){return = B.getFrameDocument().getBody().getHtml();},loadSnapshotData:function(K){B= .getFrameDocument().getBody().setHtml(K);},unload:function(K){w.window=3D= w.document=3DB=3Dz=3DD=3Dnull;w.fire('contentDomUnload');},focus:function= (){if(C)D=3Dtrue;else if(w.window){w.window.focus();if(c)try{var = K=3Dw.getSelection();K=3DK&&K.getNative();var = L=3DK&&K.type&&K.createRange();if(L){K.empty();L.select();}}catch(M){}w.s= electionChange();}}});w.on('insertHtml',n,null,null,20);w.on('insertEleme= nt',o,null,null,20);w.on('selectionChange',u,null,null,1);});if(c){var = y;w.on('uiReady',function(){y=3Dw.container.append(h.createFromHtml(''));y.on('focus',function(){w.focus();});});}}});if(b.gecko)= {var v=3Dwindow.top;(function(){var = w=3Dv.document.body;if(!w)v.addEventListener('load',arguments.callee,fals= e);else = w.setAttribute('onpageshow',w.getAttribute('onpageshow')+';event.persiste= d && CKEDITOR.tools.callFunction('+e.addFunction(function(){var = x=3Da.instances,y,z;for(var A in = x){y=3Dx[A];z=3Dy.document;if(z){z.$.designMode=3D'off';z.$.designMode=3D= 'on';}}})+')');})();}})();i.disableObjectResizing=3Dfalse;i.disableNative= TableHandles=3Dtrue;i.disableNativeSpellChecker=3Dtrue;i.ignoreEmptyParag= raph=3Dtrue;j.add('wsc',{init:function(l){var = m=3D'checkspell',n=3Dl.addCommand(m,new = a.dialogCommand(m));n.modes=3D{wysiwyg:!b.opera&&document.domain=3D=3Dwin= dow.location.hostname};l.ui.addButton('SpellChecker',{label:l.lang.spellC= heck.toolbar,command:m});a.dialog.add(m,this.path+'dialogs/wsc.js');}});i= .wsc_customerId=3Di.wsc_customerId||'1:ua3xw1-2XyGJ3-GWruD3-6OFNT1-oXcuB1= -nR6Bp4-hgQHc-EcYng3-sdRXG3-NOfFk';i.wsc_customLoaderScript=3Di.wsc_custo= mLoaderScript||null;j.add('styles',{requires:['selection']});a.editor.pro= totype.attachStyleStateChange=3Dfunction(l,m){var = n=3Dthis._.styleStateChangeCallbacks;if(!n){n=3Dthis._.styleStateChangeCa= llbacks=3D[];this.on('selectionChange',function(o){for(var = p=3D0;p'+N+'';else = L.setHtml(N);M.remove();};function t(L){var = M=3D/(\S\s*)\n(?:\s|(]+_fck_bookmark.*?\/span>))*\n(?!$)/gi,N=3DL= .getName(),O=3Du(L.getOuterHtml(),M,function(Q,R,S){return = R+''+S+'
';}),P=3D[];O.replace(/
([\s\S]*?)<\/pre>/gi,funct=
ion(Q,R){P.push(R);});return P;};function u(L,M,N){var =
O=3D'',P=3D'';L=3DL.replace(/(^]+_fck_bookmark.*?\/span>)|(]+_fck_bookmark.*?\/span>$)/gi,function(Q,R,S){R&&(O=3DR);S&&(P=3DS);re=
turn '';});return O+L.replace(M,N)+P;};function v(L,M){var N=3Dnew =
d.documentFragment(M.getDocument());for(var O=3D0;O');P=3DP.repl=
ace(/[ \t]{2,}/g,function(R){return e.repeat(' ',R.length-1)+' =
';});var Q=3DM.clone();Q.setHtml(P);N.append(Q);}return N;};function =
w(L,M){var N=3DL.getHtml();N=3Du(N,/(?:^[ \t\n\r]+)|(?:[ =
\t\n\r]+$)/g,'');N=3DN.replace(/[ \t\r\n]*(]*>)[ =
\t\r\n]*/gi,'$1');N=3DN.replace(/([ \t\n\r]+| )/g,' =
');N=3DN.replace(/]*>/gi,'\n');if(c){var =
O=3DL.getDocument().createElement('div');O.append(M);M.$.outerHTML=3D''+N+'
';M=3DO.getFirst().remove();}else M.setHtml(N);return = M;};function x(L,M){var = N=3DL._.definition,O=3DN.attributes,P=3DN.styles,Q=3DI(L);function = R(){for(var T in = O){if(T=3D=3D'class'&&M.getAttribute(T)!=3DO[T])continue;M.removeAttribut= e(T);}};R();for(var S in = P)M.removeStyle(S);O=3DQ[M.getName()];if(O)R();A(M);};function = y(L,M){var = N=3DL._.definition,O=3DN.attributes,P=3DN.styles,Q=3DI(L),R=3DM.getElemen= tsByTag(L.element);for(var = S=3DR.count();--S>=3D0;)x(L,R.getItem(S));for(var T in = Q){if(T!=3DL.element){R=3DM.getElementsByTag(T);for(S=3DR.count()-1;S>=3D= 0;S--){var U=3DR.getItem(S);z(U,Q[T]);}}}};function z(L,M){var = N=3DM&&M.attributes;if(N)for(var O=3D0;O0)F+=3D(E= .$.offsetHeight||0)-(E.$.clientHeight||0);E.setStyle('height',F+'px');t._= .currentBlock.element.setStyle('display','none').removeStyle('display');}= else v.getFirst().removeStyle('height');var = G=3Dt.element,H=3DG.getWindow(),I=3DH.getScrollPosition(),J=3DH.getViewPa= neSize(),K=3D{height:G.$.offsetHeight,width:G.$.offsetWidth};if(z?A<0:A+K= .width>J.width+I.x)A+=3DK.width*(z?1:-1);if(B+K.height>J.height+I.y)B-=3D= K.height;v.setStyles({top:B+'px',left:A+'px',opacity:'1'});},this);t.isLo= aded?D():t.onLoad=3DD;e.setTimeout(function(){if(x.voiceLabel)if(b.gecko)= {var = E=3Dw.getParent();E.setAttribute('role','region');E.setAttribute('title',= x.voiceLabel);w.setAttribute('role','region');w.setAttribute('title',' = ');}w.$.contentWindow.focus();this.allowBlur(true);},0,this);},0,this);th= is.visible=3D1;if(this.onShow)this.onShow.call(this);m=3Dfalse;},hide:fun= ction(){var = o=3Dthis;if(o.visible&&(!o.onHide||o.onHide.call(o)!=3D=3Dtrue)){o.hideCh= ild();o.element.setStyle('display','none');o.visible=3D0;}},allowBlur:fun= ction(o){var p=3Dthis._.panel;if(o!=3Dundefined)p.allowBlur=3Do;return = p.allowBlur;},showAsChild:function(o,p,q,r,s,t){if(this._.activeChild=3D=3D= o&&o._.panel._.offsetParentId=3D=3Dq.getId())return;this.hideChild();o.on= Hide=3De.bind(function(){e.setTimeout(function(){if(!this._.focused)this.= hide();},0,this);},this);this._.activeChild=3Do;this._.focused=3Dfalse;o.= showBlock(p,q,r,s,t);if(b.ie7Compat||b.ie8&&b.ie6Compat)setTimeout(functi= on(){o.element.getChild(0).$.style.cssText+=3D'';},100);},hideChild:funct= ion(){var o=3Dthis._.activeChild;if(o){delete o.onHide;delete = this._.activeChild;o.hide();}}}});a.on('instanceDestroyed',function(){var= o=3De.isEmpty(a.instances);for(var p in l){var = q=3Dl[p];if(o)q.destroy();else = q.element.hide();}o&&(l=3D{});});})();j.add('menu',{beforeInit:function(l= ){var m=3Dl.config.menu_groups.split(','),n=3D{};for(var = o=3D0;o'],y=3Dq.length,z=3Dy&&q[0].group;for(var = A=3D0;A');z=3DB.group;}B.render(this,A,x);}x.p= ush('');t.setHtml(x.join(''));if(this.parent)this.parent._.panel.sh= owAsChild(s,this.id,m,n,o,p);else = s.showBlock(this.id,m,n,o,p);r.fire('menuShow',[s]);},hide:function(){thi= s._.panel&&this._.panel.hide();}}});function = l(m){m.sort(function(n,o){if(n.groupo.group)return 1;return = n.ordero.order?1:0; });};})();a.menuItem=3De.createClass({$:function(l,m,n){var = o=3Dthis;e.extend(o,n,{order:0,className:'cke_button_'+m});o.group=3Dl._.= menuGroups[o.group];o.editor=3Dl;o.name=3Dm;},proto:{render:function(l,m,= n){var t=3Dthis;var o=3Dl.id+String(m),p=3Dtypeof = t.state=3D=3D'undefined'?2:t.state,q=3D' = cke_'+(p=3D=3D1?'on':p=3D=3D0?'disabled':'off'),r=3Dt.label;if(p=3D=3D0)r= =3Dt.editor.lang.common.unavailable.replace('%1',r);if(t.className)q+=3D'= '+t.className;n.push(''+'');if(t.getItems)n.push('');n.push(r,'');}}});i.m= enu_subMenuDelay=3D400;i.menu_groups=3D'clipboard,form,tablecell,tablecel= lproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,r= adio,textfield,hiddenfield,imagebutton,button,select,textarea';(function(= ){function l(){var v=3Dthis;try{var = s=3Dv.getSelection();if(!s)return;var t=3Ds.getStartElement(),u=3Dnew = d.elementPath(t);if(!u.compare(v._.selectionPreviousPath)){v._.selectionP= reviousPath=3Du;v.fire('selectionChange',{selection:s,path:u,element:t});= }}catch(w){}};var m,n;function = o(){n=3Dtrue;if(m)return;p.call(this);m=3De.setTimeout(p,200,this);};func= tion p(){m=3Dnull;if(n){e.setTimeout(l,0,this);n=3Dfalse;}};var = q=3D{exec:function(s){switch(s.mode){case = 'wysiwyg':s.document.$.execCommand('SelectAll',false,null);break;case = 'source':}},canUndo:false};j.add('selection',{init:function(s){s.on('cont= entDom',function(){var t=3Ds.document,u=3Dt.getBody();if(c){var = v,w;u.on('focusin',function(){if(v){try{v.select();}catch(z){}v=3Dnull;}}= );s.window.on('focus',function(){w=3Dtrue;y();});u.on('beforedeactivate',= function(){w=3Dfalse;});u.on('mousedown',x);u.on('mouseup',function(z){z=3D= z.data;if(z.$.button=3D=3D2&&z.getTarget().hasAscendant('table'))return;w= =3Dtrue;setTimeout(function(){y(true);},0);});u.on('keydown',x);u.on('key= up',function(){w=3Dtrue; y();});t.on('selectionchange',y);function x(){w=3Dfalse;};function = y(z){if(w){var = A=3Ds.document,B=3DA&&A.$.selection;if(z&&B&&B.type=3D=3D'None')if(!A.$.q= ueryCommandEnabled('InsertImage')){e.setTimeout(y,50,this,true);return;}v= =3DB&&B.createRange();o.call(s);}};}else{t.on('mouseup',o,s);t.on('keyup'= ,o,s);}});s.addCommand('selectAll',q);s.ui.addButton('SelectAll',{label:s= .lang.selectAll,command:'selectAll'});s.selectionChange=3Do;}});a.editor.= prototype.getSelection=3Dfunction(){return = this.document&&this.document.getSelection();};a.editor.prototype.forceNex= tSelectionCheck=3Dfunction(){delete = this._.selectionPreviousPath;};g.prototype.getSelection=3Dfunction(){var = s=3Dnew = d.selection(this);return!s||s.isInvalid?null:s;};a.SELECTION_NONE=3D1;a.S= ELECTION_TEXT=3D2;a.SELECTION_ELEMENT=3D3;d.selection=3Dfunction(s){var = v=3Dthis;var t=3Ds.getCustomData('cke_locked_selection');if(t)return = t;v.document=3Ds;v.isLocked=3Dfalse;v._=3D{cache:{}};if(c){var = u=3Dv.getNative().createRange();if(!u||u.item&&u.item(0).ownerDocument!=3D= v.document.$||u.parentElement&&u.parentElement().ownerDocument!=3Dv.docum= ent.$)v.isInvalid=3Dtrue;}return v;};var = r=3D{img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:= 1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,th:1,thead:1,tfo= ot:1};d.selection.prototype=3D{getNative:c?function(){return = this._.cache.nativeSel||(this._.cache.nativeSel=3Dthis.document.$.selecti= on);}:function(){return = this._.cache.nativeSel||(this._.cache.nativeSel=3Dthis.document.getWindow= ().$.getSelection());},getType:c?function(){var = s=3Dthis._.cache;if(s.type)return s.type;var t=3D1;try{var = u=3Dthis.getNative(),v=3Du.type;if(v=3D=3D'Text')t=3D2;if(v=3D=3D'Control= ')t=3D3;if(u.createRange().parentElement)t=3D2;}catch(w){}return = s.type=3Dt;}:function(){var s=3Dthis._.cache;if(s.type)return s.type;var = t=3D2,u=3Dthis.getNative();if(!u)t=3D1;else if(u.rangeCount=3D=3D1){var = v=3Du.getRangeAt(0),w=3Dv.startContainer;if(w=3D=3Dv.endContainer&&w.node= Type=3D=3D1&&v.endOffset-v.startOffset=3D=3D1&&r[w.childNodes[v.startOffs= et].nodeName.toLowerCase()])t=3D3;}return = s.type=3Dt;},getRanges:c?(function(){var = s=3Dfunction(t,u){t=3Dt.duplicate();t.collapse(u);var = v=3Dt.parentElement(),w=3Dv.childNodes,x;for(var = y=3D0;y0)break;else = if(A=3D=3D=3D0)return{container:v,offset:y};x=3Dnull;}}if(!x){x=3Dt.dupli= cate();x.moveToElementText(v);x.collapse(false);}x.setEndPoint('StartToSt= art',t);var = B=3Dx.text.replace(/(\r\n|\r)/g,'\n').length;while(B>0)B-=3Dw[--y].nodeVa= lue.length; if(B=3D=3D=3D0)return{container:v,offset:y};else = return{container:w[y],offset:-B};};return function(){var E=3Dthis;var = t=3DE._.cache;if(t.ranges)return t.ranges;var = u=3DE.getNative(),v=3Du&&u.createRange(),w=3DE.getType(),x;if(!u)return[]= ;if(w=3D=3D2){x=3Dnew d.range(E.document);var = y=3Ds(v,true);x.setStart(new = d.node(y.container),y.offset);y=3Ds(v);x.setEnd(new = d.node(y.container),y.offset);return t.ranges=3D[x];}else = if(w=3D=3D3){var z=3DE._.cache.ranges=3D[];for(var = A=3D0;A=3D0){q.collapse(true);o.setEnd(q.endContainer.$,q.endO= ffset);}else throw r;}var = p=3Dq.document.getSelection().getNative();p.removeAllRanges();p.addRange(= o);};})();(function(){var l=3D{elements:{$:function(m){var = n=3Dm.attributes._cke_realelement,o=3Dn&&new = a.htmlParser.fragment.fromHtml(decodeURIComponent(n)),p=3Do&&o.children[0= ];if(p){var q=3Dm.attributes.style;if(q){var = r=3D/(?:^|\s)width\s*:\s*(\d+)/i.exec(q),s=3Dr&&r[1];r=3D/(?:^|\s)height\= s*:\s*(\d+)/i.exec(q);var = t=3Dr&&r[1];if(s)p.attributes.width=3Ds;if(t)p.attributes.height=3Dt;}}re= turn = p;}}};j.add('fakeobjects',{requires:['htmlwriter'],afterInit:function(m){= var = n=3Dm.dataProcessor,o=3Dn&&n.htmlFilter;if(o)o.addRules(l);}});})();a.edi= tor.prototype.createFakeElement=3Dfunction(l,m,n,o){var = p=3Dthis.lang.fakeobjects,q=3D{'class':m,src:a.getUrl('images/spacer.gif'= ),_cke_realelement:encodeURIComponent(l.getOuterHtml()),alt:p[n]||p.unkno= wn};if(n)q._cke_real_element_type=3Dn;if(o)q._cke_resizable=3Do;return = this.document.createElement('img',{attributes:q});};a.editor.prototype.cr= eateFakeParserElement=3Dfunction(l,m,n,o){var p=3Dnew = a.htmlParser.basicWriter();l.writeHtml(p);var = q=3Dp.getHtml(),r=3Dthis.lang.fakeobjects,s=3D{'class':m,src:a.getUrl('im= ages/spacer.gif'),_cke_realelement:encodeURIComponent(q),alt:r[n]||r.unkn= own};if(n)s._cke_real_element_type=3Dn;if(o)s._cke_resizable=3Do;return = new = a.htmlParser.element('img',s);};a.editor.prototype.restoreRealElement=3Df= unction(l){var = m=3DdecodeURIComponent(l.getAttribute('_cke_realelement'));return = h.createFromHtml(m,this.document);};j.add('richcombo',{requires:['floatpa= nel','listblock','button'],beforeInit:function(l){l.ui.addHandler(3,k.ric= hCombo.handler);}});a.UI_RICHCOMBO=3D3;k.richCombo=3De.createClass({$:fun= ction(l){var = n=3Dthis;e.extend(n,l,{title:l.label,modes:{wysiwyg:1}});var = m=3Dn.panel||{};delete = n.panel;n.id=3De.getNextNumber();n.document=3Dm&&m.parent&&m.parent.getDo= cument()||a.document;m.className=3D(m.className||'')+' cke_rcombopanel'; n._=3D{panelDefinition:m,items:{},state:2};},statics:{handler:{create:fun= ction(l){return new k.richCombo(l);}}},proto:{renderHtml:function(l){var = m=3D[];this.render(l,m);return m.join('');},render:function(l,m){var = n=3D'cke_'+this.id,o=3De.addFunction(function(r){var u=3Dthis;var = s=3Du._;if(s.state=3D=3D0)return;u.createPanel(l);if(s.on){s.panel.hide()= ;return;}if(!s.committed){s.list.commit();s.committed=3D1;}var = t=3Du.getValue();if(t)s.list.mark(t);else = s.list.unmarkAll();s.panel.showBlock(u.id,new = h(r),4);},this),p=3D{id:n,combo:this,focus:function(){var = r=3Da.document.getById(n).getChild(1);r.focus();},execute:o};l.on('mode',= function(){this.setState(this.modes[l.mode]?2:0);},this);var = q=3De.addFunction(function(r,s){r=3Dnew d.event(r);var = t=3Dr.getKeystroke();switch(t){case 13:case 32:case = 40:e.callFunction(o,s);break;default:p.onkey(p,t);}r.preventDefault();});= m.push('','',this.label,''+(this.voiceLabel?this.voiceLabel+' = ':'')+''+''+this.label+''+''+''+''+''+'');if(this.onRen= der)this.onRender();return = p;},createPanel:function(l){if(this._.panel)return;var = m=3Dthis._.panelDefinition,n=3Dm.parent||a.document.getBody(),o=3Dnew = k.floatPanel(l,n,m),p=3Do.addListBlock(this.id,this.multiSelect),q=3Dthis= ;o.onShow=3Dfunction(){if(q.className)this.element.getFirst().addClass(q.= className+'_panel');q.setState(1);p.focus(!q.multiSelect&&q.getValue());q= ._.on=3D1;if(q.onOpen)q.onOpen();};o.onHide=3Dfunction(){if(q.className)t= his.element.getFirst().removeClass(q.className+'_panel');q.setState(2);q.= _.on=3D0;if(q.onClose)q.onClose();};o.onEscape=3Dfunction(){o.hide();q.do= cument.getById('cke_'+q.id).getFirst().getNext().focus();};p.onClick=3Dfu= nction(r,s){q.document.getWindow().focus();if(q.onClick)q.onClick.call(q,= r,s);if(s)q.setValue(r,q._.items[r]);else = q.setValue('');o.hide();};this._.panel=3Do;this._.list=3Dp;o.getBlock(thi= s.id).onHide=3Dfunction(){q._.on=3D0; q.setState(2);};if(this.init)this.init();},setValue:function(l,m){var = o=3Dthis;o._.value=3Dl;var = n=3Do.document.getById('cke_'+o.id+'_text');if(!(l||m)){m=3Do.label;n.add= Class('cke_inline_label');}else = n.removeClass('cke_inline_label');n.setHtml(typeof = m!=3D'undefined'?m:l);},getValue:function(){return = this._.value||'';},unmarkAll:function(){this._.list.unmarkAll();},mark:fu= nction(l){this._.list.mark(l);},hideItem:function(l){this._.list.hideItem= (l);},hideGroup:function(l){this._.list.hideGroup(l);},showAll:function()= {this._.list.showAll();},add:function(l,m,n){this._.items[l]=3Dn||l;this.= _.list.add(l,m,n);},startGroup:function(l){this._.list.startGroup(l);},co= mmit:function(){this._.list.commit();},setState:function(l){var = m=3Dthis;if(m._.state=3D=3Dl)return;m.document.getById('cke_'+m.id).setSt= ate(l);m._.state=3Dl;}}});k.prototype.addRichCombo=3Dfunction(l,m){this.a= dd(l,3,m);};j.add('htmlwriter');a.htmlWriter=3De.createClass({base:a.html= Parser.basicWriter,$:function(){var = n=3Dthis;n.base();n.indentationChars=3D'\t';n.selfClosingEnd=3D' = />';n.lineBreakChars=3D'\n';n.forceSimpleAmpersand=3Dfalse;n.sortAttribut= es=3Dtrue;n._.indent=3Dfalse;n._.indentation=3D'';n._.rules=3D{};var = l=3Df;for(var m in = e.extend({},l.$block,l.$listItem,l.$tableContent))n.setRules(m,{indent:tr= ue,breakBeforeOpen:true,breakAfterOpen:true,breakBeforeClose:!l[m]['#'],b= reakAfterClose:true});n.setRules('br',{breakAfterOpen:true});n.setRules('= pre',{indent:false});},proto:{openTag:function(l,m){var o=3Dthis;var = n=3Do._.rules[l];if(o._.indent)o.indentation();else = if(n&&n.breakBeforeOpen){o.lineBreak();o.indentation();}o._.output.push('= <',l);},openTagClose:function(l,m){var o=3Dthis;var = n=3Do._.rules[l];if(m)o._.output.push(o.selfClosingEnd);else{o._.output.p= ush('>');if(n&&n.indent)o._.indentation+=3Do.indentationChars;}if(n&&n.br= eakAfterOpen)o.lineBreak();},attribute:function(l,m){if(this.forceSimpleA= mpersand)m=3Dm.replace(/&/,'&');this._.output.push(' = ',l,'=3D"',m,'"');},closeTag:function(l){var n=3Dthis;var = m=3Dn._.rules[l];if(m&&m.indent)n._.indentation=3Dn._.indentation.substr(= n.indentationChars.length);if(n._.indent)n.indentation();else = if(m&&m.breakBeforeClose){n.lineBreak();n.indentation();}n._.output.push(= '');if(m&&m.breakAfterClose)n.lineBreak();},text:function(l){if(t= his._.indent){this.indentation();l=3De.ltrim(l);}this._.output.push(l);},= comment:function(l){if(this._.indent)this.indentation();this._.output.pus= h('');},lineBreak:function(){var = l=3Dthis;if(l._.output.length>0)l._.output.push(l.lineBreakChars);l._.ind= ent=3Dtrue;},indentation:function(){this._.output.push(this._.indentation= ); this._.indent=3Dfalse;},setRules:function(l,m){this._.rules[l]=3Dm;}}});j= .add('menubutton',{requires:['button','contextmenu'],beforeInit:function(= l){l.ui.addHandler(5,k.menuButton.handler);}});a.UI_MENUBUTTON=3D5;(funct= ion(){var l=3Dfunction(m){var = n=3Dthis._;if(n.state=3D=3D=3D0)return;n.previousState=3Dn.state;var = o=3Dn.menu;if(!o){o=3Dn.menu=3Dnew = j.contextMenu(m);o.onHide=3De.bind(function(){this.setState(n.previousSta= te);},this);if(this.onMenu)o.addListener(this.onMenu);}if(n.on){o.hide();= return;}this.setState(1);o.show(a.document.getById(this._.id),4);};k.menu= Button=3De.createClass({base:k.button,$:function(m){var = n=3Dm.panel;delete = m.panel;this.base(m);this.hasArrow=3Dtrue;this.click=3Dl;},statics:{handl= er:{create:function(m){return new = k.menuButton(m);}}}});})();j.add('dialog',{requires:['dialogui']});a.DIAL= OG_RESIZE_NONE=3D0;a.DIALOG_RESIZE_WIDTH=3D1;a.DIALOG_RESIZE_HEIGHT=3D2;a= .DIALOG_RESIZE_BOTH=3D3;(function(){function = l(L){return!!this._.tabs[L][0].$.offsetHeight;};function m(){var = P=3Dthis;var = L=3DP._.currentTabId,M=3DP._.tabIdList.length,N=3De.indexOf(P._.tabIdList= ,L)+M;for(var O=3DN-1;O>N-M;O--){if(l.call(P,P._.tabIdList[O%M]))return = P._.tabIdList[O%M];}return null;};function n(){var P=3Dthis;var = L=3DP._.currentTabId,M=3DP._.tabIdList.length,N=3De.indexOf(P._.tabIdList= ,L);for(var O=3DN+1;O0?M:0)+'px',top:(N>0?N:0)+'px'});};})(),getPosition:functio= n(){return e.extend({},this._.position);},show:function(){var = L=3Dthis._.editor;if(L.mode=3D=3D'wysiwyg'&&c){var = M=3DL.getSelection();M&&M.lock();}var = N=3Dthis._.element,O=3Dthis.definition;if(!(N.getParent()&&N.getParent().= equals(a.document.getBody())))N.appendTo(a.document.getBody());else = return;if(b.gecko&&b.version<10900){var = P=3Dthis.parts.dialog;P.setStyle('position','absolute');setTimeout(functi= on(){P.setStyle('position','fixed');},0);}this.resize(O.minWidth,O.minHei= ght);this.selectPage(this.definition.contents[0].id);this.reset();if(a.di= alog._.currentZIndex=3D=3D=3Dnull)a.dialog._.currentZIndex=3Dthis._.edito= r.config.baseFloatZIndex;this._.element.getFirst().setStyle('z-index',a.d= ialog._.currentZIndex+=3D10); if(a.dialog._.currentTop=3D=3D=3Dnull){a.dialog._.currentTop=3Dthis;this.= _.parentDialog=3Dnull;A(this._.editor);N.on('keydown',D);N.on(b.opera?'ke= ypress':'keyup',E);for(var Q in = {keyup:1,keydown:1,keypress:1})N.on(Q,K);}else{this._.parentDialog=3Da.di= alog._.currentTop;var = R=3Dthis._.parentDialog.getElement().getFirst();R.$.style.zIndex-=3DMath.= floor(this._.editor.config.baseFloatZIndex/2);a.dialog._.currentTop=3Dthi= s;}F(this,this,'\x1b',null,function(){this.getButton('cancel')&&this.getB= utton('cancel').click();});this._.hasFocus=3Dfalse;e.setTimeout(function(= ){var = S=3Da.document.getWindow().getViewPaneSize(),T=3Dthis.getSize();this.move= ((S.width-O.minWidth)/2,(S.height-T.height)/2);this.parts.dialog.setStyle= ('visibility','');this.fireOnce('load',{});this.fire('show',{});this.fore= ach(function(U){U.setInitValue&&U.setInitValue();});},100,this);},foreach= :function(L){var O=3Dthis;for(var M in O._.contents)for(var N in = O._.contents[M])L(O._.contents[M][N]);return O;},reset:(function(){var = L=3Dfunction(M){if(M.reset)M.reset();};return = function(){this.foreach(L);return = this;};})(),setupContent:function(){var = L=3Darguments;this.foreach(function(M){if(M.setup)M.setup.apply(M,L);});}= ,commitContent:function(){var = L=3Darguments;this.foreach(function(M){if(M.commit)M.commit.apply(M,L);})= ;},hide:function(){this.fire('hide',{});var = L=3Dthis._.element;if(!L.getParent())return;L.remove();this.parts.dialog.= setStyle('visibility','hidden');G(this);if(!this._.parentDialog)B();else{= var = M=3Dthis._.parentDialog.getElement().getFirst();M.setStyle('z-index',pars= eInt(M.$.style.zIndex,10)+Math.floor(this._.editor.config.baseFloatZIndex= /2));}a.dialog._.currentTop=3Dthis._.parentDialog;if(!this._.parentDialog= ){a.dialog._.currentZIndex=3Dnull;L.removeListener('keydown',D);L.removeL= istener(b.opera?'keypress':'keyup',E);for(var N in = {keyup:1,keydown:1,keypress:1})L.removeListener(N,K);var = O=3Dthis._.editor;O.focus();if(O.mode=3D=3D'wysiwyg'&&c){var = P=3DO.getSelection();P&&P.unlock(true);}}else = a.dialog._.currentZIndex-=3D10;this.foreach(function(Q){Q.resetInitValue&= &Q.resetInitValue();});},addPage:function(L){var V=3Dthis;var = M=3D[],N=3DL.label?' = title=3D"'+e.htmlEncode(L.label)+'"':'',O=3DL.elements,P=3Da.dialog._.uiE= lementBuilders.vbox.build(V,{type:'vbox',className:'cke_dialog_page_conte= nts',children:L.elements,expand:!!L.expand,padding:L.padding,style:L.styl= e||'width: = 100%;'},M),Q=3Dh.createFromHtml(M.join('')),R=3Dh.createFromHtml(['0?' = cke_last':'cke_first',N,!!L.hidden?' style=3D"display:none"':'',' = id=3D"',L.id+'_',e.getNextNumber(),'" href=3D"javascript:void(0)"',' = hidefocus=3D"true">',L.label,''].join('')); if(V._.pageCount=3D=3D=3D0)V.parts.dialog.addClass('cke_single_page');els= e = V.parts.dialog.removeClass('cke_single_page');V._.tabs[L.id]=3D[R,Q];V._.= tabIdList.push(L.id);V._.pageCount++;V._.lastTab=3DR;var = S=3DV._.contents[L.id]=3D{},T,U=3DP.getChild();while(T=3DU.shift()){S[T.i= d]=3DT;if(typeof = T.getChild=3D=3D'function')U.push.apply(U,T.getChild());}Q.setAttribute('= name',L.id);Q.appendTo(V.parts.contents);R.unselectable();V.parts.tabs.ap= pend(R);if(L.accessKey){F(V,V,'CTRL+'+L.accessKey,I,H);V._.accessKeyMap['= CTRL+'+L.accessKey]=3DL.id;}},selectPage:function(L){var = Q=3Dthis;for(var M in Q._.tabs){var = N=3DQ._.tabs[M][0],O=3DQ._.tabs[M][1];if(M!=3DL){N.removeClass('cke_dialo= g_tab_selected');O.hide();}}var = P=3DQ._.tabs[L];P[0].addClass('cke_dialog_tab_selected');P[1].show();Q._.= currentTabId=3DL;Q._.currentTabIndex=3De.indexOf(Q._.tabIdList,L);},hideP= age:function(L){var = M=3Dthis._.tabs[L]&&this._.tabs[L][0];if(!M)return;M.hide();},showPage:fu= nction(L){var = M=3Dthis._.tabs[L]&&this._.tabs[L][0];if(!M)return;M.show();},getElement:= function(){return this._.element;},getName:function(){return = this._.name;},getContentElement:function(L,M){return = this._.contents[L][M];},getValueOf:function(L,M){return = this.getContentElement(L,M).getValue();},setValueOf:function(L,M,N){retur= n this.getContentElement(L,M).setValue(N);},getButton:function(L){return = this._.buttons[L];},click:function(L){return = this._.buttons[L].click();},disableButton:function(L){return = this._.buttons[L].disable();},enableButton:function(L){return = this._.buttons[L].enable();},getPageCount:function(){return = this._.pageCount;},getParentEditor:function(){return = this._.editor;},getSelectedElement:function(){return = this.getParentEditor().getSelection().getSelectedElement();},addFocusable= :function(L,M){var O=3Dthis;if(typeof = M=3D=3D'undefined'){M=3DO._.focusList.length;O._.focusList.push(new = p(O,L,M));}else{O._.focusList.splice(M,0,new p(O,L,M));for(var = N=3DM+1;NW.width-V.width-Q)ab=3DW.width-V.width+R[1];else = ab=3DN.x;if(N.y+R[0]W.height-V.height-Q)ac=3DW.height-V.height+R[2];else = ac=3DN.y;L.move(ab,ac);U.data.preventDefault();};function = T(U){a.document.removeListener('mousemove',S);a.document.removeListener('= mouseup',T); if(b.ie6Compat){var = V=3Dz.getChild(0).getFrameDocument();V.removeListener('mousemove',S);V.re= moveListener('mouseup',T);}};L.parts.title.on('mousedown',function(U){L._= .updateSize=3Dtrue;M=3D{x:U.data.$.screenX,y:U.data.$.screenY};a.document= .on('mousemove',S);a.document.on('mouseup',T);N=3DL.getPosition();if(b.ie= 6Compat){var = V=3Dz.getChild(0).getFrameDocument();V.on('mousemove',S);V.on('mouseup',T= );}U.data.preventDefault();},L);};function x(L){var = M=3DL.definition,N=3DM.minWidth||0,O=3DM.minHeight||0,P=3DM.resizable,Q=3D= o[L.getParentEditor().skinName].margins||[0,0,0,0];function = R(ac,ad){ac.y+=3Dad;};function S(ac,ad){ac.x2+=3Dad;};function = T(ac,ad){ac.y2+=3Dad;};function U(ac,ad){ac.x+=3Dad;};var = V=3Dnull,W=3Dnull,X=3DL._.editor.config.magnetDistance,Y=3D['tl','t','tr'= ,'l','r','bl','b','br'];function Z(ac){var = ad=3Dac.listenerData.part,ae=3DL.getSize();W=3DL.getPosition();e.extend(W= ,{x2:W.x+ae.width,y2:W.y+ae.height});V=3D{x:ac.data.$.screenX,y:ac.data.$= .screenY};a.document.on('mousemove',aa,L,{part:ad});a.document.on('mouseu= p',ab,L,{part:ad});if(b.ie6Compat){var = af=3Dz.getChild(0).getFrameDocument();af.on('mousemove',aa,L,{part:ad});a= f.on('mouseup',ab,L,{part:ad});}ac.data.preventDefault();};function = aa(ac){var = ad=3Dac.data.$.screenX,ae=3Dac.data.$.screenY,af=3Dad-V.x,ag=3Dae-V.y,ah=3D= a.document.getWindow().getViewPaneSize(),ai=3Dac.listenerData.part;if(ai.= search('t')!=3D-1)R(W,ag);if(ai.search('l')!=3D-1)U(W,af);if(ai.search('b= ')!=3D-1)T(W,ag);if(ai.search('r')!=3D-1)S(W,af);V=3D{x:ad,y:ae};var = aj,ak,al,am;if(W.x+Q[3]ah.width-X)al=3Dah.width+Q[1];else = if(ai.search('r')!=3D-1&&W.x2-W.xah.height-X)am=3Dah.height+Q[2];else = if(ai.search('b')!=3D-1&&W.y2-W.y'];if(b.ie6Compat){var = P=3Db.isCustomDomain(),Q=3D""; O.push('');}O= .push('');z=3Dh.createFromHtml(O.join(''));}var = R=3Dz,S=3Dfunction(){var = W=3DM.getViewPaneSize();R.setStyles({width:W.width+'px',height:W.height+'= px'});},T=3Dfunction(){var = W=3DM.getScrollPosition(),X=3Da.dialog._.currentTop;R.setStyles({left:W.x= +'px',top:W.y+'px'});do{var = Y=3DX.getPosition();X.move(Y.x,Y.y);}while(X=3DX._.parentDialog)};y=3DS;M= .on('resize',S);S();if(b.ie6Compat){var = U=3Dfunction(){T();arguments.callee.prevScrollHandler.apply(this,argument= s);};M.$.setTimeout(function(){U.prevScrollHandler=3Dwindow.onscroll||(fu= nction(){});window.onscroll=3DU;},0);T();}var = V=3DL.config.dialog_backgroundCoverOpacity;R.setOpacity(typeof = V!=3D'undefined'?V:0.5);R.appendTo(a.document.getBody());},B=3Dfunction()= {if(!z)return;var = L=3Da.document.getWindow();z.remove();L.removeListener('resize',y);if(b.i= e6Compat)L.$.setTimeout(function(){var = M=3Dwindow.onscroll&&window.onscroll.prevScrollHandler;window.onscroll=3D= M||null;},0);y=3Dnull;},C=3D{},D=3Dfunction(L){var = M=3DL.data.$.ctrlKey||L.data.$.metaKey,N=3DL.data.$.altKey,O=3DL.data.$.s= hiftKey,P=3DString.fromCharCode(L.data.$.keyCode),Q=3DC[(M?'CTRL+':'')+(N= ?'ALT+':'')+(O?'SHIFT+':'')+P];if(!Q||!Q.length)return;Q=3DQ[Q.length-1];= Q.keydown&&Q.keydown.call(Q.uiElement,Q.dialog,Q.key);L.data.preventDefau= lt();},E=3Dfunction(L){var = M=3DL.data.$.ctrlKey||L.data.$.metaKey,N=3DL.data.$.altKey,O=3DL.data.$.s= hiftKey,P=3DString.fromCharCode(L.data.$.keyCode),Q=3DC[(M?'CTRL+':'')+(N= ?'ALT+':'')+(O?'SHIFT+':'')+P];if(!Q||!Q.length)return;Q=3DQ[Q.length-1];= if(Q.keyup){Q.keyup.call(Q.uiElement,Q.dialog,Q.key);L.data.preventDefaul= t();}},F=3Dfunction(L,M,N,O,P){var = Q=3DC[N]||(C[N]=3D[]);Q.push({uiElement:L,dialog:M,key:N,keyup:P||L.acces= sKeyUp,keydown:O||L.accessKeyDown});},G=3Dfunction(L){for(var M in = C){var N=3DC[M];for(var = O=3DN.length-1;O>=3D0;O--){if(N[O].dialog=3D=3DL||N[O].uiElement=3D=3DL)N= .splice(O,1);}if(N.length=3D=3D=3D0)delete = C[M];}},H=3Dfunction(L,M){if(L._.accessKeyMap[M])L.selectPage(L._.accessK= eyMap[M]);},I=3Dfunction(L,M){},J=3D{27:1,13:1},K=3Dfunction(L){if(L.data= .getKeystroke() in = J)L.data.stopPropagation();};(function(){k.dialog=3D{uiElement:function(L= ,M,N,O,P,Q,R){if(arguments.length<4)return;var = S=3D(O.call?O(M):O)||'div',T=3D['<',S,' = '],U=3D(P&&P.call?P(M):P)||{},V=3D(Q&&Q.call?Q(M):Q)||{},W=3D(R&&R.call?R= (L,M):R)||'',X=3Dthis.domId=3DV.id||e.getNextNumber()+'_uiElement',Y=3Dth= is.id=3DM.id,Z; V.id=3DX;var = aa=3D{};if(M.type)aa['cke_dialog_ui_'+M.type]=3D1;if(M.className)aa[M.cla= ssName]=3D1;var ab=3DV['class']&&V['class'].split?V['class'].split(' = '):[];for(Z=3D0;Z=3D0;Z--){if(ad[Z]=3D=3D=3D'')ad.splice(Z,1);}if(ad.length>0)V.sty= le=3D(V.style?V.style+'; ':'')+ad.join('; ');for(Z in = V)T.push(Z+'=3D"'+e.htmlEncode(V[Z])+'" = ');T.push('>',W,'');N.push(T.join(''));(this._||(this._=3D{})).di= alog=3DL;if(typeof = M.isChanged=3D=3D'boolean')this.isChanged=3Dfunction(){return = M.isChanged;};if(typeof = M.isChanged=3D=3D'function')this.isChanged=3DM.isChanged;a.event.implemen= tOn(this);this.registerEvents(M);if(this.accessKeyUp&&this.accessKeyDown&= &M.accessKey)F(this,L,'CTRL+'+M.accessKey);var = ae=3Dthis;L.on('load',function(){if(ae.getInputElement())ae.getInputEleme= nt().on('focus',function(){L._.tabBarMode=3Dfalse;L._.hasFocus=3Dtrue;ae.= fire('focus');},ae);});if(this.keyboardFocusable){this.focusIndex=3DL._.f= ocusList.push(this)-1;this.on('focus',function(){L._.currentFocusIndex=3D= ae.focusIndex;});}e.extend(this,M);},hbox:function(L,M,N,O,P){if(argument= s.length<4)return;this._||(this._=3D{});var = Q=3Dthis._.children=3DM,R=3DP&&P.widths||null,S=3DP&&P.height||null,T=3D{= },U,V=3Dfunction(){var W=3D[''];for(U=3D0;U0)W.push('style=3D"'+Y.join('; ')+'" = ');W.push('>',N[U],'');}W.push('');return = W.join('');};k.dialog.uiElement.call(this,L,P||{type:'hbox'},O,'table',T,= P&&P.align&&{align:P.align}||null,V);},vbox:function(L,M,N,O,P){if(argume= nts.length<3)return;this._||(this._=3D{});var = Q=3Dthis._.children=3DM,R=3DP&&P.width||null,S=3DP&&P.heights||null,T=3Df= unction(){var U=3D['');for(var V=3D0;V');}U.push('=
0= )U.push('style=3D"',W.join('; '),'" ');U.push(' = class=3D"cke_dialog_ui_vbox_child">',N[V],'
');return = U.join('');};k.dialog.uiElement.call(this,L,P||{type:'vbox'},O,'div',null= ,null,T);}};})();k.dialog.uiElement.prototype=3D{getElement:function(){re= turn a.document.getById(this.domId);},getInputElement:function(){return = this.getElement();},getDialog:function(){return = this._.dialog;},setValue:function(L){this.getInputElement().setValue(L);t= his.fire('change',{value:L});return this;},getValue:function(){return = this.getInputElement().getValue();},isChanged:function(){return = false;},selectParentTab:function(){var O=3Dthis;var = L=3DO.getInputElement(),M=3DL,N;while((M=3DM.getParent())&&M.$.className.= search('cke_dialog_page_contents')=3D=3D-1){}if(!M)return = O;N=3DM.getAttribute('name');if(O._.dialog._.currentTabId!=3DN)O._.dialog= .selectPage(N);return = O;},focus:function(){this.selectParentTab().getInputElement().focus();ret= urn this;},registerEvents:function(L){var = M=3D/^on([A-Z]\w+)/,N,O=3Dfunction(Q,R,S,T){R.on('load',function(){Q.getI= nputElement().on(S,T,Q);});};for(var P in = L){if(!(N=3DP.match(M)))continue;if(this.eventProcessors[P])this.eventPro= cessors[P].call(this,this._.dialog,L[P]);else = O(this,this._.dialog,N[1].toLowerCase(),L[P]);}return = this;},eventProcessors:{onLoad:function(L,M){L.on('load',M,this);},onShow= :function(L,M){L.on('show',M,this);},onHide:function(L,M){L.on('hide',M,t= his);}},accessKeyDown:function(L,M){this.focus();},accessKeyUp:function(L= ,M){},disable:function(){var = L=3Dthis.getInputElement();L.setAttribute('disabled','true');L.addClass('= cke_disabled');},enable:function(){var = L=3Dthis.getInputElement();L.removeAttribute('disabled');L.removeClass('c= ke_disabled');},isEnabled:function(){return!this.getInputElement().getAtt= ribute('disabled');},isVisible:function(){return = this.getInputElement().isVisible();},isFocusable:function(){if(!this.isEn= abled()||!this.isVisible())return false;return = true;}};k.dialog.hbox.prototype=3De.extend(new = k.dialog.uiElement(),{getChild:function(L){var = M=3Dthis;if(arguments.length<1)return = M._.children.concat();if(!L.splice)L=3D[L];if(L.length<2)return = M._.children[L[0]];else return = M._.children[L[0]]&&M._.children[L[0]].getChild?M._.children[L[0]].getChi= ld(L.slice(1,L.length)):null;}},true); k.dialog.vbox.prototype=3Dnew k.dialog.hbox();(function(){var = L=3D{build:function(M,N,O){var P=3DN.children,Q,R=3D[],S=3D[];for(var = T=3D0;T';});n.on('themeLoaded',function(){n.fireOnce('editingBlockReady= ');});n.on('uiReady',function(){n.setMode(n.config.startupMode);});n.on('= afterSetData',function(){if(!m){function = o(){m=3Dtrue;l(n).loadData(n.getData());m=3Dfalse;};if(n.mode)o();else = n.on('mode',function(){o();n.removeListener('mode',arguments.callee);});}= });n.on('beforeGetData',function(){if(!m&&n.mode){m=3Dtrue;n.setData(l(n)= .getData());m=3Dfalse;}});n.on('getSnapshot',function(o){if(n.mode)o.data= =3Dl(n).getSnapshotData();});n.on('loadSnapshot',function(o){if(n.mode)l(= n).loadSnapshotData(o.data);});n.on('mode',function(o){o.removeListener()= ;var p=3Dn.container;if(b.webkit&&b.version<528){var = q=3Dn.config.tabIndex||n.element.getAttribute('tabindex')||0;p=3Dp.append= (h.createFromHtml(''));}p.on('focus',function(){n.focus();});if(n.config.startu= pFocus)n.focus();setTimeout(function(){n.fireOnce('instanceReady');a.fire= ('instanceReady',null,n);});});}});a.editor.prototype.mode=3D'';a.editor.= prototype.addMode=3Dfunction(n,o){o.name=3Dn;(this._.modes||(this._.modes= =3D{}))[n]=3Do;};a.editor.prototype.setMode=3Dfunction(n){var = o,p=3Dthis.getThemeSpace('contents'),q=3Dthis.checkDirty();if(this.mode){= if(n=3D=3Dthis.mode)return;this.fire('beforeModeUnload');var = r=3Dl(this);o=3Dr.getData();r.unload(p);this.mode=3D'';}p.setHtml('');var= s=3Dl(this,n);if(!s)throw '[CKEDITOR.editor.setMode] Unknown mode = "'+n+'".';if(!q)this.on('mode',function(){this.resetDirty();this.removeLi= stener('mode',arguments.callee);});s.load(p,typeof = o!=3D'string'?this.getData():o);};a.editor.prototype.focus=3Dfunction(){v= ar = n=3Dl(this);if(n)n.focus();};})();i.startupMode=3D'wysiwyg';i.startupFocu= s=3Dfalse;i.editingBlock=3Dtrue;j.add('panel',{beforeInit:function(l){l.u= i.addHandler(2,k.panel.handler);}});a.UI_PANEL=3D2;k.panel=3Dfunction(l,m= ){var = n=3Dthis;if(m)e.extend(n,m);e.extend(n,{className:'',css:[]});n.id=3De.ge= tNextNumber();n.document=3Dl;n._=3D{blocks:{}};};k.panel.handler=3D{creat= e:function(l){return new = k.panel(l);}};k.panel.prototype=3D{renderHtml:function(l){var = m=3D[];this.render(l,m);return m.join('');},render:function(l,m){var = o=3Dthis;var n=3D'cke_'+o.id;m.push('
'+'');if(o.forceIFrame||o.css.length){m.push('');}m.push('
');return n;},getHolderElement:function(){var = l=3Dthis._.holder;if(!l){if(this.forceIFrame||this.css.length){var = m=3Dthis.document.getById('cke_'+this.id+'_frame'),n=3Dm.getParent(),o=3D= n.getAttribute('dir'),p=3Dn.getParent().getAttribute('class'),q=3Dn.getPa= rent().getAttribute('lang'),r=3Dm.getFrameDocument();r.$.open();if(b.isCu= stomDomain())r.$.domain=3Ddocument.domain;var = s=3De.addFunction(e.bind(function(u){this.isLoaded=3Dtrue;if(this.onLoad)= this.onLoad();},this));r.$.write(''+''+''].join('')); x.getChild([0,0,0,0,0]).unselectable();x.getChild([0,0,0,0,2]).unselectab= le();if(p=3D=3D1)x.insertAfter(o);else = o.append(x);l.container=3Dx;x.disableContextMenu();l.fireOnce('themeLoade= d');l.fireOnce('uiReady');},buildDialog:function(l){var = m=3De.getNextNumber(),n=3Dh.createFromHtml(['
X
',c?'':'','
'].join('').replace(/#/g,'_'+m).replace(/%/g,= 'cke_dialog_')),o=3Dn.getChild([0,0,0,0,0]),p=3Do.getChild(0),q=3Do.getCh= ild(1);p.unselectable();q.unselectable();return{element:n,parts:{dialog:n= .getChild(0),title:p,close:q,tabs:o.getChild(2),contents:o.getChild([3,0,= 0,0]),footer:o.getChild(4)}};},destroy:function(l){var = m=3Dl.container;if(c){m.setStyle('display','none');var = n=3Ddocument.body.createTextRange();n.moveToElementText(m.$);try{n.select= ();}catch(o){}}if(m)m.remove();if(l.elementMode=3D=3D1){l.element.show();= delete = l.element;}}};})());a.editor.prototype.getThemeSpace=3Dfunction(l){var = m=3D'cke_'+l,n=3Dthis._[m]||(this._[m]=3Da.document.getById(m+'_'+this.na= me));return n;};a.editor.prototype.resize=3Dfunction(l,m,n,o){var = p=3D/^\d+$/;if(p.test(l))l+=3D'px';var = q=3Da.document.getById('cke_contents_'+this.name),r=3Do?q.getAscendant('t= able').getParent():q.getAscendant('table').getParent().getParent().getPar= ent();b.webkit&&r.setStyle('display','none');r.setStyle('width',l);if(b.w= ebkit){r.$.offsetWidth;r.setStyle('display','');}var = s=3Dn?0:(r.$.offsetHeight||0)-(q.$.clientHeight||0);q.setStyle('height',M= ath.max(m-s,0)+'px');this.fire('resize');};a.editor.prototype.getResizabl= e=3Dfunction(){return this.container.getChild([0,0]);};})(); ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/js/facebox2.js /*=0A= * Facebox (for jQuery)=0A= * version: 1.2 (05/05/2008)=0A= * @requires jQuery v1.2 or later=0A= *=0A= * Examples at http://famspam.com/facebox/=0A= *=0A= * Licensed under the MIT:=0A= * http://www.opensource.org/licenses/mit-license.php=0A= *=0A= * Copyright 2007, 2008 Chris Wanstrath [ chris@ozmm.org ]=0A= *=0A= * Usage:=0A= * =0A= * jQuery(document).ready(function() {=0A= * jQuery('a[rel*=3Dfacebox]').facebox() =0A= * })=0A= *=0A= * Terms=0A= * Loads the #terms div in the box=0A= *=0A= * Terms=0A= * Loads the terms.html page in the box=0A= *=0A= * Terms=0A= * Loads the terms.png image in the box=0A= *=0A= *=0A= * You can also use it programmatically:=0A= * =0A= * jQuery.facebox('some html')=0A= *=0A= * The above will open a facebox with "some html" as the content.=0A= * =0A= * jQuery.facebox(function($) { =0A= * $.get('blah.html', function(data) { $.facebox(data) })=0A= * })=0A= *=0A= * The above will show a loading screen before the passed function is = called,=0A= * allowing for a better ajaxy experience.=0A= *=0A= * The facebox function can also display an ajax page or image:=0A= * =0A= * jQuery.facebox({ ajax: 'remote.html' })=0A= * jQuery.facebox({ image: 'dude.jpg' })=0A= *=0A= * Want to close the facebox? Trigger the 'close.facebox' document = event:=0A= *=0A= * jQuery(document).trigger('close.facebox')=0A= *=0A= * Facebox also has a bunch of other hooks:=0A= *=0A= * loading.facebox=0A= * beforeReveal.facebox=0A= * reveal.facebox (aliased as 'afterReveal.facebox')=0A= * init.facebox=0A= *=0A= * Simply bind a function to any of these hooks:=0A= *=0A= * $(document).bind('reveal.facebox', function() { ...stuff to do = after the facebox and contents are revealed... })=0A= *=0A= */=0A= (function($) {=0A= $.facebox =3D function(data, klass) {=0A= $.facebox.loading()=0A= =0A= if (data.ajax) fillFaceboxFromAjax(data.ajax)=0A= else if (data.image) fillFaceboxFromImage(data.image)=0A= else if (data.div) fillFaceboxFromHref(data.div)=0A= else if ($.isFunction(data)) data.call($)=0A= else $.facebox.reveal(data, klass)=0A= }=0A= =0A= /*=0A= * Public, $.facebox methods=0A= */=0A= =0A= $.extend($.facebox, {=0A= settings: {=0A= opacity : 0,=0A= overlay : true,=0A= loadingImage : '/images/loading.gif',=0A= closeImage : '/images/closelabel.gif',=0A= imageTypes : [ 'png', 'jpg', 'jpeg', 'gif' ],=0A= faceboxHtml : '\=0A=
\=0A=
\=0A= \=0A= \=0A= \=0A= \=0A= \=0A= \=0A= \=0A= \=0A= \=0A= \=0A=
\=0A=
\=0A= \=0A=
\=0A=
\=0A=
\=0A= \=0A= \=0A= \=0A=
\=0A=
\=0A=
\=0A=
\=0A=
\=0A=
'=0A= },=0A= =0A= loading: function() {=0A= init()=0A= if ($('#facebox .loading').length =3D=3D 1) return true=0A= showOverlay()=0A= =0A= $('#facebox .content').empty()=0A= $('#facebox .body').children().hide().end().=0A= append('
')=0A= =0A= $('#facebox').css({=0A= top: getPageScroll()[1] + (getPageHeight() / 10),=0A= left: 385.5=0A= }).show()=0A= =0A= $(document).bind('keydown.facebox', function(e) {=0A= if (e.keyCode =3D=3D 27) $.facebox.close()=0A= return true=0A= })=0A= $(document).trigger('loading.facebox')=0A= },=0A= =0A= reveal: function(data, klass) {=0A= $(document).trigger('beforeReveal.facebox')=0A= if (klass) $('#facebox .content').addClass(klass)=0A= $('#facebox .content').append(data)=0A= $('#facebox .loading').remove()=0A= $('#facebox .body').children().fadeIn('normal')=0A= $('#facebox').css('left', $(window).width() / 2 - ($('#facebox = table').width() / 2))=0A= = $(document).trigger('reveal.facebox').trigger('afterReveal.facebox')=0A= },=0A= =0A= close: function() {=0A= $(document).trigger('close.facebox')=0A= return false=0A= }=0A= })=0A= =0A= /*=0A= * Public, $.fn methods=0A= */=0A= =0A= $.fn.facebox =3D function(settings) {=0A= init(settings)=0A= =0A= function clickHandler() {=0A= $.facebox.loading(true)=0A= =0A= // support for rel=3D"facebox.inline_popup" syntax, to add a class=0A= // also supports deprecated "facebox[.inline_popup]" syntax=0A= var klass =3D this.rel.match(/facebox\[?\.(\w+)\]?/)=0A= if (klass) klass =3D klass[1]=0A= =0A= fillFaceboxFromHref(this.href, klass)=0A= return false=0A= }=0A= =0A= return this.click(clickHandler)=0A= }=0A= =0A= /*=0A= * Private methods=0A= */=0A= =0A= // called one time to setup facebox on this page=0A= function init(settings) {=0A= if ($.facebox.settings.inited) return true=0A= else $.facebox.settings.inited =3D true=0A= =0A= $(document).trigger('init.facebox')=0A= makeCompatible()=0A= =0A= var imageTypes =3D $.facebox.settings.imageTypes.join('|')=0A= $.facebox.settings.imageTypesRegexp =3D new RegExp('\.' + imageTypes = + '$', 'i')=0A= =0A= if (settings) $.extend($.facebox.settings, settings)=0A= $('body').append($.facebox.settings.faceboxHtml)=0A= =0A= var preload =3D [ new Image(), new Image() ]=0A= preload[0].src =3D $.facebox.settings.closeImage=0A= preload[1].src =3D $.facebox.settings.loadingImage=0A= =0A= $('#facebox').find('.b:first, .bl, .br, .tl, .tr').each(function() {=0A= preload.push(new Image())=0A= preload.slice(-1).src =3D = $(this).css('background-image').replace(/url\((.+)\)/, '$1')=0A= })=0A= =0A= $('#facebox .close').click($.facebox.close)=0A= $('#facebox .close_image').attr('src', $.facebox.settings.closeImage)=0A= }=0A= =0A= // getPageScroll() by quirksmode.com=0A= function getPageScroll() {=0A= var xScroll, yScroll;=0A= if (self.pageYOffset) {=0A= yScroll =3D self.pageYOffset;=0A= xScroll =3D self.pageXOffset;=0A= } else if (document.documentElement && = document.documentElement.scrollTop) { // Explorer 6 Strict=0A= yScroll =3D document.documentElement.scrollTop;=0A= xScroll =3D document.documentElement.scrollLeft;=0A= } else if (document.body) {// all other Explorers=0A= yScroll =3D document.body.scrollTop;=0A= xScroll =3D document.body.scrollLeft; =0A= }=0A= return new Array(xScroll,yScroll) =0A= }=0A= =0A= // Adapted from getPageSize() by quirksmode.com=0A= function getPageHeight() {=0A= var windowHeight=0A= if (self.innerHeight) { // all except Explorer=0A= windowHeight =3D self.innerHeight;=0A= } else if (document.documentElement && = document.documentElement.clientHeight) { // Explorer 6 Strict Mode=0A= windowHeight =3D document.documentElement.clientHeight;=0A= } else if (document.body) { // other Explorers=0A= windowHeight =3D document.body.clientHeight;=0A= } =0A= return windowHeight=0A= }=0A= =0A= // Backwards compatibility=0A= function makeCompatible() {=0A= var $s =3D $.facebox.settings=0A= =0A= $s.loadingImage =3D $s.loading_image || $s.loadingImage=0A= $s.closeImage =3D $s.close_image || $s.closeImage=0A= $s.imageTypes =3D $s.image_types || $s.imageTypes=0A= $s.faceboxHtml =3D $s.facebox_html || $s.faceboxHtml=0A= }=0A= =0A= // Figures out what you want to display and displays it=0A= // formats are:=0A= // div: #id=0A= // image: blah.extension=0A= // ajax: anything else=0A= function fillFaceboxFromHref(href, klass) {=0A= // div=0A= if (href.match(/#/)) {=0A= var url =3D window.location.href.split('#')[0]=0A= var target =3D href.replace(url,'')=0A= $.facebox.reveal($(target).clone().show(), klass)=0A= =0A= // image=0A= } else if (href.match($.facebox.settings.imageTypesRegexp)) {=0A= fillFaceboxFromImage(href, klass)=0A= // ajax=0A= } else {=0A= fillFaceboxFromAjax(href, klass)=0A= }=0A= }=0A= =0A= function fillFaceboxFromImage(href, klass) {=0A= var image =3D new Image()=0A= image.onload =3D function() {=0A= $.facebox.reveal('
')=0A= =0A= $('#facebox_overlay').hide().addClass("facebox_overlayBG")=0A= .css('opacity', $.facebox.settings.opacity)=0A= .click(function() { $(document).trigger('close.facebox') })=0A= .fadeIn(200)=0A= return false=0A= }=0A= =0A= function hideOverlay() {=0A= if (skipOverlay()) return=0A= =0A= $('#facebox_overlay').fadeOut(200, function(){=0A= $("#facebox_overlay").removeClass("facebox_overlayBG")=0A= $("#facebox_overlay").addClass("facebox_hide") =0A= $("#facebox_overlay").remove()=0A= })=0A= =0A= return false=0A= }=0A= =0A= /*=0A= * Bindings=0A= */=0A= =0A= $(document).bind('close.facebox', function() {=0A= $(document).unbind('keydown.facebox')=0A= $('#facebox').fadeOut(function() {=0A= $('#facebox .content').removeClass().addClass('content')=0A= hideOverlay()=0A= $('#facebox .loading').remove()=0A= })=0A= })=0A= =0A= })(jQuery);=0A= ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/js/jquery.blockUI.js =EF=BB=BF/*=0A= * jQuery blockUI plugin=0A= * Version 2.23 (21-JUN-2009)=0A= * @requires jQuery v1.2.3 or later=0A= *=0A= * Examples at: http://malsup.com/jquery/block/=0A= * Copyright (c) 2007-2008 M. Alsup=0A= * Dual licensed under the MIT and GPL licenses:=0A= * http://www.opensource.org/licenses/mit-license.php=0A= * http://www.gnu.org/licenses/gpl.html=0A= *=0A= * Thanks to Amir-Hossein Sobhi for some excellent contributions!=0A= */=0A= =0A= ;(function($) {=0A= =0A= if (/1\.(0|1|2)\.(0|1|2)/.test($.fn.jquery) || /^1.1/.test($.fn.jquery)) = {=0A= alert('blockUI requires jQuery v1.2.3 or later! You are using v' + = $.fn.jquery);=0A= return;=0A= }=0A= =0A= $.fn._fadeIn =3D $.fn.fadeIn;=0A= =0A= // this bit is to ensure we don't call setExpression when we shouldn't = (with extra muscle to handle=0A= // retarded userAgent strings on Vista)=0A= var mode =3D document.documentMode || 0;=0A= var setExpr =3D $.browser.msie && (($.browser.version < 8 && !mode) || = mode < 8);=0A= var ie6 =3D $.browser.msie && /MSIE 6.0/.test(navigator.userAgent) && = !mode;=0A= =0A= // global $ methods for blocking/unblocking the entire page=0A= $.blockUI =3D function(opts) { install(window, opts); };=0A= $.unblockUI =3D function(opts) { remove(window, opts); };=0A= =0A= // convenience method for quick growl-like notifications = (http://www.google.com/search?q=3Dgrowl)=0A= $.growlUI =3D function(title, message, timeout, onClose) {=0A= var $m =3D $('
');=0A= if (title) $m.append('

'+title+'

');=0A= if (message) $m.append('

'+message+'

');=0A= if (timeout =3D=3D undefined) timeout =3D 3000;=0A= $.blockUI({=0A= message: $m, fadeIn: 700, fadeOut: 1000, centerY: false,=0A= timeout: timeout, showOverlay: false,=0A= onUnblock: onClose, =0A= css: $.blockUI.defaults.growlCSS=0A= });=0A= };=0A= =0A= // plugin method for blocking element content=0A= $.fn.block =3D function(opts) {=0A= return this.unblock({ fadeOut: 0 }).each(function() {=0A= if ($.css(this,'position') =3D=3D 'static')=0A= this.style.position =3D 'relative';=0A= if ($.browser.msie)=0A= this.style.zoom =3D 1; // force 'hasLayout'=0A= install(this, opts);=0A= });=0A= };=0A= =0A= // plugin method for unblocking element content=0A= $.fn.unblock =3D function(opts) {=0A= return this.each(function() {=0A= remove(this, opts);=0A= });=0A= };=0A= =0A= $.blockUI.version =3D 2.23; // 2nd generation blocking at no extra cost!=0A= =0A= // override these in your code to change the default behavior and style=0A= $.blockUI.defaults =3D {=0A= // message displayed when blocking (use null for no message)=0A= message: '

Please wait...

',=0A= =0A= // styles for the message when blocking; if you wish to disable=0A= // these and use an external stylesheet then do this in your code:=0A= // $.blockUI.defaults.css =3D {};=0A= css: {=0A= padding: 0,=0A= margin: 0,=0A= width: '30%',=0A= top: '40%',=0A= left: '35%',=0A= textAlign: 'center',=0A= color: '#000',=0A= border: '3px solid #aaa',=0A= backgroundColor:'#fff',=0A= cursor: 'wait'=0A= },=0A= =0A= // styles for the overlay=0A= overlayCSS: {=0A= backgroundColor: '#000',=0A= opacity: 0.6,=0A= cursor: 'wait'=0A= },=0A= =0A= // styles applied when using $.growlUI=0A= growlCSS: {=0A= width: '350px',=0A= top: '10px',=0A= left: '',=0A= right: '10px',=0A= border: 'none',=0A= padding: '5px',=0A= opacity: 0.6,=0A= cursor: null,=0A= color: '#fff',=0A= backgroundColor: '#000',=0A= '-webkit-border-radius': '10px',=0A= '-moz-border-radius': '10px'=0A= },=0A= =0A= // IE issues: 'about:blank' fails on HTTPS and javascript:false is = s-l-o-w=0A= // (hat tip to Jorge H. N. de Vasconcelos)=0A= iframeSrc: /^https/i.test(window.location.href || '') ? = 'javascript:false' : 'about:blank',=0A= =0A= // force usage of iframe in non-IE browsers (handy for blocking applets)=0A= forceIframe: false,=0A= =0A= // z-index for the blocking overlay=0A= baseZ: 1000,=0A= =0A= // set these to true to have the message automatically centered=0A= centerX: true, // <-- only effects element blocking (page block = controlled via css above)=0A= centerY: true,=0A= =0A= // allow body element to be stetched in ie6; this makes blocking = look better=0A= // on "short" pages. disable if you wish to prevent changes to the = body height=0A= allowBodyStretch: true,=0A= =0A= // enable if you want key and mouse events to be disabled for content = that is blocked=0A= bindEvents: true,=0A= =0A= // be default blockUI will supress tab navigation from leaving = blocking content=0A= // (if bindEvents is true)=0A= constrainTabKey: true,=0A= =0A= // fadeIn time in millis; set to 0 to disable fadeIn on block=0A= fadeIn: 200,=0A= =0A= // fadeOut time in millis; set to 0 to disable fadeOut on unblock=0A= fadeOut: 400,=0A= =0A= // time in millis to wait before auto-unblocking; set to 0 to disable = auto-unblock=0A= timeout: 0,=0A= =0A= // disable if you don't want to show the overlay=0A= showOverlay: true,=0A= =0A= // if true, focus will be placed in the first available input field = when=0A= // page blocking=0A= focusInput: true,=0A= =0A= // suppresses the use of overlay styles on FF/Linux (due to = performance issues with opacity)=0A= applyPlatformOpacityRules: true,=0A= =0A= // callback method invoked when unblocking has completed; the = callback is=0A= // passed the element that has been unblocked (which is the window = object for page=0A= // blocks) and the options that were passed to the unblock call:=0A= // onUnblock(element, options)=0A= onUnblock: null,=0A= =0A= // don't ask; if you really must know: = http://groups.google.com/group/jquery-en/browse_thread/thread/36640a87305= 03595/2f6a79a77a78e493#2f6a79a77a78e493=0A= quirksmodeOffsetHack: 4=0A= };=0A= =0A= // private data and functions follow...=0A= =0A= var pageBlock =3D null;=0A= var pageBlockEls =3D [];=0A= =0A= function install(el, opts) {=0A= var full =3D (el =3D=3D window);=0A= var msg =3D opts && opts.message !=3D=3D undefined ? opts.message : = undefined;=0A= opts =3D $.extend({}, $.blockUI.defaults, opts || {});=0A= opts.overlayCSS =3D $.extend({}, $.blockUI.defaults.overlayCSS, = opts.overlayCSS || {});=0A= var css =3D $.extend({}, $.blockUI.defaults.css, opts.css || {});=0A= msg =3D msg =3D=3D=3D undefined ? opts.message : msg;=0A= =0A= // remove the current block (if there is one)=0A= if (full && pageBlock)=0A= remove(window, {fadeOut:0});=0A= =0A= // if an existing element is being used as the blocking content then = we capture=0A= // its current place in the DOM (and current display style) so we = can restore=0A= // it when we unblock=0A= if (msg && typeof msg !=3D 'string' && (msg.parentNode || = msg.jquery)) {=0A= var node =3D msg.jquery ? msg[0] : msg;=0A= var data =3D {};=0A= $(el).data('blockUI.history', data);=0A= data.el =3D node;=0A= data.parent =3D node.parentNode;=0A= data.display =3D node.style.display;=0A= data.position =3D node.style.position;=0A= if (data.parent)=0A= data.parent.removeChild(node);=0A= }=0A= =0A= var z =3D opts.baseZ;=0A= =0A= // blockUI uses 3 layers for blocking, for simplicity they are all = used on every platform;=0A= // layer1 is the iframe layer which is used to supress bleed through = of underlying content=0A= // layer2 is the overlay layer which has opacity and a wait cursor = (by default)=0A= // layer3 is the message content that is displayed while blocking=0A= =0A= var lyr1 =3D ($.browser.msie || opts.forceIframe) =0A= ? $('')=0A= : $('
');=0A= var lyr2 =3D $('
');=0A= var lyr3 =3D full ? $('
')=0A= : $('
');=0A= =0A= // if we have a message, style it=0A= if (msg)=0A= lyr3.css(css);=0A= =0A= // style the overlay=0A= if (!opts.applyPlatformOpacityRules || !($.browser.mozilla && = /Linux/.test(navigator.platform)))=0A= lyr2.css(opts.overlayCSS);=0A= lyr2.css('position', full ? 'fixed' : 'absolute');=0A= =0A= // make iframe layer transparent in IE=0A= if ($.browser.msie || opts.forceIframe)=0A= lyr1.css('opacity',0.0);=0A= =0A= $([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);=0A= =0A= // ie7 must use absolute positioning in quirks mode and to account = for activex issues (when scrolling)=0A= var expr =3D setExpr && (!$.boxModel || $('object,embed', full ? = null : el).length > 0);=0A= if (ie6 || expr) {=0A= // give body 100% height=0A= if (full && opts.allowBodyStretch && $.boxModel)=0A= $('html,body').css('height','100%');=0A= =0A= // fix ie6 issue when blocked element has a border width=0A= if ((ie6 || !$.boxModel) && !full) {=0A= var t =3D sz(el,'borderTopWidth'), l =3D = sz(el,'borderLeftWidth');=0A= var fixT =3D t ? '(0 - '+t+')' : 0;=0A= var fixL =3D l ? '(0 - '+l+')' : 0;=0A= }=0A= =0A= // simulate fixed position=0A= $.each([lyr1,lyr2,lyr3], function(i,o) {=0A= var s =3D o[0].style;=0A= s.position =3D 'absolute';=0A= if (i < 2) {=0A= full ? = s.setExpression('height','Math.max(document.body.scrollHeight, = document.body.offsetHeight) - = (jQuery.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"')=0A= : = s.setExpression('height','this.parentNode.offsetHeight + "px"');=0A= full ? s.setExpression('width','jQuery.boxModel && = document.documentElement.clientWidth || document.body.clientWidth + = "px"')=0A= : = s.setExpression('width','this.parentNode.offsetWidth + "px"');=0A= if (fixL) s.setExpression('left', fixL);=0A= if (fixT) s.setExpression('top', fixT);=0A= }=0A= else if (opts.centerY) {=0A= if (full) = s.setExpression('top','(document.documentElement.clientHeight || = document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah =3D = document.documentElement.scrollTop ? document.documentElement.scrollTop = : document.body.scrollTop) + "px"');=0A= s.marginTop =3D 0;=0A= }=0A= else if (!opts.centerY && full) {=0A= var top =3D (opts.css && opts.css.top) ? parseInt(opts.css.top) : 0;=0A= var expression =3D '((document.documentElement.scrollTop ? = document.documentElement.scrollTop : document.body.scrollTop) + '+top+') = + "px"';=0A= s.setExpression('top',expression);=0A= }=0A= });=0A= }=0A= =0A= // show the message=0A= if (msg) {=0A= lyr3.append(msg);=0A= if (msg.jquery || msg.nodeType)=0A= $(msg).show();=0A= }=0A= =0A= if (($.browser.msie || opts.forceIframe) && opts.showOverlay)=0A= lyr1.show(); // opacity is zero=0A= if (opts.fadeIn) {=0A= if (opts.showOverlay)=0A= lyr2._fadeIn(opts.fadeIn);=0A= if (msg)=0A= lyr3.fadeIn(opts.fadeIn);=0A= }=0A= else {=0A= if (opts.showOverlay)=0A= lyr2.show();=0A= if (msg)=0A= lyr3.show();=0A= }=0A= =0A= // bind key and mouse events=0A= bind(1, el, opts);=0A= =0A= if (full) {=0A= pageBlock =3D lyr3[0];=0A= pageBlockEls =3D $(':input:enabled:visible',pageBlock);=0A= if (opts.focusInput)=0A= setTimeout(focus, 20);=0A= }=0A= else=0A= center(lyr3[0], opts.centerX, opts.centerY);=0A= =0A= if (opts.timeout) {=0A= // auto-unblock=0A= var to =3D setTimeout(function() {=0A= full ? $.unblockUI(opts) : $(el).unblock(opts);=0A= }, opts.timeout);=0A= $(el).data('blockUI.timeout', to);=0A= }=0A= };=0A= =0A= // remove the block=0A= function remove(el, opts) {=0A= var full =3D el =3D=3D window;=0A= var $el =3D $(el);=0A= var data =3D $el.data('blockUI.history');=0A= var to =3D $el.data('blockUI.timeout');=0A= if (to) {=0A= clearTimeout(to);=0A= $el.removeData('blockUI.timeout');=0A= }=0A= opts =3D $.extend({}, $.blockUI.defaults, opts || {});=0A= bind(0, el, opts); // unbind events=0A= var els =3D full ? $('body').children().filter('.blockUI') : = $('.blockUI', el);=0A= =0A= if (full)=0A= pageBlock =3D pageBlockEls =3D null;=0A= =0A= if (opts.fadeOut) {=0A= els.fadeOut(opts.fadeOut);=0A= setTimeout(function() { reset(els,data,opts,el); }, = opts.fadeOut);=0A= }=0A= else=0A= reset(els, data, opts, el);=0A= };=0A= =0A= // move blocking element back into the DOM where it started=0A= function reset(els,data,opts,el) {=0A= els.each(function(i,o) {=0A= // remove via DOM calls so we don't lose event handlers=0A= if (this.parentNode)=0A= this.parentNode.removeChild(this);=0A= });=0A= =0A= if (data && data.el) {=0A= data.el.style.display =3D data.display;=0A= data.el.style.position =3D data.position;=0A= if (data.parent)=0A= data.parent.appendChild(data.el);=0A= $(data.el).removeData('blockUI.history');=0A= }=0A= =0A= if (typeof opts.onUnblock =3D=3D 'function')=0A= opts.onUnblock(el,opts);=0A= };=0A= =0A= // bind/unbind the handler=0A= function bind(b, el, opts) {=0A= var full =3D el =3D=3D window, $el =3D $(el);=0A= =0A= // don't bother unbinding if there is nothing to unbind=0A= if (!b && (full && !pageBlock || !full && = !$el.data('blockUI.isBlocked')))=0A= return;=0A= if (!full)=0A= $el.data('blockUI.isBlocked', b);=0A= =0A= // don't bind events when overlay is not in use or if bindEvents is = false=0A= if (!opts.bindEvents || (b && !opts.showOverlay)) =0A= return;=0A= =0A= // bind anchors and inputs for mouse and key events=0A= var events =3D 'mousedown mouseup keydown keypress';=0A= b ? $(document).bind(events, opts, handler) : = $(document).unbind(events, handler);=0A= =0A= // former impl...=0A= // var $e =3D $('a,:input');=0A= // b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);=0A= };=0A= =0A= // event handler to suppress keyboard/mouse events when blocking=0A= function handler(e) {=0A= // allow tab navigation (conditionally)=0A= if (e.keyCode && e.keyCode =3D=3D 9) {=0A= if (pageBlock && e.data.constrainTabKey) {=0A= var els =3D pageBlockEls;=0A= var fwd =3D !e.shiftKey && e.target =3D=3D els[els.length-1];=0A= var back =3D e.shiftKey && e.target =3D=3D els[0];=0A= if (fwd || back) {=0A= setTimeout(function(){focus(back)},10);=0A= return false;=0A= }=0A= }=0A= }=0A= // allow events within the message content=0A= if ($(e.target).parents('div.blockMsg').length > 0)=0A= return true;=0A= =0A= // allow events for content that is not being blocked=0A= return $(e.target).parents().children().filter('div.blockUI').length = =3D=3D 0;=0A= };=0A= =0A= function focus(back) {=0A= if (!pageBlockEls)=0A= return;=0A= var e =3D pageBlockEls[back=3D=3D=3Dtrue ? pageBlockEls.length-1 : = 0];=0A= if (e)=0A= e.focus();=0A= };=0A= =0A= function center(el, x, y) {=0A= var p =3D el.parentNode, s =3D el.style;=0A= var l =3D ((p.offsetWidth - el.offsetWidth)/2) - = sz(p,'borderLeftWidth');=0A= var t =3D ((p.offsetHeight - el.offsetHeight)/2) - = sz(p,'borderTopWidth');=0A= if (x) s.left =3D l > 0 ? (l+'px') : '0';=0A= if (y) s.top =3D t > 0 ? (t+'px') : '0';=0A= };=0A= =0A= function sz(el, p) {=0A= return parseInt($.css(el,p))||0;=0A= };=0A= =0A= })(jQuery);=0A= ------=_NextPart_000_0000_01CB3EEE.0274AAD0 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: http://uaops.ua.edu/js/opstimeout.js //script to handle timeouts coming from Ajax requests=0A= $(document).ajaxComplete( function(event, xhr, options)=0A= {=0A= =C2=A0 =C2=A0 var data =3D $.httpData(xhr,options.dataType);=0A= =C2=A0 =C2=A0 if (data =3D=3D 'opstimeout') {=0A= $.facebox('Your session has expired due to inactivity. You will be = redirected to the login page in a moment.');=0A= var t =3D setTimeout('top.location =3D "/logout.php"', 3000);=0A= } else if (data =3D=3D 'opserror') {=0A= $.facebox('An error has occured.');=0A= }=0A= }); ------=_NextPart_000_0000_01CB3EEE.0274AAD0--