Data: 2014-01-16 07:58:19 | |
Autor: 2468gsk | |
Pranie pieniędzy w KDP/PTTK | |
Przeszukałem trochę KRS i obecnie sytuacja wygląda tak:
CMAS - organizacja niezarejestrowana w Polsce, w sensie prawnym. OCSP - do niedawna miało nawet wpis w KRS, ale już go nie ma. Nie była to w każdym razie komórka PTTK, a sam wpis to był chyba niejawny. Wpisu już nie ma. KDP - brak wpisu do KRS. Niezarejestrowana nazwa i logotyp. ZG PTTK - tak z dwa lata temu wpis w KRS się pojawił, ale już go nie ma. Niezarejestrowany. I wychodzi na to, że znani wszystkim kolesie z CMAS/OCSP/KDP/ZG PTTK, mają tak najebane w czaszkach, że sami nie wiedzą jak się nazywają. Używają w nazwie czterech skótowców, żaden nie jest legalny. Cała ta posrana organizacja w ogóle nie dysponuje legalnym kontem w jakimkolwiek banku. A to co ciułają instruktorzy w klubach bez osobowości prawnych, albo po za klubami, trafia w ogóle nie wiadomo gdzie. Informuję, że ogranizacja "non-profit", kasuje pieniądze za: składki członkowskie, składki instruktorskie, kursy nurkowania, min 100 zł od kursu podstawowego (cennik jest niejawny), poświadczenie przynależności klubowej (podobno niezbędne), książeczki nurkowe, badania lekarskie i co poniektórzy idioci instruktorzy za przyłożenie pieczątki poświadczającej nurkowanie. Wszystko to jest zbierane do skarpety i przekazywane do ręki chyba Kierepce, bo żadne legalne konto bankowe nie istnieje. Rok w rok zbiera się całkiem niezła pula całkowicie lewej i nieopodatkowanej forsy. Tak się zastanawiam, ile ta gówniana pralnia będzie działać. Komornik Egzekutor |
|
Data: 2014-01-17 08:31:40 | |
Autor: reclafek | |
Pranie pieniędzy w KDP/PTTK | |
Stawiam teze, ze kiedys tam odsuneli cie od tego koryta i teraz plujesz jadem jak nie przymierzajac babcia pod pałacem.
Sekta przez ciebie umarla. Wpis Wlodka Kolacza [...Pozwoliłem sobie tu zamieścić to ogłoszenie ponieważ przez wiele lat tutaj właśnie sporo się udzielałem...] daje nadzieje, ze kiedys, kiedy i ty bedziesz w takim stanie jak obecnie sekta, zycie tu wroci. Ja rowniez zagladam tu od czasu do czasu liczac na dobre wiesci. |
|
Data: 2014-01-18 10:35:38 | |
Autor: Pszemol | |
Pranie pieniędzy w KDP/PTTK | |
"reclafek" <reclafek@argo.pl> wrote in message news:lbam8u$9sd$1news.task.gda.pl...
Stawiam teze, ze kiedys tam odsuneli cie od tego koryta i teraz plujesz jadem jak nie przymierzajac babcia pod pałacem. Nie przesadzajmy, proszę, z obwinianiem jednej osoby za upadek grupy dyskusyjnej... Generalnie usenet traci na popularności bo ten typ aktywności interenetowej odchodzi powoli do historii. Taka tendencja jest na wielu grupach: coraz mniej postów, coraz mniej uczestników, coraz mniej ciekawych dyskusji... Prywatne fora dyskusyjne przejmują ruch ale nie dają tego, co dawał dawniej usenet: uniwersalności. Ludzie którzy mają jakiś interes w utrzymywaniu ruchu dla reklamy swoich produktów mają też motywację aby takie nowe fora tworzyć i pielęgnować. Czyli z czegoś co było darmowe, publiczne, robi się coś co jest komercyjne i prywatne... I jak wszystko ma to plusy i minusy... Narzekasz że on pluje jadem nienawiści a sam w stosunku do niego również ziejesz jadem... Po co robisz takie wpisy pełne negatywizmu? Nie lepiej pomóc koledze w jego dylematach? :-) |
|
Data: 2014-01-20 11:13:59 | |
Autor: reclafek | |
Pranie pieniędzy w KDP/PTTK | |
Użytkownik "Pszemol" <Pszemol@PolBox.com> napisał w wiadomości news:lbeai5$pb3$1dont-email.me...
Piszac swoja wypowiedz, zdawalem sobie sprawe, ze odpowiadam hejtem na hejt. Jestem na sekcie od okolo 2000 roku i mialem jeszcze to szczescie widziec ja zyjaca. Kiedy pojawily sie trole i sekta zaczela brac sie za lby, nie czulem sie na silach brac udzialu w tych slownych potyczkach. Widzialem tylko jak co chwila jakis dobry nurek wydawal oswiadczenie ze odchodzi. I odchodzil. Pozwolilem sobie teraz na jeden komentarz w tej sprawie aby wyrazic rozczarowanie, ze jeszcze nie nadszedl ten czas by dlugim okresie ciszy zaczela wracac normalnosc. Chetnie pomoglbym koledze w rozwiazaniu jego dylematow ale wielu juz probowalo. Bezskutecznie. Bede nadal czekal na dobre wiesci. Nikt nie jest wieczny :) |
|
Data: 2014-01-20 12:45:30 | |
Autor: Pszemol | |
Pranie pieniędzy w KDP/PTTK | |
"reclafek" <reclafek@argo.pl> wrote in message news:lbist8$oth$1news.task.gda.pl...
Piszac swoja wypowiedz, zdawalem sobie sprawe, ze odpowiadam hejtem na hejt. Właśnie w tym problem, że cisza nie przyciąga grupowiczów... Potencjalni grupowicze, nawet gdy jakimś cudem zauważą tą grupę, przejdą obok i nie zatrzymają się. Z kim mieliby dyskutować? Z pustką? A więc raz zapoczątkowana pustka na grupie niestety nie wróży nic dobrego na przyszłość. Zamiast komentować wpisy chorego kolegi pisz o swoich ostatnich nurkach. Niech coś się dzieje... Tylko taka szansa aby ktoś nowy się przyłaczył. Bede nadal czekal na dobre wiesci. Nikt nie jest wieczny :) I znowu... :-( |
|
Data: 2014-01-20 21:17:47 | |
Autor: Piotr Piesik | |
Pranie pieniędzy w KDP/PTTK | |
W dniu 2014-01-20 19:45, Pszemol pisze:
Właśnie w tym problem, że cisza nie przyciąga grupowiczów... W porównaniu z wieloma żywymi wątkami na forum Włodka, to tutaj się naprawdę nic nie dzieje. Może winę częściowo ponosi technologia. Usenet traci na popularności. Jest słabo dostępny z wielu służbowych komputerów/sieci (a widzę po godzinach, że ludzie generalnie piszą na internecie w czasie pracy). Może gdyby wiara chciała/umiała zainstalować sobie software do usenetu na smartphonie, to mielibyśmy jakiś ruch. Smartphone jest świetnym zabijaczem nudy we wszelkich poczekalniach, środkach komunikacji, na nudnych zebraniach itd ;) Taki np. Groundhog na Androidzie. Siedzę w poczekalni u lekarza, fryzjera, czekam na tramwaj i stukam ;) pozdr. Piotr |
|
Data: 2014-01-21 08:10:21 | |
Autor: reclafek | |
Pranie pieniędzy w KDP/PTTK | |
Użytkownik "Pszemol" <Pszemol@PolBox.com> napisał w wiadomości news:lbjqse$ld1$1dont-email.me... "reclafek" <reclafek@argo.pl> wrote in message Oj tam oj tam. Chodzi o ogolne zjawisko tollingu. Nie karm trola to z glodu... sobie pojdzie. Tyle ze ten trol niekarmiony od miesiecy, poczul sie zaniepokojony i sam wyskoczyl jak Filip z konopii. No dobra bylo minelo juz sie tak nie obruszaj Pozdrawiam |
|
Data: 2014-01-28 23:28:41 | |
Autor: 666 | |
Pranie pieniędzy w KDP/PTTK | |
From: <Saved by Windows Internet Explorer 8>
Subject: E-MS-Portal | Dane podmiotu Date: Tue, 28 Jan 2014 23:26:39 +0100 MIME-Version: 1.0 Content-Type: multipart/related; type="text/html"; boundary="-- -- =_NextPart_000_0000_01CF1C80.65698700" X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 This is a multi-part message in MIME format. -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/krs/danepodmiotu =EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" = "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <HTML xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>E-MS-Portal | = Dane podmiotu</TITLE> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/stack/en/core.js"></= SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/stack/en/ems.js"></S= CRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scrip= ts/iepngfix_tilebg.js"></SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scrip= ts/draggable-dialog.js"></SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/window/window.js"></= SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/window/window_effect= s.js"></SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/chenillekit/componen= ts/Window.js"></SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scrip= ts/ems-messages_en.js"></SCRIPT> <SCRIPT type=3Dtext/javascript=20 src=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scrip= ts/cookies_disabled_handler.js"></SCRIPT> <LINK rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/core/default.css"><= /LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/krs/pages/style/dan= ePodmiotu.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/core/tapestry-conso= le.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/ctx/styles/ui-light= ness/jquery-ui-1.8.18.custom.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/naglowek.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/menupoziome.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/stopka.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/window/themes/defau= lt.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/window/themes/alpha= cube.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/style.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/dialogbox.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/common.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/leftMenu.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/krs.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/tooltipMark.css"></LINK><LINK=20 rel=3Dstylesheet type=3Dtext/css=20 href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/styl= e/tDataGrid.css"></LINK> <META content=3Dno-cache http-equiv=3DCache-Control></META> <META content=3Dno-cache http-equiv=3DPragma></META> <META content=3D-1 http-equiv=3DExpires></META> <META name=3Dcertumid content=3D6b49cc48ed2113></META> <META content=3D"text/html; charset=3Dutf-8" = http-equiv=3DContent-Type></META> <META content=3DIE=3DEmulateIE7 http-equiv=3DX-UA-Compatible></META> <STYLE type=3Dtext/css>IMG { BEHAVIOR: = url(/assets/731238022b09c33a/mis/components/scripts/iepngfix.htc) } DIV { BEHAVIOR: = url(/assets/731238022b09c33a/mis/components/scripts/iepngfix.htc) } A { BEHAVIOR: = url(/assets/731238022b09c33a/mis/components/scripts/iepngfix.htc) } </STYLE> <LINK rel=3Dicon=20 href=3D"/assets/731238022b09c33a/mis/components/favicon.ico"></LINK> <META name=3DGENERATOR content=3D"MSHTML 8.00.6001.23543"></META></HEAD> <BODY> <DIV id=3Dcontener> <DIV id=3Dheader><A class=3DlogoMS title=3D"Ministerstwo = Sprawiedliwo=C5=9Bci"=20 href=3D"http://ms.gov.pl/"></A> <DIV class=3Dtoplog> <DIV class=3Dlog_lt></DIV> <DIV class=3Dlog><A href=3D"https://ems.ms.gov.pl/login">Zaloguj</A> <A=20 href=3D"https://ems.ms.gov.pl/konto/rejestracjawybormetody">Zarejestruj = si=C4=99</A> <A=20 class=3Dhelp href=3D"https://ems.ms.gov.pl/pomoc/index.html" = target=3D_blank>Pomoc</A>=20 </DIV> <DIV class=3Dlog_rt></DIV></DIV></DIV> <DIV id=3Dtopmenu> <UL> <LI><A class=3Dstart href=3D"https://ems.ms.gov.pl/start">START = </A></LI> <LI class=3Dactive><A class=3Dkrs=20 href=3D"https://ems.ms.gov.pl/krs/start/reset">KRAJOWY<BR>REJESTR = S=C4=84DOWY=20 </A></LI> <LI><A class=3Dmsig = href=3D"https://ems.ms.gov.pl/msig/start/reset">MONITOR=20 S=C4=84DOWY<BR>I GOSPODARCZY </A></LI> <LI><A class=3Dkonto = href=3D"https://ems.ms.gov.pl/konto/edycjakonta">MOJE KONTO=20 </A></LI> <LI><A class=3Dkorespondencja=20 href=3D"https://ems.ms.gov.pl/skrzynka/messagelist">KORESPONDENCJA=20 </A></LI></UL></DIV> <DIV id=3Dmain> <DIV class=3Dleft> <UL> <LI class=3Dactive><A=20 href=3D"https://ems.ms.gov.pl/krs/wyszukiwaniepodmiotu/reset">Wyszukaj = Podmiot=20 </A></LI> <LI><A = href=3D"https://ems.ms.gov.pl/krs/wyszukiwaniedluznika/reset">Wyszukaj=20 D=C5=82u=C5=BCnika </A></LI> <LI><A href=3D"https://ems.ms.gov.pl/krs/weryfikujwydruk">Weryfikuj = Wydruk=20 </A></LI></UL></DIV> <DIV class=3Dcontent_half> <DIV id=3Dform_main> <FORM id=3Dform onsubmit=3D"javascript:return = Tapestry.waitForPage(event);"=20 method=3Dpost action=3D/krs/danepodmiotu.form type=3D"form"> <DIV class=3Dt-invisible><INPUT=20 value=3DH4sIAAAAAAAAAJWVv2sUQRTHXzaennfGxEiKEE0U7qzCXJCk0cZ4IXJwSPAQK5HZ3= ck67o+ZzMze7KXQJn+DIIJ/gVhpa5PCzsa/wD/AxkIQLJzdKGIOvbzt3pf3mfd9M8t7r79AzS= 7BYqx0Z4tmbEeEKRcmvxE8ZkHsi0Ir2BAqIlRSJxFDJdNGjTZIIBRLuE98qhnZ9J1IA7PNWRK= 2Bszksn3/sPl54cMPD6b60AxEZpRI7tKUGZjvP6FD2kloFnUGRvEsullIA/XfNScZ2sQa2lEi= YFoPcj/lWnORHb4J13e/vfroARTSXoalf5Z7tKb34CmAgcYfaQJRAjV7FVbGc/YTkcXCchYpH= rpWVmVCIjEkqSZMUmKZH6TStZJKkbHMaHLH5XVzbUTauj58/rIdt1bbR66vQWvC+UQJq12R7n= /v61ixe445esFtoVxwe9TLQlZ8elg8m30/9909Zw/q7uBKLSS478RWyotpOGAKTXhoYhpNnEI= TNTRxGk2cQRN1NHEWTTTQRBNNnEMTM2jiPJqYRRNzaOICmphHExftFVgeI6TwOVP7dhSqPHaj= 49ZJR0c1W834pH0x+Lr47u1B1wOv7yZ8wl12LyxNlGuBJSx1QrkWKqlcAzO/PDyoPByP7TJcG= nNtXdVQJFybUdXfinG/m9O2RL/U/o5+Auqi35fzBgAA=20 type=3Dhidden name=3Dt:formdata></INPUT></DIV> <DIV id=3Dform_top><SPAN class=3Dform_heading>Dane podmiotu</SPAN> = </DIV> <DIV id=3Dform_body> <TABLE class=3DdanePodmiotu cellSpacing=3D5> <TBODY> <TR> <TD width=3D150>Nazwa</TD> <TD class=3Dbig colSpan=3D3>POLSKIE TOWARZYSTWO TURYSTYCZNO -=20 KRAJOZNAWCZE</TD></TR> <TR> <TD>Rejestr</TD> <TD class=3Dbig width=3D170>Rejestr Stowarzysze=C5=84</TD> <TD width=3D150>Wojew=C3=B3dztwo</TD> <TD class=3Dbig width=3D150>MAZOWIECKIE</TD></TR> <TR> <TD>Numer KRS</TD> <TD class=3Dbig>0000100817</TD> <TD>Powiat</TD> <TD class=3Dbig>WARSZAWSKI</TD></TR> <TR> <TD>NIP</TD> <TD class=3Dbig>5260010044</TD> <TD>Gmina</TD> <TD class=3Dbig>WARSZAWA-CENTRUM</TD></TR> <TR> <TD>REGON</TD> <TD class=3Dbig>00702301000000</TD> <TD>Miejscowo=C5=9B=C4=87</TD> <TD class=3Dbig>WARSZAWA</TD></TR> <TR> <TD>Forma prawna</TD> <TD class=3Dbig>STOWARZYSZENIE</TD> <TD>Adres</TD> <TD class=3Dbig>SENATORSKA 11 </TD></TR> <TR> <TD class=3Dmale>Data wpisu do Rejestru = Przedsi=C4=99biorc=C3=B3w</TD> <TD class=3Dbig>2002-03-27</TD> <TD>Kod pocztowy</TD> <TD class=3Dbig>00-075</TD></TR> <TR> <TD class=3Dmale>Data wpisu do Rejestru Stowarzysze=C5=84</TD> <TD class=3Dbig>2002-03-27 </TD> <TD>Adres WWW</TD> <TD class=3Dbig>WWW.PTTK.PL</TD></TR> <TR> <TD class=3Dmale>Data wykre=C5=9Blenia z Rejestru = Przedsi=C4=99biorc=C3=B3w</TD> <TD class=3Dbig></TD> <TD>Email</TD> <TD class=3Dbig>POCZTA@PTTK.PL</TD></TR> <TR> <TD class=3Dmale>Data wykre=C5=9Blenia z Rejestru = Stowarzysze=C5=84</TD> <TD class=3Dbig></TD> <TD></TD></TR> <TR> <TD class=3Dmale>Data uprawomocnienia wykre=C5=9Blenia z KRS</TD> <TD class=3Dbig></TD> <TD>Status OPP</TD> <TD class=3Dbig><INPUT id=3Dcheckbox disabled type=3Dcheckbox=20 name=3Dcheckbox></INPUT></TD></TR> <TR> <TD class=3Dmale>Data zawieszenia dzia=C5=82alno=C5=9Bci</TD> <TD class=3Dbig></TD> <TD>Data przyznania statusu OPP</TD> <TD class=3Dbig></TD></TR> <TR> <TD class=3Dmale>Data wznowienia dzia=C5=82alno=C5=9Bci</TD> <TD class=3Dbig></TD> <TD></TD> <TD></TD></TR> <TR> <TD colSpan=3D4> <HR> </TD></TR> <TR> <TD class=3Dbold>w upad=C5=82o=C5=9Bci</TD> <TD><INPUT id=3Dcheckbox_0 disabled type=3Dcheckbox=20 name=3Dcheckbox_0></INPUT></TD></TR> <TR> <TD class=3Dmale>Nazwa organu wydaj=C4=85cego akt prawny</TD></TR> <TR> <TD>Sygnatura aktu prawnego</TD></TR> <TR> <TD>Data wydania aktu prawnego</TD></TR> <TR> <TD class=3Dmale>Okre=C5=9Blenie sposobu prowadzenia = post=C4=99powania=20 upad=C5=82o=C5=9Bciowego</TD></TR> <TR> <TD class=3Dmale>Data zako=C5=84czenia post=C4=99powania = upad=C5=82o=C5=9Bciowego</TD></TR> <TR> <TD class=3Dmale>Spos=C3=B3b zako=C5=84czenia post=C4=99powania = upad=C5=82o=C5=9Bciowego</TD></TR> <TR> <TD colSpan=3D4> <HR> </TD></TR><!-- brakuje dwoch pol ponizej w wsdl'u -- > <TR> <TD>Nazwa organu reprezentacji</TD> <TD>ZARZ=C4=84D G=C5=81=C3=93WNY </TD></TR> <TR> <TD></TD></TR> <TR> <TD>Spos=C3=B3b reprezentacji</TD> <TD class=3Dbig colSpan=3D3>DLA WA=C5=BBNO=C5=9ACI = O=C5=9AWIADCZE=C5=83 W ZAKRESIE PRAW I=20 OBOWI=C4=84ZK=C3=93W PTTK ORAZ DLA UDZIELANIA PE=C5=81NOMOCNICTW, = WYMAGANE JEST=20 WSP=C3=93=C5=81DZIA=C5=81ANIE I PODPISY DW=C3=93CH OS=C3=93B = SPO=C5=9AR=C3=93D GRONA OBEJMUJ=C4=84CEGO: PREZESA,=20 WICEPREZES=C3=93W, SEKRETARZA GENERALNEGO, SKARBNIKA LUB INNYCH, = UMOCOWANYCH=20 PRZEZ ZARZ=C4=84D JEGO CZ=C5=81ONK=C3=93W.</TD></TR> <TR> <TD></TD></TR> <TR> <TD>Cz=C5=82onkowie reprezentacji</TD></TR></TBODY></TABLE> <DIV id=3DczlonkowieGrid> <DIV class=3Dt-data-grid> <TABLE class=3DczlonkowieReprezentacji type=3D"czlonkowieGrid"> <THEAD> <TR> <TH class=3D"nazwanazwiskoLubNazwa t-first">Nazwisko lub nazwa</TH> <TH class=3DnazwanazwiskoDrugie>Nazwisko drugi cz=C5=82on</TH> <TH class=3DnazwaimiePierwsze>Imi=C4=99 pierwsze</TH> <TH class=3DnazwaimieDrugie>Imi=C4=99 drugie</TH> <TH class=3D"funkcja t-last">Funkcja</TH></TR></THEAD> <TBODY> <TR class=3Dt-first> <TD class=3DnazwanazwiskoLubNazwa>DRO=C5=BBD=C5=BBY=C5=83SKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>LECH </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>GORDON </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>ANDRZEJ </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK PREZYDIUM - WICEPREZES </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>WASILEWSKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>ANDRZEJ </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>C=C5=BB=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>BARGIE=C5=81 </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>ROMAN </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK PREZYDIUM - PREZES, SEKRETARZ = GENERALNY </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>KAP=C5=81ON </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JERZY </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK PREZYDIUM - SKARBNIK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>SIKORA </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>STANIS=C5=81AW </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK PREZYDIUM - WICEPREZES </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>KUTY=C5=81A </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>EDWARD </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>MI=C5=81OSZEWSKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>HENRYK </TD> <TD class=3DnazwaimieDrugie>MARIAN </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK PREZYDIUM - WICEPREZES </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>WA=C5=81ACH </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>AGNIESZKA </TD> <TD class=3DnazwaimieDrugie>EL=C5=BBBIETA </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>JURAK </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>MARIAN </TD> <TD class=3DnazwaimieDrugie>JERZY </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>CZOBER </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JACEK </TD> <TD class=3DnazwaimieDrugie>KRZYSZTOF </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>KOPROWSKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>WOJCIECH </TD> <TD class=3DnazwaimieDrugie>MIROS=C5=81AW </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>D=C4=84BROWSKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JAROS=C5=81AW </TD> <TD class=3DnazwaimieDrugie>MARIAN </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>MORDAL </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>PAWE=C5=81 </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK ZARZ=C4=84DU </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>STASZAK </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>ALEKSANDRA </TD> <TD class=3DnazwaimieDrugie>MARIA </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>CIERPISZ </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>DANUTA </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>POTOCKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JACEK </TD> <TD class=3DnazwaimieDrugie>KRZYSZTOF </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>NOWAK </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JAKUB </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR> <TD class=3DnazwanazwiskoLubNazwa>OSYPIUK </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>WALDEMAR </TD> <TD class=3DnazwaimieDrugie> </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR> <TR class=3Dt-last> <TD class=3DnazwanazwiskoLubNazwa>GAJEWSKI </TD> <TD class=3DnazwanazwiskoDrugie> </TD> <TD class=3DnazwaimiePierwsze>JERZY </TD> <TD class=3DnazwaimieDrugie>WIKTOR </TD> <TD class=3Dfunkcja>CZ=C5=81ONEK </TD></TR></TBODY></TABLE> <DIV style=3D"TEXT-ALIGN: center" class=3Dt-data-grid-pager>Strona 1 z 1 = Liczba=20 cz=C5=82onk=C3=B3w: 20</DIV></DIV></DIV> <DIV style=3D"FLOAT: right"><INPUT id=3DpobierzWydruk value=3D"Pobierz = wydruk" type=3Dsubmit name=3DpobierzWydruk></INPUT>=20 <INPUT id=3DwrocDoListy value=3D"Powr=C3=B3t do listy" type=3Dsubmit = name=3DwrocDoListy></INPUT>=20 </DIV></DIV> <DIV id=3Dform_bottom></DIV></FORM></DIV></DIV></DIV> <DIV id=3Dfooter> <DIV class=3Dfooter_main><A title=3D"Program Innowacyjna Gospodarka"=20 href=3D"http://www.poig.gov.pl/" target=3D_blank><SPAN = class=3Dlogo_ig></SPAN></A><A=20 title=3D"Ministerstwo Sprawiedliwo=C5=9Bci" href=3D"http://ms.gov.pl/"=20 target=3D_blank><SPAN class=3Dlogo_ms></SPAN></A><A class=3Deu_link=20 title=3D"Unia Europejska Europejski Fundusz Spo=C5=82eczny"=20 href=3D"http://www.funduszeeuropejskie.gov.pl/" target=3D_blank><SPAN=20 class=3Dlogo_eu></SPAN></A><SPAN class=3Dsign>PROJEKT = WSP=C3=93=C5=81FINANSOWANY PRZEZ UNI=C4=98=20 EUROPEJSK=C4=84 W RAMACH =C5=9ARODK=C3=93W EUROPEJSKIEGO FUNDUSZU = ROZWOJU REGIONALNEGO</SPAN>=20 </DIV> <DIV class=3Dfooter_sign><SPAN class=3Demail><A=20 onclick=3D"$T('zglosBladWindow').ck_window.showCenter('this');"=20 href=3D"https://ems.ms.gov.pl/krs/danepodmiotu#">zg=C5=82o=C5=9B = b=C5=82=C4=85d na stronie</A>=20 <DIV style=3D"DISPLAY: none" id=3DzglosBladWindowContent> <DIV style=3D"WIDTH: 100%" class=3DdialogContent>W celu zg=C5=82oszenia = b=C5=82=C4=99du na stronie=20 konieczne jest wype=C5=82nienie poni=C5=BCszego formularza i = przes=C5=82anie go w formie=20 za=C5=82=C4=85cznika na adres e-mail: <A=20 href=3D"mailto:Serwis.S24@ms.gov.pl">Serwis.S24@ms.gov.pl</A>.<BR><BR><A = href=3D"https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/docs= /Zg=C5=82oszenie_b=C5=82=C4=99du_w_systemie_EMS_S24_-_formularz_dla_u=C5=BC= ytkownika.doc">Zg=C5=82oszenie_b=C5=82=C4=99du_w_systemie_EMS_S24_-_formu= larz_dla_u=C5=BCytkownika.doc</A><BR><BR> <DIV class=3Ddialog_nav><INPUT class=3Dsubmit = onclick=3D"javascript:$T('zglosBladWindow').ck_window.hide();" = value=3DOK type=3Dbutton></INPUT>=20 </DIV></DIV></DIV></SPAN><SPAN class=3Dversion>Wersja: 1.3.3</SPAN>=20 </DIV></DIV></DIV> <SCRIPT type=3Dtext/javascript>Tapestry.onDOMLoaded(function() {=0A= Tapestry.init({"formEventManager":[{"formId":"form","validate":{"submit":= true,"blur":true}}]});=0A= Tapestry.init({"ckwindow":[{"clientid":"zglosBladWindow","center":true,"c= ontentid":"zglosBladWindowContent","hasbody":true,"show":false,"windowopt= ions":{"id":"zglosBladWindow","title":"zg=C5=82o=C5=9B b=C5=82=C4=85d na = stronie","height":0,"width":536,"className":"alphacube"},"modal":true}],"= zone":[{"update":"show","element":"czlonkowieGrid","parameters":{"t:formi= d":"form","t:formcomponentid":"krs/DanePodmiotu:form"}}]});=0A= });=0A= </SCRIPT> </BODY></HTML> -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/core/default.css DIV.t-error { BORDER-BOTTOM: red 1px solid; BORDER-LEFT: red 1px solid; = PADDING-BOTTOM: 0px; MARGIN: 4px 0px; PADDING-LEFT: 0px; PADDING-RIGHT: = 0px; BORDER-TOP: red 1px solid; BORDER-RIGHT: red 1px solid; = PADDING-TOP: 0px } DIV.t-error DIV { PADDING-BOTTOM: 2px; BACKGROUND-COLOR: red; MARGIN: 0px; PADDING-LEFT: = 2px; PADDING-RIGHT: 2px; DISPLAY: block; COLOR: white; FONT-WEIGHT: = bold; PADDING-TOP: 2px } DIV.t-error UL { BACKGROUND-COLOR: white; MARGIN: 2px 0px; COLOR: red } DIV.t-error LI { MARGIN-LEFT: 20px } DIV.t-error-single { PADDING-BOTTOM: 2px; BACKGROUND-COLOR: red; MARGIN: 0px; PADDING-LEFT: = 2px; PADDING-RIGHT: 2px; DISPLAY: block; COLOR: white; PADDING-TOP: 2px } HTML > BODY DIV.t-error LI { MARGIN-LEFT: -20px } ..t-invisible { DISPLAY: none } LABEL.t-error { COLOR: red } INPUT.t-error { BORDER-BOTTOM-COLOR: red; FONT-STYLE: italic; BORDER-TOP-COLOR: red; = COLOR: red; BORDER-RIGHT-COLOR: red; BORDER-LEFT-COLOR: red } TEXTAREA.t-error { BORDER-BOTTOM-COLOR: red; FONT-STYLE: italic; BORDER-TOP-COLOR: red; = COLOR: red; BORDER-RIGHT-COLOR: red; BORDER-LEFT-COLOR: red } SELECT.t-error { BORDER-BOTTOM-COLOR: red; FONT-STYLE: italic; BORDER-TOP-COLOR: red; = COLOR: red; BORDER-RIGHT-COLOR: red; BORDER-LEFT-COLOR: red } IMG.t-error-icon { WIDTH: 16px; BACKGROUND: url(field-error-marker.gif); HEIGHT: 16px; = MARGIN-LEFT: 4px } IMG.t-autoloader-icon { WIDTH: 16px; BACKGROUND: url(ajax-loader.gif); HEIGHT: 16px; = MARGIN-LEFT: 4px } IMG.t-sort-icon { MARGIN-LEFT: 4px } DIV.t-exception-message { BORDER-BOTTOM: silver thin dotted; BORDER-LEFT: silver thin dotted; = PADDING-BOTTOM: 3px; FONT-STYLE: italic; MARGIN: 5px 0px; PADDING-LEFT: = 3px; PADDING-RIGHT: 3px; FONT-SIZE: 12pt; BORDER-TOP: silver thin = dotted; BORDER-RIGHT: silver thin dotted; PADDING-TOP: 3px } DIV.t-exception-report { FONT-FAMILY: "Trebuchet MS", Arial, sans-serif } DIV.t-env-data { FONT-FAMILY: "Trebuchet MS", Arial, sans-serif } DIV.t-exception-report LI { MARGIN-LEFT: -40px } DIV.t-exception-report DT { BACKGROUND-COLOR: #ffffcf; PADDING-LEFT: 2px; COLOR: green } DIV.t-env-data DT { BACKGROUND-COLOR: #ffffcf; PADDING-LEFT: 2px; COLOR: green } DIV.t-exception-report LI { LIST-STYLE-TYPE: none; LIST-STYLE-IMAGE: none } SPAN.t-exception-class-name { PADDING-BOTTOM: 2px; BACKGROUND-COLOR: #e1e1e1; MARGIN-TOP: 15px; = PADDING-LEFT: 3px; PADDING-RIGHT: 3px; DISPLAY: block; COLOR: blue; = FONT-SIZE: 12pt; FONT-WEIGHT: bold; PADDING-TOP: 2px } SPAN.t-exception-stack-controls { DISPLAY: block; FLOAT: right } UL.t-stack-trace LI { LIST-STYLE-TYPE: square; FONT-FAMILY: Monaco, Times, monospace; = MARGIN-LEFT: -25px; FONT-SIZE: 10pt } LI.t-usercode-frame { COLOR: blue; FONT-WEIGHT: bold } LI.t-omitted-frame { LIST-STYLE-TYPE: square; DISPLAY: none; COLOR: gray } H1.t-exception-report { FONT-FAMILY: "Trebuchet MS", Arial, sans-serif; COLOR: red } DIV.t-exception-report DT:after { CONTENT: ":" } DIV.t-exception-report DD { MARGIN-LEFT: 10px } DIV.t-env-data DD { MARGIN-LEFT: 10px } TABLE.t-data-table { PADDING-BOTTOM: 2px; MARGIN: 0px; PADDING-LEFT: 2px; PADDING-RIGHT: = 2px; BORDER-COLLAPSE: collapse; PADDING-TOP: 2px } TABLE.t-data-table TH { BACKGROUND-COLOR: black; COLOR: white } TABLE.t-data-table TD { BORDER-BOTTOM: silver 1px solid; BORDER-LEFT: silver 1px solid; MARGIN: = 0px; BORDER-TOP: silver 1px solid; BORDER-RIGHT: silver 1px solid } DIV.t-beaneditor { BORDER-BOTTOM: brown 2px outset; BORDER-LEFT: brown 2px outset; = PADDING-BOTTOM: 2px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; DISPLAY: = block; FONT-FAMILY: "Trebuchet MS", Arial, sans-serif; BACKGROUND: #ffc; = BORDER-TOP: brown 2px outset; BORDER-RIGHT: brown 2px outset; = PADDING-TOP: 2px } DIV.t-beaneditor-row { PADDING-BOTTOM: 2px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; = PADDING-TOP: 4px } DIV.t-beaneditor-row LABEL:after { CONTENT: ":" } DL.t-beandisplay { BORDER-BOTTOM: black 2px outset; BORDER-LEFT: black 2px outset; = PADDING-BOTTOM: 2px; PADDING-LEFT: 2px; WIDTH: auto; PADDING-RIGHT: 2px; = DISPLAY: block; FONT-FAMILY: "Trebuchet MS", Arial, sans-serif; = BACKGROUND: #ccbe99; BORDER-TOP: black 2px outset; BORDER-RIGHT: black = 2px outset; PADDING-TOP: 2px } DL.t-beandisplay DT { TEXT-ALIGN: right; WIDTH: 250px; PADDING-RIGHT: 3px; DISPLAY: inline; = FLOAT: left; CLEAR: left; VERTICAL-ALIGN: middle } DL.t-beandisplay DT:after { CONTENT: ":" } DIV.t-beaneditor-row LABEL { TEXT-ALIGN: right; WIDTH: 250px; PADDING-RIGHT: 3px; DISPLAY: block; = FLOAT: left; CLEAR: left; VERTICAL-ALIGN: middle } INPUT.t-number { TEXT-ALIGN: right } DIV.t-beandisplay DIV.t-beandisplay-label { PADDING-RIGHT: 5px } TABLE.t-data-grid THEAD TR { BACKGROUND-COLOR: #809fff; COLOR: white } TABLE.t-data-grid THEAD TR TH { BORDER-BOTTOM: silver 1px solid; TEXT-ALIGN: left; PADDING-BOTTOM: 3px; = PADDING-LEFT: 3px; PADDING-RIGHT: 3px; WHITE-SPACE: nowrap; = BORDER-RIGHT: silver 1px solid; PADDING-TOP: 3px } TABLE.t-data-grid { BORDER-LEFT: silver 1px solid; BORDER-COLLAPSE: collapse } TABLE.t-data-grid TBODY TR TD { BORDER-BOTTOM: silver 1px solid; PADDING-BOTTOM: 2px; PADDING-LEFT: = 2px; PADDING-RIGHT: 2px; BORDER-RIGHT: silver 1px solid; PADDING-TOP: = 2px } DIV.t-data-grid { FONT-FAMILY: "Trebuchet MS", Arial, sans-serif } DIV.t-data-grid-pager { MARGIN: 8px 0px } DIV.t-data-grid-pager A { BORDER-BOTTOM: silver 1px solid; BORDER-LEFT: silver 1px solid; = PADDING-BOTTOM: 2px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; COLOR: = black; FONT-SIZE: medium; BORDER-TOP: silver 1px solid; MARGIN-RIGHT: = 5px; BORDER-RIGHT: silver 1px solid; TEXT-DECORATION: none; PADDING-TOP: = 2px } DIV.t-data-grid-pager SPAN.current { BORDER-BOTTOM: silver 1px solid; BORDER-LEFT: silver 1px solid; = PADDING-BOTTOM: 2px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; COLOR: = black; FONT-SIZE: medium; BORDER-TOP: silver 1px solid; MARGIN-RIGHT: = 5px; BORDER-RIGHT: silver 1px solid; TEXT-DECORATION: none; PADDING-TOP: = 2px } DIV.t-data-grid-pager A:hover { BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; = BORDER-TOP: black 1px solid; BORDER-RIGHT: black 1px solid } DIV.t-data-grid-pager SPAN.current { BACKGROUND-COLOR: #809fff; COLOR: white } TABLE.t-data-grid TR TH A { COLOR: white } IMG { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; BORDER-TOP: = medium none; BORDER-RIGHT: medium none } DIV.t-env-data-section { PADDING-LEFT: 5px } DIV.t-env-data DD { MARGIN-BOTTOM: 10px; MARGIN-LEFT: 25px } DIV.t-exception-report DD { MARGIN-BOTTOM: 10px; MARGIN-LEFT: 25px } DIV.t-env-data LI { MARGIN-LEFT: -25px } DIV.t-env-data-section { PADDING-BOTTOM: 2px; BACKGROUND-COLOR: #e1e1e1; PADDING-LEFT: 3px; = PADDING-RIGHT: 3px; COLOR: blue; FONT-SIZE: 12pt; FONT-WEIGHT: bold; = PADDING-TOP: 2px } TABLE.t-location-outer { BORDER-BOTTOM: black 1px solid; BORDER-LEFT: black 1px solid; = PADDING-BOTTOM: 5px; PADDING-LEFT: 5px; WIDTH: 100%; PADDING-RIGHT: 5px; = BORDER-COLLAPSE: collapse; BORDER-TOP: black 1px solid; BORDER-RIGHT: = black 1px solid; PADDING-TOP: 5px } TD.t-location-line { TEXT-ALIGN: right; PADDING-BOTTOM: 0px; BACKGROUND-COLOR: #e1e1e1; = PADDING-LEFT: 0px; WIDTH: 40px; PADDING-RIGHT: 3px; BORDER-RIGHT: black = 1px solid; PADDING-TOP: 0px } TD.t-location-content { WHITE-SPACE: pre; BORDER-TOP: silver 1px solid; BORDER-RIGHT: black 1px = solid } TD.t-location-current { BACKGROUND-COLOR: #ffffcf } TD.t-location-content-first { BORDER-TOP: black 1px solid } DIV.t-palette { DISPLAY: inline } DIV.t-palette SELECT { WIDTH: 200px; MARGIN-BOTTOM: 2px } DIV.t-palette-title { TEXT-ALIGN: center; BACKGROUND-COLOR: #809fff; DISPLAY: block; = MARGIN-BOTTOM: 3px; COLOR: white; FONT-WEIGHT: bold } DIV.t-palette-available { FLOAT: left } DIV.t-palette-controls { TEXT-ALIGN: center; MARGIN: 5px; FLOAT: left } DIV.t-palette-controls BUTTON { DISPLAY: block; MARGIN-BOTTOM: 3px } DIV.t-palette-controls BUTTON[disabled] IMG { FILTER: alpha(opacity =3D 25); -moz-opacity: .25 } DIV.t-palette-selected { FLOAT: left; CLEAR: right } DIV.t-palette-spacer { CLEAR: left } IMG.t-calendar-trigger { PADDING-LEFT: 3px; CURSOR: pointer } DIV.t-autocomplete-menu { Z-INDEX: 9999 } DIV.t-autocomplete-menu UL { BORDER-BOTTOM: #cc9933 2px outset; BORDER-LEFT: #cc9933 2px outset; = PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #cc9933; PADDING-LEFT: 6px; = PADDING-RIGHT: 6px; OVERFLOW: auto; BORDER-TOP: #cc9933 2px outset; = BORDER-RIGHT: #cc9933 2px outset; PADDING-TOP: 4px } DIV.t-autocomplete-menu LI { BORDER-BOTTOM: black 1px solid; PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: = none; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; COLOR: white; = CURSOR: pointer; PADDING-TOP: 0px } DIV.t-autocomplete-menu LI.selected { COLOR: black; FONT-WEIGHT: bold } DIV.t-error-popup SPAN { PADDING-BOTTOM: 10px; LINE-HEIGHT: 28px; PADDING-LEFT: 22px; = PADDING-RIGHT: 5px; DISPLAY: block; BACKGROUND: = url(error-bevel-left.gif) no-repeat; MARGIN-LEFT: 0px; PADDING-TOP: 0px } HTML > BODY DIV.t-error-popup SPAN { BACKGROUND: url(error-bevel-left.png) no-repeat } DIV.t-error-popup { PADDING-RIGHT: 29px; DISPLAY: block; FONT: 12px arial, sans-serif; = BACKGROUND: url(error-bevel-right.gif) no-repeat right top; FLOAT: left; = HEIGHT: 39px; COLOR: #fff; CURSOR: pointer; MARGIN-RIGHT: 6px; = TEXT-DECORATION: none } HTML > BODY DIV.t-error-popup { BACKGROUND: url(error-bevel-right.png) no-repeat right top } UL.t-data-list LI { LIST-STYLE-TYPE: square } DIV.t-loading { WIDTH: auto; PADDING-RIGHT: 20px; DISPLAY: inline; BACKGROUND: = url(ajax-loader.gif) no-repeat right top; FONT-WEIGHT: bold } DIV.t-dialog-overlay { Z-INDEX: 9990; POSITION: fixed; MARGIN: auto; WIDTH: 100%; BACKGROUND: = url(dialog-background.gif); HEIGHT: 100%; TOP: 0px; LEFT: 0px } DIV.t-page-loading-banner { BORDER-BOTTOM: black 2px solid; POSITION: absolute; PADDING-BOTTOM: = 2px; PADDING-LEFT: 24px; WIDTH: auto; PADDING-RIGHT: 4px; BACKGROUND: = url(ajax-loader.gif) white no-repeat 4px center; COLOR: black; TOP: 5px; = FONT-WEIGHT: bold; BORDER-RIGHT: black 2px solid; PADDING-TOP: 2px; = LEFT: 5px } SPAN.t-render-object-error { COLOR: red; FONT-WEIGHT: bold } DIV.t-available-values UL LI { LIST-STYLE-TYPE: disc; MARGIN-LEFT: 0px } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/krs/pages/style/danePodmiotu.css DIV.t-data-grid { WIDTH: 100% } DIV.t-data-grid .czlonkowieReprezentacji { WIDTH: 100% } DIV.t-data-grid .czlonkowieReprezentacji TD { TEXT-ALIGN: center } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/core/tapestry-console.css DIV.t-console { Z-INDEX: 1; POSITION: fixed; TOP: 2px; LEFT: 2px } DIV.t-console DIV { PADDING-BOTTOM: 0px; PADDING-LEFT: 2px; PADDING-RIGHT: 2px; = FONT-WEIGHT: bold; PADDING-TOP: 0px } DIV.t-console DIV.t-err { BACKGROUND-COLOR: red; COLOR: white } DIV.t-console DIV.t-warn { BACKGROUND-COLOR: yellow; COLOR: black } DIV.t-console DIV.t-debug { BACKGROUND-COLOR: silver; COLOR: black } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/ctx/styles/ui-lightness/jquery-ui-1.8.18.custom.css ..ui-helper-hidden { DISPLAY: none } ..ui-helper-hidden-accessible { CLIP: rect(1px 1px 1px 1px); POSITION: absolute !important } ..ui-helper-reset { BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; PADDING-BOTTOM: 0px; LINE-HEIGHT: = 1.3; LIST-STYLE-TYPE: none; MARGIN: 0px; OUTLINE-STYLE: none; = OUTLINE-COLOR: invert; PADDING-LEFT: 0px; OUTLINE-WIDTH: 0px; = PADDING-RIGHT: 0px; FONT-SIZE: 100%; BORDER-TOP: 0px; LIST-STYLE-IMAGE: = none; BORDER-RIGHT: 0px; TEXT-DECORATION: none; PADDING-TOP: 0px } ..ui-helper-clearfix:before { DISPLAY: table; CONTENT: "" } ..ui-helper-clearfix:after { DISPLAY: table; CONTENT: "" } ..ui-helper-clearfix:after { CLEAR: both } ..ui-helper-clearfix { ZOOM: 1 } ..ui-helper-zfix { POSITION: absolute; FILTER: Alpha(Opacity=3D0); WIDTH: 100%; HEIGHT: = 100%; TOP: 0px; LEFT: 0px; opacity: 0 } ..ui-state-disabled { CURSOR: default !important } ..ui-icon { TEXT-INDENT: -99999px; DISPLAY: block; BACKGROUND-REPEAT: no-repeat; = OVERFLOW: hidden } ..ui-widget-overlay { POSITION: absolute; WIDTH: 100%; HEIGHT: 100%; TOP: 0px; LEFT: 0px } ..ui-widget { FONT-FAMILY: Georgia, "Times New Roman", Times, serif; FONT-SIZE: 12px } ..ui-widget .ui-widget { FONT-SIZE: 1em } ..ui-widget INPUT { FONT-FAMILY: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; = FONT-SIZE: 1em } ..ui-widget SELECT { FONT-FAMILY: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; = FONT-SIZE: 1em } ..ui-widget TEXTAREA { FONT-FAMILY: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; = FONT-SIZE: 1em } ..ui-widget BUTTON { FONT-FAMILY: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; = FONT-SIZE: 1em } ..ui-widget-content { BORDER-BOTTOM: #dddddd 1px solid; BORDER-LEFT: #dddddd 1px solid; = BACKGROUND: url(images/ui-bg_highlight-soft_100_eeeeee_1x100.png) = #eeeeee repeat-x 50% top; COLOR: #333333; BORDER-TOP: #dddddd 1px solid; = BORDER-RIGHT: #dddddd 1px solid } ..ui-widget-content A { COLOR: #333333 } ..ui-widget-header { BORDER-BOTTOM: #e78f08 1px solid; BORDER-LEFT: #e78f08 1px solid; = BACKGROUND: url(images/ui-bg_gloss-wave_35_f6a828_500x100.png) #f6a828 = repeat-x 50% 50%; COLOR: #ffffff; BORDER-TOP: #e78f08 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #e78f08 1px solid } ..ui-widget-header A { COLOR: #ffffff } ..ui-state-default { BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_f6f6f6_1x400.png) #f6f6f6 = repeat-x 50% 50%; COLOR: #1c94c4; BORDER-TOP: #cccccc 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #cccccc 1px solid } ..ui-widget-content .ui-state-default { BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_f6f6f6_1x400.png) #f6f6f6 = repeat-x 50% 50%; COLOR: #1c94c4; BORDER-TOP: #cccccc 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #cccccc 1px solid } ..ui-widget-header .ui-state-default { BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_f6f6f6_1x400.png) #f6f6f6 = repeat-x 50% 50%; COLOR: #1c94c4; BORDER-TOP: #cccccc 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #cccccc 1px solid } ..ui-state-default A { COLOR: #1c94c4; TEXT-DECORATION: none } ..ui-state-default A:link { COLOR: #1c94c4; TEXT-DECORATION: none } ..ui-state-default A:visited { COLOR: #1c94c4; TEXT-DECORATION: none } ..ui-state-hover { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-widget-content .ui-state-hover { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-widget-header .ui-state-hover { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-state-focus { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-widget-content .ui-state-focus { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-widget-header .ui-state-focus { BORDER-BOTTOM: #fbcb09 1px solid; BORDER-LEFT: #fbcb09 1px solid; = BACKGROUND: url(images/ui-bg_glass_100_fdf5ce_1x400.png) #fdf5ce = repeat-x 50% 50%; COLOR: #c77405; BORDER-TOP: #fbcb09 1px solid; = FONT-WEIGHT: bold; BORDER-RIGHT: #fbcb09 1px solid } ..ui-state-hover A { COLOR: #c77405; TEXT-DECORATION: none } ..ui-state-hover A:hover { COLOR: #c77405; TEXT-DECORATION: none } ..ui-state-active { BORDER-BOTTOM: #fbd850 1px solid; BORDER-LEFT: #fbd850 1px solid; = BACKGROUND: url(images/ui-bg_glass_65_ffffff_1x400.png) #ffffff repeat-x = 50% 50%; COLOR: #eb8f00; BORDER-TOP: #fbd850 1px solid; FONT-WEIGHT: = bold; BORDER-RIGHT: #fbd850 1px solid } ..ui-widget-content .ui-state-active { BORDER-BOTTOM: #fbd850 1px solid; BORDER-LEFT: #fbd850 1px solid; = BACKGROUND: url(images/ui-bg_glass_65_ffffff_1x400.png) #ffffff repeat-x = 50% 50%; COLOR: #eb8f00; BORDER-TOP: #fbd850 1px solid; FONT-WEIGHT: = bold; BORDER-RIGHT: #fbd850 1px solid } ..ui-widget-header .ui-state-active { BORDER-BOTTOM: #fbd850 1px solid; BORDER-LEFT: #fbd850 1px solid; = BACKGROUND: url(images/ui-bg_glass_65_ffffff_1x400.png) #ffffff repeat-x = 50% 50%; COLOR: #eb8f00; BORDER-TOP: #fbd850 1px solid; FONT-WEIGHT: = bold; BORDER-RIGHT: #fbd850 1px solid } ..ui-state-active A { COLOR: #eb8f00; TEXT-DECORATION: none } ..ui-state-active A:link { COLOR: #eb8f00; TEXT-DECORATION: none } ..ui-state-active A:visited { COLOR: #eb8f00; TEXT-DECORATION: none } ..ui-widget :active { OUTLINE-STYLE: none; OUTLINE-COLOR: invert; OUTLINE-WIDTH: medium } ..ui-state-highlight { BORDER-BOTTOM: #fed22f 1px solid; BORDER-LEFT: #fed22f 1px solid; = BACKGROUND: url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) #ffe45c = repeat-x 50% top; COLOR: #363636; BORDER-TOP: #fed22f 1px solid; = BORDER-RIGHT: #fed22f 1px solid } ..ui-widget-content .ui-state-highlight { BORDER-BOTTOM: #fed22f 1px solid; BORDER-LEFT: #fed22f 1px solid; = BACKGROUND: url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) #ffe45c = repeat-x 50% top; COLOR: #363636; BORDER-TOP: #fed22f 1px solid; = BORDER-RIGHT: #fed22f 1px solid } ..ui-widget-header .ui-state-highlight { BORDER-BOTTOM: #fed22f 1px solid; BORDER-LEFT: #fed22f 1px solid; = BACKGROUND: url(images/ui-bg_highlight-soft_75_ffe45c_1x100.png) #ffe45c = repeat-x 50% top; COLOR: #363636; BORDER-TOP: #fed22f 1px solid; = BORDER-RIGHT: #fed22f 1px solid } ..ui-state-highlight A { COLOR: #363636 } ..ui-widget-content .ui-state-highlight A { COLOR: #363636 } ..ui-widget-header .ui-state-highlight A { COLOR: #363636 } ..ui-state-error { BORDER-BOTTOM: #cd0a0a 1px solid; BORDER-LEFT: #cd0a0a 1px solid; = BACKGROUND: url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) = #b81900 50% 50%; COLOR: #ffffff; BORDER-TOP: #cd0a0a 1px solid; = BORDER-RIGHT: #cd0a0a 1px solid } ..ui-widget-content .ui-state-error { BORDER-BOTTOM: #cd0a0a 1px solid; BORDER-LEFT: #cd0a0a 1px solid; = BACKGROUND: url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) = #b81900 50% 50%; COLOR: #ffffff; BORDER-TOP: #cd0a0a 1px solid; = BORDER-RIGHT: #cd0a0a 1px solid } ..ui-widget-header .ui-state-error { BORDER-BOTTOM: #cd0a0a 1px solid; BORDER-LEFT: #cd0a0a 1px solid; = BACKGROUND: url(images/ui-bg_diagonals-thick_18_b81900_40x40.png) = #b81900 50% 50%; COLOR: #ffffff; BORDER-TOP: #cd0a0a 1px solid; = BORDER-RIGHT: #cd0a0a 1px solid } ..ui-state-error A { COLOR: #ffffff } ..ui-widget-content .ui-state-error A { COLOR: #ffffff } ..ui-widget-header .ui-state-error A { COLOR: #ffffff } ..ui-state-error-text { COLOR: #ffffff } ..ui-widget-content .ui-state-error-text { COLOR: #ffffff } ..ui-widget-header .ui-state-error-text { COLOR: #ffffff } ..ui-priority-primary { FONT-WEIGHT: bold } ..ui-widget-content .ui-priority-primary { FONT-WEIGHT: bold } ..ui-widget-header .ui-priority-primary { FONT-WEIGHT: bold } ..ui-priority-secondary { FILTER: Alpha(Opacity=3D70); FONT-WEIGHT: normal; opacity: .7 } ..ui-widget-content .ui-priority-secondary { FILTER: Alpha(Opacity=3D70); FONT-WEIGHT: normal; opacity: .7 } ..ui-widget-header .ui-priority-secondary { FILTER: Alpha(Opacity=3D70); FONT-WEIGHT: normal; opacity: .7 } ..ui-state-disabled { BACKGROUND-IMAGE: none; FILTER: Alpha(Opacity=3D35); opacity: .35 } ..ui-widget-content .ui-state-disabled { BACKGROUND-IMAGE: none; FILTER: Alpha(Opacity=3D35); opacity: .35 } ..ui-widget-header .ui-state-disabled { BACKGROUND-IMAGE: none; FILTER: Alpha(Opacity=3D35); opacity: .35 } ..ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_222222_256x240.png); WIDTH: 16px; = HEIGHT: 16px } ..ui-widget-content .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_222222_256x240.png) } ..ui-widget-header .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ffffff_256x240.png) } ..ui-state-default .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ef8c08_256x240.png) } ..ui-state-hover .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ef8c08_256x240.png) } ..ui-state-focus .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ef8c08_256x240.png) } ..ui-state-active .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ef8c08_256x240.png) } ..ui-state-highlight .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_228ef1_256x240.png) } ..ui-state-error .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ffd27a_256x240.png) } ..ui-state-error-text .ui-icon { BACKGROUND-IMAGE: url(images/ui-icons_ffd27a_256x240.png) } ..ui-icon-carat-1-n { BACKGROUND-POSITION: 0px 0px } ..ui-icon-carat-1-ne { BACKGROUND-POSITION: -16px 0px } ..ui-icon-carat-1-e { BACKGROUND-POSITION: -32px 0px } ..ui-icon-carat-1-se { BACKGROUND-POSITION: -48px 0px } ..ui-icon-carat-1-s { BACKGROUND-POSITION: -64px 0px } ..ui-icon-carat-1-sw { BACKGROUND-POSITION: -80px 0px } ..ui-icon-carat-1-w { BACKGROUND-POSITION: -96px 0px } ..ui-icon-carat-1-nw { BACKGROUND-POSITION: -112px 0px } ..ui-icon-carat-2-n-s { BACKGROUND-POSITION: -128px 0px } ..ui-icon-carat-2-e-w { BACKGROUND-POSITION: -144px 0px } ..ui-icon-triangle-1-n { BACKGROUND-POSITION: 0px -16px } ..ui-icon-triangle-1-ne { BACKGROUND-POSITION: -16px -16px } ..ui-icon-triangle-1-e { BACKGROUND-POSITION: -32px -16px } ..ui-icon-triangle-1-se { BACKGROUND-POSITION: -48px -16px } ..ui-icon-triangle-1-s { BACKGROUND-POSITION: -64px -16px } ..ui-icon-triangle-1-sw { BACKGROUND-POSITION: -80px -16px } ..ui-icon-triangle-1-w { BACKGROUND-POSITION: -96px -16px } ..ui-icon-triangle-1-nw { BACKGROUND-POSITION: -112px -16px } ..ui-icon-triangle-2-n-s { BACKGROUND-POSITION: -128px -16px } ..ui-icon-triangle-2-e-w { BACKGROUND-POSITION: -144px -16px } ..ui-icon-arrow-1-n { BACKGROUND-POSITION: 0px -32px } ..ui-icon-arrow-1-ne { BACKGROUND-POSITION: -16px -32px } ..ui-icon-arrow-1-e { BACKGROUND-POSITION: -32px -32px } ..ui-icon-arrow-1-se { BACKGROUND-POSITION: -48px -32px } ..ui-icon-arrow-1-s { BACKGROUND-POSITION: -64px -32px } ..ui-icon-arrow-1-sw { BACKGROUND-POSITION: -80px -32px } ..ui-icon-arrow-1-w { BACKGROUND-POSITION: -96px -32px } ..ui-icon-arrow-1-nw { BACKGROUND-POSITION: -112px -32px } ..ui-icon-arrow-2-n-s { BACKGROUND-POSITION: -128px -32px } ..ui-icon-arrow-2-ne-sw { BACKGROUND-POSITION: -144px -32px } ..ui-icon-arrow-2-e-w { BACKGROUND-POSITION: -160px -32px } ..ui-icon-arrow-2-se-nw { BACKGROUND-POSITION: -176px -32px } ..ui-icon-arrowstop-1-n { BACKGROUND-POSITION: -192px -32px } ..ui-icon-arrowstop-1-e { BACKGROUND-POSITION: -208px -32px } ..ui-icon-arrowstop-1-s { BACKGROUND-POSITION: -224px -32px } ..ui-icon-arrowstop-1-w { BACKGROUND-POSITION: -240px -32px } ..ui-icon-arrowthick-1-n { BACKGROUND-POSITION: 0px -48px } ..ui-icon-arrowthick-1-ne { BACKGROUND-POSITION: -16px -48px } ..ui-icon-arrowthick-1-e { BACKGROUND-POSITION: -32px -48px } ..ui-icon-arrowthick-1-se { BACKGROUND-POSITION: -48px -48px } ..ui-icon-arrowthick-1-s { BACKGROUND-POSITION: -64px -48px } ..ui-icon-arrowthick-1-sw { BACKGROUND-POSITION: -80px -48px } ..ui-icon-arrowthick-1-w { BACKGROUND-POSITION: -96px -48px } ..ui-icon-arrowthick-1-nw { BACKGROUND-POSITION: -112px -48px } ..ui-icon-arrowthick-2-n-s { BACKGROUND-POSITION: -128px -48px } ..ui-icon-arrowthick-2-ne-sw { BACKGROUND-POSITION: -144px -48px } ..ui-icon-arrowthick-2-e-w { BACKGROUND-POSITION: -160px -48px } ..ui-icon-arrowthick-2-se-nw { BACKGROUND-POSITION: -176px -48px } ..ui-icon-arrowthickstop-1-n { BACKGROUND-POSITION: -192px -48px } ..ui-icon-arrowthickstop-1-e { BACKGROUND-POSITION: -208px -48px } ..ui-icon-arrowthickstop-1-s { BACKGROUND-POSITION: -224px -48px } ..ui-icon-arrowthickstop-1-w { BACKGROUND-POSITION: -240px -48px } ..ui-icon-arrowreturnthick-1-w { BACKGROUND-POSITION: 0px -64px } ..ui-icon-arrowreturnthick-1-n { BACKGROUND-POSITION: -16px -64px } ..ui-icon-arrowreturnthick-1-e { BACKGROUND-POSITION: -32px -64px } ..ui-icon-arrowreturnthick-1-s { BACKGROUND-POSITION: -48px -64px } ..ui-icon-arrowreturn-1-w { BACKGROUND-POSITION: -64px -64px } ..ui-icon-arrowreturn-1-n { BACKGROUND-POSITION: -80px -64px } ..ui-icon-arrowreturn-1-e { BACKGROUND-POSITION: -96px -64px } ..ui-icon-arrowreturn-1-s { BACKGROUND-POSITION: -112px -64px } ..ui-icon-arrowrefresh-1-w { BACKGROUND-POSITION: -128px -64px } ..ui-icon-arrowrefresh-1-n { BACKGROUND-POSITION: -144px -64px } ..ui-icon-arrowrefresh-1-e { BACKGROUND-POSITION: -160px -64px } ..ui-icon-arrowrefresh-1-s { BACKGROUND-POSITION: -176px -64px } ..ui-icon-arrow-4 { BACKGROUND-POSITION: 0px -80px } ..ui-icon-arrow-4-diag { BACKGROUND-POSITION: -16px -80px } ..ui-icon-extlink { BACKGROUND-POSITION: -32px -80px } ..ui-icon-newwin { BACKGROUND-POSITION: -48px -80px } ..ui-icon-refresh { BACKGROUND-POSITION: -64px -80px } ..ui-icon-shuffle { BACKGROUND-POSITION: -80px -80px } ..ui-icon-transfer-e-w { BACKGROUND-POSITION: -96px -80px } ..ui-icon-transferthick-e-w { BACKGROUND-POSITION: -112px -80px } ..ui-icon-folder-collapsed { BACKGROUND-POSITION: 0px -96px } ..ui-icon-folder-open { BACKGROUND-POSITION: -16px -96px } ..ui-icon-document { BACKGROUND-POSITION: -32px -96px } ..ui-icon-document-b { BACKGROUND-POSITION: -48px -96px } ..ui-icon-note { BACKGROUND-POSITION: -64px -96px } ..ui-icon-mail-closed { BACKGROUND-POSITION: -80px -96px } ..ui-icon-mail-open { BACKGROUND-POSITION: -96px -96px } ..ui-icon-suitcase { BACKGROUND-POSITION: -112px -96px } ..ui-icon-comment { BACKGROUND-POSITION: -128px -96px } ..ui-icon-person { BACKGROUND-POSITION: -144px -96px } ..ui-icon-print { BACKGROUND-POSITION: -160px -96px } ..ui-icon-trash { BACKGROUND-POSITION: -176px -96px } ..ui-icon-locked { BACKGROUND-POSITION: -192px -96px } ..ui-icon-unlocked { BACKGROUND-POSITION: -208px -96px } ..ui-icon-bookmark { BACKGROUND-POSITION: -224px -96px } ..ui-icon-tag { BACKGROUND-POSITION: -240px -96px } ..ui-icon-home { BACKGROUND-POSITION: 0px -112px } ..ui-icon-flag { BACKGROUND-POSITION: -16px -112px } ..ui-icon-calendar { BACKGROUND-POSITION: -32px -112px } ..ui-icon-cart { BACKGROUND-POSITION: -48px -112px } ..ui-icon-pencil { BACKGROUND-POSITION: -64px -112px } ..ui-icon-clock { BACKGROUND-POSITION: -80px -112px } ..ui-icon-disk { BACKGROUND-POSITION: -96px -112px } ..ui-icon-calculator { BACKGROUND-POSITION: -112px -112px } ..ui-icon-zoomin { BACKGROUND-POSITION: -128px -112px } ..ui-icon-zoomout { BACKGROUND-POSITION: -144px -112px } ..ui-icon-search { BACKGROUND-POSITION: -160px -112px } ..ui-icon-wrench { BACKGROUND-POSITION: -176px -112px } ..ui-icon-gear { BACKGROUND-POSITION: -192px -112px } ..ui-icon-heart { BACKGROUND-POSITION: -208px -112px } ..ui-icon-star { BACKGROUND-POSITION: -224px -112px } ..ui-icon-link { BACKGROUND-POSITION: -240px -112px } ..ui-icon-cancel { BACKGROUND-POSITION: 0px -128px } ..ui-icon-plus { BACKGROUND-POSITION: -16px -128px } ..ui-icon-plusthick { BACKGROUND-POSITION: -32px -128px } ..ui-icon-minus { BACKGROUND-POSITION: -48px -128px } ..ui-icon-minusthick { BACKGROUND-POSITION: -64px -128px } ..ui-icon-close { BACKGROUND-POSITION: -80px -128px } ..ui-icon-closethick { BACKGROUND-POSITION: -96px -128px } ..ui-icon-key { BACKGROUND-POSITION: -112px -128px } ..ui-icon-lightbulb { BACKGROUND-POSITION: -128px -128px } ..ui-icon-scissors { BACKGROUND-POSITION: -144px -128px } ..ui-icon-clipboard { BACKGROUND-POSITION: -160px -128px } ..ui-icon-copy { BACKGROUND-POSITION: -176px -128px } ..ui-icon-contact { BACKGROUND-POSITION: -192px -128px } ..ui-icon-image { BACKGROUND-POSITION: -208px -128px } ..ui-icon-video { BACKGROUND-POSITION: -224px -128px } ..ui-icon-script { BACKGROUND-POSITION: -240px -128px } ..ui-icon-alert { BACKGROUND-POSITION: 0px -144px } ..ui-icon-info { BACKGROUND-POSITION: -16px -144px } ..ui-icon-notice { BACKGROUND-POSITION: -32px -144px } ..ui-icon-help { BACKGROUND-POSITION: -48px -144px } ..ui-icon-check { BACKGROUND-POSITION: -64px -144px } ..ui-icon-bullet { BACKGROUND-POSITION: -80px -144px } ..ui-icon-radio-off { BACKGROUND-POSITION: -96px -144px } ..ui-icon-radio-on { BACKGROUND-POSITION: -112px -144px } ..ui-icon-pin-w { BACKGROUND-POSITION: -128px -144px } ..ui-icon-pin-s { BACKGROUND-POSITION: -144px -144px } ..ui-icon-play { BACKGROUND-POSITION: 0px -160px } ..ui-icon-pause { BACKGROUND-POSITION: -16px -160px } ..ui-icon-seek-next { BACKGROUND-POSITION: -32px -160px } ..ui-icon-seek-prev { BACKGROUND-POSITION: -48px -160px } ..ui-icon-seek-end { BACKGROUND-POSITION: -64px -160px } ..ui-icon-seek-start { BACKGROUND-POSITION: -80px -160px } ..ui-icon-seek-first { BACKGROUND-POSITION: -80px -160px } ..ui-icon-stop { BACKGROUND-POSITION: -96px -160px } ..ui-icon-eject { BACKGROUND-POSITION: -112px -160px } ..ui-icon-volume-off { BACKGROUND-POSITION: -128px -160px } ..ui-icon-volume-on { BACKGROUND-POSITION: -144px -160px } ..ui-icon-power { BACKGROUND-POSITION: 0px -176px } ..ui-icon-signal-diag { BACKGROUND-POSITION: -16px -176px } ..ui-icon-signal { BACKGROUND-POSITION: -32px -176px } ..ui-icon-battery-0 { BACKGROUND-POSITION: -48px -176px } ..ui-icon-battery-1 { BACKGROUND-POSITION: -64px -176px } ..ui-icon-battery-2 { BACKGROUND-POSITION: -80px -176px } ..ui-icon-battery-3 { BACKGROUND-POSITION: -96px -176px } ..ui-icon-circle-plus { BACKGROUND-POSITION: 0px -192px } ..ui-icon-circle-minus { BACKGROUND-POSITION: -16px -192px } ..ui-icon-circle-close { BACKGROUND-POSITION: -32px -192px } ..ui-icon-circle-triangle-e { BACKGROUND-POSITION: -48px -192px } ..ui-icon-circle-triangle-s { BACKGROUND-POSITION: -64px -192px } ..ui-icon-circle-triangle-w { BACKGROUND-POSITION: -80px -192px } ..ui-icon-circle-triangle-n { BACKGROUND-POSITION: -96px -192px } ..ui-icon-circle-arrow-e { BACKGROUND-POSITION: -112px -192px } ..ui-icon-circle-arrow-s { BACKGROUND-POSITION: -128px -192px } ..ui-icon-circle-arrow-w { BACKGROUND-POSITION: -144px -192px } ..ui-icon-circle-arrow-n { BACKGROUND-POSITION: -160px -192px } ..ui-icon-circle-zoomin { BACKGROUND-POSITION: -176px -192px } ..ui-icon-circle-zoomout { BACKGROUND-POSITION: -192px -192px } ..ui-icon-circle-check { BACKGROUND-POSITION: -208px -192px } ..ui-icon-circlesmall-plus { BACKGROUND-POSITION: 0px -208px } ..ui-icon-circlesmall-minus { BACKGROUND-POSITION: -16px -208px } ..ui-icon-circlesmall-close { BACKGROUND-POSITION: -32px -208px } ..ui-icon-squaresmall-plus { BACKGROUND-POSITION: -48px -208px } ..ui-icon-squaresmall-minus { BACKGROUND-POSITION: -64px -208px } ..ui-icon-squaresmall-close { BACKGROUND-POSITION: -80px -208px } ..ui-icon-grip-dotted-vertical { BACKGROUND-POSITION: 0px -224px } ..ui-icon-grip-dotted-horizontal { BACKGROUND-POSITION: -16px -224px } ..ui-icon-grip-solid-vertical { BACKGROUND-POSITION: -32px -224px } ..ui-icon-grip-solid-horizontal { BACKGROUND-POSITION: -48px -224px } ..ui-icon-gripsmall-diagonal-se { BACKGROUND-POSITION: -64px -224px } ..ui-icon-grip-diagonal-se { BACKGROUND-POSITION: -80px -224px } ..ui-corner-all { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; = -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px } ..ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; = -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px } ..ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; = -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px } ..ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; = -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px } ..ui-corner-all { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; = -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px } ..ui-corner-top { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; = -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px } ..ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; = -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px } ..ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; = -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px } ..ui-corner-all { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: = 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: = 4px } ..ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: = 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: = 4px } ..ui-corner-left { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: = 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: = 4px } ..ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: = 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: = 4px } ..ui-corner-all { -moz-border-radius-bottomright: 4px; = -webkit-border-bottom-right-radius: 4px; = -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px } ..ui-corner-bottom { -moz-border-radius-bottomright: 4px; = -webkit-border-bottom-right-radius: 4px; = -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px } ..ui-corner-right { -moz-border-radius-bottomright: 4px; = -webkit-border-bottom-right-radius: 4px; = -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px } ..ui-corner-br { -moz-border-radius-bottomright: 4px; = -webkit-border-bottom-right-radius: 4px; = -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px } ..ui-widget-overlay { FILTER: Alpha(Opacity=3D50); BACKGROUND: = url(images/ui-bg_diagonals-thick_20_666666_40x40.png) #666666 50% 50%; = opacity: .50 } ..ui-widget-shadow { FILTER: Alpha(Opacity=3D20); PADDING-BOTTOM: 5px; MARGIN: -5px 0px 0px = -5px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; BACKGROUND: = url(images/ui-bg_flat_10_000000_40x100.png) #000000 repeat-x 50% 50%; = PADDING-TOP: 5px; opacity: .20; -moz-border-radius: 5px; = -khtml-border-radius: 5px; -webkit-border-radius: 5px; border-radius: = 5px } ..ui-autocomplete { POSITION: absolute; CURSOR: default } * HTML .ui-autocomplete { WIDTH: 1px } ..ui-menu { PADDING-BOTTOM: 2px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: = 2px; PADDING-RIGHT: 2px; DISPLAY: block; FLOAT: left; LIST-STYLE-IMAGE: = none; PADDING-TOP: 2px } ..ui-menu .ui-menu { MARGIN-TOP: -3px } ..ui-menu .ui-menu-item { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; WIDTH: 100%; = PADDING-RIGHT: 0px; ZOOM: 1; FLOAT: left; CLEAR: left; PADDING-TOP: 0px } ..ui-menu .ui-menu-item A { PADDING-BOTTOM: 0.2em; LINE-HEIGHT: 1.5; PADDING-LEFT: 0.4em; = PADDING-RIGHT: 0.4em; ZOOM: 1; DISPLAY: block; TEXT-DECORATION: none; = PADDING-TOP: 0.2em } ..ui-menu .ui-menu-item A.ui-state-hover { MARGIN: -1px; FONT-WEIGHT: normal } ..ui-menu .ui-menu-item A.ui-state-active { MARGIN: -1px; FONT-WEIGHT: normal } ..ui-dialog { POSITION: absolute; PADDING-BOTTOM: 0.2em; PADDING-LEFT: 0.2em; WIDTH: = 300px; PADDING-RIGHT: 0.2em; OVERFLOW: hidden; PADDING-TOP: 0.2em } ..ui-dialog .ui-dialog-titlebar { POSITION: relative; PADDING-BOTTOM: 0.4em; PADDING-LEFT: 1em; = PADDING-RIGHT: 1em; PADDING-TOP: 0.4em } ..ui-dialog .ui-dialog-title { MARGIN: 0.1em 16px 0.1em 0px; FLOAT: left } ..ui-dialog .ui-dialog-titlebar-close { POSITION: absolute; PADDING-BOTTOM: 1px; MARGIN: -10px 0px 0px; = PADDING-LEFT: 1px; WIDTH: 19px; PADDING-RIGHT: 1px; HEIGHT: 18px; TOP: = 50%; RIGHT: 0.3em; PADDING-TOP: 1px } ..ui-dialog .ui-dialog-titlebar-close SPAN { MARGIN: 1px; DISPLAY: block } ..ui-dialog .ui-dialog-titlebar-close:hover { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; = PADDING-TOP: 0px } ..ui-dialog .ui-dialog-titlebar-close:focus { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; = PADDING-TOP: 0px } ..ui-dialog .ui-dialog-content { BORDER-BOTTOM: 0px; POSITION: relative; BORDER-LEFT: 0px; = PADDING-BOTTOM: 0.5em; PADDING-LEFT: 1em; PADDING-RIGHT: 1em; ZOOM: 1; = BACKGROUND: none transparent scroll repeat 0% 0%; OVERFLOW: auto; = BORDER-TOP: 0px; BORDER-RIGHT: 0px; PADDING-TOP: 0.5em } ..ui-dialog .ui-dialog-buttonpane { BACKGROUND-IMAGE: none; TEXT-ALIGN: left; PADDING-BOTTOM: 0.5em; = BORDER-RIGHT-WIDTH: 0px; MARGIN: 0.5em 0px 0px; PADDING-LEFT: 0.4em; = PADDING-RIGHT: 1em; BORDER-TOP-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 0px; = BORDER-LEFT-WIDTH: 0px; PADDING-TOP: 0.3em } ..ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { FLOAT: right } ..ui-dialog .ui-dialog-buttonpane BUTTON { MARGIN: 0.5em 0.4em 0.5em 0px; CURSOR: pointer } ..ui-dialog .ui-resizable-se { WIDTH: 14px; BOTTOM: 3px; HEIGHT: 14px; RIGHT: 3px } ..ui-draggable .ui-dialog-titlebar { CURSOR: move } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/naglowek.css DIV#header { MARGIN: 0px auto; WIDTH: 980px; BACKGROUND: url(../images/header.jpg) = #fff no-repeat; HEIGHT: 118px } DIV#header A.logoMS:link { MARGIN: 30px 0px 0px 30px; WIDTH: 480px; DISPLAY: block; BACKGROUND: = url(../images/logoMS.png) no-repeat; FLOAT: left; HEIGHT: 60px } DIV#header A.logoMS:visited { MARGIN: 30px 0px 0px 30px; WIDTH: 480px; DISPLAY: block; BACKGROUND: = url(../images/logoMS.png) no-repeat; FLOAT: left; HEIGHT: 60px } A.user:link { FONT-WEIGHT: bold; text-style: italic } A.user:visited { FONT-WEIGHT: bold; text-style: italic } DIV.toplog { FLOAT: right; HEIGHT: 30px; OVERFLOW: hidden; MARGIN-RIGHT: 10px } DIV.toplog DIV.log_lt { BACKGROUND-IMAGE: url(../images/log_lt.png); WIDTH: 21px; = BACKGROUND-REPEAT: no-repeat; BACKGROUND-POSITION: left 50%; FLOAT: = left; HEIGHT: 30px } DIV.toplog DIV.log { BACKGROUND: url(../images/log_bg.png) repeat-x; FLOAT: left; HEIGHT: = 30px } DIV.toplog DIV.log A:link { PADDING-BOTTOM: 0px; LINE-HEIGHT: 30px; PADDING-LEFT: 5px; = PADDING-RIGHT: 5px; DISPLAY: block; FONT-FAMILY: Arial, Helvetica, = sans-serif; FLOAT: left; COLOR: #fff; FONT-SIZE: 12px; MARGIN-RIGHT: = 3px; TEXT-DECORATION: none; PADDING-TOP: 0px } DIV.toplog DIV.log A:visited { PADDING-BOTTOM: 0px; LINE-HEIGHT: 30px; PADDING-LEFT: 5px; = PADDING-RIGHT: 5px; DISPLAY: block; FONT-FAMILY: Arial, Helvetica, = sans-serif; FLOAT: left; COLOR: #fff; FONT-SIZE: 12px; MARGIN-RIGHT: = 3px; TEXT-DECORATION: none; PADDING-TOP: 0px } DIV.toplog DIV.log A:hover { LINE-HEIGHT: 30px; TEXT-DECORATION: underline } DIV.toplog DIV.log A.help:link { PADDING-LEFT: 26px; BACKGROUND: url(../images/help.png) no-repeat left = 50% } DIV.toplog DIV.log A.help:visited { PADDING-LEFT: 26px; BACKGROUND: url(../images/help.png) no-repeat left = 50% } DIV.toplog DIV.log_rt { WIDTH: 7px; BACKGROUND: url(../images/log_rt.png) no-repeat right 50%; = FLOAT: left; HEIGHT: 32px } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/menupoziome.css DIV#topmenu { MARGIN: 0px auto; WIDTH: 980px; BACKGROUND: = url(../images/topmenu_bg.jpg) #fff no-repeat; HEIGHT: 58px; BORDER-TOP: = #000 8px solid } DIV#topmenu UL { PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px auto; = PADDING-LEFT: 0px; WIDTH: 950px; PADDING-RIGHT: 0px; OVERFLOW: auto; = PADDING-TOP: 0px } DIV#topmenu UL LI { TEXT-ALIGN: center; LINE-HEIGHT: 16px; WIDTH: 136px; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; FLOAT: left; HEIGHT: 50px; = MARGIN-LEFT: 5px; FONT-SIZE: 12px } DIV#topmenu UL LI A:link { PADDING-BOTTOM: 5px; LINE-HEIGHT: 16px; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; DISPLAY: block; HEIGHT: 40px; COLOR: #333; = TEXT-DECORATION: none; PADDING-TOP: 5px; text-shadow: 1px 1px #fff } DIV#topmenu UL LI A:visited { PADDING-BOTTOM: 5px; LINE-HEIGHT: 16px; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; DISPLAY: block; HEIGHT: 40px; COLOR: #333; = TEXT-DECORATION: none; PADDING-TOP: 5px; text-shadow: 1px 1px #fff } DIV#topmenu UL LI.active A { COLOR: #fff; TEXT-DECORATION: none; text-shadow: -1px -1px #000 } DIV#topmenu UL LI A:hover { COLOR: #fff; TEXT-DECORATION: none; text-shadow: -1px -1px #000 } DIV#topmenu UL LI.active A.start:link { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.start:visited { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI A.start:hover { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.konto:link { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.konto:visited { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI A.konto:hover { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.korespondencja:link { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.korespondencja:visited { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI A.korespondencja:hover { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.administracja:link { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.administracja:visited { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI A.administracja:hover { BACKGROUND: url(../images/bt1.png) no-repeat left 50% } DIV#topmenu UL LI.active A.krs:link { BACKGROUND: url(../images/bt2.png) no-repeat left 50% } DIV#topmenu UL LI.active A.krs:visited { BACKGROUND: url(../images/bt2.png) no-repeat left 50% } DIV#topmenu UL LI A.krs:hover { BACKGROUND: url(../images/bt2.png) no-repeat left 50% } DIV#topmenu UL LI.active A.msig { BACKGROUND: url(../images/bt4.png) no-repeat left 50% } DIV#topmenu UL LI A.msig:hover { BACKGROUND: url(../images/bt4.png) no-repeat left 50% } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/stopka.css DIV#footer { TEXT-ALIGN: center; MARGIN: 0px auto; WIDTH: 980px } ..footer_main { PADDING-BOTTOM: 15px; PADDING-LEFT: 15px; WIDTH: 950px; PADDING-RIGHT: = 15px; FONT-FAMILY: Arial, Helvetica, sans-serif; HEIGHT: 85px; = FONT-SIZE: 12px; PADDING-TOP: 15px } ..footer_main SPAN.sign { LINE-HEIGHT: 120%; WIDTH: 100%; DISPLAY: block; FLOAT: left; = PADDING-TOP: 20px } ..footer_main A { LINE-HEIGHT: 64px; WIDTH: 190px; DISPLAY: block; FLOAT: left; HEIGHT: = 64px; MARGIN-RIGHT: 190px } ..footer_main A.eu_link { WIDTH: 162px; FLOAT: right; MARGIN-RIGHT: 0px } ..footer_main A SPAN.logo_ig { LINE-HEIGHT: 64px; WIDTH: 191px; DISPLAY: block; BACKGROUND: = url(../images/logo_ig.jpg) #fff no-repeat; HEIGHT: 64px } ..footer_main A SPAN.logo_ms { LINE-HEIGHT: 64px; WIDTH: 190px; DISPLAY: block; BACKGROUND: = url(../images/logo_ms.jpg) #fff no-repeat; HEIGHT: 64px } ..footer_main A SPAN.logo_eu { LINE-HEIGHT: 64px; WIDTH: 162px; DISPLAY: block; BACKGROUND: = url(../images/logo_ue.jpg) #fff no-repeat; HEIGHT: 64px } ..footer_sign { PADDING-BOTTOM: 0px; PADDING-LEFT: 15px; WIDTH: 950px; PADDING-RIGHT: = 15px; BACKGROUND: url(../images/footer_bg.png) repeat-x; HEIGHT: 28px; = PADDING-TOP: 0px } ..footer_sign SPAN.email { LINE-HEIGHT: 28px; DISPLAY: block; FONT-FAMILY: Arial, Helvetica, = sans-serif; FLOAT: left; FONT-SIZE: 12px } ..footer_sign SPAN.email A:link { DISPLAY: block; COLOR: #fff; TEXT-DECORATION: none; text-shadow: -1px = -1px #003 } ..footer_sign SPAN.email A:visited { DISPLAY: block; COLOR: #fff; TEXT-DECORATION: none; text-shadow: -1px = -1px #003 } ..footer_sign SPAN.email A:hover { TEXT-DECORATION: underline } ..footer_sign SPAN.version { LINE-HEIGHT: 28px; DISPLAY: block; FLOAT: right; COLOR: #fff; = FONT-SIZE: 12px; text-shadow: -1px -1px #003 } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/window/themes/default.css ..overlay_dialog { FILTER: alpha(opacity=3D60); BACKGROUND-COLOR: #666666; -moz-opacity: = 0.6; opacity: 0.6 } ..overlay___invisible__ { FILTER: alpha(opacity=3D0); BACKGROUND-COLOR: #666666; -moz-opacity: 0; = opacity: 0 } ..dialog_nw { WIDTH: 9px; BACKGROUND: url(default/top_left.gif) no-repeat 0px 0px; = HEIGHT: 23px } ..dialog_n { BACKGROUND: url(default/top_mid.gif) repeat-x 0px 0px; HEIGHT: 23px } ..dialog_ne { WIDTH: 9px; BACKGROUND: url(default/top_right.gif) no-repeat 0px 0px; = HEIGHT: 23px } ..dialog_e { WIDTH: 2px; BACKGROUND: url(default/center_right.gif) repeat-y 0px 0px } ..dialog_w { WIDTH: 2px; BACKGROUND: url(default/center_left.gif) repeat-y 0px 0px } ..dialog_sw { WIDTH: 9px; BACKGROUND: url(default/bottom_left.gif) no-repeat 0px 0px; = HEIGHT: 19px } ..dialog_s { BACKGROUND: url(default/bottom_mid.gif) repeat-x 0px 0px; HEIGHT: 19px } ..dialog_se { WIDTH: 9px; BACKGROUND: url(default/bottom_right.gif) no-repeat 0px = 0px; HEIGHT: 19px } ..dialog_sizer { WIDTH: 9px; BACKGROUND: url(default/sizer.gif) no-repeat 0px 0px; = HEIGHT: 19px; CURSOR: se-resize } ..dialog_close { Z-INDEX: 2000; POSITION: absolute; WIDTH: 14px; BACKGROUND: = url(default/close.gif) no-repeat 0px 0px; HEIGHT: 14px; TOP: 5px; = CURSOR: pointer; LEFT: 8px } ..dialog_minimize { Z-INDEX: 2000; POSITION: absolute; WIDTH: 14px; BACKGROUND: = url(default/minimize.gif) no-repeat 0px 0px; HEIGHT: 15px; TOP: 5px; = CURSOR: pointer; LEFT: 28px } ..dialog_maximize { Z-INDEX: 2000; POSITION: absolute; WIDTH: 14px; BACKGROUND: = url(default/maximize.gif) no-repeat 0px 0px; HEIGHT: 15px; TOP: 5px; = CURSOR: pointer; LEFT: 49px } ..dialog_title { TEXT-ALIGN: center; WIDTH: 100%; FONT-FAMILY: Tahoma, Arial, = sans-serif; FLOAT: left; HEIGHT: 14px; COLOR: #000; FONT-SIZE: 12px } ..dialog_content { BACKGROUND-COLOR: #123; FONT-FAMILY: Tahoma, Arial, sans-serif; COLOR: = #ddd; FONT-SIZE: 10px; OVERFLOW: auto } ..top_draggable { CURSOR: move } ..bottom_draggable { CURSOR: move } ..status_bar { FONT-SIZE: 12px } ..status_bar INPUT { FONT-SIZE: 12px } ..wired_frame { BORDER-BOTTOM: #000 1px dashed; POSITION: absolute; BORDER-LEFT: #000 = 1px dashed; DISPLAY: block; BORDER-TOP: #000 1px dashed; BORDER-RIGHT: = #000 1px dashed } ..dialog { POSITION: absolute; DISPLAY: block } ..dialog TABLE.table_window { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; BORDER-SPACING: 0; = WIDTH: 100%; PADDING-RIGHT: 0px; BORDER-COLLAPSE: collapse; PADDING-TOP: = 0px } ..dialog TABLE.table_window TD { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; = PADDING-TOP: 0px } ..dialog TABLE.table_window TH { PADDING-BOTTOM: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; = PADDING-TOP: 0px } ..dialog .title_window { -moz-user-select: none } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/window/themes/alphacube.css ..overlay_alphacube { FILTER: alpha(opacity=3D60); BACKGROUND-COLOR: #85bbef; -moz-opacity: = 0.6; opacity: 0.6 } ..alphacube_nw { WIDTH: 10px; BACKGROUND: url(alphacube/left-top.gif) no-repeat 0px 0px; = HEIGHT: 25px } ..alphacube_n { BACKGROUND: url(alphacube/top-middle.gif) repeat-x 0px 0px; HEIGHT: = 25px } ..alphacube_ne { WIDTH: 10px; BACKGROUND: url(alphacube/right-top.gif) no-repeat 0px = 0px; HEIGHT: 25px } ..alphacube_w { WIDTH: 7px; BACKGROUND: url(alphacube/frame-left.gif) repeat-y left top } ..alphacube_e { WIDTH: 7px; BACKGROUND: url(alphacube/frame-right.gif) repeat-y right = top } ..alphacube_sw { WIDTH: 7px; BACKGROUND: url(alphacube/bottom-left-c.gif) no-repeat 0px = 0px; HEIGHT: 7px } ..alphacube_s { BACKGROUND: url(alphacube/bottom-middle.gif) repeat-x 0px 0px; HEIGHT: = 7px } ..alphacube_se { WIDTH: 7px; BACKGROUND: url(alphacube/bottom-right-c.gif) no-repeat 0px = 0px; HEIGHT: 7px } ..alphacube_sizer { WIDTH: 7px; BACKGROUND: url(alphacube/bottom-right-c.gif) no-repeat 0px = 0px; HEIGHT: 7px } ..alphacube_sizer { CURSOR: se-resize } ..alphacube_close { Z-INDEX: 1000; POSITION: absolute; WIDTH: 23px; BACKGROUND: = url(alphacube/button-close-focus.gif) no-repeat 0px 0px; HEIGHT: 23px; = TOP: 0px; CURSOR: pointer; RIGHT: 11px } ..alphacube_minimize { Z-INDEX: 1000; POSITION: absolute; WIDTH: 23px; BACKGROUND: = url(alphacube/button-min-focus.gif) no-repeat 0px 0px; HEIGHT: 23px; = TOP: 0px; CURSOR: pointer; RIGHT: 55px } ..alphacube_maximize { Z-INDEX: 1000; POSITION: absolute; WIDTH: 23px; BACKGROUND: = url(alphacube/button-max-focus.gif) no-repeat 0px 0px; HEIGHT: 23px; = TOP: 0px; CURSOR: pointer; RIGHT: 33px } ..alphacube_title { TEXT-ALIGN: center; MARGIN-TOP: 2px; WIDTH: 100%; FLOAT: left; HEIGHT: = 14px; COLOR: #123456; FONT-SIZE: 14px } ..alphacube_content { FONT: 12px arial; BACKGROUND: #fdfdfd; COLOR: #000; OVERFLOW: auto } ..alphacube_window { BORDER-BOTTOM: #f00 1px solid; BORDER-LEFT: #f00 1px solid; = PADDING-BOTTOM: 20px; PADDING-LEFT: 20px; WIDTH: 400px; PADDING-RIGHT: = 20px; BACKGROUND: #fff; MARGIN-LEFT: auto; BORDER-TOP: #f00 1px solid; = MARGIN-RIGHT: auto; BORDER-RIGHT: #f00 1px solid; PADDING-TOP: 20px } ..alphacube_message { TEXT-ALIGN: center; PADDING-BOTTOM: 10px; WIDTH: 100%; FONT: 12px arial } ..alphacube_buttons { TEXT-ALIGN: center; WIDTH: 100% } ..alphacube_buttons INPUT { MARGIN: 10px; WIDTH: 20% } ..alphacube_progress { TEXT-ALIGN: center; MARGIN: auto; WIDTH: 100%; BACKGROUND: = url(alert/progress.gif) #fff no-repeat center center; FLOAT: left; = HEIGHT: 16px } ..alphacube_wired_frame { FILTER: alpha(opacity=3D60); BACKGROUND: #fff; -moz-opacity: 0.6; = opacity: 0.6 } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/style.css HTML { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: = 0px; PADDING-TOP: 0px } BODY { PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-LEFT: 0px; PADDING-RIGHT: = 0px; PADDING-TOP: 0px } BODY { BACKGROUND: url(../images/bg.png) #000 } DIV#contener { MARGIN: 0px auto; WIDTH: 1016px; BACKGROUND: = url(../images/contener_bg.png) repeat-y } INPUT.t-error { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = FONT-STYLE: normal !important; BORDER-TOP: transparent 0px; = BORDER-RIGHT: transparent 0px } INPUT.textfield { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = FONT-STYLE: normal !important; BORDER-TOP: transparent 0px; = BORDER-RIGHT: transparent 0px } SELECT.t-error { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = FONT-STYLE: normal !important; BORDER-TOP: transparent 0px; = BORDER-RIGHT: transparent 0px } INPUT:focus { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = BORDER-TOP: transparent 0px; BORDER-RIGHT: transparent 0px } ..message { LINE-HEIGHT: 22px; MARGIN: 0px auto 20px; WIDTH: 400px; FONT-SIZE: 16px } DIV#main { BORDER-BOTTOM: #000 8px solid; PADDING-BOTTOM: 18px; LINE-HEIGHT: 16px; = MARGIN: 0px auto; PADDING-LEFT: 18px; WIDTH: 944px; PADDING-RIGHT: 18px; = FONT-FAMILY: Georgia, "Times New Roman", Times, serif; BACKGROUND: #fff; = COLOR: #424242; FONT-SIZE: 12px; PADDING-TOP: 30px } DIV.form_row { WIDTH: 100%; MARGIN-BOTTOM: 5px; FLOAT: left; OVERFLOW: hidden } SPAN.form_section { LINE-HEIGHT: 20px; FONT-STYLE: italic; MARGIN-BOTTOM: 15px; FLOAT: = left; COLOR: #810007; FONT-SIZE: 16px; text-shadow: 1px 1px #FFF } SPAN.form_heading { LINE-HEIGHT: 38px; FONT-STYLE: italic; DISPLAY: block; COLOR: #fff; = MARGIN-LEFT: 20px; FONT-SIZE: 18px; text-shadow: -1px -1px #003 } LABEL.input_info { COLOR: #930909; text-shadow: 1px 1px #fff } LABEL.input_name { LINE-HEIGHT: 25px; FONT-STYLE: italic; DISPLAY: block; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; FLOAT: left; COLOR: #424242; = FONT-SIZE: 12px; MARGIN-RIGHT: 5px; text-shadow: 1px 1px #FFF } LABEL.input_name_select { LINE-HEIGHT: 25px; FONT-STYLE: italic; DISPLAY: block; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; FLOAT: left; COLOR: #424242; = FONT-SIZE: 12px; MARGIN-RIGHT: 5px; text-shadow: 1px 1px #FFF } LABEL.input_name_normal { LINE-HEIGHT: 25px; FONT-STYLE: normal; DISPLAY: block; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; FLOAT: left; COLOR: #424242; = FONT-SIZE: 12px; MARGIN-RIGHT: 5px; text-shadow: 1px 1px #FFF } LABEL.input_name_war { LINE-HEIGHT: 18px; FONT-STYLE: italic; DISPLAY: block; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; FLOAT: left; COLOR: #424242; = FONT-SIZE: 12px; MARGIN-RIGHT: 5px; text-shadow: 1px 1px #FFF } DIV.input_lt { WIDTH: 5px; BACKGROUND: url(../images/input_lt.png) no-repeat; FLOAT: = left; HEIGHT: 25px } DIV.input_main { BACKGROUND: url(../images/input_bg.png) repeat-x; FLOAT: left; HEIGHT: = 25px } DIV.input_rt { WIDTH: 5px; BACKGROUND: url(../images/input_rt.png) no-repeat; FLOAT: = left; HEIGHT: 25px; MARGIN-RIGHT: 10px } INPUT[type=3Dradio] { FLOAT: left } DIV.disabled DIV.input_lt { BACKGROUND: url(../images/input_lt_dis.png) } DIV.disabled DIV.input_main { BACKGROUND: url(../images/input_bg_dis.png) } DIV.disabled DIV.input_rt { BACKGROUND: url(../images/input_rt_dis.png) } SELECT.styled { Z-INDEX: 0; BORDER-BOTTOM: 0px; POSITION: relative; FILTER: = alpha(opacity =3D 0); BORDER-LEFT: 0px; LINE-HEIGHT: 25px; ZOOM: 1; = HEIGHT: 25px; BORDER-TOP: 0px; BORDER-RIGHT: 0px; opacity: 0 } INPUT[type=3Dtext] { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = PADDING-BOTTOM: 0px; MARGIN-TOP: 3px !important; PADDING-LEFT: 0px; = BORDER-SPACING: 0; PADDING-RIGHT: 0px; BORDER-COLLAPSE: collapse; = FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND: none transparent = scroll repeat 0% 0%; FONT-SIZE: 14px; VERTICAL-ALIGN: middle; = BORDER-TOP: transparent 0px; BORDER-RIGHT: transparent 0px; PADDING-TOP: = 0px } INPUT[type=3Dpassword] { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = PADDING-BOTTOM: 0px; MARGIN-TOP: 3px !important; PADDING-LEFT: 0px; = BORDER-SPACING: 0; PADDING-RIGHT: 0px; BORDER-COLLAPSE: collapse; = FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND: none transparent = scroll repeat 0% 0%; FONT-SIZE: 14px; VERTICAL-ALIGN: middle; = BORDER-TOP: transparent 0px; BORDER-RIGHT: transparent 0px; PADDING-TOP: = 0px } INPUT.textfield { BORDER-BOTTOM: transparent 0px; BORDER-LEFT: transparent 0px; = PADDING-BOTTOM: 0px; MARGIN-TOP: 3px !important; PADDING-LEFT: 0px; = BORDER-SPACING: 0; PADDING-RIGHT: 0px; BORDER-COLLAPSE: collapse; = FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND: none transparent = scroll repeat 0% 0%; FONT-SIZE: 14px; VERTICAL-ALIGN: middle; = BORDER-TOP: transparent 0px; BORDER-RIGHT: transparent 0px; PADDING-TOP: = 0px } DIV.form_separator { BORDER-BOTTOM: #fff 1px solid; MARGIN: 10px 0px; WIDTH: 100%; FLOAT: = left; HEIGHT: 0px; BORDER-TOP: #d8d8d8 1px solid } DIV.form_nav { TEXT-ALIGN: center; MARGIN: 0px auto; WIDTH: 296px; OVERFLOW: hidden } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/dialogbox.css ..LS { WIDTH: 620px !important } ..LS .form_section { MARGIN-RIGHT: 20px } ..LS .form_left { WIDTH: 320px; FLOAT: left } ..LS INPUT[type=3Dtext] { WIDTH: 145px } ..LS .form_left .input_name { WIDTH: 140px } ..LS .form_right { WIDTH: 300px; FLOAT: left } ..LS .form_right .input_name { WIDTH: 110px } ..LS .form_left SELECT { WIDTH: 290px !important } ..DCR { WIDTH: 490px !important } ..DCR .dialogContentLeft { WIDTH: 170px !important; FLOAT: left } ..DCR .dialogContentRight { WIDTH: 320px !important; FLOAT: left } ..DCR .dialogContentRight .input_main { WIDTH: 300px !important } ..DCR .dialogContentRight SELECT { WIDTH: 300px !important } ..DCR2 { WIDTH: 490px !important } ..DCR2 .form_section { MARGIN-RIGHT: 20px } ..DCR2 .form_left { WIDTH: 320px; FLOAT: left } ..DCR2 INPUT[type=3Dtext] { WIDTH: 145px } ..DCR2 .form_left .input_name { WIDTH: 140px } ..DCR2 .form_left SELECT { WIDTH: 290px } ..LW { WIDTH: 400px !important } ..LW .dialogContentLeft { WIDTH: 200px !important; FLOAT: left } ..LW .dialogContentRight { WIDTH: 200px !important; FLOAT: left } ..DO { WIDTH: 380px !important } ..DO .dialogContentLeft { WIDTH: 130px !important; FLOAT: left } ..DO .dialogContentRight { WIDTH: 230px !important; FLOAT: left } ..DO .dialogContentRight .input_main { WIDTH: 200px !important } ..DO .dialogContentRight .input_main INPUT { WIDTH: 200px !important } ..DO .dialogContentRight SELECT { WIDTH: 200px !important } ..Error { TEXT-ALIGN: center; WIDTH: 450px !important } DIV.error_sign { MARGIN: 0px auto; WIDTH: 100px; BACKGROUND: = url(../images/error_sign2.png) no-repeat; HEIGHT: 88px } ..Error UL { PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; COLOR: #000; FONT-SIZE: 16px; PADDING-TOP: 0px; = text-shadow: 1px 1px #fff } ..dialog_nav { TEXT-ALIGN: center; WIDTH: 100%; FLOAT: left } ..dialog_nav INPUT { MARGIN: 5px 10px } ..t-error-popup { Z-INDEX: 99 !important } ..dialogContent { PADDING-BOTTOM: 10px; MARGIN: 0px auto; PADDING-LEFT: 0px; WIDTH: = 360px; PADDING-RIGHT: 0px; PADDING-TOP: 10px } ..dialogContent .dialogContentLeft { WIDTH: 170px; FLOAT: left } ..dialogContent .dialogContentLeft LABEL { LINE-HEIGHT: 25px } ..dialogContent .dialogContentRight { WIDTH: 180px; FLOAT: left } ..dialogContent .dialogContentRight INPUT { WIDTH: 150px } ..dialogContent .dialogContentRight SELECT.styled { POSITION: relative; FILTER: alpha(opacity=3D0); LINE-HEIGHT: 25px; = ZOOM: 1; HEIGHT: 25px; opacity: 0 } ..dialogContent .dialogContentRight DIV.select { MARGIN-TOP: 1px; BACKGROUND: url(../images/select_bg.png) no-repeat = right top; FLOAT: left; OVERFLOW: inherit } ..dialogContent .dialogContentRight SPAN.select { Z-INDEX: 1; POSITION: absolute; LINE-HEIGHT: 25px; FONT-FAMILY: Arial, = Helvetica, sans-serif; FLOAT: left; HEIGHT: 25px; FONT-SIZE: 13px; = OVERFLOW: hidden } ..pkdContent { WIDTH: 690px !important } ..dialogContent SELECT { MIN-WIDTH: 147px; LINE-HEIGHT: 25px !important; WIDTH: 147px; = MARGIN-BOTTOM: 6px; HEIGHT: 25px } ..pkdContent SELECT { MIN-WIDTH: 600px !important; WIDTH: 600px !important } ..dialogContent LABEL { MIN-WIDTH: 80px; DISPLAY: block; FLOAT: left } #pkdDzialZone { BACKGROUND-COLOR: #f8f8f8 !important } #pkdGrupaZone { BACKGROUND-COLOR: #f8f8f8 !important } #pkdKlasaZone { BACKGROUND-COLOR: #f8f8f8 !important } #informacjaContent DIV { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 32px; FONT-STYLE: italic; MARGIN-TOP: 10px; WIDTH: 120px !important; = FONT-FAMILY: Georgia, "Times New Roman", Times, serif; BACKGROUND: = url(../images/dialogbox/dialog_nav2.png) no-repeat 50% bottom; HEIGHT: = 32px !important; COLOR: #fff !important; BORDER-TOP: medium none; = BORDER-RIGHT: medium none; text-shadow: -1px -1px #003 } ..dialogContent INPUT[type=3Dsubmit] { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 32px; FONT-STYLE: italic; MARGIN-TOP: 10px; WIDTH: 120px !important; = FONT-FAMILY: Georgia, "Times New Roman", Times, serif; BACKGROUND: = url(../images/dialogbox/dialog_nav2.png) no-repeat 50% bottom; HEIGHT: = 32px !important; COLOR: #fff !important; BORDER-TOP: medium none; = BORDER-RIGHT: medium none; text-shadow: -1px -1px #003 } ..dialogContent INPUT[type=3Dbutton].submit { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 32px; FONT-STYLE: italic; MARGIN-TOP: 10px; WIDTH: 120px !important; = FONT-FAMILY: Georgia, "Times New Roman", Times, serif; BACKGROUND: = url(../images/dialogbox/dialog_nav2.png) no-repeat 50% bottom; HEIGHT: = 32px !important; COLOR: #fff !important; BORDER-TOP: medium none; = BORDER-RIGHT: medium none; text-shadow: -1px -1px #003 } #informacjaContent DIV:hover { BACKGROUND: url(../images/dialogbox/dialog_nav2.png) no-repeat 50% = bottom } ..dialogContent INPUT[type=3Dsubmit]:hover { BACKGROUND: url(../images/dialogbox/dialog_nav2.png) no-repeat 50% = bottom } ..dialogContent INPUT[type=3Dbutton].submit:hover { BACKGROUND: url(../images/dialogbox/dialog_nav2.png) no-repeat 50% = bottom } #informacjaContent { PADDING-BOTTOM: 10px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; = PADDING-TOP: 10px } #informacjaContent DIV:hover { BACKGROUND: url(../images/dialogbox/dialog_nav.png) no-repeat 50% top } ..alphacube_title { LINE-HEIGHT: 33px; FONT-STYLE: italic !important; MARGIN-TOP: 0px = !important; FONT-FAMILY: Georgia, "Times New Roman", Times, serif; = MARGIN-BOTTOM: 2px; HEIGHT: 35px !important; COLOR: #fff !important; = FONT-SIZE: 14px; text-shadow: -1px -1px #550000 } #informacjaContent DIV.t-zone { BACKGROUND: #d4dfec } ..overlay_alphacube { FILTER: alpha(opacity=3D80) !important; BACKGROUND-COLOR: #000 = !important; -moz-opacity: 0.8; opacity: 0.8 } ..alphacube_nw { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/left_top2.png); HEIGHT: 37px !important } ..alphacube_n { BACKGROUND: url(../images/dialogbox/top_middle2.png); HEIGHT: 37px = !important } ..alphacube_ne { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/right_top2.png); HEIGHT: 37px !important } ..alphacube_w { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/frame_left2.png) } ..alphacube_e { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/frame_right2.png) } ..alphacube_sw { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/bottom_left2.png); HEIGHT: 13px !important } ..alphacube_s { BACKGROUND: url(../images/dialogbox/bottom_middle2.png); HEIGHT: 13px = !important } ..alphacube_se { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/bottom_right2.png); HEIGHT: 13px !important } ..alphacube_sizer { WIDTH: 13px !important; BACKGROUND: = url(../images/dialogbox/bottom_right2.png); HEIGHT: 13px !important } ..alphacube_sizer { CURSOR: se-resize } ..alphacube_close { WIDTH: 20px !important; BACKGROUND: = url(../images/dialogbox/bt_close2.png); HEIGHT: 26px !important; RIGHT: = 13px !important } ..alphacube_minimize { WIDTH: 20px !important; BACKGROUND: = url(../images/dialogbox/bt_min2.png); HEIGHT: 26px !important; RIGHT: = 53px !important } ..alphacube_maximize { WIDTH: 20px !important; BACKGROUND: = url(../images/dialogbox/bt_max2.png); HEIGHT: 26px !important; RIGHT: = 33px !important } ..alphacube_maximize:hover { BACKGROUND: url(../images/dialogbox/bt_max.png) } ..alphacube_minimize:hover { BACKGROUND: url(../images/dialogbox/bt_min.png) } ..alphacube_close:hover { BACKGROUND: url(../images/dialogbox/bt_close.png) } ..alphacube_content { FONT-STYLE: italic !important; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif !important; BACKGROUND: #f8f8f8; COLOR: #424242 !important; = FONT-SIZE: 14px !important; OVERFLOW: auto; text-shadow: 1px 1px #fff } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/common.css FIELDSET INPUT[type=3Dradio] { FLOAT: none !important } FIELDSET SELECT { BORDER-BOTTOM: #777 1px solid; BORDER-LEFT: #777 1px solid; = LINE-HEIGHT: 25px; BACKGROUND: #fff; HEIGHT: 25px; BORDER-TOP: #777 1px = solid; BORDER-RIGHT: #777 1px solid } FIELDSET INPUT[type=3Dtext] { BORDER-BOTTOM: #777 1px solid; BORDER-LEFT: #777 1px solid; = PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; BACKGROUND: #fff; HEIGHT: 25px; BORDER-TOP: #777 1px = solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 0px } FIELDSET INPUT[type=3Dpassword] { BORDER-BOTTOM: #777 1px solid; BORDER-LEFT: #777 1px solid; = PADDING-BOTTOM: 0px; LINE-HEIGHT: 25px; PADDING-LEFT: 0px; = PADDING-RIGHT: 0px; BACKGROUND: #fff; HEIGHT: 25px; BORDER-TOP: #777 1px = solid; BORDER-RIGHT: #777 1px solid; PADDING-TOP: 0px } DIV.form_nav { WIDTH: 445px !important } DIV#form_main LABEL.input_name_select { WIDTH: 100% } DIV#form_main LABEL.input_name { MARGIN-RIGHT: 10px } DIV.form_separator { BORDER-BOTTOM: 1px solid; BORDER-TOP-WIDTH: 1px } DIV#form_main SPAN.empty_msg { LINE-HEIGHT: 30px; FONT-STYLE: italic; MARGIN: 0px; PADDING-LEFT: 10px; = DISPLAY: block; FLOAT: left; FONT-SIZE: 18px } DIV#form_main P.empty_msg { LINE-HEIGHT: 30px; FONT-STYLE: italic; MARGIN: 0px; PADDING-LEFT: 10px; = DISPLAY: block; FLOAT: left; FONT-SIZE: 18px } DIV#form_main A.przycisk { TEXT-ALIGN: center; DISPLAY: block; TEXT-DECORATION: none } DIV#form_main A.przycisk { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 138px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; FLOAT: left; HEIGHT: = 32px; FONT-SIZE: 12px; BORDER-TOP: medium none; CURSOR: pointer; = BORDER-RIGHT: medium none } DIV#form_main INPUT[type=3Dbutton] { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 138px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; FLOAT: left; HEIGHT: = 32px; FONT-SIZE: 12px; BORDER-TOP: medium none; CURSOR: pointer; = BORDER-RIGHT: medium none } DIV#form_main BUTTON#buttonPKD { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 138px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; FLOAT: left; HEIGHT: = 32px; FONT-SIZE: 12px; BORDER-TOP: medium none; CURSOR: pointer; = BORDER-RIGHT: medium none } DIV#form_main INPUT[type=3Dsubmit] { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 138px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; FLOAT: left; HEIGHT: = 32px; FONT-SIZE: 12px; BORDER-TOP: medium none; CURSOR: pointer; = BORDER-RIGHT: medium none } DIV#form_main INPUT.zarzad { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 220px; FONT-FAMILY: = Georgia, "Times New Roman", Times, serif; BACKGROUND: = url(../images/button_nav_zarzad.png) no-repeat left bottom; FLOAT: left; = HEIGHT: 32px; COLOR: #ce3323; FONT-SIZE: 12px; BORDER-TOP: medium none; = BORDER-RIGHT: medium none; text-shadow: 1px 1px #fff } DIV#form_main INPUT[type=3Dbutton].zarzad:hover { BACKGROUND-POSITION: left top } DIV#form_main A.przycisk:hover { BACKGROUND-POSITION: left top } DIV#form_main INPUT[type=3Dsubmit]:hover { BACKGROUND-POSITION: left top } DIV#form_main BUTTON#buttonPKD:hover { BACKGROUND-POSITION: left top } DIV#form_main INPUT[type=3Dbutton]:hover { BACKGROUND-POSITION: left top } DIV#form_main { MARGIN: 0px auto; WIDTH: 710px; BACKGROUND-REPEAT: repeat-y } DIV#form_top { WIDTH: 710px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 50px } DIV#form_body { PADDING-BOTTOM: 10px; MARGIN: 0px 10px; MIN-HEIGHT: 336px; = PADDING-LEFT: 15px; WIDTH: 660px; PADDING-RIGHT: 15px; BACKGROUND: = url(../images/form_bg.png) #fff no-repeat right top; OVERFLOW: auto; = PADDING-TOP: 10px } DIV#form_body > FORM { BORDER-BOTTOM: transparent 1px solid; BORDER-LEFT: transparent 1px = solid; BORDER-TOP: transparent 1px solid; BORDER-RIGHT: transparent 1px = solid } DIV#form_bottom { WIDTH: 710px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 15px } DIV#form OL LI { MARGIN-BOTTOM: 5px } ..buttonRed { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 32px; FONT-STYLE: italic; MARGIN-TOP: 10px; WIDTH: 120px !important; = FONT-FAMILY: Georgia, "Times New Roman", Times, serif; BACKGROUND: = url(../images/dialogbox/dialog_nav2.png) no-repeat 50% bottom; HEIGHT: = 32px !important; COLOR: #fff !important; BORDER-TOP: medium none; = BORDER-RIGHT: medium none; text-shadow: -1px -1px #003 } DIV.form_left { MARGIN: 5px auto; WIDTH: 50%; FLOAT: left; OVERFLOW: hidden } DIV.form_right { MARGIN: 5px auto; WIDTH: 50%; FLOAT: left; OVERFLOW: hidden } SELECT.styled { Z-INDEX: 0; POSITION: relative; FILTER: alpha(opacity =3D 0); = PADDING-BOTTOM: 0px !important; LINE-HEIGHT: 25px; PADDING-LEFT: 0px = !important; PADDING-RIGHT: 0px !important; ZOOM: 1; PADDING-TOP: 0px = !important; opacity: 0 } SPAN.select { POSITION: absolute; LINE-HEIGHT: 25px; DISPLAY: block; FONT-FAMILY: = Arial, Helvetica, sans-serif; FONT-SIZE: 13px; OVERFLOW: hidden } #stawajacyPrawnyWindow SPAN.select { POSITION: relative !important } #stawajacyPrawnyWindow SELECT.styled { Z-INDEX: 1 !important; TOP: -25px !important } DIV.input_main DIV.select { BACKGROUND: url(../images/select_bg.png) no-repeat right 50%; FLOAT: = left; HEIGHT: 25px } DIV.disabled DIV.input_main DIV.select { BACKGROUND: url(../images/select_bg_dis.png) no-repeat right 50% } DIV.form_center { MARGIN: 0px auto; WIDTH: 400px; OVERFLOW: hidden } DIV.captcha_form_center { MARGIN: 0px auto; WIDTH: 500px; OVERFLOW: hidden } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/leftMenu.css DIV#main DIV.left { WIDTH: 220px; FLOAT: left } DIV#main DIV.content_half { WIDTH: 709px; MARGIN-LEFT: 235px } DIV.left UL { PADDING-BOTTOM: 0px; LIST-STYLE-TYPE: none; MARGIN: 0px; PADDING-LEFT: = 0px; PADDING-RIGHT: 0px; PADDING-TOP: 0px } DIV.left UL LI { BACKGROUND-REPEAT: no-repeat; BACKGROUND-POSITION: left bottom; = MARGIN-BOTTOM: 5px } DIV.left UL LI { WIDTH: 220px; HEIGHT: 37px } DIV.left UL LI A { WIDTH: 220px; HEIGHT: 37px } DIV.left UL LI.active { BACKGROUND-POSITION: left top } DIV.left UL LI:hover { BACKGROUND-POSITION: left top } DIV.left UL LI A { PADDING-BOTTOM: 6px; LINE-HEIGHT: 25px; FONT-STYLE: italic; = PADDING-LEFT: 10px; PADDING-RIGHT: 10px; DISPLAY: block; COLOR: #5f5f5f; = TEXT-DECORATION: none; PADDING-TOP: 6px; text-shadow: 1px 1px #fff } DIV.left UL LI.active A { COLOR: #fff; text-shadow: -1px -1px #333 } DIV.left UL LI:hover A { COLOR: #fff; text-shadow: -1px -1px #333 } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/krs.css DIV#topmenu { BORDER-TOP-COLOR: #c10e1e } DIV#main { BORDER-BOTTOM-COLOR: #c10e1e } DIV.left UL LI { BACKGROUND-IMAGE: url(../images/leftmenu_krs.jpg) } DIV#form_main A.przycisk { BACKGROUND: url(../images/button_nav2.png) no-repeat left bottom; = COLOR: #810007; text-shadow: 1px 1px #fff } DIV#form_main INPUT[type=3Dbutton] { BACKGROUND: url(../images/button_nav2.png) no-repeat left bottom; = COLOR: #810007; text-shadow: 1px 1px #fff } DIV#form_main BUTTON#buttonPKD { BACKGROUND: url(../images/button_nav2.png) no-repeat left bottom; = COLOR: #810007; text-shadow: 1px 1px #fff } DIV#form_main INPUT[type=3Dsubmit] { BACKGROUND: url(../images/button_nav2.png) no-repeat left bottom; = COLOR: #810007; text-shadow: 1px 1px #fff } DIV#form_main A.przycisk:hover { COLOR: #fff; text-shadow: -1px -1px #003 } DIV#form_main INPUT[type=3Dsubmit]:hover { COLOR: #fff; text-shadow: -1px -1px #003 } DIV#form_main BUTTON#buttonPKD:hover { COLOR: #fff; text-shadow: -1px -1px #003 } DIV#form_main INPUT[type=3Dbutton]:hover { COLOR: #fff; text-shadow: -1px -1px #003 } DIV#form_main INPUT.zarzad { BACKGROUND: url(../images/button_nav_zarzad.png) no-repeat left bottom } DIV#form_main { BACKGROUND-IMAGE: url(../images/form_body2.png) } DIV#form_top { BACKGROUND-IMAGE: url(../images/form_top2.png) } DIV#form_bottom { BACKGROUND-IMAGE: url(../images/form_bottom2.png); HEIGHT: 11px } DIV.t-data-grid .t-data-grid-pager A.buttonPager { BACKGROUND-IMAGE: url(../images/button_nav2.png); COLOR: #810007; = text-shadow: 1px 1px #fff } DIV.t-data-grid .t-data-grid-pager SPAN.buttonPager { BACKGROUND-IMAGE: url(../images/button_nav2.png); COLOR: #810007; = text-shadow: 1px 1px #fff } DIV.t-data-grid .t-data-grid-pager A.buttonPager:hover { COLOR: #fff; text-shadow: -1px -1px #003 } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/tooltipMark.css ..tooltipMark { FONT-STYLE: italic; FONT-FAMILY: Georgia; COLOR: #660000; MARGIN-LEFT: = 5px; FONT-SIZE: 16px; FONT-WEIGHT: bold; TEXT-DECORATION: none } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: text/css; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/style/tDataGrid.css DIV.t-data-grid { WIDTH: 99%; MARGIN-BOTTOM: 15px; FLOAT: left } DIV.t-data-grid TABLE { BORDER-COLLAPSE: collapse } DIV.t-data-grid TABLE TH { FONT-STYLE: italic; FONT-FAMILY: Georgia, "Times New Roman", Times, = serif; BACKGROUND: #e4e4e4; COLOR: #424242; FONT-SIZE: 12px; = FONT-WEIGHT: normal; text-shadow: 1px 1px #f8f8f8 } DIV.t-data-grid TABLE TH A:link { COLOR: #424242; TEXT-DECORATION: none; text-shadow: 1px 1px #f8f8f8 } DIV.t-data-grid TABLE TH A:visited { COLOR: #424242; TEXT-DECORATION: none; text-shadow: 1px 1px #f8f8f8 } DIV.t-data-grid TABLE TH { BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; = PADDING-BOTTOM: 5px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; BORDER-TOP: = #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 5px } DIV.t-data-grid TABLE TD { BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; = PADDING-BOTTOM: 5px; PADDING-LEFT: 3px; PADDING-RIGHT: 3px; BORDER-TOP: = #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 5px } DIV.t-data-grid TABLE TD { FONT-STYLE: italic; FONT-FAMILY: Arial, Helvetica, sans-serif; = BACKGROUND: #f8f8f8; FONT-SIZE: 12px } DIV.t-data-grid TABLE TD A:link { PADDING-BOTTOM: 0px; FONT-STYLE: italic; PADDING-LEFT: 6px; = PADDING-RIGHT: 6px; COLOR: #810007; TEXT-DECORATION: none; PADDING-TOP: = 0px } DIV.t-data-grid TABLE TD A:visited { PADDING-BOTTOM: 0px; FONT-STYLE: italic; PADDING-LEFT: 6px; = PADDING-RIGHT: 6px; COLOR: #810007; TEXT-DECORATION: none; PADDING-TOP: = 0px } DIV.t-data-grid TABLE TD A:hover { TEXT-DECORATION: underline } INPUT#dodaj { FLOAT: left } DIV.t-data-grid .t-data-grid-pager A.buttonPager { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 80px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; HEIGHT: 25px; FONT-SIZE: = 12px; BORDER-TOP: medium none; BORDER-RIGHT: medium none } DIV.t-data-grid .t-data-grid-pager SPAN.buttonPager { BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; LINE-HEIGHT: = 30px; FONT-STYLE: italic; MARGIN: 0px 5px; WIDTH: 80px; = BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Georgia, "Times New Roman", = Times, serif; BACKGROUND-POSITION: left bottom; HEIGHT: 25px; FONT-SIZE: = 12px; BORDER-TOP: medium none; BORDER-RIGHT: medium none } DIV.t-data-grid .t-data-grid-pager SPAN.buttonPager { PADDING-BOTTOM: 2px; PADDING-LEFT: 5px; PADDING-RIGHT: 5px; CURSOR: = default; PADDING-TOP: 2px } DIV.t-data-grid .t-data-grid-pager A.buttonPager:hover { BACKGROUND-POSITION: left top } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/stack/en/core.js =0A= /* /assets/731238022b09c33a/core/scriptaculous_1_9_0/prototype.js */;=0A= /* Prototype JavaScript framework, version 1.7 * (c) 2005-2010 Sam Stephenson * * Prototype is freely distributable under the terms of an MIT-style = license. * For details, see the Prototype web site: http://www.prototypejs.org/ * = *-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- = -- */ var Prototype =3D { Version: '1.7', Browser: (function(){ var ua =3D navigator.userAgent; var isOpera =3D Object.prototype.toString.call(window.opera) =3D=3D = '[object Opera]'; return { IE: !!window.attachEvent && !isOpera, Opera: isOpera, WebKit: ua.indexOf('AppleWebKit/') > -1, Gecko: ua.indexOf('Gecko') > -1 && ua.indexOf('KHTML') = =3D=3D=3D -1, MobileSafari: /Apple.*Mobile/.test(ua) } })(), BrowserFeatures: { XPath: !!document.evaluate, SelectorsAPI: !!document.querySelector, ElementExtensions: (function() { var constructor =3D window.Element || window.HTMLElement; return !!(constructor && constructor.prototype); })(), SpecificElementExtensions: (function() { if (typeof window.HTMLDivElement !=3D=3D 'undefined') return true; var div =3D document.createElement('div'), form =3D document.createElement('form'), isSupported =3D false; if (div['__proto__'] && (div['__proto__'] !=3D=3D = form['__proto__'])) { isSupported =3D true; } div =3D form =3D null; return isSupported; })() }, ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>', JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/, emptyFunction: function() { }, K: function(x) { return x } }; if (Prototype.Browser.MobileSafari) Prototype.BrowserFeatures.SpecificElementExtensions =3D false; var Abstract =3D { }; var Try =3D { these: function() { var returnValue; for (var i =3D 0, length =3D arguments.length; i < length; i++) { var lambda =3D arguments[i]; try { returnValue =3D lambda(); break; } catch (e) { } } return returnValue; } }; /* Based on Alex Arnell's inheritance implementation. */ var Class =3D (function() { var IS_DONTENUM_BUGGY =3D (function(){ for (var p in { toString: 1 }) { if (p =3D=3D=3D 'toString') return false; } return true; })(); function subclass() {}; function create() { var parent =3D null, properties =3D $A(arguments); if (Object.isFunction(properties[0])) parent =3D properties.shift(); function klass() { this.initialize.apply(this, arguments); } Object.extend(klass, Class.Methods); klass.superclass =3D parent; klass.subclasses =3D []; if (parent) { subclass.prototype =3D parent.prototype; klass.prototype =3D new subclass; parent.subclasses.push(klass); } for (var i =3D 0, length =3D properties.length; i < length; i++) klass.addMethods(properties[i]); if (!klass.prototype.initialize) klass.prototype.initialize =3D Prototype.emptyFunction; klass.prototype.constructor =3D klass; return klass; } function addMethods(source) { var ancestor =3D this.superclass && this.superclass.prototype, properties =3D Object.keys(source); if (IS_DONTENUM_BUGGY) { if (source.toString !=3D Object.prototype.toString) properties.push("toString"); if (source.valueOf !=3D Object.prototype.valueOf) properties.push("valueOf"); } for (var i =3D 0, length =3D properties.length; i < length; i++) { var property =3D properties[i], value =3D source[property]; if (ancestor && Object.isFunction(value) && value.argumentNames()[0] =3D=3D "$super") { var method =3D value; value =3D (function(m) { return function() { return ancestor[m].apply(this, arguments); = }; })(property).wrap(method); value.valueOf =3D method.valueOf.bind(method); value.toString =3D method.toString.bind(method); } this.prototype[property] =3D value; } return this; } return { create: create, Methods: { addMethods: addMethods } }; })(); (function() { var _toString =3D Object.prototype.toString, NULL_TYPE =3D 'Null', UNDEFINED_TYPE =3D 'Undefined', BOOLEAN_TYPE =3D 'Boolean', NUMBER_TYPE =3D 'Number', STRING_TYPE =3D 'String', OBJECT_TYPE =3D 'Object', FUNCTION_CLASS =3D '[object Function]', BOOLEAN_CLASS =3D '[object Boolean]', NUMBER_CLASS =3D '[object Number]', STRING_CLASS =3D '[object String]', ARRAY_CLASS =3D '[object Array]', DATE_CLASS =3D '[object Date]', NATIVE_JSON_STRINGIFY_SUPPORT =3D window.JSON && typeof JSON.stringify =3D=3D=3D 'function' && JSON.stringify(0) =3D=3D=3D '0' && typeof JSON.stringify(Prototype.K) =3D=3D=3D 'undefined'; function Type(o) { switch(o) { case null: return NULL_TYPE; case (void 0): return UNDEFINED_TYPE; } var type =3D typeof o; switch(type) { case 'boolean': return BOOLEAN_TYPE; case 'number': return NUMBER_TYPE; case 'string': return STRING_TYPE; } return OBJECT_TYPE; } function extend(destination, source) { for (var property in source) destination[property] =3D source[property]; return destination; } function inspect(object) { try { if (isUndefined(object)) return 'undefined'; if (object =3D=3D=3D null) return 'null'; return object.inspect ? object.inspect() : String(object); } catch (e) { if (e instanceof RangeError) return '...'; throw e; } } function toJSON(value) { return Str('', { '': value }, []); } function Str(key, holder, stack) { var value =3D holder[key], type =3D typeof value; if (Type(value) =3D=3D=3D OBJECT_TYPE && typeof value.toJSON = =3D=3D=3D 'function') { value =3D value.toJSON(key); } var _class =3D _toString.call(value); switch (_class) { case NUMBER_CLASS: case BOOLEAN_CLASS: case STRING_CLASS: value =3D value.valueOf(); } switch (value) { case null: return 'null'; case true: return 'true'; case false: return 'false'; } type =3D typeof value; switch (type) { case 'string': return value.inspect(true); case 'number': return isFinite(value) ? String(value) : 'null'; case 'object': for (var i =3D 0, length =3D stack.length; i < length; i++) { if (stack[i] =3D=3D=3D value) { throw new TypeError(); } } stack.push(value); var partial =3D []; if (_class =3D=3D=3D ARRAY_CLASS) { for (var i =3D 0, length =3D value.length; i < length; i++) { var str =3D Str(i, value, stack); partial.push(typeof str =3D=3D=3D 'undefined' ? 'null' : = str); } partial =3D '[' + partial.join(',') + ']'; } else { var keys =3D Object.keys(value); for (var i =3D 0, length =3D keys.length; i < length; i++) { var key =3D keys[i], str =3D Str(key, value, stack); if (typeof str !=3D=3D "undefined") { partial.push(key.inspect(true)+ ':' + str); } } partial =3D '{' + partial.join(',') + '}'; } stack.pop(); return partial; } } function stringify(object) { return JSON.stringify(object); } function toQueryString(object) { return $H(object).toQueryString(); } function toHTML(object) { return object && object.toHTML ? object.toHTML() : = String.interpret(object); } function keys(object) { if (Type(object) !=3D=3D OBJECT_TYPE) { throw new TypeError(); } var results =3D []; for (var property in object) { if (object.hasOwnProperty(property)) { results.push(property); } } return results; } function values(object) { var results =3D []; for (var property in object) results.push(object[property]); return results; } function clone(object) { return extend({ }, object); } function isElement(object) { return !!(object && object.nodeType =3D=3D 1); } function isArray(object) { return _toString.call(object) =3D=3D=3D ARRAY_CLASS; } var hasNativeIsArray =3D (typeof Array.isArray =3D=3D 'function') && Array.isArray([]) && !Array.isArray({}); if (hasNativeIsArray) { isArray =3D Array.isArray; } function isHash(object) { return object instanceof Hash; } function isFunction(object) { return _toString.call(object) =3D=3D=3D FUNCTION_CLASS; } function isString(object) { return _toString.call(object) =3D=3D=3D STRING_CLASS; } function isNumber(object) { return _toString.call(object) =3D=3D=3D NUMBER_CLASS; } function isDate(object) { return _toString.call(object) =3D=3D=3D DATE_CLASS; } function isUndefined(object) { return typeof object =3D=3D=3D "undefined"; } extend(Object, { extend: extend, inspect: inspect, toJSON: NATIVE_JSON_STRINGIFY_SUPPORT ? stringify : toJSON, toQueryString: toQueryString, toHTML: toHTML, keys: Object.keys || keys, values: values, clone: clone, isElement: isElement, isArray: isArray, isHash: isHash, isFunction: isFunction, isString: isString, isNumber: isNumber, isDate: isDate, isUndefined: isUndefined }); })(); Object.extend(Function.prototype, (function() { var slice =3D Array.prototype.slice; function update(array, args) { var arrayLength =3D array.length, length =3D args.length; while (length-- ) array[arrayLength + length] =3D args[length]; return array; } function merge(array, args) { array =3D slice.call(array, 0); return update(array, args); } function argumentNames() { var names =3D = this.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1] .replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g, '') .replace(/\s+/g, '').split(','); return names.length =3D=3D 1 && !names[0] ? [] : names; } function bind(context) { if (arguments.length < 2 && Object.isUndefined(arguments[0])) return = this; var __method =3D this, args =3D slice.call(arguments, 1); return function() { var a =3D merge(args, arguments); return __method.apply(context, a); } } function bindAsEventListener(context) { var __method =3D this, args =3D slice.call(arguments, 1); return function(event) { var a =3D update([event || window.event], args); return __method.apply(context, a); } } function curry() { if (!arguments.length) return this; var __method =3D this, args =3D slice.call(arguments, 0); return function() { var a =3D merge(args, arguments); return __method.apply(this, a); } } function delay(timeout) { var __method =3D this, args =3D slice.call(arguments, 1); timeout =3D timeout * 1000; return window.setTimeout(function() { return __method.apply(__method, args); }, timeout); } function defer() { var args =3D update([0.01], arguments); return this.delay.apply(this, args); } function wrap(wrapper) { var __method =3D this; return function() { var a =3D update([__method.bind(this)], arguments); return wrapper.apply(this, a); } } function methodize() { if (this._methodized) return this._methodized; var __method =3D this; return this._methodized =3D function() { var a =3D update([this], arguments); return __method.apply(null, a); }; } return { argumentNames: argumentNames, bind: bind, bindAsEventListener: bindAsEventListener, curry: curry, delay: delay, defer: defer, wrap: wrap, methodize: methodize } })()); (function(proto) { function toISOString() { return this.getUTCFullYear() + '-' + (this.getUTCMonth() + 1).toPaddedString(2) + '-' + this.getUTCDate().toPaddedString(2) + 'T' + this.getUTCHours().toPaddedString(2) + ':' + this.getUTCMinutes().toPaddedString(2) + ':' + this.getUTCSeconds().toPaddedString(2) + 'Z'; } function toJSON() { return this.toISOString(); } if (!proto.toISOString) proto.toISOString =3D toISOString; if (!proto.toJSON) proto.toJSON =3D toJSON; })(Date.prototype); RegExp.prototype.match =3D RegExp.prototype.test; RegExp.escape =3D function(str) { return String(str).replace(/([.*+?^=3D!:${}()|[\]\/\\])/g, '\\$1'); }; var PeriodicalExecuter =3D Class.create({ initialize: function(callback, frequency) { this.callback =3D callback; this.frequency =3D frequency; this.currentlyExecuting =3D false; this.registerCallback(); }, registerCallback: function() { this.timer =3D setInterval(this.onTimerEvent.bind(this), = this.frequency * 1000); }, execute: function() { this.callback(this); }, stop: function() { if (!this.timer) return; clearInterval(this.timer); this.timer =3D null; }, onTimerEvent: function() { if (!this.currentlyExecuting) { try { this.currentlyExecuting =3D true; this.execute(); this.currentlyExecuting =3D false; } catch(e) { this.currentlyExecuting =3D false; throw e; } } } }); Object.extend(String, { interpret: function(value) { return value =3D=3D null ? '' : String(value); }, specialChar: { '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '\\': '\\\\' } }); Object.extend(String.prototype, (function() { var NATIVE_JSON_PARSE_SUPPORT =3D window.JSON && typeof JSON.parse =3D=3D=3D 'function' && JSON.parse('{"test": true}').test; function prepareReplacement(replacement) { if (Object.isFunction(replacement)) return replacement; var template =3D new Template(replacement); return function(match) { return template.evaluate(match) }; } function gsub(pattern, replacement) { var result =3D '', source =3D this, match; replacement =3D prepareReplacement(replacement); if (Object.isString(pattern)) pattern =3D RegExp.escape(pattern); if (!(pattern.length || pattern.source)) { replacement =3D replacement(''); return replacement + source.split('').join(replacement) + = replacement; } while (source.length > 0) { if (match =3D source.match(pattern)) { result +=3D source.slice(0, match.index); result +=3D String.interpret(replacement(match)); source =3D source.slice(match.index + match[0].length); } else { result +=3D source, source =3D ''; } } return result; } function sub(pattern, replacement, count) { replacement =3D prepareReplacement(replacement); count =3D Object.isUndefined(count) ? 1 : count; return this.gsub(pattern, function(match) { if (-- count < 0) return match[0]; return replacement(match); }); } function scan(pattern, iterator) { this.gsub(pattern, iterator); return String(this); } function truncate(length, truncation) { length =3D length || 30; truncation =3D Object.isUndefined(truncation) ? '...' : truncation; return this.length > length ? this.slice(0, length - truncation.length) + truncation : = String(this); } function strip() { return this.replace(/^\s+/, '').replace(/\s+$/, ''); } function stripTags() { return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, = ''); } function stripScripts() { return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), = ''); } function extractScripts() { var matchAll =3D new RegExp(Prototype.ScriptFragment, 'img'), matchOne =3D new RegExp(Prototype.ScriptFragment, 'im'); return (this.match(matchAll) || []).map(function(scriptTag) { return (scriptTag.match(matchOne) || ['', ''])[1]; }); } function evalScripts() { return this.extractScripts().map(function(script) { return = eval(script) }); } function escapeHTML() { return = this.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>'); } function unescapeHTML() { return = this.stripTags().replace(/</g,'<').replace(/>/g,'>').replace(/&= /g,'&'); } function toQueryParams(separator) { var match =3D this.strip().match(/([^?#]*)(#.*)?$/); if (!match) return { }; return match[1].split(separator || '&').inject({ }, function(hash, = pair) { if ((pair =3D pair.split('=3D'))[0]) { var key =3D decodeURIComponent(pair.shift()), value =3D pair.length > 1 ? pair.join('=3D') : pair[0]; if (value !=3D undefined) value =3D decodeURIComponent(value); if (key in hash) { if (!Object.isArray(hash[key])) hash[key] =3D [hash[key]]; hash[key].push(value); } else hash[key] =3D value; } return hash; }); } function toArray() { return this.split(''); } function succ() { return this.slice(0, this.length - 1) + String.fromCharCode(this.charCodeAt(this.length - 1) + 1); } function times(count) { return count < 1 ? '' : new Array(count + 1).join(this); } function camelize() { return this.replace(/-+(.)?/g, function(match, chr) { return chr ? chr.toUpperCase() : ''; }); } function capitalize() { return this.charAt(0).toUpperCase() + = this.substring(1).toLowerCase(); } function underscore() { return this.replace(/::/g, '/') .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2') .replace(/([a-z\d])([A-Z])/g, '$1_$2') .replace(/-/g, '_') .toLowerCase(); } function dasherize() { return this.replace(/_/g, '-'); } function inspect(useDoubleQuotes) { var escapedString =3D this.replace(/[\x00-\x1f\\]/g, = function(character) { if (character in String.specialChar) { return String.specialChar[character]; } return '\\u00' + character.charCodeAt().toPaddedString(2, 16); }); if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') = + '"'; return "'" + escapedString.replace(/'/g, '\\\'') + "'"; } function unfilterJSON(filter) { return this.replace(filter || Prototype.JSONFilter, '$1'); } function isJSON() { var str =3D this; if (str.blank()) return false; str =3D str.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@'); str =3D = str.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d= +)?/g, ']'); str =3D str.replace(/(?:^|:|,)(?:\s*\[)+/g, ''); return (/^[\],:{}\s]*$/).test(str); } function evalJSON(sanitize) { var json =3D this.unfilterJSON(), cx =3D = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u= 2060-\u206f\ufeff\ufff0-\uffff]/g; if (cx.test(json)) { json =3D json.replace(cx, function (a) { return '\\u' + ('0000' + = a.charCodeAt(0).toString(16)).slice(-4); }); } try { if (!sanitize || json.isJSON()) return eval('(' + json + ')'); } catch (e) { } throw new SyntaxError('Badly formed JSON string: ' + = this.inspect()); } function parseJSON() { var json =3D this.unfilterJSON(); return JSON.parse(json); } function include(pattern) { return this.indexOf(pattern) > -1; } function startsWith(pattern) { return this.lastIndexOf(pattern, 0) =3D=3D=3D 0; } function endsWith(pattern) { var d =3D this.length - pattern.length; return d >=3D 0 && this.indexOf(pattern, d) =3D=3D=3D d; } function empty() { return this =3D=3D ''; } function blank() { return /^\s*$/.test(this); } function interpolate(object, pattern) { return new Template(this, pattern).evaluate(object); } return { gsub: gsub, sub: sub, scan: scan, truncate: truncate, strip: String.prototype.trim || strip, stripTags: stripTags, stripScripts: stripScripts, extractScripts: extractScripts, evalScripts: evalScripts, escapeHTML: escapeHTML, unescapeHTML: unescapeHTML, toQueryParams: toQueryParams, parseQuery: toQueryParams, toArray: toArray, succ: succ, times: times, camelize: camelize, capitalize: capitalize, underscore: underscore, dasherize: dasherize, inspect: inspect, unfilterJSON: unfilterJSON, isJSON: isJSON, evalJSON: NATIVE_JSON_PARSE_SUPPORT ? parseJSON : evalJSON, include: include, startsWith: startsWith, endsWith: endsWith, empty: empty, blank: blank, interpolate: interpolate }; })()); var Template =3D Class.create({ initialize: function(template, pattern) { this.template =3D template.toString(); this.pattern =3D pattern || Template.Pattern; }, evaluate: function(object) { if (object && Object.isFunction(object.toTemplateReplacements)) object =3D object.toTemplateReplacements(); return this.template.gsub(this.pattern, function(match) { if (object =3D=3D null) return (match[1] + ''); var before =3D match[1] || ''; if (before =3D=3D '\\') return match[2]; var ctx =3D object, expr =3D match[3], pattern =3D /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/; match =3D pattern.exec(expr); if (match =3D=3D null) return before; while (match !=3D null) { var comp =3D match[1].startsWith('[') ? = match[2].replace(/\\\\]/g, ']') : match[1]; ctx =3D ctx[comp]; if (null =3D=3D ctx || '' =3D=3D match[3]) break; expr =3D expr.substring('[' =3D=3D match[3] ? match[1].length : = match[0].length); match =3D pattern.exec(expr); } return before + String.interpret(ctx); }); } }); Template.Pattern =3D /(^|.|\r|\n)(#\{(.*?)\})/; var $break =3D { }; var Enumerable =3D (function() { function each(iterator, context) { var index =3D 0; try { this._each(function(value) { iterator.call(context, value, index++); }); } catch (e) { if (e !=3D $break) throw e; } return this; } function eachSlice(number, iterator, context) { var index =3D -number, slices =3D [], array =3D this.toArray(); if (number < 1) return array; while ((index +=3D number) < array.length) slices.push(array.slice(index, index+number)); return slices.collect(iterator, context); } function all(iterator, context) { iterator =3D iterator || Prototype.K; var result =3D true; this.each(function(value, index) { result =3D result && !!iterator.call(context, value, index); if (!result) throw $break; }); return result; } function any(iterator, context) { iterator =3D iterator || Prototype.K; var result =3D false; this.each(function(value, index) { if (result =3D !!iterator.call(context, value, index)) throw $break; }); return result; } function collect(iterator, context) { iterator =3D iterator || Prototype.K; var results =3D []; this.each(function(value, index) { results.push(iterator.call(context, value, index)); }); return results; } function detect(iterator, context) { var result; this.each(function(value, index) { if (iterator.call(context, value, index)) { result =3D value; throw $break; } }); return result; } function findAll(iterator, context) { var results =3D []; this.each(function(value, index) { if (iterator.call(context, value, index)) results.push(value); }); return results; } function grep(filter, iterator, context) { iterator =3D iterator || Prototype.K; var results =3D []; if (Object.isString(filter)) filter =3D new RegExp(RegExp.escape(filter)); this.each(function(value, index) { if (filter.match(value)) results.push(iterator.call(context, value, index)); }); return results; } function include(object) { if (Object.isFunction(this.indexOf)) if (this.indexOf(object) !=3D -1) return true; var found =3D false; this.each(function(value) { if (value =3D=3D object) { found =3D true; throw $break; } }); return found; } function inGroupsOf(number, fillWith) { fillWith =3D Object.isUndefined(fillWith) ? null : fillWith; return this.eachSlice(number, function(slice) { while(slice.length < number) slice.push(fillWith); return slice; }); } function inject(memo, iterator, context) { this.each(function(value, index) { memo =3D iterator.call(context, memo, value, index); }); return memo; } function invoke(method) { var args =3D $A(arguments).slice(1); return this.map(function(value) { return value[method].apply(value, args); }); } function max(iterator, context) { iterator =3D iterator || Prototype.K; var result; this.each(function(value, index) { value =3D iterator.call(context, value, index); if (result =3D=3D null || value >=3D result) result =3D value; }); return result; } function min(iterator, context) { iterator =3D iterator || Prototype.K; var result; this.each(function(value, index) { value =3D iterator.call(context, value, index); if (result =3D=3D null || value < result) result =3D value; }); return result; } function partition(iterator, context) { iterator =3D iterator || Prototype.K; var trues =3D [], falses =3D []; this.each(function(value, index) { (iterator.call(context, value, index) ? trues : falses).push(value); }); return [trues, falses]; } function pluck(property) { var results =3D []; this.each(function(value) { results.push(value[property]); }); return results; } function reject(iterator, context) { var results =3D []; this.each(function(value, index) { if (!iterator.call(context, value, index)) results.push(value); }); return results; } function sortBy(iterator, context) { return this.map(function(value, index) { return { value: value, criteria: iterator.call(context, value, index) }; }).sort(function(left, right) { var a =3D left.criteria, b =3D right.criteria; return a < b ? -1 : a > b ? 1 : 0; }).pluck('value'); } function toArray() { return this.map(); } function zip() { var iterator =3D Prototype.K, args =3D $A(arguments); if (Object.isFunction(args.last())) iterator =3D args.pop(); var collections =3D [this].concat(args).map($A); return this.map(function(value, index) { return iterator(collections.pluck(index)); }); } function size() { return this.toArray().length; } function inspect() { return '#<Enumerable:' + this.toArray().inspect() + '>'; } return { each: each, eachSlice: eachSlice, all: all, every: all, any: any, some: any, collect: collect, map: collect, detect: detect, findAll: findAll, select: findAll, filter: findAll, grep: grep, include: include, member: include, inGroupsOf: inGroupsOf, inject: inject, invoke: invoke, max: max, min: min, partition: partition, pluck: pluck, reject: reject, sortBy: sortBy, toArray: toArray, entries: toArray, zip: zip, size: size, inspect: inspect, find: detect }; })(); function $A(iterable) { if (!iterable) return []; if ('toArray' in Object(iterable)) return iterable.toArray(); var length =3D iterable.length || 0, results =3D new Array(length); while (length-- ) results[length] =3D iterable[length]; return results; } function $w(string) { if (!Object.isString(string)) return []; string =3D string.strip(); return string ? string.split(/\s+/) : []; } Array.from =3D $A; (function() { var arrayProto =3D Array.prototype, slice =3D arrayProto.slice, _each =3D arrayProto.forEach; // use native browser JS 1.6 = implementation if available function each(iterator, context) { for (var i =3D 0, length =3D this.length >>> 0; i < length; i++) { if (i in this) iterator.call(context, this[i], i, this); } } if (!_each) _each =3D each; function clear() { this.length =3D 0; return this; } function first() { return this[0]; } function last() { return this[this.length - 1]; } function compact() { return this.select(function(value) { return value !=3D null; }); } function flatten() { return this.inject([], function(array, value) { if (Object.isArray(value)) return array.concat(value.flatten()); array.push(value); return array; }); } function without() { var values =3D slice.call(arguments, 0); return this.select(function(value) { return !values.include(value); }); } function reverse(inline) { return (inline =3D=3D=3D false ? this.toArray() : this)._reverse(); } function uniq(sorted) { return this.inject([], function(array, value, index) { if (0 =3D=3D index || (sorted ? array.last() !=3D value : = !array.include(value))) array.push(value); return array; }); } function intersect(array) { return this.uniq().findAll(function(item) { return array.detect(function(value) { return item =3D=3D=3D value = }); }); } function clone() { return slice.call(this, 0); } function size() { return this.length; } function inspect() { return '[' + this.map(Object.inspect).join(', ') + ']'; } function indexOf(item, i) { i || (i =3D 0); var length =3D this.length; if (i < 0) i =3D length + i; for (; i < length; i++) if (this[i] =3D=3D=3D item) return i; return -1; } function lastIndexOf(item, i) { i =3D isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1; var n =3D this.slice(0, i).reverse().indexOf(item); return (n < 0) ? n : i - n - 1; } function concat() { var array =3D slice.call(this, 0), item; for (var i =3D 0, length =3D arguments.length; i < length; i++) { item =3D arguments[i]; if (Object.isArray(item) && !('callee' in item)) { for (var j =3D 0, arrayLength =3D item.length; j < arrayLength; = j++) array.push(item[j]); } else { array.push(item); } } return array; } Object.extend(arrayProto, Enumerable); if (!arrayProto._reverse) arrayProto._reverse =3D arrayProto.reverse; Object.extend(arrayProto, { _each: _each, clear: clear, first: first, last: last, compact: compact, flatten: flatten, without: without, reverse: reverse, uniq: uniq, intersect: intersect, clone: clone, toArray: clone, size: size, inspect: inspect }); var CONCAT_ARGUMENTS_BUGGY =3D (function() { return [].concat(arguments)[0][0] !=3D=3D 1; })(1,2) if (CONCAT_ARGUMENTS_BUGGY) arrayProto.concat =3D concat; if (!arrayProto.indexOf) arrayProto.indexOf =3D indexOf; if (!arrayProto.lastIndexOf) arrayProto.lastIndexOf =3D lastIndexOf; })(); function $H(object) { return new Hash(object); }; var Hash =3D Class.create(Enumerable, (function() { function initialize(object) { this._object =3D Object.isHash(object) ? object.toObject() : = Object.clone(object); } function _each(iterator) { for (var key in this._object) { var value =3D this._object[key], pair =3D [key, value]; pair.key =3D key; pair.value =3D value; iterator(pair); } } function set(key, value) { return this._object[key] =3D value; } function get(key) { if (this._object[key] !=3D=3D Object.prototype[key]) return this._object[key]; } function unset(key) { var value =3D this._object[key]; delete this._object[key]; return value; } function toObject() { return Object.clone(this._object); } function keys() { return this.pluck('key'); } function values() { return this.pluck('value'); } function index(value) { var match =3D this.detect(function(pair) { return pair.value =3D=3D=3D value; }); return match && match.key; } function merge(object) { return this.clone().update(object); } function update(object) { return new Hash(object).inject(this, function(result, pair) { result.set(pair.key, pair.value); return result; }); } function toQueryPair(key, value) { if (Object.isUndefined(value)) return key; return key + '=3D' + encodeURIComponent(String.interpret(value)); } function toQueryString() { return this.inject([], function(results, pair) { var key =3D encodeURIComponent(pair.key), values =3D pair.value; if (values && typeof values =3D=3D 'object') { if (Object.isArray(values)) { var queryValues =3D []; for (var i =3D 0, len =3D values.length, value; i < len; i++) = { value =3D values[i]; queryValues.push(toQueryPair(key, value)); } return results.concat(queryValues); } } else results.push(toQueryPair(key, values)); return results; }).join('&'); } function inspect() { return '#<Hash:{' + this.map(function(pair) { return pair.map(Object.inspect).join(': '); }).join(', ') + '}>'; } function clone() { return new Hash(this); } return { initialize: initialize, _each: _each, set: set, get: get, unset: unset, toObject: toObject, toTemplateReplacements: toObject, keys: keys, values: values, index: index, merge: merge, update: update, toQueryString: toQueryString, inspect: inspect, toJSON: toObject, clone: clone }; })()); Hash.from =3D $H; Object.extend(Number.prototype, (function() { function toColorPart() { return this.toPaddedString(2, 16); } function succ() { return this + 1; } function times(iterator, context) { $R(0, this, true).each(iterator, context); return this; } function toPaddedString(length, radix) { var string =3D this.toString(radix || 10); return '0'.times(length - string.length) + string; } function abs() { return Math.abs(this); } function round() { return Math.round(this); } function ceil() { return Math.ceil(this); } function floor() { return Math.floor(this); } return { toColorPart: toColorPart, succ: succ, times: times, toPaddedString: toPaddedString, abs: abs, round: round, ceil: ceil, floor: floor }; })()); function $R(start, end, exclusive) { return new ObjectRange(start, end, exclusive); } var ObjectRange =3D Class.create(Enumerable, (function() { function initialize(start, end, exclusive) { this.start =3D start; this.end =3D end; this.exclusive =3D exclusive; } function _each(iterator) { var value =3D this.start; while (this.include(value)) { iterator(value); value =3D value.succ(); } } function include(value) { if (value < this.start) return false; if (this.exclusive) return value < this.end; return value <=3D this.end; } return { initialize: initialize, _each: _each, include: include }; })()); var Ajax =3D { getTransport: function() { return Try.these( function() {return new XMLHttpRequest()}, function() {return new ActiveXObject('Msxml2.XMLHTTP')}, function() {return new ActiveXObject('Microsoft.XMLHTTP')} ) || false; }, activeRequestCount: 0 }; Ajax.Responders =3D { responders: [], _each: function(iterator) { this.responders._each(iterator); }, register: function(responder) { if (!this.include(responder)) this.responders.push(responder); }, unregister: function(responder) { this.responders =3D this.responders.without(responder); }, dispatch: function(callback, request, transport, json) { this.each(function(responder) { if (Object.isFunction(responder[callback])) { try { responder[callback].apply(responder, [request, transport, = json]); } catch (e) { } } }); } }; Object.extend(Ajax.Responders, Enumerable); Ajax.Responders.register({ onCreate: function() { Ajax.activeRequestCount++ }, onComplete: function() { Ajax.activeRequestCount-- } }); Ajax.Base =3D Class.create({ initialize: function(options) { this.options =3D { method: 'post', asynchronous: true, contentType: 'application/x-www-form-urlencoded', encoding: 'UTF-8', parameters: '', evalJSON: true, evalJS: true }; Object.extend(this.options, options || { }); this.options.method =3D this.options.method.toLowerCase(); if (Object.isHash(this.options.parameters)) this.options.parameters =3D this.options.parameters.toObject(); } }); Ajax.Request =3D Class.create(Ajax.Base, { _complete: false, initialize: function($super, url, options) { $super(options); this.transport =3D Ajax.getTransport(); this.request(url); }, request: function(url) { this.url =3D url; this.method =3D this.options.method; var params =3D Object.isString(this.options.parameters) ? this.options.parameters : Object.toQueryString(this.options.parameters); if (!['get', 'post'].include(this.method)) { params +=3D (params ? '&' : '') + "_method=3D" + this.method; this.method =3D 'post'; } if (params && this.method =3D=3D=3D 'get') { this.url +=3D (this.url.include('?') ? '&' : '?') + params; } this.parameters =3D params.toQueryParams(); try { var response =3D new Ajax.Response(this); if (this.options.onCreate) this.options.onCreate(response); Ajax.Responders.dispatch('onCreate', this, response); this.transport.open(this.method.toUpperCase(), this.url, this.options.asynchronous); if (this.options.asynchronous) = this.respondToReadyState.bind(this).defer(1); this.transport.onreadystatechange =3D = this.onStateChange.bind(this); this.setRequestHeaders(); this.body =3D this.method =3D=3D 'post' ? (this.options.postBody = || params) : null; this.transport.send(this.body); /* Force Firefox to handle ready state 4 for synchronous requests = */ if (!this.options.asynchronous && this.transport.overrideMimeType) this.onStateChange(); } catch (e) { this.dispatchException(e); } }, onStateChange: function() { var readyState =3D this.transport.readyState; if (readyState > 1 && !((readyState =3D=3D 4) && this._complete)) this.respondToReadyState(this.transport.readyState); }, setRequestHeaders: function() { var headers =3D { 'X-Requested-With': 'XMLHttpRequest', 'X-Prototype-Version': Prototype.Version, 'Accept': 'text/javascript, text/html, application/xml, text/xml, = */*' }; if (this.method =3D=3D 'post') { headers['Content-type'] =3D this.options.contentType + (this.options.encoding ? '; charset=3D' + this.options.encoding = : ''); /* Force "Connection: close" for older Mozilla browsers to work * around a bug where XMLHttpRequest sends an incorrect * Content-length header. See Mozilla Bugzilla #246651. */ if (this.transport.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < = 2005) headers['Connection'] =3D 'close'; } if (typeof this.options.requestHeaders =3D=3D 'object') { var extras =3D this.options.requestHeaders; if (Object.isFunction(extras.push)) for (var i =3D 0, length =3D extras.length; i < length; i +=3D = 2) headers[extras[i]] =3D extras[i+1]; else $H(extras).each(function(pair) { headers[pair.key] =3D = pair.value }); } for (var name in headers) this.transport.setRequestHeader(name, headers[name]); }, success: function() { var status =3D this.getStatus(); return !status || (status >=3D 200 && status < 300) || status =3D=3D = 304; }, getStatus: function() { try { if (this.transport.status =3D=3D=3D 1223) return 204; return this.transport.status || 0; } catch (e) { return 0 } }, respondToReadyState: function(readyState) { var state =3D Ajax.Request.Events[readyState], response =3D new = Ajax.Response(this); if (state =3D=3D 'Complete') { try { this._complete =3D true; (this.options['on' + response.status] || this.options['on' + (this.success() ? 'Success' : = 'Failure')] || Prototype.emptyFunction)(response, response.headerJSON); } catch (e) { this.dispatchException(e); } var contentType =3D response.getHeader('Content-type'); if (this.options.evalJS =3D=3D 'force' || (this.options.evalJS && this.isSameOrigin() && contentType && = contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s= *$/i))) this.evalResponse(); } try { (this.options['on' + state] || Prototype.emptyFunction)(response, = response.headerJSON); Ajax.Responders.dispatch('on' + state, this, response, = response.headerJSON); } catch (e) { this.dispatchException(e); } if (state =3D=3D 'Complete') { this.transport.onreadystatechange =3D Prototype.emptyFunction; } }, isSameOrigin: function() { var m =3D this.url.match(/^\s*https?:\/\/[^\/]*/); return !m || (m[0] =3D=3D = '#{protocol}//#{domain}#{port}'.interpolate({ protocol: location.protocol, domain: document.domain, port: location.port ? ':' + location.port : '' })); }, getHeader: function(name) { try { return this.transport.getResponseHeader(name) || null; } catch (e) { return null; } }, evalResponse: function() { try { return eval((this.transport.responseText || '').unfilterJSON()); } catch (e) { this.dispatchException(e); } }, dispatchException: function(exception) { (this.options.onException || Prototype.emptyFunction)(this, = exception); Ajax.Responders.dispatch('onException', this, exception); } }); Ajax.Request.Events =3D ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete']; Ajax.Response =3D Class.create({ initialize: function(request){ this.request =3D request; var transport =3D this.transport =3D request.transport, readyState =3D this.readyState =3D transport.readyState; if ((readyState > 2 && !Prototype.Browser.IE) || readyState =3D=3D = 4) { this.status =3D this.getStatus(); this.statusText =3D this.getStatusText(); this.responseText =3D String.interpret(transport.responseText); this.headerJSON =3D this._getHeaderJSON(); } if (readyState =3D=3D 4) { var xml =3D transport.responseXML; this.responseXML =3D Object.isUndefined(xml) ? null : xml; this.responseJSON =3D this._getResponseJSON(); } }, status: 0, statusText: '', getStatus: Ajax.Request.prototype.getStatus, getStatusText: function() { try { return this.transport.statusText || ''; } catch (e) { return '' } }, getHeader: Ajax.Request.prototype.getHeader, getAllHeaders: function() { try { return this.getAllResponseHeaders(); } catch (e) { return null } }, getResponseHeader: function(name) { return this.transport.getResponseHeader(name); }, getAllResponseHeaders: function() { return this.transport.getAllResponseHeaders(); }, _getHeaderJSON: function() { var json =3D this.getHeader('X-JSON'); if (!json) return null; json =3D decodeURIComponent(escape(json)); try { return json.evalJSON(this.request.options.sanitizeJSON || !this.request.isSameOrigin()); } catch (e) { this.request.dispatchException(e); } }, _getResponseJSON: function() { var options =3D this.request.options; if (!options.evalJSON || (options.evalJSON !=3D 'force' && !(this.getHeader('Content-type') || = '').include('application/json')) || this.responseText.blank()) return null; try { return this.responseText.evalJSON(options.sanitizeJSON || !this.request.isSameOrigin()); } catch (e) { this.request.dispatchException(e); } } }); Ajax.Updater =3D Class.create(Ajax.Request, { initialize: function($super, container, url, options) { this.container =3D { success: (container.success || container), failure: (container.failure || (container.success ? null : = container)) }; options =3D Object.clone(options); var onComplete =3D options.onComplete; options.onComplete =3D (function(response, json) { this.updateContent(response.responseText); if (Object.isFunction(onComplete)) onComplete(response, json); }).bind(this); $super(url, options); }, updateContent: function(responseText) { var receiver =3D this.container[this.success() ? 'success' : = 'failure'], options =3D this.options; if (!options.evalScripts) responseText =3D = responseText.stripScripts(); if (receiver =3D $(receiver)) { if (options.insertion) { if (Object.isString(options.insertion)) { var insertion =3D { }; insertion[options.insertion] =3D = responseText; receiver.insert(insertion); } else options.insertion(receiver, responseText); } else receiver.update(responseText); } } }); Ajax.PeriodicalUpdater =3D Class.create(Ajax.Base, { initialize: function($super, container, url, options) { $super(options); this.onComplete =3D this.options.onComplete; this.frequency =3D (this.options.frequency || 2); this.decay =3D (this.options.decay || 1); this.updater =3D { }; this.container =3D container; this.url =3D url; this.start(); }, start: function() { this.options.onComplete =3D this.updateComplete.bind(this); this.onTimerEvent(); }, stop: function() { this.updater.options.onComplete =3D undefined; clearTimeout(this.timer); (this.onComplete || Prototype.emptyFunction).apply(this, arguments); }, updateComplete: function(response) { if (this.options.decay) { this.decay =3D (response.responseText =3D=3D this.lastText ? this.decay * this.options.decay : 1); this.lastText =3D response.responseText; } this.timer =3D this.onTimerEvent.bind(this).delay(this.decay * = this.frequency); }, onTimerEvent: function() { this.updater =3D new Ajax.Updater(this.container, this.url, = this.options); } }); function $(element) { if (arguments.length > 1) { for (var i =3D 0, elements =3D [], length =3D arguments.length; i < = length; i++) elements.push($(arguments[i])); return elements; } if (Object.isString(element)) element =3D document.getElementById(element); return Element.extend(element); } if (Prototype.BrowserFeatures.XPath) { document._getElementsByXPath =3D function(expression, parentElement) { var results =3D []; var query =3D document.evaluate(expression, $(parentElement) || = document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var i =3D 0, length =3D query.snapshotLength; i < length; i++) results.push(Element.extend(query.snapshotItem(i))); return results; }; } /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ if (!Node) var Node =3D { }; if (!Node.ELEMENT_NODE) { Object.extend(Node, { ELEMENT_NODE: 1, ATTRIBUTE_NODE: 2, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, ENTITY_REFERENCE_NODE: 5, ENTITY_NODE: 6, PROCESSING_INSTRUCTION_NODE: 7, COMMENT_NODE: 8, DOCUMENT_NODE: 9, DOCUMENT_TYPE_NODE: 10, DOCUMENT_FRAGMENT_NODE: 11, NOTATION_NODE: 12 }); } (function(global) { function shouldUseCache(tagName, attributes) { if (tagName =3D=3D=3D 'select') return false; if ('type' in attributes) return false; return true; } var HAS_EXTENDED_CREATE_ELEMENT_SYNTAX =3D (function(){ try { var el =3D document.createElement('<input name=3D"x">'); return el.tagName.toLowerCase() =3D=3D=3D 'input' && el.name = =3D=3D=3D 'x'; } catch(err) { return false; } })(); var element =3D global.Element; global.Element =3D function(tagName, attributes) { attributes =3D attributes || { }; tagName =3D tagName.toLowerCase(); var cache =3D Element.cache; if (HAS_EXTENDED_CREATE_ELEMENT_SYNTAX && attributes.name) { tagName =3D '<' + tagName + ' name=3D"' + attributes.name + '">'; delete attributes.name; return Element.writeAttribute(document.createElement(tagName), = attributes); } if (!cache[tagName]) cache[tagName] =3D = Element.extend(document.createElement(tagName)); var node =3D shouldUseCache(tagName, attributes) ? cache[tagName].cloneNode(false) : document.createElement(tagName); return Element.writeAttribute(node, attributes); }; Object.extend(global.Element, element || { }); if (element) global.Element.prototype =3D element.prototype; })(this); Element.idCounter =3D 1; Element.cache =3D { }; Element._purgeElement =3D function(element) { var uid =3D element._prototypeUID; if (uid) { Element.stopObserving(element); element._prototypeUID =3D void 0; delete Element.Storage[uid]; } } Element.Methods =3D { visible: function(element) { return $(element).style.display !=3D 'none'; }, toggle: function(element) { element =3D $(element); Element[Element.visible(element) ? 'hide' : 'show'](element); return element; }, hide: function(element) { element =3D $(element); element.style.display =3D 'none'; return element; }, show: function(element) { element =3D $(element); element.style.display =3D ''; return element; }, remove: function(element) { element =3D $(element); element.parentNode.removeChild(element); return element; }, update: (function(){ var SELECT_ELEMENT_INNERHTML_BUGGY =3D (function(){ var el =3D document.createElement("select"), isBuggy =3D true; el.innerHTML =3D "<option value=3D\"test\">test</option>"; if (el.options && el.options[0]) { isBuggy =3D el.options[0].nodeName.toUpperCase() !=3D=3D = "OPTION"; } el =3D null; return isBuggy; })(); var TABLE_ELEMENT_INNERHTML_BUGGY =3D (function(){ try { var el =3D document.createElement("table"); if (el && el.tBodies) { el.innerHTML =3D "<tbody><tr><td>test</td></tr></tbody>"; var isBuggy =3D typeof el.tBodies[0] =3D=3D "undefined"; el =3D null; return isBuggy; } } catch (e) { return true; } })(); var LINK_ELEMENT_INNERHTML_BUGGY =3D (function() { try { var el =3D document.createElement('div'); el.innerHTML =3D "<link>"; var isBuggy =3D (el.childNodes.length =3D=3D=3D 0); el =3D null; return isBuggy; } catch(e) { return true; } })(); var ANY_INNERHTML_BUGGY =3D SELECT_ELEMENT_INNERHTML_BUGGY || TABLE_ELEMENT_INNERHTML_BUGGY || LINK_ELEMENT_INNERHTML_BUGGY; var SCRIPT_ELEMENT_REJECTS_TEXTNODE_APPENDING =3D (function () { var s =3D document.createElement("script"), isBuggy =3D false; try { s.appendChild(document.createTextNode("")); isBuggy =3D !s.firstChild || s.firstChild && s.firstChild.nodeType !=3D=3D 3; } catch (e) { isBuggy =3D true; } s =3D null; return isBuggy; })(); function update(element, content) { element =3D $(element); var purgeElement =3D Element._purgeElement; var descendants =3D element.getElementsByTagName('*'), i =3D descendants.length; while (i-- ) purgeElement(descendants[i]); if (content && content.toElement) content =3D content.toElement(); if (Object.isElement(content)) return element.update().insert(content); content =3D Object.toHTML(content); var tagName =3D element.tagName.toUpperCase(); if (tagName =3D=3D=3D 'SCRIPT' && = SCRIPT_ELEMENT_REJECTS_TEXTNODE_APPENDING) { element.text =3D content; return element; } if (ANY_INNERHTML_BUGGY) { if (tagName in Element._insertionTranslations.tags) { while (element.firstChild) { element.removeChild(element.firstChild); } Element._getContentFromAnonymousElement(tagName, = content.stripScripts()) .each(function(node) { element.appendChild(node) }); } else if (LINK_ELEMENT_INNERHTML_BUGGY && = Object.isString(content) && content.indexOf('<link') > -1) { while (element.firstChild) { element.removeChild(element.firstChild); } var nodes =3D Element._getContentFromAnonymousElement(tagName, = content.stripScripts(), true); nodes.each(function(node) { element.appendChild(node) }); } else { element.innerHTML =3D content.stripScripts(); } } else { element.innerHTML =3D content.stripScripts(); } content.evalScripts.bind(content).defer(); return element; } return update; })(), replace: function(element, content) { element =3D $(element); if (content && content.toElement) content =3D content.toElement(); else if (!Object.isElement(content)) { content =3D Object.toHTML(content); var range =3D element.ownerDocument.createRange(); range.selectNode(element); content.evalScripts.bind(content).defer(); content =3D = range.createContextualFragment(content.stripScripts()); } element.parentNode.replaceChild(content, element); return element; }, insert: function(element, insertions) { element =3D $(element); if (Object.isString(insertions) || Object.isNumber(insertions) || Object.isElement(insertions) || (insertions && = (insertions.toElement || insertions.toHTML))) insertions =3D {bottom:insertions}; var content, insert, tagName, childNodes; for (var position in insertions) { content =3D insertions[position]; position =3D position.toLowerCase(); insert =3D Element._insertionTranslations[position]; if (content && content.toElement) content =3D content.toElement(); if (Object.isElement(content)) { insert(element, content); continue; } content =3D Object.toHTML(content); tagName =3D ((position =3D=3D 'before' || position =3D=3D 'after') ? element.parentNode : element).tagName.toUpperCase(); childNodes =3D Element._getContentFromAnonymousElement(tagName, = content.stripScripts()); if (position =3D=3D 'top' || position =3D=3D 'after') = childNodes.reverse(); childNodes.each(insert.curry(element)); content.evalScripts.bind(content).defer(); } return element; }, wrap: function(element, wrapper, attributes) { element =3D $(element); if (Object.isElement(wrapper)) $(wrapper).writeAttribute(attributes || { }); else if (Object.isString(wrapper)) wrapper =3D new Element(wrapper, = attributes); else wrapper =3D new Element('div', wrapper); if (element.parentNode) element.parentNode.replaceChild(wrapper, element); wrapper.appendChild(element); return wrapper; }, inspect: function(element) { element =3D $(element); var result =3D '<' + element.tagName.toLowerCase(); $H({'id': 'id', 'className': 'class'}).each(function(pair) { var property =3D pair.first(), attribute =3D pair.last(), value =3D (element[property] || '').toString(); if (value) result +=3D ' ' + attribute + '=3D' + = value.inspect(true); }); return result + '>'; }, recursivelyCollect: function(element, property, maximumLength) { element =3D $(element); maximumLength =3D maximumLength || -1; var elements =3D []; while (element =3D element[property]) { if (element.nodeType =3D=3D 1) elements.push(Element.extend(element)); if (elements.length =3D=3D maximumLength) break; } return elements; }, ancestors: function(element) { return Element.recursivelyCollect(element, 'parentNode'); }, descendants: function(element) { return Element.select(element, "*"); }, firstDescendant: function(element) { element =3D $(element).firstChild; while (element && element.nodeType !=3D 1) element =3D = element.nextSibling; return $(element); }, immediateDescendants: function(element) { var results =3D [], child =3D $(element).firstChild; while (child) { if (child.nodeType =3D=3D=3D 1) { results.push(Element.extend(child)); } child =3D child.nextSibling; } return results; }, previousSiblings: function(element, maximumLength) { return Element.recursivelyCollect(element, 'previousSibling'); }, nextSiblings: function(element) { return Element.recursivelyCollect(element, 'nextSibling'); }, siblings: function(element) { element =3D $(element); return Element.previousSiblings(element).reverse() .concat(Element.nextSiblings(element)); }, match: function(element, selector) { element =3D $(element); if (Object.isString(selector)) return Prototype.Selector.match(element, selector); return selector.match(element); }, up: function(element, expression, index) { element =3D $(element); if (arguments.length =3D=3D 1) return $(element.parentNode); var ancestors =3D Element.ancestors(element); return Object.isNumber(expression) ? ancestors[expression] : Prototype.Selector.find(ancestors, expression, index); }, down: function(element, expression, index) { element =3D $(element); if (arguments.length =3D=3D 1) return = Element.firstDescendant(element); return Object.isNumber(expression) ? = Element.descendants(element)[expression] : Element.select(element, expression)[index || 0]; }, previous: function(element, expression, index) { element =3D $(element); if (Object.isNumber(expression)) index =3D expression, expression = =3D false; if (!Object.isNumber(index)) index =3D 0; if (expression) { return Prototype.Selector.find(element.previousSiblings(), = expression, index); } else { return element.recursivelyCollect("previousSibling", index + = 1)[index]; } }, next: function(element, expression, index) { element =3D $(element); if (Object.isNumber(expression)) index =3D expression, expression = =3D false; if (!Object.isNumber(index)) index =3D 0; if (expression) { return Prototype.Selector.find(element.nextSiblings(), expression, = index); } else { var maximumLength =3D Object.isNumber(index) ? index + 1 : 1; return element.recursivelyCollect("nextSibling", index + = 1)[index]; } }, select: function(element) { element =3D $(element); var expressions =3D Array.prototype.slice.call(arguments, 1).join(', = '); return Prototype.Selector.select(expressions, element); }, adjacent: function(element) { element =3D $(element); var expressions =3D Array.prototype.slice.call(arguments, 1).join(', = '); return Prototype.Selector.select(expressions, = element.parentNode).without(element); }, identify: function(element) { element =3D $(element); var id =3D Element.readAttribute(element, 'id'); if (id) return id; do { id =3D 'anonymous_element_' + Element.idCounter++ } while = ($(id)); Element.writeAttribute(element, 'id', id); return id; }, readAttribute: function(element, name) { element =3D $(element); if (Prototype.Browser.IE) { var t =3D Element._attributeTranslations.read; if (t.values[name]) return t.values[name](element, name); if (t.names[name]) name =3D t.names[name]; if (name.include(':')) { return (!element.attributes || !element.attributes[name]) ? null = : element.attributes[name].value; } } return element.getAttribute(name); }, writeAttribute: function(element, name, value) { element =3D $(element); var attributes =3D { }, t =3D Element._attributeTranslations.write; if (typeof name =3D=3D 'object') attributes =3D name; else attributes[name] =3D Object.isUndefined(value) ? true : value; for (var attr in attributes) { name =3D t.names[attr] || attr; value =3D attributes[attr]; if (t.values[attr]) name =3D t.values[attr](element, value); if (value =3D=3D=3D false || value =3D=3D=3D null) element.removeAttribute(name); else if (value =3D=3D=3D true) element.setAttribute(name, name); else element.setAttribute(name, value); } return element; }, getHeight: function(element) { return Element.getDimensions(element).height; }, getWidth: function(element) { return Element.getDimensions(element).width; }, classNames: function(element) { return new Element.ClassNames(element); }, hasClassName: function(element, className) { if (!(element =3D $(element))) return; var elementClassName =3D element.className; return (elementClassName.length > 0 && (elementClassName =3D=3D = className || new RegExp("(^|\\s)" + className + = "(\\s|$)").test(elementClassName))); }, addClassName: function(element, className) { if (!(element =3D $(element))) return; if (!Element.hasClassName(element, className)) element.className +=3D (element.className ? ' ' : '') + className; return element; }, removeClassName: function(element, className) { if (!(element =3D $(element))) return; element.className =3D element.className.replace( new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip(); return element; }, toggleClassName: function(element, className) { if (!(element =3D $(element))) return; return Element[Element.hasClassName(element, className) ? 'removeClassName' : 'addClassName'](element, className); }, cleanWhitespace: function(element) { element =3D $(element); var node =3D element.firstChild; while (node) { var nextNode =3D node.nextSibling; if (node.nodeType =3D=3D 3 && !/\S/.test(node.nodeValue)) element.removeChild(node); node =3D nextNode; } return element; }, empty: function(element) { return $(element).innerHTML.blank(); }, descendantOf: function(element, ancestor) { element =3D $(element), ancestor =3D $(ancestor); if (element.compareDocumentPosition) return (element.compareDocumentPosition(ancestor) & 8) =3D=3D=3D = 8; if (ancestor.contains) return ancestor.contains(element) && ancestor !=3D=3D element; while (element =3D element.parentNode) if (element =3D=3D ancestor) return true; return false; }, scrollTo: function(element) { element =3D $(element); var pos =3D Element.cumulativeOffset(element); window.scrollTo(pos[0], pos[1]); return element; }, getStyle: function(element, style) { element =3D $(element); style =3D style =3D=3D 'float' ? 'cssFloat' : style.camelize(); var value =3D element.style[style]; if (!value || value =3D=3D 'auto') { var css =3D document.defaultView.getComputedStyle(element, null); value =3D css ? css[style] : null; } if (style =3D=3D 'opacity') return value ? parseFloat(value) : 1.0; return value =3D=3D 'auto' ? null : value; }, getOpacity: function(element) { return $(element).getStyle('opacity'); }, setStyle: function(element, styles) { element =3D $(element); var elementStyle =3D element.style, match; if (Object.isString(styles)) { element.style.cssText +=3D ';' + styles; return styles.include('opacity') ? element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : = element; } for (var property in styles) if (property =3D=3D 'opacity') = element.setOpacity(styles[property]); else elementStyle[(property =3D=3D 'float' || property =3D=3D = 'cssFloat') ? (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : = 'styleFloat') : property] =3D styles[property]; return element; }, setOpacity: function(element, value) { element =3D $(element); element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? = '' : (value < 0.00001) ? 0 : value; return element; }, makePositioned: function(element) { element =3D $(element); var pos =3D Element.getStyle(element, 'position'); if (pos =3D=3D 'static' || !pos) { element._madePositioned =3D true; element.style.position =3D 'relative'; if (Prototype.Browser.Opera) { element.style.top =3D 0; element.style.left =3D 0; } } return element; }, undoPositioned: function(element) { element =3D $(element); if (element._madePositioned) { element._madePositioned =3D undefined; element.style.position =3D element.style.top =3D element.style.left =3D element.style.bottom =3D element.style.right =3D ''; } return element; }, makeClipping: function(element) { element =3D $(element); if (element._overflow) return element; element._overflow =3D Element.getStyle(element, 'overflow') || = 'auto'; if (element._overflow !=3D=3D 'hidden') element.style.overflow =3D 'hidden'; return element; }, undoClipping: function(element) { element =3D $(element); if (!element._overflow) return element; element.style.overflow =3D element._overflow =3D=3D 'auto' ? '' : = element._overflow; element._overflow =3D null; return element; }, clonePosition: function(element, source) { var options =3D Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] || { }); source =3D $(source); var p =3D Element.viewportOffset(source), delta =3D [0, 0], parent = =3D null; element =3D $(element); if (Element.getStyle(element, 'position') =3D=3D 'absolute') { parent =3D Element.getOffsetParent(element); delta =3D Element.viewportOffset(parent); } if (parent =3D=3D document.body) { delta[0] -=3D document.body.offsetLeft; delta[1] -=3D document.body.offsetTop; } if (options.setLeft) element.style.left =3D (p[0] - delta[0] + = options.offsetLeft) + 'px'; if (options.setTop) element.style.top =3D (p[1] - delta[1] + = options.offsetTop) + 'px'; if (options.setWidth) element.style.width =3D source.offsetWidth + = 'px'; if (options.setHeight) element.style.height =3D source.offsetHeight = + 'px'; return element; } }; Object.extend(Element.Methods, { getElementsBySelector: Element.Methods.select, childElements: Element.Methods.immediateDescendants }); Element._attributeTranslations =3D { write: { names: { className: 'class', htmlFor: 'for' }, values: { } } }; if (Prototype.Browser.Opera) { Element.Methods.getStyle =3D Element.Methods.getStyle.wrap( function(proceed, element, style) { switch (style) { case 'height': case 'width': if (!Element.visible(element)) return null; var dim =3D parseInt(proceed(element, style), 10); if (dim !=3D=3D element['offset' + style.capitalize()]) return dim + 'px'; var properties; if (style =3D=3D=3D 'height') { properties =3D ['border-top-width', 'padding-top', 'padding-bottom', 'border-bottom-width']; } else { properties =3D ['border-left-width', 'padding-left', 'padding-right', 'border-right-width']; } return properties.inject(dim, function(memo, property) { var val =3D proceed(element, property); return val =3D=3D=3D null ? memo : memo - parseInt(val, 10); }) + 'px'; default: return proceed(element, style); } } ); Element.Methods.readAttribute =3D Element.Methods.readAttribute.wrap( function(proceed, element, attribute) { if (attribute =3D=3D=3D 'title') return element.title; return proceed(element, attribute); } ); } else if (Prototype.Browser.IE) { Element.Methods.getStyle =3D function(element, style) { element =3D $(element); style =3D (style =3D=3D 'float' || style =3D=3D 'cssFloat') ? = 'styleFloat' : style.camelize(); var value =3D element.style[style]; if (!value && element.currentStyle) value =3D = element.currentStyle[style]; if (style =3D=3D 'opacity') { if (value =3D (element.getStyle('filter') || = '').match(/alpha\(opacity=3D(.*)\)/)) if (value[1]) return parseFloat(value[1]) / 100; return 1.0; } if (value =3D=3D 'auto') { if ((style =3D=3D 'width' || style =3D=3D 'height') && = (element.getStyle('display') !=3D 'none')) return element['offset' + style.capitalize()] + 'px'; return null; } return value; }; Element.Methods.setOpacity =3D function(element, value) { function stripAlpha(filter){ return filter.replace(/alpha\([^\)]*\)/gi,''); } element =3D $(element); var currentStyle =3D element.currentStyle; if ((currentStyle && !currentStyle.hasLayout) || (!currentStyle && element.style.zoom =3D=3D 'normal')) element.style.zoom =3D 1; var filter =3D element.getStyle('filter'), style =3D element.style; if (value =3D=3D 1 || value =3D=3D=3D '') { (filter =3D stripAlpha(filter)) ? style.filter =3D filter : style.removeAttribute('filter'); return element; } else if (value < 0.00001) value =3D 0; style.filter =3D stripAlpha(filter) + 'alpha(opacity=3D' + (value * 100) + ')'; return element; }; Element._attributeTranslations =3D (function(){ var classProp =3D 'className', forProp =3D 'for', el =3D document.createElement('div'); el.setAttribute(classProp, 'x'); if (el.className !=3D=3D 'x') { el.setAttribute('class', 'x'); if (el.className =3D=3D=3D 'x') { classProp =3D 'class'; } } el =3D null; el =3D document.createElement('label'); el.setAttribute(forProp, 'x'); if (el.htmlFor !=3D=3D 'x') { el.setAttribute('htmlFor', 'x'); if (el.htmlFor =3D=3D=3D 'x') { forProp =3D 'htmlFor'; } } el =3D null; return { read: { names: { 'class': classProp, 'className': classProp, 'for': forProp, 'htmlFor': forProp }, values: { _getAttr: function(element, attribute) { return element.getAttribute(attribute); }, _getAttr2: function(element, attribute) { return element.getAttribute(attribute, 2); }, _getAttrNode: function(element, attribute) { var node =3D element.getAttributeNode(attribute); return node ? node.value : ""; }, _getEv: (function(){ var el =3D document.createElement('div'), f; el.onclick =3D Prototype.emptyFunction; var value =3D el.getAttribute('onclick'); if (String(value).indexOf('{') > -1) { f =3D function(element, attribute) { attribute =3D element.getAttribute(attribute); if (!attribute) return null; attribute =3D attribute.toString(); attribute =3D attribute.split('{')[1]; attribute =3D attribute.split('}')[0]; return attribute.strip(); }; } else if (value =3D=3D=3D '') { f =3D function(element, attribute) { attribute =3D element.getAttribute(attribute); if (!attribute) return null; return attribute.strip(); }; } el =3D null; return f; })(), _flag: function(element, attribute) { return $(element).hasAttribute(attribute) ? attribute : = null; }, style: function(element) { return element.style.cssText.toLowerCase(); }, title: function(element) { return element.title; } } } } })(); Element._attributeTranslations.write =3D { names: Object.extend({ cellpadding: 'cellPadding', cellspacing: 'cellSpacing' }, Element._attributeTranslations.read.names), values: { checked: function(element, value) { element.checked =3D !!value; }, style: function(element, value) { element.style.cssText =3D value ? value : ''; } } }; Element._attributeTranslations.has =3D {}; $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' + 'encType maxLength readOnly longDesc = frameBorder').each(function(attr) { Element._attributeTranslations.write.names[attr.toLowerCase()] =3D = attr; Element._attributeTranslations.has[attr.toLowerCase()] =3D attr; }); (function(v) { Object.extend(v, { href: v._getAttr2, src: v._getAttr2, type: v._getAttr, action: v._getAttrNode, disabled: v._flag, checked: v._flag, readonly: v._flag, multiple: v._flag, onload: v._getEv, onunload: v._getEv, onclick: v._getEv, ondblclick: v._getEv, onmousedown: v._getEv, onmouseup: v._getEv, onmouseover: v._getEv, onmousemove: v._getEv, onmouseout: v._getEv, onfocus: v._getEv, onblur: v._getEv, onkeypress: v._getEv, onkeydown: v._getEv, onkeyup: v._getEv, onsubmit: v._getEv, onreset: v._getEv, onselect: v._getEv, onchange: v._getEv }); })(Element._attributeTranslations.read.values); if (Prototype.BrowserFeatures.ElementExtensions) { (function() { function _descendants(element) { var nodes =3D element.getElementsByTagName('*'), results =3D []; for (var i =3D 0, node; node =3D nodes[i]; i++) if (node.tagName !=3D=3D "!") // Filter out comment nodes. results.push(node); return results; } Element.Methods.down =3D function(element, expression, index) { element =3D $(element); if (arguments.length =3D=3D 1) return element.firstDescendant(); return Object.isNumber(expression) ? = _descendants(element)[expression] : Element.select(element, expression)[index || 0]; } })(); } } else if (Prototype.Browser.Gecko && = /rv:1\.8\.0/.test(navigator.userAgent)) { Element.Methods.setOpacity =3D function(element, value) { element =3D $(element); element.style.opacity =3D (value =3D=3D 1) ? 0.999999 : (value =3D=3D=3D '') ? '' : (value < 0.00001) ? 0 : value; return element; }; } else if (Prototype.Browser.WebKit) { Element.Methods.setOpacity =3D function(element, value) { element =3D $(element); element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? = '' : (value < 0.00001) ? 0 : value; if (value =3D=3D 1) if (element.tagName.toUpperCase() =3D=3D 'IMG' && element.width) { element.width++; element.width-- ; } else try { var n =3D document.createTextNode(' '); element.appendChild(n); element.removeChild(n); } catch (e) { } return element; }; } if ('outerHTML' in document.documentElement) { Element.Methods.replace =3D function(element, content) { element =3D $(element); if (content && content.toElement) content =3D content.toElement(); if (Object.isElement(content)) { element.parentNode.replaceChild(content, element); return element; } content =3D Object.toHTML(content); var parent =3D element.parentNode, tagName =3D = parent.tagName.toUpperCase(); if (Element._insertionTranslations.tags[tagName]) { var nextSibling =3D element.next(), fragments =3D Element._getContentFromAnonymousElement(tagName, = content.stripScripts()); parent.removeChild(element); if (nextSibling) fragments.each(function(node) { parent.insertBefore(node, = nextSibling) }); else fragments.each(function(node) { parent.appendChild(node) }); } else element.outerHTML =3D content.stripScripts(); content.evalScripts.bind(content).defer(); return element; }; } Element._returnOffset =3D function(l, t) { var result =3D [l, t]; result.left =3D l; result.top =3D t; return result; }; Element._getContentFromAnonymousElement =3D function(tagName, html, = force) { var div =3D new Element('div'), t =3D Element._insertionTranslations.tags[tagName]; var workaround =3D false; if (t) workaround =3D true; else if (force) { workaround =3D true; t =3D ['', '', 0]; } if (workaround) { div.innerHTML =3D ' ' + t[0] + html + t[1]; div.removeChild(div.firstChild); for (var i =3D t[2]; i-- ; ) { div =3D div.firstChild; } } else { div.innerHTML =3D html; } return $A(div.childNodes); }; Element._insertionTranslations =3D { before: function(element, node) { element.parentNode.insertBefore(node, element); }, top: function(element, node) { element.insertBefore(node, element.firstChild); }, bottom: function(element, node) { element.appendChild(node); }, after: function(element, node) { element.parentNode.insertBefore(node, element.nextSibling); }, tags: { TABLE: ['<table>', '</table>', 1], TBODY: ['<table><tbody>', '</tbody></table>', 2], TR: ['<table><tbody><tr>', '</tr></tbody></table>', 3], TD: ['<table><tbody><tr><td>', '</td></tr></tbody></table>', 4], SELECT: ['<select>', '</select>', 1] } }; (function() { var tags =3D Element._insertionTranslations.tags; Object.extend(tags, { THEAD: tags.TBODY, TFOOT: tags.TBODY, TH: tags.TD }); })(); Element.Methods.Simulated =3D { hasAttribute: function(element, attribute) { attribute =3D Element._attributeTranslations.has[attribute] || = attribute; var node =3D $(element).getAttributeNode(attribute); return !!(node && node.specified); } }; Element.Methods.ByTag =3D { }; Object.extend(Element, Element.Methods); (function(div) { if (!Prototype.BrowserFeatures.ElementExtensions && div['__proto__']) = { window.HTMLElement =3D { }; window.HTMLElement.prototype =3D div['__proto__']; Prototype.BrowserFeatures.ElementExtensions =3D true; } div =3D null; })(document.createElement('div')); Element.extend =3D (function() { function checkDeficiency(tagName) { if (typeof window.Element !=3D 'undefined') { var proto =3D window.Element.prototype; if (proto) { var id =3D '_' + (Math.random()+'').slice(2), el =3D document.createElement(tagName); proto[id] =3D 'x'; var isBuggy =3D (el[id] !=3D=3D 'x'); delete proto[id]; el =3D null; return isBuggy; } } return false; } function extendElementWith(element, methods) { for (var property in methods) { var value =3D methods[property]; if (Object.isFunction(value) && !(property in element)) element[property] =3D value.methodize(); } } var HTMLOBJECTELEMENT_PROTOTYPE_BUGGY =3D checkDeficiency('object'); if (Prototype.BrowserFeatures.SpecificElementExtensions) { if (HTMLOBJECTELEMENT_PROTOTYPE_BUGGY) { return function(element) { if (element && typeof element._extendedByPrototype =3D=3D = 'undefined') { var t =3D element.tagName; if (t && (/^(?:object|applet|embed)$/i.test(t))) { extendElementWith(element, Element.Methods); extendElementWith(element, Element.Methods.Simulated); extendElementWith(element, = Element.Methods.ByTag[t.toUpperCase()]); } } return element; } } return Prototype.K; } var Methods =3D { }, ByTag =3D Element.Methods.ByTag; var extend =3D Object.extend(function(element) { if (!element || typeof element._extendedByPrototype !=3D 'undefined' = || element.nodeType !=3D 1 || element =3D=3D window) return = element; var methods =3D Object.clone(Methods), tagName =3D element.tagName.toUpperCase(); if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]); extendElementWith(element, methods); element._extendedByPrototype =3D Prototype.emptyFunction; return element; }, { refresh: function() { if (!Prototype.BrowserFeatures.ElementExtensions) { Object.extend(Methods, Element.Methods); Object.extend(Methods, Element.Methods.Simulated); } } }); extend.refresh(); return extend; })(); if (document.documentElement.hasAttribute) { Element.hasAttribute =3D function(element, attribute) { return element.hasAttribute(attribute); }; } else { Element.hasAttribute =3D Element.Methods.Simulated.hasAttribute; } Element.addMethods =3D function(methods) { var F =3D Prototype.BrowserFeatures, T =3D Element.Methods.ByTag; if (!methods) { Object.extend(Form, Form.Methods); Object.extend(Form.Element, Form.Element.Methods); Object.extend(Element.Methods.ByTag, { "FORM": Object.clone(Form.Methods), "INPUT": Object.clone(Form.Element.Methods), "SELECT": Object.clone(Form.Element.Methods), "TEXTAREA": Object.clone(Form.Element.Methods), "BUTTON": Object.clone(Form.Element.Methods) }); } if (arguments.length =3D=3D 2) { var tagName =3D methods; methods =3D arguments[1]; } if (!tagName) Object.extend(Element.Methods, methods || { }); else { if (Object.isArray(tagName)) tagName.each(extend); else extend(tagName); } function extend(tagName) { tagName =3D tagName.toUpperCase(); if (!Element.Methods.ByTag[tagName]) Element.Methods.ByTag[tagName] =3D { }; Object.extend(Element.Methods.ByTag[tagName], methods); } function copy(methods, destination, onlyIfAbsent) { onlyIfAbsent =3D onlyIfAbsent || false; for (var property in methods) { var value =3D methods[property]; if (!Object.isFunction(value)) continue; if (!onlyIfAbsent || !(property in destination)) destination[property] =3D value.methodize(); } } function findDOMClass(tagName) { var klass; var trans =3D { "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph", "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": = "DList", "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": = "Heading", "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote", "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", = "CAPTION": "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", = "THEAD": "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", = "TR": "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET": "FrameSet", "IFRAME": "IFrame" }; if (trans[tagName]) klass =3D 'HTML' + trans[tagName] + 'Element'; if (window[klass]) return window[klass]; klass =3D 'HTML' + tagName + 'Element'; if (window[klass]) return window[klass]; klass =3D 'HTML' + tagName.capitalize() + 'Element'; if (window[klass]) return window[klass]; var element =3D document.createElement(tagName), proto =3D element['__proto__'] || element.constructor.prototype; element =3D null; return proto; } var elementPrototype =3D window.HTMLElement ? HTMLElement.prototype : Element.prototype; if (F.ElementExtensions) { copy(Element.Methods, elementPrototype); copy(Element.Methods.Simulated, elementPrototype, true); } if (F.SpecificElementExtensions) { for (var tag in Element.Methods.ByTag) { var klass =3D findDOMClass(tag); if (Object.isUndefined(klass)) continue; copy(T[tag], klass.prototype); } } Object.extend(Element, Element.Methods); delete Element.ByTag; if (Element.extend.refresh) Element.extend.refresh(); Element.cache =3D { }; }; document.viewport =3D { getDimensions: function() { return { width: this.getWidth(), height: this.getHeight() }; }, getScrollOffsets: function() { return Element._returnOffset( window.pageXOffset || document.documentElement.scrollLeft || = document.body.scrollLeft, window.pageYOffset || document.documentElement.scrollTop || = document.body.scrollTop); } }; (function(viewport) { var B =3D Prototype.Browser, doc =3D document, element, property =3D = {}; function getRootElement() { if (B.WebKit && !doc.evaluate) return document; if (B.Opera && window.parseFloat(window.opera.version()) < 9.5) return document.body; return document.documentElement; } function define(D) { if (!element) element =3D getRootElement(); property[D] =3D 'client' + D; viewport['get' + D] =3D function() { return element[property[D]] }; return viewport['get' + D](); } viewport.getWidth =3D define.curry('Width'); viewport.getHeight =3D define.curry('Height'); })(document.viewport); Element.Storage =3D { UID: 1 }; Element.addMethods({ getStorage: function(element) { if (!(element =3D $(element))) return; var uid; if (element =3D=3D=3D window) { uid =3D 0; } else { if (typeof element._prototypeUID =3D=3D=3D "undefined") element._prototypeUID =3D Element.Storage.UID++; uid =3D element._prototypeUID; } if (!Element.Storage[uid]) Element.Storage[uid] =3D $H(); return Element.Storage[uid]; }, store: function(element, key, value) { if (!(element =3D $(element))) return; if (arguments.length =3D=3D=3D 2) { Element.getStorage(element).update(key); } else { Element.getStorage(element).set(key, value); } return element; }, retrieve: function(element, key, defaultValue) { if (!(element =3D $(element))) return; var hash =3D Element.getStorage(element), value =3D hash.get(key); if (Object.isUndefined(value)) { hash.set(key, defaultValue); value =3D defaultValue; } return value; }, clone: function(element, deep) { if (!(element =3D $(element))) return; var clone =3D element.cloneNode(deep); clone._prototypeUID =3D void 0; if (deep) { var descendants =3D Element.select(clone, '*'), i =3D descendants.length; while (i-- ) { descendants[i]._prototypeUID =3D void 0; } } return Element.extend(clone); }, purge: function(element) { if (!(element =3D $(element))) return; var purgeElement =3D Element._purgeElement; purgeElement(element); var descendants =3D element.getElementsByTagName('*'), i =3D descendants.length; while (i-- ) purgeElement(descendants[i]); return null; } }); (function() { function toDecimal(pctString) { var match =3D pctString.match(/^(\d+)%?$/i); if (!match) return null; return (Number(match[1]) / 100); } function getPixelValue(value, property, context) { var element =3D null; if (Object.isElement(value)) { element =3D value; value =3D element.getStyle(property); } if (value =3D=3D=3D null) { return null; } if ((/^(?:-)?\d+(\.\d+)?(px)?$/i).test(value)) { return window.parseFloat(value); } var isPercentage =3D value.include('%'), isViewport =3D (context = =3D=3D=3D document.viewport); if (/\d/.test(value) && element && element.runtimeStyle && = !(isPercentage && isViewport)) { var style =3D element.style.left, rStyle =3D = element.runtimeStyle.left; element.runtimeStyle.left =3D element.currentStyle.left; element.style.left =3D value || 0; value =3D element.style.pixelLeft; element.style.left =3D style; element.runtimeStyle.left =3D rStyle; return value; } if (element && isPercentage) { context =3D context || element.parentNode; var decimal =3D toDecimal(value); var whole =3D null; var position =3D element.getStyle('position'); var isHorizontal =3D property.include('left') || = property.include('right') || property.include('width'); var isVertical =3D property.include('top') || = property.include('bottom') || property.include('height'); if (context =3D=3D=3D document.viewport) { if (isHorizontal) { whole =3D document.viewport.getWidth(); } else if (isVertical) { whole =3D document.viewport.getHeight(); } } else { if (isHorizontal) { whole =3D $(context).measure('width'); } else if (isVertical) { whole =3D $(context).measure('height'); } } return (whole =3D=3D=3D null) ? 0 : whole * decimal; } return 0; } function toCSSPixels(number) { if (Object.isString(number) && number.endsWith('px')) { return number; } return number + 'px'; } function isDisplayed(element) { var originalElement =3D element; while (element && element.parentNode) { var display =3D element.getStyle('display'); if (display =3D=3D=3D 'none') { return false; } element =3D $(element.parentNode); } return true; } var hasLayout =3D Prototype.K; if ('currentStyle' in document.documentElement) { hasLayout =3D function(element) { if (!element.currentStyle.hasLayout) { element.style.zoom =3D 1; } return element; }; } function cssNameFor(key) { if (key.include('border')) key =3D key + '-width'; return key.camelize(); } Element.Layout =3D Class.create(Hash, { initialize: function($super, element, preCompute) { $super(); this.element =3D $(element); Element.Layout.PROPERTIES.each( function(property) { this._set(property, null); }, this); if (preCompute) { this._preComputing =3D true; this._begin(); Element.Layout.PROPERTIES.each( this._compute, this ); this._end(); this._preComputing =3D false; } }, _set: function(property, value) { return Hash.prototype.set.call(this, property, value); }, set: function(property, value) { throw "Properties of Element.Layout are read-only."; }, get: function($super, property) { var value =3D $super(property); return value =3D=3D=3D null ? this._compute(property) : value; }, _begin: function() { if (this._prepared) return; var element =3D this.element; if (isDisplayed(element)) { this._prepared =3D true; return; } var originalStyles =3D { position: element.style.position || '', width: element.style.width || '', visibility: element.style.visibility || '', display: element.style.display || '' }; element.store('prototype_original_styles', originalStyles); var position =3D element.getStyle('position'), width =3D element.getStyle('width'); if (width =3D=3D=3D "0px" || width =3D=3D=3D null) { element.style.display =3D 'block'; width =3D element.getStyle('width'); } var context =3D (position =3D=3D=3D 'fixed') ? document.viewport : element.parentNode; element.setStyle({ position: 'absolute', visibility: 'hidden', display: 'block' }); var positionedWidth =3D element.getStyle('width'); var newWidth; if (width && (positionedWidth =3D=3D=3D width)) { newWidth =3D getPixelValue(element, 'width', context); } else if (position =3D=3D=3D 'absolute' || position =3D=3D=3D = 'fixed') { newWidth =3D getPixelValue(element, 'width', context); } else { var parent =3D element.parentNode, pLayout =3D = $(parent).getLayout(); newWidth =3D pLayout.get('width') - this.get('margin-left') - this.get('border-left') - this.get('padding-left') - this.get('padding-right') - this.get('border-right') - this.get('margin-right'); } element.setStyle({ width: newWidth + 'px' }); this._prepared =3D true; }, _end: function() { var element =3D this.element; var originalStyles =3D = element.retrieve('prototype_original_styles'); element.store('prototype_original_styles', null); element.setStyle(originalStyles); this._prepared =3D false; }, _compute: function(property) { var COMPUTATIONS =3D Element.Layout.COMPUTATIONS; if (!(property in COMPUTATIONS)) { throw "Property not found."; } return this._set(property, COMPUTATIONS[property].call(this, = this.element)); }, toObject: function() { var args =3D $A(arguments); var keys =3D (args.length =3D=3D=3D 0) ? Element.Layout.PROPERTIES = : args.join(' ').split(' '); var obj =3D {}; keys.each( function(key) { if (!Element.Layout.PROPERTIES.include(key)) return; var value =3D this.get(key); if (value !=3D null) obj[key] =3D value; }, this); return obj; }, toHash: function() { var obj =3D this.toObject.apply(this, arguments); return new Hash(obj); }, toCSS: function() { var args =3D $A(arguments); var keys =3D (args.length =3D=3D=3D 0) ? Element.Layout.PROPERTIES = : args.join(' ').split(' '); var css =3D {}; keys.each( function(key) { if (!Element.Layout.PROPERTIES.include(key)) return; if (Element.Layout.COMPOSITE_PROPERTIES.include(key)) return; var value =3D this.get(key); if (value !=3D null) css[cssNameFor(key)] =3D value + 'px'; }, this); return css; }, inspect: function() { return "#<Element.Layout>"; } }); Object.extend(Element.Layout, { PROPERTIES: $w('height width top left right bottom border-left = border-right border-top border-bottom padding-left padding-right = padding-top padding-bottom margin-top margin-bottom margin-left = margin-right padding-box-width padding-box-height border-box-width = border-box-height margin-box-width margin-box-height'), COMPOSITE_PROPERTIES: $w('padding-box-width padding-box-height = margin-box-width margin-box-height border-box-width border-box-height'), COMPUTATIONS: { 'height': function(element) { if (!this._preComputing) this._begin(); var bHeight =3D this.get('border-box-height'); if (bHeight <=3D 0) { if (!this._preComputing) this._end(); return 0; } var bTop =3D this.get('border-top'), bBottom =3D this.get('border-bottom'); var pTop =3D this.get('padding-top'), pBottom =3D this.get('padding-bottom'); if (!this._preComputing) this._end(); return bHeight - bTop - bBottom - pTop - pBottom; }, 'width': function(element) { if (!this._preComputing) this._begin(); var bWidth =3D this.get('border-box-width'); if (bWidth <=3D 0) { if (!this._preComputing) this._end(); return 0; } var bLeft =3D this.get('border-left'), bRight =3D this.get('border-right'); var pLeft =3D this.get('padding-left'), pRight =3D this.get('padding-right'); if (!this._preComputing) this._end(); return bWidth - bLeft - bRight - pLeft - pRight; }, 'padding-box-height': function(element) { var height =3D this.get('height'), pTop =3D this.get('padding-top'), pBottom =3D this.get('padding-bottom'); return height + pTop + pBottom; }, 'padding-box-width': function(element) { var width =3D this.get('width'), pLeft =3D this.get('padding-left'), pRight =3D this.get('padding-right'); return width + pLeft + pRight; }, 'border-box-height': function(element) { if (!this._preComputing) this._begin(); var height =3D element.offsetHeight; if (!this._preComputing) this._end(); return height; }, 'border-box-width': function(element) { if (!this._preComputing) this._begin(); var width =3D element.offsetWidth; if (!this._preComputing) this._end(); return width; }, 'margin-box-height': function(element) { var bHeight =3D this.get('border-box-height'), mTop =3D this.get('margin-top'), mBottom =3D this.get('margin-bottom'); if (bHeight <=3D 0) return 0; return bHeight + mTop + mBottom; }, 'margin-box-width': function(element) { var bWidth =3D this.get('border-box-width'), mLeft =3D this.get('margin-left'), mRight =3D this.get('margin-right'); if (bWidth <=3D 0) return 0; return bWidth + mLeft + mRight; }, 'top': function(element) { var offset =3D element.positionedOffset(); return offset.top; }, 'bottom': function(element) { var offset =3D element.positionedOffset(), parent =3D element.getOffsetParent(), pHeight =3D parent.measure('height'); var mHeight =3D this.get('border-box-height'); return pHeight - mHeight - offset.top; }, 'left': function(element) { var offset =3D element.positionedOffset(); return offset.left; }, 'right': function(element) { var offset =3D element.positionedOffset(), parent =3D element.getOffsetParent(), pWidth =3D parent.measure('width'); var mWidth =3D this.get('border-box-width'); return pWidth - mWidth - offset.left; }, 'padding-top': function(element) { return getPixelValue(element, 'paddingTop'); }, 'padding-bottom': function(element) { return getPixelValue(element, 'paddingBottom'); }, 'padding-left': function(element) { return getPixelValue(element, 'paddingLeft'); }, 'padding-right': function(element) { return getPixelValue(element, 'paddingRight'); }, 'border-top': function(element) { return getPixelValue(element, 'borderTopWidth'); }, 'border-bottom': function(element) { return getPixelValue(element, 'borderBottomWidth'); }, 'border-left': function(element) { return getPixelValue(element, 'borderLeftWidth'); }, 'border-right': function(element) { return getPixelValue(element, 'borderRightWidth'); }, 'margin-top': function(element) { return getPixelValue(element, 'marginTop'); }, 'margin-bottom': function(element) { return getPixelValue(element, 'marginBottom'); }, 'margin-left': function(element) { return getPixelValue(element, 'marginLeft'); }, 'margin-right': function(element) { return getPixelValue(element, 'marginRight'); } } }); if ('getBoundingClientRect' in document.documentElement) { Object.extend(Element.Layout.COMPUTATIONS, { 'right': function(element) { var parent =3D hasLayout(element.getOffsetParent()); var rect =3D element.getBoundingClientRect(), pRect =3D parent.getBoundingClientRect(); return (pRect.right - rect.right).round(); }, 'bottom': function(element) { var parent =3D hasLayout(element.getOffsetParent()); var rect =3D element.getBoundingClientRect(), pRect =3D parent.getBoundingClientRect(); return (pRect.bottom - rect.bottom).round(); } }); } Element.Offset =3D Class.create({ initialize: function(left, top) { this.left =3D left.round(); this.top =3D top.round(); this[0] =3D this.left; this[1] =3D this.top; }, relativeTo: function(offset) { return new Element.Offset( this.left - offset.left, this.top - offset.top ); }, inspect: function() { return "#<Element.Offset left: #{left} top: = #{top}>".interpolate(this); }, toString: function() { return "[#{left}, #{top}]".interpolate(this); }, toArray: function() { return [this.left, this.top]; } }); function getLayout(element, preCompute) { return new Element.Layout(element, preCompute); } function measure(element, property) { return $(element).getLayout().get(property); } function getDimensions(element) { element =3D $(element); var display =3D Element.getStyle(element, 'display'); if (display && display !=3D=3D 'none') { return { width: element.offsetWidth, height: element.offsetHeight = }; } var style =3D element.style; var originalStyles =3D { visibility: style.visibility, position: style.position, display: style.display }; var newStyles =3D { visibility: 'hidden', display: 'block' }; if (originalStyles.position !=3D=3D 'fixed') newStyles.position =3D 'absolute'; Element.setStyle(element, newStyles); var dimensions =3D { width: element.offsetWidth, height: element.offsetHeight }; Element.setStyle(element, originalStyles); return dimensions; } function getOffsetParent(element) { element =3D $(element); if (isDocument(element) || isDetached(element) || isBody(element) || = isHtml(element)) return $(document.body); var isInline =3D (Element.getStyle(element, 'display') =3D=3D=3D = 'inline'); if (!isInline && element.offsetParent) return = $(element.offsetParent); while ((element =3D element.parentNode) && element !=3D=3D = document.body && element !=3D=3D document) { if (Element.getStyle(element, 'position') !=3D=3D 'static') { return isHtml(element) ? $(document.body) : $(element); } } return $(document.body); } function cumulativeOffset(element) { element =3D $(element); var valueT =3D 0, valueL =3D 0; if (element.parentNode) { do { valueT +=3D element.offsetTop || 0; valueL +=3D element.offsetLeft || 0; element =3D element.offsetParent; } while (element); } return new Element.Offset(valueL, valueT); } function positionedOffset(element) { element =3D $(element); var layout =3D element.getLayout(); var valueT =3D 0, valueL =3D 0; do { valueT +=3D element.offsetTop || 0; valueL +=3D element.offsetLeft || 0; element =3D element.offsetParent; if (element) { if (isBody(element)) break; var p =3D Element.getStyle(element, 'position'); if (p !=3D=3D 'static') break; } } while (element); valueL -=3D layout.get('margin-top'); valueT -=3D layout.get('margin-left'); return new Element.Offset(valueL, valueT); } function cumulativeScrollOffset(element) { var valueT =3D 0, valueL =3D 0; do { valueT +=3D element.scrollTop || 0; valueL +=3D element.scrollLeft || 0; element =3D element.parentNode; } while (element); return new Element.Offset(valueL, valueT); } function viewportOffset(forElement) { element =3D $(element); var valueT =3D 0, valueL =3D 0, docBody =3D document.body; var element =3D forElement; do { valueT +=3D element.offsetTop || 0; valueL +=3D element.offsetLeft || 0; if (element.offsetParent =3D=3D docBody && Element.getStyle(element, 'position') =3D=3D 'absolute') break; } while (element =3D element.offsetParent); element =3D forElement; do { if (element !=3D docBody) { valueT -=3D element.scrollTop || 0; valueL -=3D element.scrollLeft || 0; } } while (element =3D element.parentNode); return new Element.Offset(valueL, valueT); } function absolutize(element) { element =3D $(element); if (Element.getStyle(element, 'position') =3D=3D=3D 'absolute') { return element; } var offsetParent =3D getOffsetParent(element); var eOffset =3D element.viewportOffset(), pOffset =3D offsetParent.viewportOffset(); var offset =3D eOffset.relativeTo(pOffset); var layout =3D element.getLayout(); element.store('prototype_absolutize_original_styles', { left: element.getStyle('left'), top: element.getStyle('top'), width: element.getStyle('width'), height: element.getStyle('height') }); element.setStyle({ position: 'absolute', top: offset.top + 'px', left: offset.left + 'px', width: layout.get('width') + 'px', height: layout.get('height') + 'px' }); return element; } function relativize(element) { element =3D $(element); if (Element.getStyle(element, 'position') =3D=3D=3D 'relative') { return element; } var originalStyles =3D element.retrieve('prototype_absolutize_original_styles'); if (originalStyles) element.setStyle(originalStyles); return element; } if (Prototype.Browser.IE) { getOffsetParent =3D getOffsetParent.wrap( function(proceed, element) { element =3D $(element); if (isDocument(element) || isDetached(element) || = isBody(element) || isHtml(element)) return $(document.body); var position =3D element.getStyle('position'); if (position !=3D=3D 'static') return proceed(element); element.setStyle({ position: 'relative' }); var value =3D proceed(element); element.setStyle({ position: position }); return value; } ); positionedOffset =3D positionedOffset.wrap(function(proceed, = element) { element =3D $(element); if (!element.parentNode) return new Element.Offset(0, 0); var position =3D element.getStyle('position'); if (position !=3D=3D 'static') return proceed(element); var offsetParent =3D element.getOffsetParent(); if (offsetParent && offsetParent.getStyle('position') =3D=3D=3D = 'fixed') hasLayout(offsetParent); element.setStyle({ position: 'relative' }); var value =3D proceed(element); element.setStyle({ position: position }); return value; }); } else if (Prototype.Browser.Webkit) { cumulativeOffset =3D function(element) { element =3D $(element); var valueT =3D 0, valueL =3D 0; do { valueT +=3D element.offsetTop || 0; valueL +=3D element.offsetLeft || 0; if (element.offsetParent =3D=3D document.body) if (Element.getStyle(element, 'position') =3D=3D 'absolute') = break; element =3D element.offsetParent; } while (element); return new Element.Offset(valueL, valueT); }; } Element.addMethods({ getLayout: getLayout, measure: measure, getDimensions: getDimensions, getOffsetParent: getOffsetParent, cumulativeOffset: cumulativeOffset, positionedOffset: positionedOffset, cumulativeScrollOffset: cumulativeScrollOffset, viewportOffset: viewportOffset, absolutize: absolutize, relativize: relativize }); function isBody(element) { return element.nodeName.toUpperCase() =3D=3D=3D 'BODY'; } function isHtml(element) { return element.nodeName.toUpperCase() =3D=3D=3D 'HTML'; } function isDocument(element) { return element.nodeType =3D=3D=3D Node.DOCUMENT_NODE; } function isDetached(element) { return element !=3D=3D document.body && !Element.descendantOf(element, document.body); } if ('getBoundingClientRect' in document.documentElement) { Element.addMethods({ viewportOffset: function(element) { element =3D $(element); if (isDetached(element)) return new Element.Offset(0, 0); var rect =3D element.getBoundingClientRect(), docEl =3D document.documentElement; return new Element.Offset(rect.left - docEl.clientLeft, rect.top - docEl.clientTop); } }); } })(); window.$$ =3D function() { var expression =3D $A(arguments).join(', '); return Prototype.Selector.select(expression, document); }; Prototype.Selector =3D (function() { function select() { throw new Error('Method "Prototype.Selector.select" must be = defined.'); } function match() { throw new Error('Method "Prototype.Selector.match" must be = defined.'); } function find(elements, expression, index) { index =3D index || 0; var match =3D Prototype.Selector.match, length =3D elements.length, = matchIndex =3D 0, i; for (i =3D 0; i < length; i++) { if (match(elements[i], expression) && index =3D=3D matchIndex++) { return Element.extend(elements[i]); } } } function extendElements(elements) { for (var i =3D 0, length =3D elements.length; i < length; i++) { Element.extend(elements[i]); } return elements; } var K =3D Prototype.K; return { select: select, match: match, find: find, extendElements: (Element.extend =3D=3D=3D K) ? K : extendElements, extendElement: Element.extend }; })(); Prototype._original_property =3D window.Sizzle; /*! * Sizzle CSS Selector Engine - v1.0 * Copyright 2009, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ */ (function(){ var chunker =3D = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+= )+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, done =3D 0, toString =3D Object.prototype.toString, hasDuplicate =3D false, baseHasDuplicate =3D true; [0, 0].sort(function(){ baseHasDuplicate =3D false; return 0; }); var Sizzle =3D function(selector, context, results, seed) { results =3D results || []; var origContext =3D context =3D context || document; if ( context.nodeType !=3D=3D 1 && context.nodeType !=3D=3D 9 ) { return []; } if ( !selector || typeof selector !=3D=3D "string" ) { return results; } var parts =3D [], m, set, checkSet, check, mode, extra, prune =3D true, = contextXML =3D isXML(context), soFar =3D selector; while ( (chunker.exec(""), m =3D chunker.exec(soFar)) !=3D=3D null ) { soFar =3D m[3]; parts.push( m[1] ); if ( m[2] ) { extra =3D m[3]; break; } } if ( parts.length > 1 && origPOS.exec( selector ) ) { if ( parts.length =3D=3D=3D 2 && Expr.relative[ parts[0] ] ) { set =3D posProcess( parts[0] + parts[1], context ); } else { set =3D Expr.relative[ parts[0] ] ? [ context ] : Sizzle( parts.shift(), context ); while ( parts.length ) { selector =3D parts.shift(); if ( Expr.relative[ selector ] ) selector +=3D parts.shift(); set =3D posProcess( selector, set ); } } } else { if ( !seed && parts.length > 1 && context.nodeType =3D=3D=3D 9 && = !contextXML && Expr.match.ID.test(parts[0]) && = !Expr.match.ID.test(parts[parts.length - 1]) ) { var ret =3D Sizzle.find( parts.shift(), context, contextXML ); context =3D ret.expr ? Sizzle.filter( ret.expr, ret.set )[0] : = ret.set[0]; } if ( context ) { var ret =3D seed ? { expr: parts.pop(), set: makeArray(seed) } : Sizzle.find( parts.pop(), parts.length =3D=3D=3D 1 && (parts[0] = =3D=3D=3D "~" || parts[0] =3D=3D=3D "+") && context.parentNode ? = context.parentNode : context, contextXML ); set =3D ret.expr ? Sizzle.filter( ret.expr, ret.set ) : ret.set; if ( parts.length > 0 ) { checkSet =3D makeArray(set); } else { prune =3D false; } while ( parts.length ) { var cur =3D parts.pop(), pop =3D cur; if ( !Expr.relative[ cur ] ) { cur =3D ""; } else { pop =3D parts.pop(); } if ( pop =3D=3D null ) { pop =3D context; } Expr.relative[ cur ]( checkSet, pop, contextXML ); } } else { checkSet =3D parts =3D []; } } if ( !checkSet ) { checkSet =3D set; } if ( !checkSet ) { throw "Syntax error, unrecognized expression: " + (cur || selector); } if ( toString.call(checkSet) =3D=3D=3D "[object Array]" ) { if ( !prune ) { results.push.apply( results, checkSet ); } else if ( context && context.nodeType =3D=3D=3D 1 ) { for ( var i =3D 0; checkSet[i] !=3D null; i++ ) { if ( checkSet[i] && (checkSet[i] =3D=3D=3D true || = checkSet[i].nodeType =3D=3D=3D 1 && contains(context, checkSet[i])) ) { results.push( set[i] ); } } } else { for ( var i =3D 0; checkSet[i] !=3D null; i++ ) { if ( checkSet[i] && checkSet[i].nodeType =3D=3D=3D 1 ) { results.push( set[i] ); } } } } else { makeArray( checkSet, results ); } if ( extra ) { Sizzle( extra, origContext, results, seed ); Sizzle.uniqueSort( results ); } return results; }; Sizzle.uniqueSort =3D function(results){ if ( sortOrder ) { hasDuplicate =3D baseHasDuplicate; results.sort(sortOrder); if ( hasDuplicate ) { for ( var i =3D 1; i < results.length; i++ ) { if ( results[i] =3D=3D=3D results[i-1] ) { results.splice(i-- , 1); } } } } return results; }; Sizzle.matches =3D function(expr, set){ return Sizzle(expr, null, null, set); }; Sizzle.find =3D function(expr, context, isXML){ var set, match; if ( !expr ) { return []; } for ( var i =3D 0, l =3D Expr.order.length; i < l; i++ ) { var type =3D Expr.order[i], match; if ( (match =3D Expr.leftMatch[ type ].exec( expr )) ) { var left =3D match[1]; match.splice(1,1); if ( left.substr( left.length - 1 ) !=3D=3D "\\" ) { match[1] =3D (match[1] || "").replace(/\\/g, ""); set =3D Expr.find[ type ]( match, context, isXML ); if ( set !=3D null ) { expr =3D expr.replace( Expr.match[ type ], "" ); break; } } } } if ( !set ) { set =3D context.getElementsByTagName("*"); } return {set: set, expr: expr}; }; Sizzle.filter =3D function(expr, set, inplace, not){ var old =3D expr, result =3D [], curLoop =3D set, match, anyFound, isXMLFilter =3D set && set[0] && isXML(set[0]); while ( expr && set.length ) { for ( var type in Expr.filter ) { if ( (match =3D Expr.match[ type ].exec( expr )) !=3D null ) { var filter =3D Expr.filter[ type ], found, item; anyFound =3D false; if ( curLoop =3D=3D result ) { result =3D []; } if ( Expr.preFilter[ type ] ) { match =3D Expr.preFilter[ type ]( match, curLoop, inplace, result, = not, isXMLFilter ); if ( !match ) { anyFound =3D found =3D true; } else if ( match =3D=3D=3D true ) { continue; } } if ( match ) { for ( var i =3D 0; (item =3D curLoop[i]) !=3D null; i++ ) { if ( item ) { found =3D filter( item, match, i, curLoop ); var pass =3D not ^ !!found; if ( inplace && found !=3D null ) { if ( pass ) { anyFound =3D true; } else { curLoop[i] =3D false; } } else if ( pass ) { result.push( item ); anyFound =3D true; } } } } if ( found !=3D=3D undefined ) { if ( !inplace ) { curLoop =3D result; } expr =3D expr.replace( Expr.match[ type ], "" ); if ( !anyFound ) { return []; } break; } } } if ( expr =3D=3D old ) { if ( anyFound =3D=3D null ) { throw "Syntax error, unrecognized expression: " + expr; } else { break; } } old =3D expr; } return curLoop; }; var Expr =3D Sizzle.selectors =3D { order: [ "ID", "NAME", "TAG" ], match: { ID: /#((?:[\w\u00c0-\uFFFF-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/, NAME: /\[name=3D['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/, ATTR: = /\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=3D)\s*(['"]*)(.*?)\3|)\s*\]= /, TAG: /^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=3D[^-]|$)/, PSEUDO: = /:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2= \))?/ }, leftMatch: {}, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function(elem){ return elem.getAttribute("href"); } }, relative: { "+": function(checkSet, part, isXML){ var isPartStr =3D typeof part =3D=3D=3D "string", isTag =3D isPartStr && !/\W/.test(part), isPartStrNotTag =3D isPartStr && !isTag; if ( isTag && !isXML ) { part =3D part.toUpperCase(); } for ( var i =3D 0, l =3D checkSet.length, elem; i < l; i++ ) { if ( (elem =3D checkSet[i]) ) { while ( (elem =3D elem.previousSibling) && elem.nodeType !=3D=3D 1 = ) {} checkSet[i] =3D isPartStrNotTag || elem && elem.nodeName =3D=3D=3D = part ? elem || false : elem =3D=3D=3D part; } } if ( isPartStrNotTag ) { Sizzle.filter( part, checkSet, true ); } }, ">": function(checkSet, part, isXML){ var isPartStr =3D typeof part =3D=3D=3D "string"; if ( isPartStr && !/\W/.test(part) ) { part =3D isXML ? part : part.toUpperCase(); for ( var i =3D 0, l =3D checkSet.length; i < l; i++ ) { var elem =3D checkSet[i]; if ( elem ) { var parent =3D elem.parentNode; checkSet[i] =3D parent.nodeName =3D=3D=3D part ? parent : false; } } } else { for ( var i =3D 0, l =3D checkSet.length; i < l; i++ ) { var elem =3D checkSet[i]; if ( elem ) { checkSet[i] =3D isPartStr ? elem.parentNode : elem.parentNode =3D=3D=3D part; } } if ( isPartStr ) { Sizzle.filter( part, checkSet, true ); } } }, "": function(checkSet, part, isXML){ var doneName =3D done++, checkFn =3D dirCheck; if ( !/\W/.test(part) ) { var nodeCheck =3D part =3D isXML ? part : part.toUpperCase(); checkFn =3D dirNodeCheck; } checkFn("parentNode", part, doneName, checkSet, nodeCheck, isXML); }, "~": function(checkSet, part, isXML){ var doneName =3D done++, checkFn =3D dirCheck; if ( typeof part =3D=3D=3D "string" && !/\W/.test(part) ) { var nodeCheck =3D part =3D isXML ? part : part.toUpperCase(); checkFn =3D dirNodeCheck; } checkFn("previousSibling", part, doneName, checkSet, nodeCheck, = isXML); } }, find: { ID: function(match, context, isXML){ if ( typeof context.getElementById !=3D=3D "undefined" && !isXML ) { var m =3D context.getElementById(match[1]); return m ? [m] : []; } }, NAME: function(match, context, isXML){ if ( typeof context.getElementsByName !=3D=3D "undefined" ) { var ret =3D [], results =3D context.getElementsByName(match[1]); for ( var i =3D 0, l =3D results.length; i < l; i++ ) { if ( results[i].getAttribute("name") =3D=3D=3D match[1] ) { ret.push( results[i] ); } } return ret.length =3D=3D=3D 0 ? null : ret; } }, TAG: function(match, context){ return context.getElementsByTagName(match[1]); } }, preFilter: { CLASS: function(match, curLoop, inplace, result, not, isXML){ match =3D " " + match[1].replace(/\\/g, "") + " "; if ( isXML ) { return match; } for ( var i =3D 0, elem; (elem =3D curLoop[i]) !=3D null; i++ ) { if ( elem ) { if ( not ^ (elem.className && (" " + elem.className + " = ").indexOf(match) >=3D 0) ) { if ( !inplace ) result.push( elem ); } else if ( inplace ) { curLoop[i] =3D false; } } } return false; }, ID: function(match){ return match[1].replace(/\\/g, ""); }, TAG: function(match, curLoop){ for ( var i =3D 0; curLoop[i] =3D=3D=3D false; i++ ){} return curLoop[i] && isXML(curLoop[i]) ? match[1] : = match[1].toUpperCase(); }, CHILD: function(match){ if ( match[1] =3D=3D "nth" ) { var test =3D /(-?)(\d*)n((?:\+|-)?\d*)/.exec( match[2] =3D=3D "even" && "2n" || match[2] =3D=3D "odd" && "2n+1" = || !/\D/.test( match[2] ) && "0n+" + match[2] || match[2]); match[2] =3D (test[1] + (test[2] || 1)) - 0; match[3] =3D test[3] - 0; } match[0] =3D done++; return match; }, ATTR: function(match, curLoop, inplace, result, not, isXML){ var name =3D match[1].replace(/\\/g, ""); if ( !isXML && Expr.attrMap[name] ) { match[1] =3D Expr.attrMap[name]; } if ( match[2] =3D=3D=3D "~=3D" ) { match[4] =3D " " + match[4] + " "; } return match; }, PSEUDO: function(match, curLoop, inplace, result, not){ if ( match[1] =3D=3D=3D "not" ) { if ( ( chunker.exec(match[3]) || "" ).length > 1 || = /^\w/.test(match[3]) ) { match[3] =3D Sizzle(match[3], null, null, curLoop); } else { var ret =3D Sizzle.filter(match[3], curLoop, inplace, true ^ not); if ( !inplace ) { result.push.apply( result, ret ); } return false; } } else if ( Expr.match.POS.test( match[0] ) || Expr.match.CHILD.test( = match[0] ) ) { return true; } return match; }, POS: function(match){ match.unshift( true ); return match; } }, filters: { enabled: function(elem){ return elem.disabled =3D=3D=3D false && elem.type !=3D=3D "hidden"; }, disabled: function(elem){ return elem.disabled =3D=3D=3D true; }, checked: function(elem){ return elem.checked =3D=3D=3D true; }, selected: function(elem){ elem.parentNode.selectedIndex; return elem.selected =3D=3D=3D true; }, parent: function(elem){ return !!elem.firstChild; }, empty: function(elem){ return !elem.firstChild; }, has: function(elem, i, match){ return !!Sizzle( match[3], elem ).length; }, header: function(elem){ return /h\d/i.test( elem.nodeName ); }, text: function(elem){ return "text" =3D=3D=3D elem.type; }, radio: function(elem){ return "radio" =3D=3D=3D elem.type; }, checkbox: function(elem){ return "checkbox" =3D=3D=3D elem.type; }, file: function(elem){ return "file" =3D=3D=3D elem.type; }, password: function(elem){ return "password" =3D=3D=3D elem.type; }, submit: function(elem){ return "submit" =3D=3D=3D elem.type; }, image: function(elem){ return "image" =3D=3D=3D elem.type; }, reset: function(elem){ return "reset" =3D=3D=3D elem.type; }, button: function(elem){ return "button" =3D=3D=3D elem.type || elem.nodeName.toUpperCase() = =3D=3D=3D "BUTTON"; }, input: function(elem){ return /input|select|textarea|button/i.test(elem.nodeName); } }, setFilters: { first: function(elem, i){ return i =3D=3D=3D 0; }, last: function(elem, i, match, array){ return i =3D=3D=3D array.length - 1; }, even: function(elem, i){ return i % 2 =3D=3D=3D 0; }, odd: function(elem, i){ return i % 2 =3D=3D=3D 1; }, lt: function(elem, i, match){ return i < match[3] - 0; }, gt: function(elem, i, match){ return i > match[3] - 0; }, nth: function(elem, i, match){ return match[3] - 0 =3D=3D i; }, eq: function(elem, i, match){ return match[3] - 0 =3D=3D i; } }, filter: { PSEUDO: function(elem, match, i, array){ var name =3D match[1], filter =3D Expr.filters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } else if ( name =3D=3D=3D "contains" ) { return (elem.textContent || elem.innerText || "").indexOf(match[3]) = =3D 0;} else if ( name =3D=3D=3D "not" ) { var not =3D match[3]; for ( var i =3D 0, l =3D not.length; i < l; i++ ) { if ( not[i] =3D=3D=3D elem ) { return false; } } return true; } }, CHILD: function(elem, match){ var type =3D match[1], node =3D elem; switch (type) { case 'only': case 'first': while ( (node =3D node.previousSibling) ) { if ( node.nodeType =3D=3D=3D 1 ) return false; } if ( type =3D=3D 'first') return true; node =3D elem; case 'last': while ( (node =3D node.nextSibling) ) { if ( node.nodeType =3D=3D=3D 1 ) return false; } return true; case 'nth': var first =3D match[2], last =3D match[3]; if ( first =3D=3D 1 && last =3D=3D 0 ) { return true; } var doneName =3D match[0], parent =3D elem.parentNode; if ( parent && (parent.sizcache !=3D=3D doneName || = !elem.nodeIndex) ) { var count =3D 0; for ( node =3D parent.firstChild; node; node =3D node.nextSibling = ) { if ( node.nodeType =3D=3D=3D 1 ) { node.nodeIndex =3D ++count; } } parent.sizcache =3D doneName; } var diff =3D elem.nodeIndex - last; if ( first =3D=3D 0 ) { return diff =3D=3D 0; } else { return ( diff % first =3D=3D 0 && diff / first >=3D 0 ); } } }, ID: function(elem, match){ return elem.nodeType =3D=3D=3D 1 && elem.getAttribute("id") =3D=3D=3D = match; }, TAG: function(elem, match){ return (match =3D=3D=3D "*" && elem.nodeType =3D=3D=3D 1) || = elem.nodeName =3D=3D=3D match; }, CLASS: function(elem, match){ return (" " + (elem.className || elem.getAttribute("class")) + " ") .indexOf( match ) > -1; }, ATTR: function(elem, match){ var name =3D match[1], result =3D Expr.attrHandle[ name ] ? Expr.attrHandle[ name ]( elem ) : elem[ name ] !=3D null ? elem[ name ] : elem.getAttribute( name ), value =3D result + "", type =3D match[2], check =3D match[4]; return result =3D=3D null ? type =3D=3D=3D "!=3D" : type =3D=3D=3D "=3D" ? value =3D=3D=3D check : type =3D=3D=3D "*=3D" ? value.indexOf(check) >=3D 0 : type =3D=3D=3D "~=3D" ? (" " + value + " ").indexOf(check) >=3D 0 : !check ? value && result !=3D=3D false : type =3D=3D=3D "!=3D" ? value !=3D check : type =3D=3D=3D "^=3D" ? value.indexOf(check) =3D=3D=3D 0 : type =3D=3D=3D "$=3D" ? value.substr(value.length - check.length) =3D=3D=3D check : type =3D=3D=3D "|=3D" ? value =3D=3D=3D check || value.substr(0, check.length + 1) =3D=3D=3D = check + "-" : false; }, POS: function(elem, match, i, array){ var name =3D match[2], filter =3D Expr.setFilters[ name ]; if ( filter ) { return filter( elem, i, match, array ); } } } }; var origPOS =3D Expr.match.POS; for ( var type in Expr.match ) { Expr.match[ type ] =3D new RegExp( Expr.match[ type ].source + = /(?![^\[]*\])(?![^\(]*\))/.source ); Expr.leftMatch[ type ] =3D new RegExp( /(^(?:.|\r|\n)*?)/.source + = Expr.match[ type ].source ); } var makeArray =3D function(array, results) { array =3D Array.prototype.slice.call( array, 0 ); if ( results ) { results.push.apply( results, array ); return results; } return array; }; try { Array.prototype.slice.call( document.documentElement.childNodes, 0 ); } catch(e){ makeArray =3D function(array, results) { var ret =3D results || []; if ( toString.call(array) =3D=3D=3D "[object Array]" ) { Array.prototype.push.apply( ret, array ); } else { if ( typeof array.length =3D=3D=3D "number" ) { for ( var i =3D 0, l =3D array.length; i < l; i++ ) { ret.push( array[i] ); } } else { for ( var i =3D 0; array[i]; i++ ) { ret.push( array[i] ); } } } return ret; }; } var sortOrder; if ( document.documentElement.compareDocumentPosition ) { sortOrder =3D function( a, b ) { if ( !a.compareDocumentPosition || !b.compareDocumentPosition ) { if ( a =3D=3D b ) { hasDuplicate =3D true; } return 0; } var ret =3D a.compareDocumentPosition(b) & 4 ? -1 : a =3D=3D=3D b ? 0 = : 1; if ( ret =3D=3D=3D 0 ) { hasDuplicate =3D true; } return ret; }; } else if ( "sourceIndex" in document.documentElement ) { sortOrder =3D function( a, b ) { if ( !a.sourceIndex || !b.sourceIndex ) { if ( a =3D=3D b ) { hasDuplicate =3D true; } return 0; } var ret =3D a.sourceIndex - b.sourceIndex; if ( ret =3D=3D=3D 0 ) { hasDuplicate =3D true; } return ret; }; } else if ( document.createRange ) { sortOrder =3D function( a, b ) { if ( !a.ownerDocument || !b.ownerDocument ) { if ( a =3D=3D b ) { hasDuplicate =3D true; } return 0; } var aRange =3D a.ownerDocument.createRange(), bRange =3D = b.ownerDocument.createRange(); aRange.setStart(a, 0); aRange.setEnd(a, 0); bRange.setStart(b, 0); bRange.setEnd(b, 0); var ret =3D aRange.compareBoundaryPoints(Range.START_TO_END, bRange); if ( ret =3D=3D=3D 0 ) { hasDuplicate =3D true; } return ret; }; } (function(){ var form =3D document.createElement("div"), id =3D "script" + (new Date).getTime(); form.innerHTML =3D "<a name=3D'" + id + "'/>"; var root =3D document.documentElement; root.insertBefore( form, root.firstChild ); if ( !!document.getElementById( id ) ) { Expr.find.ID =3D function(match, context, isXML){ if ( typeof context.getElementById !=3D=3D "undefined" && !isXML ) { var m =3D context.getElementById(match[1]); return m ? m.id =3D=3D=3D match[1] || typeof m.getAttributeNode = !=3D=3D "undefined" && m.getAttributeNode("id").nodeValue =3D=3D=3D = match[1] ? [m] : undefined : []; } }; Expr.filter.ID =3D function(elem, match){ var node =3D typeof elem.getAttributeNode !=3D=3D "undefined" && = elem.getAttributeNode("id"); return elem.nodeType =3D=3D=3D 1 && node && node.nodeValue =3D=3D=3D = match; }; } root.removeChild( form ); root =3D form =3D null; // release memory in IE })(); (function(){ var div =3D document.createElement("div"); div.appendChild( document.createComment("") ); if ( div.getElementsByTagName("*").length > 0 ) { Expr.find.TAG =3D function(match, context){ var results =3D context.getElementsByTagName(match[1]); if ( match[1] =3D=3D=3D "*" ) { var tmp =3D []; for ( var i =3D 0; results[i]; i++ ) { if ( results[i].nodeType =3D=3D=3D 1 ) { tmp.push( results[i] ); } } results =3D tmp; } return results; }; } div.innerHTML =3D "<a href=3D'#'></a>"; if ( div.firstChild && typeof div.firstChild.getAttribute !=3D=3D = "undefined" && div.firstChild.getAttribute("href") !=3D=3D "#" ) { Expr.attrHandle.href =3D function(elem){ return elem.getAttribute("href", 2); }; } div =3D null; // release memory in IE })(); if ( document.querySelectorAll ) (function(){ var oldSizzle =3D Sizzle, div =3D document.createElement("div"); div.innerHTML =3D "<p class=3D'TEST'></p>"; if ( div.querySelectorAll && div.querySelectorAll(".TEST").length = =3D=3D=3D 0 ) { return; } Sizzle =3D function(query, context, extra, seed){ context =3D context || document; if ( !seed && context.nodeType =3D=3D=3D 9 && !isXML(context) ) { try { return makeArray( context.querySelectorAll(query), extra ); } catch(e){} } return oldSizzle(query, context, extra, seed); }; for ( var prop in oldSizzle ) { Sizzle[ prop ] =3D oldSizzle[ prop ]; } div =3D null; // release memory in IE })(); if ( document.getElementsByClassName && = document.documentElement.getElementsByClassName ) (function(){ var div =3D document.createElement("div"); div.innerHTML =3D "<div class=3D'test e'></div><div = class=3D'test'></div>"; if ( div.getElementsByClassName("e").length =3D=3D=3D 0 ) return; div.lastChild.className =3D "e"; if ( div.getElementsByClassName("e").length =3D=3D=3D 1 ) return; Expr.order.splice(1, 0, "CLASS"); Expr.find.CLASS =3D function(match, context, isXML) { if ( typeof context.getElementsByClassName !=3D=3D "undefined" && = !isXML ) { return context.getElementsByClassName(match[1]); } }; div =3D null; // release memory in IE })(); function dirNodeCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) = { var sibDir =3D dir =3D=3D "previousSibling" && !isXML; for ( var i =3D 0, l =3D checkSet.length; i < l; i++ ) { var elem =3D checkSet[i]; if ( elem ) { if ( sibDir && elem.nodeType =3D=3D=3D 1 ){ elem.sizcache =3D doneName; elem.sizset =3D i; } elem =3D elem[dir]; var match =3D false; while ( elem ) { if ( elem.sizcache =3D=3D=3D doneName ) { match =3D checkSet[elem.sizset]; break; } if ( elem.nodeType =3D=3D=3D 1 && !isXML ){ elem.sizcache =3D doneName; elem.sizset =3D i; } if ( elem.nodeName =3D=3D=3D cur ) { match =3D elem; break; } elem =3D elem[dir]; } checkSet[i] =3D match; } } } function dirCheck( dir, cur, doneName, checkSet, nodeCheck, isXML ) { var sibDir =3D dir =3D=3D "previousSibling" && !isXML; for ( var i =3D 0, l =3D checkSet.length; i < l; i++ ) { var elem =3D checkSet[i]; if ( elem ) { if ( sibDir && elem.nodeType =3D=3D=3D 1 ) { elem.sizcache =3D doneName; elem.sizset =3D i; } elem =3D elem[dir]; var match =3D false; while ( elem ) { if ( elem.sizcache =3D=3D=3D doneName ) { match =3D checkSet[elem.sizset]; break; } if ( elem.nodeType =3D=3D=3D 1 ) { if ( !isXML ) { elem.sizcache =3D doneName; elem.sizset =3D i; } if ( typeof cur !=3D=3D "string" ) { if ( elem =3D=3D=3D cur ) { match =3D true; break; } } else if ( Sizzle.filter( cur, [elem] ).length > 0 ) { match =3D elem; break; } } elem =3D elem[dir]; } checkSet[i] =3D match; } } } var contains =3D document.compareDocumentPosition ? function(a, b){ return a.compareDocumentPosition(b) & 16; } : function(a, b){ return a !=3D=3D b && (a.contains ? a.contains(b) : true); }; var isXML =3D function(elem){ return elem.nodeType =3D=3D=3D 9 && elem.documentElement.nodeName = !=3D=3D "HTML" || !!elem.ownerDocument && elem.ownerDocument.documentElement.nodeName = !=3D=3D "HTML"; }; var posProcess =3D function(selector, context){ var tmpSet =3D [], later =3D "", match, root =3D context.nodeType ? [context] : context; while ( (match =3D Expr.match.PSEUDO.exec( selector )) ) { later +=3D match[0]; selector =3D selector.replace( Expr.match.PSEUDO, "" ); } selector =3D Expr.relative[selector] ? selector + "*" : selector; for ( var i =3D 0, l =3D root.length; i < l; i++ ) { Sizzle( selector, root[i], tmpSet ); } return Sizzle.filter( later, tmpSet ); }; window.Sizzle =3D Sizzle; })(); ;(function(engine) { var extendElements =3D Prototype.Selector.extendElements; function select(selector, scope) { return extendElements(engine(selector, scope || document)); } function match(element, selector) { return engine.matches(selector, [element]).length =3D=3D 1; } Prototype.Selector.engine =3D engine; Prototype.Selector.select =3D select; Prototype.Selector.match =3D match; })(Sizzle); window.Sizzle =3D Prototype._original_property; delete Prototype._original_property; var Form =3D { reset: function(form) { form =3D $(form); form.reset(); return form; }, serializeElements: function(elements, options) { if (typeof options !=3D 'object') options =3D { hash: !!options }; else if (Object.isUndefined(options.hash)) options.hash =3D true; var key, value, submitted =3D false, submit =3D options.submit, = accumulator, initial; if (options.hash) { initial =3D {}; accumulator =3D function(result, key, value) { if (key in result) { if (!Object.isArray(result[key])) result[key] =3D = [result[key]]; result[key].push(value); } else result[key] =3D value; return result; }; } else { initial =3D ''; accumulator =3D function(result, key, value) { return result + (result ? '&' : '') + encodeURIComponent(key) + = '=3D' + encodeURIComponent(value); } } return elements.inject(initial, function(result, element) { if (!element.disabled && element.name) { key =3D element.name; value =3D $(element).getValue(); if (value !=3D null && element.type !=3D 'file' && (element.type = !=3D 'submit' || (!submitted && submit !=3D=3D false && (!submit || key =3D=3D submit) && = (submitted =3D true)))) { result =3D accumulator(result, key, value); } } return result; }); } }; Form.Methods =3D { serialize: function(form, options) { return Form.serializeElements(Form.getElements(form), options); }, getElements: function(form) { var elements =3D $(form).getElementsByTagName('*'), element, arr =3D [ ], serializers =3D Form.Element.Serializers; for (var i =3D 0; element =3D elements[i]; i++) { arr.push(element); } return arr.inject([], function(elements, child) { if (serializers[child.tagName.toLowerCase()]) elements.push(Element.extend(child)); return elements; }) }, getInputs: function(form, typeName, name) { form =3D $(form); var inputs =3D form.getElementsByTagName('input'); if (!typeName && !name) return $A(inputs).map(Element.extend); for (var i =3D 0, matchingInputs =3D [], length =3D inputs.length; i = < length; i++) { var input =3D inputs[i]; if ((typeName && input.type !=3D typeName) || (name && input.name = !=3D name)) continue; matchingInputs.push(Element.extend(input)); } return matchingInputs; }, disable: function(form) { form =3D $(form); Form.getElements(form).invoke('disable'); return form; }, enable: function(form) { form =3D $(form); Form.getElements(form).invoke('enable'); return form; }, findFirstElement: function(form) { var elements =3D $(form).getElements().findAll(function(element) { return 'hidden' !=3D element.type && !element.disabled; }); var firstByIndex =3D elements.findAll(function(element) { return element.hasAttribute('tabIndex') && element.tabIndex >=3D = 0; }).sortBy(function(element) { return element.tabIndex }).first(); return firstByIndex ? firstByIndex : elements.find(function(element) = { return /^(?:input|select|textarea)$/i.test(element.tagName); }); }, focusFirstElement: function(form) { form =3D $(form); var element =3D form.findFirstElement(); if (element) element.activate(); return form; }, request: function(form, options) { form =3D $(form), options =3D Object.clone(options || { }); var params =3D options.parameters, action =3D = form.readAttribute('action') || ''; if (action.blank()) action =3D window.location.href; options.parameters =3D form.serialize(true); if (params) { if (Object.isString(params)) params =3D params.toQueryParams(); Object.extend(options.parameters, params); } if (form.hasAttribute('method') && !options.method) options.method =3D form.method; return new Ajax.Request(action, options); } }; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Form.Element =3D { focus: function(element) { $(element).focus(); return element; }, select: function(element) { $(element).select(); return element; } }; Form.Element.Methods =3D { serialize: function(element) { element =3D $(element); if (!element.disabled && element.name) { var value =3D element.getValue(); if (value !=3D undefined) { var pair =3D { }; pair[element.name] =3D value; return Object.toQueryString(pair); } } return ''; }, getValue: function(element) { element =3D $(element); var method =3D element.tagName.toLowerCase(); return Form.Element.Serializers[method](element); }, setValue: function(element, value) { element =3D $(element); var method =3D element.tagName.toLowerCase(); Form.Element.Serializers[method](element, value); return element; }, clear: function(element) { $(element).value =3D ''; return element; }, present: function(element) { return $(element).value !=3D ''; }, activate: function(element) { element =3D $(element); try { element.focus(); if (element.select && (element.tagName.toLowerCase() !=3D 'input' = || !(/^(?:button|reset|submit)$/i.test(element.type)))) element.select(); } catch (e) { } return element; }, disable: function(element) { element =3D $(element); element.disabled =3D true; return element; }, enable: function(element) { element =3D $(element); element.disabled =3D false; return element; } }; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ var Field =3D Form.Element; var $F =3D Form.Element.Methods.getValue; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Form.Element.Serializers =3D (function() { function input(element, value) { switch (element.type.toLowerCase()) { case 'checkbox': case 'radio': return inputSelector(element, value); default: return valueSelector(element, value); } } function inputSelector(element, value) { if (Object.isUndefined(value)) return element.checked ? element.value : null; else element.checked =3D !!value; } function valueSelector(element, value) { if (Object.isUndefined(value)) return element.value; else element.value =3D value; } function select(element, value) { if (Object.isUndefined(value)) return (element.type =3D=3D=3D 'select-one' ? selectOne : = selectMany)(element); var opt, currentValue, single =3D !Object.isArray(value); for (var i =3D 0, length =3D element.length; i < length; i++) { opt =3D element.options[i]; currentValue =3D this.optionValue(opt); if (single) { if (currentValue =3D=3D value) { opt.selected =3D true; return; } } else opt.selected =3D value.include(currentValue); } } function selectOne(element) { var index =3D element.selectedIndex; return index >=3D 0 ? optionValue(element.options[index]) : null; } function selectMany(element) { var values, length =3D element.length; if (!length) return null; for (var i =3D 0, values =3D []; i < length; i++) { var opt =3D element.options[i]; if (opt.selected) values.push(optionValue(opt)); } return values; } function optionValue(opt) { return Element.hasAttribute(opt, 'value') ? opt.value : opt.text; } return { input: input, inputSelector: inputSelector, textarea: valueSelector, select: select, selectOne: selectOne, selectMany: selectMany, optionValue: optionValue, button: valueSelector }; })(); /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Abstract.TimedObserver =3D Class.create(PeriodicalExecuter, { initialize: function($super, element, frequency, callback) { $super(callback, frequency); this.element =3D $(element); this.lastValue =3D this.getValue(); }, execute: function() { var value =3D this.getValue(); if (Object.isString(this.lastValue) && Object.isString(value) ? this.lastValue !=3D value : String(this.lastValue) !=3D = String(value)) { this.callback(this.element, value); this.lastValue =3D value; } } }); Form.Element.Observer =3D Class.create(Abstract.TimedObserver, { getValue: function() { return Form.Element.getValue(this.element); } }); Form.Observer =3D Class.create(Abstract.TimedObserver, { getValue: function() { return Form.serialize(this.element); } }); /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Abstract.EventObserver =3D Class.create({ initialize: function(element, callback) { this.element =3D $(element); this.callback =3D callback; this.lastValue =3D this.getValue(); if (this.element.tagName.toLowerCase() =3D=3D 'form') this.registerFormCallbacks(); else this.registerCallback(this.element); }, onElementEvent: function() { var value =3D this.getValue(); if (this.lastValue !=3D value) { this.callback(this.element, value); this.lastValue =3D value; } }, registerFormCallbacks: function() { Form.getElements(this.element).each(this.registerCallback, this); }, registerCallback: function(element) { if (element.type) { switch (element.type.toLowerCase()) { case 'checkbox': case 'radio': Event.observe(element, 'click', = this.onElementEvent.bind(this)); break; default: Event.observe(element, 'change', = this.onElementEvent.bind(this)); break; } } } }); Form.Element.EventObserver =3D Class.create(Abstract.EventObserver, { getValue: function() { return Form.Element.getValue(this.element); } }); Form.EventObserver =3D Class.create(Abstract.EventObserver, { getValue: function() { return Form.serialize(this.element); } }); (function() { var Event =3D { KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC: 27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, KEY_DELETE: 46, KEY_HOME: 36, KEY_END: 35, KEY_PAGEUP: 33, KEY_PAGEDOWN: 34, KEY_INSERT: 45, cache: {} }; var docEl =3D document.documentElement; var MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED =3D 'onmouseenter' in docEl && 'onmouseleave' in docEl; var isIELegacyEvent =3D function(event) { return false; }; if (window.attachEvent) { if (window.addEventListener) { isIELegacyEvent =3D function(event) { return !(event instanceof window.Event); }; } else { isIELegacyEvent =3D function(event) { return true; }; } } var _isButton; function _isButtonForDOMEvents(event, code) { return event.which ? (event.which =3D=3D=3D code + 1) : = (event.button =3D=3D=3D code); } var legacyButtonMap =3D { 0: 1, 1: 4, 2: 2 }; function _isButtonForLegacyEvents(event, code) { return event.button =3D=3D=3D legacyButtonMap[code]; } function _isButtonForWebKit(event, code) { switch (code) { case 0: return event.which =3D=3D 1 && !event.metaKey; case 1: return event.which =3D=3D 2 || (event.which =3D=3D 1 && = event.metaKey); case 2: return event.which =3D=3D 3; default: return false; } } if (window.attachEvent) { if (!window.addEventListener) { _isButton =3D _isButtonForLegacyEvents; } else { _isButton =3D function(event, code) { return isIELegacyEvent(event) ? _isButtonForLegacyEvents(event, = code) : _isButtonForDOMEvents(event, code); } } } else if (Prototype.Browser.WebKit) { _isButton =3D _isButtonForWebKit; } else { _isButton =3D _isButtonForDOMEvents; } function isLeftClick(event) { return _isButton(event, 0) } function isMiddleClick(event) { return _isButton(event, 1) } function isRightClick(event) { return _isButton(event, 2) } function element(event) { event =3D Event.extend(event); var node =3D event.target, type =3D event.type, currentTarget =3D event.currentTarget; if (currentTarget && currentTarget.tagName) { if (type =3D=3D=3D 'load' || type =3D=3D=3D 'error' || (type =3D=3D=3D 'click' && currentTarget.tagName.toLowerCase() = =3D=3D=3D 'input' && currentTarget.type =3D=3D=3D 'radio')) node =3D currentTarget; } if (node.nodeType =3D=3D Node.TEXT_NODE) node =3D node.parentNode; return Element.extend(node); } function findElement(event, expression) { var element =3D Event.element(event); if (!expression) return element; while (element) { if (Object.isElement(element) && Prototype.Selector.match(element, = expression)) { return Element.extend(element); } element =3D element.parentNode; } } function pointer(event) { return { x: pointerX(event), y: pointerY(event) }; } function pointerX(event) { var docElement =3D document.documentElement, body =3D document.body || { scrollLeft: 0 }; return event.pageX || (event.clientX + (docElement.scrollLeft || body.scrollLeft) - (docElement.clientLeft || 0)); } function pointerY(event) { var docElement =3D document.documentElement, body =3D document.body || { scrollTop: 0 }; return event.pageY || (event.clientY + (docElement.scrollTop || body.scrollTop) - (docElement.clientTop || 0)); } function stop(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped =3D true; } Event.Methods =3D { isLeftClick: isLeftClick, isMiddleClick: isMiddleClick, isRightClick: isRightClick, element: element, findElement: findElement, pointer: pointer, pointerX: pointerX, pointerY: pointerY, stop: stop }; var methods =3D Object.keys(Event.Methods).inject({ }, function(m, = name) { m[name] =3D Event.Methods[name].methodize(); return m; }); if (window.attachEvent) { function _relatedTarget(event) { var element; switch (event.type) { case 'mouseover': case 'mouseenter': element =3D event.fromElement; break; case 'mouseout': case 'mouseleave': element =3D event.toElement; break; default: return null; } return Element.extend(element); } var additionalMethods =3D { stopPropagation: function() { this.cancelBubble =3D true }, preventDefault: function() { this.returnValue =3D false }, inspect: function() { return '[object Event]' } }; Event.extend =3D function(event, element) { if (!event) return false; if (!isIELegacyEvent(event)) return event; if (event._extendedByPrototype) return event; event._extendedByPrototype =3D Prototype.emptyFunction; var pointer =3D Event.pointer(event); Object.extend(event, { target: event.srcElement || element, relatedTarget: _relatedTarget(event), pageX: pointer.x, pageY: pointer.y }); Object.extend(event, methods); Object.extend(event, additionalMethods); return event; }; } else { Event.extend =3D Prototype.K; } if (window.addEventListener) { Event.prototype =3D window.Event.prototype || = document.createEvent('HTMLEvents').__proto__; Object.extend(Event.prototype, methods); } function _createResponder(element, eventName, handler) { var registry =3D Element.retrieve(element, = 'prototype_event_registry'); if (Object.isUndefined(registry)) { CACHE.push(element); registry =3D Element.retrieve(element, 'prototype_event_registry', = $H()); } var respondersForEvent =3D registry.get(eventName); if (Object.isUndefined(respondersForEvent)) { respondersForEvent =3D []; registry.set(eventName, respondersForEvent); } if (respondersForEvent.pluck('handler').include(handler)) return = false; var responder; if (eventName.include(":")) { responder =3D function(event) { if (Object.isUndefined(event.eventName)) return false; if (event.eventName !=3D=3D eventName) return false; Event.extend(event, element); handler.call(element, event); }; } else { if (!MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED && (eventName =3D=3D=3D "mouseenter" || eventName =3D=3D=3D = "mouseleave")) { if (eventName =3D=3D=3D "mouseenter" || eventName =3D=3D=3D = "mouseleave") { responder =3D function(event) { Event.extend(event, element); var parent =3D event.relatedTarget; while (parent && parent !=3D=3D element) { try { parent =3D parent.parentNode; } catch(e) { parent =3D element; } } if (parent =3D=3D=3D element) return; handler.call(element, event); }; } } else { responder =3D function(event) { Event.extend(event, element); handler.call(element, event); }; } } responder.handler =3D handler; respondersForEvent.push(responder); return responder; } function _destroyCache() { for (var i =3D 0, length =3D CACHE.length; i < length; i++) { Event.stopObserving(CACHE[i]); CACHE[i] =3D null; } } var CACHE =3D []; if (Prototype.Browser.IE) window.attachEvent('onunload', _destroyCache); if (Prototype.Browser.WebKit) window.addEventListener('unload', Prototype.emptyFunction, false); var _getDOMEventName =3D Prototype.K, translations =3D { mouseenter: "mouseover", mouseleave: "mouseout" = }; if (!MOUSEENTER_MOUSELEAVE_EVENTS_SUPPORTED) { _getDOMEventName =3D function(eventName) { return (translations[eventName] || eventName); }; } function observe(element, eventName, handler) { element =3D $(element); var responder =3D _createResponder(element, eventName, handler); if (!responder) return element; if (eventName.include(':')) { if (element.addEventListener) element.addEventListener("dataavailable", responder, false); else { element.attachEvent("ondataavailable", responder); element.attachEvent("onlosecapture", responder); } } else { var actualEventName =3D _getDOMEventName(eventName); if (element.addEventListener) element.addEventListener(actualEventName, responder, false); else element.attachEvent("on" + actualEventName, responder); } return element; } function stopObserving(element, eventName, handler) { element =3D $(element); var registry =3D Element.retrieve(element, = 'prototype_event_registry'); if (!registry) return element; if (!eventName) { registry.each( function(pair) { var eventName =3D pair.key; stopObserving(element, eventName); }); return element; } var responders =3D registry.get(eventName); if (!responders) return element; if (!handler) { responders.each(function(r) { stopObserving(element, eventName, r.handler); }); return element; } var i =3D responders.length, responder; while (i-- ) { if (responders[i].handler =3D=3D=3D handler) { responder =3D responders[i]; break; } } if (!responder) return element; if (eventName.include(':')) { if (element.removeEventListener) element.removeEventListener("dataavailable", responder, false); else { element.detachEvent("ondataavailable", responder); element.detachEvent("onlosecapture", responder); } } else { var actualEventName =3D _getDOMEventName(eventName); if (element.removeEventListener) element.removeEventListener(actualEventName, responder, false); else element.detachEvent('on' + actualEventName, responder); } registry.set(eventName, responders.without(responder)); return element; } function fire(element, eventName, memo, bubble) { element =3D $(element); if (Object.isUndefined(bubble)) bubble =3D true; if (element =3D=3D document && document.createEvent && = !element.dispatchEvent) element =3D document.documentElement; var event; if (document.createEvent) { event =3D document.createEvent('HTMLEvents'); event.initEvent('dataavailable', bubble, true); } else { event =3D document.createEventObject(); event.eventType =3D bubble ? 'ondataavailable' : 'onlosecapture'; } event.eventName =3D eventName; event.memo =3D memo || { }; if (document.createEvent) element.dispatchEvent(event); else element.fireEvent(event.eventType, event); return Event.extend(event); } Event.Handler =3D Class.create({ initialize: function(element, eventName, selector, callback) { this.element =3D $(element); this.eventName =3D eventName; this.selector =3D selector; this.callback =3D callback; this.handler =3D this.handleEvent.bind(this); }, start: function() { Event.observe(this.element, this.eventName, this.handler); return this; }, stop: function() { Event.stopObserving(this.element, this.eventName, this.handler); return this; }, handleEvent: function(event) { var element =3D Event.findElement(event, this.selector); if (element) this.callback.call(this.element, event, element); } }); function on(element, eventName, selector, callback) { element =3D $(element); if (Object.isFunction(selector) && Object.isUndefined(callback)) { callback =3D selector, selector =3D null; } return new Event.Handler(element, eventName, selector, = callback).start(); } Object.extend(Event, Event.Methods); Object.extend(Event, { fire: fire, observe: observe, stopObserving: stopObserving, on: on }); Element.addMethods({ fire: fire, observe: observe, stopObserving: stopObserving, on: on }); Object.extend(document, { fire: fire.methodize(), observe: observe.methodize(), stopObserving: stopObserving.methodize(), on: on.methodize(), loaded: false }); if (window.Event) Object.extend(window.Event, Event); else window.Event =3D Event; })(); (function() { /* Support for the DOMContentLoaded event is based on work by Dan = Webb, Matthias Miller, Dean Edwards, John Resig, and Diego Perini. */ var timer; function fireContentLoadedEvent() { if (document.loaded) return; if (timer) window.clearTimeout(timer); document.loaded =3D true; document.fire('dom:loaded'); } function checkReadyState() { if (document.readyState =3D=3D=3D 'complete') { document.stopObserving('readystatechange', checkReadyState); fireContentLoadedEvent(); } } function pollDoScroll() { try { document.documentElement.doScroll('left'); } catch(e) { timer =3D pollDoScroll.defer(); return; } fireContentLoadedEvent(); } if (document.addEventListener) { document.addEventListener('DOMContentLoaded', = fireContentLoadedEvent, false); } else { document.observe('readystatechange', checkReadyState); if (window =3D=3D top) timer =3D pollDoScroll.defer(); } Event.observe(window, 'load', fireContentLoadedEvent); })(); Element.addMethods(); /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - DEPRECATED = -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -*/ Hash.toQueryString =3D Object.toQueryString; var Toggle =3D { display: Element.toggle }; Element.Methods.childOf =3D Element.Methods.descendantOf; var Insertion =3D { Before: function(element, content) { return Element.insert(element, {before:content}); }, Top: function(element, content) { return Element.insert(element, {top:content}); }, Bottom: function(element, content) { return Element.insert(element, {bottom:content}); }, After: function(element, content) { return Element.insert(element, {after:content}); } }; var $continue =3D new Error('"throw $continue" is deprecated, use = "return" instead'); var Position =3D { includeScrollOffsets: false, prepare: function() { this.deltaX =3D window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; this.deltaY =3D window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0; }, within: function(element, x, y) { if (this.includeScrollOffsets) return this.withinIncludingScrolloffsets(element, x, y); this.xcomp =3D x; this.ycomp =3D y; this.offset =3D Element.cumulativeOffset(element); return (y >=3D this.offset[1] && y < this.offset[1] + element.offsetHeight && x >=3D this.offset[0] && x < this.offset[0] + element.offsetWidth); }, withinIncludingScrolloffsets: function(element, x, y) { var offsetcache =3D Element.cumulativeScrollOffset(element); this.xcomp =3D x + offsetcache[0] - this.deltaX; this.ycomp =3D y + offsetcache[1] - this.deltaY; this.offset =3D Element.cumulativeOffset(element); return (this.ycomp >=3D this.offset[1] && this.ycomp < this.offset[1] + element.offsetHeight && this.xcomp >=3D this.offset[0] && this.xcomp < this.offset[0] + element.offsetWidth); }, overlap: function(mode, element) { if (!mode) return 0; if (mode =3D=3D 'vertical') return ((this.offset[1] + element.offsetHeight) - this.ycomp) / element.offsetHeight; if (mode =3D=3D 'horizontal') return ((this.offset[0] + element.offsetWidth) - this.xcomp) / element.offsetWidth; }, cumulativeOffset: Element.Methods.cumulativeOffset, positionedOffset: Element.Methods.positionedOffset, absolutize: function(element) { Position.prepare(); return Element.absolutize(element); }, relativize: function(element) { Position.prepare(); return Element.relativize(element); }, realOffset: Element.Methods.cumulativeScrollOffset, offsetParent: Element.Methods.getOffsetParent, page: Element.Methods.viewportOffset, clone: function(source, target, options) { options =3D options || { }; return Element.clonePosition(target, source, options); } }; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ if (!document.getElementsByClassName) document.getElementsByClassName = =3D function(instanceMethods){ function iter(name) { return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' = " + name + " ')]"; } instanceMethods.getElementsByClassName =3D = Prototype.BrowserFeatures.XPath ? function(element, className) { className =3D className.toString().strip(); var cond =3D /\s/.test(className) ? $w(className).map(iter).join('') = : iter(className); return cond ? document._getElementsByXPath('.//*' + cond, element) : = []; } : function(element, className) { className =3D className.toString().strip(); var elements =3D [], classNames =3D (/\s/.test(className) ? = $w(className) : null); if (!classNames && !className) return elements; var nodes =3D $(element).getElementsByTagName('*'); className =3D ' ' + className + ' '; for (var i =3D 0, child, cn; child =3D nodes[i]; i++) { if (child.className && (cn =3D ' ' + child.className + ' ') && = (cn.include(className) || (classNames && classNames.all(function(name) { return !name.toString().blank() && cn.include(' ' + name + ' = '); })))) elements.push(Element.extend(child)); } return elements; }; return function(className, parentElement) { return $(parentElement || = document.body).getElementsByClassName(className); }; }(Element.Methods); /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Element.ClassNames =3D Class.create(); Element.ClassNames.prototype =3D { initialize: function(element) { this.element =3D $(element); }, _each: function(iterator) { this.element.className.split(/\s+/).select(function(name) { return name.length > 0; })._each(iterator); }, set: function(className) { this.element.className =3D className; }, add: function(classNameToAdd) { if (this.include(classNameToAdd)) return; this.set($A(this).concat(classNameToAdd).join(' ')); }, remove: function(classNameToRemove) { if (!this.include(classNameToRemove)) return; this.set($A(this).without(classNameToRemove).join(' ')); }, toString: function() { return $A(this).join(' '); } }; Object.extend(Element.ClassNames.prototype, Enumerable); /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ (function() { window.Selector =3D Class.create({ initialize: function(expression) { this.expression =3D expression.strip(); }, findElements: function(rootElement) { return Prototype.Selector.select(this.expression, rootElement); }, match: function(element) { return Prototype.Selector.match(element, this.expression); }, toString: function() { return this.expression; }, inspect: function() { return "#<Selector: " + this.expression + ">"; } }); Object.extend(Selector, { matchElements: function(elements, expression) { var match =3D Prototype.Selector.match, results =3D []; for (var i =3D 0, length =3D elements.length; i < length; i++) { var element =3D elements[i]; if (match(element, expression)) { results.push(Element.extend(element)); } } return results; }, findElement: function(elements, expression, index) { index =3D index || 0; var matchIndex =3D 0, element; for (var i =3D 0, length =3D elements.length; i < length; i++) { element =3D elements[i]; if (Prototype.Selector.match(element, expression) && index = =3D=3D=3D matchIndex++) { return Element.extend(element); } } }, findChildElements: function(element, expressions) { var selector =3D expressions.toArray().join(', '); return Prototype.Selector.select(selector, element || document); } }); })(); =0A= /* /assets/731238022b09c33a/core/scriptaculous_1_9_0/scriptaculous.js */;=0A= // script.aculo.us scriptaculous.js v1.9.0, Thu Dec 23 16:54:48 -0500 = 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, = http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to // permit persons to whom the Software is furnished to do so, subject to // the following conditions: // // The above copyright notice and this permission notice shall be // included in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS = BE // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN = ACTION // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // // For details, see the script.aculo.us web site: = http://script.aculo.us/ var Scriptaculous =3D { Version: '1.9.0', require: function(libraryName) { try{ // inserting via DOM fails in Safari 2.0, so brute force approach document.write('<script type=3D"text/javascript" = src=3D"'+libraryName+'"><\/script>'); } catch(e) { // for xhtml+xml served content, fall back to DOM methods var script =3D document.createElement('script'); script.type =3D 'text/javascript'; script.src =3D libraryName; document.getElementsByTagName('head')[0].appendChild(script); } }, REQUIRED_PROTOTYPE: '1.6.0.3', load: function() { function convertVersionString(versionString) { var v =3D versionString.replace(/_.*|\./g, ''); v =3D parseInt(v + '0'.times(4-v.length)); return versionString.indexOf('_') > -1 ? v-1 : v; } if((typeof Prototype=3D=3D'undefined') || (typeof Element =3D=3D 'undefined') || (typeof Element.Methods=3D=3D'undefined') || (convertVersionString(Prototype.Version) < convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE))) throw("script.aculo.us requires the Prototype JavaScript = framework >=3D " + Scriptaculous.REQUIRED_PROTOTYPE); // Tapestry turns off this mechanism, and replaces it with = RenderSupport.addScriptLink(). // var js =3D /scriptaculous\.js(\?.*)?$/; // $$('head script[src]').findAll(function(s) { // return s.src.match(js); // }).each(function(s) { // var path =3D s.src.replace(js, ''), // includes =3D s.src.match(/\?.*load=3D([a-z,]*)/); // (includes ? includes[1] : = 'builder,effects,dragdrop,controls,slider,sound').split(',').each( // function(include) { Scriptaculous.require(path+include+'.js') = }); // }); } }; Scriptaculous.load();=0A= /* /assets/731238022b09c33a/core/scriptaculous_1_9_0/effects.js */;=0A= // script.aculo.us effects.js v1.9.0, Thu Dec 23 16:54:48 -0500 2010 // Copyright (c) 2005-2010 Thomas Fuchs (http://script.aculo.us, = http://mir.aculo.us) // Contributors: // Justin Palmer (http://encytemedia.com/) // Mark Pilgrim (http://diveintomark.org/) // Martin Bialasinki // // script.aculo.us is freely distributable under the terms of an = MIT-style license. // For details, see the script.aculo.us web site: = http://script.aculo.us/ // converts rgb() and #xxx to #xxxxxx format, // returns self (or first argument) if not convertable String.prototype.parseColor =3D function() { var color =3D '#'; if (this.slice(0,4) =3D=3D 'rgb(') { var cols =3D this.slice(4,this.length-1).split(','); var i=3D0; do { color +=3D parseInt(cols[i]).toColorPart() } while = (++i<3); } else { if (this.slice(0,1) =3D=3D '#') { if (this.length=3D=3D4) for(var i=3D1;i<4;i++) color +=3D = (this.charAt(i) + this.charAt(i)).toLowerCase(); if (this.length=3D=3D7) color =3D this.toLowerCase(); } } return (color.length=3D=3D7 ? color : (arguments[0] || this)); }; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ Element.collectTextNodes =3D function(element) { return $A($(element).childNodes).collect( function(node) { return (node.nodeType=3D=3D3 ? node.nodeValue : (node.hasChildNodes() ? Element.collectTextNodes(node) : '')); }).flatten().join(''); }; Element.collectTextNodesIgnoreClass =3D function(element, className) { return $A($(element).childNodes).collect( function(node) { return (node.nodeType=3D=3D3 ? node.nodeValue : ((node.hasChildNodes() && !Element.hasClassName(node,className)) ? Element.collectTextNodesIgnoreClass(node, className) : '')); }).flatten().join(''); }; Element.setContentZoom =3D function(element, percent) { element =3D $(element); element.setStyle({fontSize: (percent/100) + 'em'}); if (Prototype.Browser.WebKit) window.scrollBy(0,0); return element; }; Element.getInlineOpacity =3D function(element){ return $(element).style.opacity || ''; }; Element.forceRerendering =3D function(element) { try { element =3D $(element); var n =3D document.createTextNode(' '); element.appendChild(n); element.removeChild(n); } catch(e) { } }; /*-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -= -- -*/ var Effect =3D { _elementDoesNotExistError: { name: 'ElementDoesNotExistError', message: 'The specified DOM element does not exist, but is required = for this effect to operate' }, Transitions: { linear: Prototype.K, sinoidal: function(pos) { return (-Math.cos(pos*Math.PI)/2) + .5; }, reverse: function(pos) { return 1-pos; }, flicker: function(pos) { var pos =3D ((-Math.cos(pos*Math.PI)/4) + .75) + Math.random()/4; return pos > 1 ? 1 : pos; }, wobble: function(pos) { return (-Math.cos(pos*Math.PI*(9*pos))/2) + .5; }, pulse: function(pos, pulses) { return (-Math.cos((pos*((pulses||5)-.5)*2)*Math.PI)/2) + .5; }, spring: function(pos) { return 1 - (Math.cos(pos * 4.5 * Math.PI) * Math.exp(-pos * 6)); }, none: function(pos) { return 0; }, full: function(pos) { return 1; } }, DefaultOptions: { duration: 1.0, // seconds fps: 100, // 100=3D assume 66fps max. sync: false, // true for combining from: 0.0, to: 1.0, delay: 0.0, queue: 'parallel' }, tagifyText: function(element) { var tagifyStyle =3D 'position:relative'; if (Prototype.Browser.IE) tagifyStyle +=3D ';zoom:1'; element =3D $(element); $A(element.childNodes).each( function(child) { if (child.nodeType=3D=3D3) { child.nodeValue.toArray().each( function(character) { element.insertBefore( new Element('span', {style: tagifyStyle}).update( character =3D=3D ' ' ? String.fromCharCode(160) : = character), child); }); Element.remove(child); } }); }, multiple: function(element, effect) { var elements; if (((typeof element =3D=3D 'object') || Object.isFunction(element)) && (element.length)) elements =3D element; else elements =3D $(element).childNodes; var options =3D Object.extend({ speed: 0.1, delay: 0.0 }, arguments[2] || { }); var masterDelay =3D options.delay; $A(elements).each( function(element, index) { new effect(element, Object.extend(options, { delay: index * = options.speed + masterDelay })); }); }, PAIRS: { 'slide': ['SlideDown','SlideUp'], 'blind': ['BlindDown','BlindUp'], 'appear': ['Appear','Fade'] }, toggle: function(element, effect, options) { element =3D $(element); effect =3D (effect || 'appear').toLowerCase(); =20 return Effect[ Effect.PAIRS[ effect ][ element.visible() ? 1 : 0 ] = ](element, Object.extend({ queue: { position:'end', scope:(element.id || 'global'), limit: 1 = } }, options || {})); } }; Effect.DefaultOptions.transition =3D Effect.Transitions.sinoidal; /* -- -- -- -- -- -- - core effects -- -- -- -- -- -- - */ Effect.ScopedQueue =3D Class.create(Enumerable, { initialize: function() { this.effects =3D []; this.interval =3D null; }, _each: function(iterator) { this.effects._each(iterator); }, add: function(effect) { var timestamp =3D new Date().getTime(); var position =3D Object.isString(effect.options.queue) ? effect.options.queue : effect.options.queue.position; switch(position) { case 'front': // move unstarted effects after this effect this.effects.findAll(function(e){ return e.state=3D=3D'idle' = }).each( function(e) { e.startOn +=3D effect.finishOn; e.finishOn +=3D effect.finishOn; }); break; case 'with-last': timestamp =3D this.effects.pluck('startOn').max() || timestamp; break; case 'end': // start effect after last queued effect has finished timestamp =3D this.effects.pluck('finishOn').max() || timestamp; break; } effect.startOn +=3D timestamp; effect.finishOn +=3D timestamp; if (!effect.options.queue.limit || (this.effects.length < = effect.options.queue.limit)) this.effects.push(effect); if (!this.interval) this.interval =3D setInterval(this.loop.bind(this), 15); }, remove: function(effect) { this.effects =3D this.effects.reject(function(e) { return = e=3D=3Deffect }); if (this.effects.length =3D=3D 0) { clearInterval(this.interval); this.interval =3D null; } }, loop: function() { var timePos =3D new Date().getTime(); for(var i=3D0, len=3Dthis.effects.length;i<len;i++) this.effects[i] && this.effects[i].loop(timePos); } }); Effect.Queues =3D { instances: $H(), get: function(queueName) { if (!Object.isString(queueName)) return queueName; return this.instances.get(queueName) || this.instances.set(queueName, new Effect.ScopedQueue()); } }; Effect.Queue =3D Effect.Queues.get('global'); Effect.Base =3D Class.create({ position: null, start: function(options) { if (options && options.transition =3D=3D=3D false) = options.transition =3D Effect.Transitions.linear; this.options =3D Object.extend(Object.extend({ = },Effect.DefaultOptions), options || { }); this.currentFrame =3D 0; this.state =3D 'idle'; this.startOn =3D this.options.delay*1000; this.finishOn =3D this.startOn+(this.options.duration*1000); this.fromToDelta =3D this.options.to-this.options.from; this.totalTime =3D this.finishOn-this.startOn; this.totalFrames =3D this.options.fps*this.options.duration; this.render =3D (function() { function dispatch(effect, eventName) { if (effect.options[eventName + 'Internal']) effect.options[eventName + 'Internal'](effect); if (effect.options[eventName]) effect.options[eventName](effect); } return function(pos) { if (this.state =3D=3D=3D "idle") { this.state =3D "running"; dispatch(this, 'beforeSetup'); if (this.setup) this.setup(); dispatch(this, 'afterSetup'); } if (this.state =3D=3D=3D "running") { pos =3D (this.options.transition(pos) * this.fromToDelta) + = this.options.from; this.position =3D pos; dispatch(this, 'beforeUpdate'); if (this.update) this.update(pos); dispatch(this, 'afterUpdate'); } }; })(); this.event('beforeStart'); if (!this.options.sync) Effect.Queues.get(Object.isString(this.options.queue) ? 'global' : this.options.queue.scope).add(this); }, loop: function(timePos) { if (timePos >=3D this.startOn) { if (timePos >=3D this.finishOn) { this.render(1.0); this.cancel(); this.event('beforeFinish'); if (this.finish) this.finish(); this.event('afterFinish'); return; } var pos =3D (timePos - this.startOn) / this.totalTime, frame =3D (pos * this.totalFrames).round(); if (frame > this.currentFrame) { this.render(pos); this.currentFrame =3D frame; } } }, cancel: function() { if (!this.options.sync) Effect.Queues.get(Object.isString(this.options.queue) ? 'global' : this.options.queue.scope).remove(this); this.state =3D 'finished'; }, event: function(eventName) { if (this.options[eventName + 'Internal']) this.options[eventName + = 'Internal'](this); if (this.options[eventName]) this.options[eventName](this); }, inspect: function() { var data =3D $H(); for(property in this) if (!Object.isFunction(this[property])) data.set(property, = this[property]); return '#<Effect:' + data.inspect() + ',options:' + = $H(this.options).inspect() + '>'; } }); Effect.Parallel =3D Class.create(Effect.Base, { initialize: function(effects) { this.effects =3D effects || []; this.start(arguments[1]); }, update: function(position) { this.effects.invoke('render', position); }, finish: function(position) { this.effects.each( function(effect) { effect.render(1.0); effect.cancel(); effect.event('beforeFinish'); if (effect.finish) effect.finish(position); effect.event('afterFinish'); }); } }); Effect.Tween =3D Class.create(Effect.Base, { initialize: function(object, from, to) { object =3D Object.isString(object) ? $(object) : object; var args =3D $A(arguments), method =3D args.last(), options =3D args.length =3D=3D 5 ? args[3] : null; this.method =3D Object.isFunction(method) ? method.bind(object) : Object.isFunction(object[method]) ? object[method].bind(object) : function(value) { object[method] =3D value }; this.start(Object.extend({ from: from, to: to }, options || { })); }, update: function(position) { this.method(position); } }); Effect.Event =3D Class.create(Effect.Base, { initialize: function() { this.start(Object.extend({ duration: 0 }, arguments[0] || { })); }, update: Prototype.emptyFunction }); Effect.Opacity =3D Class.create(Effect.Base, { initialize: function(element) { this.element =3D $(element); if (!this.element) throw(Effect._elementDoesNotExistError); // make this work on IE on elements without 'layout' if (Prototype.Browser.IE && (!this.element.currentStyle.hasLayout)) this.element.setStyle({zoom: 1}); var options =3D Object.extend({ from: this.element.getOpacity() || 0.0, to: 1.0 }, arguments[1] || { }); this.start(options); }, update: function(position) { this.element.setOpacity(position); } }); Effect.Move =3D Class.create(Effect.Base, { initialize: function(element) { this.element =3D $(element); if (!this.element) throw(Effect._elementDoesNotExistError); var options =3D Object.extend({ x: 0, y: 0, mode: 'relative' }, arguments[1] || { }); this.start(options); }, setup: function() { this.element.makePositioned(); this.originalLeft =3D parseFloat(this.element.getStyle('left') || = '0'); this.originalTop =3D parseFloat(this.element.getStyle('top') || = '0'); if (this.options.mode =3D=3D 'absolute') { this.options.x =3D this.options.x - this.originalLeft; this.options.y =3D this.options.y - this.originalTop; } }, update: function(position) { this.element.setStyle({ left: (this.options.x * position + this.originalLeft).round() + = 'px', top: (this.options.y * position + this.originalTop).round() + = 'px' }); } }); // for backwards compatibility Effect.MoveBy =3D function(element, toTop, toLeft) { return new Effect.Move(element, Object.extend({ x: toLeft, y: toTop }, arguments[3] || { })); }; Effect.Scale =3D Class.create(Effect.Base, { initialize: function(element, percent) { this.element =3D $(element); if (!this.element) throw(Effect._elementDoesNotExistError); var options =3D Object.extend({ scaleX: true, scaleY: true, scaleContent: true, scaleFromCenter: false, scaleMode: 'box', // 'box' or 'contents' or { } with = provided values scaleFrom: 100.0, scaleTo: percent }, arguments[2] || { }); this.start(options); }, setup: function() { this.restoreAfterFinish =3D this.options.restoreAfterFinish || = false; this.elementPositioning =3D this.element.getStyle('position'); this.originalStyle =3D { }; ['top','left','width','height','fontSize'].each( function(k) { this.originalStyle[k] =3D this.element.style[k]; }.bind(this)); this.originalTop =3D this.element.offsetTop; this.originalLeft =3D this.element.offsetLeft; var fontSize =3D this.element.getStyle('font-size') || '100%'; ['em','px','%','pt'].each( function(fontSizeType) { if (fontSize.indexOf(fontSizeType)>0) { this.fontSize =3D parseFloat(fontSize); this.fontSizeType =3D fontSizeType; } }.bind(this)); this.factor =3D (this.options.scaleTo - this.options.scaleFrom)/100; this.dims =3D null; if (this.options.scaleMode=3D=3D'box') this.dims =3D [this.element.offsetHeight, = this.element.offsetWidth]; if (/^content/.test(this.options.scaleMode)) this.dims =3D [this.element.scrollHeight, = this.element.scrollWidth]; if (!this.dims) this.dims =3D [this.options.scaleMode.originalHeight, this.options.scaleMode.originalWidth]; }, update: function(position) { var currentScale =3D (this.options.scaleFrom/100.0) + (this.factor * = position); if (this.options.scaleContent && this.fontSize) this.element.setStyle({fontSize: this.fontSize * currentScale + = this.fontSizeType }); this.setDimensions(this.dims[0] * currentScale, this.dims[1] * = currentScale); }, finish: function(position) { if (this.restoreAfterFinish) = this.element.setStyle(this.originalStyle); }, setDimensions: function(height, width) { var d =3D { }; if (this.options.scaleX) d.width =3D width.round() + 'px'; if (this.options.scaleY) d.height =3D height.round() + 'px'; if (this.options.scaleFromCenter) { var topd =3D (height - this.dims[0])/2; var leftd =3D (width - this.dims[1])/2; if (this.elementPositioning =3D=3D 'absolute') { if (this.options.scaleY) d.top =3D this.originalTop-topd + 'px'; if (this.options.scaleX) d.left =3D this.originalLeft-leftd + = 'px'; } else { if (this.options.scaleY) d.top =3D -topd + 'px'; if (this.options.scaleX) d.left =3D -leftd + 'px'; } } this.element.setStyle(d); } }); Effect.Highlight =3D Class.create(Effect.Base, { initialize: function(element) { this.element =3D $(element); if (!this.element) throw(Effect._elementDoesNotExistError); var options =3D Object.extend({ startcolor: '#ffff99' }, = arguments[1] || { }); this.start(options); }, setup: function() { // Prevent executing on elements not in the layout flow if (this.element.getStyle('display')=3D=3D'none') { this.cancel(); = return; } // Disable background image during the effect this.oldStyle =3D { }; if (!this.options.keepBackgroundImage) { this.oldStyle.backgroundImage =3D = this.element.getStyle('background-image'); this.element.setStyle({backgroundImage: 'none'}); } if (!this.options.endcolor) this.options.endcolor =3D = this.element.getStyle('background-color').parseColor('#ffffff'); if (!this.options.restorecolor) this.options.restorecolor =3D = this.element.getStyle('background-color'); // init color calculations this._base =3D $R(0,2).map(function(i){ return = parseInt(this.options.startcolor.slice(i*2+1,i*2+3),16) }.bind(this)); this._delta =3D $R(0,2).map(function(i){ return = parseInt(this.options.endcolor.slice(i*2+1,i*2+3),16)-this._base[i] = }.bind(this)); }, update: function(position) { this.element.setStyle({backgroundColor: = $R(0,2).inject('#',function(m,v,i){ return = m+((this._base[i]+(this._delta[i]*position)).round().toColorPart()); = }.bind(this)) }); }, finish: function() { this.element.setStyle(Object.extend(this.oldStyle, { backgroundColor: this.options.restorecolor })); } }); Effect.ScrollTo =3D function(element) { var options =3D arguments[1] || { }, scrollOffsets =3D document.viewport.getScrollOffsets(), elementOffsets =3D $(element).cumulativeOffset(); if (options.offset) elementOffsets[1] +=3D options.offset; return new Effect.Tween(null, scrollOffsets.top, elementOffsets[1], options, function(p){ scrollTo(scrollOffsets.left, p.round()); } ); }; /* -- -- -- -- -- -- - combination effects -- -- -- -- -- -- - */ Effect.Fade =3D function(element) { element =3D $(element); var oldOpacity =3D element.getInlineOpacity(); var options =3D Object.extend({ from: element.getOpacity() || 1.0, to: 0.0, afterFinishInternal: function(effect) { if (effect.options.to!=3D0) return; effect.element.hide().setStyle({opacity: oldOpacity}); } }, arguments[1] || { }); return new Effect.Opacity(element,options); }; Effect.Appear =3D function(element) { element =3D $(element); var options =3D Object.extend({ from: (element.getStyle('display') =3D=3D 'none' ? 0.0 : = element.getOpacity() || 0.0), to: 1.0, // force Safari to render floated elements properly afterFinishInternal: function(effect) { effect.element.forceRerendering(); }, beforeSetup: function(effect) { effect.element.setOpacity(effect.options.from).show(); }}, arguments[1] || { }); return new Effect.Opacity(element,options); }; Effect.Puff =3D function(element) { element =3D $(element); var oldStyle =3D { opacity: element.getInlineOpacity(), position: element.getStyle('position'), top: element.style.top, left: element.style.left, width: element.style.width, height: element.style.height }; return new Effect.Parallel( [ new Effect.Scale(element, 200, { sync: true, scaleFromCenter: true, scaleContent: true, = restoreAfterFinish: true }), new Effect.Opacity(element, { sync: true, to: 0.0 } ) ], Object.extend({ duration: 1.0, beforeSetupInternal: function(effect) { Position.absolutize(effect.effects[0].element); }, afterFinishInternal: function(effect) { effect.effects[0].element.hide().setStyle(oldStyle); } }, arguments[1] || { }) ); }; Effect.BlindUp =3D function(element) { element =3D $(element); element.makeClipping(); return new Effect.Scale(element, 0, Object.extend({ scaleContent: false, scaleX: false, restoreAfterFinish: true, afterFinishInternal: function(effect) { effect.element.hide().undoClipping(); } }, arguments[1] || { }) ); }; Effect.BlindDown =3D function(element) { element =3D $(element); var elementDimensions =3D element.getDimensions(); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: 0, scaleMode: {originalHeight: elementDimensions.height, originalWidth: = elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makeClipping().setStyle({height: '0px'}).show(); }, afterFinishInternal: function(effect) { effect.element.undoClipping(); } }, arguments[1] || { })); }; Effect.SwitchOff =3D function(element) { element =3D $(element); var oldOpacity =3D element.getInlineOpacity(); return new Effect.Appear(element, Object.extend({ duration: 0.4, from: 0, transition: Effect.Transitions.flicker, afterFinishInternal: function(effect) { new Effect.Scale(effect.element, 1, { duration: 0.3, scaleFromCenter: true, scaleX: false, scaleContent: false, restoreAfterFinish: true, beforeSetup: function(effect) { effect.element.makePositioned().makeClipping(); }, afterFinishInternal: function(effect) { = effect.element.hide().undoClipping().undoPositioned().setStyle({opacity: = oldOpacity}); } }); } }, arguments[1] || { })); }; Effect.DropOut =3D function(element) { element =3D $(element); var oldStyle =3D { top: element.getStyle('top'), left: element.getStyle('left'), opacity: element.getInlineOpacity() }; return new Effect.Parallel( [ new Effect.Move(element, {x: 0, y: 100, sync: true }), new Effect.Opacity(element, { sync: true, to: 0.0 }) ], Object.extend( { duration: 0.5, beforeSetup: function(effect) { effect.effects[0].element.makePositioned(); }, afterFinishInternal: function(effect) { = effect.effects[0].element.hide().undoPositioned().setStyle(oldStyle); } }, arguments[1] || { })); }; Effect.Shake =3D function(element) { element =3D $(element); var options =3D Object.extend({ distance: 20, duration: 0.5 }, arguments[1] || {}); var distance =3D parseFloat(options.distance); var split =3D parseFloat(options.duration) / 10.0; var oldStyle =3D { top: element.getStyle('top'), left: element.getStyle('left') }; return new Effect.Move(element, { x: distance, y: 0, duration: split, afterFinishInternal: = function(effect) { new Effect.Move(effect.element, { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: = function(effect) { new Effect.Move(effect.element, { x: distance*2, y: 0, duration: split*2, afterFinishInternal: = function(effect) { new Effect.Move(effect.element, { x: -distance*2, y: 0, duration: split*2, afterFinishInternal: = function(effect) { new Effect.Move(effect.element, { x: distance*2, y: 0, duration: split*2, afterFinishInternal: = function(effect) { new Effect.Move(effect.element, { x: -distance, y: 0, duration: split, afterFinishInternal: = function(effect) { effect.element.undoPositioned().setStyle(oldStyle); }}); }}); }}); }}); }}); }}); }; Effect.SlideDown =3D function(element) { element =3D $(element).cleanWhitespace(); // SlideDown need to have the content of the element wrapped in a = container element with fixed height! var oldInnerBottom =3D element.down().getStyle('bottom'); var elementDimensions =3D element.getDimensions(); return new Effect.Scale(element, 100, Object.extend({ scaleContent: false, scaleX: false, scaleFrom: window.opera ? 0 : 1, scaleMode: {originalHeight: elementDimensions.height, originalWidth: = elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makePositioned(); effect.element.down().makePositioned(); if (window.opera) effect.element.setStyle({top: ''}); effect.element.makeClipping().setStyle({height: '0px'}).show(); }, afterUpdateInternal: function(effect) { effect.element.down().setStyle({bottom: (effect.dims[0] - effect.element.clientHeight) + 'px' }); }, afterFinishInternal: function(effect) { effect.element.undoClipping().undoPositioned(); effect.element.down().undoPositioned().setStyle({bottom: = oldInnerBottom}); } }, arguments[1] || { }) ); }; Effect.SlideUp =3D function(element) { element =3D $(element).cleanWhitespace(); var oldInnerBottom =3D element.down().getStyle('bottom'); var elementDimensions =3D element.getDimensions(); return new Effect.Scale(element, window.opera ? 0 : 1, Object.extend({ scaleContent: false, scaleX: false, scaleMode: 'box', scaleFrom: 100, scaleMode: {originalHeight: elementDimensions.height, originalWidth: = elementDimensions.width}, restoreAfterFinish: true, afterSetup: function(effect) { effect.element.makePositioned(); effect.element.down().makePositioned(); if (window.opera) effect.element.setStyle({top: ''}); effect.element.makeClipping().show(); }, afterUpdateInternal: function(effect) { effect.element.down().setStyle({bottom: (effect.dims[0] - effect.element.clientHeight) + 'px' }); }, afterFinishInternal: function(effect) { effect.element.hide().undoClipping().undoPositioned(); effect.element.down().undoPositioned().setStyle({bottom: = oldInnerBottom}); } }, arguments[1] || { }) ); }; // Bug in opera makes the TD containing this element expand for a = instance after finish Effect.Squish =3D function(element) { return new Effect.Scale(element, window.opera ? 1 : 0, { restoreAfterFinish: true, beforeSetup: function(effect) { effect.element.makeClipping(); }, afterFinishInternal: function(effect) { effect.element.hide().undoClipping(); } }); }; Effect.Grow =3D function(element) { element =3D $(element); var options =3D Object.extend({ direction: 'center', moveTransition: Effect.Transitions.sinoidal, scaleTransition: Effect.Transitions.sinoidal, opacityTransition: Effect.Transitions.full }, arguments[1] || { }); var oldStyle =3D { top: element.style.top, left: element.style.left, height: element.style.height, width: element.style.width, opacity: element.getInlineOpacity() }; var dims =3D element.getDimensions(); var initialMoveX, initialMoveY; var moveX, moveY; switch (options.direction) { case 'top-left': initialMoveX =3D initialMoveY =3D moveX =3D moveY =3D 0; break; case 'top-right': initialMoveX =3D dims.width; initialMoveY =3D moveY =3D 0; moveX =3D -dims.width; break; case 'bottom-left': initialMoveX =3D moveX =3D 0; initialMoveY =3D dims.height; moveY =3D -dims.height; break; case 'bottom-right': initialMoveX =3D dims.width; initialMoveY =3D dims.height; moveX =3D -dims.width; moveY =3D -dims.height; break; case 'center': initialMoveX =3D dims.width / 2; initialMoveY =3D dims.height / 2; moveX =3D -dims.width / 2; moveY =3D -dims.height / 2; break; } return new Effect.Move(element, { x: initialMoveX, y: initialMoveY, duration: 0.01, beforeSetup: function(effect) { effect.element.hide().makeClipping().makePositioned(); }, afterFinishInternal: function(effect) { new Effect.Parallel( [ new Effect.Opacity(effect.element, { sync: true, to: 1.0, = from: 0.0, transition: options.opacityTransition }), new Effect.Move(effect.element, { x: moveX, y: moveY, sync: = true, transition: options.moveTransition }), new Effect.Scale(effect.element, 100, { scaleMode: { originalHeight: dims.height, originalWidth: = dims.width }, sync: true, scaleFrom: window.opera ? 1 : 0, transition: = options.scaleTransition, restoreAfterFinish: true}) ], Object.extend({ beforeSetup: function(effect) { effect.effects[0].element.setStyle({height: = '0px'}).show(); }, afterFinishInternal: function(effect) { = effect.effects[0].element.undoClipping().undoPositioned().setStyle(oldSty= le); } }, options) ); } }); }; Effect.Shrink =3D function(element) { element =3D $(element); var options =3D Object.extend({ direction: 'center', moveTransition: Effect.Transitions.sinoidal, scaleTransition: Effect.Transitions.sinoidal, opacityTransition: Effect.Transitions.none }, arguments[1] || { }); var oldStyle =3D { top: element.style.top, left: element.style.left, height: element.style.height, width: element.style.width, opacity: element.getInlineOpacity() }; var dims =3D element.getDimensions(); var moveX, moveY; switch (options.direction) { case 'top-left': moveX =3D moveY =3D 0; break; case 'top-right': moveX =3D dims.width; moveY =3D 0; break; case 'bottom-left': moveX =3D 0; moveY =3D dims.height; break; case 'bottom-right': moveX =3D dims.width; moveY =3D dims.height; break; case 'center': moveX =3D dims.width / 2; moveY =3D dims.height / 2; break; } return new Effect.Parallel( [ new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0, = transition: options.opacityTransition }), new Effect.Scale(element, window.opera ? 1 : 0, { sync: true, = transition: options.scaleTransition, restoreAfterFinish: true}), new Effect.Move(element, { x: moveX, y: moveY, sync: true, = transition: options.moveTransition }) ], Object.extend({ beforeStartInternal: function(effect) { effect.effects[0].element.makePositioned().makeClipping(); }, afterFinishInternal: function(effect) { = effect.effects[0].element.hide().undoClipping().undoPositioned().setStyle= (oldStyle); } }, options) ); }; Effect.Pulsate =3D function(element) { element =3D $(element); var options =3D arguments[1] || { }, oldOpacity =3D element.getInlineOpacity(), transition =3D options.transition || Effect.Transitions.linear, reverser =3D function(pos){ return 1 - = transition((-Math.cos((pos*(options.pulses||5)*2)*Math.PI)/2) + .5); }; return new Effect.Opacity(element, Object.extend(Object.extend({ duration: 2.0, from: 0, afterFinishInternal: function(effect) { = effect.element.setStyle({opacity: oldOpacity}); } }, options), {transition: reverser})); }; Effect.Fold =3D function(element) { element =3D $(element); var oldStyle =3D { top: element.style.top, left: element.style.left, width: element.style.width, height: element.style.height }; element.makeClipping(); return new Effect.Scale(element, 5, Object.extend({ scaleContent: false, scaleX: false, afterFinishInternal: function(effect) { new Effect.Scale(element, 1, { scaleContent: false, scaleY: false, afterFinishInternal: function(effect) { effect.element.hide().undoClipping().setStyle(oldStyle); } }); }}, arguments[1] || { })); }; Effect.Morph =3D Class.create(Effect.Base, { initialize: function(element) { this.element =3D $(element); if (!this.element) throw(Effect._elementDoesNotExistError); var options =3D Object.extend({ style: { } }, arguments[1] || { }); if (!Object.isString(options.style)) this.style =3D = $H(options.style); else { if (options.style.include(':')) this.style =3D options.style.parseStyle(); else { this.element.addClassName(options.style); this.style =3D $H(this.element.getStyles()); this.element.removeClassName(options.style); var css =3D this.element.getStyles(); this.style =3D this.style.reject(function(style) { return style.value =3D=3D css[style.key]; }); options.afterFinishInternal =3D function(effect) { effect.element.addClassName(effect.options.style); effect.transforms.each(function(transform) { effect.element.style[transform.style] =3D ''; }); }; } } this.start(options); }, setup: function(){ function parseColor(color){ if (!color || ['rgba(0, 0, 0, 0)','transparent'].include(color)) = color =3D '#ffffff'; color =3D color.parseColor(); return $R(0,2).map(function(i){ return parseInt( color.slice(i*2+1,i*2+3), 16 ); }); } this.transforms =3D this.style.map(function(pair){ var property =3D pair[0], value =3D pair[1], unit =3D null; if (value.parseColor('#zzzzzz') !=3D '#zzzzzz') { value =3D value.parseColor(); unit =3D 'color'; } else if (property =3D=3D 'opacity') { value =3D parseFloat(value); if (Prototype.Browser.IE && = (!this.element.currentStyle.hasLayout)) this.element.setStyle({zoom: 1}); } else if (Element.CSS_LENGTH.test(value)) { var components =3D value.match(/^([\+\-]?[0-9\.]+)(.*)$/); value =3D parseFloat(components[1]); unit =3D (components.length =3D=3D 3) ? components[2] : null; } var originalValue =3D this.element.getStyle(property); return { style: property.camelize(), originalValue: unit=3D=3D'color' ? parseColor(originalValue) : = parseFloat(originalValue || 0), targetValue: unit=3D=3D'color' ? parseColor(value) : value, unit: unit }; }.bind(this)).reject(function(transform){ return ( (transform.originalValue =3D=3D transform.targetValue) || ( transform.unit !=3D 'color' && (isNaN(transform.originalValue) || = isNaN(transform.targetValue)) ) ); }); }, update: function(position) { var style =3D { }, transform, i =3D this.transforms.length; while(i-- ) style[(transform =3D this.transforms[i]).style] =3D transform.unit=3D=3D'color' ? '#'+ (Math.round(transform.originalValue[0]+ = (transform.targetValue[0]-transform.originalValue[0])*position)).toColorP= art() + (Math.round(transform.originalValue[1]+ = (transform.targetValue[1]-transform.originalValue[1])*position)).toColorP= art() + (Math.round(transform.originalValue[2]+ = (transform.targetValue[2]-transform.originalValue[2])*position)).toColorP= art() : (transform.originalValue + (transform.targetValue - transform.originalValue) * = position).toFixed(3) + (transform.unit =3D=3D=3D null ? '' : transform.unit); this.element.setStyle(style, true); } }); Effect.Transform =3D Class.create({ initialize: function(tracks){ this.tracks =3D []; this.options =3D arguments[1] || { }; this.addTracks(tracks); }, addTracks: function(tracks){ tracks.each(function(track){ track =3D $H(track); var data =3D track.values().first(); this.tracks.push($H({ ids: track.keys().first(), effect: Effect.Morph, options: { style: data } })); }.bind(this)); return this; }, play: function(){ return new Effect.Parallel( this.tracks.map(function(track){ var ids =3D track.get('ids'), effect =3D track.get('effect'), = options =3D track.get('options'); var elements =3D [$(ids) || $$(ids)].flatten(); return elements.map(function(e){ return new effect(e, = Object.extend({ sync:true }, options)) }); }).flatten(), this.options ); } }); Element.CSS_PROPERTIES =3D $w( 'backgroundColor backgroundPosition borderBottomColor = borderBottomStyle ' + 'borderBottomWidth borderLeftColor borderLeftStyle borderLeftWidth ' + 'borderRightColor borderRightStyle borderRightWidth borderSpacing ' + 'borderTopColor borderTopStyle borderTopWidth bottom clip color ' + 'fontSize fontWeight height left letterSpacing lineHeight ' + 'marginBottom marginLeft marginRight marginTop markerOffset maxHeight = '+ 'maxWidth minHeight minWidth opacity outlineColor outlineOffset ' + 'outlineWidth paddingBottom paddingLeft paddingRight paddingTop ' + 'right textIndent top width wordSpacing zIndex'); Element.CSS_LENGTH =3D = /^(([\+\-]?[0-9\.]+)(em|ex|px|in|cm|mm|pt|pc|\%))|0$/; String.__parseStyleElement =3D document.createElement('div'); String.prototype.parseStyle =3D function(){ var style, styleRules =3D $H(); if (Prototype.Browser.WebKit) style =3D new Element('div',{style:this}).style; else { String.__parseStyleElement.innerHTML =3D '<div style=3D"' + this + = '"></div>'; style =3D String.__parseStyleElement.childNodes[0].style; } Element.CSS_PROPERTIES.each(function(property){ if (style[property]) styleRules.set(property, style[property]); }); if (Prototype.Browser.IE && this.include('opacity')) styleRules.set('opacity', = this.match(/opacity:\s*((?:0|1)?(?:\.\d*)?)/)[1]); return styleRules; }; if (document.defaultView && document.defaultView.getComputedStyle) { Element.getStyles =3D function(element) { var css =3D document.defaultView.getComputedStyle($(element), null); return Element.CSS_PROPERTIES.inject({ }, function(styles, property) = { styles[property] =3D css[property]; return styles; }); }; } else { Element.getStyles =3D function(element) { element =3D $(element); var css =3D element.currentStyle, styles; styles =3D Element.CSS_PROPERTIES.inject({ }, function(results, = property) { results[property] =3D css[property]; return results; }); if (!styles.opacity) styles.opacity =3D element.getOpacity(); return styles; }; } Effect.Methods =3D { morph: function(element, style) { element =3D $(element); new Effect.Morph(element, Object.extend({ style: style }, = arguments[2] || { })); return element; }, visualEffect: function(element, effect, options) { element =3D $(element); var s =3D effect.dasherize().camelize(), klass =3D = s.charAt(0).toUpperCase() + s.substring(1); new Effect[klass](element, options); return element; }, highlight: function(element, options) { element =3D $(element); new Effect.Highlight(element, options); return element; } }; $w('fade appear grow shrink fold blindUp blindDown slideUp slideDown '+ 'pulsate shake puff squish switchOff dropOut').each( function(effect) { Effect.Methods[effect] =3D function(element, options){ element =3D $(element); Effect[effect.charAt(0).toUpperCase() + = effect.substring(1)](element, options); return element; }; } ); $w('getInlineOpacity forceRerendering setContentZoom collectTextNodes = collectTextNodesIgnoreClass getStyles').each( function(f) { Effect.Methods[f] =3D Element[f]; } ); Element.addMethods(Effect.Methods);=0A= /* /assets/731238022b09c33a/core/tapestry.js */;=0A= /* Copyright 2007, 2008, 2009, 2010, 2011 The Apache Software Foundation=0A= *=0A= * Licensed under the Apache License, Version 2.0 (the "License");=0A= * you may not use this file except in compliance with the License.=0A= * You may obtain a copy of the License at=0A= *=0A= * http://www.apache.org/licenses/LICENSE-2.0=0A= *=0A= * Unless required by applicable law or agreed to in writing, software=0A= * distributed under the License is distributed on an "AS IS" BASIS,=0A= * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or = implied.=0A= * See the License for the specific language governing permissions and=0A= * limitations under the License.=0A= */=0A= =0A= var Tapestry =3D {=0A= =0A= /**=0A= * Event that allows observers to perform cross-form validation after=0A= * individual fields have performed their validation. The form element = is=0A= * passed as the event memo. Observers may set the validationError = property=0A= * of the Form's Tapestry object to true (which will prevent form=0A= * submission).=0A= */=0A= FORM_VALIDATE_EVENT : "tapestry:formvalidate",=0A= =0A= /**=0A= * Event fired just before the form submits, to allow observers to make=0A= * final preparations for the submission, such as updating hidden form=0A= * fields. The form element is passed as the event memo.=0A= */=0A= FORM_PREPARE_FOR_SUBMIT_EVENT : "tapestry:formprepareforsubmit",=0A= =0A= /**=0A= * Form event fired after prepare.=0A= */=0A= FORM_PROCESS_SUBMIT_EVENT : "tapestry:formprocesssubmit",=0A= =0A= /**=0A= * Event, fired on a field element, to cause observers to validate the=0A= * input. Passes a memo object with two keys: "value" (the raw input = value)=0A= * and "translated" (the parsed value, usually meaning a number parsed = from=0A= * a string). Observers may invoke Element.showValidationMessage() to=0A= * identify that the field is in error (and decorate the field and show = a=0A= * popup error message).=0A= */=0A= FIELD_VALIDATE_EVENT : "tapestry:fieldvalidate",=0A= =0A= /**=0A= * Event notification, on a form object, that is used to trigger = validation=0A= * on all fields within the form (observed by each field's=0A= * Tapestry.FieldEventManager).=0A= */=0A= FORM_VALIDATE_FIELDS_EVENT : "tapestry:validatefields",=0A= =0A= /**=0A= * Event, fired on the document object, which identifies the current = focus=0A= * input element.=0A= */=0A= FOCUS_CHANGE_EVENT : "tapestry:focuschange",=0A= =0A= /** Event, fired on a zone element when the zone is updated with new = content. */=0A= ZONE_UPDATED_EVENT : "tapestry:zoneupdated",=0A= =0A= /**=0A= * Event fired on a form fragment element to change the visibility of = the=0A= * fragment. The event memo object includes a key, visible, that should = be=0A= * true or false.=0A= */=0A= CHANGE_VISIBILITY_EVENT : "tapestry:changevisibility",=0A= =0A= /**=0A= * Event fired on a form fragment element to hide the element and = remove it=0A= * from the DOM.=0A= */=0A= HIDE_AND_REMOVE_EVENT : "tapestry:hideandremove",=0A= =0A= /**=0A= * Event fired on a link or submit to request that it request that the=0A= * correct ZoneManager update from a provided URL.=0A= */=0A= TRIGGER_ZONE_UPDATE_EVENT : "tapestry:triggerzoneupdate",=0A= =0A= /** Event used when intercepting and canceling the normal click event. = */=0A= ACTION_EVENT : "tapestry:action",=0A= =0A= /** When false, the default, the Tapestry.debug() function will be a = no-op. */=0A= DEBUG_ENABLED : false,=0A= =0A= /** Time, in seconds, that console messages are visible. */=0A= CONSOLE_DURATION : 10,=0A= =0A= /**=0A= * CSS Class added to a <form> element that directs Tapestry to prevent=0A= * normal (HTTP POST) form submission, in favor of Ajax (XmlHttpRequest)=0A= * submission.=0A= */=0A= PREVENT_SUBMISSION : "t-prevent-submission",=0A= =0A= /** Initially, false, set to true once the page is fully loaded. */=0A= pageLoaded : false,=0A= =0A= /**=0A= * Invoked from onclick event handlers built into links and forms. = Raises a=0A= * dialog if the page is not yet fully loaded.=0A= */=0A= waitForPage : function(event) {=0A= if (Tapestry.pageLoaded)=0A= return true;=0A= =0A= Event.extend(event || window.event).stop();=0A= =0A= var body =3D $(document.body);=0A= =0A= /*=0A= * The overlay is stretched to cover the full screen (including=0A= * scrolling areas) and is used to fade out the background ... and=0A= * prevent keypresses (its z-order helps there).=0A= */=0A= var overlay =3D new Element("div", {=0A= 'class' : 't-dialog-overlay'=0A= });=0A= overlay.setOpacity(0.0);=0A= =0A= body.insert( {=0A= top : overlay=0A= });=0A= =0A= new Effect.Appear(overlay, {=0A= duration : 0.2,=0A= from : 0.0=0A= });=0A= =0A= var messageDiv =3D new Element("div", {=0A= 'class' : 't-page-loading-banner'=0A= }).update(Tapestry.Messages.pageIsLoading);=0A= overlay.insert( {=0A= top : messageDiv=0A= });=0A= =0A= var hideDialog =3D function() {=0A= new Effect.Fade(overlay, {=0A= duration : 0.2,=0A= afterFinish : function() {=0A= Tapestry.remove(overlay);=0A= }=0A= });=0A= };=0A= =0A= document.observe("dom:loaded", hideDialog);=0A= =0A= /* A rare race condition. */=0A= =0A= if (Tapestry.pageLoaded) {=0A= hideDialog.call(null);=0A= =0A= return true;=0A= } else {=0A= return false;=0A= }=0A= =0A= },=0A= =0A= /**=0A= * Adds a callback function that will be invoked when the DOM is loaded=0A= * (which occurs *before* window.onload, which has to wait for images = and=0A= * such to load first. This simply observes the dom:loaded event on the=0A= * document object (support for which is provided by Prototype).=0A= */=0A= onDOMLoaded : function(callback) {=0A= document.observe("dom:loaded", callback);=0A= },=0A= =0A= /**=0A= * Find all elements marked with the "t-invisible" CSS class and hide()s=0A= * them, so that Prototype's visible() method operates correctly. In=0A= * addition, finds form control elements and adds additional listeners = to=0A= * them to support form field input validation.=0A= * =0A= * <p>=0A= * This is invoked when the DOM is first loaded, and AGAIN whenever = dynamic=0A= * content is loaded via the Zone mechanism.=0A= */=0A= onDomLoadedCallback : function() {=0A= =0A= Tapestry.pageLoaded =3D true;=0A= =0A= Tapestry.ScriptManager.initialize();=0A= =0A= $$(".t-invisible").each(function(element) {=0A= element.hide();=0A= element.removeClassName("t-invisible");=0A= });=0A= =0A= /*=0A= * Adds a focus observer that fades all error popups except for the=0A= * field in question.=0A= */=0A= $$("INPUT", "SELECT", "TEXTAREA").each(function(element) {=0A= /*=0A= * Due to Ajax, we may execute the callback multiple times, and we=0A= * don't want to add multiple listeners to the same element.=0A= */=0A= var t =3D $T(element);=0A= =0A= if (!t.observingFocusChange) {=0A= element.observe("focus", function() {=0A= if (element !=3D Tapestry.currentFocusField) {=0A= document.fire(Tapestry.FOCUS_CHANGE_EVENT, element);=0A= =0A= Tapestry.currentFocusField =3D element;=0A= }=0A= });=0A= =0A= t.observingFocusChange =3D true;=0A= }=0A= });=0A= =0A= /*=0A= * When a submit element is clicked, record the name of the element = into=0A= * the associated form. This is necessary for some Ajax processing, see=0A= * TAPESTRY-2324.=0A= */=0A= $$("INPUT[type=3Dsubmit]").each(function(element) {=0A= var t =3D $T(element);=0A= =0A= if (!t.trackingClicks) {=0A= element.observe("click", function() {=0A= $(element.form).setSubmittingElement(element);=0A= });=0A= =0A= t.trackingClicks =3D true;=0A= }=0A= });=0A= },=0A= =0A= /*=0A= * Generalized initialize function for Tapestry, used to help minimize = the=0A= * amount of JavaScript for the page by removing redundancies such as=0A= * repeated Object and method names. The spec is a hash whose keys are = the=0A= * names of methods of the Tapestry.Initializer object. The value is an=0A= * array of arrays. The outer arrays represent invocations of the = method.=0A= * The inner array are the parameters for each invocation. As an=0A= * optimization, the inner value may not be an array but instead a = single=0A= * value.=0A= */=0A= init : function(spec) {=0A= $H(spec).each(function(pair) {=0A= var functionName =3D pair.key;=0A= =0A= var initf =3D Tapestry.Initializer[functionName];=0A= =0A= if (initf =3D=3D undefined) {=0A= Tapestry.error(Tapestry.Messages.missingInitializer, {=0A= name : functionName=0A= });=0A= return;=0A= }=0A= =0A= pair.value.each(function(parameterList) {=0A= if (!Object.isArray(parameterList)) {=0A= parameterList =3D [ parameterList ];=0A= }=0A= =0A= try {=0A= initf.apply(this, parameterList);=0A= } catch (e) {=0A= Tapestry.error(Tapestry.Messages.invocationException, {=0A= fname : "Tapestry.Initializer." + functionName,=0A= params : Object.toJSON(parameterList),=0A= exception : e=0A= });=0A= }=0A= });=0A= });=0A= },=0A= =0A= /** Formats and displays an error message on the console. */=0A= error : function(message, substitutions) {=0A= Tapestry.invokeLogger(message, substitutions, Tapestry.Logging.error);=0A= },=0A= =0A= /** Formats and displays a warning on the console. */=0A= warn : function(message, substitutions) {=0A= Tapestry.invokeLogger(message, substitutions, Tapestry.Logging.warn);=0A= },=0A= =0A= /** Formats and displays a debug message on the console. */=0A= debug : function(message, substitutions) {=0A= Tapestry.invokeLogger(message, substitutions, Tapestry.Logging.debug);=0A= },=0A= =0A= invokeLogger : function(message, substitutions, loggingFunction) {=0A= if (substitutions !=3D undefined)=0A= message =3D message.interpolate(substitutions);=0A= =0A= loggingFunction.call(this, message);=0A= },=0A= =0A= /**=0A= * Passed the JSON content of a Tapestry partial markup response, = extracts=0A= * the script and stylesheet information. JavaScript libraries and=0A= * stylesheets are loaded, then the callback is invoked. All three keys = are=0A= * optional:=0A= * <dl>=0A= * <dt>redirectURL</dt>=0A= * <dd>URL to redirect to (in which case, the callback is not = invoked)</dd>=0A= * <dt>inits</dt>=0A= * <dd>Defines a set of calls to Tapestry.init() to perform = initialization=0A= * after the DOM has been updated.</dd>=0A= * <dt>stylesheets</dt>=0A= * <dd>Array of hashes, each hash has key href and optional key = media</dd>=0A= * =0A= * @param reply=0A= * JSON response object from the server=0A= * @param callback=0A= * function invoked after the scripts have all loaded=0A= * (presumably, to update the DOM)=0A= */=0A= loadScriptsInReply : function(reply, callback) {=0A= var redirectURL =3D reply.redirectURL;=0A= =0A= if (redirectURL) {=0A= window.location.href =3D redirectURL;=0A= =0A= /* Don't bother loading scripts or invoking the callback. */=0A= =0A= return;=0A= }=0A= =0A= Tapestry.ScriptManager.addStylesheets(reply.stylesheets);=0A= =0A= Tapestry.ScriptManager.addScripts(reply.scripts, function() {=0A= /* Let the caller do its thing first (i.e., modify the DOM). */=0A= callback.call(this);=0A= =0A= /* And handle the scripts after the DOM is updated. */=0A= Tapestry.executeInits(reply.inits);=0A= });=0A= },=0A= =0A= /**=0A= * Called from Tapestry.loadScriptsInReply to load any initializations = from=0A= * the Ajax partial page render response. Calls=0A= * Tapestry.onDomLoadedCallback() last. This logic must be deferred = until=0A= * after the DOM is fully updated, as initialization often refer to DOM=0A= * elements.=0A= * =0A= * @param initializations=0A= * array of parameters to pass to Tapestry.init(), one = invocation=0A= * per element (may be null)=0A= */=0A= executeInits : function(initializations) {=0A= =0A= $A(initializations).each(function(spec) {=0A= Tapestry.init(spec);=0A= });=0A= =0A= Tapestry.onDomLoadedCallback();=0A= },=0A= =0A= /**=0A= * Default function for handling a communication error during an Ajax=0A= * request.=0A= */=0A= ajaxExceptionHander : function(response, exception) {=0A= Tapestry.error(Tapestry.Messages.communicationFailed + exception);=0A= =0A= Tapestry.debug(Tapestry.Messages.ajaxFailure + exception, response);=0A= =0A= throw exception;=0A= },=0A= =0A= /**=0A= * Default function for handling Ajax-related failures.=0A= */=0A= ajaxFailureHandler : function(response) {=0A= var rawMessage =3D response.getHeader("X-Tapestry-ErrorMessage");=0A= =0A= var message =3D unescape(rawMessage).escapeHTML();=0A= =0A= Tapestry.error(Tapestry.Messages.communicationFailed + message);=0A= =0A= Tapestry.debug(Tapestry.Messages.ajaxFailure + message, response);=0A= },=0A= =0A= /**=0A= * Processes a typical Ajax request for a URL. In the simple case, a = success=0A= * handler is provided (as options). In a more complex case, an options=0A= * object is provided, with keys as per Ajax.Request. The onSuccess key = will=0A= * be overwritten, and defaults for onException and onFailure will be=0A= * provided. The handler should take up-to two parameters: the=0A= * XMLHttpRequest object itself, and the JSON Response (from the X-JSON=0A= * response header, usually null).=0A= * =0A= * @param url=0A= * of Ajax request=0A= * @param options=0A= * either a success handler=0A= * @return the Ajax.Request object=0A= */=0A= ajaxRequest : function(url, options) {=0A= =0A= if (Object.isFunction(options)) {=0A= return Tapestry.ajaxRequest(url, {=0A= onSuccess : options=0A= });=0A= }=0A= =0A= var successHandler =3D options.onSuccess || Prototype.emptyFunction;=0A= =0A= var finalOptions =3D $H( {=0A= onException : Tapestry.ajaxExceptionHandler,=0A= onFailure : Tapestry.ajaxFailureHandler=0A= }).update(options).update( {=0A= onSuccess : function(response, jsonResponse) {=0A= /*=0A= * When the page is unloaded, pending Ajax requests appear to=0A= * terminate as successful (but with no reply value). Since=0A= * we're trying to navigate to a new page anyway, we just ignore=0A= * those false success callbacks. We have a listener for the=0A= * window's "beforeunload" event that sets this flag.=0A= */=0A= if (Tapestry.windowUnloaded)=0A= return;=0A= =0A= /*=0A= * Prototype treats status =3D=3D 0 as success, even though it seems=0A= * to mean the server didn't respond.=0A= */=0A= if (!response.getStatus() || !response.request.success()) {=0A= finalOptions.onFailure.call(this, response);=0A= return;=0A= }=0A= =0A= try {=0A= /* Re-invoke the success handler, capturing any exceptions. */=0A= successHandler.call(this, response, jsonResponse);=0A= } catch (e) {=0A= finalOptions.onException.call(this, ajaxRequest, e);=0A= }=0A= }=0A= });=0A= =0A= var ajaxRequest =3D new Ajax.Request(url, finalOptions.toObject());=0A= =0A= return ajaxRequest;=0A= },=0A= =0A= /**=0A= * Obtains the Tapestry.ZoneManager object associated with a triggering=0A= * element (an <a> or <form>) configured to update a zone. Writes = errors to=0A= * the AjaxConsole if the zone and ZoneManager can not be resolved.=0A= * =0A= * @param element=0A= * triggering element (id or instance)=0A= * @return Tapestry.ZoneManager instance for updated zone, or null if = not=0A= * found.=0A= */=0A= findZoneManager : function(element) {=0A= var zoneId =3D $T(element).zoneId;=0A= =0A= return Tapestry.findZoneManagerForZone(zoneId);=0A= },=0A= =0A= /**=0A= * Obtains the Tapestry.ZoneManager object associated with a zone = element=0A= * (usually a <div>). Writes errors to the Ajax console if the element = or=0A= * manager can not be resolved.=0A= * =0A= * @param zoneElement=0A= * zone element (id or instance)=0A= * @return Tapestry.ZoneManager instance for zone, or null if not found=0A= */=0A= findZoneManagerForZone : function(zoneElement) {=0A= var element =3D $(zoneElement);=0A= =0A= if (!element) {=0A= Tapestry.error(Tapestry.Messages.missingZone, {=0A= id : zoneElement=0A= });=0A= return null;=0A= }=0A= =0A= var manager =3D $T(element).zoneManager;=0A= =0A= if (!manager) {=0A= Tapestry.error(Tapestry.Messages.noZoneManager, element);=0A= return null;=0A= }=0A= =0A= return manager;=0A= },=0A= =0A= /**=0A= * Used to reconstruct a complete URL from a path that is (or may be)=0A= * relative to window.location. This is used when determining if a=0A= * JavaScript library or CSS stylesheet has already been loaded. = Recognizes=0A= * complete URLs (which are returned unchanged), otherwise the URLs are=0A= * expected to be absolute paths.=0A= * =0A= * @param path=0A= * @return complete URL as string=0A= */=0A= rebuildURL : function(path) {=0A= if (path.match(/^https?:/)) {=0A= return path;=0A= }=0A= =0A= if (!path.startsWith("/")) {=0A= Tapestry.error(Tapestry.Messages.pathDoesNotStartWithSlash, {=0A= path : path=0A= });=0A= =0A= return path;=0A= }=0A= =0A= if (! Tapestry.buildURL) {=0A= var l =3D window.location;=0A= Tapestry.buildURL =3D l.protocol + "//" + l.host;=0A= }=0A= =0A= return Tapestry.buildURL + path;=0A= },=0A= =0A= stripToLastSlash : function(URL) {=0A= var slashx =3D URL.lastIndexOf("/");=0A= =0A= return URL.substring(0, slashx + 1);=0A= },=0A= =0A= /**=0A= * Convert a user-provided localized number to an ordinary number (not a=0A= * string). Removes seperators and leading/trailing whitespace. = Disallows=0A= * the decimal point if isInteger is true.=0A= * =0A= * @param number=0A= * string provided by user=0A= * @param isInteger=0A= * if true, disallow decimal point=0A= */=0A= formatLocalizedNumber : function(number, isInteger) {=0A= /*=0A= * We convert from localized string to a canonical string, stripping = out=0A= * group seperators (normally commas). If isInteger is true, we don't=0A= * allow a decimal point.=0A= */=0A= =0A= var minus =3D Tapestry.decimalFormatSymbols.minusSign;=0A= var grouping =3D Tapestry.decimalFormatSymbols.groupingSeparator;=0A= var decimal =3D Tapestry.decimalFormatSymbols.decimalSeparator;=0A= =0A= var canonical =3D "";=0A= =0A= number.strip().toArray().each(function(ch) {=0A= if (ch =3D=3D minus) {=0A= canonical +=3D "-";=0A= return;=0A= }=0A= =0A= if (ch =3D=3D grouping) {=0A= return;=0A= }=0A= =0A= if (ch =3D=3D decimal) {=0A= if (isInteger)=0A= throw Tapestry.Messages.notAnInteger;=0A= =0A= ch =3D ".";=0A= } else if (ch < "0" || ch > "9")=0A= throw Tapestry.Messages.invalidCharacter;=0A= =0A= canonical +=3D ch;=0A= });=0A= =0A= return Number(canonical);=0A= },=0A= =0A= /**=0A= * Marks a number of script libraries as loaded; this is used with = virtual=0A= * scripts (which combine multiple actual scripts). This is necessary so=0A= * that subsequent Ajax requests do not load scripts that have already = been=0A= * loaded=0A= * =0A= * @param scripts=0A= * array of script paths=0A= */=0A= markScriptLibrariesLoaded : function(scripts) {=0A= $(scripts).each(function(script) {=0A= var complete =3D Tapestry.rebuildURL(script);=0A= Tapestry.ScriptManager.virtualScripts.push(complete);=0A= });=0A= },=0A= =0A= /**=0A= * Creates a clone of the indicated element, but with the alternate tag=0A= * name. Attributes of the original node are copied to the new node. Tag=0A= * names should be all upper-case. The content of the original element = is=0A= * copied to the new element and the original element is removed. Event=0A= * observers on the original element will be lost.=0A= * =0A= * @param element=0A= * element or element id=0A= * @since 5.2.0=0A= */=0A= replaceElementTagName : function(element, newTagName) {=0A= =0A= element =3D $(element);=0A= =0A= var tag =3D element.tagName;=0A= =0A= /* outerHTML is IE only; this simulates it on any browser. */=0A= =0A= var dummy =3D document.createElement('html');=0A= dummy.appendChild(element.cloneNode(true));=0A= var outerHTML =3D dummy.innerHTML;=0A= =0A= var replaceHTML =3D outerHTML.replace(new RegExp("^<" + tag, "i"),=0A= "<" + newTagName).replace(new RegExp("</" + tag + ">$", "i"),=0A= "</" + newTagName + ">");=0A= =0A= element.insert( {=0A= before : replaceHTML=0A= });=0A= =0A= Tapestry.remove(element);=0A= },=0A= =0A= /**=0A= * Removes an element and all of its direct and indirect children. The=0A= * element is first purged, to ensure that Internet Explorer doesn't = leak=0A= * memory if event handlers associated with the element (or its = children)=0A= * have references back to the element.=0A= * =0A= * @since 5.2.0=0A= */=0A= remove : function(element) {=0A= Tapestry.purge(element);=0A= =0A= Element.remove(element);=0A= },=0A= =0A= /**=0A= * Purges the element of any event handlers (necessary in IE to ensure = that=0A= * memory leaks do not occur, and harmless in other browsers). The = element=0A= * is purged, then any children of the element are purged.=0A= */=0A= purge : function(element) {=0A= =0A= /* Adapted from http://javascript.crockford.com/memory/leak.html */=0A= var attrs =3D element.attributes;=0A= if (attrs) {=0A= var i, name;=0A= for (i =3D attrs.length - 1; i >=3D 0; i-- ) {=0A= if (attrs[i]) {=0A= name =3D attrs[i].name;=0A= /* Looking for onclick, etc. */=0A= if (typeof element[name] =3D=3D 'function') {=0A= element[name] =3D null;=0A= }=0A= }=0A= }=0A= }=0A= =0A= /* Get rid of any Prototype event handlers as well. */=0A= Event.stopObserving(element);=0A= =0A= Tapestry.purgeChildren(element);=0A= },=0A= =0A= /**=0A= * Invokes purge() on all the children of the element.=0A= */=0A= purgeChildren : function(element) {=0A= =0A= var children =3D element.childNodes;=0A= =0A= if (children) {=0A= var l =3D children.length, i, child;=0A= =0A= for (i =3D 0; i < l; i++) {=0A= var child =3D children[i];=0A= =0A= /* Just purge element nodes, not text, etc. */=0A= if (child.nodeType =3D=3D 1)=0A= Tapestry.purge(children[i]);=0A= }=0A= }=0A= }=0A= };=0A= =0A= Element.addMethods( {=0A= =0A= /**=0A= * Works upward from the element, checking to see if the element is = visible.=0A= * Returns false if it finds an invisible container. Returns true if it=0A= * makes it as far as a (visible) FORM element.=0A= * =0A= * Note that this only applies to the CSS definition of visible; it = doesn't=0A= * check that the element is scrolled into view.=0A= * =0A= * @param element=0A= * to search up from=0A= * @return true if visible (and containers visible), false if it or=0A= * container are not visible=0A= */=0A= isDeepVisible : function(element) {=0A= var current =3D $(element);=0A= =0A= while (true) {=0A= if (!current.visible())=0A= return false;=0A= =0A= if (current.tagName =3D=3D "FORM")=0A= break;=0A= =0A= current =3D $(current.parentNode);=0A= }=0A= =0A= return true;=0A= },=0A= =0A= /**=0A= * Observes an event and turns it into a Tapestry.ACTION_EVENT. The = original=0A= * event is stopped. The original event object is passed as the memo = when=0A= * the action event is fired. This allows the logic for clicking an = element=0A= * to be separated from the logic for processing that click event, = which is=0A= * often useful when the click logic needs to be intercepted, or when = the=0A= * action logic needs to be triggered outside the context of a DOM = event.=0A= * =0A= * $T(element).hasAction will be true after invoking this method.=0A= * =0A= * @param element=0A= * to observe events from=0A= * @param eventName=0A= * name of event to observer, typically "click"=0A= * @param handler=0A= * function to be invoked; it will be registered as a = observer of=0A= * the Tapestry.ACTION_EVENT.=0A= */=0A= observeAction : function(element, eventName, handler) {=0A= element.observe(eventName, function(event) {=0A= =0A= event.stop();=0A= =0A= element.fire(Tapestry.ACTION_EVENT, event);=0A= });=0A= =0A= element.observe(Tapestry.ACTION_EVENT, handler);=0A= =0A= $T(element).hasAction =3D true;=0A= }=0A= });=0A= =0A= Element=0A= .addMethods(=0A= 'FORM',=0A= {=0A= /**=0A= * Gets the Tapestry.FormEventManager for the form.=0A= * =0A= * @param form=0A= * form element=0A= */=0A= getFormEventManager : function(form) {=0A= form =3D $(form);=0A= =0A= var manager =3D $T(form).formEventManager;=0A= =0A= if (manager =3D=3D undefined) {=0A= =0A= throw "No Tapestry.FormEventManager object has been created for = form '#{id}'."=0A= .interpolate(form);=0A= }=0A= =0A= return manager;=0A= },=0A= =0A= /**=0A= * Identifies in the form what is the cause of the=0A= * submission. The element's id is stored into the t:submit=0A= * hidden field (created as needed).=0A= * =0A= * @param form=0A= * to update=0A= * @param element=0A= * id or element that is the cause of the submit=0A= * (a Submit or LinkSubmit)=0A= */=0A= setSubmittingElement : function(form, element) {=0A= form.getFormEventManager()=0A= .setSubmittingElement(element);=0A= },=0A= =0A= /**=0A= * Turns off client validation for the next submission of=0A= * the form.=0A= */=0A= skipValidation : function(form) {=0A= $T(form).skipValidation =3D true;=0A= },=0A= =0A= /**=0A= * Programmatically perform a submit, invoking the onsubmit=0A= * event handler (if present) before calling form.submit().=0A= */=0A= performSubmit : function(form, event) {=0A= if (form.onsubmit =3D=3D undefined=0A= || form.onsubmit.call(window.document, event)) {=0A= form.submit();=0A= }=0A= },=0A= =0A= /**=0A= * Sends an Ajax request to the Form's action. This=0A= * encapsulates a few things, such as a default onFailure=0A= * handler, and working around bugs/features in Prototype=0A= * concerning how submit buttons are processed.=0A= * =0A= * @param form=0A= * used to define the data to be sent in the=0A= * request=0A= * @param options=0A= * standard Prototype Ajax Options=0A= * @return Ajax.Request the Ajax.Request created for the=0A= * request=0A= */=0A= sendAjaxRequest : function(form, url, options) {=0A= form =3D $(form);=0A= =0A= /*=0A= * Generally, options should not be null or missing,=0A= * because otherwise there's no way to provide any=0A= * callbacks!=0A= */=0A= options =3D Object.clone(options || {});=0A= =0A= /*=0A= * Find the elements, skipping over any submit buttons.=0A= * This works around bugs in Prototype 1.6.0.2.=0A= */=0A= var elements =3D form.getElements().reject(function(e) {=0A= return e.tagName =3D=3D "INPUT" && e.type =3D=3D "submit";=0A= });=0A= =0A= var hash =3D Form.serializeElements(elements, true);=0A= =0A= /*=0A= * Copy the parameters in, overwriting field values,=0A= * because Prototype 1.6.0.2 does not.=0A= */=0A= Object.extend(hash, options.parameters);=0A= =0A= options.parameters =3D hash;=0A= =0A= /*=0A= * Ajax.Request will convert the hash into a query=0A= * string and post it.=0A= */=0A= =0A= return Tapestry.ajaxRequest(url, options);=0A= }=0A= });=0A= =0A= Element.addMethods( [ 'INPUT', 'SELECT', 'TEXTAREA' ], {=0A= /**=0A= * Invoked on a form element (INPUT, SELECT, etc.), gets or creates the=0A= * Tapestry.FieldEventManager for that field.=0A= * =0A= * @param field=0A= * field element=0A= */=0A= getFieldEventManager : function(field) {=0A= field =3D $(field);=0A= var t =3D $T(field);=0A= =0A= var manager =3D t.fieldEventManager;=0A= =0A= if (manager =3D=3D undefined) {=0A= manager =3D new Tapestry.FieldEventManager(field);=0A= t.fieldEventManager =3D manager;=0A= }=0A= =0A= return manager;=0A= },=0A= =0A= /**=0A= * Obtains the Tapestry.FieldEventManager and asks it to show the = validation=0A= * message. Sets the validationError property of the elements tapestry=0A= * object to true.=0A= * =0A= * @param element=0A= * @param message=0A= * to display=0A= */=0A= showValidationMessage : function(element, message) {=0A= element =3D $(element);=0A= =0A= element.getFieldEventManager().showValidationMessage(message);=0A= =0A= return element;=0A= },=0A= =0A= /**=0A= * Removes any validation decorations on the field, and hides the error=0A= * popup (if any) for the field.=0A= */=0A= removeDecorations : function(element) {=0A= $(element).getFieldEventManager().removeDecorations();=0A= =0A= return element;=0A= },=0A= =0A= /**=0A= * Adds a standard validator for the element, an observer of=0A= * Tapestry.FIELD_VALIDATE_EVENT. The validator function will be passed = the=0A= * current field value and should throw an error message if the field's=0A= * value is not valid.=0A= * =0A= * @param element=0A= * field element to validate=0A= * @param validator=0A= * function to be passed the field value=0A= */=0A= addValidator : function(element, validator) {=0A= element.observe(Tapestry.FIELD_VALIDATE_EVENT, function(event) {=0A= try {=0A= validator.call(this, event.memo.translated);=0A= } catch (message) {=0A= element.showValidationMessage(message);=0A= }=0A= });=0A= =0A= return element;=0A= }=0A= });=0A= =0A= /** Container of functions that may be invoked by the Tapestry.init() = function. */=0A= Tapestry.Initializer =3D {=0A= =0A= /** Make the given field the active field (focus on the field). */=0A= activate : function(id) {=0A= $(id).activate();=0A= },=0A= =0A= /**=0A= * evalScript is a synonym for the JavaScript eval function. It is used = in=0A= * Ajax requests to handle any setup code that does not fit into a = standard=0A= * Tapestry.Initializer call.=0A= */=0A= evalScript : eval,=0A= =0A= ajaxFormLoop : function(spec) {=0A= var rowInjector =3D $(spec.rowInjector);=0A= =0A= $(spec.addRowTriggers).each(function(triggerId) {=0A= $(triggerId).observeAction("click", function(event) {=0A= $(rowInjector).trigger();=0A= });=0A= });=0A= },=0A= =0A= formLoopRemoveLink : function(spec) {=0A= var link =3D $(spec.link);=0A= var fragmentId =3D spec.fragment;=0A= =0A= link.observeAction("click", function(event) {=0A= var successHandler =3D function(transport) {=0A= var container =3D $(fragmentId);=0A= =0A= var effect =3D Tapestry.ElementEffect.fade(container);=0A= =0A= effect.options.afterFinish =3D function() {=0A= Tapestry.remove(container);=0A= }=0A= };=0A= =0A= Tapestry.ajaxRequest(spec.url, successHandler);=0A= });=0A= },=0A= =0A= /**=0A= * Convert a form or link into a trigger of an Ajax update that updates = the=0A= * indicated Zone.=0A= * =0A= * @param spec.linkId=0A= * id or instance of <form> or <a> element=0A= * @param spec.zoneId=0A= * id of the element to update when link clicked or form=0A= * submitted=0A= * @param spec.url=0A= * absolute component event request URL=0A= */=0A= linkZone : function(spec) {=0A= Tapestry.Initializer.updateZoneOnEvent("click", spec.linkId,=0A= spec.zoneId, spec.url);=0A= },=0A= =0A= /**=0A= * Converts a link into an Ajax update of a Zone. The url includes the=0A= * information to reconnect with the server-side Form.=0A= * =0A= * @param spec.selectId=0A= * id or instance of <select>=0A= * @param spec.zoneId=0A= * id of element to update when select is changed=0A= * @param spec.url=0A= * component event request URL=0A= */=0A= linkSelectToZone : function(spec) {=0A= Tapestry.Initializer.updateZoneOnEvent("change", spec.selectId,=0A= spec.zoneId, spec.url);=0A= },=0A= =0A= linkSubmit : function(spec) {=0A= =0A= Tapestry.replaceElementTagName(spec.clientId, "A");=0A= =0A= $(spec.clientId).writeAttribute("href", "#");=0A= =0A= $(spec.clientId).observeAction("click", function(event) {=0A= =0A= var form =3D $(spec.form);=0A= =0A= if (!spec.validate)=0A= form.skipValidation();=0A= =0A= form.setSubmittingElement(this);=0A= =0A= form.performSubmit(event);=0A= });=0A= },=0A= =0A= /**=0A= * Used by other initializers to connect an element (either a link or a=0A= * form) to a zone.=0A= * =0A= * @param eventName=0A= * the event on the element to observe=0A= * @param element=0A= * the element to observe for events=0A= * @param zoneId=0A= * identified a Zone by its clientId. Alternately, the = special=0A= * value '^' indicates that the Zone is a container of the=0A= * element (the first container with the 't-zone' CSS class).=0A= * @param url=0A= * The request URL to be triggered when the event is = observed.=0A= * Ultimately, a partial page update JSON response will be = passed=0A= * to the Zone's ZoneManager.=0A= */=0A= updateZoneOnEvent : function(eventName, element, zoneId, url) {=0A= element =3D $(element);=0A= =0A= $T(element).zoneUpdater =3D true;=0A= =0A= var zoneElement =3D zoneId =3D=3D '^' ? $(element).up('.t-zone') : = $(zoneId);=0A= =0A= if (!zoneElement) {=0A= Tapestry=0A= .error(=0A= "Could not find zone element '#{zoneId}' to update on = #{eventName} of element '#{elementId}",=0A= {=0A= zoneId : zoneId,=0A= eventName : eventName,=0A= elementId : element.id=0A= });=0A= return;=0A= }=0A= =0A= /*=0A= * Update the element with the id of zone div. This may be changed=0A= * dynamically on the client side.=0A= */=0A= =0A= $T(element).zoneId =3D zoneElement.id;=0A= =0A= if (element.tagName =3D=3D "FORM") {=0A= =0A= // Create the FEM if necessary.=0A= element.addClassName(Tapestry.PREVENT_SUBMISSION);=0A= =0A= /*=0A= * After the form is validated and prepared, this code will process=0A= * the form submission via an Ajax call. The original submit event=0A= * will have been cancelled.=0A= */=0A= =0A= element.observe(Tapestry.FORM_PROCESS_SUBMIT_EVENT, function() {=0A= var zoneManager =3D Tapestry.findZoneManager(element);=0A= =0A= if (!zoneManager)=0A= return;=0A= =0A= var successHandler =3D function(transport) {=0A= zoneManager.processReply(transport.responseJSON);=0A= };=0A= =0A= element.sendAjaxRequest(url, {=0A= parameters : {=0A= "t:zoneid" : zoneId=0A= },=0A= onSuccess : successHandler=0A= });=0A= });=0A= =0A= return;=0A= }=0A= =0A= /* Otherwise, assume it's just an ordinary link or input field. */=0A= =0A= element.observeAction(eventName, function(event) {=0A= element.fire(Tapestry.TRIGGER_ZONE_UPDATE_EVENT);=0A= });=0A= =0A= element.observe(Tapestry.TRIGGER_ZONE_UPDATE_EVENT, function() {=0A= =0A= var zoneObject =3D Tapestry.findZoneManager(element);=0A= =0A= if (!zoneObject)=0A= return;=0A= =0A= /*=0A= * A hack related to allowing a Select to perform an Ajax update of=0A= * the page.=0A= */=0A= =0A= var parameters =3D {};=0A= =0A= if (element.tagName =3D=3D "SELECT" && element.value) {=0A= parameters["t:selectvalue"] =3D element.value;=0A= }=0A= =0A= zoneObject.updateFromURL(url, parameters);=0A= });=0A= },=0A= =0A= /**=0A= * Sets up a Tapestry.FormEventManager for the form, and enables events = for=0A= * validations. This is executed with InitializationPriority.EARLY, to=0A= * ensure that the FormEventManager exists vefore any validations are = added=0A= * for fields within the Form.=0A= * =0A= * @since 5.2.2=0A= */=0A= formEventManager : function(spec) {=0A= $T(spec.formId).formEventManager =3D new = Tapestry.FormEventManager(spec);=0A= },=0A= =0A= /**=0A= * Keys in the masterSpec are ids of field control elements. Value is a = list=0A= * of validation specs. Each validation spec is a 2 or 3 element array.=0A= */=0A= validate : function(masterSpec) {=0A= $H(masterSpec)=0A= .each(=0A= function(pair) {=0A= =0A= var field =3D $(pair.key);=0A= =0A= /*=0A= * Force the creation of the field event manager.=0A= */=0A= =0A= $(field).getFieldEventManager();=0A= =0A= $A(pair.value)=0A= .each(=0A= function(spec) {=0A= /*=0A= * Each pair value is an array=0A= * of specs, each spec is a 2 or=0A= * 3 element array. validator=0A= * function name, message,=0A= * optional constraint=0A= */=0A= =0A= var name =3D spec[0];=0A= var message =3D spec[1];=0A= var constraint =3D spec[2];=0A= =0A= var vfunc =3D Tapestry.Validator[name];=0A= =0A= if (vfunc =3D=3D undefined) {=0A= Tapestry=0A= .error(=0A= Tapestry.Messages.missingValidator,=0A= {=0A= name : name,=0A= fieldName : field.id=0A= });=0A= return;=0A= }=0A= =0A= /*=0A= * Pass the extended field, the=0A= * provided message, and the=0A= * constraint object to the=0A= * Tapestry.Validator function,=0A= * so that it can, typically,=0A= * invoke field.addValidator().=0A= */=0A= try {=0A= vfunc=0A= .call(this, field,=0A= message,=0A= constraint);=0A= } catch (e) {=0A= Tapestry=0A= .error(=0A= Tapestry.Messages.invocationException,=0A= {=0A= fname : "Tapestry.Validator."=0A= + functionName,=0A= params : Object=0A= .toJSON( [=0A= field.id,=0A= message,=0A= constraint ]),=0A= exception : e=0A= });=0A= }=0A= });=0A= });=0A= },=0A= =0A= zone : function(spec) {=0A= new Tapestry.ZoneManager(spec);=0A= },=0A= =0A= formFragment : function(spec) {=0A= =0A= var element =3D $(spec.element);=0A= =0A= var hidden =3D $(spec.element + "-hidden");=0A= var form =3D $(hidden.form);=0A= =0A= function runAnimation(makeVisible) {=0A= var effect =3D makeVisible ? Tapestry.ElementEffect[spec.show]=0A= || Tapestry.ElementEffect.slidedown=0A= : Tapestry.ElementEffect[spec.hide]=0A= || Tapestry.ElementEffect.slideup;=0A= return effect(element);=0A= }=0A= =0A= element.observe(Tapestry.CHANGE_VISIBILITY_EVENT, function(event) {=0A= //since events propogate up, you have you call event.stop() here to = prevent hiding=0A= //container formFragments.=0A= event.stop();=0A= var makeVisible =3D event.memo.visible;=0A= =0A= if (makeVisible =3D=3D element.visible())=0A= return;=0A= =0A= runAnimation(makeVisible);=0A= });=0A= =0A= element.observe(Tapestry.HIDE_AND_REMOVE_EVENT, function(event) {=0A= event.stop();=0A= var effect =3D runAnimation(false);=0A= =0A= effect.options.afterFinish =3D function() {=0A= Tapestry.remove(element);=0A= };=0A= });=0A= =0A= if (!spec.alwaysSubmit) {=0A= form.observe(Tapestry.FORM_PREPARE_FOR_SUBMIT_EVENT, function() {=0A= =0A= /*=0A= * On a submission, if the fragment is not visible, then=0A= * disabled its form submission data, so that no processing or=0A= * validation occurs on the server.=0A= */=0A= hidden.disabled =3D !element.isDeepVisible();=0A= });=0A= }=0A= },=0A= =0A= formInjector : function(spec) {=0A= new Tapestry.FormInjector(spec);=0A= },=0A= =0A= /*=0A= * Links a FormFragment to a trigger (a radio or a checkbox), such that=0A= * changing the trigger will hide or show the FormFragment. Care should = be=0A= * taken to render the page with the checkbox and the FormFragment's=0A= * visibility in agreement.=0A= */=0A= linkTriggerToFormFragment : function(spec) {=0A= var trigger =3D $(spec.triggerId);=0A= =0A= var update =3D function() {=0A= var checked =3D trigger.checked;=0A= var makeVisible =3D checked =3D=3D !spec.invert;=0A= =0A= $(spec.fragmentId).fire(Tapestry.CHANGE_VISIBILITY_EVENT, {=0A= visible : makeVisible=0A= }, true);=0A= }=0A= =0A= /* Let the event bubble up to the form level. */=0A= if (trigger.type =3D=3D "radio") {=0A= $(trigger.form).observe("click", update);=0A= return;=0A= }=0A= =0A= /* Normal trigger is a checkbox; listen just to it. */=0A= trigger.observe("click", update);=0A= =0A= },=0A= =0A= cancelButton : function(clientId) {=0A= =0A= /*=0A= * Set the form's skipValidation property and allow the event to=0A= * continue, which will ultimately submit the form.=0A= */=0A= $(clientId).observeAction("click", function(event) {=0A= $(this.form).skipValidation();=0A= $(this.form).setSubmittingElement(clientId);=0A= $(this.form).performSubmit(event);=0A= });=0A= }=0A= };=0A= =0A= /*=0A= * Collection of field based functions related to validation. Each = function=0A= * takes a field, a message and an optional constraint value. Some = functions are=0A= * related to Translators and work on the format event, other's are from=0A= * Validators and work on the validate event.=0A= */=0A= =0A= Tapestry.Validator =3D {=0A= =0A= required : function(field, message) {=0A= $(field).getFieldEventManager().requiredCheck =3D function(value) {=0A= if ((Object.isString(value) && value.strip() =3D=3D '')=0A= || value =3D=3D null)=0A= $(field).showValidationMessage(message);=0A= };=0A= },=0A= =0A= /** Supplies a client-side numeric translator for the field. */=0A= numericformat : function(field, message, isInteger) {=0A= $(field).getFieldEventManager().translator =3D function(input) {=0A= try {=0A= return Tapestry.formatLocalizedNumber(input, isInteger);=0A= } catch (e) {=0A= $(field).showValidationMessage(message);=0A= }=0A= };=0A= },=0A= =0A= minlength : function(field, message, length) {=0A= field.addValidator(function(value) {=0A= if (value.length < length)=0A= throw message;=0A= });=0A= },=0A= =0A= maxlength : function(field, message, maxlength) {=0A= field.addValidator(function(value) {=0A= if (value.length > maxlength)=0A= throw message;=0A= });=0A= },=0A= =0A= min : function(field, message, minValue) {=0A= field.addValidator(function(value) {=0A= if (value < minValue)=0A= throw message;=0A= });=0A= },=0A= =0A= max : function(field, message, maxValue) {=0A= field.addValidator(function(value) {=0A= if (value > maxValue)=0A= throw message;=0A= });=0A= },=0A= =0A= regexp : function(field, message, pattern) {=0A= var regexp =3D new RegExp(pattern);=0A= =0A= field.addValidator(function(value) {=0A= if (!regexp.test(value))=0A= throw message;=0A= });=0A= }=0A= };=0A= =0A= Tapestry.ErrorPopup =3D Class.create( {=0A= =0A= /*=0A= * If the images associated with the error popup are overridden (by=0A= * overriding Tapestry's default.css stylesheet), then some of these = values=0A= * may also need to be adjusted.=0A= */=0A= BUBBLE_VERT_OFFSET : -34,=0A= =0A= BUBBLE_HORIZONTAL_OFFSET : -20,=0A= =0A= BUBBLE_WIDTH : "auto",=0A= =0A= BUBBLE_HEIGHT : "39px",=0A= =0A= initialize : function(field) {=0A= this.field =3D $(field);=0A= =0A= this.innerSpan =3D new Element("span");=0A= this.outerDiv =3D $(new Element("div", {=0A= 'id' : this.field.id + ":errorpopup",=0A= 'class' : 't-error-popup'=0A= })).update(this.innerSpan).hide();=0A= =0A= var body =3D $(document.body);=0A= =0A= body.insert( {=0A= bottom : this.outerDiv=0A= });=0A= =0A= this.outerDiv.absolutize();=0A= =0A= this.outerDiv.observe("click", function(event) {=0A= this.ignoreNextFocus =3D true;=0A= =0A= this.stopAnimation();=0A= =0A= this.outerDiv.hide();=0A= =0A= this.field.activate();=0A= =0A= event.stop();=0A= }.bindAsEventListener(this));=0A= =0A= this.queue =3D {=0A= position : 'end',=0A= scope : this.field.id=0A= };=0A= =0A= Event.observe(window, "resize", this.repositionBubble.bind(this));=0A= =0A= document.observe(Tapestry.FOCUS_CHANGE_EVENT, function(event) {=0A= if (this.ignoreNextFocus) {=0A= this.ignoreNextFocus =3D false;=0A= return;=0A= }=0A= =0A= if (event.memo =3D=3D this.field) {=0A= this.fadeIn();=0A= return;=0A= }=0A= =0A= /*=0A= * If this field is not the focus field after a focus change, then=0A= * it's bubble, if visible, should fade out. This covers tabbing=0A= * from one form to another.=0A= */=0A= this.fadeOut();=0A= =0A= }.bind(this));=0A= },=0A= =0A= showMessage : function(message) {=0A= this.stopAnimation();=0A= =0A= this.innerSpan.update(message);=0A= =0A= this.hasMessage =3D true;=0A= =0A= this.fadeIn();=0A= },=0A= =0A= repositionBubble : function() {=0A= var fieldPos =3D this.field.cumulativeOffset();=0A= =0A= this.outerDiv.setStyle( {=0A= top : (fieldPos[1] + this.BUBBLE_VERT_OFFSET) + "px",=0A= left : (fieldPos[0] + this.BUBBLE_HORIZONTAL_OFFSET) + "px",=0A= width : this.BUBBLE_WIDTH,=0A= height : this.BUBBLE_HEIGHT=0A= });=0A= },=0A= =0A= fadeIn : function() {=0A= if (!this.hasMessage)=0A= return;=0A= =0A= this.repositionBubble();=0A= =0A= if (this.animation)=0A= return;=0A= =0A= this.animation =3D new Effect.Appear(this.outerDiv, {=0A= queue : this.queue,=0A= afterFinish : function() {=0A= this.animation =3D null;=0A= =0A= if (this.field !=3D Tapestry.currentFocusField)=0A= this.fadeOut();=0A= }.bind(this)=0A= });=0A= },=0A= =0A= stopAnimation : function() {=0A= if (this.animation)=0A= this.animation.cancel();=0A= =0A= this.animation =3D null;=0A= },=0A= =0A= fadeOut : function() {=0A= if (this.animation)=0A= return;=0A= =0A= this.animation =3D new Effect.Fade(this.outerDiv, {=0A= queue : this.queue,=0A= afterFinish : function() {=0A= this.animation =3D null;=0A= }.bind(this)=0A= });=0A= },=0A= =0A= hide : function() {=0A= this.hasMessage =3D false;=0A= =0A= this.stopAnimation();=0A= =0A= this.outerDiv.hide();=0A= }=0A= });=0A= =0A= Tapestry.FormEventManager =3D Class.create( {=0A= =0A= initialize : function(spec) {=0A= this.form =3D $(spec.formId);=0A= this.validateOnBlur =3D spec.validate.blur;=0A= this.validateOnSubmit =3D spec.validate.submit;=0A= =0A= this.form.onsubmit =3D this.handleSubmit.bindAsEventListener(this);=0A= },=0A= =0A= /**=0A= * Identifies in the form what is the cause of the submission. The = element's=0A= * id is stored into the t:submit hidden field (created as needed).=0A= * =0A= * @param element=0A= * id or element that is the cause of the submit (a Submit or=0A= * LinkSubmit)=0A= */=0A= setSubmittingElement : function(element) {=0A= =0A= if (!this.submitHidden) {=0A= // skip if this is not a tapestry controlled form=0A= if (this.form.getInputs("hidden", "t:formdata").size() =3D=3D 0)=0A= return;=0A= =0A= var hiddens =3D this.form.getInputs("hidden", "t:submit");=0A= =0A= if (hiddens.size() =3D=3D 0) {=0A= =0A= /**=0A= * Create a new hidden field directly after the first hidden=0A= * field in the form.=0A= */=0A= var firstHidden =3D this.form.getInputs("hidden").first();=0A= =0A= this.submitHidden =3D new Element("input", {=0A= type : "hidden",=0A= name : "t:submit"=0A= });=0A= =0A= firstHidden.insert( {=0A= after : this.submitHidden=0A= });=0A= } else=0A= this.submitHidden =3D hiddens.first();=0A= }=0A= =0A= this.submitHidden.value =3D element =3D=3D null ? null : $(element).id;=0A= },=0A= =0A= handleSubmit : function(domevent) {=0A= =0A= /*=0A= * Necessary because we set the onsubmit property of the form, rather=0A= * than observing the event. But that's because we want to specfically=0A= * overwrite any other handlers.=0A= */=0A= Event.extend(domevent);=0A= =0A= var t =3D $T(this.form);=0A= =0A= t.validationError =3D false;=0A= =0A= if (!t.skipValidation) {=0A= =0A= t.skipValidation =3D false;=0A= =0A= /* Let all the fields do their validations first. */=0A= =0A= this.form.fire(Tapestry.FORM_VALIDATE_FIELDS_EVENT, this.form);=0A= =0A= /*=0A= * Allow observers to validate the form as a whole. The FormEvent=0A= * will be visible as event.memo. The Form will not be submitted if=0A= * event.result is set to false (it defaults to true). Still trying=0A= * to figure out what should get focus from this kind of event.=0A= */=0A= if (!t.validationError)=0A= this.form.fire(Tapestry.FORM_VALIDATE_EVENT, this.form);=0A= =0A= if (t.validationError) {=0A= domevent.stop();=0A= =0A= /*=0A= * Because the submission failed, the last submit element is=0A= * cleared, since the form may be submitted for some other=0A= * reason later.=0A= */=0A= this.setSubmittingElement(null);=0A= =0A= return false;=0A= }=0A= }=0A= =0A= this.form.fire(Tapestry.FORM_PREPARE_FOR_SUBMIT_EVENT, this.form);=0A= =0A= /*=0A= * This flag can be set to prevent the form from submitting normally.=0A= * This is used for some Ajax cases where the form submission must run=0A= * via Ajax.Request.=0A= */=0A= =0A= if (this.form.hasClassName(Tapestry.PREVENT_SUBMISSION)) {=0A= domevent.stop();=0A= =0A= /*=0A= * Instead fire the event (a listener will then trigger the Ajax=0A= * submission). This is really a hook for the ZoneManager.=0A= */=0A= this.form.fire(Tapestry.FORM_PROCESS_SUBMIT_EVENT);=0A= =0A= return false;=0A= }=0A= =0A= /* Validation is OK, not doing Ajax, continue as planned. */=0A= =0A= return true;=0A= }=0A= });=0A= =0A= Tapestry.FieldEventManager =3D Class.create( {=0A= =0A= initialize : function(field) {=0A= this.field =3D $(field);=0A= =0A= this.translator =3D Prototype.K;=0A= =0A= var fem =3D $(this.field.form).getFormEventManager();=0A= =0A= if (fem.validateOnBlur) {=0A= =0A= document.observe(Tapestry.FOCUS_CHANGE_EVENT, function(event) {=0A= /*=0A= * If changing focus *within the same form* then perform=0A= * validation. Note that Tapestry.currentFocusField does not=0A= * change until after the FOCUS_CHANGE_EVENT notification.=0A= */=0A= if (Tapestry.currentFocusField =3D=3D this.field=0A= && this.field.form =3D=3D event.memo.form)=0A= this.validateInput();=0A= =0A= }.bindAsEventListener(this));=0A= }=0A= =0A= if (fem.validateOnSubmit) {=0A= $(this.field.form).observe(Tapestry.FORM_VALIDATE_FIELDS_EVENT,=0A= this.validateInput.bindAsEventListener(this));=0A= }=0A= },=0A= =0A= getLabel : function() {=0A= if (!this.label) {=0A= var selector =3D "label[for=3D'" + this.field.id + "']";=0A= this.label =3D this.field.form.down(selector);=0A= }=0A= =0A= return this.label;=0A= },=0A= =0A= getIcon : function() {=0A= if (!this.icon) {=0A= this.com =3D $(this.field.id + "_icon");=0A= }=0A= =0A= return this.icon;=0A= },=0A= =0A= /**=0A= * Removes validation decorations if present. Hides the ErrorPopup, if = it=0A= * exists.=0A= */=0A= removeDecorations : function() {=0A= this.field.removeClassName("t-error");=0A= =0A= this.getLabel() && this.getLabel().removeClassName("t-error");=0A= =0A= this.getIcon() && this.getIcon().hide();=0A= =0A= if (this.errorPopup)=0A= this.errorPopup.hide();=0A= },=0A= =0A= /**=0A= * Show a validation error message, which will add decorations to the = field=0A= * and it label, make the icon visible, and raise the field's=0A= * Tapestry.ErrorPopup to show the message.=0A= * =0A= * @param message=0A= * validation message to display=0A= */=0A= showValidationMessage : function(message) {=0A= $T(this.field).validationError =3D true;=0A= $T(this.field.form).validationError =3D true;=0A= =0A= this.field.addClassName("t-error");=0A= =0A= this.getLabel() && this.getLabel().addClassName("t-error");=0A= =0A= var icon =3D this.getIcon();=0A= =0A= if (icon && !icon.visible()) {=0A= new Effect.Appear(this.icon);=0A= }=0A= =0A= if (this.errorPopup =3D=3D undefined)=0A= this.errorPopup =3D new Tapestry.ErrorPopup(this.field);=0A= =0A= this.errorPopup.showMessage(message);=0A= },=0A= =0A= /**=0A= * Invoked when a form is submitted, or when leaving a field, to perform=0A= * field validations. Field validations are skipped for disabled = fields. If=0A= * all validations are succesful, any decorations are removed. If any=0A= * validation fails, an error popup is raised for the field, to display = the=0A= * validation error message.=0A= * =0A= * @return true if the field has a validation error=0A= */=0A= validateInput : function() {=0A= if (this.field.disabled)=0A= return false;=0A= =0A= if (!this.field.isDeepVisible())=0A= return false;=0A= =0A= var t =3D $T(this.field);=0A= =0A= var value =3D $F(this.field);=0A= =0A= t.validationError =3D false;=0A= =0A= if (this.requiredCheck)=0A= this.requiredCheck.call(this, value);=0A= =0A= /*=0A= * Don't try to validate blank values; if the field is required, that=0A= * error is already noted and presented to the user.=0A= */=0A= =0A= if (!t.validationError && !(Object.isString(value) && value.blank())) {=0A= var translated =3D this.translator(value);=0A= =0A= /*=0A= * If Format went ok, perhaps do the other validations.=0A= */=0A= if (!t.validationError) {=0A= this.field.fire(Tapestry.FIELD_VALIDATE_EVENT, {=0A= value : value,=0A= translated : translated=0A= });=0A= }=0A= }=0A= =0A= /* Lastly, if no validation errors were found, remove the decorations. = */=0A= =0A= if (!t.validationError)=0A= this.field.removeDecorations();=0A= =0A= return t.validationError;=0A= }=0A= });=0A= =0A= /*=0A= * Wrappers around Prototype and Scriptaculous effects. All the = functions of=0A= * this object should have all-lowercase names. The methods all return = the=0A= * Effect object they create.=0A= */=0A= Tapestry.ElementEffect =3D {=0A= =0A= /** Fades in the element. */=0A= show : function(element) {=0A= return new Effect.Appear(element);=0A= },=0A= =0A= /** The classic yellow background fade. */=0A= highlight : function(element, color) {=0A= if (color)=0A= return new Effect.Highlight(element, {=0A= endcolor : color,=0A= restorecolor : color=0A= });=0A= =0A= return new Effect.Highlight(element);=0A= },=0A= =0A= /** Scrolls the content down. */=0A= slidedown : function(element) {=0A= return new Effect.SlideDown(element);=0A= },=0A= =0A= /** Slids the content back up (opposite of slidedown). */=0A= slideup : function(element) {=0A= return new Effect.SlideUp(element);=0A= },=0A= =0A= /** Fades the content out (opposite of show). */=0A= fade : function(element) {=0A= return new Effect.Fade(element);=0A= }=0A= };=0A= =0A= /**=0A= * Manages a <div< (or other element) for dynamic updates.=0A= * =0A= */=0A= Tapestry.ZoneManager =3D Class.create( {=0A= /*=0A= * spec are the parameters for the Zone: trigger: required -- name or=0A= * instance of link. element: required -- name or instance of div = element to=0A= * be shown, hidden and updated show: name of Tapestry.ElementEffect=0A= * function used to reveal the zone if hidden update: name of=0A= * Tapestry.ElementEffect function used to highlight the zone after it = is=0A= * updated=0A= */=0A= initialize : function(spec) {=0A= this.element =3D $(spec.element);=0A= this.showFunc =3D Tapestry.ElementEffect[spec.show]=0A= || Tapestry.ElementEffect.show;=0A= this.updateFunc =3D Tapestry.ElementEffect[spec.update]=0A= || Tapestry.ElementEffect.highlight;=0A= this.specParameters =3D spec.parameters;=0A= =0A= /*=0A= * TAP5-707: store the old background color of the element or take = white=0A= * as a default=0A= */=0A= this.endcolor =3D this.element.getStyle('background-color').parseColor(=0A= '#ffffff');=0A= =0A= /* Link the div back to this zone. */=0A= =0A= $T(this.element).zoneManager =3D this;=0A= =0A= /*=0A= * Look inside the managed element for another element with the CSS=0A= * class "t-zone-update". If present, then this is the element whose=0A= * content will be changed, rather then the entire zone's element. This=0A= * allows a Zone element to contain "wrapper" markup (borders and = such).=0A= * Typically, such a Zone element will initially be invisible. The show=0A= * and update functions apply to the Zone element, not the update=0A= * element.=0A= */=0A= var updates =3D this.element.select(".t-zone-update");=0A= =0A= this.updateElement =3D updates.first() || this.element;=0A= },=0A= =0A= /*=0A= * Updates the content of the div controlled by this Zone, then invokes = the=0A= * show function (if not visible) or the update function (if visible)=0A= */=0A= =0A= /**=0A= * Updates the zone's content, and invokes either the update function = (to=0A= * highlight the change) or the show function (to reveal a hidden = element).=0A= * Lastly, fires the Tapestry.ZONE_UPDATED_EVENT to let listeners know = that=0A= * the zone was updated.=0A= * =0A= * @param content=0A= */=0A= show : function(content) {=0A= =0A= Tapestry.purgeChildren(this.updateElement);=0A= =0A= this.updateElement.update(content);=0A= =0A= var func =3D this.element.visible() ? this.updateFunc : this.showFunc;=0A= =0A= func.call(this, this.element, this.endcolor);=0A= =0A= this.element.fire(Tapestry.ZONE_UPDATED_EVENT);=0A= },=0A= =0A= /**=0A= * Invoked with a reply (i.e., transport.responseJSON), this updates the=0A= * managed element and processes any JavaScript in the reply. The = response=0A= * should have a content key, and may have script, scripts and = stylesheets=0A= * keys.=0A= * =0A= * @param reply=0A= * response in JSON format appropriate to a Tapestry.Zone=0A= */=0A= processReply : function(reply) {=0A= Tapestry.loadScriptsInReply(reply, function() {=0A= /*=0A= * In a multi-zone update, the reply.content may be missing, in=0A= * which case, leave the curent content in place. TAP5-1177=0A= */=0A= reply.content !=3D undefined && this.show(reply.content);=0A= =0A= /*=0A= * zones is an object of zone ids and zone content that will be=0A= * present in a multi-zone update response.=0A= */=0A= reply.zones && Object.keys(reply.zones).each(function(zoneId) {=0A= var manager =3D Tapestry.findZoneManagerForZone(zoneId);=0A= =0A= if (manager) {=0A= var zoneContent =3D reply.zones[zoneId];=0A= manager.show(zoneContent);=0A= }=0A= });=0A= }.bind(this));=0A= },=0A= =0A= /**=0A= * Initiates an Ajax request to update this zone by sending a request = to the=0A= * URL. Expects the correct JSON reply (wth keys content, etc.).=0A= * =0A= * @param URL=0A= * component event request URL=0A= * @param parameters=0A= * object containing additional key/value pairs (optional)=0A= */=0A= updateFromURL : function(URL, parameters) {=0A= =0A= var finalParameters =3D $H( {=0A= "t:zoneid" : this.element.id=0A= }).update(this.specParameters);=0A= =0A= /* If parameters were supplied, merge them in with the zone id */=0A= if (!Object.isUndefined(parameters))=0A= finalParameters.update(parameters);=0A= =0A= Tapestry.ajaxRequest(URL, {=0A= parameters : finalParameters.toObject(),=0A= onSuccess : function(transport) {=0A= this.processReply(transport.responseJSON);=0A= }.bind(this)=0A= });=0A= }=0A= });=0A= =0A= Tapestry.FormInjector =3D Class.create( {=0A= =0A= initialize : function(spec) {=0A= this.element =3D $(spec.element);=0A= this.url =3D spec.url;=0A= this.below =3D spec.below;=0A= =0A= this.showFunc =3D Tapestry.ElementEffect[spec.show]=0A= || Tapestry.ElementEffect.highlight;=0A= =0A= this.element.trigger =3D function() {=0A= =0A= var successHandler =3D function(transport) {=0A= =0A= var reply =3D transport.responseJSON;=0A= =0A= /*=0A= * Clone the FormInjector element (usually a div) to create the=0A= * new element, that gets inserted before or after the=0A= * FormInjector's element.=0A= */=0A= var newElement =3D new Element(this.element.tagName, {=0A= 'class' : this.element.className=0A= });=0A= =0A= /* Insert the new element before or after the existing element. */=0A= =0A= var param =3D {};=0A= param[this.below ? "after" : "before"] =3D newElement;=0A= =0A= Tapestry.loadScriptsInReply(reply, function() {=0A= /* Add the new element with the downloaded content. */=0A= =0A= this.element.insert(param);=0A= =0A= /*=0A= * Update the empty element with the content from the server=0A= */=0A= =0A= newElement.update(reply.content);=0A= =0A= newElement.id =3D reply.elementId;=0A= =0A= /*=0A= * Add some animation to reveal it all.=0A= */=0A= =0A= this.showFunc(newElement);=0A= =0A= }.bind(this));=0A= }.bind(this);=0A= =0A= Tapestry.ajaxRequest(this.url, successHandler);=0A= =0A= return false;=0A= =0A= }.bind(this);=0A= }=0A= });=0A= =0A= Tapestry.ScriptManager =3D {=0A= =0A= /**=0A= * Complete URLs of virtually loaded scripts (combined scripts loaded = as a=0A= * single virtual asset).=0A= */=0A= virtualScripts : $A( []),=0A= =0A= initialize : function() {=0A= =0A= /*=0A= * Check to see if document.scripts is supported; if not (for example,=0A= * FireFox), we can fake it.=0A= */=0A= this.emulated =3D false;=0A= =0A= if (!document.scripts) {=0A= this.emulated =3D true;=0A= =0A= document.scripts =3D new Array();=0A= =0A= $$('script').each(function(s) {=0A= document.scripts.push(s);=0A= });=0A= }=0A= },=0A= =0A= loadScript : function(scriptURL, callback) {=0A= /* IE needs the type=3D"text/javascript" as well. */=0A= var element =3D new Element('script', {=0A= src : scriptURL,=0A= type : 'text/javascript'=0A= });=0A= =0A= $$("head").first().insert( {=0A= bottom : element=0A= });=0A= =0A= if (this.emulated)=0A= document.scripts.push(element);=0A= =0A= if (Prototype.Browser.IE) {=0A= var loaded =3D false;=0A= =0A= element.onreadystatechange =3D function() {=0A= /* IE may fire either 'loaded' or 'complete', or possibly both. */=0A= if (!loaded && this.readyState =3D=3D 'loaded'=0A= || this.readyState =3D=3D 'complete') {=0A= loaded =3D true;=0A= =0A= callback.call(this);=0A= }=0A= };=0A= =0A= return;=0A= }=0A= =0A= /* Safari, Firefox, etc. are easier. */=0A= =0A= element.onload =3D callback.bindAsEventListener(this);=0A= },=0A= =0A= /**=0A= * Checks to see if the given collection (of <script> or <style> = elements)=0A= * contains the given asset URL.=0A= * =0A= * @param collection=0A= * @param prop=0A= * property to check ('src' for script, 'href' to style).=0A= * @param assetURL=0A= * complete URL (i.e., with protocol, host and port) to the = asset=0A= */=0A= contains : function(collection, prop, assetURL) {=0A= return $A(collection).any(=0A= function(element) {=0A= var existing =3D element[prop];=0A= =0A= if (!existing || existing.blank())=0A= return false;=0A= =0A= var complete =3D Prototype.Browser.IE ? Tapestry=0A= .rebuildURL(existing) : existing;=0A= =0A= return complete =3D=3D assetURL;=0A= });=0A= =0A= return false;=0A= },=0A= =0A= /**=0A= * Add scripts, as needed, to the document, then waits for them all to = load,=0A= * and finally, calls the callback function.=0A= * =0A= * @param scripts=0A= * Array of scripts to load=0A= * @param callback=0A= * invoked after scripts are loaded=0A= */=0A= addScripts : function(scripts, callback) {=0A= =0A= var scriptsToLoad =3D [];=0A= =0A= /* scripts may be null or undefined */=0A= (scripts || []).each(function(s) {=0A= var assetURL =3D Tapestry.rebuildURL(s);=0A= =0A= /*=0A= * Check to see if the script is already loaded, either as a virtual=0A= * script, or as an individual script src=3D"" element.=0A= */=0A= if (Tapestry.ScriptManager.virtualScripts.member(assetURL))=0A= return;=0A= =0A= if (Tapestry.ScriptManager.contains(document.scripts, "src",=0A= assetURL))=0A= return;=0A= =0A= scriptsToLoad.push(assetURL);=0A= });=0A= =0A= /*=0A= * Set it up last script to first script. The last script's callback is=0A= * the main callback (the code to execute after all scripts are = loaded).=0A= * The 2nd to last script's callback loads the last script. Prototype's=0A= * Array.inject() is effectively the same as Clojure's reduce().=0A= */=0A= scriptsToLoad.reverse();=0A= =0A= var topCallback =3D scriptsToLoad.inject(callback, = function(nextCallback,=0A= scriptURL) {=0A= return function() {=0A= Tapestry.ScriptManager.loadScript(scriptURL, nextCallback);=0A= };=0A= });=0A= =0A= /* Kick it off with the callback that loads the first script. */=0A= topCallback.call();=0A= },=0A= =0A= addStylesheets : function(stylesheets) {=0A= if (!stylesheets)=0A= return;=0A= =0A= var head =3D $$('head').first();=0A= =0A= $(stylesheets).each(=0A= function(s) {=0A= var assetURL =3D Tapestry.rebuildURL(s.href);=0A= =0A= if (Tapestry.ScriptManager.contains(document.styleSheets,=0A= 'href', assetURL))=0A= return;=0A= var element =3D new Element('link', {=0A= type : 'text/css',=0A= rel : 'stylesheet',=0A= href : assetURL=0A= });=0A= =0A= /*=0A= * Careful about media types, some browser will break if it=0A= * ends up as 'null'.=0A= */=0A= if (s.media !=3D undefined)=0A= element.writeAttribute('media', s.media);=0A= =0A= head.insert( {=0A= bottom : element=0A= });=0A= =0A= });=0A= }=0A= };=0A= =0A= /**=0A= * In the spirit of $(), $T() exists to access a hash of extra data = about an=0A= * element. In release 5.1 and prior, a hash attached to the element by = Tapestry=0A= * was returned. In 5.2, Prototype's storage object is returned, which = is less=0A= * likely to cause memory leaks in IE.=0A= * =0A= * @deprecated With no specific replacement. To be removed after = Tapestry 5.2.=0A= * @param element=0A= * an element instance or element id=0A= * @return object Prototype storage object for the element=0A= */=0A= function $T(element) {=0A= return $(element).getStorage();=0A= }=0A= =0A= Tapestry.onDOMLoaded(Tapestry.onDomLoadedCallback);=0A= =0A= /* Ajax code needs to know to do nothing after the window is unloaded. */=0A= Event.observe(window, "beforeunload", function() {=0A= Tapestry.windowUnloaded =3D true;=0A= });=0A= =0A= /* /assets/731238022b09c33a/core/tapestry-messages.js */;=0A= // Copyright 2009, 2010 The Apache Software Foundation=0A= //=0A= // Licensed under the Apache License, Version 2.0 (the "License");=0A= // you may not use this file except in compliance with the License.=0A= // You may obtain a copy of the License at=0A= //=0A= // http://www.apache.org/licenses/LICENSE-2.0=0A= //=0A= // Unless required by applicable law or agreed to in writing, software=0A= // distributed under the License is distributed on an "AS IS" BASIS,=0A= // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or = implied.=0A= // See the License for the specific language governing permissions and=0A= // limitations under the License.=0A= =0A= Tapestry.Messages =3D {=0A= =0A= pageIsLoading : "Please wait for the page to finish loading ...",=0A= =0A= missingInitializer : "Function Tapestry.Initializer.#{name}() does = not exist.",=0A= =0A= missingValidator : "Function Tapestry.Validator.#{name}() does = not exist for field '#{fieldName}'.",=0A= =0A= ajaxFailure : "Ajax failure: Status #{status} for #{request.url}: ",=0A= =0A= ajaxRequestUnsuccessful : "Server request was unsuccessful. There = may be a problem accessing the server.",=0A= =0A= clientException : "Client exception processing response: ",=0A= =0A= missingZone : "Unable to locate Ajax Zone '#{id}' for dynamic = update.",=0A= =0A= noZoneManager : "Element '#{id}' does not have an associated = Tapestry.ZoneManager object." ,=0A= =0A= pathDoesNotStartWithSlash : "External path #{path} does not start = with a leading slash.",=0A= =0A= notAnInteger : "Not an integer",=0A= =0A= invalidCharacter : "Invalid character",=0A= =0A= communicationFailed : "Communication with the server failed: ",=0A= =0A= invocationException : "Exception invoking function #{fname} with = parameters #{params}: #{exception}"=0A= };=0A= /* /assets/731238022b09c33a/core/tapestry-console.js */;=0A= // Copyright 2009, 2010 The Apache Software Foundation=0A= //=0A= // Licensed under the Apache License, Version 2.0 (the "License");=0A= // you may not use this file except in compliance with the License.=0A= // You may obtain a copy of the License at=0A= //=0A= // http://www.apache.org/licenses/LICENSE-2.0=0A= //=0A= // Unless required by applicable law or agreed to in writing, software=0A= // distributed under the License is distributed on an "AS IS" BASIS,=0A= // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or = implied.=0A= // See the License for the specific language governing permissions and=0A= // limitations under the License.=0A= Tapestry.Logging =3D {=0A= =0A= debug: function(msg)=0A= {=0A= if (Tapestry.DEBUG_ENABLED)=0A= Tapestry.Logging.updateConsole("t-debug", msg);=0A= },=0A= =0A= warn: function(msg)=0A= {=0A= Tapestry.Logging.updateConsole("t-warn", msg);=0A= },=0A= =0A= error: function(msg)=0A= {=0A= Tapestry.Logging.updateConsole("t-err", msg);=0A= },=0A= =0A= /** Formats a message and updates the console. The console is = virtual=0A= * when FireBug is not present, the messages float in the = upper-left corner=0A= * of the page and fade out after a short period. The = background color identifies=0A= * the severity of the message (red for error, yellow for = warnings, grey for debug).=0A= * Messages can be clicked, which removes the immediately.=0A= *=0A= * When FireBug is present, the error(), warn() and debug() = methods do not invoke=0A= * this; instead those functions are rewritten to write entries = into the FireBug console.=0A= *=0A= * @param className to use for the div element in the console=0A= * @param message message template=0A= */=0A= updateConsole : function (className, message)=0A= {=0A= =0A= if (Tapestry.Logging.console =3D=3D undefined)=0A= Tapestry.Logging.console =3D = Tapestry.Logging.createConsole("t-console");=0A= =0A= Tapestry.Logging.writeToConsole(Tapestry.Logging.console, = className, message);=0A= },=0A= =0A= createConsole : function(className)=0A= {=0A= var body =3D $$("BODY").first();=0A= =0A= var console =3D new Element("div", { 'class': className });=0A= =0A= body.insert({ top: console });=0A= =0A= return console;=0A= },=0A= =0A= writeToConsole : function(console, className, message, slideDown)=0A= {=0A= var div =3D new Element("div", { 'class': className = }).update(message).hide();=0A= =0A= console.insert({ top: div });=0A= =0A= new Effect.Appear(div, { duration: .25 });=0A= =0A= var effect =3D new Effect.Fade(div, { delay: = Tapestry.CONSOLE_DURATION,=0A= afterFinish: function()=0A= {=0A= Tapestry.remove(div);=0A= }});=0A= =0A= div.observe("click", function()=0A= {=0A= effect.cancel();=0A= Tapestry.remove(div);=0A= });=0A= }=0A= =0A= }=0A= ;/**/=0A= Tapestry.markScriptLibrariesLoaded([=0A= "/assets/731238022b09c33a/core/scriptaculous_1_9_0/prototype.js",=0A= "/assets/731238022b09c33a/core/scriptaculous_1_9_0/scriptaculous.js",=0A= "/assets/731238022b09c33a/core/scriptaculous_1_9_0/effects.js",=0A= "/assets/731238022b09c33a/core/tapestry.js",=0A= "/assets/731238022b09c33a/core/tapestry-messages.js",=0A= "/assets/731238022b09c33a/core/tapestry-console.js"=0A= ]);=0A= -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/stack/en/ems.js =0A= /* /assets/731238022b09c33a/ctx/scripts/jquery-1.7.1.min.js */;=0A= /*! jQuery v1.7.1 jquery.com | jquery.org/license */=0A= (function(a,b){function cy(a){return = f.isWindow(a)?a:a.nodeType=3D=3D=3D9?a.defaultView||a.parentWindow:!1}fun= ction cv(a){if(!ck[a]){var = b=3Dc.body,d=3Df("<"+a+">").appendTo(b),e=3Dd.css("display");d.remove();i= f(e=3D=3D=3D"none"||e=3D=3D=3D""){cl||(cl=3Dc.createElement("iframe"),cl.= frameBorder=3Dcl.width=3Dcl.height=3D0),b.appendChild(cl);if(!cm||!cl.cre= ateElement)cm=3D(cl.contentWindow||cl.contentDocument).document,cm.write(= (c.compatMode=3D=3D=3D"CSS1Compat"?"<!doctype = html>":"")+"<html><body>"),cm.close();d=3Dcm.createElement(a),cm.body.app= endChild(d),e=3Df.css(d,"display"),b.removeChild(cl)}ck[a]=3De}return = ck[a]}function cu(a,b){var = c=3D{};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=3Da});= return c}function ct(){cr=3Db}function cs(){setTimeout(ct,0);return = cr=3Df.now()}function cj(){try{return new = a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return = new a.XMLHttpRequest}catch(b){}}function = cc(a,c){a.dataFilter&&(c=3Da.dataFilter(c,a.dataType));var = d=3Da.dataTypes,e=3D{},g,h,i=3Dd.length,j,k=3Dd[0],l,m,n,o,p;for(g=3D1;g<= i;g++){if(g=3D=3D=3D1)for(h in a.converters)typeof = h=3D=3D"string"&&(e[h.toLowerCase()]=3Da.converters[h]);l=3Dk,k=3Dd[g];if= (k=3D=3D=3D"*")k=3Dl;else if(l!=3D=3D"*"&&l!=3D=3Dk){m=3Dl+" = "+k,n=3De[m]||e["* "+k];if(!n){p=3Db;for(o in e){j=3Do.split(" = ");if(j[0]=3D=3D=3Dl||j[0]=3D=3D=3D"*"){p=3De[j[1]+" = "+k];if(p){o=3De[o],o=3D=3D=3D!0?n=3Dp:p=3D=3D=3D!0&&(n=3Do);break}}}}!n&= &!p&&f.error("No conversion from "+m.replace(" "," to = ")),n!=3D=3D!0&&(c=3Dn?n(c):p(o(c)))}}return c}function cb(a,c,d){var = e=3Da.contents,f=3Da.dataTypes,g=3Da.responseFields,h,i,j,k;for(i in g)i = in = d&&(c[g[i]]=3Dd[i]);while(f[0]=3D=3D=3D"*")f.shift(),h=3D=3D=3Db&&(h=3Da.= mimeType||c.getResponseHeader("content-type"));if(h)for(i in = e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in = d)j=3Df[0];else{for(i in d){if(!f[0]||a.converters[i+" = "+f[0]]){j=3Di;break}k||(k=3Di)}j=3Dj||k}if(j){j!=3D=3Df[0]&&f.unshift(j)= ;return d[j]}}function = ca(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bE.test(a)?d(a,e):c= a(a+"["+(typeof e=3D=3D"object"||f.isArray(e)?b:"")+"]",e,c,d)});else = if(!c&&b!=3Dnull&&typeof b=3D=3D"object")for(var e in = b)ca(a+"["+e+"]",b[e],c,d);else d(a,b)}function b_(a,c){var = d,e,g=3Df.ajaxSettings.flatOptions||{};for(d in = c)c[d]!=3D=3Db&&((g[d]?a:e||(e=3D{}))[d]=3Dc[d]);e&&f.extend(!0,a,e)}func= tion b$(a,c,d,e,f,g){f=3Df||c.dataTypes[0],g=3Dg||{},g[f]=3D!0;var = h=3Da[f],i=3D0,j=3Dh?h.length:0,k=3Da=3D=3D=3DbT,l;for(;i<j&&(k||!l);i++)= l=3Dh[i](c,d,e),typeof = l=3D=3D"string"&&(!k||g[l]?l=3Db:(c.dataTypes.unshift(l),l=3Db$(a,c,d,e,l= ,g)));(k||!l)&&!g["*"]&&(l=3Db$(a,c,d,e,"*",g));return l}function = bZ(a){return function(b,c){typeof = b!=3D"string"&&(c=3Db,b=3D"*");if(f.isFunction(c)){var = d=3Db.toLowerCase().split(bP),e=3D0,g=3Dd.length,h,i,j;for(;e<g;e++)h=3Dd= [e],j=3D/^\+/.test(h),j&&(h=3Dh.substr(1)||"*"),i=3Da[h]=3Da[h]||[],i[j?"= unshift":"push"](c)}}}function bC(a,b,c){var = d=3Db=3D=3D=3D"width"?a.offsetWidth:a.offsetHeight,e=3Db=3D=3D=3D"width"?= bx:by,g=3D0,h=3De.length;if(d>0){if(c!=3D=3D"border")for(;g<h;g++)c||(d-=3D= parseFloat(f.css(a,"padding"+e[g]))||0),c=3D=3D=3D"margin"?d+=3DparseFloa= t(f.css(a,c+e[g]))||0:d-=3DparseFloat(f.css(a,"border"+e[g]+"Width"))||0;= return = d+"px"}d=3Dbz(a,b,b);if(d<0||d=3D=3Dnull)d=3Da.style[b]||0;d=3DparseFloat= (d)||0;if(c)for(;g<h;g++)d+=3DparseFloat(f.css(a,"padding"+e[g]))||0,c!=3D= =3D"padding"&&(d+=3DparseFloat(f.css(a,"border"+e[g]+"Width"))||0),c=3D=3D= =3D"margin"&&(d+=3DparseFloat(f.css(a,c+e[g]))||0);return = d+"px"}function = bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval= ((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentN= ode&&b.parentNode.removeChild(b)}function bo(a){var = b=3Dc.createElement("div");bh.appendChild(b),b.innerHTML=3Da.outerHTML;re= turn b.firstChild}function bn(a){var = b=3D(a.nodeName||"").toLowerCase();b=3D=3D=3D"input"?bm(a):b!=3D=3D"scrip= t"&&typeof = a.getElementsByTagName!=3D"undefined"&&f.grep(a.getElementsByTagName("inp= ut"),bm)}function = bm(a){if(a.type=3D=3D=3D"checkbox"||a.type=3D=3D=3D"radio")a.defaultCheck= ed=3Da.checked}function bl(a){return typeof = a.getElementsByTagName!=3D"undefined"?a.getElementsByTagName("*"):typeof = a.querySelectorAll!=3D"undefined"?a.querySelectorAll("*"):[]}function = bk(a,b){var = c;if(b.nodeType=3D=3D=3D1){b.clearAttributes&&b.clearAttributes(),b.merge= Attributes&&b.mergeAttributes(a),c=3Db.nodeName.toLowerCase();if(c=3D=3D=3D= "object")b.outerHTML=3Da.outerHTML;else = if(c!=3D=3D"input"||a.type!=3D=3D"checkbox"&&a.type!=3D=3D"radio"){if(c=3D= =3D=3D"option")b.selected=3Da.defaultSelected;else = if(c=3D=3D=3D"input"||c=3D=3D=3D"textarea")b.defaultValue=3Da.defaultValu= e}else = a.checked&&(b.defaultChecked=3Db.checked=3Da.checked),b.value!=3D=3Da.val= ue&&(b.value=3Da.value);b.removeAttribute(f.expando)}}function = bj(a,b){if(b.nodeType=3D=3D=3D1&&!!f.hasData(a)){var = c,d,e,g=3Df._data(a),h=3Df._data(b,g),i=3Dg.events;if(i){delete = h.handle,h.events=3D{};for(c in = i)for(d=3D0,e=3Di[c].length;d<e;d++)f.event.add(b,c+(i[c][d].namespace?".= ":"")+i[c][d].namespace,i[c][d],i[c][d].data)}h.data&&(h.data=3Df.extend(= {},h.data))}}function bi(a,b){return = f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a= ..ownerDocument.createElement("tbody")):a}function U(a){var = b=3DV.split("|"),c=3Da.createDocumentFragment();if(c.createElement)while(= b.length)c.createElement(b.pop());return c}function = T(a,b,c){b=3Db||0;if(f.isFunction(b))return f.grep(a,function(a,d){var = e=3D!!b.call(a,d,a);return e=3D=3D=3Dc});if(b.nodeType)return = f.grep(a,function(a,d){return a=3D=3D=3Db=3D=3D=3Dc});if(typeof = b=3D=3D"string"){var d=3Df.grep(a,function(a){return = a.nodeType=3D=3D=3D1});if(O.test(b))return = f.filter(b,d,!c);b=3Df.filter(b,d)}return f.grep(a,function(a,d){return = f.inArray(a,b)>=3D0=3D=3D=3Dc})}function = S(a){return!a||!a.parentNode||a.parentNode.nodeType=3D=3D=3D11}function = K(){return!0}function J(){return!1}function n(a,b,c){var = d=3Db+"defer",e=3Db+"queue",g=3Db+"mark",h=3Df._data(a,d);h&&(c=3D=3D=3D"= queue"||!f._data(a,e))&&(c=3D=3D=3D"mark"||!f._data(a,g))&&setTimeout(fun= ction(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)= }function m(a){for(var b in = a){if(b=3D=3D=3D"data"&&f.isEmptyObject(a[b]))continue;if(b!=3D=3D"toJSON= ")return!1}return!0}function = l(a,c,d){if(d=3D=3D=3Db&&a.nodeType=3D=3D=3D1){var = e=3D"data-"+c.replace(k,"-$1").toLowerCase();d=3Da.getAttribute(e);if(typ= eof = d=3D=3D"string"){try{d=3Dd=3D=3D=3D"true"?!0:d=3D=3D=3D"false"?!1:d=3D=3D= =3D"null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}ca= tch(g){}f.data(a,c,d)}else d=3Db}return d}function h(a){var = b=3Dg[a]=3D{},c,d;a=3Da.split(/\s+/);for(c=3D0,d=3Da.length;c<d;c++)b[a[c= ]]=3D!0;return b}var = c=3Da.document,d=3Da.navigator,e=3Da.location,f=3Dfunction(){function = J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTim= eout(J,1);return}e.ready()}}var e=3Dfunction(a,b){return new = e.fn.init(a,b,h)},f=3Da.jQuery,g=3Da.$,h,i=3D/^(?:[^#<]*(<[\w\W]+>)[^>]*$= |#([\w\-]*)$)/,j=3D/\S/,k=3D/^\s+/,l=3D/\s+$/,m=3D/^<(\w+)\s*\/?>(?:<\/\1= )?$/,n=3D/^[\],:{}\s]*$/,o=3D/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=3D/="[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=3D/(?= :^|:|,)(?:\s*\[)+/g,r=3D/(webkit)[ = \/]([\w.]+)/,s=3D/(opera)(?:.*version)?[ \/]([\w.]+)/,t=3D/(msie) = ([\w.]+)/,u=3D/(mozilla)(?:.*? = rv:([\w.]+))?/,v=3D/-([a-z]|[0-9])/ig,w=3D/^-ms-/,x=3Dfunction(a,b){retur= n(b+"").toUpperCase()},y=3Dd.userAgent,z,A,B,C=3DObject.prototype.toStrin= g,D=3DObject.prototype.hasOwnProperty,E=3DArray.prototype.push,F=3DArray.= prototype.slice,G=3DString.prototype.trim,H=3DArray.prototype.indexOf,I=3D= {};e.fn=3De.prototype=3D{constructor:e,init:function(a,d,f){var = g,h,j,k;if(!a)return = this;if(a.nodeType){this.context=3Dthis[0]=3Da,this.length=3D1;return = this}if(a=3D=3D=3D"body"&&!d&&c.body){this.context=3Dc,this[0]=3Dc.body,t= his.selector=3Da,this.length=3D1;return this}if(typeof = a=3D=3D"string"){a.charAt(0)!=3D=3D"<"||a.charAt(a.length-1)!=3D=3D">"||a= ..length<3?g=3Di.exec(a):g=3D[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=3D= d instanceof = e?d[0]:d,k=3Dd?d.ownerDocument||d:c,j=3Dm.exec(a),j?e.isPlainObject(d)?(a= =3D[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=3D[k.createElement(j= [1])]:(j=3De.buildFragment([g[1]],[k]),a=3D(j.cacheable?e.clone(j.fragmen= t):j.fragment).childNodes);return = e.merge(this,a)}h=3Dc.getElementById(g[2]);if(h&&h.parentNode){if(h.id!=3D= =3Dg[2])return = f.find(a);this.length=3D1,this[0]=3Dh}this.context=3Dc,this.selector=3Da;= return = this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.i= sFunction(a))return = f.ready(a);a.selector!=3D=3Db&&(this.selector=3Da.selector,this.context=3D= a.context);return = e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){= return this.length},toArray:function(){return = F.call(this,0)},get:function(a){return = a=3D=3Dnull?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:fun= ction(a,b,c){var = d=3Dthis.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObjec= t=3Dthis,d.context=3Dthis.context,b=3D=3D=3D"find"?d.selector=3Dthis.sele= ctor+(this.selector?" = ":"")+c:b&&(d.selector=3Dthis.selector+"."+b+"("+c+")");return = d},each:function(a,b){return = e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return = this},eq:function(a){a=3D+a;return = a=3D=3D=3D-1?this.slice(a):this.slice(a,a+1)},first:function(){return = this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return = this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","= ))},map:function(a){return = this.pushStack(e.map(this,function(b,c){return = a.call(b,c,b)}))},end:function(){return = this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].sp= lice},e.fn.init.prototype=3De.fn,e.extend=3De.fn.extend=3Dfunction(){var = a,c,d,f,g,h,i=3Darguments[0]||{},j=3D1,k=3Darguments.length,l=3D!1;typeof= i=3D=3D"boolean"&&(l=3Di,i=3Darguments[1]||{},j=3D2),typeof = i!=3D"object"&&!e.isFunction(i)&&(i=3D{}),k=3D=3D=3Dj&&(i=3Dthis,-- j);for= (;j<k;j++)if((a=3Darguments[j])!=3Dnull)for(c in = a){d=3Di[c],f=3Da[c];if(i=3D=3D=3Df)continue;l&&f&&(e.isPlainObject(f)||(= g=3De.isArray(f)))?(g?(g=3D!1,h=3Dd&&e.isArray(d)?d:[]):h=3Dd&&e.isPlainO= bject(d)?d:{},i[c]=3De.extend(l,h,f)):f!=3D=3Db&&(i[c]=3Df)}return = i},e.extend({noConflict:function(b){a.$=3D=3D=3De&&(a.$=3Dg),b&&a.jQuery=3D= =3D=3De&&(a.jQuery=3Df);return = e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!= 0)},ready:function(a){if(a=3D=3D=3D!0&&!-- e.readyWait||a!=3D=3D!0&&!e.isR= eady){if(!c.body)return = setTimeout(e.ready,1);e.isReady=3D!0;if(a!=3D=3D!0&&-- e.readyWait>0)retur= n;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bi= ndReady:function(){if(!A){A=3De.Callbacks("once = memory");if(c.readyState=3D=3D=3D"complete")return = setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMConten= tLoaded",B,!1),a.addEventListener("load",e.ready,!1);else = if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("on= load",e.ready);var = b=3D!1;try{b=3Da.frameElement=3D=3Dnull}catch(d){}c.documentElement.doScr= oll&&b&&J()}}},isFunction:function(a){return = e.type(a)=3D=3D=3D"function"},isArray:Array.isArray||function(a){return = e.type(a)=3D=3D=3D"array"},isWindow:function(a){return a&&typeof = a=3D=3D"object"&&"setInterval"in = a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:f= unction(a){return = a=3D=3Dnull?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){i= f(!a||e.type(a)!=3D=3D"object"||a.nodeType||e.isWindow(a))return!1;try{if= (a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype= ,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return = d=3D=3D=3Db||D.call(a,d)},isEmptyObject:function(a){for(var b in = a)return!1;return!0},error:function(a){throw new = Error(a)},parseJSON:function(b){if(typeof b!=3D"string"||!b)return = null;b=3De.trim(b);if(a.JSON&&a.JSON.parse)return = a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))= return(new Function("return "+b))();e.error("Invalid JSON: = "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=3Dnew = DOMParser,d=3Df.parseFromString(c,"text/xml")):(d=3Dnew = ActiveXObject("Microsoft.XMLDOM"),d.async=3D"false",d.loadXML(c))}catch(g= ){d=3Db}(!d||!d.documentElement||d.getElementsByTagName("parsererror").le= ngth)&&e.error("Invalid XML: "+c);return = d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||= function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return = a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return = a.nodeName&&a.nodeName.toUpperCase()=3D=3D=3Db.toUpperCase()},each:functi= on(a,c,d){var = f,g=3D0,h=3Da.length,i=3Dh=3D=3D=3Db||e.isFunction(a);if(d){if(i){for(f = in a)if(c.apply(a[f],d)=3D=3D=3D!1)break}else = for(;g<h;)if(c.apply(a[g++],d)=3D=3D=3D!1)break}else if(i){for(f in = a)if(c.call(a[f],f,a[f])=3D=3D=3D!1)break}else = for(;g<h;)if(c.call(a[g],g,a[g++])=3D=3D=3D!1)break;return = a},trim:G?function(a){return = a=3D=3Dnull?"":G.call(a)}:function(a){return = a=3D=3Dnull?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b= ){var c=3Db||[];if(a!=3Dnull){var = d=3De.type(a);a.length=3D=3Dnull||d=3D=3D=3D"string"||d=3D=3D=3D"function= "||d=3D=3D=3D"regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return = c},inArray:function(a,b,c){var d;if(b){if(H)return = H.call(b,a,c);d=3Db.length,c=3Dc?c<0?Math.max(0,d+c):c:0;for(;c<d;c++)if(= c in b&&b[c]=3D=3D=3Da)return c}return-1},merge:function(a,c){var = d=3Da.length,e=3D0;if(typeof c.length=3D=3D"number")for(var = f=3Dc.length;e<f;e++)a[d++]=3Dc[e];else = while(c[e]!=3D=3Db)a[d++]=3Dc[e++];a.length=3Dd;return = a},grep:function(a,b,c){var d=3D[],e;c=3D!!c;for(var = f=3D0,g=3Da.length;f<g;f++)e=3D!!b(a[f],f),c!=3D=3De&&d.push(a[f]);return= d},map:function(a,c,d){var f,g,h=3D[],i=3D0,j=3Da.length,k=3Da = instanceof e||j!=3D=3Db&&typeof = j=3D=3D"number"&&(j>0&&a[0]&&a[j-1]||j=3D=3D=3D0||e.isArray(a));if(k)for(= ;i<j;i++)f=3Dc(a[i],i,d),f!=3Dnull&&(h[h.length]=3Df);else for(g in = a)f=3Dc(a[g],g,d),f!=3Dnull&&(h[h.length]=3Df);return = h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof = c=3D=3D"string"){var d=3Da[c];c=3Da,a=3Dd}if(!e.isFunction(a))return = b;var f=3DF.call(arguments,2),g=3Dfunction(){return = a.apply(c,f.concat(F.call(arguments)))};g.guid=3Da.guid=3Da.guid||g.guid|= |e.guid++;return g},access:function(a,c,d,f,g,h){var = i=3Da.length;if(typeof c=3D=3D"object"){for(var j in = c)e.access(a,j,c[j],f,g,d);return = a}if(d!=3D=3Db){f=3D!h&&f&&e.isFunction(d);for(var = k=3D0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return = i?g(a[0],c):b},now:function(){return(new = Date).getTime()},uaMatch:function(a){a=3Da.toLowerCase();var = b=3Dr.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)= ||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function = a(b,c){return new = a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=3Dthis,a.fn=3Da.prototype= =3Dthis(),a.fn.constructor=3Da,a.sub=3Dthis.sub,a.fn.init=3Dfunction(d,f)= {f&&f instanceof e&&!(f instanceof a)&&(f=3Da(f));return = e.fn.init.call(this,d,f,b)},a.fn.init.prototype=3Da.fn;var = b=3Da(c);return a},browser:{}}),e.each("Boolean Number String Function = Array Date RegExp Object".split(" "),function(a,b){I["[object = "+b+"]"]=3Db.toLowerCase()}),z=3De.uaMatch(y),z.browser&&(e.browser[z.bro= wser]=3D!0,e.browser.version=3Dz.version),e.browser.webkit&&(e.browser.sa= fari=3D!0),j.test("=C2=A0")&&(k=3D/^[\s\xA0]+/,l=3D/[\s\xA0]+$/),h=3De(c)= ,c.addEventListener?B=3Dfunction(){c.removeEventListener("DOMContentLoade= d",B,!1),e.ready()}:c.attachEvent&&(B=3Dfunction(){c.readyState=3D=3D=3D"= complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return = e}(),g=3D{};f.Callbacks=3Dfunction(a){a=3Da?g[a]||h(a):{};var = c=3D[],d=3D[],e,i,j,k,l,m=3Dfunction(b){var = d,e,g,h,i;for(d=3D0,e=3Db.length;d<e;d++)g=3Db[d],h=3Df.type(g),h=3D=3D=3D= "array"?m(g):h=3D=3D=3D"function"&&(!a.unique||!o.has(g))&&c.push(g)},n=3D= function(b,f){f=3Df||[],e=3D!a.memory||[b,f],i=3D!0,l=3Dj||0,j=3D0,k=3Dc.= length;for(;c&&l<k;l++)if(c[l].apply(b,f)=3D=3D=3D!1&&a.stopOnFalse){e=3D= !0;break}i=3D!1,c&&(a.once?e=3D=3D=3D!0?o.disable():c=3D[]:d&&d.length&&(= e=3Dd.shift(),o.fireWith(e[0],e[1])))},o=3D{add:function(){if(c){var = a=3Dc.length;m(arguments),i?k=3Dc.length:e&&e!=3D=3D!0&&(j=3Da,n(e[0],e[1= ]))}return this},remove:function(){if(c){var = b=3Darguments,d=3D0,e=3Db.length;for(;d<e;d++)for(var = f=3D0;f<c.length;f++)if(b[d]=3D=3D=3Dc[f]){i&&f<=3Dk&&(k-- ,f<=3Dl&&l-- ),c= ..splice(f-- ,1);if(a.unique)break}}return this},has:function(a){if(c){var = b=3D0,d=3Dc.length;for(;b<d;b++)if(a=3D=3D=3Dc[b])return!0}return!1},empt= y:function(){c=3D[];return this},disable:function(){c=3Dd=3De=3Db;return = this},disabled:function(){return!c},lock:function(){d=3Db,(!e||e=3D=3D=3D= !0)&&o.disable();return = this},locked:function(){return!d},fireWith:function(b,c){d&&(i?a.once||d.= push([b,c]):(!a.once||!e)&&n(b,c));return = this},fire:function(){o.fireWith(this,arguments);return = this},fired:function(){return!!e}};return o};var = i=3D[].slice;f.extend({Deferred:function(a){var b=3Df.Callbacks("once = memory"),c=3Df.Callbacks("once = memory"),d=3Df.Callbacks("memory"),e=3D"pending",g=3D{resolve:b,reject:c,= notify:d},h=3D{done:b.add,fail:c.add,progress:d.add,state:function(){retu= rn = e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).f= ail(b).progress(c);return = this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments)= ;return this},pipe:function(a,b,c){return = f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progr= ess:[c,"notify"]},function(a,b){var = c=3Db[0],e=3Db[1],g;f.isFunction(c)?i[a](function(){g=3Dc.apply(this,argu= ments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.n= otify):d[e+"With"](this=3D=3D=3Di?d:this,[g])}):i[a](d[e])})}).promise()}= ,promise:function(a){if(a=3D=3Dnull)a=3Dh;else for(var b in = h)a[b]=3Dh[b];return a}},i=3Dh.promise({}),j;for(j in = g)i[j]=3Dg[j].fire,i[j+"With"]=3Dg[j].fireWith;i.done(function(){e=3D"res= olved"},c.disable,d.lock).fail(function(){e=3D"rejected"},b.disable,d.loc= k),a&&a.call(i,i);return i},when:function(a){function m(a){return = function(b){e[a]=3Darguments.length>1?i.call(arguments,0):b,j.notifyWith(= k,e)}}function l(a){return = function(c){b[a]=3Darguments.length>1?i.call(arguments,0):c,-- g||j.resolv= eWith(j,b)}}var = b=3Di.call(arguments,0),c=3D0,d=3Db.length,e=3DArray(d),g=3Dd,h=3Dd,j=3Dd= <=3D1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=3Dj.promise();if(d>1){= for(;c<d;c++)b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise(= ).then(l(c),j.reject,m(c)):-- g;g||j.resolveWith(j,b)}else = j!=3D=3Da&&j.resolveWith(j,d?[a]:[]);return = k}}),f.support=3Dfunction(){var = b,d,e,g,h,i,j,k,l,m,n,o,p,q=3Dc.createElement("div"),r=3Dc.documentElemen= t;q.setAttribute("className","t"),q.innerHTML=3D" = <link/><table></table><a href=3D'/a' = style=3D'top:1px;float:left;opacity:.55;'>a</a><input = type=3D'checkbox'/>",d=3Dq.getElementsByTagName("*"),e=3Dq.getElementsByT= agName("a")[0];if(!d||!d.length||!e)return{};g=3Dc.createElement("select"= ),h=3Dg.appendChild(c.createElement("option")),i=3Dq.getElementsByTagName= ("input")[0],b=3D{leadingWhitespace:q.firstChild.nodeType=3D=3D=3D3,tbody= :!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByT= agName("link").length,style:/top/.test(e.getAttribute("style")),hrefNorma= lized:e.getAttribute("href")=3D=3D=3D"/a",opacity:/^0.55/.test(e.style.op= acity),cssFloat:!!e.style.cssFloat,checkOn:i.value=3D=3D=3D"on",optSelect= ed:h.selected,getSetAttribute:q.className!=3D=3D"t",enctype:!!c.createEle= ment("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).oute= rHTML!=3D=3D"<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubb= les:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkW= rapBlocks:!1,reliableMarginRight:!0},i.checked=3D!0,b.noCloneChecked=3Di.= cloneNode(!0).checked,g.disabled=3D!0,b.optDisabled=3D!h.disabled;try{del= ete = q.test}catch(s){b.deleteExpando=3D!1}!q.addEventListener&&q.attachEvent&&= q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=3D!1}),q.= cloneNode(!0).fireEvent("onclick")),i=3Dc.createElement("input"),i.value=3D= "t",i.setAttribute("type","radio"),b.radioValue=3Di.value=3D=3D=3D"t",i.s= etAttribute("checked","checked"),q.appendChild(i),k=3Dc.createDocumentFra= gment(),k.appendChild(q.lastChild),b.checkClone=3Dk.cloneNode(!0).cloneNo= de(!0).lastChild.checked,b.appendChecked=3Di.checked,k.removeChild(i),k.a= ppendChild(q),q.innerHTML=3D"",a.getComputedStyle&&(j=3Dc.createElement("= div"),j.style.width=3D"0",j.style.marginRight=3D"0",q.style.width=3D"2px"= ,q.appendChild(j),b.reliableMarginRight=3D(parseInt((a.getComputedStyle(j= ,null)||{marginRight:0}).marginRight,10)||0)=3D=3D=3D0);if(q.attachEvent)= for(o in{submit:1,change:1,focusin:1})n=3D"on"+o,p=3Dn in = q,p||(q.setAttribute(n,"return;"),p=3Dtypeof = q[n]=3D=3D"function"),b[o+"Bubbles"]=3Dp;k.removeChild(q),k=3Dg=3Dh=3Dj=3D= q=3Di=3Dnull,f(function(){var = a,d,e,g,h,i,j,k,m,n,o,r=3Dc.getElementsByTagName("body")[0];!r||(j=3D1,k=3D= "position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m=3D"visi= bility:hidden;border:0;",n=3D"style=3D'"+k+"border:5px solid = #000;padding:0;'",o=3D"<div "+n+"><div></div></div>"+"<table "+n+" = cellpadding=3D'0' = cellspacing=3D'0'>"+"<tr><td></td></tr></table>",a=3Dc.createElement("div= "),a.style.cssText=3Dm+"width:0;height:0;position:static;top:0;margin-top= :"+j+"px",r.insertBefore(a,r.firstChild),q=3Dc.createElement("div"),a.app= endChild(q),q.innerHTML=3D"<table><tr><td = style=3D'padding:0;border:0;display:none'></td><td>t</td></tr></table>",l= =3Dq.getElementsByTagName("td"),p=3Dl[0].offsetHeight=3D=3D=3D0,l[0].styl= e.display=3D"",l[1].style.display=3D"none",b.reliableHiddenOffsets=3Dp&&l= [0].offsetHeight=3D=3D=3D0,q.innerHTML=3D"",q.style.width=3Dq.style.paddi= ngLeft=3D"1px",f.boxModel=3Db.boxModel=3Dq.offsetWidth=3D=3D=3D2,typeof = q.style.zoom!=3D"undefined"&&(q.style.display=3D"inline",q.style.zoom=3D1= ,b.inlineBlockNeedsLayout=3Dq.offsetWidth=3D=3D=3D2,q.style.display=3D"",= q.innerHTML=3D"<div = style=3D'width:4px;'></div>",b.shrinkWrapBlocks=3Dq.offsetWidth!=3D=3D2),= q.style.cssText=3Dk+m,q.innerHTML=3Do,d=3Dq.firstChild,e=3Dd.firstChild,h= =3Dd.nextSibling.firstChild.firstChild,i=3D{doesNotAddBorder:e.offsetTop!= =3D=3D5,doesAddBorderForTableAndCells:h.offsetTop=3D=3D=3D5},e.style.posi= tion=3D"fixed",e.style.top=3D"20px",i.fixedPosition=3De.offsetTop=3D=3D=3D= 20||e.offsetTop=3D=3D=3D15,e.style.position=3De.style.top=3D"",d.style.ov= erflow=3D"hidden",d.style.position=3D"relative",i.subtractsBorderForOverf= lowNotVisible=3De.offsetTop=3D=3D=3D-5,i.doesNotIncludeMarginInBodyOffset= =3Dr.offsetTop!=3D=3Dj,r.removeChild(a),q=3Da=3Dnull,f.extend(b,i))});ret= urn b}();var = j=3D/^(?:\{.*\}|\[.*\])$/,k=3D/([A-Z])/g;f.extend({cache:{},uuid:0,expand= o:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0= ,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:f= unction(a){a=3Da.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!= m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var = g,h,i,j=3Df.expando,k=3Dtypeof = c=3D=3D"string",l=3Da.nodeType,m=3Dl?f.cache:a,n=3Dl?a[j]:a[j]&&j,o=3Dc=3D= =3D=3D"events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d=3D=3D=3Db)return;= n||(l?a[j]=3Dn=3D++f.uuid:n=3Dj),m[n]||(m[n]=3D{},l||(m[n].toJSON=3Df.noo= p));if(typeof c=3D=3D"object"||typeof = c=3D=3D"function")e?m[n]=3Df.extend(m[n],c):m[n].data=3Df.extend(m[n].dat= a,c);g=3Dh=3Dm[n],e||(h.data||(h.data=3D{}),h=3Dh.data),d!=3D=3Db&&(h[f.c= amelCase(c)]=3Dd);if(o&&!h[c])return = g.events;k?(i=3Dh[c],i=3D=3Dnull&&(i=3Dh[f.camelCase(c)])):i=3Dh;return = i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var = d,e,g,h=3Df.expando,i=3Da.nodeType,j=3Di?f.cache:a,k=3Di?a[h]:h;if(!j[k])= return;if(b){d=3Dc?j[k]:j[k].data;if(d){f.isArray(b)||(b in = d?b=3D[b]:(b=3Df.camelCase(b),b in d?b=3D[b]:b=3Db.split(" = ")));for(e=3D0,g=3Db.length;e<g;e++)delete = d[b[e]];if(!(c?m:f.isEmptyObject)(d))return}}if(!c){delete = j[k].data;if(!m(j[k]))return}f.support.deleteExpando||!j.setInterval?dele= te j[k]:j[k]=3Dnull,i&&(f.support.deleteExpando?delete = a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=3Dnull)}},_data:function= (a,b,c){return = f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var = b=3Df.noData[a.nodeName.toLowerCase()];if(b)return = b!=3D=3D!0&&a.getAttribute("classid")=3D=3D=3Db}return!0}}),f.fn.extend({= data:function(a,c){var d,e,g,h=3Dnull;if(typeof = a=3D=3D"undefined"){if(this.length){h=3Df.data(this[0]);if(this[0].nodeTy= pe=3D=3D=3D1&&!f._data(this[0],"parsedAttrs")){e=3Dthis[0].attributes;for= (var = i=3D0,j=3De.length;i<j;i++)g=3De[i].name,g.indexOf("data-")=3D=3D=3D0&&(g= =3Df.camelCase(g.substring(5)),l(this[0],g,h[g]));f._data(this[0],"parsed= Attrs",!0)}}return h}if(typeof a=3D=3D"object")return = this.each(function(){f.data(this,a)});d=3Da.split("."),d[1]=3Dd[1]?"."+d[= 1]:"";if(c=3D=3D=3Db){h=3Dthis.triggerHandler("getData"+d[1]+"!",[d[0]]),= h=3D=3D=3Db&&this.length&&(h=3Df.data(this[0],a),h=3Dl(this[0],a,h));retu= rn h=3D=3D=3Db&&d[1]?this.data(d[0]):h}return this.each(function(){var = b=3Df(this),e=3D[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(th= is,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(= a){return = this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a= ,b){a&&(b=3D(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:f= unction(a,b,c){a!=3D=3D!0&&(c=3Db,b=3Da,a=3D!1);if(b){c=3Dc||"fx";var = d=3Dc+"mark",e=3Da?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b= ,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var = d;if(a){b=3D(b||"fx")+"queue",d=3Df._data(a,b),c&&(!d||f.isArray(c)?d=3Df= .._data(a,b,f.makeArray(c)):d.push(c));return = d||[]}},dequeue:function(a,b){b=3Db||"fx";var = c=3Df.queue(a,b),d=3Dc.shift(),e=3D{};d=3D=3D=3D"inprogress"&&(d=3Dc.shif= t()),d&&(b=3D=3D=3D"fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.= call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue = "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof= a!=3D"string"&&(c=3Da,a=3D"fx");if(c=3D=3D=3Db)return = f.queue(this[0],a);return this.each(function(){var = b=3Df.queue(this,a,c);a=3D=3D=3D"fx"&&b[0]!=3D=3D"inprogress"&&f.dequeue(= this,a)})},dequeue:function(a){return = this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=3Df.fx?f.= fx.speeds[a]||a:a,b=3Db||"fx";return this.queue(b,function(b,c){var = d=3DsetTimeout(b,a);c.stop=3Dfunction(){clearTimeout(d)}})},clearQueue:fu= nction(a){return this.queue(a||"fx",[])},promise:function(a,c){function = m(){-- h||d.resolveWith(e,[e])}typeof = a!=3D"string"&&(c=3Da,a=3Db),a=3Da||"fx";var = d=3Df.Deferred(),e=3Dthis,g=3De.length,h=3D1,i=3Da+"defer",j=3Da+"queue",= k=3Da+"mark",l;while(g-- )if(l=3Df.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)= ||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once = memory"),!0))h++,l.add(m);m();return d.promise()}});var = o=3D/[\n\t\r]/g,p=3D/\s+/,q=3D/\r/g,r=3D/^(?:button|input)$/i,s=3D/^(?:bu= tton|input|object|select|textarea)$/i,t=3D/^a(?:rea)?$/i,u=3D/^(?:autofoc= us|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|op= en|readonly|required|scoped|selected)$/i,v=3Df.support.getSetAttribute,w,= x,y;f.fn.extend({attr:function(a,b){return = f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return = this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return = f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=3Df.propFix[a]||a;= return this.each(function(){try{this[a]=3Db,delete = this[a]}catch(c){}})},addClass:function(a){var = b,c,d,e,g,h,i;if(f.isFunction(a))return = this.each(function(b){f(this).addClass(a.call(this,b,this.className))});i= f(a&&typeof = a=3D=3D"string"){b=3Da.split(p);for(c=3D0,d=3Dthis.length;c<d;c++){e=3Dth= is[c];if(e.nodeType=3D=3D=3D1)if(!e.className&&b.length=3D=3D=3D1)e.class= Name=3Da;else{g=3D" "+e.className+" = ";for(h=3D0,i=3Db.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=3Db[h]+" = ");e.className=3Df.trim(g)}}}return this},removeClass:function(a){var = c,d,e,g,h,i,j;if(f.isFunction(a))return = this.each(function(b){f(this).removeClass(a.call(this,b,this.className))}= );if(a&&typeof = a=3D=3D"string"||a=3D=3D=3Db){c=3D(a||"").split(p);for(d=3D0,e=3Dthis.len= gth;d<e;d++){g=3Dthis[d];if(g.nodeType=3D=3D=3D1&&g.className)if(a){h=3D(= " "+g.className+" ").replace(o," = ");for(i=3D0,j=3Dc.length;i<j;i++)h=3Dh.replace(" "+c[i]+" "," = ");g.className=3Df.trim(h)}else g.className=3D""}}return = this},toggleClass:function(a,b){var c=3Dtypeof a,d=3Dtypeof = b=3D=3D"boolean";if(f.isFunction(a))return = this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b)= ,b)});return this.each(function(){if(c=3D=3D=3D"string"){var = e,g=3D0,h=3Df(this),i=3Db,j=3Da.split(p);while(e=3Dj[g++])i=3Dd?i:!h.hasC= lass(e),h[i?"addClass":"removeClass"](e)}else = if(c=3D=3D=3D"undefined"||c=3D=3D=3D"boolean")this.className&&f._data(thi= s,"__className__",this.className),this.className=3Dthis.className||a=3D=3D= =3D!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var = b=3D" "+a+" = ",c=3D0,d=3Dthis.length;for(;c<d;c++)if(this[c].nodeType=3D=3D=3D1&&(" = "+this[c].className+" ").replace(o," = ").indexOf(b)>-1)return!0;return!1},val:function(a){var = c,d,e,g=3Dthis[0];{if(!!arguments.length){e=3Df.isFunction(a);return = this.each(function(d){var = g=3Df(this),h;if(this.nodeType=3D=3D=3D1){e?h=3Da.call(this,d,g.val()):h=3D= a,h=3D=3Dnull?h=3D"":typeof = h=3D=3D"number"?h+=3D"":f.isArray(h)&&(h=3Df.map(h,function(a){return = a=3D=3Dnull?"":a+""})),c=3Df.valHooks[this.nodeName.toLowerCase()]||f.val= Hooks[this.type];if(!c||!("set"in = c)||c.set(this,h,"value")=3D=3D=3Db)this.value=3Dh}})}if(g){c=3Df.valHook= s[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in = c&&(d=3Dc.get(g,"value"))!=3D=3Db)return d;d=3Dg.value;return typeof = d=3D=3D"string"?d.replace(q,""):d=3D=3Dnull?"":d}}}}),f.extend({valHooks:= {option:{get:function(a){var = b=3Da.attributes.value;return!b||b.specified?a.value:a.text}},select:{get= :function(a){var = b,c,d,e,g=3Da.selectedIndex,h=3D[],i=3Da.options,j=3Da.type=3D=3D=3D"sele= ct-one";if(g<0)return = null;c=3Dj?g:0,d=3Dj?g+1:i.length;for(;c<d;c++){e=3Di[c];if(e.selected&&(= f.support.optDisabled?!e.disabled:e.getAttribute("disabled")=3D=3D=3Dnull= )&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=3Df(= e).val();if(j)return b;h.push(b)}}if(j&&!h.length&&i.length)return = f(i[g]).val();return h},set:function(a,b){var = c=3Df.makeArray(b);f(a).find("option").each(function(){this.selected=3Df.= inArray(f(this).val(),c)>=3D0}),c.length||(a.selectedIndex=3D-1);return = c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,off= set:!0},attr:function(a,c,d,e){var = g,h,i,j=3Da.nodeType;if(!!a&&j!=3D=3D3&&j!=3D=3D8&&j!=3D=3D2){if(e&&c in = f.attrFn)return f(a)[c](d);if(typeof = a.getAttribute=3D=3D"undefined")return = f.prop(a,c,d);i=3Dj!=3D=3D1||!f.isXMLDoc(a),i&&(c=3Dc.toLowerCase(),h=3Df= ..attrHooks[c]||(u.test(c)?x:w));if(d!=3D=3Db){if(d=3D=3D=3Dnull){f.remove= Attr(a,c);return}if(h&&"set"in h&&i&&(g=3Dh.set(a,d,c))!=3D=3Db)return = g;a.setAttribute(c,""+d);return d}if(h&&"get"in = h&&i&&(g=3Dh.get(a,c))!=3D=3Dnull)return g;g=3Da.getAttribute(c);return = g=3D=3D=3Dnull?b:g}},removeAttr:function(a,b){var = c,d,e,g,h=3D0;if(b&&a.nodeType=3D=3D=3D1){d=3Db.toLowerCase().split(p),g=3D= d.length;for(;h<g;h++)e=3Dd[h],e&&(c=3Df.propFix[e]||e,f.attr(a,e,""),a.r= emoveAttribute(v?e:c),u.test(e)&&c in = a&&(a[c]=3D!1))}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName= )&&a.parentNode)f.error("type property can't be changed");else = if(!f.support.radioValue&&b=3D=3D=3D"radio"&&f.nodeName(a,"input")){var = c=3Da.value;a.setAttribute("type",b),c&&(a.value=3Dc);return = b}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button"))return = w.get(a,b);return b in = a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button"))return = w.set(a,b,c);a.value=3Db}}},propFix:{tabindex:"tabIndex",readonly:"readOn= ly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing= :"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSp= an",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEdi= table"},prop:function(a,c,d){var = e,g,h,i=3Da.nodeType;if(!!a&&i!=3D=3D3&&i!=3D=3D8&&i!=3D=3D2){h=3Di!=3D=3D= 1||!f.isXMLDoc(a),h&&(c=3Df.propFix[c]||c,g=3Df.propHooks[c]);return = d!=3D=3Db?g&&"set"in g&&(e=3Dg.set(a,d,c))!=3D=3Db?e:a[c]=3Dd:g&&"get"in = g&&(e=3Dg.get(a,c))!=3D=3Dnull?e:a[c]}},propHooks:{tabIndex:{get:function= (a){var c=3Da.getAttributeNode("tabindex");return = c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName= )&&a.href?0:b}}}}),f.attrHooks.tabindex=3Df.propHooks.tabIndex,x=3D{get:f= unction(a,c){var d,e=3Df.prop(a,c);return e=3D=3D=3D!0||typeof = e!=3D"boolean"&&(d=3Da.getAttributeNode(c))&&d.nodeValue!=3D=3D!1?c.toLow= erCase():b},set:function(a,b,c){var = d;b=3D=3D=3D!1?f.removeAttr(a,c):(d=3Df.propFix[c]||c,d in = a&&(a[d]=3D!0),a.setAttribute(c,c.toLowerCase()));return = c}},v||(y=3D{name:!0,id:!0},w=3Df.valHooks.button=3D{get:function(a,c){va= r d;d=3Da.getAttributeNode(c);return = d&&(y[c]?d.nodeValue!=3D=3D"":d.specified)?d.nodeValue:b},set:function(a,= b,d){var = e=3Da.getAttributeNode(d);e||(e=3Dc.createAttribute(d),a.setAttributeNode= (e));return = e.nodeValue=3Db+""}},f.attrHooks.tabindex.set=3Dw.set,f.each(["width","he= ight"],function(a,b){f.attrHooks[b]=3Df.extend(f.attrHooks[b],{set:functi= on(a,c){if(c=3D=3D=3D""){a.setAttribute(b,"auto");return = c}}})}),f.attrHooks.contenteditable=3D{get:w.get,set:function(a,b,c){b=3D= =3D=3D""&&(b=3D"false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(= ["href","src","width","height"],function(a,c){f.attrHooks[c]=3Df.extend(f= ..attrHooks[c],{get:function(a){var d=3Da.getAttribute(c,2);return = d=3D=3D=3Dnull?b:d}})}),f.support.style||(f.attrHooks.style=3D{get:functi= on(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return = a.style.cssText=3D""+b}}),f.support.optSelected||(f.propHooks.selected=3D= f.extend(f.propHooks.selected,{get:function(a){var = b=3Da.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedI= ndex);return = null}})),f.support.enctype||(f.propFix.enctype=3D"encoding"),f.support.ch= eckOn||f.each(["radio","checkbox"],function(){f.valHooks[this]=3D{get:fun= ction(a){return = a.getAttribute("value")=3D=3D=3Dnull?"on":a.value}}}),f.each(["radio","ch= eckbox"],function(){f.valHooks[this]=3Df.extend(f.valHooks[this],{set:fun= ction(a,b){if(f.isArray(b))return = a.checked=3Df.inArray(f(a).val(),b)>=3D0}})});var = z=3D/^(?:textarea|input|select)$/i,A=3D/^([^\.]*)?(?:\.(.+))?$/,B=3D/\bho= ver(\.\S+)?\b/,C=3D/^key/,D=3D/^(?:mouse|contextmenu)|click/,E=3D/^(?:foc= usinfocus|focusoutblur)$/,F=3D/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=3D= function(a){var = b=3DF.exec(a);b&&(b[1]=3D(b[1]||"").toLowerCase(),b[3]=3Db[3]&&new = RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=3Dfunction(a,b){var = c=3Da.attributes||{};return(!b[1]||a.nodeName.toLowerCase()=3D=3D=3Db[1])= &&(!b[2]||(c.id||{}).value=3D=3D=3Db[2])&&(!b[3]||b[3].test((c["class"]||= {}).value))},I=3Dfunction(a){return = f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};=0A= f.event=3D{add:function(a,c,d,e,g){var = h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType=3D=3D=3D3||a.nodeType=3D=3D=3D8||= !c||!d||!(h=3Df._data(a)))){d.handler&&(p=3Dd,d=3Dp.handler),d.guid||(d.g= uid=3Df.guid++),j=3Dh.events,j||(h.events=3Dj=3D{}),i=3Dh.handle,i||(h.ha= ndle=3Di=3Dfunction(a){return typeof = f!=3D"undefined"&&(!a||f.event.triggered!=3D=3Da.type)?f.event.dispatch.a= pply(i.elem,arguments):b},i.elem=3Da),c=3Df.trim(I(c)).split(" = ");for(k=3D0;k<c.length;k++){l=3DA.exec(c[k])||[],m=3Dl[1],n=3D(l[2]||"")= ..split(".").sort(),s=3Df.event.special[m]||{},m=3D(g?s.delegateType:s.bin= dType)||m,s=3Df.event.special[m]||{},o=3Df.extend({type:m,origType:l[1],d= ata:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},= p),r=3Dj[m];if(!r){r=3Dj[m]=3D[],r.delegateCount=3D0;if(!s.setup||s.setup= ..call(a,e,n,i)=3D=3D=3D!1)a.addEventListener?a.addEventListener(m,i,!1):a= ..attachEvent&&a.attachEvent("on"+m,i)}s.add&&(s.add.call(a,o),o.handler.g= uid||(o.handler.guid=3Dd.guid)),g?r.splice(r.delegateCount++,0,o):r.push(= o),f.event.global[m]=3D!0}a=3Dnull}},global:{},remove:function(a,b,c,d,e)= {var = g=3Df.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=3Dg.eve= nts)){b=3Df.trim(I(b||"")).split(" = ");for(h=3D0;h<b.length;h++){i=3DA.exec(b[h])||[],j=3Dk=3Di[1],l=3Di[2];i= f(!j){for(j in = o)f.event.remove(a,j+b[h],c,d,!0);continue}p=3Df.event.special[j]||{},j=3D= (d?p.delegateType:p.bindType)||j,r=3Do[j]||[],m=3Dr.length,l=3Dl?new = RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):nul= l;for(n=3D0;n<r.length;n++)s=3Dr[n],(e||k=3D=3D=3Ds.origType)&&(!c||c.gui= d=3D=3D=3Ds.guid)&&(!l||l.test(s.namespace))&&(!d||d=3D=3D=3Ds.selector||= d=3D=3D=3D"**"&&s.selector)&&(r.splice(n-- ,1),s.selector&&r.delegateCount= -- ,p.remove&&p.remove.call(a,s));r.length=3D=3D=3D0&&m!=3D=3Dr.length&&((= !p.teardown||p.teardown.call(a,l)=3D=3D=3D!1)&&f.removeEvent(a,j,g.handle= ),delete = o[j])}f.isEmptyObject(o)&&(q=3Dg.handle,q&&(q.elem=3Dnull),f.removeData(a= ,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData= :!0},trigger:function(c,d,e,g){if(!e||e.nodeType!=3D=3D3&&e.nodeType!=3D=3D= 8){var = h=3Dc.type||c,i=3D[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered))r= eturn;h.indexOf("!")>=3D0&&(h=3Dh.slice(0,-1),k=3D!0),h.indexOf(".")>=3D0= &&(i=3Dh.split("."),h=3Di.shift(),i.sort());if((!e||f.event.customEvent[h= ])&&!f.event.global[h])return;c=3Dtypeof = c=3D=3D"object"?c[f.expando]?c:new f.Event(h,c):new = f.Event(h),c.type=3Dh,c.isTrigger=3D!0,c.exclusive=3Dk,c.namespace=3Di.jo= in("."),c.namespace_re=3Dc.namespace?new = RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=3Dh.indexOf(":= ")<0?"on"+h:"";if(!e){j=3Df.cache;for(l in = j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);r= eturn}c.result=3Db,c.target||(c.target=3De),d=3Dd!=3Dnull?f.makeArray(d):= [],d.unshift(c),p=3Df.event.special[h]||{};if(p.trigger&&p.trigger.apply(= e,d)=3D=3D=3D!1)return;r=3D[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isW= indow(e)){s=3Dp.delegateType||h,m=3DE.test(s+h)?e:e.parentNode,n=3Dnull;f= or(;m;m=3Dm.parentNode)r.push([m,s]),n=3Dm;n&&n=3D=3D=3De.ownerDocument&&= r.push([n.defaultView||n.parentWindow||a,s])}for(l=3D0;l<r.length&&!c.isP= ropagationStopped();l++)m=3Dr[l][0],c.type=3Dr[l][1],q=3D(f._data(m,"even= ts")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=3Do&&m[o],q&&f.a= cceptData(m)&&q.apply(m,d)=3D=3D=3D!1&&c.preventDefault();c.type=3Dh,!g&&= !c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d= )=3D=3D=3D!1)&&(h!=3D=3D"click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&= &e[h]&&(h!=3D=3D"focus"&&h!=3D=3D"blur"||c.target.offsetWidth!=3D=3D0)&&!= f.isWindow(e)&&(n=3De[o],n&&(e[o]=3Dnull),f.event.triggered=3Dh,e[h](),f.= event.triggered=3Db,n&&(e[o]=3Dn));return = c.result}},dispatch:function(c){c=3Df.event.fix(c||a.event);var = d=3D(f._data(this,"events")||{})[c.type]||[],e=3Dd.delegateCount,g=3D[].s= lice.call(arguments,0),h=3D!c.exclusive&&!c.namespace,i=3D[],j,k,l,m,n,o,= p,q,r,s,t;g[0]=3Dc,c.delegateTarget=3Dthis;if(e&&!c.target.disabled&&(!c.= button||c.type!=3D=3D"click")){m=3Df(this),m.context=3Dthis.ownerDocument= ||this;for(l=3Dc.target;l!=3Dthis;l=3Dl.parentNode||this){o=3D{},q=3D[],m= [0]=3Dl;for(j=3D0;j<e;j++)r=3Dd[j],s=3Dr.selector,o[s]=3D=3D=3Db&&(o[s]=3D= r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r);q.length&&i.push({elem:l,ma= tches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=3D0;j= <i.length&&!c.isPropagationStopped();j++){p=3Di[j],c.currentTarget=3Dp.el= em;for(k=3D0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){= r=3Dp.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.name= space_re.test(r.namespace))c.data=3Dr.data,c.handleObj=3Dr,n=3D((f.event.= special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!=3D=3Db&&(c= ..result=3Dn,n=3D=3D=3D!1&&(c.preventDefault(),c.stopPropagation()))}}retu= rn c.result},props:"attrChange attrName relatedNode srcElement altKey = bubbles cancelable ctrlKey currentTarget eventPhase metaKey = relatedTarget shiftKey target timeStamp view which".split(" = "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" = "),filter:function(a,b){a.which=3D=3Dnull&&(a.which=3Db.charCode!=3Dnull?= b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons = clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY = toElement".split(" "),filter:function(a,d){var = e,f,g,h=3Dd.button,i=3Dd.fromElement;a.pageX=3D=3Dnull&&d.clientX!=3Dnull= &&(e=3Da.target.ownerDocument||c,f=3De.documentElement,g=3De.body,a.pageX= =3Dd.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g= ..clientLeft||0),a.pageY=3Dd.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(= f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget= =3Di=3D=3D=3Da.target?d.toElement:i),!a.which&&h!=3D=3Db&&(a.which=3Dh&1?= 1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando])return a;var = d,e,g=3Da,h=3Df.event.fixHooks[a.type]||{},i=3Dh.props?this.props.concat(= h.props):this.props;a=3Df.Event(g);for(d=3Di.length;d;)e=3Di[-- d],a[e]=3D= g[e];a.target||(a.target=3Dg.srcElement||c),a.target.nodeType=3D=3D=3D3&&= (a.target=3Da.target.parentNode),a.metaKey=3D=3D=3Db&&(a.metaKey=3Da.ctrl= Key);return = h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubb= le:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},befo= reunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=3D= c)},teardown:function(a,b){this.onbeforeunload=3D=3D=3Db&&(this.onbeforeu= nload=3Dnull)}}},simulate:function(a,b,c,d){var e=3Df.extend(new = f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,n= ull,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefaul= t()}},f.event.handle=3Df.event.dispatch,f.removeEvent=3Dc.removeEventList= ener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)= }:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=3Dfunct= ion(a,b){if(!(this instanceof f.Event))return new = f.Event(a,b);a&&a.type?(this.originalEvent=3Da,this.type=3Da.type,this.is= DefaultPrevented=3Da.defaultPrevented||a.returnValue=3D=3D=3D!1||a.getPre= ventDefault&&a.getPreventDefault()?K:J):this.type=3Da,b&&f.extend(this,b)= ,this.timeStamp=3Da&&a.timeStamp||f.now(),this[f.expando]=3D!0},f.Event.p= rototype=3D{preventDefault:function(){this.isDefaultPrevented=3DK;var = a=3Dthis.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnV= alue=3D!1)},stopPropagation:function(){this.isPropagationStopped=3DK;var = a=3Dthis.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.canc= elBubble=3D!0)},stopImmediatePropagation:function(){this.isImmediatePropa= gationStopped=3DK,this.stopPropagation()},isDefaultPrevented:J,isPropagat= ionStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseov= er",mouseleave:"mouseout"},function(a,b){f.event.special[a]=3D{delegateTy= pe:b,bindType:b,handle:function(a){var = c=3Dthis,d=3Da.relatedTarget,e=3Da.handleObj,g=3De.selector,h;if(!d||d!=3D= =3Dc&&!f.contains(c,d))a.type=3De.origType,h=3De.handler.apply(this,argum= ents),a.type=3Db;return = h}}}),f.support.submitBubbles||(f.event.special.submit=3D{setup:function(= ){if(f.nodeName(this,"form"))return!1;f.event.add(this,"click._submit = keypress._submit",function(a){var = c=3Da.target,d=3Df.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d= &&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.p= arentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}= ),d._submit_attached=3D!0)})},teardown:function(){if(f.nodeName(this,"for= m"))return!1;f.event.remove(this,"._submit")}}),f.support.changeBubbles||= (f.event.special.change=3D{setup:function(){if(z.test(this.nodeName)){if(= this.type=3D=3D=3D"checkbox"||this.type=3D=3D=3D"radio")f.event.add(this,= "propertychange._change",function(a){a.originalEvent.propertyName=3D=3D=3D= "checked"&&(this._just_changed=3D!0)}),f.event.add(this,"click._change",f= unction(a){this._just_changed&&!a.isTrigger&&(this._just_changed=3D!1,f.e= vent.simulate("change",this,a,!0))});return!1}f.event.add(this,"beforeact= ivate._change",function(a){var = b=3Da.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"cha= nge._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f= ..event.simulate("change",this.parentNode,a,!0)}),b._change_attached=3D!0)= })},handle:function(a){var = b=3Da.target;if(this!=3D=3Db||a.isSimulated||a.isTrigger||b.type!=3D=3D"r= adio"&&b.type!=3D=3D"checkbox")return = a.handleObj.handler.apply(this,arguments)},teardown:function(){f.event.re= move(this,"._change");return = z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin= ",blur:"focusout"},function(a,b){var = d=3D0,e=3Dfunction(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.e= vent.special[b]=3D{setup:function(){d++=3D=3D=3D0&&c.addEventListener(a,e= ,!0)},teardown:function(){-- d=3D=3D=3D0&&c.removeEventListener(a,e,!0)}}}= ),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof = a=3D=3D"object"){typeof c!=3D"string"&&(d=3Dc,c=3Db);for(i in = a)this.on(i,c,d,a[i],g);return = this}d=3D=3Dnull&&e=3D=3Dnull?(e=3Dc,d=3Dc=3Db):e=3D=3Dnull&&(typeof = c=3D=3D"string"?(e=3Dd,d=3Db):(e=3Dd,d=3Dc,c=3Db));if(e=3D=3D=3D!1)e=3DJ;= else if(!e)return = this;g=3D=3D=3D1&&(h=3De,e=3Dfunction(a){f().off(a);return = h.apply(this,arguments)},e.guid=3Dh.guid||(h.guid=3Df.guid++));return = this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){r= eturn = this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&= &a.handleObj){var = e=3Da.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespac= e:e.type,e.selector,e.handler);return this}if(typeof = a=3D=3D"object"){for(var g in a)this.off(g,c,a[g]);return = this}if(c=3D=3D=3D!1||typeof = c=3D=3D"function")d=3Dc,c=3Db;d=3D=3D=3D!1&&(d=3DJ);return = this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){r= eturn this.on(a,null,b,c)},unbind:function(a,b){return = this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.select= or,b,c);return = this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);retu= rn this},delegate:function(a,b,c,d){return = this.on(b,a,c,d)},undelegate:function(a,b,c){return = arguments.length=3D=3D1?this.off(a,"**"):this.off(b,a,c)},trigger:functio= n(a,b){return = this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function= (a,b){if(this[0])return = f.event.trigger(a,b,this[0],!0)},toggle:function(a){var = b=3Darguments,c=3Da.guid||f.guid++,d=3D0,e=3Dfunction(c){var = e=3D(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.= guid,e+1),c.preventDefault();return = b[e].apply(this,arguments)||!1};e.guid=3Dc;while(d<b.length)b[d++].guid=3D= c;return this.click(e)},hover:function(a,b){return = this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin = focusout load resize scroll unload click dblclick mousedown mouseup = mousemove mouseover mouseout mouseenter mouseleave change select submit = keydown keypress keyup error contextmenu".split(" = "),function(a,b){f.fn[b]=3Dfunction(a,c){c=3D=3Dnull&&(c=3Da,a=3Dnull);re= turn = arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attr= Fn[b]=3D!0),C.test(b)&&(f.event.fixHooks[b]=3Df.event.keyHooks),D.test(b)= &&(f.event.fixHooks[b]=3Df.event.mouseHooks)}),function(){function = x(a,b,c,e,f,g){for(var h=3D0,i=3De.length;h<i;h++){var = j=3De[h];if(j){var = k=3D!1;j=3Dj[a];while(j){if(j[d]=3D=3D=3Dc){k=3De[j.sizset];break}if(j.no= deType=3D=3D=3D1){g||(j[d]=3Dc,j.sizset=3Dh);if(typeof = b!=3D"string"){if(j=3D=3D=3Db){k=3D!0;break}}else = if(m.filter(b,[j]).length>0){k=3Dj;break}}j=3Dj[a]}e[h]=3Dk}}}function = w(a,b,c,e,f,g){for(var h=3D0,i=3De.length;h<i;h++){var = j=3De[h];if(j){var = k=3D!1;j=3Dj[a];while(j){if(j[d]=3D=3D=3Dc){k=3De[j.sizset];break}j.nodeT= ype=3D=3D=3D1&&!g&&(j[d]=3Dc,j.sizset=3Dh);if(j.nodeName.toLowerCase()=3D= =3D=3Db){k=3Dj;break}j=3Dj[a]}e[h]=3Dk}}}var = a=3D/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[= \]'"]+)+\]|\\.|[^ = +~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=3D"sizcache"+(Math.rando=m()+"").replace(".",""),e=3D0,g=3DObject.prototype.toString,h=3D!1,i=3D!0= ,j=3D/\\/g,k=3D/\r\n/g,l=3D/\W/;[0,0].sort(function(){i=3D!1;return = 0});var m=3Dfunction(b,d,e,f){e=3De||[],d=3Dd||c;var = h=3Dd;if(d.nodeType!=3D=3D1&&d.nodeType!=3D=3D9)return[];if(!b||typeof = b!=3D"string")return e;var = i,j,k,l,n,q,r,t,u=3D!0,v=3Dm.isXML(d),w=3D[],x=3Db;do{a.exec(""),i=3Da.ex= ec(x);if(i){x=3Di[3],w.push(i[1]);if(i[2]){l=3Di[3];break}}}while(i);if(w= ..length>1&&p.exec(b))if(w.length=3D=3D=3D2&&o.relative[w[0]])j=3Dy(w[0]+w= [1],d,f);else{j=3Do.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=3D= w.shift(),o.relative[b]&&(b+=3Dw.shift()),j=3Dy(b,j,f)}else{!f&&w.length>= 1&&d.nodeType=3D=3D=3D9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.= length-1])&&(n=3Dm.find(w.shift(),d,v),d=3Dn.expr?m.filter(n.expr,n.set)[= 0]:n.set[0]);if(d){n=3Df?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length=3D= =3D=3D1&&(w[0]=3D=3D=3D"~"||w[0]=3D=3D=3D"+")&&d.parentNode?d.parentNode:= d,v),j=3Dn.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=3Ds(j):u=3D!1;w= hile(w.length)q=3Dw.pop(),r=3Dq,o.relative[q]?r=3Dw.pop():q=3D"",r=3D=3Dn= ull&&(r=3Dd),o.relative[q](k,r,v)}else = k=3Dw=3D[]}k||(k=3Dj),k||m.error(q||b);if(g.call(k)=3D=3D=3D"[object = Array]")if(!u)e.push.apply(e,k);else = if(d&&d.nodeType=3D=3D=3D1)for(t=3D0;k[t]!=3Dnull;t++)k[t]&&(k[t]=3D=3D=3D= !0||k[t].nodeType=3D=3D=3D1&&m.contains(d,k[t]))&&e.push(j[t]);else = for(t=3D0;k[t]!=3Dnull;t++)k[t]&&k[t].nodeType=3D=3D=3D1&&e.push(j[t]);el= se s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return = e};m.uniqueSort=3Dfunction(a){if(u){h=3Di,a.sort(u);if(h)for(var = b=3D1;b<a.length;b++)a[b]=3D=3D=3Da[b-1]&&a.splice(b-- ,1)}return = a},m.matches=3Dfunction(a,b){return = m(a,null,null,b)},m.matchesSelector=3Dfunction(a,b){return = m(b,null,null,[a]).length>0},m.find=3Dfunction(a,b,c){var = d,e,f,g,h,i;if(!a)return[];for(e=3D0,f=3Do.order.length;e<f;e++){h=3Do.or= der[e];if(g=3Do.leftMatch[h].exec(a)){i=3Dg[1],g.splice(1,1);if(i.substr(= i.length-1)!=3D=3D"\\"){g[1]=3D(g[1]||"").replace(j,""),d=3Do.find[h](g,b= ,c);if(d!=3Dnull){a=3Da.replace(o.match[h],"");break}}}}d||(d=3Dtypeof = b.getElementsByTagName!=3D"undefined"?b.getElementsByTagName("*"):[]);ret= urn{set:d,expr:a}},m.filter=3Dfunction(a,c,d,e){var = f,g,h,i,j,k,l,n,p,q=3Da,r=3D[],s=3Dc,t=3Dc&&c[0]&&m.isXML(c[0]);while(a&&= c.length){for(h in = o.filter)if((f=3Do.leftMatch[h].exec(a))!=3Dnull&&f[2]){k=3Do.filter[h],l= =3Df[1],g=3D!1,f.splice(1,1);if(l.substr(l.length-1)=3D=3D=3D"\\")continu= e;s=3D=3D=3Dr&&(r=3D[]);if(o.preFilter[h]){f=3Do.preFilter[h](f,s,d,r,e,t= );if(!f)g=3Di=3D!0;else = if(f=3D=3D=3D!0)continue}if(f)for(n=3D0;(j=3Ds[n])!=3Dnull;n++)j&&(i=3Dk(= j,f,n,s),p=3De^i,d&&i!=3Dnull?p?g=3D!0:s[n]=3D!1:p&&(r.push(j),g=3D!0));i= f(i!=3D=3Db){d||(s=3Dr),a=3Da.replace(o.match[h],"");if(!g)return[];break= }}if(a=3D=3D=3Dq)if(g=3D=3Dnull)m.error(a);else break;q=3Da}return = s},m.error=3Dfunction(a){throw new Error("Syntax error, unrecognized = expression: "+a)};var n=3Dm.getText=3Dfunction(a){var = b,c,d=3Da.nodeType,e=3D"";if(d){if(d=3D=3D=3D1||d=3D=3D=3D9){if(typeof = a.textContent=3D=3D"string")return a.textContent;if(typeof = a.innerText=3D=3D"string")return = a.innerText.replace(k,"");for(a=3Da.firstChild;a;a=3Da.nextSibling)e+=3Dn= (a)}else if(d=3D=3D=3D3||d=3D=3D=3D4)return a.nodeValue}else = for(b=3D0;c=3Da[b];b++)c.nodeType!=3D=3D8&&(e+=3Dn(c));return = e},o=3Dm.selectors=3D{order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0= -\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=3D= ['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFF= FF\-]|\\.)+)\s*(?:(\S?=3D)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\= \.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth= |last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\= -]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\)= )?(?=3D[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\= ([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","= for":"htmlFor"},attrHandle:{href:function(a){return = a.getAttribute("href")},type:function(a){return = a.getAttribute("type")}},relative:{"+":function(a,b){var c=3Dtypeof = b=3D=3D"string",d=3Dc&&!l.test(b),e=3Dc&&!d;d&&(b=3Db.toLowerCase());for(= var = f=3D0,g=3Da.length,h;f<g;f++)if(h=3Da[f]){while((h=3Dh.previousSibling)&&= h.nodeType!=3D=3D1);a[f]=3De||h&&h.nodeName.toLowerCase()=3D=3D=3Db?h||!1= :h=3D=3D=3Db}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=3Dtypeof = b=3D=3D"string",e=3D0,f=3Da.length;if(d&&!l.test(b)){b=3Db.toLowerCase();= for(;e<f;e++){c=3Da[e];if(c){var = g=3Dc.parentNode;a[e]=3Dg.nodeName.toLowerCase()=3D=3D=3Db?g:!1}}}else{fo= r(;e<f;e++)c=3Da[e],c&&(a[e]=3Dd?c.parentNode:c.parentNode=3D=3D=3Db);d&&= m.filter(b,a,!0)}},"":function(a,b,c){var d,f=3De++,g=3Dx;typeof = b=3D=3D"string"&&!l.test(b)&&(b=3Db.toLowerCase(),d=3Db,g=3Dw),g("parentN= ode",b,f,a,d,c)},"~":function(a,b,c){var d,f=3De++,g=3Dx;typeof = b=3D=3D"string"&&!l.test(b)&&(b=3Db.toLowerCase(),d=3Db,g=3Dw),g("previou= sSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof = b.getElementById!=3D"undefined"&&!c){var = d=3Db.getElementById(a[1]);return = d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof = b.getElementsByName!=3D"undefined"){var = c=3D[],d=3Db.getElementsByName(a[1]);for(var = e=3D0,f=3Dd.length;e<f;e++)d[e].getAttribute("name")=3D=3D=3Da[1]&&c.push= (d[e]);return c.length=3D=3D=3D0?null:c}},TAG:function(a,b){if(typeof = b.getElementsByTagName!=3D"undefined")return = b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=3D= " "+a[1].replace(j,"")+" ";if(f)return a;for(var = g=3D0,h;(h=3Db[g])!=3Dnull;g++)h&&(e^(h.className&&(" "+h.className+" = ").replace(/[\t\n\r]/g," = ").indexOf(a)>=3D0)?c||d.push(h):c&&(b[g]=3D!1));return!1},ID:function(a)= {return a[1].replace(j,"")},TAG:function(a,b){return = a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]=3D=3D=3D"nth"= ){a[2]||m.error(a[0]),a[2]=3Da[2].replace(/^\+|\s*/g,"");var = b=3D/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]=3D=3D=3D"even"&&"2n"||a[2]=3D=3D= =3D"odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=3Db[1]+(b[2]||= 1)-0,a[3]=3Db[3]-0}else a[2]&&m.error(a[0]);a[0]=3De++;return = a},ATTR:function(a,b,c,d,e,f){var = g=3Da[1]=3Da[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=3Do.attrMap[g]),a[4= ]=3D(a[4]||a[5]||"").replace(j,""),a[2]=3D=3D=3D"~=3D"&&(a[4]=3D" = "+a[4]+" ");return = a},PSEUDO:function(b,c,d,e,f){if(b[1]=3D=3D=3D"not")if((a.exec(b[3])||"")= ..length>1||/^\w/.test(b[3]))b[3]=3Dm(b[3],null,null,c);else{var = g=3Dm.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else = if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return = b},POS:function(a){a.unshift(!0);return = a}},filters:{enabled:function(a){return = a.disabled=3D=3D=3D!1&&a.type!=3D=3D"hidden"},disabled:function(a){return= a.disabled=3D=3D=3D!0},checked:function(a){return = a.checked=3D=3D=3D!0},selected:function(a){a.parentNode&&a.parentNode.sel= ectedIndex;return = a.selected=3D=3D=3D!0},parent:function(a){return!!a.firstChild},empty:fun= ction(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).lengt= h},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var= b=3Da.getAttribute("type"),c=3Da.type;return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"text"=3D=3D=3Dc&&(b=3D=3D=3Dc|= |b=3D=3D=3Dnull)},radio:function(a){return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"radio"=3D=3D=3Da.type},checkbo= x:function(a){return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"checkbox"=3D=3D=3Da.type},file= :function(a){return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"file"=3D=3D=3Da.type},password= :function(a){return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"password"=3D=3D=3Da.type},subm= it:function(a){var = b=3Da.nodeName.toLowerCase();return(b=3D=3D=3D"input"||b=3D=3D=3D"button"= )&&"submit"=3D=3D=3Da.type},image:function(a){return = a.nodeName.toLowerCase()=3D=3D=3D"input"&&"image"=3D=3D=3Da.type},reset:f= unction(a){var = b=3Da.nodeName.toLowerCase();return(b=3D=3D=3D"input"||b=3D=3D=3D"button"= )&&"reset"=3D=3D=3Da.type},button:function(a){var = b=3Da.nodeName.toLowerCase();return = b=3D=3D=3D"input"&&"button"=3D=3D=3Da.type||b=3D=3D=3D"button"},input:fun= ction(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:fu= nction(a){return = a=3D=3D=3Da.ownerDocument.activeElement}},setFilters:{first:function(a,b)= {return b=3D=3D=3D0},last:function(a,b,c,d){return = b=3D=3D=3Dd.length-1},even:function(a,b){return = b%2=3D=3D=3D0},odd:function(a,b){return = b%2=3D=3D=3D1},lt:function(a,b,c){return = b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return = c[3]-0=3D=3D=3Db},eq:function(a,b,c){return = c[3]-0=3D=3D=3Db}},filter:{PSEUDO:function(a,b,c,d){var = e=3Db[1],f=3Do.filters[e];if(f)return = f(a,c,b,d);if(e=3D=3D=3D"contains")return(a.textContent||a.innerText||n([= a])||"").indexOf(b[3])>=3D0;if(e=3D=3D=3D"not"){var g=3Db[3];for(var = h=3D0,i=3Dg.length;h<i;h++)if(g[h]=3D=3D=3Da)return!1;return!0}m.error(e)= },CHILD:function(a,b){var = c,e,f,g,h,i,j,k=3Db[1],l=3Da;switch(k){case"only":case"first":while(l=3Dl= ..previousSibling)if(l.nodeType=3D=3D=3D1)return!1;if(k=3D=3D=3D"first")re= turn!0;l=3Da;case"last":while(l=3Dl.nextSibling)if(l.nodeType=3D=3D=3D1)r= eturn!1;return!0;case"nth":c=3Db[2],e=3Db[3];if(c=3D=3D=3D1&&e=3D=3D=3D0)= return!0;f=3Db[0],g=3Da.parentNode;if(g&&(g[d]!=3D=3Df||!a.nodeIndex)){i=3D= 0;for(l=3Dg.firstChild;l;l=3Dl.nextSibling)l.nodeType=3D=3D=3D1&&(l.nodeI= ndex=3D++i);g[d]=3Df}j=3Da.nodeIndex-e;return = c=3D=3D=3D0?j=3D=3D=3D0:j%c=3D=3D=3D0&&j/c>=3D0}},ID:function(a,b){return= = a.nodeType=3D=3D=3D1&&a.getAttribute("id")=3D=3D=3Db},TAG:function(a,b){r= eturn = b=3D=3D=3D"*"&&a.nodeType=3D=3D=3D1||!!a.nodeName&&a.nodeName.toLowerCase= ()=3D=3D=3Db},CLASS:function(a,b){return(" = "+(a.className||a.getAttribute("class"))+" = ").indexOf(b)>-1},ATTR:function(a,b){var = c=3Db[1],d=3Dm.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=3D= null?a[c]:a.getAttribute(c),e=3Dd+"",f=3Db[2],g=3Db[4];return = d=3D=3Dnull?f=3D=3D=3D"!=3D":!f&&m.attr?d!=3Dnull:f=3D=3D=3D"=3D"?e=3D=3D= =3Dg:f=3D=3D=3D"*=3D"?e.indexOf(g)>=3D0:f=3D=3D=3D"~=3D"?(" "+e+" = ").indexOf(g)>=3D0:g?f=3D=3D=3D"!=3D"?e!=3D=3Dg:f=3D=3D=3D"^=3D"?e.indexO= f(g)=3D=3D=3D0:f=3D=3D=3D"$=3D"?e.substr(e.length-g.length)=3D=3D=3Dg:f=3D= =3D=3D"|=3D"?e=3D=3D=3Dg||e.substr(0,g.length+1)=3D=3D=3Dg+"-":!1:e&&d!=3D= =3D!1},POS:function(a,b,c,d){var = e=3Db[2],f=3Do.setFilters[e];if(f)return = f(a,c,b,d)}}},p=3Do.match.POS,q=3Dfunction(a,b){return"\\"+(b-0+1)};for(v= ar r in o.match)o.match[r]=3Dnew = RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r= ]=3Dnew = RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))= ;var = s=3Dfunction(a,b){a=3DArray.prototype.slice.call(a,0);if(b){b.push.apply(= b,a);return b}return = a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].node= Type}catch(t){s=3Dfunction(a,b){var = c=3D0,d=3Db||[];if(g.call(a)=3D=3D=3D"[object = Array]")Array.prototype.push.apply(d,a);else if(typeof = a.length=3D=3D"number")for(var e=3Da.length;c<e;c++)d.push(a[c]);else = for(;a[c];c++)d.push(a[c]);return d}}var = u,v;c.documentElement.compareDocumentPosition?u=3Dfunction(a,b){if(a=3D=3D= =3Db){h=3D!0;return = 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return = a.compareDocumentPosition?-1:1;return = a.compareDocumentPosition(b)&4?-1:1}:(u=3Dfunction(a,b){if(a=3D=3D=3Db){h= =3D!0;return 0}if(a.sourceIndex&&b.sourceIndex)return = a.sourceIndex-b.sourceIndex;var = c,d,e=3D[],f=3D[],g=3Da.parentNode,i=3Db.parentNode,j=3Dg;if(g=3D=3D=3Di)= return v(a,b);if(!g)return-1;if(!i)return = 1;while(j)e.unshift(j),j=3Dj.parentNode;j=3Di;while(j)f.unshift(j),j=3Dj.= parentNode;c=3De.length,d=3Df.length;for(var = k=3D0;k<c&&k<d;k++)if(e[k]!=3D=3Df[k])return v(e[k],f[k]);return = k=3D=3D=3Dc?v(a,f[k],-1):v(e[k],b,1)},v=3Dfunction(a,b,c){if(a=3D=3D=3Db)= return c;var = d=3Da.nextSibling;while(d){if(d=3D=3D=3Db)return-1;d=3Dd.nextSibling}retu= rn 1}),function(){var a=3Dc.createElement("div"),d=3D"script"+(new = Date).getTime(),e=3Dc.documentElement;a.innerHTML=3D"<a = name=3D'"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.= find.ID=3Dfunction(a,c,d){if(typeof = c.getElementById!=3D"undefined"&&!d){var = e=3Dc.getElementById(a[1]);return e?e.id=3D=3D=3Da[1]||typeof = e.getAttributeNode!=3D"undefined"&&e.getAttributeNode("id").nodeValue=3D=3D= =3Da[1]?[e]:b:[]}},o.filter.ID=3Dfunction(a,b){var c=3Dtypeof = a.getAttributeNode!=3D"undefined"&&a.getAttributeNode("id");return = a.nodeType=3D=3D=3D1&&c&&c.nodeValue=3D=3D=3Db}),e.removeChild(a),e=3Da=3D= null}(),function(){var = a=3Dc.createElement("div");a.appendChild(c.createComment("")),a.getElemen= tsByTagName("*").length>0&&(o.find.TAG=3Dfunction(a,b){var = c=3Db.getElementsByTagName(a[1]);if(a[1]=3D=3D=3D"*"){var d=3D[];for(var = e=3D0;c[e];e++)c[e].nodeType=3D=3D=3D1&&d.push(c[e]);c=3Dd}return = c}),a.innerHTML=3D"<a href=3D'#'></a>",a.firstChild&&typeof = a.firstChild.getAttribute!=3D"undefined"&&a.firstChild.getAttribute("href= ")!=3D=3D"#"&&(o.attrHandle.href=3Dfunction(a){return = a.getAttribute("href",2)}),a=3Dnull}(),c.querySelectorAll&&function(){var= a=3Dm,b=3Dc.createElement("div"),d=3D"__sizzle__";b.innerHTML=3D"<p = class=3D'TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").= length!=3D=3D0){m=3Dfunction(b,e,f,g){e=3De||c;if(!g&&!m.isXML(e)){var = h=3D/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType=3D=3D=3D= 1||e.nodeType=3D=3D=3D9)){if(h[1])return = s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClas= sName)return = s(e.getElementsByClassName(h[2]),f)}if(e.nodeType=3D=3D=3D9){if(b=3D=3D=3D= "body"&&e.body)return s([e.body],f);if(h&&h[3]){var = i=3De.getElementById(h[3]);if(!i||!i.parentNode)return = s([],f);if(i.id=3D=3D=3Dh[3])return s([i],f)}try{return = s(e.querySelectorAll(b),f)}catch(j){}}else = if(e.nodeType=3D=3D=3D1&&e.nodeName.toLowerCase()!=3D=3D"object"){var = k=3De,l=3De.getAttribute("id"),n=3Dl||d,p=3De.parentNode,q=3D/^\s*[+~]/.t= est(b);l?n=3Dn.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=3De.p= arentNode);try{if(!q||p)return s(e.querySelectorAll("[id=3D'"+n+"'] = "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return = a(b,e,f,g)};for(var e in a)m[e]=3Da[e];b=3Dnull}}(),function(){var = a=3Dc.documentElement,b=3Da.matchesSelector||a.mozMatchesSelector||a.webk= itMatchesSelector||a.msMatchesSelector;if(b){var = d=3D!b.call(c.createElement("div"),"div"),e=3D!1;try{b.call(c.documentEle= ment,"[test!=3D'']:sizzle")}catch(f){e=3D!0}m.matchesSelector=3Dfunction(= a,c){c=3Dc.replace(/\=3D\s*([^'"\]]*)\s*\]/g,"=3D'$1']");if(!m.isXML(a))t= ry{if(e||!o.match.PSEUDO.test(c)&&!/!=3D/.test(c)){var = f=3Db.call(a,c);if(f||!d||a.document&&a.document.nodeType!=3D=3D11)return= f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var = a=3Dc.createElement("div");a.innerHTML=3D"<div class=3D'test = e'></div><div = class=3D'test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClas= sName("e").length!=3D=3D0){a.lastChild.className=3D"e";if(a.getElementsBy= ClassName("e").length=3D=3D=3D1)return;o.order.splice(1,0,"CLASS"),o.find= ..CLASS=3Dfunction(a,b,c){if(typeof = b.getElementsByClassName!=3D"undefined"&&!c)return = b.getElementsByClassName(a[1])},a=3Dnull}}(),c.documentElement.contains?m= ..contains=3Dfunction(a,b){return = a!=3D=3Db&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocume= ntPosition?m.contains=3Dfunction(a,b){return!!(a.compareDocumentPosition(= b)&16)}:m.contains=3Dfunction(){return!1},m.isXML=3Dfunction(a){var = b=3D(a?a.ownerDocument||a:0).documentElement;return = b?b.nodeName!=3D=3D"HTML":!1};var y=3Dfunction(a,b,c){var = d,e=3D[],f=3D"",g=3Db.nodeType?[b]:b;while(d=3Do.match.PSEUDO.exec(a))f+=3D= d[0],a=3Da.replace(o.match.PSEUDO,"");a=3Do.relative[a]?a+"*":a;for(var = h=3D0,i=3Dg.length;h<i;h++)m(a,g[h],e,c);return = m.filter(f,e)};m.attr=3Df.attr,m.selectors.attrMap=3D{},f.find=3Dm,f.expr= =3Dm.selectors,f.expr[":"]=3Df.expr.filters,f.unique=3Dm.uniqueSort,f.tex= t=3Dm.getText,f.isXMLDoc=3Dm.isXML,f.contains=3Dm.contains}();var = L=3D/Until$/,M=3D/^(?:parents|prevUntil|prevAll)/,N=3D/,/,O=3D/^.[^:#\[\.= ,]*$/,P=3DArray.prototype.slice,Q=3Df.expr.match.POS,R=3D{children:!0,con= tents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var = b=3Dthis,c,d;if(typeof a!=3D"string")return = f(a).filter(function(){for(c=3D0,d=3Db.length;c<d;c++)if(f.contains(b[c],= this))return!0});var = e=3Dthis.pushStack("","find",a),g,h,i;for(c=3D0,d=3Dthis.length;c<d;c++){= g=3De.length,f.find(a,this[c],e);if(c>0)for(h=3Dg;h<e.length;h++)for(i=3D= 0;i<g;i++)if(e[i]=3D=3D=3De[h]){e.splice(h-- ,1);break}}return = e},has:function(a){var b=3Df(a);return this.filter(function(){for(var = a=3D0,c=3Db.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:funct= ion(a){return = this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return = this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeo= f = a=3D=3D"string"?Q.test(a)?f(a,this.context).index(this[0])>=3D0:f.filter(= a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var = c=3D[],d,e,g=3Dthis[0];if(f.isArray(a)){var = h=3D1;while(g&&g.ownerDocument&&g!=3D=3Db){for(d=3D0;d<a.length;d++)f(g).= is(a[d])&&c.push({selector:a[d],elem:g,level:h});g=3Dg.parentNode,h++}ret= urn c}var i=3DQ.test(a)||typeof = a!=3D"string"?f(a,b||this.context):0;for(d=3D0,e=3Dthis.length;d<e;d++){g= =3Dthis[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.pus= h(g);break}g=3Dg.parentNode;if(!g||!g.ownerDocument||g=3D=3D=3Db||g.nodeT= ype=3D=3D=3D11)break}}c=3Dc.length>1?f.unique(c):c;return = this.pushStack(c,"closest",a)},index:function(a){if(!a)return = this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof = a=3D=3D"string")return f.inArray(this[0],f(a));return = f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=3Dtypeof = a=3D=3D"string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=3Df.merge(this.= get(),c);return = this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return= this.add(this.prevObject)}}),f.each({parent:function(a){var = b=3Da.parentNode;return = b&&b.nodeType!=3D=3D11?b:null},parents:function(a){return = f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return = f.dir(a,"parentNode",c)},next:function(a){return = f.nth(a,2,"nextSibling")},prev:function(a){return = f.nth(a,2,"previousSibling")},nextAll:function(a){return = f.dir(a,"nextSibling")},prevAll:function(a){return = f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return = f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return = f.dir(a,"previousSibling",c)},siblings:function(a){return = f.sibling(a.parentNode.firstChild,a)},children:function(a){return = f.sibling(a.firstChild)},contents:function(a){return = f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.make= Array(a.childNodes)}},function(a,b){f.fn[a]=3Dfunction(c,d){var = e=3Df.map(this,b,c);L.test(a)||(d=3Dc),d&&typeof = d=3D=3D"string"&&(e=3Df.filter(d,e)),e=3Dthis.length>1&&!R[a]?f.unique(e)= :e,(this.length>1||N.test(d))&&M.test(a)&&(e=3De.reverse());return = this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:funct= ion(a,b,c){c&&(a=3D":not("+a+")");return = b.length=3D=3D=3D1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matche= s(a,b)},dir:function(a,c,d){var = e=3D[],g=3Da[c];while(g&&g.nodeType!=3D=3D9&&(d=3D=3D=3Db||g.nodeType!=3D= =3D1||!f(g).is(d)))g.nodeType=3D=3D=3D1&&e.push(g),g=3Dg[c];return = e},nth:function(a,b,c,d){b=3Db||1;var = e=3D0;for(;a;a=3Da[c])if(a.nodeType=3D=3D=3D1&&++e=3D=3D=3Db)break;return= a},sibling:function(a,b){var = c=3D[];for(;a;a=3Da.nextSibling)a.nodeType=3D=3D=3D1&&a!=3D=3Db&&c.push(a= );return c}});var = V=3D"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|f= ooter|header|hgroup|mark|meter|nav|output|progress|section|summary|time|v= ideo",W=3D/ = jQuery\d+=3D"(?:\d+|null)"/g,X=3D/^\s+/,Y=3D/<(?!area|br|col|embed|hr|img= |input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=3D/<([\w:]+)/,$=3D/<tbody/= i,_=3D/<|&#?\w+;/,ba=3D/<(?:script|style)/i,bb=3D/<(?:script|object|embed= |option|style)/i,bc=3Dnew = RegExp("<(?:"+V+")","i"),bd=3D/checked\s*(?:[^=3D]|=3D\s*.checked.)/i,be=3D= /\/(java|ecma)script/i,bf=3D/^\s*<!(?:\[CDATA\[|\-\-)/,bg=3D{option:[1,"<= select = multiple=3D'multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"= ],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>= "],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tb= ody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],= _default:[0,"",""]},bh=3DU(c);bg.optgroup=3Dbg.option,bg.tbody=3Dbg.tfoot= =3Dbg.colgroup=3Dbg.caption=3Dbg.thead,bg.th=3Dbg.td,f.support.htmlSerial= ize||(bg._default=3D[1,"div<div>","</div>"]),f.fn.extend({text:function(a= ){if(f.isFunction(a))return this.each(function(b){var = c=3Df(this);c.text(a.call(this,b,c.text()))});if(typeof = a!=3D"object"&&a!=3D=3Db)return = this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a)= );return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return = this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var = b=3Df(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.inse= rtBefore(this[0]),b.map(function(){var = a=3Dthis;while(a.firstChild&&a.firstChild.nodeType=3D=3D=3D1)a=3Da.firstC= hild;return a}).append(this)}return = this},wrapInner:function(a){if(f.isFunction(a))return = this.each(function(b){f(this).wrapInner(a.call(this,b))});return = this.each(function(){var = b=3Df(this),c=3Db.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:fu= nction(a){var b=3Df.isFunction(a);return = this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:funct= ion(){return = this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWit= h(this.childNodes)}).end()},append:function(){return = this.domManip(arguments,!0,function(a){this.nodeType=3D=3D=3D1&&this.appe= ndChild(a)})},prepend:function(){return = this.domManip(arguments,!0,function(a){this.nodeType=3D=3D=3D1&&this.inse= rtBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].pare= ntNode)return = this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,thi= s)});if(arguments.length){var = a=3Df.clean(arguments);a.push.apply(a,this.toArray());return = this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[= 0].parentNode)return = this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,thi= s.nextSibling)});if(arguments.length){var = a=3Dthis.pushStack(this,"after",arguments);a.push.apply(a,f.clean(argumen= ts));return a}},remove:function(a,b){for(var = c=3D0,d;(d=3Dthis[c])!=3Dnull;c++)if(!a||f.filter(a,[d]).length)!b&&d.nod= eType=3D=3D=3D1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d= ])),d.parentNode&&d.parentNode.removeChild(d);return = this},empty:function()=0A= {for(var = a=3D0,b;(b=3Dthis[a])!=3Dnull;a++){b.nodeType=3D=3D=3D1&&f.cleanData(b.ge= tElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}r= eturn = this},clone:function(a,b){a=3Da=3D=3Dnull?!1:a,b=3Db=3D=3Dnull?a:b;return= this.map(function(){return = f.clone(this,a,b)})},html:function(a){if(a=3D=3D=3Db)return = this[0]&&this[0].nodeType=3D=3D=3D1?this[0].innerHTML.replace(W,""):null;= if(typeof = a=3D=3D"string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&= !bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=3Da.replace(Y,"<$1></$2>");= try{for(var = c=3D0,d=3Dthis.length;c<d;c++)this[c].nodeType=3D=3D=3D1&&(f.cleanData(th= is[c].getElementsByTagName("*")),this[c].innerHTML=3Da)}catch(e){this.emp= ty().append(a)}}else f.isFunction(a)?this.each(function(b){var = c=3Df(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);retu= rn = this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunc= tion(a))return this.each(function(b){var = c=3Df(this),d=3Dc.html();c.replaceWith(a.call(this,b,d))});typeof = a!=3D"string"&&(a=3Df(a).detach());return this.each(function(){var = b=3Dthis.nextSibling,c=3Dthis.parentNode;f(this).remove(),b?f(b).before(a= ):f(c).append(a)})}return = this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this= },detach:function(a){return = this.remove(a,!0)},domManip:function(a,c,d){var = e,g,h,i,j=3Da[0],k=3D[];if(!f.support.checkClone&&arguments.length=3D=3D=3D= 3&&typeof j=3D=3D"string"&&bd.test(j))return = this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))retu= rn this.each(function(e){var = g=3Df(this);a[0]=3Dj.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(thi= s[0]){i=3Dj&&j.parentNode,f.support.parentNode&&i&&i.nodeType=3D=3D=3D11&= &i.childNodes.length=3D=3D=3Dthis.length?e=3D{fragment:i}:e=3Df.buildFrag= ment(a,this,k),h=3De.fragment,h.childNodes.length=3D=3D=3D1?g=3Dh=3Dh.fir= stChild:g=3Dh.firstChild;if(g){c=3Dc&&f.nodeName(g,"tr");for(var = l=3D0,m=3Dthis.length,n=3Dm-1;l<m;l++)d.call(c?bi(this[l],g):this[l],e.ca= cheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bp)}return = this}}),f.buildFragment=3Dfunction(a,b,d){var = e,g,h,i,j=3Da[0];b&&b[0]&&(i=3Db[0].ownerDocument||b[0]),i.createDocument= Fragment||(i=3Dc),a.length=3D=3D=3D1&&typeof = j=3D=3D"string"&&j.length<512&&i=3D=3D=3Dc&&j.charAt(0)=3D=3D=3D"<"&&!bb.= test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.= test(j))&&(g=3D!0,h=3Df.fragments[j],h&&h!=3D=3D1&&(e=3Dh)),e||(e=3Di.cre= ateDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=3Dh?e:1);retur= n{fragment:e,cacheable:g}},f.fragments=3D{},f.each({appendTo:"append",pre= pendTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"re= placeWith"},function(a,b){f.fn[a]=3Dfunction(c){var = d=3D[],e=3Df(c),g=3Dthis.length=3D=3D=3D1&&this[0].parentNode;if(g&&g.nod= eType=3D=3D=3D11&&g.childNodes.length=3D=3D=3D1&&e.length=3D=3D=3D1){e[b]= (this[0]);return this}for(var h=3D0,i=3De.length;h<i;h++){var = j=3D(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=3Dd.concat(j)}return = this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var = d,e,g,h=3Df.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):= bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeTyp= e=3D=3D=3D1||a.nodeType=3D=3D=3D11)&&!f.isXMLDoc(a)){bk(a,h),d=3Dbl(a),e=3D= bl(h);for(g=3D0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=3Dbl(a= ),e=3Dbl(h);for(g=3D0;d[g];++g)bj(d[g],e[g])}}d=3De=3Dnull;return = h},clean:function(a,b,d,e){var g;b=3Db||c,typeof = b.createElement=3D=3D"undefined"&&(b=3Db.ownerDocument||b[0]&&b[0].ownerD= ocument||c);var h=3D[],i;for(var j=3D0,k;(k=3Da[j])!=3Dnull;j++){typeof = k=3D=3D"number"&&(k+=3D"");if(!k)continue;if(typeof = k=3D=3D"string")if(!_.test(k))k=3Db.createTextNode(k);else{k=3Dk.replace(= Y,"<$1></$2>");var = l=3D(Z.exec(k)||["",""])[1].toLowerCase(),m=3Dbg[l]||bg._default,n=3Dm[0]= ,o=3Db.createElement("div");b=3D=3D=3Dc?bh.appendChild(o):U(b).appendChil= d(o),o.innerHTML=3Dm[1]+k+m[2];while(n-- )o=3Do.lastChild;if(!f.support.tb= ody){var = p=3D$.test(k),q=3Dl=3D=3D=3D"table"&&!p?o.firstChild&&o.firstChild.childN= odes:m[1]=3D=3D=3D"<table>"&&!p?o.childNodes:[];for(i=3Dq.length-1;i>=3D0= ;-- i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.r= emoveChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(= b.createTextNode(X.exec(k)[0]),o.firstChild),k=3Do.childNodes}var = r;if(!f.support.appendChecked)if(k[0]&&typeof = (r=3Dk.length)=3D=3D"number")for(i=3D0;i<r;i++)bn(k[i]);else = bn(k);k.nodeType?h.push(k):h=3Df.merge(h,k)}if(d){g=3Dfunction(a){return!= a.type||be.test(a.type)};for(j=3D0;h[j];j++)if(e&&f.nodeName(h[j],"script= ")&&(!h[j].type||h[j].type.toLowerCase()=3D=3D=3D"text/javascript"))e.pus= h(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].no= deType=3D=3D=3D1){var = s=3Df.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0= ].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var = b,c,d=3Df.cache,e=3Df.event.special,g=3Df.support.deleteExpando;for(var = h=3D0,i;(i=3Da[h])!=3Dnull;h++){if(i.nodeName&&f.noData[i.nodeName.toLowe= rCase()])continue;c=3Di[f.expando];if(c){b=3Dd[c];if(b&&b.events){for(var= j in = b.events)e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle);b.handle&&(= b.handle.elem=3Dnull)}g?delete = i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete = d[c]}}}});var = bq=3D/alpha\([^)]*\)/i,br=3D/opacity=3D([^)]*)/,bs=3D/([A-Z]|^ms)/g,bt=3D= /^-?\d+(?:px)?$/i,bu=3D/^-?\d/,bv=3D/^([\-+])=3D([\-+.\de]+)/,bw=3D{posit= ion:"absolute",visibility:"hidden",display:"block"},bx=3D["Left","Right"]= ,by=3D["Top","Bottom"],bz,bA,bB;f.fn.css=3Dfunction(a,c){if(arguments.len= gth=3D=3D=3D2&&c=3D=3D=3Db)return this;return = f.access(this,a,c,!0,function(a,c,d){return = d!=3D=3Db?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:f= unction(a,b){if(b){var c=3Dbz(a,"opacity","opacity");return = c=3D=3D=3D""?"1":c}return = a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,= opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.su= pport.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a= ..nodeType!=3D=3D3&&a.nodeType!=3D=3D8&&!!a.style){var = g,h,i=3Df.camelCase(c),j=3Da.style,k=3Df.cssHooks[i];c=3Df.cssProps[i]||i= ;if(d=3D=3D=3Db){if(k&&"get"in k&&(g=3Dk.get(a,!1,e))!=3D=3Db)return = g;return j[c]}h=3Dtypeof = d,h=3D=3D=3D"string"&&(g=3Dbv.exec(d))&&(d=3D+(g[1]+1)*+g[2]+parseFloat(f= ..css(a,c)),h=3D"number");if(d=3D=3Dnull||h=3D=3D=3D"number"&&isNaN(d))ret= urn;h=3D=3D=3D"number"&&!f.cssNumber[i]&&(d+=3D"px");if(!k||!("set"in = k)||(d=3Dk.set(a,d))!=3D=3Db)try{j[c]=3Dd}catch(l){}}},css:function(a,c,d= ){var = e,g;c=3Df.camelCase(c),g=3Df.cssHooks[c],c=3Df.cssProps[c]||c,c=3D=3D=3D"= cssFloat"&&(c=3D"float");if(g&&"get"in = g&&(e=3Dg.get(a,!0,d))!=3D=3Db)return e;if(bz)return = bz(a,c)},swap:function(a,b,c){var d=3D{};for(var e in = b)d[e]=3Da.style[e],a.style[e]=3Db[e];c.call(a);for(e in = b)a.style[e]=3Dd[e]}}),f.curCSS=3Df.css,f.each(["height","width"],functio= n(a,b){f.cssHooks[b]=3D{get:function(a,c,d){var = e;if(c){if(a.offsetWidth!=3D=3D0)return = bC(a,b,d);f.swap(a,bw,function(){e=3DbC(a,b,d)});return = e}},set:function(a,b){if(!bt.test(b))return = b;b=3DparseFloat(b);if(b>=3D0)return = b+"px"}}}),f.support.opacity||(f.cssHooks.opacity=3D{get:function(a,b){re= turn = br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?par= seFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var = c=3Da.style,d=3Da.currentStyle,e=3Df.isNumeric(b)?"alpha(opacity=3D"+b*10= 0+")":"",g=3Dd&&d.filter||c.filter||"";c.zoom=3D1;if(b>=3D1&&f.trim(g.rep= lace(bq,""))=3D=3D=3D""){c.removeAttribute("filter");if(d&&!d.filter)retu= rn}c.filter=3Dbq.test(g)?g.replace(bq,e):g+" = "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRigh= t=3D{get:function(a,b){var = c;f.swap(a,{display:"inline-block"},function(){b?c=3Dbz(a,"margin-right",= "marginRight"):c=3Da.style.marginRight});return = c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=3Dfunction(a,b)= {var = c,d,e;b=3Db.replace(bs,"-$1").toLowerCase(),(d=3Da.ownerDocument.defaultV= iew)&&(e=3Dd.getComputedStyle(a,null))&&(c=3De.getPropertyValue(b),c=3D=3D= =3D""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=3Df.style(a,b))= );return c}),c.documentElement.currentStyle&&(bB=3Dfunction(a,b){var = c,d,e,f=3Da.currentStyle&&a.currentStyle[b],g=3Da.style;f=3D=3D=3Dnull&&g= &&(e=3Dg[b])&&(f=3De),!bt.test(f)&&bu.test(f)&&(c=3Dg.left,d=3Da.runtimeS= tyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=3Da.currentStyle.left),= g.left=3Db=3D=3D=3D"fontSize"?"1em":f||0,f=3Dg.pixelLeft+"px",g.left=3Dc,= d&&(a.runtimeStyle.left=3Dd));return = f=3D=3D=3D""?"auto":f}),bz=3DbA||bB,f.expr&&f.expr.filters&&(f.expr.filte= rs.hidden=3Dfunction(a){var b=3Da.offsetWidth,c=3Da.offsetHeight;return = b=3D=3D=3D0&&c=3D=3D=3D0||!f.support.reliableHiddenOffsets&&(a.style&&a.s= tyle.display||f.css(a,"display"))=3D=3D=3D"none"},f.expr.filters.visible=3D= function(a){return!f.expr.filters.hidden(a)});var = bD=3D/%20/g,bE=3D/\[\]$/,bF=3D/\r?\n/g,bG=3D/#.*$/,bH=3D/^(.*?):[ = \t]*([^\r\n]*)\r?$/mg,bI=3D/^(?:color|date|datetime|datetime-local|email|= hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=3D= /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=3D/^(?:G= ET|HEAD)$/,bL=3D/^\/\//,bM=3D/\?/,bN=3D/<script\b[^<]*(?:(?!<\/script>)<[= ^<]*)*<\/script>/gi,bO=3D/^(?:select|textarea)/i,bP=3D/\s+/,bQ=3D/([?&])_= =3D[^&]*/,bR=3D/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=3Df.fn= ..load,bT=3D{},bU=3D{},bV,bW,bX=3D["*/"]+["*"];try{bV=3De.href}catch(bY){b= V=3Dc.createElement("a"),bV.href=3D"",bV=3DbV.href}bW=3DbR.exec(bV.toLowe= rCase())||[],f.fn.extend({load:function(a,c,d){if(typeof = a!=3D"string"&&bS)return bS.apply(this,arguments);if(!this.length)return = this;var e=3Da.indexOf(" ");if(e>=3D0){var = g=3Da.slice(e,a.length);a=3Da.slice(0,e)}var = h=3D"GET";c&&(f.isFunction(c)?(d=3Dc,c=3Db):typeof = c=3D=3D"object"&&(c=3Df.param(c,f.ajaxSettings.traditional),h=3D"POST"));= var = i=3Dthis;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,= b,c){c=3Da.responseText,a.isResolved()&&(a.done(function(a){c=3Da}),i.htm= l(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}= });return this},serialize:function(){return = f.param(this.serializeArray())},serializeArray:function(){return = this.map(function(){return = this.elements?f.makeArray(this.elements):this}).filter(function(){return = this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test= (this.type))}).map(function(a,b){var c=3Df(this).val();return = c=3D=3Dnull?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,va= lue:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).ge= t()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess = ajaxSend".split(" "),function(a,b){f.fn[b]=3Dfunction(a){return = this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=3Dfunction(a,d,e= ,g){f.isFunction(d)&&(g=3Dg||e,e=3Dd,d=3Db);return = f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript= :function(a,c){return = f.get(a,b,c,"script")},getJSON:function(a,b,c){return = f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=3D= a,a=3Df.ajaxSettings),b_(a,b);return = a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",conte= ntType:"application/x-www-form-urlencoded",processData:!0,async:!0,accept= s:{xml:"application/xml, = text/xml",html:"text/html",text:"text/plain",json:"application/json, = text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},res= ponseFields:{xml:"responseXML",text:"responseText"},converters:{"* = text":a.String,"text html":!0,"text json":f.parseJSON,"text = xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),aj= axTransport:bZ(bU),ajax:function(a,c){function = w(a,c,l,m){if(s!=3D=3D2){s=3D2,q&&clearTimeout(q),p=3Db,n=3Dm||"",v.ready= State=3Da>0?4:0;var = o,r,u,w=3Dc,x=3Dl?cb(d,v,l):b,y,z;if(a>=3D200&&a<300||a=3D=3D=3D304){if(d= ..ifModified){if(y=3Dv.getResponseHeader("Last-Modified"))f.lastModified[k= ]=3Dy;if(z=3Dv.getResponseHeader("Etag"))f.etag[k]=3Dz}if(a=3D=3D=3D304)w= =3D"notmodified",o=3D!0;else = try{r=3Dcc(d,x),w=3D"success",o=3D!0}catch(A){w=3D"parsererror",u=3DA}}el= se{u=3Dw;if(!w||a)w=3D"error",a<0&&(a=3D0)}v.status=3Da,v.statusText=3D""= +(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j= ),j=3Db,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith= (e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),-- f.active||f.event.trigger= ("ajaxStop"))}}typeof a=3D=3D"object"&&(c=3Da,a=3Db),c=3Dc||{};var = d=3Df.ajaxSetup({},c),e=3Dd.context||d,g=3De!=3D=3Dd&&(e.nodeType||e = instanceof f)?f(e):f.event,h=3Df.Deferred(),i=3Df.Callbacks("once = memory"),j=3Dd.statusCode||{},k,l=3D{},m=3D{},n,o,p,q,r,s=3D0,t,u,v=3D{re= adyState:0,setRequestHeader:function(a,b){if(!s){var = c=3Da.toLowerCase();a=3Dm[c]=3Dm[c]||a,l[a]=3Db}return = this},getAllResponseHeaders:function(){return = s=3D=3D=3D2?n:null},getResponseHeader:function(a){var = c;if(s=3D=3D=3D2){if(!o){o=3D{};while(c=3DbH.exec(n))o[c[1].toLowerCase()= ]=3Dc[2]}c=3Do[a.toLowerCase()]}return = c=3D=3D=3Db?null:c},overrideMimeType:function(a){s||(d.mimeType=3Da);retu= rn this},abort:function(a){a=3Da||"abort",p&&p.abort(a),w(0,a);return = this}};h.promise(v),v.success=3Dv.done,v.error=3Dv.fail,v.complete=3Di.ad= d,v.statusCode=3Dfunction(a){if(a){var b;if(s<2)for(b in = a)j[b]=3D[j[b],a[b]];else b=3Da[v.status],v.then(b,b)}return = this},d.url=3D((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dat= aTypes=3Df.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain=3D= =3Dnull&&(r=3DbR.exec(d.url.toLowerCase()),d.crossDomain=3D!(!r||r[1]=3D=3D= bW[1]&&r[2]=3D=3DbW[2]&&(r[3]||(r[1]=3D=3D=3D"http:"?80:443))=3D=3D(bW[3]= ||(bW[1]=3D=3D=3D"http:"?80:443)))),d.data&&d.processData&&typeof = d.data!=3D"string"&&(d.data=3Df.param(d.data,d.traditional)),b$(bT,d,c,v)= ;if(s=3D=3D=3D2)return!1;t=3Dd.global,d.type=3Dd.type.toUpperCase(),d.has= Content=3D!bK.test(d.type),t&&f.active++=3D=3D=3D0&&f.event.trigger("ajax= Start");if(!d.hasContent){d.data&&(d.url+=3D(bM.test(d.url)?"&":"?")+d.da= ta,delete d.data),k=3Dd.url;if(d.cache=3D=3D=3D!1){var = x=3Df.now(),y=3Dd.url.replace(bQ,"$1_=3D"+x);d.url=3Dy+(y=3D=3D=3Dd.url?(= bM.test(d.url)?"&":"?")+"_=3D"+x:"")}}(d.data&&d.hasContent&&d.contentTyp= e!=3D=3D!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentTy= pe),d.ifModified&&(k=3Dk||d.url,f.lastModified[k]&&v.setRequestHeader("If= -Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-Non= e-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accept= s[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=3D=3D"*"?", = "+bX+"; q=3D0.01":""):d.accepts["*"]);for(u in = d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSe= nd.call(e,v,d)=3D=3D=3D!1||s=3D=3D=3D2)){v.abort();return!1}for(u = in{success:1,error:1,complete:1})v[u](d[u]);p=3Db$(bU,d,c,v);if(!p)w(-1,"= No = Transport");else{v.readyState=3D1,t&&g.trigger("ajaxSend",[v,d]),d.async&= &d.timeout>0&&(q=3DsetTimeout(function(){v.abort("timeout")},d.timeout));= try{s=3D1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return = v},param:function(a,c){var = d=3D[],e=3Dfunction(a,b){b=3Df.isFunction(b)?b():b,d[d.length]=3DencodeUR= IComponent(a)+"=3D"+encodeURIComponent(b)};c=3D=3D=3Db&&(c=3Df.ajaxSettin= gs.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,f= unction(){e(this.name,this.value)});else for(var g in = a)ca(g,a[g],c,e);return = d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}= });var = cd=3Df.now(),ce=3D/(\=3D)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jso= npCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json = jsonp",function(b,c,d){var = e=3Db.contentType=3D=3D=3D"application/x-www-form-urlencoded"&&typeof = b.data=3D=3D"string";if(b.dataTypes[0]=3D=3D=3D"jsonp"||b.jsonp!=3D=3D!1&= &(ce.test(b.url)||e&&ce.test(b.data))){var = g,h=3Db.jsonpCallback=3Df.isFunction(b.jsonpCallback)?b.jsonpCallback():b= ..jsonpCallback,i=3Da[h],j=3Db.url,k=3Db.data,l=3D"$1"+h+"$2";b.jsonp!=3D=3D= !1&&(j=3Dj.replace(ce,l),b.url=3D=3D=3Dj&&(e&&(k=3Dk.replace(ce,l)),b.dat= a=3D=3D=3Dk&&(j+=3D(/\?/.test(j)?"&":"?")+b.jsonp+"=3D"+h))),b.url=3Dj,b.= data=3Dk,a[h]=3Dfunction(a){g=3D[a]},d.always(function(){a[h]=3Di,g&&f.is= Function(i)&&a[h](g[0])}),b.converters["script = json"]=3Dfunction(){g||f.error(h+" was not called");return = g[0]},b.dataTypes[0]=3D"json";return"script"}}),f.ajaxSetup({accepts:{scr= ipt:"text/javascript, application/javascript, application/ecmascript, = application/x-ecmascript"},contents:{script:/javascript|ecmascript/},conv= erters:{"text script":function(a){f.globalEval(a);return = a}}}),f.ajaxPrefilter("script",function(a){a.cache=3D=3D=3Db&&(a.cache=3D= !1),a.crossDomain&&(a.type=3D"GET",a.global=3D!1)}),f.ajaxTransport("scri= pt",function(a){if(a.crossDomain){var = d,e=3Dc.head||c.getElementsByTagName("head")[0]||c.documentElement;return= {send:function(f,g){d=3Dc.createElement("script"),d.async=3D"async",a.scr= iptCharset&&(d.charset=3Da.scriptCharset),d.src=3Da.url,d.onload=3Dd.onre= adystatechange=3Dfunction(a,c){if(c||!d.readyState||/loaded|complete/.tes= t(d.readyState))d.onload=3Dd.onreadystatechange=3Dnull,e&&d.parentNode&&e= ..removeChild(d),d=3Db,c||g(200,"success")},e.insertBefore(d,e.firstChild)= },abort:function(){d&&d.onload(0,1)}}}});var = cf=3Da.ActiveXObject?function(){for(var a in = ch)ch[a](0,1)}:!1,cg=3D0,ch;f.ajaxSettings.xhr=3Da.ActiveXObject?function= (){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{aj= ax:!!a,cors:!!a&&"withCredentials"in = a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if= (!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var = h=3Dc.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.passw= ord):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in = c.xhrFields)h[j]=3Dc.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overr= ideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Req= uested-With"]=3D"XMLHttpRequest");try{for(j in = e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null)= ,d=3Dfunction(a,e){var = j,k,l,m,n;try{if(d&&(e||h.readyState=3D=3D=3D4)){d=3Db,i&&(h.onreadystate= change=3Df.noop,cf&&delete = ch[i]);if(e)h.readyState!=3D=3D4&&h.abort();else{j=3Dh.status,l=3Dh.getAl= lResponseHeaders(),m=3D{},n=3Dh.responseXML,n&&n.documentElement&&(m.xml=3D= n),m.text=3Dh.responseText;try{k=3Dh.statusText}catch(o){k=3D""}!j&&c.isL= ocal&&!c.crossDomain?j=3Dm.text?200:404:j=3D=3D=3D1223&&(j=3D204)}}}catch= (p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState=3D=3D=3D4?d():(i=3D+= +cg,cf&&(ch||(ch=3D{},f(a).unload(cf)),ch[i]=3Dd),h.onreadystatechange=3D= d)},abort:function(){d&&d(0,1)}}}});var = ck=3D{},cl,cm,cn=3D/^(?:toggle|show|hide)$/,co=3D/^([+\-]=3D)?([\d+.\-]+)= ([a-z%]*)$/i,cp,cq=3D[["height","marginTop","marginBottom","paddingTop","= paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddin= gRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var = d,e;if(a||a=3D=3D=3D0)return this.animate(cu("show",3),a,b,c);for(var = g=3D0,h=3Dthis.length;g<h;g++)d=3Dthis[g],d.style&&(e=3Dd.style.display,!= f._data(d,"olddisplay")&&e=3D=3D=3D"none"&&(e=3Dd.style.display=3D""),e=3D= =3D=3D""&&f.css(d,"display")=3D=3D=3D"none"&&f._data(d,"olddisplay",cv(d.= nodeName)));for(g=3D0;g<h;g++){d=3Dthis[g];if(d.style){e=3Dd.style.displa= y;if(e=3D=3D=3D""||e=3D=3D=3D"none")d.style.display=3Df._data(d,"olddispl= ay")||""}}return this},hide:function(a,b,c){if(a||a=3D=3D=3D0)return = this.animate(cu("hide",3),a,b,c);var = d,e,g=3D0,h=3Dthis.length;for(;g<h;g++)d=3Dthis[g],d.style&&(e=3Df.css(d,= "display"),e!=3D=3D"none"&&!f._data(d,"olddisplay")&&f._data(d,"olddispla= y",e));for(g=3D0;g<h;g++)this[g].style&&(this[g].style.display=3D"none");= return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=3Dtypeof = a=3D=3D"boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this= ,arguments):a=3D=3Dnull||d?this.each(function(){var = b=3Dd?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(c= u("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return = this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},= a,c,d)},animate:function(a,b,c,d){function = g(){e.queue=3D=3D=3D!1&&f._mark(this);var = b=3Df.extend({},e),c=3Dthis.nodeType=3D=3D=3D1,d=3Dc&&f(this).is(":hidden= "),g,h,i,j,k,l,m,n,o;b.animatedProperties=3D{};for(i in = a){g=3Df.camelCase(i),i!=3D=3Dg&&(a[g]=3Da[i],delete = a[i]),h=3Da[g],f.isArray(h)?(b.animatedProperties[g]=3Dh[1],h=3Da[g]=3Dh[= 0]):b.animatedProperties[g]=3Db.specialEasing&&b.specialEasing[g]||b.easi= ng||"swing";if(h=3D=3D=3D"hide"&&d||h=3D=3D=3D"show"&&!d)return = b.complete.call(this);c&&(g=3D=3D=3D"height"||g=3D=3D=3D"width")&&(b.over= flow=3D[this.style.overflow,this.style.overflowX,this.style.overflowY],f.= css(this,"display")=3D=3D=3D"inline"&&f.css(this,"float")=3D=3D=3D"none"&= &(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)=3D=3D=3D"inline"?t= his.style.display=3D"inline-block":this.style.zoom=3D1))}b.overflow!=3Dnu= ll&&(this.style.overflow=3D"hidden");for(i in a)j=3Dnew = f.fx(this,b,i),h=3Da[i],cn.test(h)?(o=3Df._data(this,"toggle"+i)||(h=3D=3D= =3D"toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o=3D=3D=3D"show= "?"hide":"show"),j[o]()):j[h]()):(k=3Dco.exec(h),l=3Dj.cur(),k?(m=3Dparse= Float(k[2]),n=3Dk[3]||(f.cssNumber[i]?"":"px"),n!=3D=3D"px"&&(f.style(thi= s,i,(m||1)+n),l=3D(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=3D(k[1]=3D= =3D=3D"-=3D"?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""));return!0}var = e=3Df.speed(b,c,d);if(f.isEmptyObject(a))return = this.each(e.complete,[!1]);a=3Df.extend({},a);return = e.queue=3D=3D=3D!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,= d){typeof = a!=3D"string"&&(d=3Dc,c=3Da,a=3Db),c&&a!=3D=3D!1&&this.queue(a||"fx",[]);= return this.each(function(){function h(a,b,c){var = e=3Db[c];f.removeData(a,c,!0),e.stop(d)}var = b,c=3D!1,e=3Df.timers,g=3Df._data(this);d||f._unmark(!0,this);if(a=3D=3Dn= ull)for(b in = g)g[b]&&g[b].stop&&b.indexOf(".run")=3D=3D=3Db.length-4&&h(this,g,b);else= = g[b=3Da+".run"]&&g[b].stop&&h(this,g,b);for(b=3De.length;b-- ;)e[b].elem=3D= =3D=3Dthis&&(a=3D=3Dnull||e[b].queue=3D=3D=3Da)&&(d?e[b](!0):e[b].saveSta= te(),c=3D!0,e.splice(b,1));(!d||!c)&&f.dequeue(this,a)})}}),f.each({slide= Down:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:= {opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},= function(a,b){f.fn[a]=3Dfunction(a,c,d){return = this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var = d=3Da&&typeof = a=3D=3D"object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,dur= ation:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=3Df.fx.off?0:type= of d.duration=3D=3D"number"?d.duration:d.duration in = f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue=3D=3D= null||d.queue=3D=3D=3D!0)d.queue=3D"fx";d.old=3Dd.complete,d.complete=3Df= unction(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d= ..queue):a!=3D=3D!1&&f._unmark(this)};return = d},easing:{linear:function(a,b,c,d){return = c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},ti= mers:[],fx:function(a,b,c){this.options=3Db,this.elem=3Da,this.prop=3Dc,b= ..orig=3Db.orig||{}}}),f.fx.prototype=3D{update:function(){this.options.st= ep&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]= ||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=3Dnu= ll&&(!this.elem.style||this.elem.style[this.prop]=3D=3Dnull))return = this.elem[this.prop];var a,b=3Df.css(this.elem,this.prop);return = isNaN(a=3DparseFloat(b))?!b||b=3D=3D=3D"auto"?0:b:a},custom:function(a,c,= d){function h(a){return e.step(a)}var = e=3Dthis,g=3Df.fx;this.startTime=3Dcr||cs(),this.end=3Dc,this.now=3Dthis.= start=3Da,this.pos=3Dthis.state=3D0,this.unit=3Dd||this.unit||(f.cssNumbe= r[this.prop]?"":"px"),h.queue=3Dthis.options.queue,h.elem=3Dthis.elem,h.s= aveState=3Dfunction(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)=3D=3D= =3Db&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp= &&(cp=3DsetInterval(g.tick,g.interval))},show:function(){var = a=3Df._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=3D= a||f.style(this.elem,this.prop),this.options.show=3D!0,a!=3D=3Db?this.cus= tom(this.cur(),a):this.custom(this.prop=3D=3D=3D"width"||this.prop=3D=3D=3D= "height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.option= s.orig[this.prop]=3Df._data(this.elem,"fxshow"+this.prop)||f.style(this.e= lem,this.prop),this.options.hide=3D!0,this.custom(this.cur(),0)},step:fun= ction(a){var = b,c,d,e=3Dcr||cs(),g=3D!0,h=3Dthis.elem,i=3Dthis.options;if(a||e>=3Di.dur= ation+this.startTime){this.now=3Dthis.end,this.pos=3Dthis.state=3D1,this.= update(),i.animatedProperties[this.prop]=3D!0;for(b in = i.animatedProperties)i.animatedProperties[b]!=3D=3D!0&&(g=3D!1);if(g){i.o= verflow!=3Dnull&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],functio= n(a,b){h.style["overflow"+b]=3Di.overflow[a]}),i.hide&&f(h).hide();if(i.h= ide||i.show)for(b in = i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0)= ,f.removeData(h,"toggle"+b,!0);d=3Di.complete,d&&(i.complete=3D!1,d.call(= h))}return!1}i.duration=3D=3DInfinity?this.now=3De:(c=3De-this.startTime,= this.state=3Dc/i.duration,this.pos=3Df.easing[i.animatedProperties[this.p= rop]](this.state,c,0,1,i.duration),this.now=3Dthis.start+(this.end-this.s= tart)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){v= ar = a,b=3Df.timers,c=3D0;for(;c<b.length;c++)a=3Db[c],!a()&&b[c]=3D=3D=3Da&&b= ..splice(c-- ,1);b.length||f.fx.stop()},interval:13,stop:function(){clearIn= terval(cp),cp=3Dnull},speeds:{slow:600,fast:200,_default:400},step:{opaci= ty:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.el= em.style&&a.elem.style[a.prop]!=3Dnull?a.elem.style[a.prop]=3Da.now+a.uni= t:a.elem[a.prop]=3Da.now}}}),f.each(["width","height"],function(a,b){f.fx= ..step[b]=3Dfunction(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.ex= pr&&f.expr.filters&&(f.expr.filters.animated=3Dfunction(a){return = f.grep(f.timers,function(b){return a=3D=3D=3Db.elem}).length});var = cw=3D/^t(?:able|d|h)$/i,cx=3D/^(?:body|html)$/i;"getBoundingClientRect"in= c.documentElement?f.fn.offset=3Dfunction(a){var = b=3Dthis[0],c;if(a)return = this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocum= ent)return null;if(b=3D=3D=3Db.ownerDocument.body)return = f.offset.bodyOffset(b);try{c=3Db.getBoundingClientRect()}catch(d){}var = e=3Db.ownerDocument,g=3De.documentElement;if(!c||!f.contains(g,b))return = c?{top:c.top,left:c.left}:{top:0,left:0};var = h=3De.body,i=3Dcy(e),j=3Dg.clientTop||h.clientTop||0,k=3Dg.clientLeft||h.= clientLeft||0,l=3Di.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrol= lTop,m=3Di.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=3D= c.top+l-j,o=3Dc.left+m-k;return{top:n,left:o}}:f.fn.offset=3Dfunction(a){= var b=3Dthis[0];if(a)return = this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocum= ent)return null;if(b=3D=3D=3Db.ownerDocument.body)return = f.offset.bodyOffset(b);var = c,d=3Db.offsetParent,e=3Db,g=3Db.ownerDocument,h=3Dg.documentElement,i=3D= g.body,j=3Dg.defaultView,k=3Dj?j.getComputedStyle(b,null):b.currentStyle,= l=3Db.offsetTop,m=3Db.offsetLeft;while((b=3Db.parentNode)&&b!=3D=3Di&&b!=3D= =3Dh){if(f.support.fixedPosition&&k.position=3D=3D=3D"fixed")break;c=3Dj?= j.getComputedStyle(b,null):b.currentStyle,l-=3Db.scrollTop,m-=3Db.scrollL= eft,b=3D=3D=3Dd&&(l+=3Db.offsetTop,m+=3Db.offsetLeft,f.support.doesNotAdd= Border&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&= &(l+=3DparseFloat(c.borderTopWidth)||0,m+=3DparseFloat(c.borderLeftWidth)= ||0),e=3Dd,d=3Db.offsetParent),f.support.subtractsBorderForOverflowNotVis= ible&&c.overflow!=3D=3D"visible"&&(l+=3DparseFloat(c.borderTopWidth)||0,m= +=3DparseFloat(c.borderLeftWidth)||0),k=3Dc}if(k.position=3D=3D=3D"relati= ve"||k.position=3D=3D=3D"static")l+=3Di.offsetTop,m+=3Di.offsetLeft;f.sup= port.fixedPosition&&k.position=3D=3D=3D"fixed"&&(l+=3DMath.max(h.scrollTo= p,i.scrollTop),m+=3DMath.max(h.scrollLeft,i.scrollLeft));return{top:l,lef= t:m}},f.offset=3D{bodyOffset:function(a){var = b=3Da.offsetTop,c=3Da.offsetLeft;f.support.doesNotIncludeMarginInBodyOffs= et&&(b+=3DparseFloat(f.css(a,"marginTop"))||0,c+=3DparseFloat(f.css(a,"ma= rginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var = d=3Df.css(a,"position");d=3D=3D=3D"static"&&(a.style.position=3D"relative= ");var = e=3Df(a),g=3De.offset(),h=3Df.css(a,"top"),i=3Df.css(a,"left"),j=3D(d=3D=3D= =3D"absolute"||d=3D=3D=3D"fixed")&&f.inArray("auto",[h,i])>-1,k=3D{},l=3D= {},m,n;j?(l=3De.position(),m=3Dl.top,n=3Dl.left):(m=3DparseFloat(h)||0,n=3D= parseFloat(i)||0),f.isFunction(b)&&(b=3Db.call(a,c,g)),b.top!=3Dnull&&(k.= top=3Db.top-g.top+m),b.left!=3Dnull&&(k.left=3Db.left-g.left+n),"using"in= = b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[= 0])return null;var = a=3Dthis[0],b=3Dthis.offsetParent(),c=3Dthis.offset(),d=3Dcx.test(b[0].no= deName)?{top:0,left:0}:b.offset();c.top-=3DparseFloat(f.css(a,"marginTop"= ))||0,c.left-=3DparseFloat(f.css(a,"marginLeft"))||0,d.top+=3DparseFloat(= f.css(b[0],"borderTopWidth"))||0,d.left+=3DparseFloat(f.css(b[0],"borderL= eftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:f= unction(){return this.map(function(){var = a=3Dthis.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"pos= ition")=3D=3D=3D"static")a=3Da.offsetParent;return = a})}}),f.each(["Left","Top"],function(a,c){var = d=3D"scroll"+c;f.fn[d]=3Dfunction(c){var = e,g;if(c=3D=3D=3Db){e=3Dthis[0];if(!e)return null;g=3Dcy(e);return = g?"pageXOffset"in = g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documen= tElement[d]||g.document.body[d]:e[d]}return = this.each(function(){g=3Dcy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:= f(g).scrollTop()):this[d]=3Dc})}}),f.each(["Height","Width"],function(a,c= ){var d=3Dc.toLowerCase();f.fn["inner"+c]=3Dfunction(){var = a=3Dthis[0];return = a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c= ]=3Dfunction(a){var b=3Dthis[0];return = b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn= [d]=3Dfunction(a){var e=3Dthis[0];if(!e)return = a=3D=3Dnull?null:this;if(f.isFunction(a))return = this.each(function(b){var = c=3Df(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var = g=3De.document.documentElement["client"+c],h=3De.document.body;return = e.document.compatMode=3D=3D=3D"CSS1Compat"&&g||h&&h["client"+c]||g}if(e.n= odeType=3D=3D=3D9)return = Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentEleme= nt["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a=3D=3D= =3Db){var i=3Df.css(e,d),j=3DparseFloat(i);return = f.isNumeric(j)?j:i}return this.css(d,typeof = a=3D=3D"string"?a:a+"px")}}),a.jQuery=3Da.$=3Df,typeof = define=3D=3D"function"&&define.amd&&define.amd.jQuery&&define("jquery",[]= ,function(){return f})})(window);=0A= jQuery.noConflict();=0A= /* /assets/731238022b09c33a/ctx/scripts/jquery-ui.min.js */;=0A= /*!=0A= * jQuery UI 1.8.2=0A= *=0A= * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT (MIT-LICENSE.txt)=0A= * and GPL (GPL-LICENSE.txt) licenses.=0A= *=0A= * http://docs.jquery.com/UI=0A= */=0A= (function(c){c.ui=3Dc.ui||{};if(!c.ui.version){c.extend(c.ui,{version:"1.= 8.2",plugin:{add:function(a,b,d){a=3Dc.ui[a].prototype;for(var e in = d){a.plugins[e]=3Da.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:fun= ction(a,b,d){if((b=3Da.plugins[b])&&a.element[0].parentNode)for(var = e=3D0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},con= tains:function(a,b){return = document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!=3D=3D= b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")=3D=3D=0A= "hidden")return false;b=3Db&&b=3D=3D"left"?"scrollLeft":"scrollTop";var = d=3Dfalse;if(a[b]>0)return true;a[b]=3D1;d=3Da[b]>0;a[b]=3D0;return = d},isOverAxis:function(a,b,d){return = a>b&&a<b+d},isOver:function(a,b,d,e,f,g){return = c.ui.isOverAxis(a,d,f)&&c.ui.isOverAxis(b,e,g)},keyCode:{ALT:18,BACKSPACE= :8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CON= TROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEF= T:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_E= NTER:108,=0A= NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:19= 0,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});c.fn.extend({_focu= s:c.fn.focus,focus:function(a,b){return typeof = a=3D=3D=3D"number"?this.each(function(){var = d=3Dthis;setTimeout(function(){c(d).focus();b&&b.call(d)},a)}):this._focu= s.apply(this,arguments)},enableSelection:function(){return = this.attr("unselectable","off").css("MozUserSelect","")},disableSelection= :function(){return this.attr("unselectable","on").css("MozUserSelect",=0A= "none")},scrollParent:function(){var = a;a=3Dc.browser.msie&&/(static|relative)/.test(this.css("position"))||/ab= solute/.test(this.css("position"))?this.parents().filter(function(){retur= n/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|sc= roll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.c= urCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){retu= rn/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflo= w-y",1)+c.curCSS(this,"overflow-x",=0A= 1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(documen= t):a},zIndex:function(a){if(a!=3D=3Dundefined)return = this.css("zIndex",a);if(this.length){a=3Dc(this[0]);for(var = b;a.length&&a[0]!=3D=3Ddocument;){b=3Da.css("position");if(b=3D=3D"absolu= te"||b=3D=3D"relative"||b=3D=3D"fixed"){b=3DparseInt(a.css("zIndex"));if(= !isNaN(b)&&b!=3D0)return b}a=3Da.parent()}}return = 0}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},f= ocusable:function(a){var = b=3Da.nodeName.toLowerCase(),d=3Dc.attr(a,"tabindex");return(/input|selec= t|textarea|button|object/.test(b)?=0A= !a.disabled:"a"=3D=3Db||"area"=3D=3Db?a.href||!isNaN(d):!isNaN(d))&&!c(a)= ["area"=3D=3Db?"parents":"closest"](":hidden").length},tabbable:function(= a){var = b=3Dc.attr(a,"tabindex");return(isNaN(b)||b>=3D0)&&c(a).is(":focusable")}= })}})(jQuery);=0A= (function(b){var j=3Db.fn.remove;b.fn.remove=3Dfunction(a,c){return = this.each(function(){if(!c)if(!a||b.filter(a,[this]).length)b("*",this).a= dd(this).each(function(){b(this).triggerHandler("remove")});return = j.call(b(this),a,c)})};b.widget=3Dfunction(a,c,d){var = e=3Da.split(".")[0],f;a=3Da.split(".")[1];f=3De+"-"+a;if(!d){d=3Dc;c=3Db.= Widget}b.expr[":"][f]=3Dfunction(h){return!!b.data(h,a)};b[e]=3Db[e]||{};= b[e][a]=3Dfunction(h,g){arguments.length&&this._createWidget(h,g)};c=3Dne= w c;c.options=3Db.extend({},c.options);b[e][a].prototype=3D=0A= b.extend(true,c,{namespace:e,widgetName:a,widgetEventPrefix:b[e][a].proto= type.widgetEventPrefix||a,widgetBaseClass:f},d);b.widget.bridge(a,b[e][a]= )};b.widget.bridge=3Dfunction(a,c){b.fn[a]=3Dfunction(d){var e=3Dtypeof = d=3D=3D=3D"string",f=3DArray.prototype.slice.call(arguments,1),h=3Dthis;d= =3D!e&&f.length?b.extend.apply(null,[true,d].concat(f)):d;if(e&&d.substri= ng(0,1)=3D=3D=3D"_")return h;e?this.each(function(){var = g=3Db.data(this,a),i=3Dg&&b.isFunction(g[d])?g[d].apply(g,f):g;if(i!=3D=3D= g&&i!=3D=3Dundefined){h=3Di;return false}}):this.each(function(){var g=3D=0A= b.data(this,a);if(g){d&&g.option(d);g._init()}else b.data(this,a,new = c(d,this))});return = h}};b.Widget=3Dfunction(a,c){arguments.length&&this._createWidget(a,c)};b= ..Widget.prototype=3D{widgetName:"widget",widgetEventPrefix:"",options:{di= sabled:false},_createWidget:function(a,c){this.element=3Db(c).data(this.w= idgetName,this);this.options=3Db.extend(true,{},this.options,b.metadata&&= b.metadata.get(c)[this.widgetName],a);var = d=3Dthis;this.element.bind("remove."+this.widgetName,function(){d.destroy= ()});this._create();=0A= this._init()},_create:function(){},_init:function(){},destroy:function(){= this.element.unbind("."+this.widgetName).removeData(this.widgetName);this= ..widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeC= lass(this.widgetBaseClass+"-disabled = ui-state-disabled")},widget:function(){return = this.element},option:function(a,c){var = d=3Da,e=3Dthis;if(arguments.length=3D=3D=3D0)return = b.extend({},e.options);if(typeof = a=3D=3D=3D"string"){if(c=3D=3D=3Dundefined)return = this.options[a];d=3D{};d[a]=3Dc}b.each(d,function(f,=0A= h){e._setOption(f,h)});return = e},_setOption:function(a,c){this.options[a]=3Dc;if(a=3D=3D=3D"disabled")t= his.widget()[c?"addClass":"removeClass"](this.widgetBaseClass+"-disabled = ui-state-disabled").attr("aria-disabled",c);return = this},enable:function(){return = this._setOption("disabled",false)},disable:function(){return = this._setOption("disabled",true)},_trigger:function(a,c,d){var = e=3Dthis.options[a];c=3Db.Event(c);c.type=3D(a=3D=3D=3Dthis.widgetEventPr= efix?a:this.widgetEventPrefix+a).toLowerCase();d=3Dd||{};if(c.originalEve= nt){a=3D=0A= b.event.props.length;for(var = f;a;){f=3Db.event.props[-- a];c[f]=3Dc.originalEvent[f]}}this.element.trig= ger(c,d);return!(b.isFunction(e)&&e.call(this.element[0],c,d)=3D=3D=3Dfal= se||c.isDefaultPrevented())}}})(jQuery);=0A= (function(c){c.widget("ui.mouse",{options:{cancel:":input,option",distanc= e:1,delay:0},_mouseInit:function(){var = a=3Dthis;this.element.bind("mousedown."+this.widgetName,function(b){retur= n = a._mouseDown(b)}).bind("click."+this.widgetName,function(b){if(a._prevent= ClickEvent){a._preventClickEvent=3Dfalse;b.stopImmediatePropagation();ret= urn = false}});this.started=3Dfalse},_mouseDestroy:function(){this.element.unbi= nd("."+this.widgetName)},_mouseDown:function(a){a.originalEvent=3Da.origi= nalEvent||{};if(!a.originalEvent.mouseHandled){this._mouseStarted&&=0A= this._mouseUp(a);this._mouseDownEvent=3Da;var = b=3Dthis,e=3Da.which=3D=3D1,f=3Dtypeof = this.options.cancel=3D=3D"string"?c(a.target).parents().add(a.target).fil= ter(this.options.cancel).length:false;if(!e||f||!this._mouseCapture(a))re= turn = true;this.mouseDelayMet=3D!this.options.delay;if(!this.mouseDelayMet)this= .._mouseDelayTimer=3DsetTimeout(function(){b.mouseDelayMet=3Dtrue},this.op= tions.delay);if(this._mouseDistanceMet(a)&&this._mouseDelayMet(a)){this._= mouseStarted=3Dthis._mouseStart(a)!=3D=3Dfalse;if(!this._mouseStarted){a.= preventDefault();=0A= return true}}this._mouseMoveDelegate=3Dfunction(d){return = b._mouseMove(d)};this._mouseUpDelegate=3Dfunction(d){return = b._mouseUp(d)};c(document).bind("mousemove."+this.widgetName,this._mouseM= oveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);c.bro= wser.safari||a.preventDefault();return = a.originalEvent.mouseHandled=3Dtrue}},_mouseMove:function(a){if(c.browser= ..msie&&!a.button)return = this._mouseUp(a);if(this._mouseStarted){this._mouseDrag(a);return = a.preventDefault()}if(this._mouseDistanceMet(a)&&=0A= this._mouseDelayMet(a))(this._mouseStarted=3Dthis._mouseStart(this._mouse= DownEvent,a)!=3D=3Dfalse)?this._mouseDrag(a):this._mouseUp(a);return!this= .._mouseStarted},_mouseUp:function(a){c(document).unbind("mousemove."+this= ..widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,th= is._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=3Dfalse;th= is._preventClickEvent=3Da.target=3D=3Dthis._mouseDownEvent.target;this._m= ouseStop(a)}return false},_mouseDistanceMet:function(a){return = Math.max(Math.abs(this._mouseDownEvent.pageX-=0A= a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=3Dthis.options.di= stance},_mouseDelayMet:function(){return = this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mou= seStop:function(){},_mouseCapture:function(){return true}})})(jQuery);=0A= (function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag"= ,options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:= false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:fa= lse,helper:"original",iframeFix:false,opacity:false,refreshPositions:fals= e,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensi= tivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stac= k:false,zIndex:false},_create:function(){if(this.options.helper=3D=3D=0A= "original"&&!/^(?:r|a|f)/.test(this.element.css("position")))this.element= [0].style.position=3D"relative";this.options.addClasses&&this.element.add= Class("ui-draggable");this.options.disabled&&this.element.addClass("ui-dr= aggable-disabled");this._mouseInit()},destroy:function(){if(this.element.= data("draggable")){this.element.removeData("draggable").unbind(".draggabl= e").removeClass("ui-draggable ui-draggable-dragging = ui-draggable-disabled");this._mouseDestroy();return = this}},_mouseCapture:function(a){var b=3D=0A= this.options;if(this.helper||b.disabled||d(a.target).is(".ui-resizable-ha= ndle"))return = false;this.handle=3Dthis._getHandle(a);if(!this.handle)return = false;return true},_mouseStart:function(a){var = b=3Dthis.options;this.helper=3Dthis._createHelper(a);this._cacheHelperPro= portions();if(d.ui.ddmanager)d.ui.ddmanager.current=3Dthis;this._cacheMar= gins();this.cssPosition=3Dthis.helper.css("position");this.scrollParent=3D= this.helper.scrollParent();this.offset=3Dthis.positionAbs=3Dthis.element.= offset();this.offset=3D{top:this.offset.top-=0A= this.margins.top,left:this.offset.left-this.margins.left};d.extend(this.o= ffset,{click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},= parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.= originalPosition=3Dthis.position=3Dthis._generatePosition(a);this.origina= lPageX=3Da.pageX;this.originalPageY=3Da.pageY;b.cursorAt&&this._adjustOff= setFromHelper(b.cursorAt);b.containment&&this._setContainment();if(this._= trigger("start",a)=3D=3D=3Dfalse){this._clear();return = false}this._cacheHelperProportions();=0A= d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets(this,a);t= his.helper.addClass("ui-draggable-dragging");this._mouseDrag(a,true);retu= rn = true},_mouseDrag:function(a,b){this.position=3Dthis._generatePosition(a);= this.positionAbs=3Dthis._convertPositionTo("absolute");if(!b){b=3Dthis._u= iHash();if(this._trigger("drag",a,b)=3D=3D=3Dfalse){this._mouseUp({});ret= urn = false}this.position=3Db.position}if(!this.options.axis||this.options.axis= !=3D"y")this.helper[0].style.left=3Dthis.position.left+"px";if(!this.opti= ons.axis||=0A= this.options.axis!=3D"x")this.helper[0].style.top=3Dthis.position.top+"px= ";d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);return = false},_mouseStop:function(a){var = b=3Dfalse;if(d.ui.ddmanager&&!this.options.dropBehaviour)b=3Dd.ui.ddmanag= er.drop(this,a);if(this.dropped){b=3Dthis.dropped;this.dropped=3Dfalse}if= (!this.element[0]||!this.element[0].parentNode)return = false;if(this.options.revert=3D=3D"invalid"&&!b||this.options.revert=3D=3D= "valid"&&b||this.options.revert=3D=3D=3Dtrue||d.isFunction(this.options.r= evert)&&this.options.revert.call(this.element,=0A= b)){var = c=3Dthis;d(this.helper).animate(this.originalPosition,parseInt(this.optio= ns.revertDuration,10),function(){c._trigger("stop",a)!=3D=3Dfalse&&c._cle= ar()})}else this._trigger("stop",a)!=3D=3Dfalse&&this._clear();return = false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._m= ouseUp({}):this._clear();return this},_getHandle:function(a){var = b=3D!this.options.handle||!d(this.options.handle,this.element).length?tru= e:false;d(this.options.handle,this.element).find("*").andSelf().each(func= tion(){if(this=3D=3D=0A= a.target)b=3Dtrue});return b},_createHelper:function(a){var = b=3Dthis.options;a=3Dd.isFunction(b.helper)?d(b.helper.apply(this.element= [0],[a])):b.helper=3D=3D"clone"?this.element.clone():this.element;a.paren= ts("body").length||a.appendTo(b.appendTo=3D=3D"parent"?this.element[0].pa= rentNode:b.appendTo);a[0]!=3Dthis.element[0]&&!/(fixed|absolute)/.test(a.= css("position"))&&a.css("position","absolute");return = a},_adjustOffsetFromHelper:function(a){if(typeof = a=3D=3D"string")a=3Da.split(" = ");if(d.isArray(a))a=3D{left:+a[0],top:+a[1]||=0A= 0};if("left"in = a)this.offset.click.left=3Da.left+this.margins.left;if("right"in = a)this.offset.click.left=3Dthis.helperProportions.width-a.right+this.marg= ins.left;if("top"in = a)this.offset.click.top=3Da.top+this.margins.top;if("bottom"in = a)this.offset.click.top=3Dthis.helperProportions.height-a.bottom+this.mar= gins.top},_getParentOffset:function(){this.offsetParent=3Dthis.helper.off= setParent();var = a=3Dthis.offsetParent.offset();if(this.cssPosition=3D=3D"absolute"&&this.= scrollParent[0]!=3Ddocument&&d.ui.contains(this.scrollParent[0],=0A= this.offsetParent[0])){a.left+=3Dthis.scrollParent.scrollLeft();a.top+=3D= this.scrollParent.scrollTop()}if(this.offsetParent[0]=3D=3Ddocument.body|= |this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()= =3D=3D"html"&&d.browser.msie)a=3D{top:0,left:0};return{top:a.top+(parseIn= t(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(t= his.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:func= tion(){if(this.cssPosition=3D=3D"relative"){var = a=3Dthis.element.position();return{top:a.top-=0A= (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),le= ft:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scr= ollLeft()}}else = return{top:0,left:0}},_cacheMargins:function(){this.margins=3D{left:parse= Int(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("= marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperPropor= tions=3D{width:this.helper.outerWidth(),height:this.helper.outerHeight()}= },_setContainment:function(){var a=3Dthis.options;if(a.containment=3D=3D=0A= "parent")a.containment=3Dthis.helper[0].parentNode;if(a.containment=3D=3D= "document"||a.containment=3D=3D"window")this.containment=3D[0-this.offset= ..relative.left-this.offset.parent.left,0-this.offset.relative.top-this.of= fset.parent.top,d(a.containment=3D=3D"document"?document:window).width()-= this.helperProportions.width-this.margins.left,(d(a.containment=3D=3D"doc= ument"?document:window).height()||document.body.parentNode.scrollHeight)-= this.helperProportions.height-this.margins.top];if(!/^(document|window|pa= rent)$/.test(a.containment)&&=0A= a.containment.constructor!=3DArray){var = b=3Dd(a.containment)[0];if(b){a=3Dd(a.containment).offset();var = c=3Dd(b).css("overflow")!=3D"hidden";this.containment=3D[a.left+(parseInt= (d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10= )||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0= )+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Mat= h.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("bor= derLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),=0A= 10)||0)-this.helperProportions.width-this.margins.left,a.top+(c?Math.max(= b.scrollHeight,b.offsetHeight):b.offsetHeight)-(parseInt(d(b).css("border= TopWidth"),10)||0)-(parseInt(d(b).css("paddingBottom"),10)||0)-this.helpe= rProportions.height-this.margins.top]}}else = if(a.containment.constructor=3D=3DArray)this.containment=3Da.containment}= ,_convertPositionTo:function(a,b){if(!b)b=3Dthis.position;a=3Da=3D=3D"abs= olute"?1:-1;var = c=3Dthis.cssPosition=3D=3D"absolute"&&!(this.scrollParent[0]!=3Ddocument&= &d.ui.contains(this.scrollParent[0],=0A= this.offsetParent[0]))?this.offsetParent:this.scrollParent,f=3D/(html|bod= y)/i.test(c[0].tagName);return{top:b.top+this.offset.relative.top*a+this.= offset.parent.top*a-(d.browser.safari&&d.browser.version<526&&this.cssPos= ition=3D=3D"fixed"?0:(this.cssPosition=3D=3D"fixed"?-this.scrollParent.sc= rollTop():f?0:c.scrollTop())*a),left:b.left+this.offset.relative.left*a+t= his.offset.parent.left*a-(d.browser.safari&&d.browser.version<526&&this.c= ssPosition=3D=3D"fixed"?0:(this.cssPosition=3D=3D"fixed"?-this.scrollPare= nt.scrollLeft():=0A= f?0:c.scrollLeft())*a)}},_generatePosition:function(a){var = b=3Dthis.options,c=3Dthis.cssPosition=3D=3D"absolute"&&!(this.scrollParen= t[0]!=3Ddocument&&d.ui.contains(this.scrollParent[0],this.offsetParent[0]= ))?this.offsetParent:this.scrollParent,f=3D/(html|body)/i.test(c[0].tagNa= me),e=3Da.pageX,g=3Da.pageY;if(this.originalPosition){if(this.containment= ){if(a.pageX-this.offset.click.left<this.containment[0])e=3Dthis.containm= ent[0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.conta= inment[1])g=3Dthis.containment[1]+=0A= this.offset.click.top;if(a.pageX-this.offset.click.left>this.containment[= 2])e=3Dthis.containment[2]+this.offset.click.left;if(a.pageY-this.offset.= click.top>this.containment[3])g=3Dthis.containment[3]+this.offset.click.t= op}if(b.grid){g=3Dthis.originalPageY+Math.round((g-this.originalPageY)/b.= grid[1])*b.grid[1];g=3Dthis.containment?!(g-this.offset.click.top<this.co= ntainment[1]||g-this.offset.click.top>this.containment[3])?g:!(g-this.off= set.click.top<this.containment[1])?g-b.grid[1]:g+b.grid[1]:g;e=3Dthis.ori= ginalPageX+=0A= Math.round((e-this.originalPageX)/b.grid[0])*b.grid[0];e=3Dthis.containme= nt?!(e-this.offset.click.left<this.containment[0]||e-this.offset.click.le= ft>this.containment[2])?e:!(e-this.offset.click.left<this.containment[0])= ?e-b.grid[0]:e+b.grid[0]:e}}return{top:g-this.offset.click.top-this.offse= t.relative.top-this.offset.parent.top+(d.browser.safari&&d.browser.versio= n<526&&this.cssPosition=3D=3D"fixed"?0:this.cssPosition=3D=3D"fixed"?-thi= s.scrollParent.scrollTop():f?0:c.scrollTop()),left:e-this.offset.click.le= ft-=0A= this.offset.relative.left-this.offset.parent.left+(d.browser.safari&&d.br= owser.version<526&&this.cssPosition=3D=3D"fixed"?0:this.cssPosition=3D=3D= "fixed"?-this.scrollParent.scrollLeft():f?0:c.scrollLeft())}},_clear:func= tion(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=3D= this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.hel= per=3Dnull;this.cancelHelperRemoval=3Dfalse},_trigger:function(a,b,c){c=3D= c||this._uiHash();d.ui.plugin.call(this,a,[b,c]);if(a=3D=3D"drag")this.po= sitionAbs=3D=0A= this._convertPositionTo("absolute");return = d.Widget.prototype._trigger.call(this,a,b,c)},plugins:{},_uiHash:function= (){return{helper:this.helper,position:this.position,originalPosition:this= ..originalPosition,offset:this.positionAbs}}});d.extend(d.ui.draggable,{ve= rsion:"1.8.2"});d.ui.plugin.add("draggable","connectToSortable",{start:fu= nction(a,b){var = c=3Dd(this).data("draggable"),f=3Dc.options,e=3Dd.extend({},b,{item:c.ele= ment});c.sortables=3D[];d(f.connectToSortable).each(function(){var = g=3Dd.data(this,"sortable");=0A= if(g&&!g.options.disabled){c.sortables.push({instance:g,shouldRevert:g.op= tions.revert});g._refreshItems();g._trigger("activate",a,e)}})},stop:func= tion(a,b){var = c=3Dd(this).data("draggable"),f=3Dd.extend({},b,{item:c.element});d.each(= c.sortables,function(){if(this.instance.isOver){this.instance.isOver=3D0;= c.cancelHelperRemoval=3Dtrue;this.instance.cancelHelperRemoval=3Dfalse;if= (this.shouldRevert)this.instance.options.revert=3Dtrue;this.instance._mou= seStop(a);this.instance.options.helper=3Dthis.instance.options._helper;=0A= c.options.helper=3D=3D"original"&&this.instance.currentItem.css({top:"aut= o",left:"auto"})}else{this.instance.cancelHelperRemoval=3Dfalse;this.inst= ance._trigger("deactivate",a,f)}})},drag:function(a,b){var = c=3Dd(this).data("draggable"),f=3Dthis;d.each(c.sortables,function(){this= ..instance.positionAbs=3Dc.positionAbs;this.instance.helperProportions=3Dc= ..helperProportions;this.instance.offset.click=3Dc.offset.click;if(this.in= stance._intersectsWith(this.instance.containerCache)){if(!this.instance.i= sOver){this.instance.isOver=3D=0A= 1;this.instance.currentItem=3Dd(f).clone().appendTo(this.instance.element= ).data("sortable-item",true);this.instance.options._helper=3Dthis.instanc= e.options.helper;this.instance.options.helper=3Dfunction(){return = b.helper[0]};a.target=3Dthis.instance.currentItem[0];this.instance._mouse= Capture(a,true);this.instance._mouseStart(a,true,true);this.instance.offs= et.click.top=3Dc.offset.click.top;this.instance.offset.click.left=3Dc.off= set.click.left;this.instance.offset.parent.left-=3Dc.offset.parent.left-t= his.instance.offset.parent.left;=0A= this.instance.offset.parent.top-=3Dc.offset.parent.top-this.instance.offs= et.parent.top;c._trigger("toSortable",a);c.dropped=3Dthis.instance.elemen= t;c.currentItem=3Dc.element;this.instance.fromOutside=3Dc}this.instance.c= urrentItem&&this.instance._mouseDrag(a)}else = if(this.instance.isOver){this.instance.isOver=3D0;this.instance.cancelHel= perRemoval=3Dtrue;this.instance.options.revert=3Dfalse;this.instance._tri= gger("out",a,this.instance._uiHash(this.instance));this.instance._mouseSt= op(a,true);this.instance.options.helper=3D=0A= this.instance.options._helper;this.instance.currentItem.remove();this.ins= tance.placeholder&&this.instance.placeholder.remove();c._trigger("fromSor= table",a);c.dropped=3Dfalse}})}});d.ui.plugin.add("draggable","cursor",{s= tart:function(){var = a=3Dd("body"),b=3Dd(this).data("draggable").options;if(a.css("cursor"))b.= _cursor=3Da.css("cursor");a.css("cursor",b.cursor)},stop:function(){var = a=3Dd(this).data("draggable").options;a._cursor&&d("body").css("cursor",a= .._cursor)}});d.ui.plugin.add("draggable","iframeFix",{start:function(){va= r a=3D=0A= d(this).data("draggable").options;d(a.iframeFix=3D=3D=3Dtrue?"iframe":a.i= frameFix).each(function(){d('<div class=3D"ui-draggable-iframeFix" = style=3D"background: = #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight= +"px",position:"absolute",opacity:"0.001",zIndex:1E3}).css(d(this).offset= ()).appendTo("body")})},stop:function(){d("div.ui-draggable-iframeFix").e= ach(function(){this.parentNode.removeChild(this)})}});d.ui.plugin.add("dr= aggable","opacity",{start:function(a,b){a=3Dd(b.helper);b=3Dd(this).data(= "draggable").options;=0A= if(a.css("opacity"))b._opacity=3Da.css("opacity");a.css("opacity",b.opaci= ty)},stop:function(a,b){a=3Dd(this).data("draggable").options;a._opacity&= &d(b.helper).css("opacity",a._opacity)}});d.ui.plugin.add("draggable","sc= roll",{start:function(){var = a=3Dd(this).data("draggable");if(a.scrollParent[0]!=3Ddocument&&a.scrollP= arent[0].tagName!=3D"HTML")a.overflowOffset=3Da.scrollParent.offset()},dr= ag:function(a){var = b=3Dd(this).data("draggable"),c=3Db.options,f=3Dfalse;if(b.scrollParent[0= ]!=3Ddocument&&b.scrollParent[0].tagName!=3D=0A= "HTML"){if(!c.axis||c.axis!=3D"x")if(b.overflowOffset.top+b.scrollParent[= 0].offsetHeight-a.pageY<c.scrollSensitivity)b.scrollParent[0].scrollTop=3D= f=3Db.scrollParent[0].scrollTop+c.scrollSpeed;else = if(a.pageY-b.overflowOffset.top<c.scrollSensitivity)b.scrollParent[0].scr= ollTop=3Df=3Db.scrollParent[0].scrollTop-c.scrollSpeed;if(!c.axis||c.axis= !=3D"y")if(b.overflowOffset.left+b.scrollParent[0].offsetWidth-a.pageX<c.= scrollSensitivity)b.scrollParent[0].scrollLeft=3Df=3Db.scrollParent[0].sc= rollLeft+c.scrollSpeed;else if(a.pageX-=0A= b.overflowOffset.left<c.scrollSensitivity)b.scrollParent[0].scrollLeft=3D= f=3Db.scrollParent[0].scrollLeft-c.scrollSpeed}else{if(!c.axis||c.axis!=3D= "x")if(a.pageY-d(document).scrollTop()<c.scrollSensitivity)f=3Dd(document= ).scrollTop(d(document).scrollTop()-c.scrollSpeed);else = if(d(window).height()-(a.pageY-d(document).scrollTop())<c.scrollSensitivi= ty)f=3Dd(document).scrollTop(d(document).scrollTop()+c.scrollSpeed);if(!c= ..axis||c.axis!=3D"y")if(a.pageX-d(document).scrollLeft()<c.scrollSensitiv= ity)f=3Dd(document).scrollLeft(d(document).scrollLeft()-=0A= c.scrollSpeed);else = if(d(window).width()-(a.pageX-d(document).scrollLeft())<c.scrollSensitivi= ty)f=3Dd(document).scrollLeft(d(document).scrollLeft()+c.scrollSpeed)}f!=3D= =3Dfalse&&d.ui.ddmanager&&!c.dropBehaviour&&d.ui.ddmanager.prepareOffsets= (b,a)}});d.ui.plugin.add("draggable","snap",{start:function(){var = a=3Dd(this).data("draggable"),b=3Da.options;a.snapElements=3D[];d(b.snap.= constructor!=3DString?b.snap.items||":data(draggable)":b.snap).each(funct= ion(){var = c=3Dd(this),f=3Dc.offset();this!=3Da.element[0]&&a.snapElements.push({ite= m:this,=0A= width:c.outerWidth(),height:c.outerHeight(),top:f.top,left:f.left})})},dr= ag:function(a,b){for(var = c=3Dd(this).data("draggable"),f=3Dc.options,e=3Df.snapTolerance,g=3Db.off= set.left,n=3Dg+c.helperProportions.width,m=3Db.offset.top,o=3Dm+c.helperP= roportions.height,h=3Dc.snapElements.length-1;h>=3D0;h-- ){var = i=3Dc.snapElements[h].left,k=3Di+c.snapElements[h].width,j=3Dc.snapElemen= ts[h].top,l=3Dj+c.snapElements[h].height;if(i-e<g&&g<k+e&&j-e<m&&m<l+e||i= -e<g&&g<k+e&&j-e<o&&o<l+e||i-e<n&&n<k+e&&j-e<m&&m<l+e||i-e<n&&n<k+e&&j-e<= o&&=0A= o<l+e){if(f.snapMode!=3D"inner"){var = p=3DMath.abs(j-o)<=3De,q=3DMath.abs(l-m)<=3De,r=3DMath.abs(i-n)<=3De,s=3D= Math.abs(k-g)<=3De;if(p)b.position.top=3Dc._convertPositionTo("relative",= {top:j-c.helperProportions.height,left:0}).top-c.margins.top;if(q)b.posit= ion.top=3Dc._convertPositionTo("relative",{top:l,left:0}).top-c.margins.t= op;if(r)b.position.left=3Dc._convertPositionTo("relative",{top:0,left:i-c= ..helperProportions.width}).left-c.margins.left;if(s)b.position.left=3Dc._= convertPositionTo("relative",{top:0,left:k}).left-c.margins.left}var t=3D=0A= p||q||r||s;if(f.snapMode!=3D"outer"){p=3DMath.abs(j-m)<=3De;q=3DMath.abs(= l-o)<=3De;r=3DMath.abs(i-g)<=3De;s=3DMath.abs(k-n)<=3De;if(p)b.position.t= op=3Dc._convertPositionTo("relative",{top:j,left:0}).top-c.margins.top;if= (q)b.position.top=3Dc._convertPositionTo("relative",{top:l-c.helperPropor= tions.height,left:0}).top-c.margins.top;if(r)b.position.left=3Dc._convert= PositionTo("relative",{top:0,left:i}).left-c.margins.left;if(s)b.position= ..left=3Dc._convertPositionTo("relative",{top:0,left:k-c.helperProportions= ..width}).left-c.margins.left}if(!c.snapElements[h].snapping&&=0A= (p||q||r||s||t))c.options.snap.snap&&c.options.snap.snap.call(c.element,a= ,d.extend(c._uiHash(),{snapItem:c.snapElements[h].item}));c.snapElements[= h].snapping=3Dp||q||r||s||t}else{c.snapElements[h].snapping&&c.options.sn= ap.release&&c.options.snap.release.call(c.element,a,d.extend(c._uiHash(),= {snapItem:c.snapElements[h].item}));c.snapElements[h].snapping=3Dfalse}}}= });d.ui.plugin.add("draggable","stack",{start:function(){var = a=3Dd(this).data("draggable").options;a=3Dd.makeArray(d(a.stack)).sort(fu= nction(c,f){return(parseInt(d(c).css("zIndex"),=0A= 10)||0)-(parseInt(d(f).css("zIndex"),10)||0)});if(a.length){var = b=3DparseInt(a[0].style.zIndex)||0;d(a).each(function(c){this.style.zInde= x=3Db+c});this[0].style.zIndex=3Db+a.length}}});d.ui.plugin.add("draggabl= e","zIndex",{start:function(a,b){a=3Dd(b.helper);b=3Dd(this).data("dragga= ble").options;if(a.css("zIndex"))b._zIndex=3Da.css("zIndex");a.css("zInde= x",b.zIndex)},stop:function(a,b){a=3Dd(this).data("draggable").options;a.= _zIndex&&d(b.helper).css("zIndex",a._zIndex)}})})(jQuery);=0A= (function(d){d.widget("ui.droppable",{widgetEventPrefix:"drop",options:{a= ccept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false= ,scope:"default",tolerance:"intersect"},_create:function(){var = a=3Dthis.options,b=3Da.accept;this.isover=3D0;this.isout=3D1;this.accept=3D= d.isFunction(b)?b:function(c){return = c.is(b)};this.proportions=3D{width:this.element[0].offsetWidth,height:thi= s.element[0].offsetHeight};d.ui.ddmanager.droppables[a.scope]=3Dd.ui.ddma= nager.droppables[a.scope]||[];d.ui.ddmanager.droppables[a.scope].push(thi= s);=0A= a.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){f= or(var = a=3Dd.ui.ddmanager.droppables[this.options.scope],b=3D0;b<a.length;b++)a[= b]=3D=3Dthis&&a.splice(b,1);this.element.removeClass("ui-droppable = ui-droppable-disabled").removeData("droppable").unbind(".droppable");retu= rn = this},_setOption:function(a,b){if(a=3D=3D"accept")this.accept=3Dd.isFunct= ion(b)?b:function(c){return = c.is(b)};d.Widget.prototype._setOption.apply(this,arguments)},_activate:f= unction(a){var b=3Dd.ui.ddmanager.current;this.options.activeClass&&=0A= this.element.addClass(this.options.activeClass);b&&this._trigger("activat= e",a,this.ui(b))},_deactivate:function(a){var = b=3Dd.ui.ddmanager.current;this.options.activeClass&&this.element.removeC= lass(this.options.activeClass);b&&this._trigger("deactivate",a,this.ui(b)= )},_over:function(a){var = b=3Dd.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]=3D=3Dth= is.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.eleme= nt)){this.options.hoverClass&&this.element.addClass(this.options.hoverCla= ss);=0A= this._trigger("over",a,this.ui(b))}},_out:function(a){var = b=3Dd.ui.ddmanager.current;if(!(!b||(b.currentItem||b.element)[0]=3D=3Dth= is.element[0]))if(this.accept.call(this.element[0],b.currentItem||b.eleme= nt)){this.options.hoverClass&&this.element.removeClass(this.options.hover= Class);this._trigger("out",a,this.ui(b))}},_drop:function(a,b){var = c=3Db||d.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]=3D=3Dt= his.element[0])return false;var = e=3Dfalse;this.element.find(":data(droppable)").not(".ui-draggable-draggi= ng").each(function(){var g=3D=0A= d.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.opti= ons.scope=3D=3Dc.options.scope&&g.accept.call(g.element[0],c.currentItem|= |c.element)&&d.ui.intersect(c,d.extend(g,{offset:g.element.offset()}),g.o= ptions.tolerance)){e=3Dtrue;return false}});if(e)return = false;if(this.accept.call(this.element[0],c.currentItem||c.element)){this= ..options.activeClass&&this.element.removeClass(this.options.activeClass);= this.options.hoverClass&&this.element.removeClass(this.options.hoverClass= );this._trigger("drop",=0A= a,this.ui(c));return this.element}return = false},ui:function(a){return{draggable:a.currentItem||a.element,helper:a.= helper,position:a.position,offset:a.positionAbs}}});d.extend(d.ui.droppab= le,{version:"1.8.2"});d.ui.intersect=3Dfunction(a,b,c){if(!b.offset)retur= n false;var = e=3D(a.positionAbs||a.position.absolute).left,g=3De+a.helperProportions.w= idth,f=3D(a.positionAbs||a.position.absolute).top,h=3Df+a.helperProportio= ns.height,i=3Db.offset.left,k=3Di+b.proportions.width,j=3Db.offset.top,l=3D= j+b.proportions.height;=0A= switch(c){case "fit":return i<e&&g<k&&j<f&&h<l;case "intersect":return = i<e+a.helperProportions.width/2&&g-a.helperProportions.width/2<k&&j<f+a.h= elperProportions.height/2&&h-a.helperProportions.height/2<l;case = "pointer":return = d.ui.isOver((a.positionAbs||a.position.absolute).top+(a.clickOffset||a.of= fset.click).top,(a.positionAbs||a.position.absolute).left+(a.clickOffset|= |a.offset.click).left,j,i,b.proportions.height,b.proportions.width);case = "touch":return(f>=3Dj&&f<=3Dl||h>=3Dj&&h<=3Dl||f<j&&h>l)&&(e>=3Di&&=0A= e<=3Dk||g>=3Di&&g<=3Dk||e<i&&g>k);default:return = false}};d.ui.ddmanager=3D{current:null,droppables:{"default":[]},prepareO= ffsets:function(a,b){var = c=3Dd.ui.ddmanager.droppables[a.options.scope]||[],e=3Db?b.type:null,g=3D= (a.currentItem||a.element).find(":data(droppable)").andSelf(),f=3D0;a:for= (;f<c.length;f++)if(!(c[f].options.disabled||a&&!c[f].accept.call(c[f].el= ement[0],a.currentItem||a.element))){for(var = h=3D0;h<g.length;h++)if(g[h]=3D=3Dc[f].element[0]){c[f].proportions.heigh= t=3D0;continue a}c[f].visible=3Dc[f].element.css("display")!=3D=0A= "none";if(c[f].visible){c[f].offset=3Dc[f].element.offset();c[f].proporti= ons=3D{width:c[f].element[0].offsetWidth,height:c[f].element[0].offsetHei= ght};e=3D=3D"mousedown"&&c[f]._activate.call(c[f],b)}}},drop:function(a,b= ){var = c=3Dfalse;d.each(d.ui.ddmanager.droppables[a.options.scope]||[],function(= ){if(this.options){if(!this.options.disabled&&this.visible&&d.ui.intersec= t(a,this,this.options.tolerance))c=3Dc||this._drop.call(this,b);if(!this.= options.disabled&&this.visible&&this.accept.call(this.element[0],a.curren= tItem||=0A= a.element)){this.isout=3D1;this.isover=3D0;this._deactivate.call(this,b)}= }});return = c},drag:function(a,b){a.options.refreshPositions&&d.ui.ddmanager.prepareO= ffsets(a,b);d.each(d.ui.ddmanager.droppables[a.options.scope]||[],functio= n(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var = c=3Dd.ui.intersect(a,this,this.options.tolerance);if(c=3D!c&&this.isover=3D= =3D1?"isout":c&&this.isover=3D=3D0?"isover":null){var = e;if(this.options.greedy){var = g=3Dthis.element.parents(":data(droppable):eq(0)");if(g.length){e=3D=0A= d.data(g[0],"droppable");e.greedyChild=3Dc=3D=3D"isover"?1:0}}if(e&&c=3D=3D= "isover"){e.isover=3D0;e.isout=3D1;e._out.call(e,b)}this[c]=3D1;this[c=3D= =3D"isout"?"isover":"isout"]=3D0;this[c=3D=3D"isover"?"_over":"_out"].cal= l(this,b);if(e&&c=3D=3D"isout"){e.isout=3D0;e.isover=3D1;e._over.call(e,b= )}}}})}}})(jQuery);=0A= (function(d){d.widget("ui.resizable",d.ui.mouse,{widgetEventPrefix:"resiz= e",options:{alsoResize:false,animate:false,animateDuration:"slow",animate= Easing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:f= alse,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:nul= l,minHeight:10,minWidth:10,zIndex:1E3},_create:function(){var = b=3Dthis,a=3Dthis.options;this.element.addClass("ui-resizable");d.extend(= this,{_aspectRatio:!!a.aspectRatio,aspectRatio:a.aspectRatio,originalElem= ent:this.element,=0A= _proportionallyResizeElements:[],_helper:a.helper||a.ghost||a.animate?a.h= elper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/ca= nvas|textarea|input|select|button|img/i)){/relative/.test(this.element.cs= s("position"))&&d.browser.opera&&this.element.css({position:"relative",to= p:"auto",left:"auto"});this.element.wrap(d('<div class=3D"ui-wrapper" = style=3D"overflow: = hidden;"></div>').css({position:this.element.css("position"),width:this.e= lement.outerWidth(),height:this.element.outerHeight(),=0A= top:this.element.css("top"),left:this.element.css("left")}));this.element= =3Dthis.element.parent().data("resizable",this.element.data("resizable"))= ;this.elementIsWrapper=3Dtrue;this.element.css({marginLeft:this.originalE= lement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),= marginRight:this.originalElement.css("marginRight"),marginBottom:this.ori= ginalElement.css("marginBottom")});this.originalElement.css({marginLeft:0= ,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=3D=0A= this.originalElement.css("resize");this.originalElement.css("resize","non= e");this._proportionallyResizeElements.push(this.originalElement.css({pos= ition:"static",zoom:1,display:"block"}));this.originalElement.css({margin= :this.originalElement.css("margin")});this._proportionallyResize()}this.h= andles=3Da.handles||(!d(".ui-resizable-handle",this.element).length?"e,s,= se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-r= esizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable= -ne",=0A= nw:".ui-resizable-nw"});if(this.handles.constructor=3D=3DString){if(this.= handles=3D=3D"all")this.handles=3D"n,e,s,w,se,sw,ne,nw";var = c=3Dthis.handles.split(",");this.handles=3D{};for(var = e=3D0;e<c.length;e++){var g=3Dd.trim(c[e]),f=3Dd('<div = class=3D"ui-resizable-handle = '+("ui-resizable-"+g)+'"></div>');/sw|se|ne|nw/.test(g)&&f.css({zIndex:++= a.zIndex});"se"=3D=3Dg&&f.addClass("ui-icon = ui-icon-gripsmall-diagonal-se");this.handles[g]=3D".ui-resizable-"+g;this= ..element.append(f)}}this._renderAxis=3Dfunction(h){h=3Dh||this.element;fo= r(var i in this.handles){if(this.handles[i].constructor=3D=3D=0A= String)this.handles[i]=3Dd(this.handles[i],this.element).show();if(this.e= lementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|s= elect|button/i)){var = j=3Dd(this.handles[i],this.element),l=3D0;l=3D/sw|ne|nw|se|n|s/.test(i)?j= ..outerHeight():j.outerWidth();j=3D["padding",/ne|nw|n/.test(i)?"Top":/se|= sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join("");h.css(j,l);= this._proportionallyResize()}d(this.handles[i])}};this._renderAxis(this.e= lement);this._handles=3Dd(".ui-resizable-handle",this.element).disableSel= ection();=0A= this._handles.mouseover(function(){if(!b.resizing){if(this.className)var = h=3Dthis.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i);b.axis=3D= h&&h[1]?h[1]:"se"}});if(a.autoHide){this._handles.hide();d(this.element).= addClass("ui-resizable-autohide").hover(function(){d(this).removeClass("u= i-resizable-autohide");b._handles.show()},function(){if(!b.resizing){d(th= is).addClass("ui-resizable-autohide");b._handles.hide()}})}this._mouseIni= t()},destroy:function(){this._mouseDestroy();var = b=3Dfunction(c){d(c).removeClass("ui-resizable ui-resizable-disabled = ui-resizable-resizing").removeData("resizable").unbind(".resizable").find= (".ui-resizable-handle").remove()};=0A= if(this.elementIsWrapper){b(this.element);var = a=3Dthis.element;a.after(this.originalElement.css({position:a.css("positi= on"),width:a.outerWidth(),height:a.outerHeight(),top:a.css("top"),left:a.= css("left")})).remove()}this.originalElement.css("resize",this.originalRe= sizeStyle);b(this.originalElement);return = this},_mouseCapture:function(b){var a=3Dfalse;for(var c in = this.handles)if(d(this.handles[c])[0]=3D=3Db.target)a=3Dtrue;return!this.= options.disabled&&a},_mouseStart:function(b){var = a=3Dthis.options,c=3Dthis.element.position(),=0A= e=3Dthis.element;this.resizing=3Dtrue;this.documentScroll=3D{top:d(docume= nt).scrollTop(),left:d(document).scrollLeft()};if(e.is(".ui-draggable")||= /absolute/.test(e.css("position")))e.css({position:"absolute",top:c.top,l= eft:c.left});d.browser.opera&&/relative/.test(e.css("position"))&&e.css({= position:"relative",top:"auto",left:"auto"});this._renderProxy();c=3Dm(th= is.helper.css("left"));var = g=3Dm(this.helper.css("top"));if(a.containment){c+=3Dd(a.containment).scr= ollLeft()||0;g+=3Dd(a.containment).scrollTop()||0}this.offset=3D=0A= this.helper.offset();this.position=3D{left:c,top:g};this.size=3Dthis._hel= per?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height= :e.height()};this.originalSize=3Dthis._helper?{width:e.outerWidth(),heigh= t:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosit= ion=3D{left:c,top:g};this.sizeDiff=3D{width:e.outerWidth()-e.width(),heig= ht:e.outerHeight()-e.height()};this.originalMousePosition=3D{left:b.pageX= ,top:b.pageY};this.aspectRatio=3Dtypeof = a.aspectRatio=3D=3D"number"?a.aspectRatio:=0A= this.originalSize.width/this.originalSize.height||1;a=3Dd(".ui-resizable-= "+this.axis).css("cursor");d("body").css("cursor",a=3D=3D"auto"?this.axis= +"-resize":a);e.addClass("ui-resizable-resizing");this._propagate("start"= ,b);return true},_mouseDrag:function(b){var = a=3Dthis.helper,c=3Dthis.originalMousePosition,e=3Dthis._change[this.axis= ];if(!e)return = false;c=3De.apply(this,[b,b.pageX-c.left||0,b.pageY-c.top||0]);if(this._a= spectRatio||b.shiftKey)c=3Dthis._updateRatio(c,b);c=3Dthis._respectSize(c= ,b);this._propagate("resize",=0A= b);a.css({top:this.position.top+"px",left:this.position.left+"px",width:t= his.size.width+"px",height:this.size.height+"px"});!this._helper&&this._p= roportionallyResizeElements.length&&this._proportionallyResize();this._up= dateCache(c);this._trigger("resize",b,this.ui());return = false},_mouseStop:function(b){this.resizing=3Dfalse;var = a=3Dthis.options,c=3Dthis;if(this._helper){var = e=3Dthis._proportionallyResizeElements,g=3De.length&&/textarea/i.test(e[0= ].nodeName);e=3Dg&&d.ui.hasScroll(e[0],"left")?0:c.sizeDiff.height;=0A= g=3D{width:c.size.width-(g?0:c.sizeDiff.width),height:c.size.height-e};e=3D= parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.le= ft)||null;var = f=3DparseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.= top)||null;a.animate||this.element.css(d.extend(g,{top:f,left:e}));c.help= er.height(c.size.height);c.helper.width(c.size.width);this._helper&&!a.an= imate&&this._proportionallyResize()}d("body").css("cursor","auto");this.e= lement.removeClass("ui-resizable-resizing");this._propagate("stop",=0A= b);this._helper&&this.helper.remove();return = false},_updateCache:function(b){this.offset=3Dthis.helper.offset();if(k(b= ..left))this.position.left=3Db.left;if(k(b.top))this.position.top=3Db.top;= if(k(b.height))this.size.height=3Db.height;if(k(b.width))this.size.width=3D= b.width},_updateRatio:function(b){var = a=3Dthis.position,c=3Dthis.size,e=3Dthis.axis;if(b.height)b.width=3Dc.hei= ght*this.aspectRatio;else = if(b.width)b.height=3Dc.width/this.aspectRatio;if(e=3D=3D"sw"){b.left=3Da= ..left+(c.width-b.width);b.top=3Dnull}if(e=3D=3D"nw"){b.top=3D=0A= a.top+(c.height-b.height);b.left=3Da.left+(c.width-b.width)}return = b},_respectSize:function(b){var = a=3Dthis.options,c=3Dthis.axis,e=3Dk(b.width)&&a.maxWidth&&a.maxWidth<b.w= idth,g=3Dk(b.height)&&a.maxHeight&&a.maxHeight<b.height,f=3Dk(b.width)&&a= ..minWidth&&a.minWidth>b.width,h=3Dk(b.height)&&a.minHeight&&a.minHeight>b= ..height;if(f)b.width=3Da.minWidth;if(h)b.height=3Da.minHeight;if(e)b.widt= h=3Da.maxWidth;if(g)b.height=3Da.maxHeight;var = i=3Dthis.originalPosition.left+this.originalSize.width,j=3Dthis.position.= top+this.size.height,=0A= l=3D/sw|nw|w/.test(c);c=3D/nw|ne|n/.test(c);if(f&&l)b.left=3Di-a.minWidth= ;if(e&&l)b.left=3Di-a.maxWidth;if(h&&c)b.top=3Dj-a.minHeight;if(g&&c)b.to= p=3Dj-a.maxHeight;if((a=3D!b.width&&!b.height)&&!b.left&&b.top)b.top=3Dnu= ll;else if(a&&!b.top&&b.left)b.left=3Dnull;return = b},_proportionallyResize:function(){if(this._proportionallyResizeElements= ..length)for(var = b=3Dthis.helper||this.element,a=3D0;a<this._proportionallyResizeElements.= length;a++){var = c=3Dthis._proportionallyResizeElements[a];if(!this.borderDif){var = e=3D[c.css("borderTopWidth"),=0A= c.css("borderRightWidth"),c.css("borderBottomWidth"),c.css("borderLeftWid= th")],g=3D[c.css("paddingTop"),c.css("paddingRight"),c.css("paddingBottom= "),c.css("paddingLeft")];this.borderDif=3Dd.map(e,function(f,h){f=3Dparse= Int(f,10)||0;h=3DparseInt(g[h],10)||0;return = f+h})}d.browser.msie&&(d(b).is(":hidden")||d(b).parents(":hidden").length= )||c.css({height:b.height()-this.borderDif[0]-this.borderDif[2]||0,width:= b.width()-this.borderDif[1]-this.borderDif[3]||0})}},_renderProxy:functio= n(){var b=3Dthis.options;this.elementOffset=3D=0A= this.element.offset();if(this._helper){this.helper=3Dthis.helper||d('<div= style=3D"overflow:hidden;"></div>');var = a=3Dd.browser.msie&&d.browser.version<7,c=3Da?1:0;a=3Da?2:-1;this.helper.= addClass(this._helper).css({width:this.element.outerWidth()+a,height:this= ..element.outerHeight()+a,position:"absolute",left:this.elementOffset.left= -c+"px",top:this.elementOffset.top-c+"px",zIndex:++b.zIndex});this.helper= ..appendTo("body").disableSelection()}else = this.helper=3Dthis.element},_change:{e:function(b,a){return{width:this.or= iginalSize.width+=0A= a}},w:function(b,a){return{left:this.originalPosition.left+a,width:this.o= riginalSize.width-a}},n:function(b,a,c){return{top:this.originalPosition.= top+c,height:this.originalSize.height-c}},s:function(b,a,c){return{height= :this.originalSize.height+c}},se:function(b,a,c){return = d.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[= b,a,c]))},sw:function(b,a,c){return = d.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[= b,a,c]))},ne:function(b,a,c){return d.extend(this._change.n.apply(this,=0A= arguments),this._change.e.apply(this,[b,a,c]))},nw:function(b,a,c){return= = d.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[= b,a,c]))}},_propagate:function(b,a){d.ui.plugin.call(this,b,[a,this.ui()]= );b!=3D"resize"&&this._trigger(b,a,this.ui())},plugins:{},ui:function(){r= eturn{originalElement:this.originalElement,element:this.element,helper:th= is.helper,position:this.position,size:this.size,originalSize:this.origina= lSize,originalPosition:this.originalPosition}}});d.extend(d.ui.resizable,=0A= {version:"1.8.2"});d.ui.plugin.add("resizable","alsoResize",{start:functi= on(){var = b=3Dd(this).data("resizable").options,a=3Dfunction(c){d(c).each(function(= ){d(this).data("resizable-alsoresize",{width:parseInt(d(this).width(),10)= ,height:parseInt(d(this).height(),10),left:parseInt(d(this).css("left"),1= 0),top:parseInt(d(this).css("top"),10)})})};if(typeof = b.alsoResize=3D=3D"object"&&!b.alsoResize.parentNode)if(b.alsoResize.leng= th){b.alsoResize=3Db.alsoResize[0];a(b.alsoResize)}else = d.each(b.alsoResize,function(c){a(c)});=0A= else a(b.alsoResize)},resize:function(){var = b=3Dd(this).data("resizable"),a=3Db.options,c=3Db.originalSize,e=3Db.orig= inalPosition,g=3D{height:b.size.height-c.height||0,width:b.size.width-c.w= idth||0,top:b.position.top-e.top||0,left:b.position.left-e.left||0},f=3Df= unction(h,i){d(h).each(function(){var = j=3Dd(this),l=3Dd(this).data("resizable-alsoresize"),p=3D{};d.each((i&&i.= length?i:["width","height","top","left"])||["width","height","top","left"= ],function(n,o){if((n=3D(l[o]||0)+(g[o]||0))&&n>=3D0)p[o]=3Dn||null});if(= /relative/.test(j.css("position"))&&=0A= d.browser.opera){b._revertToRelativePosition=3Dtrue;j.css({position:"abso= lute",top:"auto",left:"auto"})}j.css(p)})};typeof = a.alsoResize=3D=3D"object"&&!a.alsoResize.nodeType?d.each(a.alsoResize,fu= nction(h,i){f(h,i)}):f(a.alsoResize)},stop:function(){var = b=3Dd(this).data("resizable");if(b._revertToRelativePosition&&d.browser.o= pera){b._revertToRelativePosition=3Dfalse;el.css({position:"relative"})}d= (this).removeData("resizable-alsoresize-start")}});d.ui.plugin.add("resiz= able","animate",{stop:function(b){var a=3D=0A= d(this).data("resizable"),c=3Da.options,e=3Da._proportionallyResizeElemen= ts,g=3De.length&&/textarea/i.test(e[0].nodeName),f=3Dg&&d.ui.hasScroll(e[= 0],"left")?0:a.sizeDiff.height;g=3D{width:a.size.width-(g?0:a.sizeDiff.wi= dth),height:a.size.height-f};f=3DparseInt(a.element.css("left"),10)+(a.po= sition.left-a.originalPosition.left)||null;var = h=3DparseInt(a.element.css("top"),10)+(a.position.top-a.originalPosition.= top)||null;a.element.animate(d.extend(g,h&&f?{top:h,left:f}:{}),{duration= :c.animateDuration,easing:c.animateEasing,=0A= step:function(){var = i=3D{width:parseInt(a.element.css("width"),10),height:parseInt(a.element.= css("height"),10),top:parseInt(a.element.css("top"),10),left:parseInt(a.e= lement.css("left"),10)};e&&e.length&&d(e[0]).css({width:i.width,height:i.= height});a._updateCache(i);a._propagate("resize",b)}})}});d.ui.plugin.add= ("resizable","containment",{start:function(){var = b=3Dd(this).data("resizable"),a=3Db.element,c=3Db.options.containment;if(= a=3Dc instanceof = d?c.get(0):/parent/.test(c)?a.parent().get(0):c){b.containerElement=3D=0A= d(a);if(/document/.test(c)||c=3D=3Ddocument){b.containerOffset=3D{left:0,= top:0};b.containerPosition=3D{left:0,top:0};b.parentData=3D{element:d(doc= ument),left:0,top:0,width:d(document).width(),height:d(document).height()= ||document.body.parentNode.scrollHeight}}else{var = e=3Dd(a),g=3D[];d(["Top","Right","Left","Bottom"]).each(function(i,j){g[i= ]=3Dm(e.css("padding"+j))});b.containerOffset=3De.offset();b.containerPos= ition=3De.position();b.containerSize=3D{height:e.innerHeight()-g[3],width= :e.innerWidth()-g[1]};c=3Db.containerOffset;=0A= var = f=3Db.containerSize.height,h=3Db.containerSize.width;h=3Dd.ui.hasScroll(a= ,"left")?a.scrollWidth:h;f=3Dd.ui.hasScroll(a)?a.scrollHeight:f;b.parentD= ata=3D{element:a,left:c.left,top:c.top,width:h,height:f}}}},resize:functi= on(b){var = a=3Dd(this).data("resizable"),c=3Da.options,e=3Da.containerOffset,g=3Da.p= osition;b=3Da._aspectRatio||b.shiftKey;var = f=3D{top:0,left:0},h=3Da.containerElement;if(h[0]!=3Ddocument&&/static/.t= est(h.css("position")))f=3De;if(g.left<(a._helper?e.left:0)){a.size.width= +=3Da._helper?a.position.left-e.left:=0A= a.position.left-f.left;if(b)a.size.height=3Da.size.width/c.aspectRatio;a.= position.left=3Dc.helper?e.left:0}if(g.top<(a._helper?e.top:0)){a.size.he= ight+=3Da._helper?a.position.top-e.top:a.position.top;if(b)a.size.width=3D= a.size.height*c.aspectRatio;a.position.top=3Da._helper?e.top:0}a.offset.l= eft=3Da.parentData.left+a.position.left;a.offset.top=3Da.parentData.top+a= ..position.top;c=3DMath.abs((a._helper?a.offset.left-f.left:a.offset.left-= f.left)+a.sizeDiff.width);e=3DMath.abs((a._helper?a.offset.top-f.top:a.of= fset.top-=0A= e.top)+a.sizeDiff.height);g=3Da.containerElement.get(0)=3D=3Da.element.pa= rent().get(0);f=3D/relative|absolute/.test(a.containerElement.css("positi= on"));if(g&&f)c-=3Da.parentData.left;if(c+a.size.width>=3Da.parentData.wi= dth){a.size.width=3Da.parentData.width-c;if(b)a.size.height=3Da.size.widt= h/a.aspectRatio}if(e+a.size.height>=3Da.parentData.height){a.size.height=3D= a.parentData.height-e;if(b)a.size.width=3Da.size.height*a.aspectRatio}},s= top:function(){var = b=3Dd(this).data("resizable"),a=3Db.options,c=3Db.containerOffset,e=3Db.c= ontainerPosition,=0A= g=3Db.containerElement,f=3Dd(b.helper),h=3Df.offset(),i=3Df.outerWidth()-= b.sizeDiff.width;f=3Df.outerHeight()-b.sizeDiff.height;b._helper&&!a.anim= ate&&/relative/.test(g.css("position"))&&d(this).css({left:h.left-e.left-= c.left,width:i,height:f});b._helper&&!a.animate&&/static/.test(g.css("pos= ition"))&&d(this).css({left:h.left-e.left-c.left,width:i,height:f})}});d.= ui.plugin.add("resizable","ghost",{start:function(){var = b=3Dd(this).data("resizable"),a=3Db.options,c=3Db.size;b.ghost=3Db.origin= alElement.clone();b.ghost.css({opacity:0.25,=0A= display:"block",position:"relative",height:c.height,width:c.width,margin:= 0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof = a.ghost=3D=3D"string"?a.ghost:"");b.ghost.appendTo(b.helper)},resize:func= tion(){var = b=3Dd(this).data("resizable");b.ghost&&b.ghost.css({position:"relative",h= eight:b.size.height,width:b.size.width})},stop:function(){var = b=3Dd(this).data("resizable");b.ghost&&b.helper&&b.helper.get(0).removeCh= ild(b.ghost.get(0))}});d.ui.plugin.add("resizable","grid",{resize:functio= n(){var b=3D=0A= d(this).data("resizable"),a=3Db.options,c=3Db.size,e=3Db.originalSize,g=3D= b.originalPosition,f=3Db.axis;a.grid=3Dtypeof = a.grid=3D=3D"number"?[a.grid,a.grid]:a.grid;var = h=3DMath.round((c.width-e.width)/(a.grid[0]||1))*(a.grid[0]||1);a=3DMath.= round((c.height-e.height)/(a.grid[1]||1))*(a.grid[1]||1);if(/^(se|s|e)$/.= test(f)){b.size.width=3De.width+h;b.size.height=3De.height+a}else = if(/^(ne)$/.test(f)){b.size.width=3De.width+h;b.size.height=3De.height+a;= b.position.top=3Dg.top-a}else{if(/^(sw)$/.test(f)){b.size.width=3De.width= +h;b.size.height=3D=0A= e.height+a}else{b.size.width=3De.width+h;b.size.height=3De.height+a;b.pos= ition.top=3Dg.top-a}b.position.left=3Dg.left-h}}});var = m=3Dfunction(b){return = parseInt(b,10)||0},k=3Dfunction(b){return!isNaN(parseInt(b,10))}})(jQuery= );=0A= (function(e){e.widget("ui.selectable",e.ui.mouse,{options:{appendTo:"body= ",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:funct= ion(){var = c=3Dthis;this.element.addClass("ui-selectable");this.dragged=3Dfalse;var = f;this.refresh=3Dfunction(){f=3De(c.options.filter,c.element[0]);f.each(f= unction(){var = d=3De(this),b=3Dd.offset();e.data(this,"selectable-item",{element:this,$e= lement:d,left:b.left,top:b.top,right:b.left+d.outerWidth(),bottom:b.top+d= ..outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),=0A= selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecti= ng")})})};this.refresh();this.selectees=3Df.addClass("ui-selectee");this.= _mouseInit();this.helper=3De("<div = class=3D'ui-selectable-helper'></div>")},destroy:function(){this.selectee= s.removeClass("ui-selectee").removeData("selectable-item");this.element.r= emoveClass("ui-selectable = ui-selectable-disabled").removeData("selectable").unbind(".selectable");t= his._mouseDestroy();return this},_mouseStart:function(c){var = f=3Dthis;this.opos=3D[c.pageX,=0A= c.pageY];if(!this.options.disabled){var = d=3Dthis.options;this.selectees=3De(d.filter,this.element[0]);this._trigg= er("start",c);e(d.appendTo).append(this.helper);this.helper.css({"z-index= ":100,position:"absolute",left:c.clientX,top:c.clientY,width:0,height:0})= ;d.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each= (function(){var = b=3De.data(this,"selectable-item");b.startselected=3Dtrue;if(!c.metaKey){= b.$element.removeClass("ui-selected");b.selected=3Dfalse;b.$element.addCl= ass("ui-unselecting");=0A= b.unselecting=3Dtrue;f._trigger("unselecting",c,{unselecting:b.element})}= });e(c.target).parents().andSelf().each(function(){var = b=3De.data(this,"selectable-item");if(b){var = g=3D!c.metaKey||!b.$element.hasClass("ui-selected");b.$element.removeClas= s(g?"ui-unselecting":"ui-selected").addClass(g?"ui-selecting":"ui-unselec= ting");b.unselecting=3D!g;b.selecting=3Dg;(b.selected=3Dg)?f._trigger("se= lecting",c,{selecting:b.element}):f._trigger("unselecting",c,{unselecting= :b.element});return false}})}},_mouseDrag:function(c){var f=3D=0A= this;this.dragged=3Dtrue;if(!this.options.disabled){var = d=3Dthis.options,b=3Dthis.opos[0],g=3Dthis.opos[1],h=3Dc.pageX,i=3Dc.page= Y;if(b>h){var = j=3Dh;h=3Db;b=3Dj}if(g>i){j=3Di;i=3Dg;g=3Dj}this.helper.css({left:b,top:g= ,width:h-b,height:i-g});this.selectees.each(function(){var = a=3De.data(this,"selectable-item");if(!(!a||a.element=3D=3Df.element[0]))= {var = k=3Dfalse;if(d.tolerance=3D=3D"touch")k=3D!(a.left>h||a.right<b||a.top>i|= |a.bottom<g);else = if(d.tolerance=3D=3D"fit")k=3Da.left>b&&a.right<h&&a.top>g&&a.bottom<i;if= (k){if(a.selected){a.$element.removeClass("ui-selected");=0A= a.selected=3Dfalse}if(a.unselecting){a.$element.removeClass("ui-unselecti= ng");a.unselecting=3Dfalse}if(!a.selecting){a.$element.addClass("ui-selec= ting");a.selecting=3Dtrue;f._trigger("selecting",c,{selecting:a.element})= }}else{if(a.selecting)if(c.metaKey&&a.startselected){a.$element.removeCla= ss("ui-selecting");a.selecting=3Dfalse;a.$element.addClass("ui-selected")= ;a.selected=3Dtrue}else{a.$element.removeClass("ui-selecting");a.selectin= g=3Dfalse;if(a.startselected){a.$element.addClass("ui-unselecting");a.uns= electing=3D=0A= true}f._trigger("unselecting",c,{unselecting:a.element})}if(a.selected)if= (!c.metaKey&&!a.startselected){a.$element.removeClass("ui-selected");a.se= lected=3Dfalse;a.$element.addClass("ui-unselecting");a.unselecting=3Dtrue= ;f._trigger("unselecting",c,{unselecting:a.element})}}}});return = false}},_mouseStop:function(c){var = f=3Dthis;this.dragged=3Dfalse;e(".ui-unselecting",this.element[0]).each(f= unction(){var = d=3De.data(this,"selectable-item");d.$element.removeClass("ui-unselecting= ");d.unselecting=3Dfalse;d.startselected=3D=0A= false;f._trigger("unselected",c,{unselected:d.element})});e(".ui-selectin= g",this.element[0]).each(function(){var = d=3De.data(this,"selectable-item");d.$element.removeClass("ui-selecting")= ..addClass("ui-selected");d.selecting=3Dfalse;d.selected=3Dtrue;d.startsel= ected=3Dtrue;f._trigger("selected",c,{selected:d.element})});this._trigge= r("stop",c);this.helper.remove();return = false}});e.extend(e.ui.selectable,{version:"1.8.2"})})(jQuery);=0A= (function(d){d.widget("ui.sortable",d.ui.mouse,{widgetEventPrefix:"sort",= options:{appendTo:"parent",axis:false,connectWith:false,containment:false= ,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false= ,forceHelperSize:false,grid:false,handle:false,helper:"original",items:">= = *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensiti= vity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1E3},= _create:function(){this.containerCache=3D{};this.element.addClass("ui-sor= table");=0A= this.refresh();this.floating=3Dthis.items.length?/left|right/.test(this.i= tems[0].item.css("float")):false;this.offset=3Dthis.element.offset();this= .._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable = ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._m= ouseDestroy();for(var = a=3Dthis.items.length-1;a>=3D0;a-- )this.items[a].item.removeData("sortabl= e-item");return = this},_setOption:function(a,b){if(a=3D=3D=3D"disabled"){this.options[a]=3D= b;this.widget()[b?"addClass":"removeClass"]("ui-sortable-disabled")}else = d.Widget.prototype._setOption.apply(this,=0A= arguments)},_mouseCapture:function(a,b){if(this.reverting)return = false;if(this.options.disabled||this.options.type=3D=3D"static")return = false;this._refreshItems(a);var = c=3Dnull,e=3Dthis;d(a.target).parents().each(function(){if(d.data(this,"s= ortable-item")=3D=3De){c=3Dd(this);return = false}});if(d.data(a.target,"sortable-item")=3D=3De)c=3Dd(a.target);if(!c= )return false;if(this.options.handle&&!b){var = f=3Dfalse;d(this.options.handle,c).find("*").andSelf().each(function(){if= (this=3D=3Da.target)f=3Dtrue});if(!f)return false}this.currentItem=3D=0A= c;this._removeCurrentsFromItems();return = true},_mouseStart:function(a,b,c){b=3Dthis.options;var = e=3Dthis;this.currentContainer=3Dthis;this.refreshPositions();this.helper= =3Dthis._createHelper(a);this._cacheHelperProportions();this._cacheMargin= s();this.scrollParent=3Dthis.helper.scrollParent();this.offset=3Dthis.cur= rentItem.offset();this.offset=3D{top:this.offset.top-this.margins.top,lef= t:this.offset.left-this.margins.left};this.helper.css("position","absolut= e");this.cssPosition=3Dthis.helper.css("position");d.extend(this.offset,=0A= {click:{left:a.pageX-this.offset.left,top:a.pageY-this.offset.top},parent= :this._getParentOffset(),relative:this._getRelativeOffset()});this.origin= alPosition=3Dthis._generatePosition(a);this.originalPageX=3Da.pageX;this.= originalPageY=3Da.pageY;b.cursorAt&&this._adjustOffsetFromHelper(b.cursor= At);this.domPosition=3D{prev:this.currentItem.prev()[0],parent:this.curre= ntItem.parent()[0]};this.helper[0]!=3Dthis.currentItem[0]&&this.currentIt= em.hide();this._createPlaceholder();b.containment&&this._setContainment()= ;=0A= if(b.cursor){if(d("body").css("cursor"))this._storedCursor=3Dd("body").cs= s("cursor");d("body").css("cursor",b.cursor)}if(b.opacity){if(this.helper= ..css("opacity"))this._storedOpacity=3Dthis.helper.css("opacity");this.hel= per.css("opacity",b.opacity)}if(b.zIndex){if(this.helper.css("zIndex"))th= is._storedZIndex=3Dthis.helper.css("zIndex");this.helper.css("zIndex",b.z= Index)}if(this.scrollParent[0]!=3Ddocument&&this.scrollParent[0].tagName!= =3D"HTML")this.overflowOffset=3Dthis.scrollParent.offset();this._trigger(= "start",=0A= a,this._uiHash());this._preserveHelperProportions||this._cacheHelperPropo= rtions();if(!c)for(c=3Dthis.containers.length-1;c>=3D0;c-- )this.container= s[c]._trigger("activate",a,e._uiHash(this));if(d.ui.ddmanager)d.ui.ddmana= ger.current=3Dthis;d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepa= reOffsets(this,a);this.dragging=3Dtrue;this.helper.addClass("ui-sortable-= helper");this._mouseDrag(a);return = true},_mouseDrag:function(a){this.position=3Dthis._generatePosition(a);th= is.positionAbs=3Dthis._convertPositionTo("absolute");=0A= if(!this.lastPositionAbs)this.lastPositionAbs=3Dthis.positionAbs;if(this.= options.scroll){var = b=3Dthis.options,c=3Dfalse;if(this.scrollParent[0]!=3Ddocument&&this.scro= llParent[0].tagName!=3D"HTML"){if(this.overflowOffset.top+this.scrollPare= nt[0].offsetHeight-a.pageY<b.scrollSensitivity)this.scrollParent[0].scrol= lTop=3Dc=3Dthis.scrollParent[0].scrollTop+b.scrollSpeed;else = if(a.pageY-this.overflowOffset.top<b.scrollSensitivity)this.scrollParent[= 0].scrollTop=3Dc=3Dthis.scrollParent[0].scrollTop-b.scrollSpeed;if(this.o= verflowOffset.left+=0A= this.scrollParent[0].offsetWidth-a.pageX<b.scrollSensitivity)this.scrollP= arent[0].scrollLeft=3Dc=3Dthis.scrollParent[0].scrollLeft+b.scrollSpeed;e= lse = if(a.pageX-this.overflowOffset.left<b.scrollSensitivity)this.scrollParent= [0].scrollLeft=3Dc=3Dthis.scrollParent[0].scrollLeft-b.scrollSpeed}else{i= f(a.pageY-d(document).scrollTop()<b.scrollSensitivity)c=3Dd(document).scr= ollTop(d(document).scrollTop()-b.scrollSpeed);else = if(d(window).height()-(a.pageY-d(document).scrollTop())<b.scrollSensitivi= ty)c=3Dd(document).scrollTop(d(document).scrollTop()+=0A= b.scrollSpeed);if(a.pageX-d(document).scrollLeft()<b.scrollSensitivity)c=3D= d(document).scrollLeft(d(document).scrollLeft()-b.scrollSpeed);else = if(d(window).width()-(a.pageX-d(document).scrollLeft())<b.scrollSensitivi= ty)c=3Dd(document).scrollLeft(d(document).scrollLeft()+b.scrollSpeed)}c!=3D= =3Dfalse&&d.ui.ddmanager&&!b.dropBehaviour&&d.ui.ddmanager.prepareOffsets= (this,a)}this.positionAbs=3Dthis._convertPositionTo("absolute");if(!this.= options.axis||this.options.axis!=3D"y")this.helper[0].style.left=3Dthis.p= osition.left+=0A= "px";if(!this.options.axis||this.options.axis!=3D"x")this.helper[0].style= ..top=3Dthis.position.top+"px";for(b=3Dthis.items.length-1;b>=3D0;b-- ){c=3D= this.items[b];var = e=3Dc.item[0],f=3Dthis._intersectsWithPointer(c);if(f)if(e!=3Dthis.curren= tItem[0]&&this.placeholder[f=3D=3D1?"next":"prev"]()[0]!=3De&&!d.ui.conta= ins(this.placeholder[0],e)&&(this.options.type=3D=3D"semi-dynamic"?!d.ui.= contains(this.element[0],e):true)){this.direction=3Df=3D=3D1?"down":"up";= if(this.options.tolerance=3D=3D"pointer"||this._intersectsWithSides(c))th= is._rearrange(a,=0A= c);else = break;this._trigger("change",a,this._uiHash());break}}this._contactContai= ners(a);d.ui.ddmanager&&d.ui.ddmanager.drag(this,a);this._trigger("sort",= a,this._uiHash());this.lastPositionAbs=3Dthis.positionAbs;return = false},_mouseStop:function(a,b){if(a){d.ui.ddmanager&&!this.options.dropB= ehaviour&&d.ui.ddmanager.drop(this,a);if(this.options.revert){var = c=3Dthis;b=3Dc.placeholder.offset();c.reverting=3Dtrue;d(this.helper).ani= mate({left:b.left-this.offset.parent.left-c.margins.left+(this.offsetPare= nt[0]=3D=3D=0A= document.body?0:this.offsetParent[0].scrollLeft),top:b.top-this.offset.pa= rent.top-c.margins.top+(this.offsetParent[0]=3D=3Ddocument.body?0:this.of= fsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(= ){c._clear(a)})}else this._clear(a,b);return = false}},cancel:function(){var = a=3Dthis;if(this.dragging){this._mouseUp();this.options.helper=3D=3D"orig= inal"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-help= er"):this.currentItem.show();for(var = b=3Dthis.containers.length-1;b>=3D0;b-- ){this.containers[b]._trigger("dea= ctivate",=0A= null,a._uiHash(this));if(this.containers[b].containerCache.over){this.con= tainers[b]._trigger("out",null,a._uiHash(this));this.containers[b].contai= nerCache.over=3D0}}}this.placeholder[0].parentNode&&this.placeholder[0].p= arentNode.removeChild(this.placeholder[0]);this.options.helper!=3D"origin= al"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();d.exten= d(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});th= is.domPosition.prev?d(this.domPosition.prev).after(this.currentItem):=0A= d(this.domPosition.parent).prepend(this.currentItem);return = this},serialize:function(a){var = b=3Dthis._getItemsAsjQuery(a&&a.connected),c=3D[];a=3Da||{};d(b).each(fun= ction(){var = e=3D(d(a.item||this).attr(a.attribute||"id")||"").match(a.expression||/(.= +)[-=3D_](.+)/);if(e)c.push((a.key||e[1]+"[]")+"=3D"+(a.key&&a.expression= ?e[1]:e[2]))});return c.join("&")},toArray:function(a){var = b=3Dthis._getItemsAsjQuery(a&&a.connected),c=3D[];a=3Da||{};b.each(functi= on(){c.push(d(a.item||this).attr(a.attribute||"id")||"")});return c},=0A= _intersectsWith:function(a){var = b=3Dthis.positionAbs.left,c=3Db+this.helperProportions.width,e=3Dthis.pos= itionAbs.top,f=3De+this.helperProportions.height,g=3Da.left,h=3Dg+a.width= ,i=3Da.top,k=3Di+a.height,j=3Dthis.offset.click.top,l=3Dthis.offset.click= ..left;j=3De+j>i&&e+j<k&&b+l>g&&b+l<h;return = this.options.tolerance=3D=3D"pointer"||this.options.forcePointerForContai= ners||this.options.tolerance!=3D"pointer"&&this.helperProportions[this.fl= oating?"width":"height"]>a[this.floating?"width":"height"]?j:g<b+this.hel= perProportions.width/=0A= 2&&c-this.helperProportions.width/2<h&&i<e+this.helperProportions.height/= 2&&f-this.helperProportions.height/2<k},_intersectsWithPointer:function(a= ){var = b=3Dd.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top,a.he= ight);a=3Dd.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,a.= left,a.width);b=3Db&&a;a=3Dthis._getDragVerticalDirection();var = c=3Dthis._getDragHorizontalDirection();if(!b)return false;return = this.floating?c&&c=3D=3D"right"||a=3D=3D"down"?2:1:a&&(a=3D=3D"down"?2:1)= },_intersectsWithSides:function(a){var b=3D=0A= d.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,a.top+a.height= /2,a.height);a=3Dd.ui.isOverAxis(this.positionAbs.left+this.offset.click.= left,a.left+a.width/2,a.width);var = c=3Dthis._getDragVerticalDirection(),e=3Dthis._getDragHorizontalDirection= ();return = this.floating&&e?e=3D=3D"right"&&a||e=3D=3D"left"&&!a:c&&(c=3D=3D"down"&&= b||c=3D=3D"up"&&!b)},_getDragVerticalDirection:function(){var = a=3Dthis.positionAbs.top-this.lastPositionAbs.top;return = a!=3D0&&(a>0?"down":"up")},_getDragHorizontalDirection:function(){var a=3D=0A= this.positionAbs.left-this.lastPositionAbs.left;return = a!=3D0&&(a>0?"right":"left")},refresh:function(a){this._refreshItems(a);t= his.refreshPositions();return this},_connectWith:function(){var = a=3Dthis.options;return = a.connectWith.constructor=3D=3DString?[a.connectWith]:a.connectWith},_get= ItemsAsjQuery:function(a){var = b=3D[],c=3D[],e=3Dthis._connectWith();if(e&&a)for(a=3De.length-1;a>=3D0;a= -- )for(var f=3Dd(e[a]),g=3Df.length-1;g>=3D0;g-- ){var = h=3Dd.data(f[g],"sortable");if(h&&h!=3Dthis&&!h.options.disabled)c.push([= d.isFunction(h.options.items)?=0A= h.options.items.call(h.element):d(h.options.items,h.element).not(".ui-sor= table-helper").not(".ui-sortable-placeholder"),h])}c.push([d.isFunction(t= his.options.items)?this.options.items.call(this.element,null,{options:thi= s.options,item:this.currentItem}):d(this.options.items,this.element).not(= ".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(a=3Dc.l= ength-1;a>=3D0;a-- )c[a][0].each(function(){b.push(this)});return = d(b)},_removeCurrentsFromItems:function(){for(var = a=3Dthis.currentItem.find(":data(sortable-item)"),=0A= b=3D0;b<this.items.length;b++)for(var = c=3D0;c<a.length;c++)a[c]=3D=3Dthis.items[b].item[0]&&this.items.splice(b= ,1)},_refreshItems:function(a){this.items=3D[];this.containers=3D[this];v= ar = b=3Dthis.items,c=3D[[d.isFunction(this.options.items)?this.options.items.= call(this.element[0],a,{item:this.currentItem}):d(this.options.items,this= ..element),this]],e=3Dthis._connectWith();if(e)for(var = f=3De.length-1;f>=3D0;f-- )for(var = g=3Dd(e[f]),h=3Dg.length-1;h>=3D0;h-- ){var = i=3Dd.data(g[h],"sortable");if(i&&i!=3Dthis&&!i.options.disabled){c.push(= [d.isFunction(i.options.items)?=0A= i.options.items.call(i.element[0],a,{item:this.currentItem}):d(i.options.= items,i.element),i]);this.containers.push(i)}}for(f=3Dc.length-1;f>=3D0;f= -- ){a=3Dc[f][1];e=3Dc[f][0];h=3D0;for(g=3De.length;h<g;h++){i=3Dd(e[h]);i= ..data("sortable-item",a);b.push({item:i,instance:a,width:0,height:0,left:= 0,top:0})}}},refreshPositions:function(a){if(this.offsetParent&&this.help= er)this.offset.parent=3Dthis._getParentOffset();for(var = b=3Dthis.items.length-1;b>=3D0;b-- ){var = c=3Dthis.items[b],e=3Dthis.options.toleranceElement?d(this.options.tolera= nceElement,=0A= c.item):c.item;if(!a){c.width=3De.outerWidth();c.height=3De.outerHeight()= }e=3De.offset();c.left=3De.left;c.top=3De.top}if(this.options.custom&&thi= s.options.custom.refreshContainers)this.options.custom.refreshContainers.= call(this);else = for(b=3Dthis.containers.length-1;b>=3D0;b-- ){e=3Dthis.containers[b].eleme= nt.offset();this.containers[b].containerCache.left=3De.left;this.containe= rs[b].containerCache.top=3De.top;this.containers[b].containerCache.width=3D= this.containers[b].element.outerWidth();this.containers[b].containerCache= ..height=3D=0A= this.containers[b].element.outerHeight()}return = this},_createPlaceholder:function(a){var = b=3Da||this,c=3Db.options;if(!c.placeholder||c.placeholder.constructor=3D= =3DString){var e=3Dc.placeholder;c.placeholder=3D{element:function(){var = f=3Dd(document.createElement(b.currentItem[0].nodeName)).addClass(e||b.cu= rrentItem[0].className+" = ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!e)f.st= yle.visibility=3D"hidden";return = f},update:function(f,g){if(!(e&&!c.forcePlaceholderSize)){g.height()||g.h= eight(b.currentItem.innerHeight()-=0A= parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.cs= s("paddingBottom")||0,10));g.width()||g.width(b.currentItem.innerWidth()-= parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.c= ss("paddingRight")||0,10))}}}}b.placeholder=3Dd(c.placeholder.element.cal= l(b.element,b.currentItem));b.currentItem.after(b.placeholder);c.placehol= der.update(b,b.placeholder)},_contactContainers:function(a){for(var = b=3Dnull,c=3Dnull,e=3Dthis.containers.length-1;e>=3D0;e-- )if(!d.ui.contai= ns(this.currentItem[0],=0A= this.containers[e].element[0]))if(this._intersectsWith(this.containers[e]= ..containerCache)){if(!(b&&d.ui.contains(this.containers[e].element[0],b.e= lement[0]))){b=3Dthis.containers[e];c=3De}}else = if(this.containers[e].containerCache.over){this.containers[e]._trigger("o= ut",a,this._uiHash(this));this.containers[e].containerCache.over=3D0}if(b= )if(this.containers.length=3D=3D=3D1){this.containers[c]._trigger("over",= a,this._uiHash(this));this.containers[c].containerCache.over=3D1}else = if(this.currentContainer!=3Dthis.containers[c]){b=3D=0A= 1E4;e=3Dnull;for(var = f=3Dthis.positionAbs[this.containers[c].floating?"left":"top"],g=3Dthis.i= tems.length-1;g>=3D0;g-- )if(d.ui.contains(this.containers[c].element[0],t= his.items[g].item[0])){var = h=3Dthis.items[g][this.containers[c].floating?"left":"top"];if(Math.abs(h= -f)<b){b=3DMath.abs(h-f);e=3Dthis.items[g]}}if(e||this.options.dropOnEmpt= y){this.currentContainer=3Dthis.containers[c];e?this._rearrange(a,e,null,= true):this._rearrange(a,null,this.containers[c].element,true);this._trigg= er("change",a,this._uiHash());this.containers[c]._trigger("change",=0A= a,this._uiHash(this));this.options.placeholder.update(this.currentContain= er,this.placeholder);this.containers[c]._trigger("over",a,this._uiHash(th= is));this.containers[c].containerCache.over=3D1}}},_createHelper:function= (a){var = b=3Dthis.options;a=3Dd.isFunction(b.helper)?d(b.helper.apply(this.element= [0],[a,this.currentItem])):b.helper=3D=3D"clone"?this.currentItem.clone()= :this.currentItem;a.parents("body").length||d(b.appendTo!=3D"parent"?b.ap= pendTo:this.currentItem[0].parentNode)[0].appendChild(a[0]);if(a[0]=3D=3D=0A= this.currentItem[0])this._storedCSS=3D{width:this.currentItem[0].style.wi= dth,height:this.currentItem[0].style.height,position:this.currentItem.css= ("position"),top:this.currentItem.css("top"),left:this.currentItem.css("l= eft")};if(a[0].style.width=3D=3D""||b.forceHelperSize)a.width(this.curren= tItem.width());if(a[0].style.height=3D=3D""||b.forceHelperSize)a.height(t= his.currentItem.height());return = a},_adjustOffsetFromHelper:function(a){if(typeof = a=3D=3D"string")a=3Da.split(" = ");if(d.isArray(a))a=3D{left:+a[0],top:+a[1]||=0A= 0};if("left"in = a)this.offset.click.left=3Da.left+this.margins.left;if("right"in = a)this.offset.click.left=3Dthis.helperProportions.width-a.right+this.marg= ins.left;if("top"in = a)this.offset.click.top=3Da.top+this.margins.top;if("bottom"in = a)this.offset.click.top=3Dthis.helperProportions.height-a.bottom+this.mar= gins.top},_getParentOffset:function(){this.offsetParent=3Dthis.helper.off= setParent();var = a=3Dthis.offsetParent.offset();if(this.cssPosition=3D=3D"absolute"&&this.= scrollParent[0]!=3Ddocument&&d.ui.contains(this.scrollParent[0],=0A= this.offsetParent[0])){a.left+=3Dthis.scrollParent.scrollLeft();a.top+=3D= this.scrollParent.scrollTop()}if(this.offsetParent[0]=3D=3Ddocument.body|= |this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()= =3D=3D"html"&&d.browser.msie)a=3D{top:0,left:0};return{top:a.top+(parseIn= t(this.offsetParent.css("borderTopWidth"),10)||0),left:a.left+(parseInt(t= his.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:func= tion(){if(this.cssPosition=3D=3D"relative"){var = a=3Dthis.currentItem.position();return{top:a.top-=0A= (parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),le= ft:a.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scr= ollLeft()}}else = return{top:0,left:0}},_cacheMargins:function(){this.margins=3D{left:parse= Int(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentIt= em.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.help= erProportions=3D{width:this.helper.outerWidth(),height:this.helper.outerH= eight()}},_setContainment:function(){var a=3Dthis.options;=0A= if(a.containment=3D=3D"parent")a.containment=3Dthis.helper[0].parentNode;= if(a.containment=3D=3D"document"||a.containment=3D=3D"window")this.contai= nment=3D[0-this.offset.relative.left-this.offset.parent.left,0-this.offse= t.relative.top-this.offset.parent.top,d(a.containment=3D=3D"document"?doc= ument:window).width()-this.helperProportions.width-this.margins.left,(d(a= ..containment=3D=3D"document"?document:window).height()||document.body.par= entNode.scrollHeight)-this.helperProportions.height-this.margins.top];if(= !/^(document|window|parent)$/.test(a.containment)){var b=3D=0A= d(a.containment)[0];a=3Dd(a.containment).offset();var = c=3Dd(b).css("overflow")!=3D"hidden";this.containment=3D[a.left+(parseInt= (d(b).css("borderLeftWidth"),10)||0)+(parseInt(d(b).css("paddingLeft"),10= )||0)-this.margins.left,a.top+(parseInt(d(b).css("borderTopWidth"),10)||0= )+(parseInt(d(b).css("paddingTop"),10)||0)-this.margins.top,a.left+(c?Mat= h.max(b.scrollWidth,b.offsetWidth):b.offsetWidth)-(parseInt(d(b).css("bor= derLeftWidth"),10)||0)-(parseInt(d(b).css("paddingRight"),10)||0)-this.he= lperProportions.width-=0A= this.margins.left,a.top+(c?Math.max(b.scrollHeight,b.offsetHeight):b.offs= etHeight)-(parseInt(d(b).css("borderTopWidth"),10)||0)-(parseInt(d(b).css= ("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]= }},_convertPositionTo:function(a,b){if(!b)b=3Dthis.position;a=3Da=3D=3D"a= bsolute"?1:-1;var = c=3Dthis.cssPosition=3D=3D"absolute"&&!(this.scrollParent[0]!=3Ddocument&= &d.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetPar= ent:this.scrollParent,e=3D/(html|body)/i.test(c[0].tagName);return{top:b.= top+=0A= this.offset.relative.top*a+this.offset.parent.top*a-(d.browser.safari&&th= is.cssPosition=3D=3D"fixed"?0:(this.cssPosition=3D=3D"fixed"?-this.scroll= Parent.scrollTop():e?0:c.scrollTop())*a),left:b.left+this.offset.relative= ..left*a+this.offset.parent.left*a-(d.browser.safari&&this.cssPosition=3D=3D= "fixed"?0:(this.cssPosition=3D=3D"fixed"?-this.scrollParent.scrollLeft():= e?0:c.scrollLeft())*a)}},_generatePosition:function(a){var = b=3Dthis.options,c=3Dthis.cssPosition=3D=3D"absolute"&&!(this.scrollParen= t[0]!=3Ddocument&&d.ui.contains(this.scrollParent[0],=0A= this.offsetParent[0]))?this.offsetParent:this.scrollParent,e=3D/(html|bod= y)/i.test(c[0].tagName);if(this.cssPosition=3D=3D"relative"&&!(this.scrol= lParent[0]!=3Ddocument&&this.scrollParent[0]!=3Dthis.offsetParent[0]))thi= s.offset.relative=3Dthis._getRelativeOffset();var = f=3Da.pageX,g=3Da.pageY;if(this.originalPosition){if(this.containment){if= (a.pageX-this.offset.click.left<this.containment[0])f=3Dthis.containment[= 0]+this.offset.click.left;if(a.pageY-this.offset.click.top<this.containme= nt[1])g=3Dthis.containment[1]+this.offset.click.top;=0A= if(a.pageX-this.offset.click.left>this.containment[2])f=3Dthis.containmen= t[2]+this.offset.click.left;if(a.pageY-this.offset.click.top>this.contain= ment[3])g=3Dthis.containment[3]+this.offset.click.top}if(b.grid){g=3Dthis= ..originalPageY+Math.round((g-this.originalPageY)/b.grid[1])*b.grid[1];g=3D= this.containment?!(g-this.offset.click.top<this.containment[1]||g-this.of= fset.click.top>this.containment[3])?g:!(g-this.offset.click.top<this.cont= ainment[1])?g-b.grid[1]:g+b.grid[1]:g;f=3Dthis.originalPageX+Math.round((= f-=0A= this.originalPageX)/b.grid[0])*b.grid[0];f=3Dthis.containment?!(f-this.of= fset.click.left<this.containment[0]||f-this.offset.click.left>this.contai= nment[2])?f:!(f-this.offset.click.left<this.containment[0])?f-b.grid[0]:f= +b.grid[0]:f}}return{top:g-this.offset.click.top-this.offset.relative.top= -this.offset.parent.top+(d.browser.safari&&this.cssPosition=3D=3D"fixed"?= 0:this.cssPosition=3D=3D"fixed"?-this.scrollParent.scrollTop():e?0:c.scro= llTop()),left:f-this.offset.click.left-this.offset.relative.left-this.off= set.parent.left+=0A= (d.browser.safari&&this.cssPosition=3D=3D"fixed"?0:this.cssPosition=3D=3D= "fixed"?-this.scrollParent.scrollLeft():e?0:c.scrollLeft())}},_rearrange:= function(a,b,c,e){c?c[0].appendChild(this.placeholder[0]):b.item[0].paren= tNode.insertBefore(this.placeholder[0],this.direction=3D=3D"down"?b.item[= 0]:b.item[0].nextSibling);this.counter=3Dthis.counter?++this.counter:1;va= r = f=3Dthis,g=3Dthis.counter;window.setTimeout(function(){g=3D=3Df.counter&&= f.refreshPositions(!e)},0)},_clear:function(a,b){this.reverting=3Dfalse;v= ar c=3D[];!this._noFinalSort&&=0A= this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem)= ;this._noFinalSort=3Dnull;if(this.helper[0]=3D=3Dthis.currentItem[0]){for= (var e in = this._storedCSS)if(this._storedCSS[e]=3D=3D"auto"||this._storedCSS[e]=3D=3D= "static")this._storedCSS[e]=3D"";this.currentItem.css(this._storedCSS).re= moveClass("ui-sortable-helper")}else = this.currentItem.show();this.fromOutside&&!b&&c.push(function(f){this._tr= igger("receive",f,this._uiHash(this.fromOutside))});if((this.fromOutside|= |this.domPosition.prev!=3Dthis.currentItem.prev().not(".ui-sortable-helpe= r")[0]||=0A= this.domPosition.parent!=3Dthis.currentItem.parent()[0])&&!b)c.push(funct= ion(f){this._trigger("update",f,this._uiHash())});if(!d.ui.contains(this.= element[0],this.currentItem[0])){b||c.push(function(f){this._trigger("rem= ove",f,this._uiHash())});for(e=3Dthis.containers.length-1;e>=3D0;e-- )if(d= ..ui.contains(this.containers[e].element[0],this.currentItem[0])&&!b){c.pu= sh(function(f){return = function(g){f._trigger("receive",g,this._uiHash(this))}}.call(this,this.c= ontainers[e]));c.push(function(f){return function(g){f._trigger("update",=0A= g,this._uiHash(this))}}.call(this,this.containers[e]))}}for(e=3Dthis.cont= ainers.length-1;e>=3D0;e-- ){b||c.push(function(f){return = function(g){f._trigger("deactivate",g,this._uiHash(this))}}.call(this,thi= s.containers[e]));if(this.containers[e].containerCache.over){c.push(funct= ion(f){return = function(g){f._trigger("out",g,this._uiHash(this))}}.call(this,this.conta= iners[e]));this.containers[e].containerCache.over=3D0}}this._storedCursor= &&d("body").css("cursor",this._storedCursor);this._storedOpacity&&this.he= lper.css("opacity",=0A= this._storedOpacity);if(this._storedZIndex)this.helper.css("zIndex",this.= _storedZIndex=3D=3D"auto"?"":this._storedZIndex);this.dragging=3Dfalse;if= (this.cancelHelperRemoval){if(!b){this._trigger("beforeStop",a,this._uiHa= sh());for(e=3D0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,t= his._uiHash())}return = false}b||this._trigger("beforeStop",a,this._uiHash());this.placeholder[0]= ..parentNode.removeChild(this.placeholder[0]);this.helper[0]!=3Dthis.curre= ntItem[0]&&this.helper.remove();this.helper=3Dnull;if(!b){for(e=3D=0A= 0;e<c.length;e++)c[e].call(this,a);this._trigger("stop",a,this._uiHash())= }this.fromOutside=3Dfalse;return = true},_trigger:function(){d.Widget.prototype._trigger.apply(this,argument= s)=3D=3D=3Dfalse&&this.cancel()},_uiHash:function(a){var = b=3Da||this;return{helper:b.helper,placeholder:b.placeholder||d([]),posit= ion:b.position,originalPosition:b.originalPosition,offset:b.positionAbs,i= tem:b.currentItem,sender:a?a.element:null}}});d.extend(d.ui.sortable,{ver= sion:"1.8.2"})})(jQuery);=0A= jQuery.effects||function(f){function k(c){var = a;if(c&&c.constructor=3D=3DArray&&c.length=3D=3D3)return = c;if(a=3D/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)= /.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];i= f(a=3D/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\= s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,pars= eFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=3D/#([a-fA-F0-9]{2})([a-fA-= F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],=0A= 16),parseInt(a[2],16),parseInt(a[3],16)];if(a=3D/#([a-fA-F0-9])([a-fA-F0-= 9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2= ],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return = l.transparent;return l[f.trim(c).toLowerCase()]}function q(c,a){var = b;do{b=3Df.curCSS(c,a);if(b!=3D""&&b!=3D"transparent"||f.nodeName(c,"body= "))break;a=3D"backgroundColor"}while(c=3Dc.parentNode);return = k(b)}function m(){var = c=3Ddocument.defaultView?document.defaultView.getComputedStyle(this,null)= :this.currentStyle,=0A= a=3D{},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var = e=3Dc.length;e-- ;){b=3Dc[e];if(typeof = c[b]=3D=3D"string"){d=3Db.replace(/\-(\w)/g,function(g,h){return = h.toUpperCase()});a[d]=3Dc[b]}}else for(b in c)if(typeof = c[b]=3D=3D=3D"string")a[b]=3Dc[b];return a}function n(c){var a,b;for(a = in c){b=3Dc[a];if(b=3D=3Dnull||f.isFunction(b)||a in = r||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete = c[a]}return c}function s(c,a){var b=3D{_:0},d;for(d in = a)if(c[d]!=3Da[d])b[d]=3Da[d];return b}function j(c,a,b,d){if(typeof = c=3D=3D"object"){d=3D=0A= a;b=3Dnull;a=3Dc;c=3Da.effect}if(f.isFunction(a)){d=3Da;b=3Dnull;a=3D{}}i= f(f.isFunction(b)){d=3Db;b=3Dnull}if(typeof = a=3D=3D"number"||f.fx.speeds[a]){d=3Db;b=3Da;a=3D{}}a=3Da||{};b=3Db||a.du= ration;b=3Df.fx.off?0:typeof = b=3D=3D"number"?b:f.fx.speeds[b]||f.fx.speeds._default;d=3Dd||a.complete;= return[c,a,b,d]}f.effects=3D{};f.each(["backgroundColor","borderBottomCol= or","borderLeftColor","borderRightColor","borderTopColor","color","outlin= eColor"],function(c,a){f.fx.step[a]=3Dfunction(b){if(!b.colorInit){b.star= t=3Dq(b.elem,a);b.end=3Dk(b.end);b.colorInit=3D=0A= true}b.elem.style[a]=3D"rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-= b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(= b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseIn= t(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var = l=3D{aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,= 0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],d= arkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:= [189,=0A= 183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[2= 55,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,1= 22],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,= 128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],ligh= tcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],ligh= tpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255= ,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,=0A= 165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,= 0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transpar= ent:[255,255,255]},o=3D["add","remove","toggle"],r=3D{border:1,borderBott= om:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,m= argin:1,padding:1};f.effects.animateClass=3Dfunction(c,a,b,d){if(f.isFunc= tion(b)){d=3Db;b=3Dnull}return this.each(function(){var = e=3Df(this),g=3De.attr("style")||" = ",h=3Dn(m.call(this)),p,t=3De.attr("className");f.each(o,function(u,=0A= i){c[i]&&e[i+"Class"](c[i])});p=3Dn(m.call(this));e.attr("className",t);e= ..animate(s(h,p),a,b,function(){f.each(o,function(u,i){c[i]&&e[i+"Class"](= c[i])});if(typeof = e.attr("style")=3D=3D"object"){e.attr("style").cssText=3D"";e.attr("style= ").cssText=3Dg}else = e.attr("style",g);d&&d.apply(this,arguments)})})};f.fn.extend({_addClass:= f.fn.addClass,addClass:function(c,a,b,d){return = a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_= removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?=0A= f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c= )},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return = typeof = a=3D=3D"boolean"||a=3D=3D=3Dundefined?b?f.effects.animateClass.apply(this= ,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateCl= ass.apply(this,[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){retur= n = f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f= ..effects,{version:"1.8.2",save:function(c,a){for(var = b=3D0;b<a.length;b++)a[b]!=3D=3D=0A= null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){= for(var = b=3D0;b<a.length;b++)a[b]!=3D=3Dnull&&c.css(a[b],c.data("ec.storage."+a[b= ]))},setMode:function(c,a){if(a=3D=3D"toggle")a=3Dc.is(":hidden")?"show":= "hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case = "top":b=3D0;break;case "middle":b=3D0.5;break;case = "bottom":b=3D1;break;default:b=3Dc[0]/a.height}switch(c[1]){case = "left":c=3D0;break;case "center":c=3D0.5;break;case = "right":c=3D1;break;default:c=3Dc[1]/a.width}return{x:c,y:b}},createWrapp= er:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();=0A= var = a=3D{width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("f= loat")},b=3Df("<div></div>").addClass("ui-effects-wrapper").css({fontSize= :"100%",background:"transparent",border:"none",margin:0,padding:0});c.wra= p(b);b=3Dc.parent();if(c.css("position")=3D=3D"static"){b.css({position:"= relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css(= "position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","righ= t"],function(d,e){a[e]=3Dc.css(e);if(isNaN(parseInt(a[e],10)))a[e]=3D"aut= o"});=0A= c.css({position:"relative",top:0,left:0})}return = b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-= wrapper"))return c.parent().replaceWith(c);return = c},setTransition:function(c,a,b,d){d=3Dd||{};f.each(a,function(e,g){unit=3D= c.cssUnit(g);if(unit[0]>0)d[g]=3Dunit[0]*b+unit[1]});return = d}});f.fn.extend({effect:function(c){var = a=3Dj.apply(this,arguments);a=3D{options:a[1],duration:a[2],callback:a[3]= };var b=3Df.effects[c];return = b&&!f.fx.off?b.call(this,a):this},_show:f.fn.show,show:function(c){if(!c|= |=0A= typeof c=3D=3D"number"||f.fx.speeds[c])return = this._show.apply(this,arguments);else{var = a=3Dj.apply(this,arguments);a[1].mode=3D"show";return = this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(!c||typeo= f c=3D=3D"number"||f.fx.speeds[c])return = this._hide.apply(this,arguments);else{var = a=3Dj.apply(this,arguments);a[1].mode=3D"hide";return = this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(!c= ||typeof c=3D=3D"number"||f.fx.speeds[c]||typeof = c=3D=3D"boolean"||f.isFunction(c))return this.__toggle.apply(this,=0A= arguments);else{var = a=3Dj.apply(this,arguments);a[1].mode=3D"toggle";return = this.effect.apply(this,a)}},cssUnit:function(c){var = a=3Dthis.css(c),b=3D[];f.each(["em","px","%","pt"],function(d,e){if(a.ind= exOf(e)>0)b=3D[parseFloat(a),e]});return = b}});f.easing.jswing=3Df.easing.swing;f.extend(f.easing,{def:"easeOutQuad= ",swing:function(c,a,b,d,e){return = f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return = d*(a/=3De)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=3De)*(a-2)+b= },easeInOutQuad:function(c,=0A= a,b,d,e){if((a/=3De/2)<1)return = d/2*a*a+b;return-d/2*(-- a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){ret= urn d*(a/=3De)*a*a+b},easeOutCubic:function(c,a,b,d,e){return = d*((a=3Da/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=3De/2)= <1)return d/2*a*a*a+b;return = d/2*((a-=3D2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return = d*(a/=3De)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=3Da/e-1= )*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=3De/2)<1)return = d/2*a*a*a*a+b;return-d/2*((a-=3D2)*a*a*a-2)+=0A= b},easeInQuint:function(c,a,b,d,e){return = d*(a/=3De)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return = d*((a=3Da/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=3D= e/2)<1)return d/2*a*a*a*a*a+b;return = d/2*((a-=3D2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.= cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return = d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d= /2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return = a=3D=3D0?b:d*Math.pow(2,=0A= 10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return = a=3D=3De?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d= ,e){if(a=3D=3D0)return b;if(a=3D=3De)return b+d;if((a/=3De/2)<1)return = d/2*Math.pow(2,10*(a-1))+b;return = d/2*(-Math.pow(2,-10*-- a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(= Math.sqrt(1-(a/=3De)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return = d*Math.sqrt(1-(a=3Da/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=3D= e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return = d/2*(Math.sqrt(1-(a-=3D2)*=0A= a)+1)+b},easeInElastic:function(c,a,b,d,e){c=3D1.70158;var = g=3D0,h=3Dd;if(a=3D=3D0)return b;if((a/=3De)=3D=3D1)return = b+d;g||(g=3De*0.3);if(h<Math.abs(d)){h=3Dd;c=3Dg/4}else = c=3Dg/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(a-=3D1))*Math.s= in((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=3D1.7015= 8;var g=3D0,h=3Dd;if(a=3D=3D0)return b;if((a/=3De)=3D=3D1)return = b+d;g||(g=3De*0.3);if(h<Math.abs(d)){h=3Dd;c=3Dg/4}else = c=3Dg/(2*Math.PI)*Math.asin(d/h);return = h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:f= unction(c,=0A= a,b,d,e){c=3D1.70158;var g=3D0,h=3Dd;if(a=3D=3D0)return = b;if((a/=3De/2)=3D=3D2)return = b+d;g||(g=3De*0.3*1.5);if(h<Math.abs(d)){h=3Dd;c=3Dg/4}else = c=3Dg/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*h*Math.pow(2,10*(a-=3D= 1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return = h*Math.pow(2,-10*(a-=3D1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInB= ack:function(c,a,b,d,e,g){if(g=3D=3Dundefined)g=3D1.70158;return = d*(a/=3De)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g=3D=3Du= ndefined)g=3D1.70158;return = d*((a=3Da/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,=0A= a,b,d,e,g){if(g=3D=3Dundefined)g=3D1.70158;if((a/=3De/2)<1)return = d/2*a*a*(((g*=3D1.525)+1)*a-g)+b;return = d/2*((a-=3D2)*a*(((g*=3D1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,= d,e){return = d-f.easing.easeOutBounce(c,e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e= ){return(a/=3De)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=3D1.5/2.75)= *a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=3D2.25/2.75)*a+0.9375)+b:d*(7.5625*(a= -=3D2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e= /2)return f.easing.easeInBounce(c,a*2,0,=0A= d,e)*0.5+b;return = f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);=0A= (function(b){b.effects.blind=3Dfunction(c){return = this.queue(function(){var = a=3Db(this),g=3D["position","top","left"],f=3Db.effects.setMode(a,c.optio= ns.mode||"hide"),d=3Dc.options.direction||"vertical";b.effects.save(a,g);= a.show();var = e=3Db.effects.createWrapper(a).css({overflow:"hidden"}),h=3Dd=3D=3D"verti= cal"?"height":"width";d=3Dd=3D=3D"vertical"?e.height():e.width();f=3D=3D"= show"&&e.css(h,0);var = i=3D{};i[h]=3Df=3D=3D"show"?d:0;e.animate(i,c.duration,c.options.easing,f= unction(){f=3D=3D"hide"&&a.hide();b.effects.restore(a,g);b.effects.remove= Wrapper(a);=0A= c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);=0A= (function(e){e.effects.bounce=3Dfunction(b){return = this.queue(function(){var = a=3De(this),l=3D["position","top","left"],h=3De.effects.setMode(a,b.optio= ns.mode||"effect"),d=3Db.options.direction||"up",c=3Db.options.distance||= 20,m=3Db.options.times||5,i=3Db.duration||250;/show|hide/.test(h)&&l.push= ("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var = f=3Dd=3D=3D"up"||d=3D=3D"down"?"top":"left";d=3Dd=3D=3D"up"||d=3D=3D"left= "?"pos":"neg";c=3Db.options.distance||(f=3D=3D"top"?a.outerHeight({margin= :true})/3:a.outerWidth({margin:true})/=0A= 3);if(h=3D=3D"show")a.css("opacity",0).css(f,d=3D=3D"pos"?-c:c);if(h=3D=3D= "hide")c/=3Dm*2;h!=3D"hide"&&m-- ;if(h=3D=3D"show"){var = g=3D{opacity:1};g[f]=3D(d=3D=3D"pos"?"+=3D":"-=3D")+c;a.animate(g,i/2,b.o= ptions.easing);c/=3D2;m-- }for(g=3D0;g<m;g++){var = j=3D{},k=3D{};j[f]=3D(d=3D=3D"pos"?"-=3D":"+=3D")+c;k[f]=3D(d=3D=3D"pos"?= "+=3D":"-=3D")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.option= s.easing);c=3Dh=3D=3D"hide"?c*2:c/2}if(h=3D=3D"hide"){g=3D{opacity:0};g[f= ]=3D(d=3D=3D"pos"?"-=3D":"+=3D")+c;a.animate(g,i/2,b.options.easing,funct= ion(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);=0A= b.callback&&b.callback.apply(this,arguments)})}else{j=3D{};k=3D{};j[f]=3D= (d=3D=3D"pos"?"-=3D":"+=3D")+c;k[f]=3D(d=3D=3D"pos"?"+=3D":"-=3D")+c;a.an= imate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e= ..effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.a= pply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()}= )}})(jQuery);=0A= (function(b){b.effects.clip=3Dfunction(e){return = this.queue(function(){var = a=3Db(this),i=3D["position","top","left","height","width"],f=3Db.effects.= setMode(a,e.options.mode||"hide"),c=3De.options.direction||"vertical";b.e= ffects.save(a,i);a.show();var = d=3Db.effects.createWrapper(a).css({overflow:"hidden"});d=3Da[0].tagName=3D= =3D"IMG"?d:a;var = g=3D{size:c=3D=3D"vertical"?"height":"width",position:c=3D=3D"vertical"?"= top":"left"};c=3Dc=3D=3D"vertical"?d.height():d.width();if(f=3D=3D"show")= {d.css(g.size,0);d.css(g.position,c/2)}var h=3D{};h[g.size]=3D=0A= f=3D=3D"show"?c:0;h[g.position]=3Df=3D=3D"show"?0:c/2;d.animate(h,{queue:= false,duration:e.duration,easing:e.options.easing,complete:function(){f=3D= =3D"hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.c= allback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);=0A= (function(c){c.effects.drop=3Dfunction(d){return = this.queue(function(){var = a=3Dc(this),h=3D["position","top","left","opacity"],e=3Dc.effects.setMode= (a,d.options.mode||"hide"),b=3Dd.options.direction||"left";c.effects.save= (a,h);a.show();c.effects.createWrapper(a);var = f=3Db=3D=3D"up"||b=3D=3D"down"?"top":"left";b=3Db=3D=3D"up"||b=3D=3D"left= "?"pos":"neg";var = g=3Dd.options.distance||(f=3D=3D"top"?a.outerHeight({margin:true})/2:a.ou= terWidth({margin:true})/2);if(e=3D=3D"show")a.css("opacity",0).css(f,b=3D= =3D"pos"?-g:g);var i=3D{opacity:e=3D=3D"show"?1:=0A= 0};i[f]=3D(e=3D=3D"show"?b=3D=3D"pos"?"+=3D":"-=3D":b=3D=3D"pos"?"-=3D":"= +=3D")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.ea= sing,complete:function(){e=3D=3D"hide"&&a.hide();c.effects.restore(a,h);c= ..effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.= dequeue()}})})}})(jQuery);=0A= (function(j){j.effects.explode=3Dfunction(a){return = this.queue(function(){var = c=3Da.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=3Da.opti= ons.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=3Da.o= ptions.mode=3D=3D"toggle"?j(this).is(":visible")?"hide":"show":a.options.= mode;var = b=3Dj(this).show().css("visibility","hidden"),g=3Db.offset();g.top-=3Dpar= seInt(b.css("marginTop"),10)||0;g.left-=3DparseInt(b.css("marginLeft"),10= )||0;for(var = h=3Db.outerWidth(true),i=3Db.outerHeight(true),e=3D0;e<c;e++)for(var f=3D=0A= 0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"a= bsolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addCl= ass("ui-effects-explode").css({position:"absolute",overflow:"hidden",widt= h:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=3D=3D"show"?(f-Math.= floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=3D=3D"show"?(e-Mat= h.floor(c/2))*(i/c):0),opacity:a.options.mode=3D=3D"show"?0:1}).animate({= left:g.left+f*(h/d)+(a.options.mode=3D=3D"show"?0:(f-Math.floor(d/2))*(h/= d)),top:g.top+=0A= e*(i/c)+(a.options.mode=3D=3D"show"?0:(e-Math.floor(c/2))*(i/c)),opacity:= a.options.mode=3D=3D"show"?1:0},a.duration||500);setTimeout(function(){a.= options.mode=3D=3D"show"?b.css({visibility:"visible"}):b.css({visibility:= "visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.= ui-effects-explode").remove()},a.duration||500)})}})(jQuery);=0A= (function(b){b.effects.fade=3Dfunction(a){return = this.queue(function(){var = c=3Db(this),d=3Db.effects.setMode(c,a.options.mode||"hide");c.animate({op= acity:d},{queue:false,duration:a.duration,easing:a.options.easing,complet= e:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})}= )}})(jQuery);=0A= (function(c){c.effects.fold=3Dfunction(a){return = this.queue(function(){var = b=3Dc(this),j=3D["position","top","left"],d=3Dc.effects.setMode(b,a.optio= ns.mode||"hide"),g=3Da.options.size||15,h=3D!!a.options.horizFirst,k=3Da.= duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show()= ;var = e=3Dc.effects.createWrapper(b).css({overflow:"hidden"}),f=3Dd=3D=3D"show"= !=3Dh,l=3Df?["width","height"]:["height","width"];f=3Df?[e.width(),e.heig= ht()]:[e.height(),e.width()];var = i=3D/([0-9]+)%/.exec(g);if(i)g=3DparseInt(i[1],10)/100*=0A= f[d=3D=3D"hide"?0:1];if(d=3D=3D"show")e.css(h?{height:0,width:g}:{height:= g,width:0});h=3D{};i=3D{};h[l[0]]=3Dd=3D=3D"show"?f[0]:g;i[l[1]]=3Dd=3D=3D= "show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easin= g,function(){d=3D=3D"hide"&&b.hide();c.effects.restore(b,j);c.effects.rem= oveWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})}= )}})(jQuery);=0A= (function(b){b.effects.highlight=3Dfunction(c){return = this.queue(function(){var = a=3Db(this),e=3D["backgroundImage","backgroundColor","opacity"],d=3Db.eff= ects.setMode(a,c.options.mode||"show"),f=3D{backgroundColor:a.css("backgr= oundColor")};if(d=3D=3D"hide")f.opacity=3D0;b.effects.save(a,e);a.show().= css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).= animate(f,{queue:false,duration:c.duration,easing:c.options.easing,comple= te:function(){d=3D=3D"hide"&&a.hide();b.effects.restore(a,e);d=3D=3D"show= "&&!b.support.opacity&&=0A= this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,ar= guments);a.dequeue()}})})}})(jQuery);=0A= (function(d){d.effects.pulsate=3Dfunction(a){return = this.queue(function(){var = b=3Dd(this),c=3Dd.effects.setMode(b,a.options.mode||"show");times=3D(a.op= tions.times||5)*2-1;duration=3Da.duration?a.duration/2:d.fx.speeds._defau= lt/2;isVisible=3Db.is(":visible");animateTo=3D0;if(!isVisible){b.css("opa= city",0).show();animateTo=3D1}if(c=3D=3D"hide"&&isVisible||c=3D=3D"show"&= &!isVisible)times-- ;for(c=3D0;c<times;c++){b.animate({opacity:animateTo},= duration,a.options.easing);animateTo=3D(animateTo+1)%2}b.animate({opacity= :animateTo},duration,=0A= a.options.easing,function(){animateTo=3D=3D0&&b.hide();a.callback&&a.call= back.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeu= e()})}})(jQuery);=0A= (function(c){c.effects.puff=3Dfunction(b){return = this.queue(function(){var = a=3Dc(this),e=3Dc.effects.setMode(a,b.options.mode||"hide"),g=3DparseInt(= b.options.percent,10)||150,h=3Dg/100,i=3D{height:a.height(),width:a.width= ()};c.extend(b.options,{fade:true,mode:e,percent:e=3D=3D"hide"?g:100,from= :e=3D=3D"hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b= ..options,b.duration,b.callback);a.dequeue()})};c.effects.scale=3Dfunction= (b){return this.queue(function(){var = a=3Dc(this),e=3Dc.extend(true,{},b.options),g=3Dc.effects.setMode(a,=0A= b.options.mode||"effect"),h=3DparseInt(b.options.percent,10)||(parseInt(b= ..options.percent,10)=3D=3D0?0:g=3D=3D"hide"?0:100),i=3Db.options.directio= n||"both",f=3Db.options.origin;if(g!=3D"effect"){e.origin=3Df||["middle",= "center"];e.restore=3Dtrue}f=3D{height:a.height(),width:a.width()};a.from= =3Db.options.from||(g=3D=3D"show"?{height:0,width:0}:f);h=3D{y:i!=3D"hori= zontal"?h/100:1,x:i!=3D"vertical"?h/100:1};a.to=3D{height:f.height*h.y,wi= dth:f.width*h.x};if(b.options.fade){if(g=3D=3D"show"){a.from.opacity=3D0;= a.to.opacity=3D1}if(g=3D=3D"hide"){a.from.opacity=3D=0A= 1;a.to.opacity=3D0}}e.from=3Da.from;e.to=3Da.to;e.mode=3Dg;a.effect("size= ",e,b.duration,b.callback);a.dequeue()})};c.effects.size=3Dfunction(b){re= turn this.queue(function(){var = a=3Dc(this),e=3D["position","top","left","width","height","overflow","opa= city"],g=3D["position","top","left","overflow","opacity"],h=3D["width","h= eight","overflow"],i=3D["fontSize"],f=3D["borderTopWidth","borderBottomWi= dth","paddingTop","paddingBottom"],k=3D["borderLeftWidth","borderRightWid= th","paddingLeft","paddingRight"],p=3Dc.effects.setMode(a,=0A= b.options.mode||"effect"),n=3Db.options.restore||false,m=3Db.options.scal= e||"both",l=3Db.options.origin,j=3D{height:a.height(),width:a.width()};a.= from=3Db.options.from||j;a.to=3Db.options.to||j;if(l){l=3Dc.effects.getBa= seline(l,j);a.from.top=3D(j.height-a.from.height)*l.y;a.from.left=3D(j.wi= dth-a.from.width)*l.x;a.to.top=3D(j.height-a.to.height)*l.y;a.to.left=3D(= j.width-a.to.width)*l.x}var = d=3D{from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.he= ight/j.height,x:a.to.width/j.width}};if(m=3D=3D"box"||m=3D=3D"both"){if(d= ..from.y!=3D=0A= d.to.y){e=3De.concat(f);a.from=3Dc.effects.setTransition(a,f,d.from.y,a.f= rom);a.to=3Dc.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=3Dd.to.= x){e=3De.concat(k);a.from=3Dc.effects.setTransition(a,k,d.from.x,a.from);= a.to=3Dc.effects.setTransition(a,k,d.to.x,a.to)}}if(m=3D=3D"content"||m=3D= =3D"both")if(d.from.y!=3Dd.to.y){e=3De.concat(i);a.from=3Dc.effects.setTr= ansition(a,i,d.from.y,a.from);a.to=3Dc.effects.setTransition(a,i,d.to.y,a= ..to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);a.css("o= verflow","hidden").css(a.from);=0A= if(m=3D=3D"content"||m=3D=3D"both"){f=3Df.concat(["marginTop","marginBott= om"]).concat(i);k=3Dk.concat(["marginLeft","marginRight"]);h=3De.concat(f= ).concat(k);a.find("*[width]").each(function(){child=3Dc(this);n&&c.effec= ts.save(child,h);var = o=3D{height:child.height(),width:child.width()};child.from=3D{height:o.he= ight*d.from.y,width:o.width*d.from.x};child.to=3D{height:o.height*d.to.y,= width:o.width*d.to.x};if(d.from.y!=3Dd.to.y){child.from=3Dc.effects.setTr= ansition(child,f,d.from.y,child.from);child.to=3Dc.effects.setTransition(= child,=0A= f,d.to.y,child.to)}if(d.from.x!=3Dd.to.x){child.from=3Dc.effects.setTrans= ition(child,k,d.from.x,child.from);child.to=3Dc.effects.setTransition(chi= ld,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.dura= tion,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.anim= ate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complet= e:function(){a.to.opacity=3D=3D=3D0&&a.css("opacity",a.from.opacity);p=3D= =3D"hide"&&a.hide();c.effects.restore(a,n?e:g);c.effects.removeWrapper(a)= ;b.callback&&=0A= b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);=0A= (function(d){d.effects.shake=3Dfunction(a){return = this.queue(function(){var = b=3Dd(this),j=3D["position","top","left"];d.effects.setMode(b,a.options.m= ode||"effect");var = c=3Da.options.direction||"left",e=3Da.options.distance||20,l=3Da.options.= times||3,f=3Da.duration||a.options.duration||140;d.effects.save(b,j);b.sh= ow();d.effects.createWrapper(b);var = g=3Dc=3D=3D"up"||c=3D=3D"down"?"top":"left",h=3Dc=3D=3D"up"||c=3D=3D"left= "?"pos":"neg";c=3D{};var = i=3D{},k=3D{};c[g]=3D(h=3D=3D"pos"?"-=3D":"+=3D")+e;i[g]=3D(h=3D=3D"pos"?= "+=3D":"-=3D")+e*2;k[g]=3D(h=3D=3D"pos"?"-=3D":"+=3D")+=0A= e*2;b.animate(c,f,a.options.easing);for(e=3D1;e<l;e++)b.animate(i,f,a.opt= ions.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing= ).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effe= cts.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.que= ue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);=0A= (function(c){c.effects.slide=3Dfunction(d){return = this.queue(function(){var = a=3Dc(this),h=3D["position","top","left"],e=3Dc.effects.setMode(a,d.optio= ns.mode||"show"),b=3Dd.options.direction||"left";c.effects.save(a,h);a.sh= ow();c.effects.createWrapper(a).css({overflow:"hidden"});var = f=3Db=3D=3D"up"||b=3D=3D"down"?"top":"left";b=3Db=3D=3D"up"||b=3D=3D"left= "?"pos":"neg";var = g=3Dd.options.distance||(f=3D=3D"top"?a.outerHeight({margin:true}):a.oute= rWidth({margin:true}));if(e=3D=3D"show")a.css(f,b=3D=3D"pos"?-g:g);var = i=3D{};i[f]=3D(e=3D=3D"show"?b=3D=3D"pos"?=0A= "+=3D":"-=3D":b=3D=3D"pos"?"-=3D":"+=3D")+g;a.animate(i,{queue:false,dura= tion:d.duration,easing:d.options.easing,complete:function(){e=3D=3D"hide"= &&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&= d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);=0A= (function(e){e.effects.transfer=3Dfunction(a){return = this.queue(function(){var = b=3De(this),c=3De(a.options.to),d=3Dc.offset();c=3D{top:d.top,left:d.left= ,height:c.innerHeight(),width:c.innerWidth()};d=3Db.offset();var = f=3De('<div = class=3D"ui-effects-transfer"></div>').appendTo(document.body).addClass(a= ..options.className).css({top:d.top,left:d.left,height:b.innerHeight(),wid= th:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.ea= sing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);=0A= b.dequeue()})})}})(jQuery);=0A= (function(c){c.widget("ui.accordion",{options:{active:0,animated:"slide",= autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpac= e:false,header:"> li > :first-child,> = :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-ic= on-triangle-1-s"},navigation:false,navigationFilter:function(){return = this.href.toLowerCase()=3D=3Dlocation.href.toLowerCase()}},_create:functi= on(){var = a=3Dthis.options,b=3Dthis;this.running=3D0;this.element.addClass("ui-acco= rdion ui-widget ui-helper-reset");=0A= this.element.children("li").addClass("ui-accordion-li-fix");this.headers=3D= this.element.find(a.header).addClass("ui-accordion-header = ui-helper-reset ui-state-default = ui-corner-all").bind("mouseenter.accordion",function(){c(this).addClass("= ui-state-hover")}).bind("mouseleave.accordion",function(){c(this).removeC= lass("ui-state-hover")}).bind("focus.accordion",function(){c(this).addCla= ss("ui-state-focus")}).bind("blur.accordion",function(){c(this).removeCla= ss("ui-state-focus")});this.headers.next().addClass("ui-accordion-content= ui-helper-reset ui-widget-content ui-corner-bottom");=0A= if(a.navigation){var = d=3Dthis.element.find("a").filter(a.navigationFilter);if(d.length){var = f=3Dd.closest(".ui-accordion-header");this.active=3Df.length?f:d.closest(= ".ui-accordion-content").prev()}}this.active=3Dthis._findActive(this.acti= ve||a.active).toggleClass("ui-state-default").toggleClass("ui-state-activ= e").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active= ..next().addClass("ui-accordion-content-active");this._createIcons();this.= resize();this.element.attr("role","tablist");this.headers.attr("role",=0A= "tab").bind("keydown",function(g){return = b._keydown(g)}).next().attr("role","tabpanel");this.headers.not(this.acti= ve||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide()= ;this.active.length?this.active.attr("aria-expanded","true").attr("tabInd= ex","0"):this.headers.eq(0).attr("tabIndex","0");c.browser.safari||this.h= eaders.find("a").attr("tabIndex","-1");a.event&&this.headers.bind(a.event= +".accordion",function(g){b._clickHandler.call(b,g,this);g.preventDefault= ()})},_createIcons:function(){var a=3D=0A= this.options;if(a.icons){c("<span/>").addClass("ui-icon = "+a.icons.header).prependTo(this.headers);this.active.find(".ui-icon").to= ggleClass(a.icons.header).toggleClass(a.icons.headerSelected);this.elemen= t.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.= children(".ui-icon").remove();this.element.removeClass("ui-accordion-icon= s")},destroy:function(){var = a=3Dthis.options;this.element.removeClass("ui-accordion ui-widget = ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("acc= ordion");=0A= this.headers.unbind(".accordion").removeClass("ui-accordion-header = ui-helper-reset ui-state-default ui-corner-all ui-state-active = ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr= ("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyI= cons();var = b=3Dthis.headers.next().css("display","").removeAttr("role").removeClass(= "ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content = ui-accordion-content-active");if(a.autoHeight||a.fillHeight)b.css("height= ",=0A= "");return = this},_setOption:function(a,b){c.Widget.prototype._setOption.apply(this,a= rguments);a=3D=3D"active"&&this.activate(b);if(a=3D=3D"icons"){this._dest= royIcons();b&&this._createIcons()}},_keydown:function(a){var = b=3Dc.ui.keyCode;if(!(this.options.disabled||a.altKey||a.ctrlKey)){var = d=3Dthis.headers.length,f=3Dthis.headers.index(a.target),g=3Dfalse;switch= (a.keyCode){case b.RIGHT:case = b.DOWN:g=3Dthis.headers[(f+1)%d];break;case b.LEFT:case = b.UP:g=3Dthis.headers[(f-1+d)%d];break;case b.SPACE:case = b.ENTER:this._clickHandler({target:a.target},=0A= a.target);a.preventDefault()}if(g){c(a.target).attr("tabIndex","-1");c(g)= ..attr("tabIndex","0");g.focus();return false}return = true}},resize:function(){var = a=3Dthis.options,b;if(a.fillSpace){if(c.browser.msie){var = d=3Dthis.element.parent().css("overflow");this.element.parent().css("over= flow","hidden")}b=3Dthis.element.parent().height();c.browser.msie&&this.e= lement.parent().css("overflow",d);this.headers.each(function(){b-=3Dc(thi= s).outerHeight(true)});this.headers.next().each(function(){c(this).height= (Math.max(0,=0A= b-c(this).innerHeight()+c(this).height()))}).css("overflow","auto")}else = if(a.autoHeight){b=3D0;this.headers.next().each(function(){b=3DMath.max(b= ,c(this).height())}).height(b)}return = this},activate:function(a){this.options.active=3Da;a=3Dthis._findActive(a= )[0];this._clickHandler({target:a},a);return = this},_findActive:function(a){return a?typeof = a=3D=3D"number"?this.headers.filter(":eq("+a+")"):this.headers.not(this.h= eaders.not(a)):a=3D=3D=3Dfalse?c([]):this.headers.filter(":eq(0)")},_clic= kHandler:function(a,b){var d=3D=0A= this.options;if(!d.disabled)if(a.target){a=3Dc(a.currentTarget||b);b=3Da[= 0]=3D=3Dthis.active[0];d.active=3Dd.collapsible&&b?false:c(".ui-accordion= -header",this.element).index(a);if(!(this.running||!d.collapsible&&b)){th= is.active.removeClass("ui-state-active = ui-corner-top").addClass("ui-state-default = ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addC= lass(d.icons.header);if(!b){a.removeClass("ui-state-default = ui-corner-all").addClass("ui-state-active = ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.i= cons.headerSelected);=0A= a.next().addClass("ui-accordion-content-active")}e=3Da.next();f=3Dthis.ac= tive.next();g=3D{options:d,newHeader:b&&d.collapsible?c([]):a,oldHeader:t= his.active,newContent:b&&d.collapsible?c([]):e,oldContent:f};d=3Dthis.hea= ders.index(this.active[0])>this.headers.index(a[0]);this.active=3Db?c([])= :a;this._toggle(e,f,g,b,d)}}else = if(d.collapsible){this.active.removeClass("ui-state-active = ui-corner-top").addClass("ui-state-default = ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addC= lass(d.icons.header);=0A= this.active.next().addClass("ui-accordion-content-active");var = f=3Dthis.active.next(),g=3D{options:d,newHeader:c([]),oldHeader:d.active,= newContent:c([]),oldContent:f},e=3Dthis.active=3Dc([]);this._toggle(e,f,g= )}},_toggle:function(a,b,d,f,g){var = e=3Dthis.options,k=3Dthis;this.toShow=3Da;this.toHide=3Db;this.data=3Dd;v= ar i=3Dfunction(){if(k)return = k._completed.apply(k,arguments)};this._trigger("changestart",null,this.da= ta);this.running=3Db.size()=3D=3D=3D0?a.size():b.size();if(e.animated){d=3D= {};d=3De.collapsible&&f?{toShow:c([]),=0A= toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace}:{toShow:= a,toHide:b,complete:i,down:g,autoHeight:e.autoHeight||e.fillSpace};if(!e.= proxied)e.proxied=3De.animated;if(!e.proxiedDuration)e.proxiedDuration=3D= e.duration;e.animated=3Dc.isFunction(e.proxied)?e.proxied(d):e.proxied;e.= duration=3Dc.isFunction(e.proxiedDuration)?e.proxiedDuration(d):e.proxied= Duration;f=3Dc.ui.accordion.animations;var = h=3De.duration,j=3De.animated;if(j&&!f[j]&&!c.easing[j])j=3D"slide";f[j]|= |(f[j]=3Dfunction(l){this.slide(l,{easing:j,=0A= duration:h||700})});f[j](d)}else{if(e.collapsible&&f)a.toggle();else{b.hi= de();a.show()}i(true)}b.prev().attr("aria-expanded","false").attr("tabInd= ex","-1").blur();a.prev().attr("aria-expanded","true").attr("tabIndex","0= ").focus()},_completed:function(a){var = b=3Dthis.options;this.running=3Da?0:-- this.running;if(!this.running){b.cl= earStyle&&this.toShow.add(this.toHide).css({height:"",overflow:""});this.= toHide.removeClass("ui-accordion-content-active");this._trigger("change",= null,this.data)}}});c.extend(c.ui.accordion,=0A= {version:"1.8.2",animations:{slide:function(a,b){a=3Dc.extend({easing:"sw= ing",duration:300},a,b);if(a.toHide.size())if(a.toShow.size()){var = d=3Da.toShow.css("overflow"),f=3D0,g=3D{},e=3D{},k;b=3Da.toShow;k=3Db[0].= style.width;b.width(parseInt(b.parent().width(),10)-parseInt(b.css("paddi= ngLeft"),10)-parseInt(b.css("paddingRight"),10)-(parseInt(b.css("borderLe= ftWidth"),10)||0)-(parseInt(b.css("borderRightWidth"),10)||0));c.each(["h= eight","paddingTop","paddingBottom"],function(i,h){e[h]=3D"hide";i=3D(""+= c.css(a.toShow[0],=0A= h)).match(/^([\d+-.]+)(.*)$/);g[h]=3D{value:i[1],unit:i[2]||"px"}});a.toS= how.css({height:0,overflow:"hidden"}).show();a.toHide.filter(":hidden").e= ach(a.complete).end().filter(":visible").animate(e,{step:function(i,h){if= (h.prop=3D=3D"height")f=3Dh.end-h.start=3D=3D=3D0?0:(h.now-h.start)/(h.en= d-h.start);a.toShow[0].style[h.prop]=3Df*g[h.prop].value+g[h.prop].unit},= duration:a.duration,easing:a.easing,complete:function(){a.autoHeight||a.t= oShow.css("height","");a.toShow.css("width",k);a.toShow.css({overflow:d})= ;a.complete()}})}else a.toHide.animate({height:"hide"},=0A= a);else = a.toShow.animate({height:"show"},a)},bounceslide:function(a){this.slide(a= ,{easing:a.down?"easeOutBounce":"swing",duration:a.down?1E3:200})}}})})(j= Query);=0A= (function(e){e.widget("ui.autocomplete",{options:{minLength:1,delay:300},= _create:function(){var = a=3Dthis,c=3Dthis.element[0].ownerDocument;this.element.addClass("ui-auto= complete-input").attr("autocomplete","off").attr({role:"textbox","aria-au= tocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",f= unction(d){var b=3De.ui.keyCode;switch(d.keyCode){case = b.PAGE_UP:a._move("previousPage",d);break;case = b.PAGE_DOWN:a._move("nextPage",d);break;case = b.UP:a._move("previous",d);d.preventDefault();=0A= break;case b.DOWN:a._move("next",d);d.preventDefault();break;case = b.ENTER:case b.NUMPAD_ENTER:a.menu.active&&d.preventDefault();case = b.TAB:if(!a.menu.active)return;a.menu.select(d);break;case = b.ESCAPE:a.element.val(a.term);a.close(d);break;case b.LEFT:case = b.RIGHT:case b.SHIFT:case b.CONTROL:case b.ALT:case b.COMMAND:case = b.COMMAND_RIGHT:case b.INSERT:case b.CAPS_LOCK:case b.END:case = b.HOME:break;default:clearTimeout(a.searching);a.searching=3DsetTimeout(f= unction(){a.search(null,d)},a.options.delay);=0A= break}}).bind("focus.autocomplete",function(){a.selectedItem=3Dnull;a.pre= vious=3Da.element.val()}).bind("blur.autocomplete",function(d){clearTimeo= ut(a.searching);a.closing=3DsetTimeout(function(){a.close(d);a._change(d)= },150)});this._initSource();this.response=3Dfunction(){return = a._response.apply(a,arguments)};this.menu=3De("<ul></ul>").addClass("ui-a= utocomplete").appendTo("body",c).mousedown(function(){setTimeout(function= (){clearTimeout(a.closing)},13)}).menu({focus:function(d,b){b=3Db.item.da= ta("item.autocomplete");=0A= false!=3D=3Da._trigger("focus",null,{item:b})&&/^key/.test(d.originalEven= t.type)&&a.element.val(b.value)},selected:function(d,b){b=3Db.item.data("= item.autocomplete");false!=3D=3Da._trigger("select",d,{item:b})&&a.elemen= t.val(b.value);a.close(d);d=3Da.previous;if(a.element[0]!=3D=3Dc.activeEl= ement){a.element.focus();a.previous=3Dd}a.selectedItem=3Db},blur:function= (){a.menu.element.is(":visible")&&a.element.val(a.term)}}).zIndex(this.el= ement.zIndex()+1).css({top:0,left:0}).hide().data("menu");e.fn.bgiframe&&= this.menu.element.bgiframe()},=0A= destroy:function(){this.element.removeClass("ui-autocomplete-input").remo= veAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete")= ..removeAttr("aria-haspopup");this.menu.element.remove();e.Widget.prototyp= e.destroy.call(this)},_setOption:function(a){e.Widget.prototype._setOptio= n.apply(this,arguments);a=3D=3D=3D"source"&&this._initSource()},_initSour= ce:function(){var = a,c;if(e.isArray(this.options.source)){a=3Dthis.options.source;this.sourc= e=3Dfunction(d,b){b(e.ui.autocomplete.filter(a,d.term))}}else if(typeof = this.options.source=3D=3D=3D=0A= "string"){c=3Dthis.options.source;this.source=3Dfunction(d,b){e.getJSON(c= ,d,b)}}else = this.source=3Dthis.options.source},search:function(a,c){a=3Da!=3Dnull?a:t= his.element.val();if(a.length<this.options.minLength)return = this.close(c);clearTimeout(this.closing);if(this._trigger("search")!=3D=3D= false)return = this._search(a)},_search:function(a){this.term=3Dthis.element.addClass("u= i-autocomplete-loading").val();this.source({term:a},this.response)},_resp= onse:function(a){if(a.length){a=3Dthis._normalize(a);this._suggest(a);=0A= this._trigger("open")}else = this.close();this.element.removeClass("ui-autocomplete-loading")},close:f= unction(a){clearTimeout(this.closing);if(this.menu.element.is(":visible")= ){this._trigger("close",a);this.menu.element.hide();this.menu.deactivate(= )}},_change:function(a){this.previous!=3D=3Dthis.element.val()&&this._tri= gger("change",a,{item:this.selectedItem})},_normalize:function(a){if(a.le= ngth&&a[0].label&&a[0].value)return a;return = e.map(a,function(c){if(typeof = c=3D=3D=3D"string")return{label:c,value:c};return = e.extend({label:c.label||=0A= c.value,value:c.value||c.label},c)})},_suggest:function(a){var = c=3Dthis.menu.element.empty().zIndex(this.element.zIndex()+1),d;this._ren= derMenu(c,a);this.menu.deactivate();this.menu.refresh();this.menu.element= ..show().position({my:"left top",at:"left = bottom",of:this.element,collision:"none"});a=3Dc.width("").width();d=3Dth= is.element.width();c.width(Math.max(a,d))},_renderMenu:function(a,c){var = d=3Dthis;e.each(c,function(b,f){d._renderItem(a,f)})},_renderItem:functio= n(a,c){return e("<li></li>").data("item.autocomplete",=0A= c).append("<a>"+c.label+"</a>").appendTo(a)},_move:function(a,c){if(this.= menu.element.is(":visible"))if(this.menu.first()&&/^previous/.test(a)||th= is.menu.last()&&/^next/.test(a)){this.element.val(this.term);this.menu.de= activate()}else this.menu[a](c);else = this.search(null,c)},widget:function(){return = this.menu.element}});e.extend(e.ui.autocomplete,{escapeRegex:function(a){= return = a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(a= ,c){var d=3Dnew RegExp(e.ui.autocomplete.escapeRegex(c),=0A= "i");return e.grep(a,function(b){return = d.test(b.label||b.value||b)})}})})(jQuery);=0A= (function(e){e.widget("ui.menu",{_create:function(){var = a=3Dthis;this.element.addClass("ui-menu ui-widget ui-widget-content = ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-m= enuitem"}).click(function(c){if(e(c.target).closest(".ui-menu-item = a").length){c.preventDefault();a.select(c)}});this.refresh()},refresh:fun= ction(){var = a=3Dthis;this.element.children("li:not(.ui-menu-item):has(a)").addClass("= ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-= all").attr("tabindex",=0A= -1).mouseenter(function(c){a.activate(c,e(this).parent())}).mouseleave(fu= nction(){a.deactivate()})},activate:function(a,c){this.deactivate();if(th= is.hasScroll()){var = d=3Dc.offset().top-this.element.offset().top,b=3Dthis.element.attr("scrol= lTop"),f=3Dthis.element.height();if(d<0)this.element.attr("scrollTop",b+d= );else = d>f&&this.element.attr("scrollTop",b+d-f+c.height())}this.active=3Dc.eq(0= ).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem"= ).end();this._trigger("focus",a,{item:c})},deactivate:function(){if(this.= active){this.active.children("a").removeClass("ui-state-hover").removeAtt= r("id");=0A= this._trigger("blur");this.active=3Dnull}},next:function(a){this.move("ne= xt",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-= menu-item:last",a)},first:function(){return = this.active&&!this.active.prev().length},last:function(){return = this.active&&!this.active.next().length},move:function(a,c,d){if(this.act= ive){a=3Dthis.active[a+"All"](".ui-menu-item").eq(0);a.length?this.activa= te(d,a):this.activate(d,this.element.children(c))}else = this.activate(d,this.element.children(c))},nextPage:function(a){if(this.h= asScroll())if(!this.active||=0A= this.last())this.activate(a,this.element.children(":first"));else{var = c=3Dthis.active.offset().top,d=3Dthis.element.height(),b=3Dthis.element.c= hildren("li").filter(function(){var = f=3De(this).offset().top-c-d+e(this).height();return = f<10&&f>-10});b.length||(b=3Dthis.element.children(":last"));this.activat= e(a,b)}else = this.activate(a,this.element.children(!this.active||this.last()?":first":= ":last"))},previousPage:function(a){if(this.hasScroll())if(!this.active||= this.first())this.activate(a,this.element.children(":last"));=0A= else{var = c=3Dthis.active.offset().top,d=3Dthis.element.height();result=3Dthis.elem= ent.children("li").filter(function(){var = b=3De(this).offset().top-c+d-e(this).height();return = b<10&&b>-10});result.length||(result=3Dthis.element.children(":first"));t= his.activate(a,result)}else = this.activate(a,this.element.children(!this.active||this.first()?":last":= ":first"))},hasScroll:function(){return = this.element.height()<this.element.attr("scrollHeight")},select:function(= a){this._trigger("selected",a,{item:this.active})}})})(jQuery);=0A= (function(a){var = g,i=3Dfunction(b){a(":ui-button",b.target.form).each(function(){var = c=3Da(this).data("button");setTimeout(function(){c.refresh()},1)})},h=3Df= unction(b){var = c=3Db.name,d=3Db.form,e=3Da([]);if(c)e=3Dd?a(d).find("[name=3D'"+c+"']"):= a("[name=3D'"+c+"']",b.ownerDocument).filter(function(){return!this.form}= );return = e};a.widget("ui.button",{options:{text:true,label:null,icons:{primary:nul= l,secondary:null}},_create:function(){this.element.closest("form").unbind= ("reset.button").bind("reset.button",i);this._determineButtonType();=0A= this.hasTitle=3D!!this.buttonElement.attr("title");var = b=3Dthis,c=3Dthis.options,d=3Dthis.type=3D=3D=3D"checkbox"||this.type=3D=3D= =3D"radio",e=3D"ui-state-hover"+(!d?" = ui-state-active":"");if(c.label=3D=3D=3Dnull)c.label=3Dthis.buttonElement= ..html();if(this.element.is(":disabled"))c.disabled=3Dtrue;this.buttonElem= ent.addClass("ui-button ui-widget ui-state-default = ui-corner-all").attr("role","button").bind("mouseenter.button",function()= {if(!c.disabled){a(this).addClass("ui-state-hover");this=3D=3D=3Dg&&a(thi= s).addClass("ui-state-active")}}).bind("mouseleave.button",=0A= function(){c.disabled||a(this).removeClass(e)}).bind("focus.button",funct= ion(){a(this).addClass("ui-state-focus")}).bind("blur.button",function(){= a(this).removeClass("ui-state-focus")});d&&this.element.bind("change.butt= on",function(){b.refresh()});if(this.type=3D=3D=3D"checkbox")this.buttonE= lement.bind("click.button",function(){if(c.disabled)return = false;a(this).toggleClass("ui-state-active");b.buttonElement.attr("aria-p= ressed",b.element[0].checked)});else = if(this.type=3D=3D=3D"radio")this.buttonElement.bind("click.button",=0A= function(){if(c.disabled)return = false;a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pres= sed",true);var f=3Db.element[0];h(f).not(f).map(function(){return = a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-p= ressed",false)});else{this.buttonElement.bind("mousedown.button",function= (){if(c.disabled)return = false;a(this).addClass("ui-state-active");g=3Dthis;a(document).one("mouse= up",function(){g=3Dnull})}).bind("mouseup.button",function(){if(c.disable= d)return = false;a(this).removeClass("ui-state-active")}).bind("keydown.button",=0A= function(f){if(c.disabled)return = false;if(f.keyCode=3D=3Da.ui.keyCode.SPACE||f.keyCode=3D=3Da.ui.keyCode.E= NTER)a(this).addClass("ui-state-active")}).bind("keyup.button",function()= {a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&thi= s.buttonElement.keyup(function(f){f.keyCode=3D=3D=3Da.ui.keyCode.SPACE&&a= (this).click()})}this._setOption("disabled",c.disabled)},_determineButton= Type:function(){this.type=3Dthis.element.is(":checkbox")?"checkbox":this.= element.is(":radio")?"radio":this.element.is("input")?=0A= "input":"button";if(this.type=3D=3D=3D"checkbox"||this.type=3D=3D=3D"radi= o"){this.buttonElement=3Dthis.element.parents().last().find("[for=3D"+thi= s.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessi= ble");var = b=3Dthis.element.is(":checked");b&&this.buttonElement.addClass("ui-state-= active");this.buttonElement.attr("aria-pressed",b)}else = this.buttonElement=3Dthis.element},widget:function(){return = this.buttonElement},destroy:function(){this.element.removeClass("ui-helpe= r-hidden-accessible");this.buttonElement.removeClass("ui-button = ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active = ui-button-icons-only ui-button-icon-only ui-button-text-icons = ui-button-text-icon = ui-button-text-only").removeAttr("role").removeAttr("aria-pressed").html(= this.buttonElement.find(".ui-button-text").html());=0A= this.hasTitle||this.buttonElement.removeAttr("title");a.Widget.prototype.= destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOptio= n.apply(this,arguments);if(b=3D=3D=3D"disabled")c?this.element.attr("disa= bled",true):this.element.removeAttr("disabled");this._resetButton()},refr= esh:function(){var = b=3Dthis.element.is(":disabled");b!=3D=3Dthis.options.disabled&&this._set= Option("disabled",b);if(this.type=3D=3D=3D"radio")h(this.element[0]).each= (function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-= state-active").attr("aria-pressed",=0A= true):a(this).button("widget").removeClass("ui-state-active").attr("aria-= pressed",false)});else = if(this.type=3D=3D=3D"checkbox")this.element.is(":checked")?this.buttonEl= ement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonEl= ement.removeClass("ui-state-active").attr("aria-pressed",false)},_resetBu= tton:function(){if(this.type=3D=3D=3D"input")this.options.label&&this.ele= ment.val(this.options.label);else{var = b=3Dthis.buttonElement.removeClass("ui-button-icons-only = ui-button-icon-only ui-button-text-icons ui-button-text-icon = ui-button-text-only"),=0A= c=3Da("<span></span>").addClass("ui-button-text").html(this.options.label= ).appendTo(b.empty()).text(),d=3Dthis.options.icons,e=3Dd.primary&&d.seco= ndary;if(d.primary||d.secondary){b.addClass("ui-button-text-icon"+(e?"s":= ""));d.primary&&b.prepend("<span class=3D'ui-button-icon-primary ui-icon = "+d.primary+"'></span>");d.secondary&&b.append("<span = class=3D'ui-button-icon-secondary ui-icon = "+d.secondary+"'></span>");if(!this.options.text){b.addClass(e?"ui-button= -icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons = ui-button-text-icon");=0A= this.hasTitle||b.attr("title",c)}}else = b.addClass("ui-button-text-only")}}});a.widget("ui.buttonset",{_create:fu= nction(){this.element.addClass("ui-buttonset");this._init()},_init:functi= on(){this.refresh()},_setOption:function(b,c){b=3D=3D=3D"disabled"&&this.= buttons.button("option",b,c);a.Widget.prototype._setOption.apply(this,arg= uments)},refresh:function(){this.buttons=3Dthis.element.find(":button, = :submit, :reset, :checkbox, :radio, a, = :data(button)").filter(":ui-button").button("refresh").end().not(":ui-but= ton").button().end().map(function(){return = a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left = ui-corner-right").filter(":first").addClass("ui-corner-left").end().filte= r(":last").addClass("ui-corner-right").end().end()},=0A= destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.= map(function(){return = a(this).button("widget")[0]}).removeClass("ui-corner-left = ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call= (this)}})})(jQuery);=0A= (function(d){function = J(){this.debug=3Dfalse;this._curInst=3Dnull;this._keyEvent=3Dfalse;this._= disabledInputs=3D[];this._inDialog=3Dthis._datepickerShowing=3Dfalse;this= .._mainDivId=3D"ui-datepicker-div";this._inlineClass=3D"ui-datepicker-inli= ne";this._appendClass=3D"ui-datepicker-append";this._triggerClass=3D"ui-d= atepicker-trigger";this._dialogClass=3D"ui-datepicker-dialog";this._disab= leClass=3D"ui-datepicker-disabled";this._unselectableClass=3D"ui-datepick= er-unselectable";this._currentClass=3D"ui-datepicker-current-day";this._d= ayOverClass=3D=0A= "ui-datepicker-days-cell-over";this.regional=3D[];this.regional[""]=3D{cl= oseText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthN= ames:["January","February","March","April","May","June","July","August","= September","October","November","December"],monthNamesShort:["Jan","Feb",= "Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["S= unday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],day= NamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su",=0A= "Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firs= tDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults= =3D{showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appe= ndText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoP= revNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:= false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,select= OtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYear= Cutoff:"+10",=0A= minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:n= ull,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,sh= owCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",c= onstrainInput:true,showButtonPanel:false,autoSize:false};d.extend(this._d= efaults,this.regional[""]);this.dpDiv=3Dd('<div = id=3D"'+this._mainDivId+'" class=3D"ui-datepicker ui-widget = ui-widget-content ui-helper-clearfix ui-corner-all = ui-helper-hidden-accessible"></div>')}function E(a,b){d.extend(a,=0A= b);for(var c in = b)if(b[c]=3D=3Dnull||b[c]=3D=3Dundefined)a[c]=3Db[c];return = a}d.extend(d.ui,{datepicker:{version:"1.8.2"}});var y=3D(new = Date).getTime();d.extend(J.prototype,{markerClassName:"hasDatepicker",log= :function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicke= r:function(){return = this.dpDiv},setDefaults:function(a){E(this._defaults,a||{});return = this},_attachDatepicker:function(a,b){var c=3Dnull;for(var e in = this._defaults){var = f=3Da.getAttribute("date:"+e);if(f){c=3Dc||{};try{c[e]=3Deval(f)}catch(h)= {c[e]=3D=0A= f}}}e=3Da.nodeName.toLowerCase();f=3De=3D=3D"div"||e=3D=3D"span";if(!a.id= ){this.uuid+=3D1;a.id=3D"dp"+this.uuid}var = i=3Dthis._newInst(d(a),f);i.settings=3Dd.extend({},b||{},c||{});if(e=3D=3D= "input")this._connectDatepicker(a,i);else = f&&this._inlineDatepicker(a,i)},_newInst:function(a,b){return{id:a[0].id.= replace(/([^A-Za-z0-9_])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:= 0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<= div class=3D"'+this._inlineClass+' ui-datepicker ui-widget = ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},=0A= _connectDatepicker:function(a,b){var = c=3Dd(a);b.append=3Dd([]);b.trigger=3Dd([]);if(!c.hasClass(this.markerCla= ssName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(= this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("se= tData.datepicker",function(e,f,h){b.settings[f]=3Dh}).bind("getData.datep= icker",function(e,f){return = this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachment= s:function(a,b){var = c=3Dthis._get(b,"appendText"),e=3Dthis._get(b,"isRTL");b.append&&=0A= b.append.remove();if(c){b.append=3Dd('<span = class=3D"'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.ap= pend)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove(= );c=3Dthis._get(b,"showOn");if(c=3D=3D"focus"||c=3D=3D"both")a.focus(this= .._showDatepicker);if(c=3D=3D"button"||c=3D=3D"both"){c=3Dthis._get(b,"but= tonText");var = f=3Dthis._get(b,"buttonImage");b.trigger=3Dd(this._get(b,"buttonImageOnly= ")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d= ('<button = type=3D"button"></button>').addClass(this._triggerClass).html(f=3D=3D=0A= ""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.tr= igger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.date= picker._lastInput=3D=3Da[0]?d.datepicker._hideDatepicker():d.datepicker._= showDatepicker(a[0]);return = false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){va= r b=3Dnew = Date(2009,11,20),c=3Dthis._get(a,"dateFormat");if(c.match(/[DM]/)){var = e=3Dfunction(f){for(var = h=3D0,i=3D0,g=3D0;g<f.length;g++)if(f[g].length>h){h=3Df[g].length;i=3Dg}= return i};b.setMonth(e(this._get(a,=0A= c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c= ..match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("si= ze",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var = c=3Dd(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClas= sName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settin= gs[f]=3Dh}).bind("getData.datepicker",function(e,f){return = this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaul= tDate(b),=0A= true);this._updateDatepicker(b);this._updateAlternate(b)}},_dialogDatepic= ker:function(a,b,c,e,f){a=3Dthis._dialogInst;if(!a){this.uuid+=3D1;this._= dialogInput=3Dd('<input type=3D"text" id=3D"'+("dp"+this.uuid)+'" = style=3D"position: absolute; top: -100px; width: 0px; z-index: = -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(thi= s._dialogInput);a=3Dthis._dialogInst=3Dthis._newInst(this._dialogInput,fa= lse);a.settings=3D{};d.data(this._dialogInput[0],"datepicker",a)}E(a.sett= ings,e||{});b=3Db&&b.constructor=3D=3D=0A= Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=3Df?f.len= gth?f:[f.pageX,f.pageY]:null;if(!this._pos)this._pos=3D[document.document= Element.clientWidth/2-100+(document.documentElement.scrollLeft||document.= body.scrollLeft),document.documentElement.clientHeight/2-150+(document.do= cumentElement.scrollTop||document.body.scrollTop)];this._dialogInput.css(= "left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSe= lect=3Dc;this._inDialog=3Dtrue;this.dpDiv.addClass(this._dialogClass);thi= s._showDatepicker(this._dialogInput[0]);=0A= d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker"= ,a);return this},_destroyDatepicker:function(a){var = b=3Dd(a),c=3Dd.data(a,"datepicker");if(b.hasClass(this.markerClassName)){= var = e=3Da.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=3D=3D"inpu= t"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassNa= me).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown= ).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else = if(e=3D=3D"div"||e=3D=3D"span")b.removeClass(this.markerClassName).empty(= )}},=0A= _enableDatepicker:function(a){var = b=3Dd(a),c=3Dd.data(a,"datepicker");if(b.hasClass(this.markerClassName)){= var = e=3Da.nodeName.toLowerCase();if(e=3D=3D"input"){a.disabled=3Dfalse;c.trig= ger.filter("button").each(function(){this.disabled=3Dfalse}).end().filter= ("img").css({opacity:"1.0",cursor:""})}else = if(e=3D=3D"div"||e=3D=3D"span")b.children("."+this._inlineClass).children= ().removeClass("ui-state-disabled");this._disabledInputs=3Dd.map(this._di= sabledInputs,function(f){return = f=3D=3Da?null:f})}},_disableDatepicker:function(a){var b=3D=0A= d(a),c=3Dd.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var = e=3Da.nodeName.toLowerCase();if(e=3D=3D"input"){a.disabled=3Dtrue;c.trigg= er.filter("button").each(function(){this.disabled=3Dtrue}).end().filter("= img").css({opacity:"0.5",cursor:"default"})}else = if(e=3D=3D"div"||e=3D=3D"span")b.children("."+this._inlineClass).children= ().addClass("ui-state-disabled");this._disabledInputs=3Dd.map(this._disab= ledInputs,function(f){return = f=3D=3Da?null:f});this._disabledInputs[this._disabledInputs.length]=3Da}}= ,_isDisabledDatepicker:function(a){if(!a)return false;=0A= for(var = b=3D0;b<this._disabledInputs.length;b++)if(this._disabledInputs[b]=3D=3Da= )return true;return false},_getInst:function(a){try{return = d.data(a,"datepicker")}catch(b){throw"Missing instance data for this = datepicker";}},_optionDatepicker:function(a,b,c){var = e=3Dthis._getInst(a);if(arguments.length=3D=3D2&&typeof = b=3D=3D"string")return = b=3D=3D"defaults"?d.extend({},d.datepicker._defaults):e?b=3D=3D"all"?d.ex= tend({},e.settings):this._get(e,b):null;var f=3Db||{};if(typeof = b=3D=3D"string"){f=3D{};f[b]=3Dc}if(e){this._curInst=3D=3De&&=0A= this._hideDatepicker();var = h=3Dthis._getDateDatepicker(a,true);E(e.settings,f);this._attachments(d(a= ),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicke= r(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_= refreshDatepicker:function(a){(a=3Dthis._getInst(a))&&this._updateDatepic= ker(a)},_setDateDatepicker:function(a,b){if(a=3Dthis._getInst(a)){this._s= etDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDate= Datepicker:function(a,b){(a=3Dthis._getInst(a))&&=0A= !a.inline&&this._setDateFromField(a,b);return = a?this._getDate(a):null},_doKeyDown:function(a){var = b=3Dd.datepicker._getInst(a.target),c=3Dtrue,e=3Db.dpDiv.is(".ui-datepick= er-rtl");b._keyEvent=3Dtrue;if(d.datepicker._datepickerShowing)switch(a.k= eyCode){case 9:d.datepicker._hideDatepicker();c=3Dfalse;break;case = 13:c=3Dd("td."+d.datepicker._dayOverClass,b.dpDiv).add(d("td."+d.datepick= er._currentClass,b.dpDiv));c[0]?d.datepicker._selectDay(a.target,b.select= edMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();=0A= return false;case 27:d.datepicker._hideDatepicker();break;case = 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"step= BigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case = 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"step= BigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case = 35:if(a.ctrlKey||a.metaKey)d.datepicker._clearDate(a.target);c=3Da.ctrlKe= y||a.metaKey;break;case = 36:if(a.ctrlKey||a.metaKey)d.datepicker._gotoToday(a.target);c=3Da.ctrlKe= y||=0A= a.metaKey;break;case = 37:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?+1:-1,"D")= ;c=3Da.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustD= ate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicke= r._get(b,"stepMonths"),"M");break;case = 38:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,-7,"D");c=3D= a.ctrlKey||a.metaKey;break;case = 39:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,e?-1:+1,"D")= ;c=3Da.ctrlKey||a.metaKey;if(a.originalEvent.altKey)d.datepicker._adjustD= ate(a.target,=0A= a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"ste= pMonths"),"M");break;case = 40:if(a.ctrlKey||a.metaKey)d.datepicker._adjustDate(a.target,+7,"D");c=3D= a.ctrlKey||a.metaKey;break;default:c=3Dfalse}else = if(a.keyCode=3D=3D36&&a.ctrlKey)d.datepicker._showDatepicker(this);else = c=3Dfalse;if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:func= tion(a){var = b=3Dd.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInpu= t")){b=3Dd.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));=0A= var = c=3DString.fromCharCode(a.charCode=3D=3Dundefined?a.keyCode:a.charCode);r= eturn a.ctrlKey||c<" = "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=3Dd.datepicker._getInst(a= ..target);if(a.input.val()!=3Da.lastVal)try{if(d.datepicker.parseDate(d.da= tepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._ge= tFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._update= Alternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log= (b)}return true},_showDatepicker:function(a){a=3Da.target||=0A= a;if(a.nodeName.toLowerCase()!=3D"input")a=3Dd("input",a.parentNode)[0];i= f(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput=3D=3Da= )){var = b=3Dd.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst= !=3Db&&d.datepicker._curInst.dpDiv.stop(true,true);var = c=3Dd.datepicker._get(b,"beforeShow");E(b.settings,c?c.apply(a,[a,b]):{})= ;b.lastVal=3Dnull;d.datepicker._lastInput=3Da;d.datepicker._setDateFromFi= eld(b);if(d.datepicker._inDialog)a.value=3D"";if(!d.datepicker._pos){d.da= tepicker._pos=3Dd.datepicker._findPos(a);=0A= d.datepicker._pos[1]+=3Da.offsetHeight}var = e=3Dfalse;d(a).parents().each(function(){e|=3Dd(this).css("position")=3D=3D= "fixed";return!e});if(e&&d.browser.opera){d.datepicker._pos[0]-=3Ddocumen= t.documentElement.scrollLeft;d.datepicker._pos[1]-=3Ddocument.documentEle= ment.scrollTop}c=3D{left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d= ..datepicker._pos=3Dnull;b.dpDiv.css({position:"absolute",display:"block",= top:"-1000px"});d.datepicker._updateDatepicker(b);c=3Dd.datepicker._check= Offset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&=0A= d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",t= op:c.top+"px"});if(!b.inline){c=3Dd.datepicker._get(b,"showAnim");var = f=3Dd.datepicker._get(b,"duration"),h=3Dfunction(){d.datepicker._datepick= erShowing=3Dtrue;var = i=3Dd.datepicker._getBorders(b.dpDiv);b.dpDiv.find("iframe.ui-datepicker-= cover").css({left:-i[0],top:-i[1],width:b.dpDiv.outerWidth(),height:b.dpD= iv.outerHeight()})};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[= c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,=0A= h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f)h();b.input.is(":visible")&&!= b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=3Db}}},_up= dateDatepicker:function(a){var = b=3Dthis,c=3Dd.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(thi= s._generateHTML(a)).find("iframe.ui-datepicker-cover").css({left:-c[0],to= p:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()}).end().f= ind("button, .ui-datepicker-prev, .ui-datepicker-next, = ..ui-datepicker-calendar td = a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");=0A= this.className.indexOf("ui-datepicker-prev")!=3D-1&&d(this).removeClass("= ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=3D= -1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",fu= nction(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input= [0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("u= i-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf= ("ui-datepicker-prev")!=3D-1&&d(this).addClass("ui-datepicker-prev-hover"= );=0A= this.className.indexOf("ui-datepicker-next")!=3D-1&&d(this).addClass("ui-= datepicker-next-hover")}}).end().find("."+this._dayOverClass+" = a").trigger("mouseover").end();c=3Dthis._getNumberOfMonths(a);var = e=3Dc[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+= "em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 = ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=3D1||c[1]!=3D1?"add":"re= move")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add= ":"remove")+"Class"]("ui-datepicker-rtl");=0A= a=3D=3Dd.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a= ..input.is(":visible")&&!a.input.is(":disabled")&&a.input.focus()},_getBor= ders:function(a){var = b=3Dfunction(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(= b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]}= ,_checkOffset:function(a,b,c){var = e=3Da.dpDiv.outerWidth(),f=3Da.dpDiv.outerHeight(),h=3Da.input?a.input.ou= terWidth():0,i=3Da.input?a.input.outerHeight():0,g=3Ddocument.documentEle= ment.clientWidth+d(document).scrollLeft(),=0A= k=3Ddocument.documentElement.clientHeight+d(document).scrollTop();b.left-= =3Dthis._get(a,"isRTL")?e-h:0;b.left-=3Dc&&b.left=3D=3Da.input.offset().l= eft?d(document).scrollLeft():0;b.top-=3Dc&&b.top=3D=3Da.input.offset().to= p+i?d(document).scrollTop():0;b.left-=3DMath.min(b.left,b.left+e>g&&g>e?M= ath.abs(b.left+e-g):0);b.top-=3DMath.min(b.top,b.top+f>k&&k>f?Math.abs(f+= i):0);return b},_findPos:function(a){for(var = b=3Dthis._get(this._getInst(a),"isRTL");a&&(a.type=3D=3D"hidden"||a.nodeT= ype!=3D1);)a=3Da[b?"previousSibling":"nextSibling"];=0A= a=3Dd(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var = b=3Dthis._curInst;if(!(!b||a&&b!=3Dd.data(a,"datepicker")))if(this._datep= ickerShowing){a=3Dthis._get(b,"showAnim");var = c=3Dthis._get(b,"duration"),e=3Dfunction(){d.datepicker._tidyDialog(b);th= is._curInst=3Dnull};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._= get(b,"showOptions"),c,e):b.dpDiv[a=3D=3D"slideDown"?"slideUp":a=3D=3D"fa= deIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=3Dthis._get(b,"onClose"))= a.apply(b.input?b.input[0]:null,[b.input?b.input.val():=0A= "",b]);this._datepickerShowing=3Dfalse;this._lastInput=3Dnull;if(this._in= Dialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}= );if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialo= g=3Dfalse}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass= ).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d= ..datepicker._curInst){a=3Dd(a.target);a[0].id!=3Dd.datepicker._mainDivId&= &a.parents("#"+d.datepicker._mainDivId).length=3D=3D0&&!a.hasClass(d.date= picker.markerClassName)&&=0A= !a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&= &!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_= adjustDate:function(a,b,c){a=3Dd(a);var = e=3Dthis._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjus= tInstDate(e,b+(c=3D=3D"M"?this._get(e,"showCurrentAtPos"):0),c);this._upd= ateDatepicker(e)}},_gotoToday:function(a){a=3Dd(a);var = b=3Dthis._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.se= lectedDay=3Db.currentDay;b.drawMonth=3Db.selectedMonth=3Db.currentMonth;=0A= b.drawYear=3Db.selectedYear=3Db.currentYear}else{var c=3Dnew = Date;b.selectedDay=3Dc.getDate();b.drawMonth=3Db.selectedMonth=3Dc.getMon= th();b.drawYear=3Db.selectedYear=3Dc.getFullYear()}this._notifyChange(b);= this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=3Dd(a);var = e=3Dthis._getInst(a[0]);e._selectingMonthYear=3Dfalse;e["selected"+(c=3D=3D= "M"?"Month":"Year")]=3De["draw"+(c=3D=3D"M"?"Month":"Year")]=3DparseInt(b= ..options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDat= e(a)},_clickMonthYear:function(a){a=3Dthis._getInst(d(a)[0]);=0A= a.input&&a._selectingMonthYear&&!d.browser.msie&&a.input.focus();a._selec= tingMonthYear=3D!a._selectingMonthYear},_selectDay:function(a,b,c,e){var = f=3Dd(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDat= epicker(f[0]))){f=3Dthis._getInst(f[0]);f.selectedDay=3Df.currentDay=3Dd(= "a",e).html();f.selectedMonth=3Df.currentMonth=3Db;f.selectedYear=3Df.cur= rentYear=3Dc;this._selectDate(a,this._formatDate(f,f.currentDay,f.current= Month,f.currentYear))}},_clearDate:function(a){a=3Dd(a);this._getInst(a[0= ]);this._selectDate(a,=0A= "")},_selectDate:function(a,b){a=3Dthis._getInst(d(a)[0]);b=3Db!=3Dnull?b= :this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var= = c=3Dthis._get(a,"onSelect");if(c)c.apply(a.input?a.input[0]:null,[b,a]);e= lse = a.input&&a.input.trigger("change");if(a.inline)this._updateDatepicker(a);= else{this._hideDatepicker();this._lastInput=3Da.input[0];typeof = a.input[0]!=3D"object"&&a.input.focus();this._lastInput=3Dnull}},_updateA= lternate:function(a){var b=3Dthis._get(a,"altField");if(b){var = c=3Dthis._get(a,"altFormat")||=0A= this._get(a,"dateFormat"),e=3Dthis._getDate(a),f=3Dthis.formatDate(c,e,th= is._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekend= s:function(a){a=3Da.getDay();return[a>0&&a<6,""]},iso8601Week:function(a)= {a=3Dnew Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var = b=3Da.getTime();a.setMonth(0);a.setDate(1);return = Math.floor(Math.round((b-a)/864E5)/7)+1},parseDate:function(a,b,c){if(a=3D= =3Dnull||b=3D=3Dnull)throw"Invalid arguments";b=3Dtypeof = b=3D=3D"object"?b.toString():b+"";if(b=3D=3D"")return null;=0A= for(var = e=3D(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=3D(c?c.d= ayNamesShort:null)||this._defaults.dayNamesShort,h=3D(c?c.dayNames:null)|= |this._defaults.dayNames,i=3D(c?c.monthNamesShort:null)||this._defaults.m= onthNamesShort,g=3D(c?c.monthNames:null)||this._defaults.monthNames,k=3Dc= =3D-1,l=3D-1,u=3D-1,j=3Dfalse,o=3Dfunction(p){(p=3Dz+1<a.length&&a.charAt= (z+1)=3D=3Dp)&&z++;return p},m=3Dfunction(p){o(p);p=3Dnew = RegExp("^\\d{1,"+(p=3D=3D"@"?14:p=3D=3D"!"?20:p=3D=3D"y"?4:p=3D=3D"o"?3:2= )+"}");p=3Db.substring(s).match(p);if(!p)throw"Missing number at = position "+=0A= s;s+=3Dp[0].length;return = parseInt(p[0],10)},n=3Dfunction(p,w,G){p=3Do(p)?G:w;for(w=3D0;w<p.length;= w++)if(b.substr(s,p[w].length)=3D=3Dp[w]){s+=3Dp[w].length;return = w+1}throw"Unknown name at position = "+s;},r=3Dfunction(){if(b.charAt(s)!=3Da.charAt(z))throw"Unexpected = literal at position = "+s;s++},s=3D0,z=3D0;z<a.length;z++)if(j)if(a.charAt(z)=3D=3D"'"&&!o("'")= )j=3Dfalse;else r();else switch(a.charAt(z)){case = "d":l=3Dm("d");break;case "D":n("D",f,h);break;case = "o":u=3Dm("o");break;case "m":k=3Dm("m");break;case = "M":k=3Dn("M",i,g);break;=0A= case "y":c=3Dm("y");break;case "@":var v=3Dnew = Date(m("@"));c=3Dv.getFullYear();k=3Dv.getMonth()+1;l=3Dv.getDate();break= ;case "!":v=3Dnew = Date((m("!")-this._ticksTo1970)/1E4);c=3Dv.getFullYear();k=3Dv.getMonth()= +1;l=3Dv.getDate();break;case "'":if(o("'"))r();else = j=3Dtrue;break;default:r()}if(c=3D=3D-1)c=3D(new = Date).getFullYear();else if(c<100)c+=3D(new Date).getFullYear()-(new = Date).getFullYear()%100+(c<=3De?0:-100);if(u>-1){k=3D1;l=3Du;do{e=3Dthis.= _getDaysInMonth(c,k-1);if(l<=3De)break;k++;l-=3De}while(1)}v=3Dthis._dayl= ightSavingAdjust(new Date(c,=0A= k-1,l));if(v.getFullYear()!=3Dc||v.getMonth()+1!=3Dk||v.getDate()!=3Dl)th= row"Invalid date";return v},ATOM:"yy-mm-dd",COOKIE:"D, dd M = yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, = dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M = yy",RSS:"D, d M = y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor= (492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*1E7,formatDate:funct= ion(a,b,c){if(!b)return"";var = e=3D(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=3D(c?=0A= c.dayNames:null)||this._defaults.dayNames,h=3D(c?c.monthNamesShort:null)|= |this._defaults.monthNamesShort;c=3D(c?c.monthNames:null)||this._defaults= ..monthNames;var = i=3Dfunction(o){(o=3Dj+1<a.length&&a.charAt(j+1)=3D=3Do)&&j++;return = o},g=3Dfunction(o,m,n){m=3D""+m;if(i(o))for(;m.length<n;)m=3D"0"+m;return= m},k=3Dfunction(o,m,n,r){return = i(o)?r[m]:n[m]},l=3D"",u=3Dfalse;if(b)for(var = j=3D0;j<a.length;j++)if(u)if(a.charAt(j)=3D=3D"'"&&!i("'"))u=3Dfalse;else= l+=3Da.charAt(j);else switch(a.charAt(j)){case = "d":l+=3Dg("d",b.getDate(),2);break;=0A= case "D":l+=3Dk("D",b.getDay(),e,f);break;case = "o":l+=3Dg("o",(b.getTime()-(new = Date(b.getFullYear(),0,0)).getTime())/864E5,3);break;case = "m":l+=3Dg("m",b.getMonth()+1,2);break;case = "M":l+=3Dk("M",b.getMonth(),h,c);break;case = "y":l+=3Di("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%1= 00;break;case "@":l+=3Db.getTime();break;case = "!":l+=3Db.getTime()*1E4+this._ticksTo1970;break;case = "'":if(i("'"))l+=3D"'";else = u=3Dtrue;break;default:l+=3Da.charAt(j)}return = l},_possibleChars:function(a){for(var b=3D"",c=3Dfalse,=0A= e=3Dfunction(h){(h=3Df+1<a.length&&a.charAt(f+1)=3D=3Dh)&&f++;return = h},f=3D0;f<a.length;f++)if(c)if(a.charAt(f)=3D=3D"'"&&!e("'"))c=3Dfalse;e= lse b+=3Da.charAt(f);else switch(a.charAt(f)){case "d":case "m":case = "y":case "@":b+=3D"0123456789";break;case "D":case "M":return null;case = "'":if(e("'"))b+=3D"'";else = c=3Dtrue;break;default:b+=3Da.charAt(f)}return = b},_get:function(a,b){return = a.settings[b]!=3D=3Dundefined?a.settings[b]:this._defaults[b]},_setDateFr= omField:function(a,b){if(a.input.val()!=3Da.lastVal){var = c=3Dthis._get(a,"dateFormat"),=0A= e=3Da.lastVal=3Da.input?a.input.val():null,f,h;f=3Dh=3Dthis._getDefaultDa= te(a);var = i=3Dthis._getFormatConfig(a);try{f=3Dthis.parseDate(c,e,i)||h}catch(g){th= is.log(g);e=3Db?"":e}a.selectedDay=3Df.getDate();a.drawMonth=3Da.selected= Month=3Df.getMonth();a.drawYear=3Da.selectedYear=3Df.getFullYear();a.curr= entDay=3De?f.getDate():0;a.currentMonth=3De?f.getMonth():0;a.currentYear=3D= e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a)= {return = this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),n= ew Date))},=0A= _determineDate:function(a,b,c){var e=3Dfunction(h){var i=3Dnew = Date;i.setDate(i.getDate()+h);return i},f=3Dfunction(h){try{return = d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._= getFormatConfig(a))}catch(i){}var = g=3D(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new = Date,k=3Dg.getFullYear(),l=3Dg.getMonth();g=3Dg.getDate();for(var = u=3D/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,j=3Du.exec(h);j;){switch(j[2]||= "d"){case "d":case "D":g+=3DparseInt(j[1],10);break;case "w":case = "W":g+=3DparseInt(j[1],=0A= 10)*7;break;case "m":case = "M":l+=3DparseInt(j[1],10);g=3DMath.min(g,d.datepicker._getDaysInMonth(k,= l));break;case "y":case = "Y":k+=3DparseInt(j[1],10);g=3DMath.min(g,d.datepicker._getDaysInMonth(k,= l));break}j=3Du.exec(h)}return new = Date(k,l,g)};if(b=3D(b=3Db=3D=3Dnull?c:typeof = b=3D=3D"string"?f(b):typeof = b=3D=3D"number"?isNaN(b)?c:e(b):b)&&b.toString()=3D=3D"Invalid = Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMillisecond= s(0)}return = this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a)re= turn null;=0A= a.setHours(a.getHours()>12?a.getHours()+2:0);return = a},_setDate:function(a,b,c){var = e=3D!b,f=3Da.selectedMonth,h=3Da.selectedYear;b=3Dthis._restrictMinMax(a,= this._determineDate(a,b,new = Date));a.selectedDay=3Da.currentDay=3Db.getDate();a.drawMonth=3Da.selecte= dMonth=3Da.currentMonth=3Db.getMonth();a.drawYear=3Da.selectedYear=3Da.cu= rrentYear=3Db.getFullYear();if((f!=3Da.selectedMonth||h!=3Da.selectedYear= )&&!c)this._notifyChange(a);this._adjustInstDate(a);if(a.input)a.input.va= l(e?"":this._formatDate(a))},_getDate:function(a){return!a.currentYear||=0A= a.input&&a.input.val()=3D=3D""?null:this._daylightSavingAdjust(new = Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(= a){var b=3Dnew Date;b=3Dthis._daylightSavingAdjust(new = Date(b.getFullYear(),b.getMonth(),b.getDate()));var = c=3Dthis._get(a,"isRTL"),e=3Dthis._get(a,"showButtonPanel"),f=3Dthis._get= (a,"hideIfNoPrevNext"),h=3Dthis._get(a,"navigationAsDateFormat"),i=3Dthis= .._getNumberOfMonths(a),g=3Dthis._get(a,"showCurrentAtPos"),k=3Dthis._get(= a,"stepMonths"),l=3Di[0]!=3D1||i[1]!=3D1,u=3Dthis._daylightSavingAdjust(!= a.currentDay?=0A= new Date(9999,9,9):new = Date(a.currentYear,a.currentMonth,a.currentDay)),j=3Dthis._getMinMaxDate(= a,"min"),o=3Dthis._getMinMaxDate(a,"max");g=3Da.drawMonth-g;var = m=3Da.drawYear;if(g<0){g+=3D12;m-- }if(o){var = n=3Dthis._daylightSavingAdjust(new = Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=3Dj&&n<= j?j:n;this._daylightSavingAdjust(new = Date(m,g,1))>n;){g-- ;if(g<0){g=3D11;m-- }}}a.drawMonth=3Dg;a.drawYear=3Dm;= n=3Dthis._get(a,"prevText");n=3D!h?n:this.formatDate(n,this._daylightSavi= ngAdjust(new Date(m,g-k,1)),this._getFormatConfig(a));=0A= n=3Dthis._canAdjustMonth(a,-1,m,g)?'<a class=3D"ui-datepicker-prev = ui-corner-all" = onclick=3D"DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+k+", = 'M');\" title=3D\""+n+'"><span class=3D"ui-icon = ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a = class=3D"ui-datepicker-prev ui-corner-all ui-state-disabled" = title=3D"'+n+'"><span class=3D"ui-icon = ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var = r=3Dthis._get(a,"nextText");r=3D!h?r:this.formatDate(r,this._daylightSavi= ngAdjust(new Date(m,=0A= g+k,1)),this._getFormatConfig(a));f=3Dthis._canAdjustMonth(a,+1,m,g)?'<a = class=3D"ui-datepicker-next ui-corner-all" = onclick=3D"DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+k+", = 'M');\" title=3D\""+r+'"><span class=3D"ui-icon = ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a = class=3D"ui-datepicker-next ui-corner-all ui-state-disabled" = title=3D"'+r+'"><span class=3D"ui-icon = ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";k=3Dthis._get(= a,"currentText");r=3Dthis._get(a,"gotoCurrent")&&=0A= a.currentDay?u:b;k=3D!h?k:this.formatDate(k,r,this._getFormatConfig(a));h= =3D!a.inline?'<button type=3D"button" class=3D"ui-datepicker-close = ui-state-default ui-priority-primary ui-corner-all" = onclick=3D"DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"= closeText")+"</button>":"";e=3De?'<div class=3D"ui-datepicker-buttonpane = ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button = type=3D"button" class=3D"ui-datepicker-current ui-state-default = ui-priority-secondary ui-corner-all" onclick=3D"DP_jQuery_'+=0A= y+".datepicker._gotoToday('#"+a.id+"');\">"+k+"</button>":"")+(c?"":h)+"<= /div>":"";h=3DparseInt(this._get(a,"firstDay"),10);h=3DisNaN(h)?0:h;k=3Dt= his._get(a,"showWeek");r=3Dthis._get(a,"dayNames");this._get(a,"dayNamesS= hort");var = s=3Dthis._get(a,"dayNamesMin"),z=3Dthis._get(a,"monthNames"),v=3Dthis._ge= t(a,"monthNamesShort"),p=3Dthis._get(a,"beforeShowDay"),w=3Dthis._get(a,"= showOtherMonths"),G=3Dthis._get(a,"selectOtherMonths");this._get(a,"calcu= lateWeek");for(var = K=3Dthis._getDefaultDate(a),H=3D"",C=3D0;C<i[0];C++){for(var L=3D=0A= "",D=3D0;D<i[1];D++){var M=3Dthis._daylightSavingAdjust(new = Date(m,g,a.selectedDay)),t=3D" ui-corner-all",x=3D"";if(l){x+=3D'<div = class=3D"ui-datepicker-group';if(i[1]>1)switch(D){case 0:x+=3D" = ui-datepicker-group-first";t=3D" = ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=3D" = ui-datepicker-group-last";t=3D" = ui-corner-"+(c?"left":"right");break;default:x+=3D" = ui-datepicker-group-middle";t=3D"";break}x+=3D'">'}x+=3D'<div = class=3D"ui-datepicker-header ui-widget-header = ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&C=3D=3D0?c?=0A= f:n:"")+(/all|right/.test(t)&&C=3D=3D0?c?n:f:"")+this._generateMonthYearH= eader(a,g,m,j,o,C>0||D>0,z,v)+'</div><table = class=3D"ui-datepicker-calendar"><thead><tr>';var A=3Dk?'<th = class=3D"ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";f= or(t=3D0;t<7;t++){var q=3D(t+h)%7;A+=3D"<th"+((t+h+6)%7>=3D5?' = class=3D"ui-datepicker-week-end"':"")+'><span = title=3D"'+r[q]+'">'+s[q]+"</span></th>"}x+=3DA+"</tr></thead><tbody>";A=3D= this._getDaysInMonth(m,g);if(m=3D=3Da.selectedYear&&g=3D=3Da.selectedMont= h)a.selectedDay=3DMath.min(a.selectedDay,=0A= A);t=3D(this._getFirstDayOfMonth(m,g)-h+7)%7;A=3Dl?6:Math.ceil((t+A)/7);q= =3Dthis._daylightSavingAdjust(new Date(m,g,1-t));for(var = N=3D0;N<A;N++){x+=3D"<tr>";var O=3D!k?"":'<td = class=3D"ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>= ";for(t=3D0;t<7;t++){var = F=3Dp?p.apply(a.input?a.input[0]:null,[q]):[true,""],B=3Dq.getMonth()!=3D= g,I=3DB&&!G||!F[0]||j&&q<j||o&&q>o;O+=3D'<td = class=3D"'+((t+h+6)%7>=3D5?" ui-datepicker-week-end":"")+(B?" = ui-datepicker-other-month":"")+(q.getTime()=3D=3DM.getTime()&&g=3D=3Da.se= lectedMonth&&=0A= a._keyEvent||K.getTime()=3D=3Dq.getTime()&&K.getTime()=3D=3DM.getTime()?"= "+this._dayOverClass:"")+(I?" "+this._unselectableClass+" = ui-state-disabled":"")+(B&&!w?"":" = "+F[1]+(q.getTime()=3D=3Du.getTime()?" = "+this._currentClass:"")+(q.getTime()=3D=3Db.getTime()?" = ui-datepicker-today":""))+'"'+((!B||w)&&F[2]?' = title=3D"'+F[2]+'"':"")+(I?"":' = onclick=3D"DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth= ()+","+q.getFullYear()+', this);return = false;"')+">"+(B&&!w?" ":I?'<span = class=3D"ui-state-default">'+q.getDate()+=0A= "</span>":'<a class=3D"ui-state-default'+(q.getTime()=3D=3Db.getTime()?" = ui-state-highlight":"")+(q.getTime()=3D=3Du.getTime()?" = ui-state-active":"")+(B?" ui-priority-secondary":"")+'" = href=3D"#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=3Dthi= s._daylightSavingAdjust(q)}x+=3DO+"</tr>"}g++;if(g>11){g=3D0;m++}x+=3D"</= tbody></table>"+(l?"</div>"+(i[0]>0&&D=3D=3Di[1]-1?'<div = class=3D"ui-datepicker-row-break"></div>':""):"");L+=3Dx}H+=3DL}H+=3De+(d= ..browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe = src=3D"javascript:false;" class=3D"ui-datepicker-cover" = frameborder=3D"0"></iframe>':=0A= "");a._keyEvent=3Dfalse;return = H},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var = k=3Dthis._get(a,"changeMonth"),l=3Dthis._get(a,"changeYear"),u=3Dthis._ge= t(a,"showMonthAfterYear"),j=3D'<div = class=3D"ui-datepicker-title">',o=3D"";if(h||!k)o+=3D'<span = class=3D"ui-datepicker-month">'+i[b]+"</span>";else{i=3De&&e.getFullYear(= )=3D=3Dc;var m=3Df&&f.getFullYear()=3D=3Dc;o+=3D'<select = class=3D"ui-datepicker-month" = onchange=3D"DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', = this, 'M');\" onclick=3D\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+=0A= a.id+"');\">";for(var = n=3D0;n<12;n++)if((!i||n>=3De.getMonth())&&(!m||n<=3Df.getMonth()))o+=3D'= <option value=3D"'+n+'"'+(n=3D=3Db?' = selected=3D"selected"':"")+">"+g[n]+"</option>";o+=3D"</select>"}u||(j+=3D= o+(h||!(k&&l)?" ":""));if(h||!l)j+=3D'<span = class=3D"ui-datepicker-year">'+c+"</span>";else{g=3Dthis._get(a,"yearRang= e").split(":");var r=3D(new = Date).getFullYear();i=3Dfunction(s){s=3Ds.match(/c[+-].*/)?c+parseInt(s.s= ubstring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return = isNaN(s)?r:s};b=3Di(g[0]);g=3DMath.max(b,=0A= i(g[1]||""));b=3De?Math.max(b,e.getFullYear()):b;g=3Df?Math.min(g,f.getFu= llYear()):g;for(j+=3D'<select class=3D"ui-datepicker-year" = onchange=3D"DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', = this, 'Y');\" = onclick=3D\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";= b<=3Dg;b++)j+=3D'<option value=3D"'+b+'"'+(b=3D=3Dc?' = selected=3D"selected"':"")+">"+b+"</option>";j+=3D"</select>"}j+=3Dthis._= get(a,"yearSuffix");if(u)j+=3D(h||!(k&&l)?" ":"")+o;j+=3D"</div>";re= turn j},_adjustInstDate:function(a,b,c){var e=3D=0A= a.drawYear+(c=3D=3D"Y"?b:0),f=3Da.drawMonth+(c=3D=3D"M"?b:0);b=3DMath.min= (a.selectedDay,this._getDaysInMonth(e,f))+(c=3D=3D"D"?b:0);e=3Dthis._rest= rictMinMax(a,this._daylightSavingAdjust(new = Date(e,f,b)));a.selectedDay=3De.getDate();a.drawMonth=3Da.selectedMonth=3D= e.getMonth();a.drawYear=3Da.selectedYear=3De.getFullYear();if(c=3D=3D"M"|= |c=3D=3D"Y")this._notifyChange(a)},_restrictMinMax:function(a,b){var = c=3Dthis._getMinMaxDate(a,"min");a=3Dthis._getMinMaxDate(a,"max");b=3Dc&&= b<c?c:b;return b=3Da&&b>a?a:b},_notifyChange:function(a){var = b=3Dthis._get(a,=0A= "onChangeMonthYear");if(b)b.apply(a.input?a.input[0]:null,[a.selectedYear= ,a.selectedMonth+1,a])},_getNumberOfMonths:function(a){a=3Dthis._get(a,"n= umberOfMonths");return a=3D=3Dnull?[1,1]:typeof = a=3D=3D"number"?[1,a]:a},_getMinMaxDate:function(a,b){return = this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:functi= on(a,b){return 32-(new = Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new = Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var = f=3Dthis._getNumberOfMonths(a);=0A= c=3Dthis._daylightSavingAdjust(new = Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getF= ullYear(),c.getMonth()));return = this._isInRange(a,c)},_isInRange:function(a,b){var = c=3Dthis._getMinMaxDate(a,"min");a=3Dthis._getMinMaxDate(a,"max");return(= !c||b.getTime()>=3Dc.getTime())&&(!a||b.getTime()<=3Da.getTime())},_getFo= rmatConfig:function(a){var b=3Dthis._get(a,"shortYearCutoff");b=3Dtypeof = b!=3D"string"?b:(new = Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesS= hort:this._get(a,=0A= "dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._g= et(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDat= e:function(a,b,c,e){if(!b){a.currentDay=3Da.selectedDay;a.currentMonth=3D= a.selectedMonth;a.currentYear=3Da.selectedYear}b=3Db?typeof = b=3D=3D"object"?b:this._daylightSavingAdjust(new = Date(e,c,b)):this._daylightSavingAdjust(new = Date(a.currentYear,a.currentMonth,a.currentDay));return = this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});= d.fn.datepicker=3D=0A= function(a){if(!d.datepicker.initialized){d(document).mousedown(d.datepic= ker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepi= cker.initialized=3Dtrue}var = b=3DArray.prototype.slice.call(arguments,1);if(typeof = a=3D=3D"string"&&(a=3D=3D"isDisabled"||a=3D=3D"getDate"||a=3D=3D"widget")= )return = d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));= if(a=3D=3D"option"&&arguments.length=3D=3D2&&typeof = arguments[1]=3D=3D"string")return = d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b));=0A= return this.each(function(){typeof = a=3D=3D"string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this= ].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=3Dnew= J;d.datepicker.initialized=3Dfalse;d.datepicker.uuid=3D(new = Date).getTime();d.datepicker.version=3D"1.8.2";window["DP_jQuery_"+y]=3Dd= })(jQuery);=0A= (function(c){c.widget("ui.dialog",{options:{autoOpen:true,buttons:{},clos= eOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,= height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,m= odal:false,position:"center",resizable:true,show:null,stack:true,title:""= ,width:300,zIndex:1E3},_create:function(){this.originalTitle=3Dthis.eleme= nt.attr("title");var = a=3Dthis,b=3Da.options,d=3Db.title||a.originalTitle||" ",e=3Dc.ui.di= alog.getTitleId(a.element),g=3D(a.uiDialog=3Dc("<div></div>")).appendTo(d= ocument.body).hide().addClass("ui-dialog ui-widget ui-widget-content = ui-corner-all "+=0A= b.dialogClass).css({zIndex:b.zIndex}).attr("tabIndex",-1).css("outline",0= ).keydown(function(i){if(b.closeOnEscape&&i.keyCode&&i.keyCode=3D=3D=3Dc.= ui.keyCode.ESCAPE){a.close(i);i.preventDefault()}}).attr({role:"dialog","= aria-labelledby":e}).mousedown(function(i){a.moveToTop(false,i)});a.eleme= nt.show().removeAttr("title").addClass("ui-dialog-content = ui-widget-content").appendTo(g);var = f=3D(a.uiDialogTitlebar=3Dc("<div></div>")).addClass("ui-dialog-titlebar = ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(g),=0A= h=3Dc('<a href=3D"#"></a>').addClass("ui-dialog-titlebar-close = ui-corner-all").attr("role","button").hover(function(){h.addClass("ui-sta= te-hover")},function(){h.removeClass("ui-state-hover")}).focus(function()= {h.addClass("ui-state-focus")}).blur(function(){h.removeClass("ui-state-f= ocus")}).click(function(i){a.close(i);return = false}).appendTo(f);(a.uiDialogTitlebarCloseText=3Dc("<span></span>")).ad= dClass("ui-icon = ui-icon-closethick").text(b.closeText).appendTo(h);c("<span></span>").add= Class("ui-dialog-title").attr("id",=0A= e).html(d).prependTo(f);if(c.isFunction(b.beforeclose)&&!c.isFunction(b.b= eforeClose))b.beforeClose=3Db.beforeclose;f.find("*").add(f).disableSelec= tion();b.draggable&&c.fn.draggable&&a._makeDraggable();b.resizable&&c.fn.= resizable&&a._makeResizable();a._createButtons(b.buttons);a._isOpen=3Dfal= se;c.fn.bgiframe&&g.bgiframe()},_init:function(){this.options.autoOpen&&t= his.open()},destroy:function(){var = a=3Dthis;a.overlay&&a.overlay.destroy();a.uiDialog.hide();a.element.unbin= d(".dialog").removeData("dialog").removeClass("ui-dialog-content = ui-widget-content").hide().appendTo("body");=0A= a.uiDialog.remove();a.originalTitle&&a.element.attr("title",a.originalTit= le);return a},widget:function(){return = this.uiDialog},close:function(a){var = b=3Dthis,d;if(false!=3D=3Db._trigger("beforeClose",a)){b.overlay&&b.overl= ay.destroy();b.uiDialog.unbind("keypress.ui-dialog");b._isOpen=3Dfalse;if= (b.options.hide)b.uiDialog.hide(b.options.hide,function(){b._trigger("clo= se",a)});else{b.uiDialog.hide();b._trigger("close",a)}c.ui.dialog.overlay= ..resize();if(b.options.modal){d=3D0;c(".ui-dialog").each(function(){if(th= is!=3D=3D=0A= b.uiDialog[0])d=3DMath.max(d,c(this).css("z-index"))});c.ui.dialog.maxZ=3D= d}return b}},isOpen:function(){return = this._isOpen},moveToTop:function(a,b){var = d=3Dthis,e=3Dd.options;if(e.modal&&!a||!e.stack&&!e.modal)return = d._trigger("focus",b);if(e.zIndex>c.ui.dialog.maxZ)c.ui.dialog.maxZ=3De.z= Index;if(d.overlay){c.ui.dialog.maxZ+=3D1;d.overlay.$el.css("z-index",c.u= i.dialog.overlay.maxZ=3Dc.ui.dialog.maxZ)}a=3D{scrollTop:d.element.attr("= scrollTop"),scrollLeft:d.element.attr("scrollLeft")};c.ui.dialog.maxZ+=3D= 1;d.uiDialog.css("z-index",=0A= c.ui.dialog.maxZ);d.element.attr(a);d._trigger("focus",b);return = d},open:function(){if(!this._isOpen){var = a=3Dthis,b=3Da.options,d=3Da.uiDialog;a.overlay=3Db.modal?new = c.ui.dialog.overlay(a):null;d.next().length&&d.appendTo("body");a._size()= ;a._position(b.position);d.show(b.show);a.moveToTop(true);b.modal&&d.bind= ("keypress.ui-dialog",function(e){if(e.keyCode=3D=3D=3Dc.ui.keyCode.TAB){= var = g=3Dc(":tabbable",this),f=3Dg.filter(":first");g=3Dg.filter(":last");if(e= ..target=3D=3D=3Dg[0]&&!e.shiftKey){f.focus(1);return false}else = if(e.target=3D=3D=3D=0A= f[0]&&e.shiftKey){g.focus(1);return = false}}});c([]).add(d.find(".ui-dialog-content = :tabbable:first")).add(d.find(".ui-dialog-buttonpane = :tabbable:first")).add(d).filter(":first").focus();a._trigger("open");a._= isOpen=3Dtrue;return a}},_createButtons:function(a){var = b=3Dthis,d=3Dfalse,e=3Dc("<div></div>").addClass("ui-dialog-buttonpane = ui-widget-content = ui-helper-clearfix");b.uiDialog.find(".ui-dialog-buttonpane").remove();ty= peof = a=3D=3D=3D"object"&&a!=3D=3Dnull&&c.each(a,function(){return!(d=3Dtrue)})= ;if(d){c.each(a,=0A= function(g,f){g=3Dc('<button = type=3D"button"></button>').text(g).click(function(){f.apply(b.element[0]= ,arguments)}).appendTo(e);c.fn.button&&g.button()});e.appendTo(b.uiDialog= )}},_makeDraggable:function(){function = a(f){return{position:f.position,offset:f.offset}}var = b=3Dthis,d=3Db.options,e=3Dc(document),g;b.uiDialog.draggable({cancel:".u= i-dialog-content, = ..ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"docu= ment",start:function(f,h){g=3Dd.height=3D=3D=3D"auto"?"auto":c(this).heig= ht();c(this).height(c(this).height()).addClass("ui-dialog-dragging");=0A= b._trigger("dragStart",f,a(h))},drag:function(f,h){b._trigger("drag",f,a(= h))},stop:function(f,h){d.position=3D[h.position.left-e.scrollLeft(),h.po= sition.top-e.scrollTop()];c(this).removeClass("ui-dialog-dragging").heigh= t(g);b._trigger("dragStop",f,a(h));c.ui.dialog.overlay.resize()}})},_make= Resizable:function(a){function = b(f){return{originalPosition:f.originalPosition,originalSize:f.originalSi= ze,position:f.position,size:f.size}}a=3Da=3D=3D=3Dundefined?this.options.= resizable:a;var d=3Dthis,e=3Dd.options,g=3Dd.uiDialog.css("position");=0A= a=3Dtypeof = a=3D=3D=3D"string"?a:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:"= ..ui-dialog-content",containment:"document",alsoResize:d.element,maxWidth:= e.maxWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeig= ht(),handles:a,start:function(f,h){c(this).addClass("ui-dialog-resizing")= ;d._trigger("resizeStart",f,b(h))},resize:function(f,h){d._trigger("resiz= e",f,b(h))},stop:function(f,h){c(this).removeClass("ui-dialog-resizing");= e.height=3Dc(this).height();e.width=3Dc(this).width();d._trigger("resizeS= top",=0A= f,b(h));c.ui.dialog.overlay.resize()}}).css("position",g).find(".ui-resiz= able-se").addClass("ui-icon = ui-icon-grip-diagonal-se")},_minHeight:function(){var = a=3Dthis.options;return = a.height=3D=3D=3D"auto"?a.minHeight:Math.min(a.minHeight,a.height)},_posi= tion:function(a){var = b=3D[],d=3D[0,0];a=3Da||c.ui.dialog.prototype.options.position;if(typeof = a=3D=3D=3D"string"||typeof a=3D=3D=3D"object"&&"0"in = a){b=3Da.split?a.split(" = "):[a[0],a[1]];if(b.length=3D=3D=3D1)b[1]=3Db[0];c.each(["left","top"],fu= nction(e,g){if(+b[e]=3D=3D=3Db[e]){d[e]=3Db[e];b[e]=3D=0A= g}})}else if(typeof a=3D=3D=3D"object"){if("left"in = a){b[0]=3D"left";d[0]=3Da.left}else if("right"in = a){b[0]=3D"right";d[0]=3D-a.right}if("top"in = a){b[1]=3D"top";d[1]=3Da.top}else if("bottom"in = a){b[1]=3D"bottom";d[1]=3D-a.bottom}}(a=3Dthis.uiDialog.is(":visible"))||= this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:b.joi= n(" "),at:b.join(" "),offset:d.join(" = "),of:window,collision:"fit",using:function(e){var = g=3Dc(this).css(e).offset().top;g<0&&c(this).css("top",e.top-g)}});a||thi= s.uiDialog.hide()},_setOption:function(a,=0A= b){var = d=3Dthis,e=3Dd.uiDialog,g=3De.is(":data(resizable)"),f=3Dfalse;switch(a){= case "beforeclose":a=3D"beforeClose";break;case = "buttons":d._createButtons(b);break;case = "closeText":d.uiDialogTitlebarCloseText.text(""+b);break;case = "dialogClass":e.removeClass(d.options.dialogClass).addClass("ui-dialog = ui-widget ui-widget-content ui-corner-all "+b);break;case = "disabled":b?e.addClass("ui-dialog-disabled"):e.removeClass("ui-dialog-di= sabled");break;case = "draggable":b?d._makeDraggable():e.draggable("destroy");break;=0A= case "height":f=3Dtrue;break;case = "maxHeight":g&&e.resizable("option","maxHeight",b);f=3Dtrue;break;case = "maxWidth":g&&e.resizable("option","maxWidth",b);f=3Dtrue;break;case = "minHeight":g&&e.resizable("option","minHeight",b);f=3Dtrue;break;case = "minWidth":g&&e.resizable("option","minWidth",b);f=3Dtrue;break;case = "position":d._position(b);break;case = "resizable":g&&!b&&e.resizable("destroy");g&&typeof = b=3D=3D=3D"string"&&e.resizable("option","handles",b);!g&&b!=3D=3Dfalse&&= d._makeResizable(b);break;case "title":c(".ui-dialog-title",=0A= d.uiDialogTitlebar).html(""+(b||" "));break;case = "width":f=3Dtrue;break}c.Widget.prototype._setOption.apply(d,arguments);f= &&d._size()},_size:function(){var = a=3Dthis.options,b;this.element.css({width:"auto",minHeight:0,height:0});= b=3Dthis.uiDialog.css({height:"auto",width:a.width}).height();this.elemen= t.css(a.height=3D=3D=3D"auto"?{minHeight:Math.max(a.minHeight-b,0),height= :"auto"}:{minHeight:0,height:Math.max(a.height-b,0)}).show();this.uiDialo= g.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",=0A= this._minHeight())}});c.extend(c.ui.dialog,{version:"1.8.2",uuid:0,maxZ:0= ,getTitleId:function(a){a=3Da.attr("id");if(!a){this.uuid+=3D1;a=3Dthis.u= uid}return"ui-dialog-title-"+a},overlay:function(a){this.$el=3Dc.ui.dialo= g.overlay.create(a)}});c.extend(c.ui.dialog.overlay,{instances:[],oldInst= ances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,cl= ick".split(","),function(a){return a+".dialog-overlay"}).join(" = "),create:function(a){if(this.instances.length=3D=3D=3D0){setTimeout(func= tion(){c.ui.dialog.overlay.instances.length&&=0A= c(document).bind(c.ui.dialog.overlay.events,function(d){return = c(d.target).zIndex()>=3Dc.ui.dialog.overlay.maxZ})},1);c(document).bind("= keydown.dialog-overlay",function(d){if(a.options.closeOnEscape&&d.keyCode= &&d.keyCode=3D=3D=3Dc.ui.keyCode.ESCAPE){a.close(d);d.preventDefault()}})= ;c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var = b=3D(this.oldInstances.pop()||c("<div></div>").addClass("ui-widget-overla= y")).appendTo(document.body).css({width:this.width(),height:this.height()= });c.fn.bgiframe&&=0A= b.bgiframe();this.instances.push(b);return = b},destroy:function(a){this.oldInstances.push(this.instances.splice(c.inA= rray(a,this.instances),1)[0]);this.instances.length=3D=3D=3D0&&c([documen= t,window]).unbind(".dialog-overlay");a.remove();var = b=3D0;c.each(this.instances,function(){b=3DMath.max(b,this.css("z-index")= )});this.maxZ=3Db},height:function(){var = a,b;if(c.browser.msie&&c.browser.version<7){a=3DMath.max(document.documen= tElement.scrollHeight,document.body.scrollHeight);b=3DMath.max(document.d= ocumentElement.offsetHeight,=0A= document.body.offsetHeight);return = a<b?c(window).height()+"px":a+"px"}else return = c(document).height()+"px"},width:function(){var = a,b;if(c.browser.msie&&c.browser.version<7){a=3DMath.max(document.documen= tElement.scrollWidth,document.body.scrollWidth);b=3DMath.max(document.doc= umentElement.offsetWidth,document.body.offsetWidth);return = a<b?c(window).width()+"px":a+"px"}else return = c(document).width()+"px"},resize:function(){var = a=3Dc([]);c.each(c.ui.dialog.overlay.instances,function(){a=3Da.add(this)= });a.css({width:0,=0A= height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.over= lay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:functio= n(){c.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);=0A= (function(c){c.ui=3Dc.ui||{};var = m=3D/left|center|right/,n=3D/top|center|bottom/,p=3Dc.fn.position,q=3Dc.f= n.offset;c.fn.position=3Dfunction(a){if(!a||!a.of)return = p.apply(this,arguments);a=3Dc.extend({},a);var = b=3Dc(a.of),d=3D(a.collision||"flip").split(" = "),e=3Da.offset?a.offset.split(" = "):[0,0],g,h,i;if(a.of.nodeType=3D=3D=3D9){g=3Db.width();h=3Db.height();i= =3D{top:0,left:0}}else = if(a.of.scrollTo&&a.of.document){g=3Db.width();h=3Db.height();i=3D{top:b.= scrollTop(),left:b.scrollLeft()}}else = if(a.of.preventDefault){a.at=3D"left top";g=3Dh=3D=0A= 0;i=3D{top:a.of.pageY,left:a.of.pageX}}else{g=3Db.outerWidth();h=3Db.oute= rHeight();i=3Db.offset()}c.each(["my","at"],function(){var = f=3D(a[this]||"").split(" = ");if(f.length=3D=3D=3D1)f=3Dm.test(f[0])?f.concat(["center"]):n.test(f[0= ])?["center"].concat(f):["center","center"];f[0]=3Dm.test(f[0])?f[0]:"cen= ter";f[1]=3Dn.test(f[1])?f[1]:"center";a[this]=3Df});if(d.length=3D=3D=3D= 1)d[1]=3Dd[0];e[0]=3DparseInt(e[0],10)||0;if(e.length=3D=3D=3D1)e[1]=3De[= 0];e[1]=3DparseInt(e[1],10)||0;if(a.at[0]=3D=3D=3D"right")i.left+=3Dg;els= e if(a.at[0]=3D=3D=3D"center")i.left+=3D=0A= g/2;if(a.at[1]=3D=3D=3D"bottom")i.top+=3Dh;else = if(a.at[1]=3D=3D=3D"center")i.top+=3Dh/2;i.left+=3De[0];i.top+=3De[1];ret= urn this.each(function(){var = f=3Dc(this),k=3Df.outerWidth(),l=3Df.outerHeight(),j=3Dc.extend({},i);if(= a.my[0]=3D=3D=3D"right")j.left-=3Dk;else = if(a.my[0]=3D=3D=3D"center")j.left-=3Dk/2;if(a.my[1]=3D=3D=3D"bottom")j.t= op-=3Dl;else = if(a.my[1]=3D=3D=3D"center")j.top-=3Dl/2;j.left=3DparseInt(j.left);j.top=3D= parseInt(j.top);c.each(["left","top"],function(o,r){c.ui.position[d[o]]&&= c.ui.position[d[o]][r](j,{targetWidth:g,targetHeight:h,elemWidth:k,=0A= elemHeight:l,offset:e,my:a.my,at:a.at})});c.fn.bgiframe&&f.bgiframe();f.o= ffset(c.extend(j,{using:a.using}))})};c.ui.position=3D{fit:{left:function= (a,b){var = d=3Dc(window);b=3Da.left+b.elemWidth-d.width()-d.scrollLeft();a.left=3Db>= 0?a.left-b:Math.max(0,a.left)},top:function(a,b){var = d=3Dc(window);b=3Da.top+b.elemHeight-d.height()-d.scrollTop();a.top=3Db>0= ?a.top-b:Math.max(0,a.top)}},flip:{left:function(a,b){if(b.at[0]!=3D=3D"c= enter"){var = d=3Dc(window);d=3Da.left+b.elemWidth-d.width()-d.scrollLeft();var = e=3Db.my[0]=3D=3D=3D"left"?=0A= -b.elemWidth:b.my[0]=3D=3D=3D"right"?b.elemWidth:0,g=3D-2*b.offset[0];a.l= eft+=3Da.left<0?e+b.targetWidth+g:d>0?e-b.targetWidth+g:0}},top:function(= a,b){if(b.at[1]!=3D=3D"center"){var = d=3Dc(window);d=3Da.top+b.elemHeight-d.height()-d.scrollTop();var = e=3Db.my[1]=3D=3D=3D"top"?-b.elemHeight:b.my[1]=3D=3D=3D"bottom"?b.elemHe= ight:0,g=3Db.at[1]=3D=3D=3D"top"?b.targetHeight:-b.targetHeight,h=3D-2*b.= offset[1];a.top+=3Da.top<0?e+b.targetHeight+h:d>0?e+g+h:0}}}};if(!c.offse= t.setOffset){c.offset.setOffset=3Dfunction(a,b){if(/static/.test(c.curCSS= (a,"position")))a.style.position=3D=0A= "relative";var = d=3Dc(a),e=3Dd.offset(),g=3DparseInt(c.curCSS(a,"top",true),10)||0,h=3Dpa= rseInt(c.curCSS(a,"left",true),10)||0;e=3D{top:b.top-e.top+g,left:b.left-= e.left+h};"using"in = b?b.using.call(a,e):d.css(e)};c.fn.offset=3Dfunction(a){var = b=3Dthis[0];if(!b||!b.ownerDocument)return null;if(a)return = this.each(function(){c.offset.setOffset(this,a)});return = q.call(this)}}})(jQuery);=0A= (function(b){b.widget("ui.progressbar",{options:{value:0},_create:functio= n(){this.element.addClass("ui-progressbar ui-widget ui-widget-content = ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin()= ,"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.va= lueDiv=3Db("<div class=3D'ui-progressbar-value ui-widget-header = ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},des= troy:function(){this.element.removeClass("ui-progressbar ui-widget = ui-widget-content = ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr= ("aria-valuemax").removeAttr("aria-valuenow");=0A= this.valueDiv.remove();b.Widget.prototype.destroy.apply(this,arguments)},= value:function(a){if(a=3D=3D=3Dundefined)return = this._value();this._setOption("value",a);return = this},_setOption:function(a,c){switch(a){case = "value":this.options.value=3Dc;this._refreshValue();this._trigger("change= ");break}b.Widget.prototype._setOption.apply(this,arguments)},_value:func= tion(){var a=3Dthis.options.value;if(typeof = a!=3D=3D"number")a=3D0;if(a<this._valueMin())a=3Dthis._valueMin();if(a>th= is._valueMax())a=3Dthis._valueMax();return a},=0A= _valueMin:function(){return 0},_valueMax:function(){return = 100},_refreshValue:function(){var = a=3Dthis.value();this.valueDiv[a=3D=3D=3Dthis._valueMax()?"addClass":"rem= oveClass"]("ui-corner-right").width(a+"%");this.element.attr("aria-valuen= ow",a)}});b.extend(b.ui.progressbar,{version:"1.8.2"})})(jQuery);=0A= (function(d){d.widget("ui.slider",d.ui.mouse,{widgetEventPrefix:"slide",o= ptions:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",r= ange:false,step:1,value:0,values:null},_create:function(){var = a=3Dthis,b=3Dthis.options;this._mouseSliding=3Dthis._keySliding=3Dfalse;t= his._animateOff=3Dtrue;this._handleIndex=3Dnull;this._detectOrientation()= ;this._mouseInit();this.element.addClass("ui-slider = ui-slider-"+this.orientation+" ui-widget ui-widget-content = ui-corner-all");b.disabled&&this.element.addClass("ui-slider-disabled = ui-disabled");=0A= this.range=3Dd([]);if(b.range){if(b.range=3D=3D=3Dtrue){this.range=3Dd("<= div></div>");if(!b.values)b.values=3D[this._valueMin(),this._valueMin()];= if(b.values.length&&b.values.length!=3D=3D2)b.values=3D[b.values[0],b.val= ues[0]]}else = this.range=3Dd("<div></div>");this.range.appendTo(this.element).addClass(= "ui-slider-range");if(b.range=3D=3D=3D"min"||b.range=3D=3D=3D"max")this.r= ange.addClass("ui-slider-range-"+b.range);this.range.addClass("ui-widget-= header")}d(".ui-slider-handle",this.element).length=3D=3D=3D0&&d("<a = href=3D'#'></a>").appendTo(this.element).addClass("ui-slider-handle");=0A= if(b.values&&b.values.length)for(;d(".ui-slider-handle",this.element).len= gth<b.values.length;)d("<a = href=3D'#'></a>").appendTo(this.element).addClass("ui-slider-handle");thi= s.handles=3Dd(".ui-slider-handle",this.element).addClass("ui-state-defaul= t = ui-corner-all");this.handle=3Dthis.handles.eq(0);this.handles.add(this.ra= nge).filter("a").click(function(c){c.preventDefault()}).hover(function(){= b.disabled||d(this).addClass("ui-state-hover")},function(){d(this).remove= Class("ui-state-hover")}).focus(function(){if(b.disabled)d(this).blur();=0A= else{d(".ui-slider = ..ui-state-focus").removeClass("ui-state-focus");d(this).addClass("ui-stat= e-focus")}}).blur(function(){d(this).removeClass("ui-state-focus")});this= ..handles.each(function(c){d(this).data("index.ui-slider-handle",c)});this= ..handles.keydown(function(c){var = e=3Dtrue,f=3Dd(this).data("index.ui-slider-handle"),g,h,i;if(!a.options.d= isabled){switch(c.keyCode){case d.ui.keyCode.HOME:case = d.ui.keyCode.END:case d.ui.keyCode.PAGE_UP:case = d.ui.keyCode.PAGE_DOWN:case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:case = d.ui.keyCode.DOWN:case d.ui.keyCode.LEFT:e=3D=0A= false;if(!a._keySliding){a._keySliding=3Dtrue;d(this).addClass("ui-state-= active");g=3Da._start(c,f);if(g=3D=3D=3Dfalse)return}break}i=3Da.options.= step;g=3Da.options.values&&a.options.values.length?(h=3Da.values(f)):(h=3D= a.value());switch(c.keyCode){case = d.ui.keyCode.HOME:h=3Da._valueMin();break;case = d.ui.keyCode.END:h=3Da._valueMax();break;case = d.ui.keyCode.PAGE_UP:h=3Da._trimAlignValue(g+(a._valueMax()-a._valueMin()= )/5);break;case = d.ui.keyCode.PAGE_DOWN:h=3Da._trimAlignValue(g-(a._valueMax()-a._valueMin= ())/5);break;case d.ui.keyCode.UP:case d.ui.keyCode.RIGHT:if(g=3D=3D=3D=0A= a._valueMax())return;h=3Da._trimAlignValue(g+i);break;case = d.ui.keyCode.DOWN:case = d.ui.keyCode.LEFT:if(g=3D=3D=3Da._valueMin())return;h=3Da._trimAlignValue= (g-i);break}a._slide(c,f,h);return e}}).keyup(function(c){var = e=3Dd(this).data("index.ui-slider-handle");if(a._keySliding){a._keySlidin= g=3Dfalse;a._stop(c,e);a._change(c,e);d(this).removeClass("ui-state-activ= e")}});this._refreshValue();this._animateOff=3Dfalse},destroy:function(){= this.handles.remove();this.range.remove();this.element.removeClass("ui-sl= ider ui-slider-horizontal ui-slider-vertical ui-slider-disabled = ui-widget ui-widget-content = ui-corner-all").removeData("slider").unbind(".slider");=0A= this._mouseDestroy();return this},_mouseCapture:function(a){var = b=3Dthis.options,c,e,f,g,h,i;if(b.disabled)return = false;this.elementSize=3D{width:this.element.outerWidth(),height:this.ele= ment.outerHeight()};this.elementOffset=3Dthis.element.offset();c=3D{x:a.p= ageX,y:a.pageY};e=3Dthis._normValueFromMouse(c);f=3Dthis._valueMax()-this= .._valueMin()+1;h=3Dthis;this.handles.each(function(j){var = k=3DMath.abs(e-h.values(j));if(f>k){f=3Dk;g=3Dd(this);i=3Dj}});if(b.range= =3D=3D=3Dtrue&&this.values(1)=3D=3D=3Db.min){i+=3D1;g=3Dd(this.handles[i]= )}if(this._start(a,=0A= i)=3D=3D=3Dfalse)return = false;this._mouseSliding=3Dtrue;h._handleIndex=3Di;g.addClass("ui-state-a= ctive").focus();b=3Dg.offset();this._clickOffset=3D!d(a.target).parents()= ..andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:a.pageX-b.left-g.= width()/2,top:a.pageY-b.top-g.height()/2-(parseInt(g.css("borderTopWidth"= ),10)||0)-(parseInt(g.css("borderBottomWidth"),10)||0)+(parseInt(g.css("m= arginTop"),10)||0)};e=3Dthis._normValueFromMouse(c);this._slide(a,i,e);re= turn this._animateOff=3Dtrue},_mouseStart:function(){return true},=0A= _mouseDrag:function(a){var = b=3Dthis._normValueFromMouse({x:a.pageX,y:a.pageY});this._slide(a,this._h= andleIndex,b);return = false},_mouseStop:function(a){this.handles.removeClass("ui-state-active")= ;this._mouseSliding=3Dfalse;this._stop(a,this._handleIndex);this._change(= a,this._handleIndex);this._clickOffset=3Dthis._handleIndex=3Dnull;return = this._animateOff=3Dfalse},_detectOrientation:function(){this.orientation=3D= this.options.orientation=3D=3D=3D"vertical"?"vertical":"horizontal"},_nor= mValueFromMouse:function(a){var b;=0A= if(this.orientation=3D=3D=3D"horizontal"){b=3Dthis.elementSize.width;a=3D= a.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}= else{b=3Dthis.elementSize.height;a=3Da.y-this.elementOffset.top-(this._cl= ickOffset?this._clickOffset.top:0)}b=3Da/b;if(b>1)b=3D1;if(b<0)b=3D0;if(t= his.orientation=3D=3D=3D"vertical")b=3D1-b;a=3Dthis._valueMax()-this._val= ueMin();return = this._trimAlignValue(this._valueMin()+b*a)},_start:function(a,b){var = c=3D{handle:this.handles[b],value:this.value()};if(this.options.values&&t= his.options.values.length){c.value=3D=0A= this.values(b);c.values=3Dthis.values()}return = this._trigger("start",a,c)},_slide:function(a,b,c){var = e;if(this.options.values&&this.options.values.length){e=3Dthis.values(b?0= :1);if(this.options.values.length=3D=3D=3D2&&this.options.range=3D=3D=3Dt= rue&&(b=3D=3D=3D0&&c>e||b=3D=3D=3D1&&c<e))c=3De;if(c!=3D=3Dthis.values(b)= ){e=3Dthis.values();e[b]=3Dc;a=3Dthis._trigger("slide",a,{handle:this.han= dles[b],value:c,values:e});this.values(b?0:1);a!=3D=3Dfalse&&this.values(= b,c,true)}}else = if(c!=3D=3Dthis.value()){a=3Dthis._trigger("slide",a,{handle:this.handles= [b],=0A= value:c});a!=3D=3Dfalse&&this.value(c)}},_stop:function(a,b){var = c=3D{handle:this.handles[b],value:this.value()};if(this.options.values&&t= his.options.values.length){c.value=3Dthis.values(b);c.values=3Dthis.value= s()}this._trigger("stop",a,c)},_change:function(a,b){if(!this._keySliding= &&!this._mouseSliding){var = c=3D{handle:this.handles[b],value:this.value()};if(this.options.values&&t= his.options.values.length){c.value=3Dthis.values(b);c.values=3Dthis.value= s()}this._trigger("change",a,c)}},value:function(a){if(arguments.length){= this.options.value=3D=0A= this._trimAlignValue(a);this._refreshValue();this._change(null,0)}return = this._value()},values:function(a,b){var = c,e,f;if(arguments.length>1){this.options.values[a]=3Dthis._trimAlignValu= e(b);this._refreshValue();this._change(null,a)}if(arguments.length)if(d.i= sArray(arguments[0])){c=3Dthis.options.values;e=3Darguments[0];for(f=3D0;= f<c.length;f+=3D1){c[f]=3Dthis._trimAlignValue(e[f]);this._change(null,f)= }this._refreshValue()}else return = this.options.values&&this.options.values.length?this._values(a):this.valu= e();=0A= else return this._values()},_setOption:function(a,b){var = c,e=3D0;if(d.isArray(this.options.values))e=3Dthis.options.values.length;= d.Widget.prototype._setOption.apply(this,arguments);switch(a){case = "disabled":if(b){this.handles.filter(".ui-state-focus").blur();this.handl= es.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")= ;this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disab= led");this.element.removeClass("ui-disabled")}break;case = "orientation":this._detectOrientation();=0A= this.element.removeClass("ui-slider-horizontal = ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refres= hValue();break;case = "value":this._animateOff=3Dtrue;this._refreshValue();this._change(null,0)= ;this._animateOff=3Dfalse;break;case = "values":this._animateOff=3Dtrue;this._refreshValue();for(c=3D0;c<e;c+=3D= 1)this._change(null,c);this._animateOff=3Dfalse;break}},_value:function()= {var a=3Dthis.options.value;return = a=3Dthis._trimAlignValue(a)},_values:function(a){var = b,c;if(arguments.length){b=3Dthis.options.values[a];=0A= return = b=3Dthis._trimAlignValue(b)}else{b=3Dthis.options.values.slice();for(c=3D= 0;c<b.length;c+=3D1)b[c]=3Dthis._trimAlignValue(b[c]);return = b}},_trimAlignValue:function(a){if(a<this._valueMin())return = this._valueMin();if(a>this._valueMax())return this._valueMax();var = b=3Dthis.options.step>0?this.options.step:1,c=3Da%b;a=3Da-c;if(Math.abs(c= )*2>=3Db)a+=3Dc>0?b:-b;return = parseFloat(a.toFixed(5))},_valueMin:function(){return = this.options.min},_valueMax:function(){return = this.options.max},_refreshValue:function(){var a=3D=0A= this.options.range,b=3Dthis.options,c=3Dthis,e=3D!this._animateOff?b.anim= ate:false,f,g=3D{},h,i,j,k;if(this.options.values&&this.options.values.le= ngth)this.handles.each(function(l){f=3D(c.values(l)-c._valueMin())/(c._va= lueMax()-c._valueMin())*100;g[c.orientation=3D=3D=3D"horizontal"?"left":"= bottom"]=3Df+"%";d(this).stop(1,1)[e?"animate":"css"](g,b.animate);if(c.o= ptions.range=3D=3D=3Dtrue)if(c.orientation=3D=3D=3D"horizontal"){if(l=3D=3D= =3D0)c.range.stop(1,1)[e?"animate":"css"]({left:f+"%"},b.animate);if(l=3D= =3D=3D1)c.range[e?"animate":"css"]({width:f-=0A= h+"%"},{queue:false,duration:b.animate})}else{if(l=3D=3D=3D0)c.range.stop= (1,1)[e?"animate":"css"]({bottom:f+"%"},b.animate);if(l=3D=3D=3D1)c.range= [e?"animate":"css"]({height:f-h+"%"},{queue:false,duration:b.animate})}h=3D= f});else{i=3Dthis.value();j=3Dthis._valueMin();k=3Dthis._valueMax();f=3Dk= !=3D=3Dj?(i-j)/(k-j)*100:0;g[c.orientation=3D=3D=3D"horizontal"?"left":"b= ottom"]=3Df+"%";this.handle.stop(1,1)[e?"animate":"css"](g,b.animate);if(= a=3D=3D=3D"min"&&this.orientation=3D=3D=3D"horizontal")this.range.stop(1,= 1)[e?"animate":"css"]({width:f+"%"},=0A= b.animate);if(a=3D=3D=3D"max"&&this.orientation=3D=3D=3D"horizontal")this= ..range[e?"animate":"css"]({width:100-f+"%"},{queue:false,duration:b.anima= te});if(a=3D=3D=3D"min"&&this.orientation=3D=3D=3D"vertical")this.range.s= top(1,1)[e?"animate":"css"]({height:f+"%"},b.animate);if(a=3D=3D=3D"max"&= &this.orientation=3D=3D=3D"vertical")this.range[e?"animate":"css"]({heigh= t:100-f+"%"},{queue:false,duration:b.animate})}}});d.extend(d.ui.slider,{= version:"1.8.2"})})(jQuery);=0A= (function(d){function s(){return++u}function v(){return++w}var = u=3D0,w=3D0;d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:= false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,= event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div><= /div>",remove:null,select:null,show:null,spinner:"<em>Loading…</em>= ",tabTemplate:'<li><a = href=3D"#{href}"><span>#{label}</span></a></li>'},_create:function(){this= .._tabify(true)},_setOption:function(c,e){if(c=3D=3D"selected")this.option= s.collapsible&&=0A= e=3D=3Dthis.options.selected||this.select(e);else{this.options[c]=3De;thi= s._tabify()}},_tabId:function(c){return = c.title&&c.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||th= is.options.idPrefix+s()},_sanitizeSelector:function(c){return = c.replace(/:/g,"\\:")},_cookie:function(){var = c=3Dthis.cookie||(this.cookie=3Dthis.options.cookie.name||"ui-tabs-"+v())= ;return = d.cookie.apply(null,[c].concat(d.makeArray(arguments)))},_ui:function(c,e= ){return{tab:c,panel:e,index:this.anchors.index(c)}},_cleanup:function(){= this.lis.filter(".ui-state-processing").removeClass("ui-state-processing"= ).find("span:data(label.tabs)").each(function(){var c=3D=0A= d(this);c.html(c.data("label.tabs")).removeData("label.tabs")})},_tabify:= function(c){function = e(g,f){g.css({display:""});!d.support.opacity&&f.opacity&&g[0].style.remo= veAttribute("filter")}this.list=3Dthis.element.find("ol,ul").eq(0);this.l= is=3Dd("li:has(a[href])",this.list);this.anchors=3Dthis.lis.map(function(= ){return d("a",this)[0]});this.panels=3Dd([]);var = a=3Dthis,b=3Dthis.options,h=3D/^#.+/;this.anchors.each(function(g,f){var = j=3Dd(f).attr("href"),l=3Dj.split("#")[0],p;if(l&&(l=3D=3D=3Dlocation.toS= tring().split("#")[0]||=0A= (p=3Dd("base")[0])&&l=3D=3D=3Dp.href)){j=3Df.hash;f.href=3Dj}if(h.test(j)= )a.panels=3Da.panels.add(a._sanitizeSelector(j));else = if(j!=3D"#"){d.data(f,"href.tabs",j);d.data(f,"load.tabs",j.replace(/#.*$= /,""));j=3Da._tabId(f);f.href=3D"#"+j;f=3Dd("#"+j);if(!f.length){f=3Dd(b.= panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content = ui-corner-bottom").insertAfter(a.panels[g-1]||a.list);f.data("destroy.tab= s",true)}a.panels=3Da.panels.add(f)}else = b.disabled.push(g)});if(c){this.element.addClass("ui-tabs ui-widget = ui-widget-content ui-corner-all");=0A= this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix = ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default = ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content = ui-corner-bottom");if(b.selected=3D=3D=3Dundefined){location.hash&&this.a= nchors.each(function(g,f){if(f.hash=3D=3Dlocation.hash){b.selected=3Dg;re= turn false}});if(typeof = b.selected!=3D"number"&&b.cookie)b.selected=3DparseInt(a._cookie(),10);if= (typeof = b.selected!=3D"number"&&this.lis.filter(".ui-tabs-selected").length)b.sel= ected=3D=0A= this.lis.index(this.lis.filter(".ui-tabs-selected"));b.selected=3Db.selec= ted||(this.lis.length?0:-1)}else = if(b.selected=3D=3D=3Dnull)b.selected=3D-1;b.selected=3Db.selected>=3D0&&= this.anchors[b.selected]||b.selected<0?b.selected:0;b.disabled=3Dd.unique= (b.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(g= ){return = a.lis.index(g)}))).sort();d.inArray(b.selected,b.disabled)!=3D-1&&b.disab= led.splice(d.inArray(b.selected,b.disabled),1);this.panels.addClass("ui-t= abs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");=0A= if(b.selected>=3D0&&this.anchors.length){this.panels.eq(b.selected).remov= eClass("ui-tabs-hide");this.lis.eq(b.selected).addClass("ui-tabs-selected= = ui-state-active");a.element.queue("tabs",function(){a._trigger("show",nul= l,a._ui(a.anchors[b.selected],a.panels[b.selected]))});this.load(b.select= ed)}d(window).bind("unload",function(){a.lis.add(a.anchors).unbind(".tabs= ");a.lis=3Da.anchors=3Da.panels=3Dnull})}else = b.selected=3Dthis.lis.index(this.lis.filter(".ui-tabs-selected"));this.el= ement[b.collapsible?"addClass":=0A= "removeClass"]("ui-tabs-collapsible");b.cookie&&this._cookie(b.selected,b= ..cookie);c=3D0;for(var = i;i=3Dthis.lis[c];c++)d(i)[d.inArray(c,b.disabled)!=3D-1&&!d(i).hasClass(= "ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled");b.cach= e=3D=3D=3Dfalse&&this.anchors.removeData("cache.tabs");this.lis.add(this.= anchors).unbind(".tabs");if(b.event!=3D"mouseover"){var = k=3Dfunction(g,f){f.is(":not(.ui-state-disabled)")&&f.addClass("ui-state-= "+g)},n=3Dfunction(g,f){f.removeClass("ui-state-"+g)};this.lis.bind("mous= eover.tabs",=0A= function(){k("hover",d(this))});this.lis.bind("mouseout.tabs",function(){= n("hover",d(this))});this.anchors.bind("focus.tabs",function(){k("focus",= d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){n("focu= s",d(this).closest("li"))})}var = m,o;if(b.fx)if(d.isArray(b.fx)){m=3Db.fx[0];o=3Db.fx[1]}else = m=3Do=3Db.fx;var = q=3Do?function(g,f){d(g).closest("li").addClass("ui-tabs-selected = ui-state-active");f.hide().removeClass("ui-tabs-hide").animate(o,o.durati= on||"normal",function(){e(f,o);a._trigger("show",=0A= null,a._ui(g,f[0]))})}:function(g,f){d(g).closest("li").addClass("ui-tabs= -selected = ui-state-active");f.removeClass("ui-tabs-hide");a._trigger("show",null,a.= _ui(g,f[0]))},r=3Dm?function(g,f){f.animate(m,m.duration||"normal",functi= on(){a.lis.removeClass("ui-tabs-selected = ui-state-active");f.addClass("ui-tabs-hide");e(f,m);a.element.dequeue("ta= bs")})}:function(g,f){a.lis.removeClass("ui-tabs-selected = ui-state-active");f.addClass("ui-tabs-hide");a.element.dequeue("tabs")};t= his.anchors.bind(b.event+".tabs",=0A= function(){var = g=3Dthis,f=3Dd(this).closest("li"),j=3Da.panels.filter(":not(.ui-tabs-hid= e)"),l=3Dd(a._sanitizeSelector(this.hash));if(f.hasClass("ui-tabs-selecte= d")&&!b.collapsible||f.hasClass("ui-state-disabled")||f.hasClass("ui-stat= e-processing")||a._trigger("select",null,a._ui(this,l[0]))=3D=3D=3Dfalse)= {this.blur();return = false}b.selected=3Da.anchors.index(this);a.abort();if(b.collapsible)if(f.= hasClass("ui-tabs-selected")){b.selected=3D-1;b.cookie&&a._cookie(b.selec= ted,b.cookie);a.element.queue("tabs",function(){r(g,=0A= j)}).dequeue("tabs");this.blur();return false}else = if(!j.length){b.cookie&&a._cookie(b.selected,b.cookie);a.element.queue("t= abs",function(){q(g,l)});a.load(a.anchors.index(this));this.blur();return= = false}b.cookie&&a._cookie(b.selected,b.cookie);if(l.length){j.length&&a.e= lement.queue("tabs",function(){r(g,j)});a.element.queue("tabs",function()= {q(g,l)});a.load(a.anchors.index(this))}else throw"jQuery UI Tabs: = Mismatching fragment = identifier.";d.browser.msie&&this.blur()});this.anchors.bind("click.tabs"= ,=0A= function(){return false})},destroy:function(){var = c=3Dthis.options;this.abort();this.element.unbind(".tabs").removeClass("u= i-tabs ui-widget ui-widget-content ui-corner-all = ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-n= av ui-helper-reset ui-helper-clearfix ui-widget-header = ui-corner-all");this.anchors.each(function(){var = e=3Dd.data(this,"href.tabs");if(e)this.href=3De;var = a=3Dd(this).unbind(".tabs");d.each(["href","load","cache"],function(b,h){= a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).eac= h(function(){d.data(this,=0A= "destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default = ui-corner-top ui-tabs-selected ui-state-active ui-state-hover = ui-state-focus ui-state-disabled ui-tabs-panel ui-widget-content = ui-corner-bottom = ui-tabs-hide")});c.cookie&&this._cookie(null,c.cookie);return = this},add:function(c,e,a){if(a=3D=3D=3Dundefined)a=3Dthis.anchors.length;= var = b=3Dthis,h=3Dthis.options;e=3Dd(h.tabTemplate.replace(/#\{href\}/g,c).rep= lace(/#\{label\}/g,e));c=3D!c.indexOf("#")?c.replace("#",""):this._tabId(= d("a",e)[0]);e.addClass("ui-state-default = ui-corner-top").data("destroy.tabs",=0A= true);var = i=3Dd("#"+c);i.length||(i=3Dd(h.panelTemplate).attr("id",c).data("destroy= ..tabs",true));i.addClass("ui-tabs-panel ui-widget-content = ui-corner-bottom = ui-tabs-hide");if(a>=3Dthis.lis.length){e.appendTo(this.list);i.appendTo(= this.list[0].parentNode)}else{e.insertBefore(this.lis[a]);i.insertBefore(= this.panels[a])}h.disabled=3Dd.map(h.disabled,function(k){return = k>=3Da?++k:k});this._tabify();if(this.anchors.length=3D=3D1){h.selected=3D= 0;e.addClass("ui-tabs-selected = ui-state-active");i.removeClass("ui-tabs-hide");=0A= this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.ancho= rs[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this= ..anchors[a],this.panels[a]));return this},remove:function(c){var = e=3Dthis.options,a=3Dthis.lis.eq(c).remove(),b=3Dthis.panels.eq(c).remove= ();if(a.hasClass("ui-tabs-selected")&&this.anchors.length>1)this.select(c= +(c+1<this.anchors.length?1:-1));e.disabled=3Dd.map(d.grep(e.disabled,fun= ction(h){return h!=3Dc}),function(h){return = h>=3Dc?-- h:h});this._tabify();this._trigger("remove",=0A= null,this._ui(a.find("a")[0],b[0]));return this},enable:function(c){var = e=3Dthis.options;if(d.inArray(c,e.disabled)!=3D-1){this.lis.eq(c).removeC= lass("ui-state-disabled");e.disabled=3Dd.grep(e.disabled,function(a){retu= rn = a!=3Dc});this._trigger("enable",null,this._ui(this.anchors[c],this.panels= [c]));return this}},disable:function(c){var = e=3Dthis.options;if(c!=3De.selected){this.lis.eq(c).addClass("ui-state-di= sabled");e.disabled.push(c);e.disabled.sort();this._trigger("disable",nul= l,this._ui(this.anchors[c],this.panels[c]))}return this},=0A= select:function(c){if(typeof = c=3D=3D"string")c=3Dthis.anchors.index(this.anchors.filter("[href$=3D"+c+= "]"));else = if(c=3D=3D=3Dnull)c=3D-1;if(c=3D=3D-1&&this.options.collapsible)c=3Dthis.= options.selected;this.anchors.eq(c).trigger(this.options.event+".tabs");r= eturn this},load:function(c){var = e=3Dthis,a=3Dthis.options,b=3Dthis.anchors.eq(c)[0],h=3Dd.data(b,"load.ta= bs");this.abort();if(!h||this.element.queue("tabs").length!=3D=3D0&&d.dat= a(b,"cache.tabs"))this.element.dequeue("tabs");else{this.lis.eq(c).addCla= ss("ui-state-processing");=0A= if(a.spinner){var = i=3Dd("span",b);i.data("label.tabs",i.html()).html(a.spinner)}this.xhr=3D= d.ajax(d.extend({},a.ajaxOptions,{url:h,success:function(k,n){d(e._saniti= zeSelector(b.hash)).html(k);e._cleanup();a.cache&&d.data(b,"cache.tabs",t= rue);e._trigger("load",null,e._ui(e.anchors[c],e.panels[c]));try{a.ajaxOp= tions.success(k,n)}catch(m){}},error:function(k,n){e._cleanup();e._trigge= r("load",null,e._ui(e.anchors[c],e.panels[c]));try{a.ajaxOptions.error(k,= n,c,b)}catch(m){}}}));e.element.dequeue("tabs");return this}},=0A= abort:function(){this.element.queue([]);this.panels.stop(false,true);this= ..element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xh= r){this.xhr.abort();delete this.xhr}this._cleanup();return = this},url:function(c,e){this.anchors.eq(c).removeData("cache.tabs").data(= "load.tabs",e);return this},length:function(){return = this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.2"});d.extend(d.u= i.tabs.prototype,{rotation:null,rotate:function(c,e){var = a=3Dthis,b=3Dthis.options,h=3Da._rotate||(a._rotate=3D=0A= function(i){clearTimeout(a.rotation);a.rotation=3DsetTimeout(function(){v= ar = k=3Db.selected;a.select(++k<a.anchors.length?k:0)},c);i&&i.stopPropagatio= n()});e=3Da._unrotate||(a._unrotate=3D!e?function(i){i.clientX&&a.rotate(= null)}:function(){t=3Db.selected;h()});if(c){this.element.bind("tabsshow"= ,h);this.anchors.bind(b.event+".tabs",e);h()}else{clearTimeout(a.rotation= );this.element.unbind("tabsshow",h);this.anchors.unbind(b.event+".tabs",e= );delete this._rotate;delete this._unrotate}return this}})})(jQuery);=0A= /* Polish initialisation for the jQuery UI date picker plugin. */=0A= /* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */=0A= jQuery(function($){=0A= jQuery.datepicker.regional['pl'] =3D {=0A= closeText: 'Zamknij',=0A= prevText: '<Poprzedni',=0A= nextText: 'Nast=C4=99pny>',=0A= currentText: 'Dzi=C5=9B',=0A= monthNames: = ['Stycze=C5=84','Luty','Marzec','Kwiecie=C5=84','Maj','Czerwiec',=0A= = 'Lipiec','Sierpie=C5=84','Wrzesie=C5=84','Pa=C5=BAdziernik','Listopad','G= rudzie=C5=84'],=0A= monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze',=0A= 'Lip','Sie','Wrz','Pa','Lis','Gru'],=0A= dayNames: = ['Niedziela','Poniedzia=C5=82ek','Wtorek','=C5=9Aroda','Czwartek','Pi=C4=85= tek','Sobota'],=0A= dayNamesShort: ['Nie','Pn','Wt','=C5=9Ar','Czw','Pt','So'],=0A= dayNamesMin: ['N','Pn','Wt','=C5=9Ar','Cz','Pt','So'],=0A= weekHeader: 'Tydz',=0A= dateFormat: 'yy-mm-dd',=0A= firstDay: 1,=0A= isRTL: false,=0A= showMonthAfterYear: false,=0A= yearSuffix: ''};=0A= jQuery.datepicker.setDefaults(jQuery.datepicker.regional['pl']);=0A= });=0A= =0A= /* /assets/731238022b09c33a/ctx/scripts/klawisze.js */;=0A= /* * Skrypt redefiniuje domy=C5=9Blne akcje dla klawiszy. Definicje = wykorzystuj=C4=85 bibliotek=C4=99 jQuery.=20 */ function zablokujEnter(event) {=20 if(event.which=3D=3D13) {=20 event.preventDefault();=20 }=20 } /* * Redefinicja zachowania dla zdarze=C5=84 po za=C5=82adowaniu strony.=20 */ jQuery(function() {=09 jQuery('form').keypress(zablokujEnter); jQuery('a').keydown(zablokujEnter); });=0A= /* /assets/731238022b09c33a/ctx/scripts/jquery-ui-1.8.18.custom.min.js = */;=0A= /*!=0A= * jQuery UI 1.8.18=0A= *=0A= * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT or GPL Version 2 licenses.=0A= * http://jquery.org/license=0A= *=0A= * http://docs.jquery.com/UI=0A= */(function(a,b){function = d(b){return!a(b).parents().andSelf().filter(function(){return = a.curCSS(this,"visibility")=3D=3D=3D"hidden"||a.expr.filters.hidden(this)= }).length}function c(b,c){var = e=3Db.nodeName.toLowerCase();if("area"=3D=3D=3De){var = f=3Db.parentNode,g=3Df.name,h;if(!b.href||!g||f.nodeName.toLowerCase()!=3D= =3D"map")return!1;h=3Da("img[usemap=3D#"+g+"]")[0];return!!h&&d(h)}return= (/input|select|textarea|button|object/.test(e)?!b.disabled:"a"=3D=3De?b.h= ref||c:c)&&d(b)}a.ui=3Da.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.= 8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMA= ND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,= ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL= :110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRA= CT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:= 9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a= ..fn.focus,focus:function(b,c){return typeof = b=3D=3D"number"?this.each(function(){var = d=3Dthis;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focu= s.apply(this,arguments)},scrollParent:function(){var = b;a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolu= te/.test(this.css("position"))?b=3Dthis.parents().filter(function(){retur= n/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|sc= roll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.c= urCSS(this,"overflow-x",1))}).eq(0):b=3Dthis.parents().filter(function(){= return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"ove= rflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(thi= s.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!=3D=3D= b)return this.css("zIndex",c);if(this.length){var = d=3Da(this[0]),e,f;while(d.length&&d[0]!=3D=3Ddocument){e=3Dd.css("positi= on");if(e=3D=3D=3D"absolute"||e=3D=3D=3D"relative"||e=3D=3D=3D"fixed"){f=3D= parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!=3D=3D0)return = f}d=3Dd.parent()}}return 0},disableSelection:function(){return = this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableS= election",function(a){a.preventDefault()})},enableSelection:function(){re= turn = this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function= (c,d){function = h(b,c,d,f){a.each(e,function(){c-=3DparseFloat(a.curCSS(b,"padding"+this,= !0))||0,d&&(c-=3DparseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&= (c-=3DparseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var = e=3Dd=3D=3D=3D"Width"?["Left","Right"]:["Top","Bottom"],f=3Dd.toLowerCase= (),g=3D{innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidt= h:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=3Dfunctio= n(c){if(c=3D=3D=3Db)return g["inner"+d].call(this);return = this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=3Df= unction(b,c){if(typeof b!=3D"number")return = g["outer"+d].call(this,b);return = this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.e= xpr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function= (b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var = d=3Da.attr(b,"tabindex"),e=3DisNaN(d);return(e||d>=3D0)&&c(b,!e)}}),a(fun= ction(){var = b=3Ddocument.body,c=3Db.appendChild(c=3Ddocument.createElement("div"));c.= offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,= borderWidth:0}),a.support.minHeight=3Dc.offsetHeight=3D=3D=3D100,a.suppor= t.selectstart=3D"onselectstart"in = c,b.removeChild(c).style.display=3D"none"}),a.extend(a.ui,{plugin:{add:fu= nction(b,c,d){var e=3Da.ui[b].prototype;for(var f in = d)e.plugins[f]=3De.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:funct= ion(a,b,c){var = d=3Da.plugins[b];if(!!d&&!!a.element[0].parentNode)for(var = e=3D0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},con= tains:function(a,b){return = document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!=3D=3D= b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")=3D=3D=3D= "hidden")return!1;var = d=3Dc&&c=3D=3D=3D"left"?"scrollLeft":"scrollTop",e=3D!1;if(b[d]>0)return!= 0;b[d]=3D1,e=3Db[d]>0,b[d]=3D0;return = e},isOverAxis:function(a,b,c){return = a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return = a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(jQuery);/*!=0A= * jQuery UI Widget 1.8.18=0A= *=0A= * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT or GPL Version 2 licenses.=0A= * http://jquery.org/license=0A= *=0A= * http://docs.jquery.com/UI/Widget=0A= */(function(a,b){if(a.cleanData){var = c=3Da.cleanData;a.cleanData=3Dfunction(b){for(var = d=3D0,e;(e=3Db[d])!=3Dnull;d++)try{a(e).triggerHandler("remove")}catch(f)= {}c(b)}}else{var d=3Da.fn.remove;a.fn.remove=3Dfunction(b,c){return = this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add(= [this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}})= ;return d.call(a(this),b,c)})}}a.widget=3Dfunction(b,c,d){var = e=3Db.split(".")[0],f;b=3Db.split(".")[1],f=3De+"-"+b,d||(d=3Dc,c=3Da.Wid= get),a.expr[":"][f]=3Dfunction(c){return!!a.data(c,b)},a[e]=3Da[e]||{},a[= e][b]=3Dfunction(a,b){arguments.length&&this._createWidget(a,b)};var = g=3Dnew = c;g.options=3Da.extend(!0,{},g.options),a[e][b].prototype=3Da.extend(!0,g= ,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEven= tPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bri= dge=3Dfunction(c,d){a.fn[c]=3Dfunction(e){var f=3Dtypeof = e=3D=3D"string",g=3DArray.prototype.slice.call(arguments,1),h=3Dthis;e=3D= !f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e;if(f&&e.charAt(0)=3D= =3D=3D"_")return h;f?this.each(function(){var = d=3Da.data(this,c),f=3Dd&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!=3D=3D= d&&f!=3D=3Db){h=3Df;return!1}}):this.each(function(){var = b=3Da.data(this,c);b?b.option(e||{})._init():a.data(this,c,new = d(e,this))});return = h}},a.Widget=3Dfunction(a,b){arguments.length&&this._createWidget(a,b)},a= ..Widget.prototype=3D{widgetName:"widget",widgetEventPrefix:"",options:{di= sabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),thi= s.element=3Da(c),this.options=3Da.extend(!0,{},this.options,this._getCrea= teOptions(),b);var = d=3Dthis;this.element.bind("remove."+this.widgetName,function(){d.destroy= ()}),this._create(),this._trigger("create"),this._init()},_getCreateOptio= ns:function(){return = a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:fun= ction(){},_init:function(){},destroy:function(){this.element.unbind("."+t= his.widgetName).removeData(this.widgetName),this.widget().unbind("."+this= ..widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass= +"-disabled "+"ui-state-disabled")},widget:function(){return = this.element},option:function(c,d){var = e=3Dc;if(arguments.length=3D=3D=3D0)return = a.extend({},this.options);if(typeof = c=3D=3D"string"){if(d=3D=3D=3Db)return = this.options[c];e=3D{},e[c]=3Dd}this._setOptions(e);return = this},_setOptions:function(b){var = c=3Dthis;a.each(b,function(a,b){c._setOption(a,b)});return = this},_setOption:function(a,b){this.options[a]=3Db,a=3D=3D=3D"disabled"&&= this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled= "+" "+"ui-state-disabled").attr("aria-disabled",b);return = this},enable:function(){return = this._setOption("disabled",!1)},disable:function(){return = this._setOption("disabled",!0)},_trigger:function(b,c,d){var = e,f,g=3Dthis.options[b];d=3Dd||{},c=3Da.Event(c),c.type=3D(b=3D=3D=3Dthis= ..widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=3Dt= his.element[0],f=3Dc.originalEvent;if(f)for(e in f)e in = c||(c[e]=3Df[e]);this.element.trigger(c,d);return!(a.isFunction(g)&&g.cal= l(this.element[0],c,d)=3D=3D=3D!1||c.isDefaultPrevented())}}})(jQuery);/*=0A= * jQuery UI Position 1.8.18=0A= *=0A= * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT or GPL Version 2 licenses.=0A= * http://jquery.org/license=0A= *=0A= * http://docs.jquery.com/UI/Position=0A= */(function(a,b){a.ui=3Da.ui||{};var = c=3D/left|center|right/,d=3D/top|center|bottom/,e=3D"center",f=3D{},g=3Da= ..fn.position,h=3Da.fn.offset;a.fn.position=3Dfunction(b){if(!b||!b.of)ret= urn g.apply(this,arguments);b=3Da.extend({},b);var = h=3Da(b.of),i=3Dh[0],j=3D(b.collision||"flip").split(" = "),k=3Db.offset?b.offset.split(" = "):[0,0],l,m,n;i.nodeType=3D=3D=3D9?(l=3Dh.width(),m=3Dh.height(),n=3D{to= p:0,left:0}):i.setTimeout?(l=3Dh.width(),m=3Dh.height(),n=3D{top:h.scroll= Top(),left:h.scrollLeft()}):i.preventDefault?(b.at=3D"left = top",l=3Dm=3D0,n=3D{top:b.of.pageY,left:b.of.pageX}):(l=3Dh.outerWidth(),= m=3Dh.outerHeight(),n=3Dh.offset()),a.each(["my","at"],function(){var = a=3D(b[this]||"").split(" = ");a.length=3D=3D=3D1&&(a=3Dc.test(a[0])?a.concat([e]):d.test(a[0])?[e].c= oncat(a):[e,e]),a[0]=3Dc.test(a[0])?a[0]:e,a[1]=3Dd.test(a[1])?a[1]:e,b[t= his]=3Da}),j.length=3D=3D=3D1&&(j[1]=3Dj[0]),k[0]=3DparseInt(k[0],10)||0,= k.length=3D=3D=3D1&&(k[1]=3Dk[0]),k[1]=3DparseInt(k[1],10)||0,b.at[0]=3D=3D= =3D"right"?n.left+=3Dl:b.at[0]=3D=3D=3De&&(n.left+=3Dl/2),b.at[1]=3D=3D=3D= "bottom"?n.top+=3Dm:b.at[1]=3D=3D=3De&&(n.top+=3Dm/2),n.left+=3Dk[0],n.to= p+=3Dk[1];return this.each(function(){var = c=3Da(this),d=3Dc.outerWidth(),g=3Dc.outerHeight(),h=3DparseInt(a.curCSS(= this,"marginLeft",!0))||0,i=3DparseInt(a.curCSS(this,"marginTop",!0))||0,= o=3Dd+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=3Dg+i+(parseInt(= a.curCSS(this,"marginBottom",!0))||0),q=3Da.extend({},n),r;b.my[0]=3D=3D=3D= "right"?q.left-=3Dd:b.my[0]=3D=3D=3De&&(q.left-=3Dd/2),b.my[1]=3D=3D=3D"b= ottom"?q.top-=3Dg:b.my[1]=3D=3D=3De&&(q.top-=3Dg/2),f.fractions||(q.left=3D= Math.round(q.left),q.top=3DMath.round(q.top)),r=3D{left:q.left-h,top:q.to= p-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.positi= on[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,coll= isionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.= at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))}= )},a.ui.position=3D{fit:{left:function(b,c){var = d=3Da(window),e=3Dc.collisionPosition.left+c.collisionWidth-d.width()-d.s= crollLeft();b.left=3De>0?b.left-e:Math.max(b.left-c.collisionPosition.lef= t,b.left)},top:function(b,c){var = d=3Da(window),e=3Dc.collisionPosition.top+c.collisionHeight-d.height()-d.= scrollTop();b.top=3De>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.= top)}},flip:{left:function(b,c){if(c.at[0]!=3D=3De){var = d=3Da(window),f=3Dc.collisionPosition.left+c.collisionWidth-d.width()-d.s= crollLeft(),g=3Dc.my[0]=3D=3D=3D"left"?-c.elemWidth:c.my[0]=3D=3D=3D"righ= t"?c.elemWidth:0,h=3Dc.at[0]=3D=3D=3D"left"?c.targetWidth:-c.targetWidth,= i=3D-2*c.offset[0];b.left+=3Dc.collisionPosition.left<0?g+h+i:f>0?g+h+i:0= }},top:function(b,c){if(c.at[1]!=3D=3De){var = d=3Da(window),f=3Dc.collisionPosition.top+c.collisionHeight-d.height()-d.= scrollTop(),g=3Dc.my[1]=3D=3D=3D"top"?-c.elemHeight:c.my[1]=3D=3D=3D"bott= om"?c.elemHeight:0,h=3Dc.at[1]=3D=3D=3D"top"?c.targetHeight:-c.targetHeig= ht,i=3D-2*c.offset[1];b.top+=3Dc.collisionPosition.top<0?g+h+i:f>0?g+h+i:= 0}}}},a.offset.setOffset||(a.offset.setOffset=3Dfunction(b,c){/static/.te= st(a.curCSS(b,"position"))&&(b.style.position=3D"relative");var = d=3Da(b),e=3Dd.offset(),f=3DparseInt(a.curCSS(b,"top",!0),10)||0,g=3Dpars= eInt(a.curCSS(b,"left",!0),10)||0,h=3D{top:c.top-e.top+f,left:c.left-e.le= ft+g};"using"in = c?c.using.call(b,h):d.css(h)},a.fn.offset=3Dfunction(b){var = c=3Dthis[0];if(!c||!c.ownerDocument)return null;if(b)return = this.each(function(){a.offset.setOffset(this,b)});return = h.call(this)}),function(){var = b=3Ddocument.getElementsByTagName("body")[0],c=3Ddocument.createElement("= div"),d,e,g,h,i;d=3Ddocument.createElement(b?"div":"body"),g=3D{visibilit= y:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.ext= end(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in = g)d.style[j]=3Dg[j];d.appendChild(c),e=3Db||document.documentElement,e.in= sertBefore(d,e.firstChild),c.style.cssText=3D"position: absolute; left: = 10.7432222px; top: 10.432325px; height: 30px; width: = 201px;",h=3Da(c).offset(function(a,b){return = b}).offset(),d.innerHTML=3D"",e.removeChild(d),i=3Dh.top+h.left+(b?2e3:0)= ,f.fractions=3Di>21&&i<22}()})(jQuery);/*=0A= * jQuery UI Autocomplete 1.8.18=0A= *=0A= * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT or GPL Version 2 licenses.=0A= * http://jquery.org/license=0A= *=0A= * http://docs.jquery.com/UI/Autocomplete=0A= *=0A= * Depends:=0A= * jquery.ui.core.js=0A= * jquery.ui.widget.js=0A= * jquery.ui.position.js=0A= */(function(a,b){var = c=3D0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,d= elay:300,minLength:1,position:{my:"left top",at:"left = bottom",collision:"none"},source:null},pending:0,_create:function(){var = b=3Dthis,c=3Dthis.element[0].ownerDocument,d;this.element.addClass("ui-au= tocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-= autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete"= ,function(c){if(!b.options.disabled&&!b.element.propAttr("readOnly")){d=3D= !1;var e=3Da.ui.keyCode;switch(c.keyCode){case = e.PAGE_UP:b._move("previousPage",c);break;case = e.PAGE_DOWN:b._move("nextPage",c);break;case = e.UP:b._move("previous",c),c.preventDefault();break;case = e.DOWN:b._move("next",c),c.preventDefault();break;case e.ENTER:case = e.NUMPAD_ENTER:b.menu.active&&(d=3D!0,c.preventDefault());case = e.TAB:if(!b.menu.active)return;b.menu.select(c);break;case = e.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.se= arching),b.searching=3DsetTimeout(function(){b.term!=3Db.element.val()&&(= b.selectedItem=3Dnull,b.search(null,c))},b.options.delay)}}}).bind("keypr= ess.autocomplete",function(a){d&&(d=3D!1,a.preventDefault())}).bind("focu= s.autocomplete",function(){b.options.disabled||(b.selectedItem=3Dnull,b.p= revious=3Db.element.val())}).bind("blur.autocomplete",function(a){b.optio= ns.disabled||(clearTimeout(b.searching),b.closing=3DsetTimeout(function()= {b.close(a),b._change(a)},150))}),this._initSource(),this.response=3Dfunc= tion(){return = b._response.apply(b,arguments)},this.menu=3Da("<ul></ul>").addClass("ui-a= utocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(f= unction(c){var = d=3Db.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTim= eout(function(){a(document).one("mousedown",function(c){c.target!=3D=3Db.= element[0]&&c.target!=3D=3Dd&&!a.ui.contains(d,c.target)&&b.close()})},1)= ,setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:functio= n(a,c){var = d=3Dc.item.data("item.autocomplete");!1!=3D=3Db._trigger("focus",a,{item:= d})&&/^key/.test(a.originalEvent.type)&&b.element.val(d.value)},selected:= function(a,d){var = e=3Dd.item.data("item.autocomplete"),f=3Db.previous;b.element[0]!=3D=3Dc.= activeElement&&(b.element.focus(),b.previous=3Df,setTimeout(function(){b.= previous=3Df,b.selectedItem=3De},1)),!1!=3D=3Db._trigger("select",a,{item= :e})&&b.element.val(e.value),b.term=3Db.element.val(),b.close(a),b.select= edItem=3De},blur:function(a,c){b.menu.element.is(":visible")&&b.element.v= al()!=3D=3Db.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+= 1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.eleme= nt.bgiframe(),b.beforeunloadHandler=3Dfunction(){b.element.removeAttr("au= tocomplete")},a(window).bind("beforeunload",b.beforeunloadHandler)},destr= oy:function(){this.element.removeClass("ui-autocomplete-input").removeAtt= r("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").remo= veAttr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("befo= reunload",this.beforeunloadHandler),a.Widget.prototype.destroy.call(this)= },_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,argum= ents),b=3D=3D=3D"source"&&this._initSource(),b=3D=3D=3D"appendTo"&&this.m= enu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b=3D=3D= =3D"disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var = b=3Dthis,d,e;a.isArray(this.options.source)?(d=3Dthis.options.source,this= ..source=3Dfunction(b,c){c(a.ui.autocomplete.filter(d,b.term))}):typeof = this.options.source=3D=3D"string"?(e=3Dthis.options.source,this.source=3D= function(d,f){b.xhr&&b.xhr.abort(),b.xhr=3Da.ajax({url:e,data:d,dataType:= "json",context:{autocompleteRequest:++c},success:function(a,b){this.autoc= ompleteRequest=3D=3D=3Dc&&f(a)},error:function(){this.autocompleteRequest= =3D=3D=3Dc&&f([])}})}):this.source=3Dthis.options.source},search:function= (a,b){a=3Da!=3Dnull?a:this.element.val(),this.term=3Dthis.element.val();i= f(a.length<this.options.minLength)return = this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!=3D= =3D!1)return = this._search(a)},_search:function(a){this.pending++,this.element.addClass= ("ui-autocomplete-loading"),this.source({term:a},this.response)},_respons= e:function(a){!this.options.disabled&&a&&a.length?(a=3Dthis._normalize(a)= ,this._suggest(a),this._trigger("open")):this.close(),this.pending-- ,this= ..pending||this.element.removeClass("ui-autocomplete-loading")},close:func= tion(a){clearTimeout(this.closing),this.menu.element.is(":visible")&&(thi= s.menu.element.hide(),this.menu.deactivate(),this._trigger("close",a))},_= change:function(a){this.previous!=3D=3Dthis.element.val()&&this._trigger(= "change",a,{item:this.selectedItem})},_normalize:function(b){if(b.length&= &b[0].label&&b[0].value)return b;return a.map(b,function(b){if(typeof = b=3D=3D"string")return{label:b,value:b};return = a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:f= unction(b){var = c=3Dthis.menu.element.empty().zIndex(this.element.zIndex()+1);this._rende= rMenu(c,b),this.menu.deactivate(),this.menu.refresh(),c.show(),this._resi= zeMenu(),c.position(a.extend({of:this.element},this.options.position)),th= is.options.autoFocus&&this.menu.next(new = a.Event("mouseover"))},_resizeMenu:function(){var = a=3Dthis.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,th= is.element.outerWidth()))},_renderMenu:function(b,c){var = d=3Dthis;a.each(c,function(a,c){d._renderItem(b,c)})},_renderItem:functio= n(b,c){return = a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.lab= el)).appendTo(b)},_move:function(a,b){if(!this.menu.element.is(":visible"= ))this.search(null,b);else{if(this.menu.first()&&/^previous/.test(a)||thi= s.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.dea= ctivate();return}this.menu[a](b)}},widget:function(){return = this.menu.element}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){= return = a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var = d=3Dnew RegExp(a.ui.autocomplete.escapeRegex(c),"i");return = a.grep(b,function(a){return = d.test(a.label||a.value||a)})}})})(jQuery),function(a){a.widget("ui.menu"= ,{_create:function(){var b=3Dthis;this.element.addClass("ui-menu = ui-widget ui-widget-content = ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-m= enuitem"}).click(function(c){!a(c.target).closest(".ui-menu-item = a").length||(c.preventDefault(),b.select(c))}),this.refresh()},refresh:fu= nction(){var = b=3Dthis,c=3Dthis.element.children("li:not(.ui-menu-item):has(a)").addCla= ss("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-c= orner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(thi= s).parent())}).mouseleave(function(){b.deactivate()})},activate:function(= a,b){this.deactivate();if(this.hasScroll()){var = c=3Db.offset().top-this.element.offset().top,d=3Dthis.element.scrollTop()= ,e=3Dthis.element.height();c<0?this.element.scrollTop(d+c):c>=3De&&this.e= lement.scrollTop(d+c-e+b.height())}this.active=3Db.eq(0).children("a").ad= dClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trig= ger("focus",a,{item:b})},deactivate:function(){!this.active||(this.active= ..children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigg= er("blur"),this.active=3Dnull)},next:function(a){this.move("next",".ui-me= nu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:l= ast",a)},first:function(){return = this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(= ){return = this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(= a,b,c){if(!this.active)this.activate(c,this.element.children(b));else{var= = d=3Dthis.active[a+"All"](".ui-menu-item").eq(0);d.length?this.activate(c,= d):this.activate(c,this.element.children(b))}},nextPage:function(b){if(th= is.hasScroll()){if(!this.active||this.last()){this.activate(b,this.elemen= t.children(".ui-menu-item:first"));return}var = c=3Dthis.active.offset().top,d=3Dthis.element.height(),e=3Dthis.element.c= hildren(".ui-menu-item").filter(function(){var = b=3Da(this).offset().top-c-d+a(this).height();return = b<10&&b>-10});e.length||(e=3Dthis.element.children(".ui-menu-item:last"))= ,this.activate(b,e)}else = this.activate(b,this.element.children(".ui-menu-item").filter(!this.activ= e||this.last()?":first":":last"))},previousPage:function(b){if(this.hasSc= roll()){if(!this.active||this.first()){this.activate(b,this.element.child= ren(".ui-menu-item:last"));return}var = c=3Dthis.active.offset().top,d=3Dthis.element.height();result=3Dthis.elem= ent.children(".ui-menu-item").filter(function(){var = b=3Da(this).offset().top-c+d-a(this).height();return = b<10&&b>-10}),result.length||(result=3Dthis.element.children(".ui-menu-it= em:first")),this.activate(b,result)}else = this.activate(b,this.element.children(".ui-menu-item").filter(!this.activ= e||this.first()?":last":":first"))},hasScroll:function(){return = this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight= ")},select:function(a){this._trigger("selected",a,{item:this.active})}})}= (jQuery);/*=0A= * jQuery UI Dialog 1.8.18=0A= *=0A= * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)=0A= * Dual licensed under the MIT or GPL Version 2 licenses.=0A= * http://jquery.org/license=0A= *=0A= * http://docs.jquery.com/UI/Dialog=0A= *=0A= * Depends:=0A= * jquery.ui.core.js=0A= * jquery.ui.widget.js=0A= * jquery.ui.button.js=0A= * jquery.ui.draggable.js=0A= * jquery.ui.mouse.js=0A= * jquery.ui.position.js=0A= * jquery.ui.resizable.js=0A= */(function(a,b){var c=3D"ui-dialog ui-widget ui-widget-content = ui-corner-all = ",d=3D{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidt= h:!0,width:!0},e=3D{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},f=3D= a.attrFn||{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offse= t:!0,click:!0};a.widget("ui.dialog",{options:{autoOpen:!0,buttons:{},clos= eOnEscape:!0,closeText:"close",dialogClass:"",draggable:!0,hide:null,heig= ht:"auto",maxHeight:!1,maxWidth:!1,minHeight:150,minWidth:150,modal:!1,po= sition:{my:"center",at:"center",collision:"fit",using:function(b){var = c=3Da(this).css(b).offset().top;c<0&&a(this).css("top",b.top-c)}},resizab= le:!0,show:null,stack:!0,title:"",width:300,zIndex:1e3},_create:function(= ){this.originalTitle=3Dthis.element.attr("title"),typeof = this.originalTitle!=3D"string"&&(this.originalTitle=3D""),this.options.ti= tle=3Dthis.options.title||this.originalTitle;var = b=3Dthis,d=3Db.options,e=3Dd.title||" ",f=3Da.ui.dialog.getTitleId(b= ..element),g=3D(b.uiDialog=3Da("<div></div>")).appendTo(document.body).hid= e().addClass(c+d.dialogClass).css({zIndex:d.zIndex}).attr("tabIndex",-1).= css("outline",0).keydown(function(c){d.closeOnEscape&&!c.isDefaultPrevent= ed()&&c.keyCode&&c.keyCode=3D=3D=3Da.ui.keyCode.ESCAPE&&(b.close(c),c.pre= ventDefault())}).attr({role:"dialog","aria-labelledby":f}).mousedown(func= tion(a){b.moveToTop(!1,a)}),h=3Db.element.show().removeAttr("title").addC= lass("ui-dialog-content = ui-widget-content").appendTo(g),i=3D(b.uiDialogTitlebar=3Da("<div></div>"= )).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all = ui-helper-clearfix").prependTo(g),j=3Da('<a = href=3D"#"></a>').addClass("ui-dialog-titlebar-close = ui-corner-all").attr("role","button").hover(function(){j.addClass("ui-sta= te-hover")},function(){j.removeClass("ui-state-hover")}).focus(function()= {j.addClass("ui-state-focus")}).blur(function(){j.removeClass("ui-state-f= ocus")}).click(function(a){b.close(a);return!1}).appendTo(i),k=3D(b.uiDia= logTitlebarCloseText=3Da("<span></span>")).addClass("ui-icon = ui-icon-closethick").text(d.closeText).appendTo(j),l=3Da("<span></span>")= ..addClass("ui-dialog-title").attr("id",f).html(e).prependTo(i);a.isFuncti= on(d.beforeclose)&&!a.isFunction(d.beforeClose)&&(d.beforeClose=3Dd.befor= eclose),i.find("*").add(i).disableSelection(),d.draggable&&a.fn.draggable= &&b._makeDraggable(),d.resizable&&a.fn.resizable&&b._makeResizable(),b._c= reateButtons(d.buttons),b._isOpen=3D!1,a.fn.bgiframe&&g.bgiframe()},_init= :function(){this.options.autoOpen&&this.open()},destroy:function(){var = a=3Dthis;a.overlay&&a.overlay.destroy(),a.uiDialog.hide(),a.element.unbin= d(".dialog").removeData("dialog").removeClass("ui-dialog-content = ui-widget-content").hide().appendTo("body"),a.uiDialog.remove(),a.origina= lTitle&&a.element.attr("title",a.originalTitle);return = a},widget:function(){return this.uiDialog},close:function(b){var = c=3Dthis,d,e;if(!1!=3D=3Dc._trigger("beforeClose",b)){c.overlay&&c.overla= y.destroy(),c.uiDialog.unbind("keypress.ui-dialog"),c._isOpen=3D!1,c.opti= ons.hide?c.uiDialog.hide(c.options.hide,function(){c._trigger("close",b)}= ):(c.uiDialog.hide(),c._trigger("close",b)),a.ui.dialog.overlay.resize(),= c.options.modal&&(d=3D0,a(".ui-dialog").each(function(){this!=3D=3Dc.uiDi= alog[0]&&(e=3Da(this).css("z-index"),isNaN(e)||(d=3DMath.max(d,e)))}),a.u= i.dialog.maxZ=3Dd);return c}},isOpen:function(){return = this._isOpen},moveToTop:function(b,c){var = d=3Dthis,e=3Dd.options,f;if(e.modal&&!b||!e.stack&&!e.modal)return = d._trigger("focus",c);e.zIndex>a.ui.dialog.maxZ&&(a.ui.dialog.maxZ=3De.zI= ndex),d.overlay&&(a.ui.dialog.maxZ+=3D1,d.overlay.$el.css("z-index",a.ui.= dialog.overlay.maxZ=3Da.ui.dialog.maxZ)),f=3D{scrollTop:d.element.scrollT= op(),scrollLeft:d.element.scrollLeft()},a.ui.dialog.maxZ+=3D1,d.uiDialog.= css("z-index",a.ui.dialog.maxZ),d.element.attr(f),d._trigger("focus",c);r= eturn d},open:function(){if(!this._isOpen){var = b=3Dthis,c=3Db.options,d=3Db.uiDialog;b.overlay=3Dc.modal?new = a.ui.dialog.overlay(b):null,b._size(),b._position(c.position),d.show(c.sh= ow),b.moveToTop(!0),c.modal&&d.bind("keydown.ui-dialog",function(b){if(b.= keyCode=3D=3D=3Da.ui.keyCode.TAB){var = c=3Da(":tabbable",this),d=3Dc.filter(":first"),e=3Dc.filter(":last");if(b= ..target=3D=3D=3De[0]&&!b.shiftKey){d.focus(1);return!1}if(b.target=3D=3D=3D= d[0]&&b.shiftKey){e.focus(1);return!1}}}),a(b.element.find(":tabbable").g= et().concat(d.find(".ui-dialog-buttonpane = :tabbable").get().concat(d.get()))).eq(0).focus(),b._isOpen=3D!0,b._trigg= er("open");return b}},_createButtons:function(b){var = c=3Dthis,d=3D!1,e=3Da("<div></div>").addClass("ui-dialog-buttonpane = ui-widget-content = ui-helper-clearfix"),g=3Da("<div></div>").addClass("ui-dialog-buttonset")= ..appendTo(e);c.uiDialog.find(".ui-dialog-buttonpane").remove(),typeof = b=3D=3D"object"&&b!=3D=3Dnull&&a.each(b,function(){return!(d=3D!0)}),d&&(= a.each(b,function(b,d){d=3Da.isFunction(d)?{click:d,text:b}:d;var = e=3Da('<button = type=3D"button"></button>').click(function(){d.click.apply(c.element[0],a= rguments)}).appendTo(g);a.each(d,function(a,b){a!=3D=3D"click"&&(a in = f?e[a](b):e.attr(a,b))}),a.fn.button&&e.button()}),e.appendTo(c.uiDialog)= )},_makeDraggable:function(){function = f(a){return{position:a.position,offset:a.offset}}var = b=3Dthis,c=3Db.options,d=3Da(document),e;b.uiDialog.draggable({cancel:".u= i-dialog-content, = ..ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"docu= ment",start:function(d,g){e=3Dc.height=3D=3D=3D"auto"?"auto":a(this).heig= ht(),a(this).height(a(this).height()).addClass("ui-dialog-dragging"),b._t= rigger("dragStart",d,f(g))},drag:function(a,c){b._trigger("drag",a,f(c))}= ,stop:function(g,h){c.position=3D[h.position.left-d.scrollLeft(),h.positi= on.top-d.scrollTop()],a(this).removeClass("ui-dialog-dragging").height(e)= ,b._trigger("dragStop",g,f(h)),a.ui.dialog.overlay.resize()}})},_makeResi= zable:function(c){function = h(a){return{originalPosition:a.originalPosition,originalSize:a.originalSi= ze,position:a.position,size:a.size}}c=3Dc=3D=3D=3Db?this.options.resizabl= e:c;var d=3Dthis,e=3Dd.options,f=3Dd.uiDialog.css("position"),g=3Dtypeof = c=3D=3D"string"?c:"n,e,s,w,se,sw,ne,nw";d.uiDialog.resizable({cancel:".ui= -dialog-content",containment:"document",alsoResize:d.element,maxWidth:e.m= axWidth,maxHeight:e.maxHeight,minWidth:e.minWidth,minHeight:d._minHeight(= ),handles:g,start:function(b,c){a(this).addClass("ui-dialog-resizing"),d.= _trigger("resizeStart",b,h(c))},resize:function(a,b){d._trigger("resize",= a,h(b))},stop:function(b,c){a(this).removeClass("ui-dialog-resizing"),e.h= eight=3Da(this).height(),e.width=3Da(this).width(),d._trigger("resizeStop= ",b,h(c)),a.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-res= izable-se").addClass("ui-icon = ui-icon-grip-diagonal-se")},_minHeight:function(){var = a=3Dthis.options;return = a.height=3D=3D=3D"auto"?a.minHeight:Math.min(a.minHeight,a.height)},_posi= tion:function(b){var c=3D[],d=3D[0,0],e;if(b){if(typeof = b=3D=3D"string"||typeof b=3D=3D"object"&&"0"in b)c=3Db.split?b.split(" = "):[b[0],b[1]],c.length=3D=3D=3D1&&(c[1]=3Dc[0]),a.each(["left","top"],fu= nction(a,b){+c[a]=3D=3D=3Dc[a]&&(d[a]=3Dc[a],c[a]=3Db)}),b=3D{my:c.join("= "),at:c.join(" "),offset:d.join(" = ")};b=3Da.extend({},a.ui.dialog.prototype.options.position,b)}else = b=3Da.ui.dialog.prototype.options.position;e=3Dthis.uiDialog.is(":visible= "),e||this.uiDialog.show(),this.uiDialog.css({top:0,left:0}).position(a.e= xtend({of:window},b)),e||this.uiDialog.hide()},_setOptions:function(b){va= r c=3Dthis,f=3D{},g=3D!1;a.each(b,function(a,b){c._setOption(a,b),a in = d&&(g=3D!0),a in = e&&(f[a]=3Db)}),g&&this._size(),this.uiDialog.is(":data(resizable)")&&thi= s.uiDialog.resizable("option",f)},_setOption:function(b,d){var = e=3Dthis,f=3De.uiDialog;switch(b){case"beforeclose":b=3D"beforeClose";bre= ak;case"buttons":e._createButtons(d);break;case"closeText":e.uiDialogTitl= ebarCloseText.text(""+d);break;case"dialogClass":f.removeClass(e.options.= dialogClass).addClass(c+d);break;case"disabled":d?f.addClass("ui-dialog-d= isabled"):f.removeClass("ui-dialog-disabled");break;case"draggable":var = g=3Df.is(":data(draggable)");g&&!d&&f.draggable("destroy"),!g&&d&&e._make= Draggable();break;case"position":e._position(d);break;case"resizable":var= h=3Df.is(":data(resizable)");h&&!d&&f.resizable("destroy"),h&&typeof = d=3D=3D"string"&&f.resizable("option","handles",d),!h&&d!=3D=3D!1&&e._mak= eResizable(d);break;case"title":a(".ui-dialog-title",e.uiDialogTitlebar).= html(""+(d||" "))}a.Widget.prototype._setOption.apply(e,arguments)},= _size:function(){var = b=3Dthis.options,c,d,e=3Dthis.uiDialog.is(":visible");this.element.show()= ..css({width:"auto",minHeight:0,height:0}),b.minWidth>b.width&&(b.width=3D= b.minWidth),c=3Dthis.uiDialog.css({height:"auto",width:b.width}).height()= ,d=3DMath.max(0,b.minHeight-c);if(b.height=3D=3D=3D"auto")if(a.support.mi= nHeight)this.element.css({minHeight:d,height:"auto"});else{this.uiDialog.= show();var = f=3Dthis.element.css("height","auto").height();e||this.uiDialog.hide(),th= is.element.height(Math.max(f,d))}else = this.element.height(Math.max(b.height-c,0));this.uiDialog.is(":data(resiz= able)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}= }),a.extend(a.ui.dialog,{version:"1.8.18",uuid:0,maxZ:0,getTitleId:functi= on(a){var = b=3Da.attr("id");b||(this.uuid+=3D1,b=3Dthis.uuid);return"ui-dialog-title= -"+b},overlay:function(b){this.$el=3Da.ui.dialog.overlay.create(b)}}),a.e= xtend(a.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:a.m= ap("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(a= ){return a+".dialog-overlay"}).join(" = "),create:function(b){this.instances.length=3D=3D=3D0&&(setTimeout(functi= on(){a.ui.dialog.overlay.instances.length&&a(document).bind(a.ui.dialog.o= verlay.events,function(b){if(a(b.target).zIndex()<a.ui.dialog.overlay.max= Z)return!1})},1),a(document).bind("keydown.dialog-overlay",function(c){b.= options.closeOnEscape&&!c.isDefaultPrevented()&&c.keyCode&&c.keyCode=3D=3D= =3Da.ui.keyCode.ESCAPE&&(b.close(c),c.preventDefault())}),a(window).bind(= "resize.dialog-overlay",a.ui.dialog.overlay.resize));var = c=3D(this.oldInstances.pop()||a("<div></div>").addClass("ui-widget-overla= y")).appendTo(document.body).css({width:this.width(),height:this.height()= });a.fn.bgiframe&&c.bgiframe(),this.instances.push(c);return = c},destroy:function(b){var = c=3Da.inArray(b,this.instances);c!=3D-1&&this.oldInstances.push(this.inst= ances.splice(c,1)[0]),this.instances.length=3D=3D=3D0&&a([document,window= ]).unbind(".dialog-overlay"),b.remove();var = d=3D0;a.each(this.instances,function(){d=3DMath.max(d,this.css("z-index")= )}),this.maxZ=3Dd},height:function(){var = b,c;if(a.browser.msie&&a.browser.version<7){b=3DMath.max(document.documen= tElement.scrollHeight,document.body.scrollHeight),c=3DMath.max(document.d= ocumentElement.offsetHeight,document.body.offsetHeight);return = b<c?a(window).height()+"px":b+"px"}return = a(document).height()+"px"},width:function(){var = b,c;if(a.browser.msie){b=3DMath.max(document.documentElement.scrollWidth,= document.body.scrollWidth),c=3DMath.max(document.documentElement.offsetWi= dth,document.body.offsetWidth);return = b<c?a(window).width()+"px":b+"px"}return = a(document).width()+"px"},resize:function(){var = b=3Da([]);a.each(a.ui.dialog.overlay.instances,function(){b=3Db.add(this)= }),b.css({width:0,height:0}).css({width:a.ui.dialog.overlay.width(),heigh= t:a.ui.dialog.overlay.height()})}}),a.extend(a.ui.dialog.overlay.prototyp= e,{destroy:function(){a.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);=0A= ;/**/=0A= Tapestry.markScriptLibrariesLoaded([=0A= "/assets/731238022b09c33a/ctx/scripts/jquery-1.7.1.min.js",=0A= "/assets/731238022b09c33a/ctx/scripts/jquery-ui.min.js",=0A= "/assets/731238022b09c33a/ctx/scripts/klawisze.js",=0A= "/assets/731238022b09c33a/ctx/scripts/jquery-ui-1.8.18.custom.min.js"=0A= ]);=0A= -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scripts/iepngfix_tilebg.js // IE5.5+ PNG Alpha Fix v2.0 Alpha: Background Tiling Support // (c) 2008-2009 Angus Turnbull http://www.twinhelix.com // This is licensed under the GNU LGPL, version 2.1 or later. // For details, see: http://creativecommons.org/licenses/LGPL/2.1/ var IEPNGFix =3D window.IEPNGFix || {}; IEPNGFix.tileBG =3D function(elm, pngSrc, ready) { // Params: A reference to a DOM element, the PNG src file pathname, and = a // hidden "ready-to-run" passed when called back after image = preloading. var data =3D this.data[elm.uniqueID], elmW =3D Math.max(elm.clientWidth, elm.scrollWidth), elmH =3D Math.max(elm.clientHeight, elm.scrollHeight), bgX =3D elm.currentStyle.backgroundPositionX, bgY =3D elm.currentStyle.backgroundPositionY, bgR =3D elm.currentStyle.backgroundRepeat; // Cache of DIVs created per element, and image preloader/data. if (!data.tiles) { data.tiles =3D { elm: elm, src: '', cache: [], img: new Image(), old: {} }; } var tiles =3D data.tiles, pngW =3D tiles.img.width, pngH =3D tiles.img.height; if (pngSrc) { if (!ready && pngSrc !=3D tiles.src) { // New image? Preload it with a callback to detect dimensions. tiles.img.onload =3D function() { this.onload =3D null; IEPNGFix.tileBG(elm, pngSrc, 1); }; return tiles.img.src =3D pngSrc; } } else { // No image? if (tiles.src) ready =3D 1; pngW =3D pngH =3D 0; } tiles.src =3D pngSrc; if (!ready && elmW =3D=3D tiles.old.w && elmH =3D=3D tiles.old.h && bgX =3D=3D tiles.old.x && bgY =3D=3D tiles.old.y && bgR =3D=3D = tiles.old.r) { return; } // Convert English and percentage positions to pixels. var pos =3D { top: '0%', left: '0%', center: '50%', bottom: '100%', right: '100%' }, x, y, pc; x =3D pos[bgX] || bgX; y =3D pos[bgY] || bgY; if (pc =3D x.match(/(\d+)%/)) { x =3D Math.round((elmW - pngW) * (parseInt(pc[1]) / 100)); } if (pc =3D y.match(/(\d+)%/)) { y =3D Math.round((elmH - pngH) * (parseInt(pc[1]) / 100)); } x =3D parseInt(x); y =3D parseInt(y); // Handle backgroundRepeat. var repeatX =3D { 'repeat': 1, 'repeat-x': 1 }[bgR], repeatY =3D { 'repeat': 1, 'repeat-y': 1 }[bgR]; if (repeatX) { x %=3D pngW; if (x > 0) x -=3D pngW; } if (repeatY) { y %=3D pngH; if (y > 0) y -=3D pngH; } // Go! this.hook.enabled =3D 0; if (!({ relative: 1, absolute: 1 }[elm.currentStyle.position])) { elm.style.position =3D 'relative'; } var count =3D 0, xPos, maxX =3D repeatX ? elmW : x + 0.1, yPos, maxY =3D repeatY ? elmH : y + 0.1, d, s, isNew; if (pngW && pngH) { for (xPos =3D x; xPos < maxX; xPos +=3D pngW) { for (yPos =3D y; yPos < maxY; yPos +=3D pngH) { isNew =3D 0; if (!tiles.cache[count]) { tiles.cache[count] =3D document.createElement('div'); isNew =3D 1; } var clipR =3D Math.max(0, xPos + pngW > elmW ? elmW - xPos : pngW), clipB =3D Math.max(0, yPos + pngH > elmH ? elmH - yPos : pngH); d =3D tiles.cache[count]; s =3D d.style; s.behavior =3D 'none'; s.left =3D (xPos - parseInt(elm.currentStyle.paddingLeft)) + 'px'; s.top =3D yPos + 'px'; s.width =3D clipR + 'px'; s.height =3D clipB + 'px'; s.clip =3D 'rect(' + (yPos < 0 ? 0 - yPos : 0) + 'px,' + clipR + 'px,' + clipB + 'px,' + (xPos < 0 ? 0 - xPos : 0) + 'px)'; s.display =3D 'block'; if (isNew) { s.position =3D 'absolute'; s.zIndex =3D -999; if (elm.firstChild) { elm.insertBefore(d, elm.firstChild); } else { elm.appendChild(d); } } this.fix(d, pngSrc, 0); count++; } } } while (count < tiles.cache.length) { this.fix(tiles.cache[count], '', 0); tiles.cache[count++].style.display =3D 'none'; } this.hook.enabled =3D 1; // Cache so updates are infrequent. tiles.old =3D { w: elmW, h: elmH, x: bgX, y: bgY, r: bgR }; }; IEPNGFix.update =3D function() { // Update all PNG backgrounds. for (var i in IEPNGFix.data) { var t =3D IEPNGFix.data[i].tiles; if (t && t.elm && t.src) { IEPNGFix.tileBG(t.elm, t.src); } } }; IEPNGFix.update.timer =3D 0; if (window.attachEvent && !window.opera) { window.attachEvent('onresize', function() { clearTimeout(IEPNGFix.update.timer); IEPNGFix.update.timer =3D setTimeout(IEPNGFix.update, 100); }); } -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: 7bit Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scripts/draggable-dialog.js jQuery(function(){ jQuery(".dialog").css("cursor", "move"); jQuery(".dialog").draggable(); }); -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/window/window.js // Copyright (c) 2006 S=C3=A9bastien Gruhier (http://xilinus.com, = http://itseb.com)=0A= // =0A= // Permission is hereby granted, free of charge, to any person obtaining=0A= // a copy of this software and associated documentation files (the=0A= // "Software"), to deal in the Software without restriction, including=0A= // without limitation the rights to use, copy, modify, merge, publish,=0A= // distribute, sublicense, and/or sell copies of the Software, and to=0A= // permit persons to whom the Software is furnished to do so, subject to=0A= // the following conditions:=0A= // =0A= // The above copyright notice and this permission notice shall be=0A= // included in all copies or substantial portions of the Software.=0A= //=0A= // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,=0A= // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF=0A= // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND=0A= // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE=0A= // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION=0A= // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION=0A= // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.=0A= //=0A= // VERSION 1.3=0A= =0A= var Window =3D Class.create();=0A= =0A= Window.keepMultiModalWindow =3D false;=0A= Window.hasEffectLib =3D (typeof Effect !=3D 'undefined');=0A= Window.resizeEffectDuration =3D 0.4;=0A= =0A= Window.prototype =3D {=0A= // Constructor=0A= // Available parameters : className, blurClassName, title, minWidth, = minHeight, maxWidth, maxHeight, width, height, top, left, bottom, right, = resizable, zIndex, opacity, recenterAuto, wiredDrag=0A= // hideEffect, showEffect, showEffectOptions, = hideEffectOptions, effectOptions, url, draggable, closable, minimizable, = maximizable, parent, onload=0A= // add all callbacks (if you do not use an = observer)=0A= // onDestroy onStartResize onStartMove onResize = onMove onEndResize onEndMove onFocus onBlur onBeforeShow onShow onHide = onMinimize onMaximize onClose=0A= =0A= initialize: function() {=0A= var id;=0A= var optionIndex =3D 0;=0A= // For backward compatibility like win=3D new Window("id", {...}) = instead of win =3D new Window({id: "id", ...})=0A= if (arguments.length > 0) {=0A= if (typeof arguments[0] =3D=3D "string" ) {=0A= id =3D arguments[0];=0A= optionIndex =3D 1;=0A= }=0A= else=0A= id =3D arguments[0] ? arguments[0].id : null;=0A= }=0A= =0A= // Generate unique ID if not specified=0A= if (!id)=0A= id =3D "window_" + new Date().getTime();=0A= =0A= if ($(id))=0A= alert("Window " + id + " is already registered in the DOM! Make = sure you use setDestroyOnClose() or destroyOnClose: true in the = constructor");=0A= =0A= this.options =3D Object.extend({=0A= className: "dialog",=0A= blurClassName: null,=0A= minWidth: 100, =0A= minHeight: 20,=0A= resizable: true,=0A= closable: true,=0A= minimizable: true,=0A= maximizable: true,=0A= draggable: true,=0A= userData: null,=0A= showEffect: (Window.hasEffectLib ? Effect.Appear : = Element.show),=0A= hideEffect: (Window.hasEffectLib ? Effect.Fade : = Element.hide),=0A= showEffectOptions: {},=0A= hideEffectOptions: {},=0A= effectOptions: null,=0A= parent: document.body,=0A= title: " ",=0A= url: null,=0A= onload: Prototype.emptyFunction,=0A= width: 200,=0A= height: 300,=0A= opacity: 1,=0A= recenterAuto: true,=0A= wiredDrag: false,=0A= closeCallback: null,=0A= destroyOnClose: false,=0A= gridX: 1, =0A= gridY: 1 =0A= }, arguments[optionIndex] || {});=0A= if (this.options.blurClassName)=0A= this.options.focusClassName =3D this.options.className;=0A= =0A= if (typeof this.options.top =3D=3D "undefined" && typeof = this.options.bottom =3D=3D "undefined") =0A= this.options.top =3D this._round(Math.random()*500, = this.options.gridY);=0A= if (typeof this.options.left =3D=3D "undefined" && typeof = this.options.right =3D=3D "undefined") =0A= this.options.left =3D this._round(Math.random()*500, = this.options.gridX);=0A= =0A= if (this.options.effectOptions) {=0A= Object.extend(this.options.hideEffectOptions, = this.options.effectOptions);=0A= Object.extend(this.options.showEffectOptions, = this.options.effectOptions);=0A= if (this.options.showEffect =3D=3D Element.Appear)=0A= this.options.showEffectOptions.to =3D this.options.opacity;=0A= }=0A= if (Window.hasEffectLib) {=0A= if (this.options.showEffect =3D=3D Effect.Appear)=0A= this.options.showEffectOptions.to =3D this.options.opacity;=0A= =0A= if (this.options.hideEffect =3D=3D Effect.Fade)=0A= this.options.hideEffectOptions.from =3D this.options.opacity;=0A= }=0A= if (this.options.hideEffect =3D=3D Element.hide)=0A= this.options.hideEffect =3D function(){ = Element.hide(this.element); if (this.options.destroyOnClose) = this.destroy(); }.bind(this)=0A= =0A= if (this.options.parent !=3D document.body) =0A= this.options.parent =3D $(this.options.parent);=0A= =0A= this.element =3D this._createWindow(id); =0A= this.element.win =3D this;=0A= =0A= // Bind event listener=0A= this.eventMouseDown =3D this._initDrag.bindAsEventListener(this);=0A= this.eventMouseUp =3D this._endDrag.bindAsEventListener(this);=0A= this.eventMouseMove =3D this._updateDrag.bindAsEventListener(this);=0A= this.eventOnLoad =3D = this._getWindowBorderSize.bindAsEventListener(this);=0A= this.eventMouseDownContent =3D = this.toFront.bindAsEventListener(this);=0A= this.eventResize =3D this._recenter.bindAsEventListener(this);=0A= =0A= this.topbar =3D $(this.element.id + "_top");=0A= this.bottombar =3D $(this.element.id + "_bottom");=0A= this.content =3D $(this.element.id + "_content");=0A= =0A= Event.observe(this.topbar, "mousedown", this.eventMouseDown);=0A= Event.observe(this.bottombar, "mousedown", this.eventMouseDown);=0A= Event.observe(this.content, "mousedown", this.eventMouseDownContent);=0A= Event.observe(window, "load", this.eventOnLoad);=0A= Event.observe(window, "resize", this.eventResize);=0A= Event.observe(window, "scroll", this.eventResize);=0A= Event.observe(this.options.parent, "scroll", this.eventResize);=0A= =0A= if (this.options.draggable) {=0A= var that =3D this;=0A= [this.topbar, this.topbar.up().previous(), = this.topbar.up().next()].each(function(element) {=0A= element.observe("mousedown", that.eventMouseDown);=0A= element.addClassName("top_draggable");=0A= });=0A= [this.bottombar.up(), this.bottombar.up().previous(), = this.bottombar.up().next()].each(function(element) {=0A= element.observe("mousedown", that.eventMouseDown);=0A= element.addClassName("bottom_draggable");=0A= });=0A= =0A= } =0A= =0A= if (this.options.resizable) {=0A= this.sizer =3D $(this.element.id + "_sizer");=0A= Event.observe(this.sizer, "mousedown", this.eventMouseDown);=0A= } =0A= =0A= this.useLeft =3D null;=0A= this.useTop =3D null;=0A= if (typeof this.options.left !=3D "undefined") {=0A= this.element.setStyle({left: parseFloat(this.options.left) + = 'px'});=0A= this.useLeft =3D true;=0A= }=0A= else {=0A= this.element.setStyle({right: parseFloat(this.options.right) + = 'px'});=0A= this.useLeft =3D false;=0A= }=0A= =0A= if (typeof this.options.top !=3D "undefined") {=0A= this.element.setStyle({top: parseFloat(this.options.top) + 'px'});=0A= this.useTop =3D true;=0A= }=0A= else {=0A= this.element.setStyle({bottom: parseFloat(this.options.bottom) + = 'px'}); =0A= this.useTop =3D false;=0A= }=0A= =0A= this.storedLocation =3D null;=0A= =0A= this.setOpacity(this.options.opacity);=0A= if (this.options.zIndex)=0A= this.setZIndex(this.options.zIndex)=0A= =0A= if (this.options.destroyOnClose)=0A= this.setDestroyOnClose(true);=0A= =0A= this._getWindowBorderSize();=0A= this.width =3D this.options.width;=0A= this.height =3D this.options.height;=0A= this.visible =3D false;=0A= =0A= this.constraint =3D false;=0A= this.constraintPad =3D {top: 0, left:0, bottom:0, right:0};=0A= =0A= if (this.width && this.height)=0A= this.setSize(this.options.width, this.options.height);=0A= this.setTitle(this.options.title)=0A= Windows.register(this); =0A= },=0A= =0A= // Destructor=0A= destroy: function() {=0A= this._notify("onDestroy");=0A= Event.stopObserving(this.topbar, "mousedown", this.eventMouseDown);=0A= Event.stopObserving(this.bottombar, "mousedown", = this.eventMouseDown);=0A= Event.stopObserving(this.content, "mousedown", = this.eventMouseDownContent);=0A= =0A= Event.stopObserving(window, "load", this.eventOnLoad);=0A= Event.stopObserving(window, "resize", this.eventResize);=0A= Event.stopObserving(window, "scroll", this.eventResize);=0A= =0A= Event.stopObserving(this.content, "load", this.options.onload);=0A= =0A= if (this._oldParent) {=0A= var content =3D this.getContent();=0A= var originalContent =3D null;=0A= for(var i =3D 0; i < content.childNodes.length; i++) {=0A= originalContent =3D content.childNodes[i];=0A= if (originalContent.nodeType =3D=3D 1) =0A= break;=0A= originalContent =3D null;=0A= }=0A= if (originalContent)=0A= this._oldParent.appendChild(originalContent);=0A= this._oldParent =3D null;=0A= }=0A= =0A= if (this.sizer)=0A= Event.stopObserving(this.sizer, "mousedown", = this.eventMouseDown);=0A= =0A= if (this.options.url) =0A= this.content.src =3D null=0A= =0A= if(this.iefix) =0A= Element.remove(this.iefix);=0A= =0A= Element.remove(this.element);=0A= Windows.unregister(this); =0A= },=0A= =0A= // Sets close callback, if it sets, it should return true to be able = to close the window.=0A= setCloseCallback: function(callback) {=0A= this.options.closeCallback =3D callback;=0A= },=0A= =0A= // Gets window content=0A= getContent: function () {=0A= return this.content;=0A= },=0A= =0A= // Sets the content with an element id=0A= setContent: function(id, autoresize, autoposition) {=0A= var element =3D $(id);=0A= if (null =3D=3D element) throw "Unable to find element '" + id + "' = in DOM";=0A= this._oldParent =3D element.parentNode;=0A= =0A= var d =3D null;=0A= var p =3D null;=0A= =0A= if (autoresize) =0A= d =3D Element.getDimensions(element);=0A= if (autoposition) =0A= p =3D Position.cumulativeOffset(element);=0A= =0A= var content =3D this.getContent();=0A= // Clear HTML (and even iframe)=0A= this.setHTMLContent("");=0A= content =3D this.getContent();=0A= =0A= content.appendChild(element);=0A= element.show();=0A= if (autoresize) =0A= this.setSize(d.width, d.height);=0A= if (autoposition) =0A= this.setLocation(p[1] - this.heightN, p[0] - this.widthW); =0A= },=0A= =0A= setHTMLContent: function(html) {=0A= // It was an url (iframe), recreate a div content instead of iframe = content=0A= if (this.options.url) {=0A= this.content.src =3D null;=0A= this.options.url =3D null;=0A= =0A= var content =3D"<div id=3D\"" + this.getId() + "_content\" = class=3D\"" + this.options.className + "_content\"> </div>";=0A= $(this.getId() +"_table_content").innerHTML =3D content;=0A= =0A= this.content =3D $(this.element.id + "_content");=0A= }=0A= =0A= this.getContent().innerHTML =3D html;=0A= },=0A= =0A= setAjaxContent: function(url, options, showCentered, showModal) {=0A= this.showFunction =3D showCentered ? "showCenter" : "show";=0A= this.showModal =3D showModal || false;=0A= =0A= options =3D options || {};=0A= =0A= // Clear HTML (and even iframe)=0A= this.setHTMLContent("");=0A= =0A= this.onComplete =3D options.onComplete;=0A= if (! this._onCompleteHandler)=0A= this._onCompleteHandler =3D this._setAjaxContent.bind(this);=0A= options.onComplete =3D this._onCompleteHandler;=0A= =0A= new Ajax.Request(url, options); =0A= options.onComplete =3D this.onComplete;=0A= },=0A= =0A= _setAjaxContent: function(originalRequest) {=0A= Element.update(this.getContent(), originalRequest.responseText);=0A= if (this.onComplete)=0A= this.onComplete(originalRequest);=0A= this.onComplete =3D null;=0A= this[this.showFunction](this.showModal)=0A= },=0A= =0A= setURL: function(url) {=0A= // Not an url content, change div to iframe=0A= if (this.options.url) =0A= this.content.src =3D null;=0A= this.options.url =3D url;=0A= var content=3D "<iframe frameborder=3D'0' name=3D'" + this.getId() + = "_content' id=3D'" + this.getId() + "_content' src=3D'" + url + "' = width=3D'" + this.width + "' height=3D'" + this.height + "'> </iframe>";=0A= $(this.getId() +"_table_content").innerHTML =3D content;=0A= =0A= this.content =3D $(this.element.id + "_content");=0A= },=0A= =0A= getURL: function() {=0A= return this.options.url ? this.options.url : null;=0A= },=0A= =0A= refresh: function() {=0A= if (this.options.url)=0A= $(this.element.getAttribute('id') + '_content').src =3D = this.options.url;=0A= },=0A= =0A= // Stores position/size in a cookie, by default named with window id=0A= setCookie: function(name, expires, path, domain, secure) {=0A= name =3D name || this.element.id;=0A= this.cookie =3D [name, expires, path, domain, secure];=0A= =0A= // Get cookie=0A= var value =3D WindowUtilities.getCookie(name)=0A= // If exists=0A= if (value) {=0A= var values =3D value.split(',');=0A= var x =3D values[0].split(':');=0A= var y =3D values[1].split(':');=0A= =0A= var w =3D parseFloat(values[2]), h =3D parseFloat(values[3]);=0A= var mini =3D values[4];=0A= var maxi =3D values[5];=0A= =0A= this.setSize(w, h);=0A= if (mini =3D=3D "true")=0A= this.doMinimize =3D true; // Minimize will be done at onload = window event=0A= else if (maxi =3D=3D "true")=0A= this.doMaximize =3D true; // Maximize will be done at onload = window event=0A= =0A= this.useLeft =3D x[0] =3D=3D "l";=0A= this.useTop =3D y[0] =3D=3D "t";=0A= =0A= this.element.setStyle(this.useLeft ? {left: x[1]} : {right: x[1]});=0A= this.element.setStyle(this.useTop ? {top: y[1]} : {bottom: y[1]});=0A= }=0A= },=0A= =0A= // Gets window ID=0A= getId: function() {=0A= return this.element.id;=0A= },=0A= =0A= // Detroys itself when closing =0A= setDestroyOnClose: function() {=0A= this.options.destroyOnClose =3D true;=0A= },=0A= =0A= setConstraint: function(bool, padding) {=0A= this.constraint =3D bool;=0A= this.constraintPad =3D Object.extend(this.constraintPad, padding || = {});=0A= // Reset location to apply constraint=0A= if (this.useTop && this.useLeft)=0A= this.setLocation(parseFloat(this.element.style.top), = parseFloat(this.element.style.left));=0A= },=0A= =0A= // initDrag event=0A= =0A= _initDrag: function(event) {=0A= // No resize on minimized window=0A= if (Event.element(event) =3D=3D this.sizer && this.isMinimized())=0A= return;=0A= =0A= // No move on maximzed window=0A= if (Event.element(event) !=3D this.sizer && this.isMaximized())=0A= return;=0A= =0A= if (Prototype.Browser.IE && this.heightN =3D=3D 0)=0A= this._getWindowBorderSize();=0A= =0A= // Get pointer X,Y=0A= this.pointer =3D [this._round(Event.pointerX(event), = this.options.gridX), this._round(Event.pointerY(event), = this.options.gridY)];=0A= if (this.options.wiredDrag) =0A= this.currentDrag =3D this._createWiredElement();=0A= else=0A= this.currentDrag =3D this.element;=0A= =0A= // Resize=0A= if (Event.element(event) =3D=3D this.sizer) {=0A= this.doResize =3D true;=0A= this.widthOrg =3D this.width;=0A= this.heightOrg =3D this.height;=0A= this.bottomOrg =3D parseFloat(this.element.getStyle('bottom'));=0A= this.rightOrg =3D parseFloat(this.element.getStyle('right'));=0A= this._notify("onStartResize");=0A= }=0A= else {=0A= this.doResize =3D false;=0A= =0A= // Check if click on close button, =0A= var closeButton =3D $(this.getId() + '_close');=0A= if (closeButton && Position.within(closeButton, this.pointer[0], = this.pointer[1])) {=0A= this.currentDrag =3D null;=0A= return;=0A= }=0A= =0A= this.toFront();=0A= =0A= if (! this.options.draggable) =0A= return;=0A= this._notify("onStartMove");=0A= } =0A= // Register global event to capture mouseUp and mouseMove=0A= Event.observe(document, "mouseup", this.eventMouseUp, false);=0A= Event.observe(document, "mousemove", this.eventMouseMove, false);=0A= =0A= // Add an invisible div to keep catching mouse event over iframes=0A= WindowUtilities.disableScreen('__invisible__', '__invisible__', = this.overlayOpacity);=0A= =0A= // Stop selection while dragging=0A= document.body.ondrag =3D function () { return false; };=0A= document.body.onselectstart =3D function () { return false; };=0A= =0A= this.currentDrag.show();=0A= Event.stop(event);=0A= },=0A= =0A= _round: function(val, round) {=0A= return round =3D=3D 1 ? val : val =3D Math.floor(val / round) * = round;=0A= },=0A= =0A= // updateDrag event=0A= _updateDrag: function(event) {=0A= var pointer =3D [this._round(Event.pointerX(event), = this.options.gridX), this._round(Event.pointerY(event), = this.options.gridY)]; =0A= var dx =3D pointer[0] - this.pointer[0];=0A= var dy =3D pointer[1] - this.pointer[1];=0A= =0A= // Resize case, update width/height=0A= if (this.doResize) {=0A= var w =3D this.widthOrg + dx;=0A= var h =3D this.heightOrg + dy;=0A= =0A= dx =3D this.width - this.widthOrg=0A= dy =3D this.height - this.heightOrg=0A= =0A= // Check if it's a right position, update it to keep upper-left = corner at the same position=0A= if (this.useLeft) =0A= w =3D this._updateWidthConstraint(w)=0A= else =0A= this.currentDrag.setStyle({right: (this.rightOrg -dx) + 'px'});=0A= // Check if it's a bottom position, update it to keep upper-left = corner at the same position=0A= if (this.useTop) =0A= h =3D this._updateHeightConstraint(h)=0A= else=0A= this.currentDrag.setStyle({bottom: (this.bottomOrg -dy) + 'px'});=0A= =0A= this.setSize(w , h);=0A= this._notify("onResize");=0A= }=0A= // Move case, update top/left=0A= else {=0A= this.pointer =3D pointer;=0A= =0A= if (this.useLeft) {=0A= var left =3D parseFloat(this.currentDrag.getStyle('left')) + dx;=0A= var newLeft =3D this._updateLeftConstraint(left);=0A= // Keep mouse pointer correct=0A= this.pointer[0] +=3D newLeft-left;=0A= this.currentDrag.setStyle({left: newLeft + 'px'});=0A= }=0A= else =0A= this.currentDrag.setStyle({right: = parseFloat(this.currentDrag.getStyle('right')) - dx + 'px'});=0A= =0A= if (this.useTop) {=0A= var top =3D parseFloat(this.currentDrag.getStyle('top')) + dy;=0A= var newTop =3D this._updateTopConstraint(top);=0A= // Keep mouse pointer correct=0A= this.pointer[1] +=3D newTop - top;=0A= this.currentDrag.setStyle({top: newTop + 'px'});=0A= }=0A= else =0A= this.currentDrag.setStyle({bottom: = parseFloat(this.currentDrag.getStyle('bottom')) - dy + 'px'});=0A= =0A= this._notify("onMove");=0A= }=0A= if (this.iefix) =0A= this._fixIEOverlapping(); =0A= =0A= this._removeStoreLocation();=0A= Event.stop(event);=0A= },=0A= =0A= // endDrag callback=0A= _endDrag: function(event) {=0A= // Remove temporary div over iframes=0A= WindowUtilities.enableScreen('__invisible__');=0A= =0A= if (this.doResize)=0A= this._notify("onEndResize");=0A= else=0A= this._notify("onEndMove");=0A= =0A= // Release event observing=0A= Event.stopObserving(document, "mouseup", this.eventMouseUp,false);=0A= Event.stopObserving(document, "mousemove", this.eventMouseMove, = false);=0A= =0A= Event.stop(event);=0A= =0A= this._hideWiredElement();=0A= =0A= // Store new location/size if need be=0A= this._saveCookie()=0A= =0A= // Restore selection=0A= document.body.ondrag =3D null;=0A= document.body.onselectstart =3D null;=0A= },=0A= =0A= _updateLeftConstraint: function(left) {=0A= if (this.constraint && this.useLeft && this.useTop) {=0A= var width =3D this.options.parent =3D=3D document.body ? = WindowUtilities.getPageSize().windowWidth : = this.options.parent.getDimensions().width;=0A= =0A= if (left < this.constraintPad.left)=0A= left =3D this.constraintPad.left;=0A= if (left + this.width + this.widthE + this.widthW > width - = this.constraintPad.right) =0A= left =3D width - this.constraintPad.right - this.width - = this.widthE - this.widthW;=0A= }=0A= return left;=0A= },=0A= =0A= _updateTopConstraint: function(top) {=0A= if (this.constraint && this.useLeft && this.useTop) { =0A= var height =3D this.options.parent =3D=3D document.body ? = WindowUtilities.getPageSize().windowHeight : = this.options.parent.getDimensions().height;=0A= =0A= var h =3D this.height + this.heightN + this.heightS;=0A= =0A= if (top < this.constraintPad.top)=0A= top =3D this.constraintPad.top;=0A= if (top + h > height - this.constraintPad.bottom) =0A= top =3D height - this.constraintPad.bottom - h;=0A= }=0A= return top;=0A= },=0A= =0A= _updateWidthConstraint: function(w) {=0A= if (this.constraint && this.useLeft && this.useTop) {=0A= var width =3D this.options.parent =3D=3D document.body ? = WindowUtilities.getPageSize().windowWidth : = this.options.parent.getDimensions().width;=0A= var left =3D parseFloat(this.element.getStyle("left"));=0A= =0A= if (left + w + this.widthE + this.widthW > width - = this.constraintPad.right) =0A= w =3D width - this.constraintPad.right - left - this.widthE - = this.widthW;=0A= }=0A= return w;=0A= },=0A= =0A= _updateHeightConstraint: function(h) {=0A= if (this.constraint && this.useLeft && this.useTop) {=0A= var height =3D this.options.parent =3D=3D document.body ? = WindowUtilities.getPageSize().windowHeight : = this.options.parent.getDimensions().height;=0A= var top =3D parseFloat(this.element.getStyle("top"));=0A= =0A= if (top + h + this.heightN + this.heightS > height - = this.constraintPad.bottom) =0A= h =3D height - this.constraintPad.bottom - top - this.heightN - = this.heightS;=0A= }=0A= return h;=0A= },=0A= =0A= =0A= // Creates HTML window code=0A= _createWindow: function(id) {=0A= var className =3D this.options.className;=0A= var win =3D document.createElement("div");=0A= win.setAttribute('id', id);=0A= win.className =3D "dialog";=0A= =0A= var content;=0A= if (this.options.url)=0A= content=3D "<iframe frameborder=3D\"0\" name=3D\"" + id + = "_content\" id=3D\"" + id + "_content\" src=3D\"" + this.options.url + = "\"> </iframe>";=0A= else=0A= content =3D"<div id=3D\"" + id + "_content\" class=3D\"" = +className + "_content\"> </div>";=0A= =0A= var closeDiv =3D this.options.closable ? "<div class=3D'"+ className = +"_close' id=3D'"+ id +"_close' onclick=3D'Windows.close(\""+ id +"\", = event)'> </div>" : "";=0A= var minDiv =3D this.options.minimizable ? "<div class=3D'"+ = className + "_minimize' id=3D'"+ id +"_minimize' = onclick=3D'Windows.minimize(\""+ id +"\", event)'> </div>" : "";=0A= var maxDiv =3D this.options.maximizable ? "<div class=3D'"+ = className + "_maximize' id=3D'"+ id +"_maximize' = onclick=3D'Windows.maximize(\""+ id +"\", event)'> </div>" : "";=0A= var seAttributes =3D this.options.resizable ? "class=3D'" + = className + "_sizer' id=3D'" + id + "_sizer'" : "class=3D'" + className = + "_se'";=0A= var blank =3D "../themes/default/blank.gif";=0A= =0A= win.innerHTML =3D closeDiv + minDiv + maxDiv + "\=0A= <table id=3D'"+ id +"_row1' class=3D\"top table_window\">\=0A= <tr>\=0A= <td class=3D'"+ className +"_nw'></td>\=0A= <td class=3D'"+ className +"_n'><div id=3D'"+ id +"_top' = class=3D'"+ className +"_title title_window'>"+ this.options.title = +"</div></td>\=0A= <td class=3D'"+ className +"_ne'></td>\=0A= </tr>\=0A= </table>\=0A= <table id=3D'"+ id +"_row2' class=3D\"mid table_window\">\=0A= <tr>\=0A= <td class=3D'"+ className +"_w'></td>\=0A= <td id=3D'"+ id +"_table_content' class=3D'"+ className = +"_content' valign=3D'top'>" + content + "</td>\=0A= <td class=3D'"+ className +"_e'></td>\=0A= </tr>\=0A= </table>\=0A= <table id=3D'"+ id +"_row3' class=3D\"bot table_window\">\=0A= <tr>\=0A= <td class=3D'"+ className +"_sw'></td>\=0A= <td class=3D'"+ className +"_s'><div id=3D'"+ id +"_bottom' = class=3D'status_bar'><span style=3D'float:left; width:1px; = height:1px'></span></div></td>\=0A= <td " + seAttributes + "></td>\=0A= </tr>\=0A= </table>\=0A= ";=0A= Element.hide(win);=0A= this.options.parent.insertBefore(win, = this.options.parent.firstChild);=0A= Event.observe($(id + "_content"), "load", this.options.onload);=0A= return win;=0A= },=0A= =0A= =0A= changeClassName: function(newClassName) { =0A= var className =3D this.options.className;=0A= var id =3D this.getId();=0A= $A(["_close", "_minimize", "_maximize", "_sizer", = "_content"]).each(function(value) { this._toggleClassName($(id + value), = className + value, newClassName + value) }.bind(this));=0A= this._toggleClassName($(id + "_top"), className + "_title", = newClassName + "_title");=0A= $$("#" + id + " td").each(function(td) {td.className =3D = td.className.sub(className,newClassName); });=0A= this.options.className =3D newClassName;=0A= },=0A= =0A= _toggleClassName: function(element, oldClassName, newClassName) { =0A= if (element) {=0A= element.removeClassName(oldClassName);=0A= element.addClassName(newClassName);=0A= }=0A= },=0A= =0A= // Sets window location=0A= setLocation: function(top, left) {=0A= top =3D this._updateTopConstraint(top);=0A= left =3D this._updateLeftConstraint(left);=0A= =0A= var e =3D this.currentDrag || this.element;=0A= e.setStyle({top: top + 'px'});=0A= e.setStyle({left: left + 'px'});=0A= =0A= this.useLeft =3D true;=0A= this.useTop =3D true;=0A= },=0A= =0A= getLocation: function() {=0A= var location =3D {};=0A= if (this.useTop)=0A= location =3D Object.extend(location, {top: = this.element.getStyle("top")});=0A= else=0A= location =3D Object.extend(location, {bottom: = this.element.getStyle("bottom")});=0A= if (this.useLeft)=0A= location =3D Object.extend(location, {left: = this.element.getStyle("left")});=0A= else=0A= location =3D Object.extend(location, {right: = this.element.getStyle("right")});=0A= =0A= return location;=0A= },=0A= =0A= // Gets window size=0A= getSize: function() {=0A= return {width: this.width, height: this.height};=0A= },=0A= =0A= // Sets window size=0A= setSize: function(width, height, useEffect) { =0A= width =3D parseFloat(width);=0A= height =3D parseFloat(height);=0A= =0A= // Check min and max size=0A= if (!this.minimized && width < this.options.minWidth)=0A= width =3D this.options.minWidth;=0A= =0A= if (!this.minimized && height < this.options.minHeight)=0A= height =3D this.options.minHeight;=0A= =0A= if (this.options. maxHeight && height > this.options. maxHeight)=0A= height =3D this.options. maxHeight;=0A= =0A= if (this.options. maxWidth && width > this.options. maxWidth)=0A= width =3D this.options. maxWidth;=0A= =0A= =0A= if (this.useTop && this.useLeft && Window.hasEffectLib && = Effect.ResizeWindow && useEffect) {=0A= new Effect.ResizeWindow(this, null, null, width, height, = {duration: Window.resizeEffectDuration});=0A= } else {=0A= this.width =3D width;=0A= this.height =3D height;=0A= var e =3D this.currentDrag ? this.currentDrag : this.element;=0A= =0A= e.setStyle({width: width + this.widthW + this.widthE + "px"})=0A= e.setStyle({height: height + this.heightN + this.heightS + "px"})=0A= =0A= // Update content size=0A= if (!this.currentDrag || this.currentDrag =3D=3D this.element) {=0A= var content =3D $(this.element.id + '_content');=0A= content.setStyle({height: height + 'px'});=0A= content.setStyle({width: width + 'px'});=0A= }=0A= }=0A= },=0A= =0A= updateHeight: function() {=0A= this.setSize(this.width, this.content.scrollHeight, true);=0A= },=0A= =0A= updateWidth: function() {=0A= this.setSize(this.content.scrollWidth, this.height, true);=0A= },=0A= =0A= // Brings window to front=0A= toFront: function() {=0A= if (this.element.style.zIndex < Windows.maxZIndex) =0A= this.setZIndex(Windows.maxZIndex + 1);=0A= if (this.iefix) =0A= this._fixIEOverlapping(); =0A= },=0A= =0A= getBounds: function(insideOnly) {=0A= if (! this.width || !this.height || !this.visible) =0A= this.computeBounds();=0A= var w =3D this.width;=0A= var h =3D this.height;=0A= =0A= if (!insideOnly) {=0A= w +=3D this.widthW + this.widthE;=0A= h +=3D this.heightN + this.heightS;=0A= }=0A= var bounds =3D Object.extend(this.getLocation(), {width: w + "px", = height: h + "px"});=0A= return bounds;=0A= },=0A= =0A= computeBounds: function() {=0A= if (! this.width || !this.height) {=0A= var size =3D WindowUtilities._computeSize(this.content.innerHTML, = this.content.id, this.width, this.height, 0, this.options.className)=0A= if (this.height)=0A= this.width =3D size + 5=0A= else=0A= this.height =3D size + 5=0A= }=0A= =0A= this.setSize(this.width, this.height);=0A= if (this.centered)=0A= this._center(this.centerTop, this.centerLeft); =0A= },=0A= =0A= // Displays window modal state or not=0A= show: function(modal) {=0A= this.visible =3D true;=0A= if (modal) {=0A= // Hack for Safari !!=0A= if (typeof this.overlayOpacity =3D=3D "undefined") {=0A= var that =3D this;=0A= setTimeout(function() {that.show(modal)}, 10);=0A= return;=0A= }=0A= Windows.addModalWindow(this);=0A= =0A= this.modal =3D true; =0A= this.setZIndex(Windows.maxZIndex + 1);=0A= Windows.unsetOverflow(this);=0A= }=0A= else =0A= if (!this.element.style.zIndex) =0A= this.setZIndex(Windows.maxZIndex + 1); =0A= =0A= // To restore overflow if need be=0A= if (this.oldStyle)=0A= this.getContent().setStyle({overflow: this.oldStyle});=0A= =0A= this.computeBounds();=0A= =0A= this._notify("onBeforeShow"); =0A= if (this.options.showEffect !=3D Element.show && = this.options.showEffectOptions)=0A= this.options.showEffect(this.element, = this.options.showEffectOptions); =0A= else=0A= this.options.showEffect(this.element); =0A= =0A= this._checkIEOverlapping();=0A= WindowUtilities.focusedWindow =3D this=0A= this._notify("onShow"); =0A= },=0A= =0A= // Displays window modal state or not at the center of the page=0A= showCenter: function(modal, top, left) {=0A= this.centered =3D true;=0A= this.centerTop =3D top;=0A= this.centerLeft =3D left;=0A= =0A= this.show(modal);=0A= },=0A= =0A= isVisible: function() {=0A= return this.visible;=0A= },=0A= =0A= _center: function(top, left) { =0A= var windowScroll =3D = WindowUtilities.getWindowScroll(this.options.parent); =0A= var pageSize =3D WindowUtilities.getPageSize(this.options.parent); = =0A= if (typeof top =3D=3D "undefined")=0A= top =3D (pageSize.windowHeight - (this.height + this.heightN + = this.heightS))/2;=0A= top +=3D windowScroll.top=0A= =0A= if (typeof left =3D=3D "undefined")=0A= left =3D (pageSize.windowWidth - (this.width + this.widthW + = this.widthE))/2;=0A= left +=3D windowScroll.left =0A= this.setLocation(top, left);=0A= this.toFront();=0A= },=0A= =0A= _recenter: function(event) { =0A= if (this.centered) {=0A= var pageSize =3D WindowUtilities.getPageSize(this.options.parent);=0A= var windowScroll =3D = WindowUtilities.getWindowScroll(this.options.parent); =0A= =0A= // Check for this stupid IE that sends dumb events=0A= if (this.pageSize && this.pageSize.windowWidth =3D=3D = pageSize.windowWidth && this.pageSize.windowHeight =3D=3D = pageSize.windowHeight && =0A= this.windowScroll.left =3D=3D windowScroll.left && = this.windowScroll.top =3D=3D windowScroll.top) =0A= return;=0A= this.pageSize =3D pageSize;=0A= this.windowScroll =3D windowScroll;=0A= // set height of Overlay to take up whole page and show=0A= if ($('overlay_modal')) =0A= $('overlay_modal').setStyle({height: (pageSize.pageHeight + = 'px')});=0A= =0A= if (this.options.recenterAuto)=0A= this._center(this.centerTop, this.centerLeft); =0A= }=0A= },=0A= =0A= // Hides window=0A= hide: function() {=0A= this.visible =3D false;=0A= if (this.modal) {=0A= Windows.removeModalWindow(this);=0A= Windows.resetOverflow();=0A= }=0A= // To avoid bug on scrolling bar=0A= this.oldStyle =3D this.getContent().getStyle('overflow') || "auto"=0A= this.getContent().setStyle({overflow: "hidden"});=0A= =0A= this.options.hideEffect(this.element, = this.options.hideEffectOptions); =0A= =0A= if(this.iefix) =0A= this.iefix.hide();=0A= =0A= if (!this.doNotNotifyHide)=0A= this._notify("onHide");=0A= },=0A= =0A= close: function() {=0A= // Asks closeCallback if exists=0A= if (this.visible) {=0A= if (this.options.closeCallback && ! = this.options.closeCallback(this)) =0A= return;=0A= =0A= if (this.options.destroyOnClose) {=0A= var destroyFunc =3D this.destroy.bind(this);=0A= if (this.options.hideEffectOptions.afterFinish) {=0A= var func =3D this.options.hideEffectOptions.afterFinish;=0A= this.options.hideEffectOptions.afterFinish =3D function() = {func();destroyFunc() }=0A= }=0A= else =0A= this.options.hideEffectOptions.afterFinish =3D function() = {destroyFunc() }=0A= }=0A= Windows.updateFocusedWindow();=0A= =0A= this.doNotNotifyHide =3D true;=0A= this.hide();=0A= this.doNotNotifyHide =3D false;=0A= this._notify("onClose");=0A= }=0A= },=0A= =0A= minimize: function() {=0A= if (this.resizing)=0A= return;=0A= =0A= var r2 =3D $(this.getId() + "_row2");=0A= =0A= if (!this.minimized) {=0A= this.minimized =3D true;=0A= =0A= var dh =3D r2.getDimensions().height;=0A= this.r2Height =3D dh;=0A= var h =3D this.element.getHeight() - dh;=0A= =0A= if (this.useLeft && this.useTop && Window.hasEffectLib && = Effect.ResizeWindow) {=0A= new Effect.ResizeWindow(this, null, null, null, this.height -dh, = {duration: Window.resizeEffectDuration});=0A= } else {=0A= this.height -=3D dh;=0A= this.element.setStyle({height: h + "px"});=0A= r2.hide();=0A= }=0A= =0A= if (! this.useTop) {=0A= var bottom =3D parseFloat(this.element.getStyle('bottom'));=0A= this.element.setStyle({bottom: (bottom + dh) + 'px'});=0A= }=0A= } =0A= else { =0A= this.minimized =3D false;=0A= =0A= var dh =3D this.r2Height;=0A= this.r2Height =3D null;=0A= if (this.useLeft && this.useTop && Window.hasEffectLib && = Effect.ResizeWindow) {=0A= new Effect.ResizeWindow(this, null, null, null, this.height + = dh, {duration: Window.resizeEffectDuration});=0A= }=0A= else {=0A= var h =3D this.element.getHeight() + dh;=0A= this.height +=3D dh;=0A= this.element.setStyle({height: h + "px"})=0A= r2.show();=0A= }=0A= if (! this.useTop) {=0A= var bottom =3D parseFloat(this.element.getStyle('bottom'));=0A= this.element.setStyle({bottom: (bottom - dh) + 'px'});=0A= }=0A= this.toFront();=0A= }=0A= this._notify("onMinimize");=0A= =0A= // Store new location/size if need be=0A= this._saveCookie()=0A= },=0A= =0A= maximize: function() {=0A= if (this.isMinimized() || this.resizing)=0A= return;=0A= =0A= if (Prototype.Browser.IE && this.heightN =3D=3D 0)=0A= this._getWindowBorderSize();=0A= =0A= if (this.storedLocation !=3D null) {=0A= this._restoreLocation();=0A= if(this.iefix) =0A= this.iefix.hide();=0A= }=0A= else {=0A= this._storeLocation();=0A= Windows.unsetOverflow(this);=0A= =0A= var windowScroll =3D = WindowUtilities.getWindowScroll(this.options.parent);=0A= var pageSize =3D WindowUtilities.getPageSize(this.options.parent); = =0A= var left =3D windowScroll.left;=0A= var top =3D windowScroll.top;=0A= =0A= if (this.options.parent !=3D document.body) {=0A= windowScroll =3D {top:0, left:0, bottom:0, right:0};=0A= var dim =3D this.options.parent.getDimensions();=0A= pageSize.windowWidth =3D dim.width;=0A= pageSize.windowHeight =3D dim.height;=0A= top =3D 0; =0A= left =3D 0;=0A= }=0A= =0A= if (this.constraint) {=0A= pageSize.windowWidth -=3D Math.max(0, this.constraintPad.left) + = Math.max(0, this.constraintPad.right);=0A= pageSize.windowHeight -=3D Math.max(0, this.constraintPad.top) + = Math.max(0, this.constraintPad.bottom);=0A= left +=3D Math.max(0, this.constraintPad.left);=0A= top +=3D Math.max(0, this.constraintPad.top);=0A= }=0A= =0A= var width =3D pageSize.windowWidth - this.widthW - this.widthE;=0A= var height=3D pageSize.windowHeight - this.heightN - this.heightS;=0A= =0A= if (this.useLeft && this.useTop && Window.hasEffectLib && = Effect.ResizeWindow) {=0A= new Effect.ResizeWindow(this, top, left, width, height, = {duration: Window.resizeEffectDuration});=0A= }=0A= else {=0A= this.setSize(width, height);=0A= this.element.setStyle(this.useLeft ? {left: left} : {right: = left});=0A= this.element.setStyle(this.useTop ? {top: top} : {bottom: top});=0A= }=0A= =0A= this.toFront();=0A= if (this.iefix) =0A= this._fixIEOverlapping(); =0A= }=0A= this._notify("onMaximize");=0A= =0A= // Store new location/size if need be=0A= this._saveCookie()=0A= },=0A= =0A= isMinimized: function() {=0A= return this.minimized;=0A= },=0A= =0A= isMaximized: function() {=0A= return (this.storedLocation !=3D null);=0A= },=0A= =0A= setOpacity: function(opacity) {=0A= if (Element.setOpacity)=0A= Element.setOpacity(this.element, opacity);=0A= },=0A= =0A= setZIndex: function(zindex) {=0A= this.element.setStyle({zIndex: zindex});=0A= Windows.updateZindex(zindex, this);=0A= },=0A= =0A= setTitle: function(newTitle) {=0A= if (!newTitle || newTitle =3D=3D "") =0A= newTitle =3D " ";=0A= =0A= Element.update(this.element.id + '_top', newTitle);=0A= },=0A= =0A= getTitle: function() {=0A= return $(this.element.id + '_top').innerHTML;=0A= },=0A= =0A= setStatusBar: function(element) {=0A= var statusBar =3D $(this.getId() + "_bottom");=0A= =0A= if (typeof(element) =3D=3D "object") {=0A= if (this.bottombar.firstChild)=0A= this.bottombar.replaceChild(element, this.bottombar.firstChild);=0A= else=0A= this.bottombar.appendChild(element);=0A= }=0A= else=0A= this.bottombar.innerHTML =3D element;=0A= },=0A= =0A= _checkIEOverlapping: function() {=0A= if(!this.iefix && (navigator.appVersion.indexOf('MSIE')>0) && = (navigator.userAgent.indexOf('Opera')<0) && = (this.element.getStyle('position')=3D=3D'absolute')) {=0A= new Insertion.After(this.element.id, '<iframe id=3D"' + = this.element.id + '_iefix" '+ = 'style=3D"display:none;position:absolute;filter:progid:DXImageTransform.M= icrosoft.Alpha(opacity=3D0);" ' + 'src=3D"javascript:false;" = frameborder=3D"0" scrolling=3D"no"></iframe>');=0A= this.iefix =3D $(this.element.id+'_iefix');=0A= }=0A= if(this.iefix) =0A= setTimeout(this._fixIEOverlapping.bind(this), 50);=0A= },=0A= =0A= _fixIEOverlapping: function() {=0A= Position.clone(this.element, this.iefix);=0A= this.iefix.style.zIndex =3D this.element.style.zIndex - 1;=0A= this.iefix.show();=0A= },=0A= =0A= _getWindowBorderSize: function(event) {=0A= // Hack to get real window border size!!=0A= var div =3D this._createHiddenDiv(this.options.className + "_n")=0A= this.heightN =3D Element.getDimensions(div).height; =0A= div.parentNode.removeChild(div)=0A= =0A= var div =3D this._createHiddenDiv(this.options.className + "_s")=0A= this.heightS =3D Element.getDimensions(div).height; =0A= div.parentNode.removeChild(div)=0A= =0A= var div =3D this._createHiddenDiv(this.options.className + "_e")=0A= this.widthE =3D Element.getDimensions(div).width; =0A= div.parentNode.removeChild(div)=0A= =0A= var div =3D this._createHiddenDiv(this.options.className + "_w")=0A= this.widthW =3D Element.getDimensions(div).width;=0A= div.parentNode.removeChild(div);=0A= =0A= var div =3D document.createElement("div");=0A= div.className =3D "overlay_" + this.options.className ;=0A= document.body.appendChild(div);=0A= //alert("no timeout:\nopacity: " + div.getStyle("opacity") + = "\nwidth: " + document.defaultView.getComputedStyle(div, null).width);=0A= var that =3D this;=0A= =0A= // Workaround for Safari!!=0A= setTimeout(function() {that.overlayOpacity =3D = ($(div).getStyle("opacity")); div.parentNode.removeChild(div);}, 10);=0A= =0A= // Workaround for IE!!=0A= if (Prototype.Browser.IE) {=0A= this.heightS =3D $(this.getId() +"_row3").getDimensions().height;=0A= this.heightN =3D $(this.getId() +"_row1").getDimensions().height;=0A= }=0A= =0A= // Safari size fix=0A= if (Prototype.Browser.WebKit && Prototype.Browser.WebKitVersion < = 420)=0A= this.setSize(this.width, this.height);=0A= if (this.doMaximize)=0A= this.maximize();=0A= if (this.doMinimize)=0A= this.minimize();=0A= },=0A= =0A= _createHiddenDiv: function(className) {=0A= var objBody =3D document.body;=0A= var win =3D document.createElement("div");=0A= win.setAttribute('id', this.element.id+ "_tmp");=0A= win.className =3D className;=0A= win.style.display =3D 'none';=0A= win.innerHTML =3D '';=0A= objBody.insertBefore(win, objBody.firstChild);=0A= return win;=0A= },=0A= =0A= _storeLocation: function() {=0A= if (this.storedLocation =3D=3D null) {=0A= this.storedLocation =3D {useTop: this.useTop, useLeft: = this.useLeft, =0A= top: this.element.getStyle('top'), bottom: = this.element.getStyle('bottom'),=0A= left: this.element.getStyle('left'), right: = this.element.getStyle('right'),=0A= width: this.width, height: this.height };=0A= }=0A= },=0A= =0A= _restoreLocation: function() {=0A= if (this.storedLocation !=3D null) {=0A= this.useLeft =3D this.storedLocation.useLeft;=0A= this.useTop =3D this.storedLocation.useTop;=0A= =0A= if (this.useLeft && this.useTop && Window.hasEffectLib && = Effect.ResizeWindow)=0A= new Effect.ResizeWindow(this, this.storedLocation.top, = this.storedLocation.left, this.storedLocation.width, = this.storedLocation.height, {duration: Window.resizeEffectDuration});=0A= else {=0A= this.element.setStyle(this.useLeft ? {left: = this.storedLocation.left} : {right: this.storedLocation.right});=0A= this.element.setStyle(this.useTop ? {top: = this.storedLocation.top} : {bottom: this.storedLocation.bottom});=0A= this.setSize(this.storedLocation.width, = this.storedLocation.height);=0A= }=0A= =0A= Windows.resetOverflow();=0A= this._removeStoreLocation();=0A= }=0A= },=0A= =0A= _removeStoreLocation: function() {=0A= this.storedLocation =3D null;=0A= },=0A= =0A= _saveCookie: function() {=0A= if (this.cookie) {=0A= var value =3D "";=0A= if (this.useLeft)=0A= value +=3D "l:" + (this.storedLocation ? = this.storedLocation.left : this.element.getStyle('left'))=0A= else=0A= value +=3D "r:" + (this.storedLocation ? = this.storedLocation.right : this.element.getStyle('right'))=0A= if (this.useTop)=0A= value +=3D ",t:" + (this.storedLocation ? = this.storedLocation.top : this.element.getStyle('top'))=0A= else=0A= value +=3D ",b:" + (this.storedLocation ? = this.storedLocation.bottom :this.element.getStyle('bottom'))=0A= =0A= value +=3D "," + (this.storedLocation ? this.storedLocation.width = : this.width);=0A= value +=3D "," + (this.storedLocation ? this.storedLocation.height = : this.height);=0A= value +=3D "," + this.isMinimized();=0A= value +=3D "," + this.isMaximized();=0A= WindowUtilities.setCookie(value, this.cookie)=0A= }=0A= },=0A= =0A= _createWiredElement: function() {=0A= if (! this.wiredElement) {=0A= if (Prototype.Browser.IE)=0A= this._getWindowBorderSize();=0A= var div =3D document.createElement("div");=0A= div.className =3D "wired_frame " + this.options.className + = "_wired_frame";=0A= =0A= div.style.position =3D 'absolute';=0A= this.options.parent.insertBefore(div, = this.options.parent.firstChild);=0A= this.wiredElement =3D $(div);=0A= }=0A= if (this.useLeft) =0A= this.wiredElement.setStyle({left: this.element.getStyle('left')});=0A= else =0A= this.wiredElement.setStyle({right: = this.element.getStyle('right')});=0A= =0A= if (this.useTop) =0A= this.wiredElement.setStyle({top: this.element.getStyle('top')});=0A= else =0A= this.wiredElement.setStyle({bottom: = this.element.getStyle('bottom')});=0A= =0A= var dim =3D this.element.getDimensions();=0A= this.wiredElement.setStyle({width: dim.width + "px", height: = dim.height +"px"});=0A= =0A= this.wiredElement.setStyle({zIndex: Windows.maxZIndex+30});=0A= return this.wiredElement;=0A= },=0A= =0A= _hideWiredElement: function() {=0A= if (! this.wiredElement || ! this.currentDrag)=0A= return;=0A= if (this.currentDrag =3D=3D this.element) =0A= this.currentDrag =3D null;=0A= else {=0A= if (this.useLeft) =0A= this.element.setStyle({left: this.currentDrag.getStyle('left')});=0A= else =0A= this.element.setStyle({right: = this.currentDrag.getStyle('right')});=0A= =0A= if (this.useTop) =0A= this.element.setStyle({top: this.currentDrag.getStyle('top')});=0A= else =0A= this.element.setStyle({bottom: = this.currentDrag.getStyle('bottom')});=0A= =0A= this.currentDrag.hide();=0A= this.currentDrag =3D null;=0A= if (this.doResize)=0A= this.setSize(this.width, this.height);=0A= } =0A= },=0A= =0A= _notify: function(eventName) {=0A= if (this.options[eventName])=0A= this.options[eventName](this);=0A= else=0A= Windows.notify(eventName, this);=0A= }=0A= };=0A= =0A= // Windows containers, register all page windows=0A= var Windows =3D {=0A= windows: [],=0A= modalWindows: [],=0A= observers: [],=0A= focusedWindow: null,=0A= maxZIndex: 0,=0A= overlayShowEffectOptions: {duration: 0.5},=0A= overlayHideEffectOptions: {duration: 0.5},=0A= =0A= addObserver: function(observer) {=0A= this.removeObserver(observer);=0A= this.observers.push(observer);=0A= },=0A= =0A= removeObserver: function(observer) { =0A= this.observers =3D this.observers.reject( function(o) { return = o=3D=3Dobserver });=0A= },=0A= =0A= // onDestroy onStartResize onStartMove onResize onMove onEndResize = onEndMove onFocus onBlur onBeforeShow onShow onHide onMinimize = onMaximize onClose=0A= notify: function(eventName, win) { =0A= this.observers.each( function(o) {if(o[eventName]) = o[eventName](eventName, win);});=0A= },=0A= =0A= // Gets window from its id=0A= getWindow: function(id) {=0A= return this.windows.detect(function(d) { return d.getId() =3D=3Did = });=0A= },=0A= =0A= // Gets the last focused window=0A= getFocusedWindow: function() {=0A= return this.focusedWindow;=0A= },=0A= =0A= updateFocusedWindow: function() {=0A= this.focusedWindow =3D this.windows.length >=3D2 ? = this.windows[this.windows.length-2] : null; =0A= },=0A= =0A= // Registers a new window (called by Windows constructor)=0A= register: function(win) {=0A= this.windows.push(win);=0A= },=0A= =0A= // Add a modal window in the stack=0A= addModalWindow: function(win) {=0A= // Disable screen if first modal window=0A= if (this.modalWindows.length =3D=3D 0) {=0A= WindowUtilities.disableScreen(win.options.className, = 'overlay_modal', win.overlayOpacity, win.getId(), win.options.parent);=0A= }=0A= else {=0A= // Move overlay over all windows=0A= if (Window.keepMultiModalWindow) {=0A= $('overlay_modal').style.zIndex =3D Windows.maxZIndex + 1;=0A= Windows.maxZIndex +=3D 1;=0A= WindowUtilities._hideSelect(this.modalWindows.last().getId());=0A= }=0A= // Hide current modal window=0A= else=0A= this.modalWindows.last().element.hide();=0A= // Fucking IE select issue=0A= WindowUtilities._showSelect(win.getId());=0A= } =0A= this.modalWindows.push(win); =0A= },=0A= =0A= removeModalWindow: function(win) {=0A= this.modalWindows.pop();=0A= =0A= // No more modal windows=0A= if (this.modalWindows.length =3D=3D 0)=0A= WindowUtilities.enableScreen(); =0A= else {=0A= if (Window.keepMultiModalWindow) {=0A= this.modalWindows.last().toFront();=0A= WindowUtilities._showSelect(this.modalWindows.last().getId()); = =0A= }=0A= else=0A= this.modalWindows.last().element.show();=0A= }=0A= },=0A= =0A= // Registers a new window (called by Windows constructor)=0A= register: function(win) {=0A= this.windows.push(win);=0A= },=0A= =0A= // Unregisters a window (called by Windows destructor)=0A= unregister: function(win) {=0A= this.windows =3D this.windows.reject(function(d) { return d=3D=3Dwin = });=0A= }, =0A= =0A= // Closes all windows=0A= closeAll: function() { =0A= this.windows.each( function(w) {Windows.close(w.getId())} );=0A= },=0A= =0A= closeAllModalWindows: function() {=0A= WindowUtilities.enableScreen(); =0A= this.modalWindows.each( function(win) {if (win) win.close()}); =0A= },=0A= =0A= // Minimizes a window with its id=0A= minimize: function(id, event) {=0A= var win =3D this.getWindow(id)=0A= if (win && win.visible)=0A= win.minimize();=0A= Event.stop(event);=0A= },=0A= =0A= // Maximizes a window with its id=0A= maximize: function(id, event) {=0A= var win =3D this.getWindow(id)=0A= if (win && win.visible)=0A= win.maximize();=0A= Event.stop(event);=0A= },=0A= =0A= // Closes a window with its id=0A= close: function(id, event) {=0A= var win =3D this.getWindow(id);=0A= if (win) =0A= win.close();=0A= if (event)=0A= Event.stop(event);=0A= },=0A= =0A= blur: function(id) {=0A= var win =3D this.getWindow(id); =0A= if (!win)=0A= return;=0A= if (win.options.blurClassName)=0A= win.changeClassName(win.options.blurClassName);=0A= if (this.focusedWindow =3D=3D win) =0A= this.focusedWindow =3D null;=0A= win._notify("onBlur"); =0A= },=0A= =0A= focus: function(id) {=0A= var win =3D this.getWindow(id); =0A= if (!win)=0A= return; =0A= if (this.focusedWindow)=0A= this.blur(this.focusedWindow.getId())=0A= =0A= if (win.options.focusClassName)=0A= win.changeClassName(win.options.focusClassName); =0A= this.focusedWindow =3D win;=0A= win._notify("onFocus");=0A= },=0A= =0A= unsetOverflow: function(except) { =0A= this.windows.each(function(d) { d.oldOverflow =3D = d.getContent().getStyle("overflow") || "auto" ; = d.getContent().setStyle({overflow: "hidden"}) });=0A= if (except && except.oldOverflow)=0A= except.getContent().setStyle({overflow: except.oldOverflow});=0A= },=0A= =0A= resetOverflow: function() {=0A= this.windows.each(function(d) { if (d.oldOverflow) = d.getContent().setStyle({overflow: d.oldOverflow}) });=0A= },=0A= =0A= updateZindex: function(zindex, win) { =0A= if (zindex > this.maxZIndex) { =0A= this.maxZIndex =3D zindex; =0A= if (this.focusedWindow) =0A= this.blur(this.focusedWindow.getId())=0A= }=0A= this.focusedWindow =3D win;=0A= if (this.focusedWindow) =0A= this.focus(this.focusedWindow.getId())=0A= }=0A= };=0A= =0A= var Dialog =3D {=0A= dialogId: null,=0A= onCompleteFunc: null,=0A= callFunc: null, =0A= parameters: null, =0A= =0A= confirm: function(content, parameters) {=0A= // Get Ajax return before=0A= if (content && typeof content !=3D "string") {=0A= Dialog._runAjaxRequest(content, parameters, Dialog.confirm);=0A= return =0A= }=0A= content =3D content || "";=0A= =0A= parameters =3D parameters || {};=0A= var okLabel =3D parameters.okLabel ? parameters.okLabel : "Ok";=0A= var cancelLabel =3D parameters.cancelLabel ? parameters.cancelLabel = : "Cancel";=0A= =0A= // Backward compatibility=0A= parameters =3D Object.extend(parameters, parameters.windowParameters = || {});=0A= parameters.windowParameters =3D parameters.windowParameters || {};=0A= =0A= parameters.className =3D parameters.className || "alert";=0A= =0A= var okButtonClass =3D "class =3D'" + (parameters.buttonClass ? = parameters.buttonClass + " " : "") + " ok_button'" =0A= var cancelButtonClass =3D "class =3D'" + (parameters.buttonClass ? = parameters.buttonClass + " " : "") + " cancel_button'" =0A= var content =3D "\=0A= <div class=3D'" + parameters.className + "_message'>" + content + = "</div>\=0A= <div class=3D'" + parameters.className + "_buttons'>\=0A= <input type=3D'button' value=3D'" + okLabel + "' = onclick=3D'Dialog.okCallback()' " + okButtonClass + "/>\=0A= <input type=3D'button' value=3D'" + cancelLabel + "' = onclick=3D'Dialog.cancelCallback()' " + cancelButtonClass + "/>\=0A= </div>\=0A= ";=0A= return this._openDialog(content, parameters)=0A= },=0A= =0A= alert: function(content, parameters) {=0A= // Get Ajax return before=0A= if (content && typeof content !=3D "string") {=0A= Dialog._runAjaxRequest(content, parameters, Dialog.alert);=0A= return =0A= }=0A= content =3D content || "";=0A= =0A= parameters =3D parameters || {};=0A= var okLabel =3D parameters.okLabel ? parameters.okLabel : "Ok";=0A= =0A= // Backward compatibility =0A= parameters =3D Object.extend(parameters, parameters.windowParameters = || {});=0A= parameters.windowParameters =3D parameters.windowParameters || {};=0A= =0A= parameters.className =3D parameters.className || "alert";=0A= =0A= var okButtonClass =3D "class =3D'" + (parameters.buttonClass ? = parameters.buttonClass + " " : "") + " ok_button'" =0A= var content =3D "\=0A= <div class=3D'" + parameters.className + "_message'>" + content + = "</div>\=0A= <div class=3D'" + parameters.className + "_buttons'>\=0A= <input type=3D'button' value=3D'" + okLabel + "' = onclick=3D'Dialog.okCallback()' " + okButtonClass + "/>\=0A= </div>"; =0A= return this._openDialog(content, parameters)=0A= },=0A= =0A= info: function(content, parameters) { =0A= // Get Ajax return before=0A= if (content && typeof content !=3D "string") {=0A= Dialog._runAjaxRequest(content, parameters, Dialog.info);=0A= return =0A= }=0A= content =3D content || "";=0A= =0A= // Backward compatibility=0A= parameters =3D parameters || {};=0A= parameters =3D Object.extend(parameters, parameters.windowParameters = || {});=0A= parameters.windowParameters =3D parameters.windowParameters || {};=0A= =0A= parameters.className =3D parameters.className || "alert";=0A= =0A= var content =3D "<div id=3D'modal_dialog_message' class=3D'" + = parameters.className + "_message'>" + content + "</div>";=0A= if (parameters.showProgress)=0A= content +=3D "<div id=3D'modal_dialog_progress' class=3D'" + = parameters.className + "_progress'> </div>";=0A= =0A= parameters.ok =3D null;=0A= parameters.cancel =3D null;=0A= =0A= return this._openDialog(content, parameters)=0A= },=0A= =0A= setInfoMessage: function(message) {=0A= $('modal_dialog_message').update(message);=0A= },=0A= =0A= closeInfo: function() {=0A= Windows.close(this.dialogId);=0A= },=0A= =0A= _openDialog: function(content, parameters) {=0A= var className =3D parameters.className;=0A= =0A= if (! parameters.height && ! parameters.width) {=0A= parameters.width =3D = WindowUtilities.getPageSize(parameters.options.parent || = document.body).pageWidth / 2;=0A= }=0A= if (parameters.id)=0A= this.dialogId =3D parameters.id;=0A= else { =0A= var t =3D new Date();=0A= this.dialogId =3D 'modal_dialog_' + t.getTime();=0A= parameters.id =3D this.dialogId;=0A= }=0A= =0A= // compute height or width if need be=0A= if (! parameters.height || ! parameters.width) {=0A= var size =3D WindowUtilities._computeSize(content, this.dialogId, = parameters.width, parameters.height, 5, className)=0A= if (parameters.height)=0A= parameters.width =3D size + 5=0A= else=0A= parameters.height =3D size + 5=0A= }=0A= parameters.effectOptions =3D parameters.effectOptions ;=0A= parameters.resizable =3D parameters.resizable || false;=0A= parameters.minimizable =3D parameters.minimizable || false;=0A= parameters.maximizable =3D parameters.maximizable || false;=0A= parameters.draggable =3D parameters.draggable || false;=0A= parameters.closable =3D parameters.closable || false;=0A= =0A= var win =3D new Window(parameters);=0A= win.getContent().innerHTML =3D content;=0A= =0A= win.showCenter(true, parameters.top, parameters.left); =0A= win.setDestroyOnClose();=0A= =0A= win.cancelCallback =3D parameters.onCancel || parameters.cancel; =0A= win.okCallback =3D parameters.onOk || parameters.ok;=0A= =0A= return win; =0A= },=0A= =0A= _getAjaxContent: function(originalRequest) {=0A= Dialog.callFunc(originalRequest.responseText, Dialog.parameters)=0A= },=0A= =0A= _runAjaxRequest: function(message, parameters, callFunc) {=0A= if (message.options =3D=3D null)=0A= message.options =3D {} =0A= Dialog.onCompleteFunc =3D message.options.onComplete;=0A= Dialog.parameters =3D parameters;=0A= Dialog.callFunc =3D callFunc;=0A= =0A= message.options.onComplete =3D Dialog._getAjaxContent;=0A= new Ajax.Request(message.url, message.options);=0A= },=0A= =0A= okCallback: function() {=0A= var win =3D Windows.focusedWindow;=0A= if (!win.okCallback || win.okCallback(win)) {=0A= // Remove onclick on button=0A= $$("#" + win.getId()+" input").each(function(element) = {element.onclick=3Dnull;})=0A= win.close();=0A= }=0A= },=0A= =0A= cancelCallback: function() {=0A= var win =3D Windows.focusedWindow;=0A= // Remove onclick on button=0A= $$("#" + win.getId()+" input").each(function(element) = {element.onclick=3Dnull})=0A= win.close();=0A= if (win.cancelCallback)=0A= win.cancelCallback(win);=0A= }=0A= }=0A= /*=0A= Based on Lightbox JS: Fullsize Image Overlays =0A= by Lokesh Dhakar - http://www.huddletogether.com=0A= =0A= For more information on this script, visit:=0A= http://huddletogether.com/projects/lightbox/=0A= =0A= Licensed under the Creative Commons Attribution 2.5 License - = http://creativecommons.org/licenses/by/2.5/=0A= (basically, do anything you want, just leave my name and link)=0A= */=0A= =0A= if (Prototype.Browser.WebKit) {=0A= var array =3D navigator.userAgent.match(new = RegExp(/AppleWebKit\/([\d\.\+]*)/));=0A= Prototype.Browser.WebKitVersion =3D parseFloat(array[1]);=0A= }=0A= =0A= var WindowUtilities =3D { =0A= // From dragdrop.js=0A= getWindowScroll: function(parent) {=0A= var T, L, W, H;=0A= parent =3D parent || document.body; =0A= if (parent !=3D document.body) {=0A= T =3D parent.scrollTop;=0A= L =3D parent.scrollLeft;=0A= W =3D parent.scrollWidth;=0A= H =3D parent.scrollHeight;=0A= } =0A= else {=0A= var w =3D window;=0A= with (w.document) {=0A= if (w.document.documentElement && documentElement.scrollTop) {=0A= T =3D documentElement.scrollTop;=0A= L =3D documentElement.scrollLeft;=0A= } else if (w.document.body) {=0A= T =3D body.scrollTop;=0A= L =3D body.scrollLeft;=0A= }=0A= if (w.innerWidth) {=0A= W =3D w.innerWidth;=0A= H =3D w.innerHeight;=0A= } else if (w.document.documentElement && = documentElement.clientWidth) {=0A= W =3D documentElement.clientWidth;=0A= H =3D documentElement.clientHeight;=0A= } else {=0A= W =3D body.offsetWidth;=0A= H =3D body.offsetHeight=0A= }=0A= }=0A= }=0A= return { top: T, left: L, width: W, height: H };=0A= }, =0A= //=0A= // getPageSize()=0A= // Returns array with page width, height and window width, height=0A= // Core code from - quirksmode.org=0A= // Edit for Firefox by pHaez=0A= //=0A= getPageSize: function(parent){=0A= parent =3D parent || document.body; =0A= var windowWidth, windowHeight;=0A= var pageHeight, pageWidth;=0A= if (parent !=3D document.body) {=0A= windowWidth =3D parent.getWidth();=0A= windowHeight =3D parent.getHeight(); = =0A= pageWidth =3D parent.scrollWidth;=0A= pageHeight =3D parent.scrollHeight; =0A= } =0A= else {=0A= var xScroll, yScroll;=0A= =0A= if (window.innerHeight && window.scrollMaxY) { =0A= xScroll =3D document.body.scrollWidth;=0A= yScroll =3D window.innerHeight + window.scrollMaxY;=0A= } else if (document.body.scrollHeight > = document.body.offsetHeight){ // all but Explorer Mac=0A= xScroll =3D document.body.scrollWidth;=0A= yScroll =3D document.body.scrollHeight;=0A= } else { // Explorer Mac...would also work in Explorer 6 Strict, = Mozilla and Safari=0A= xScroll =3D document.body.offsetWidth;=0A= yScroll =3D document.body.offsetHeight;=0A= }=0A= =0A= =0A= if (self.innerHeight) { // all except Explorer=0A= windowWidth =3D self.innerWidth;=0A= windowHeight =3D self.innerHeight;=0A= } else if (document.documentElement && = document.documentElement.clientHeight) { // Explorer 6 Strict Mode=0A= windowWidth =3D document.documentElement.clientWidth;=0A= windowHeight =3D document.documentElement.clientHeight;=0A= } else if (document.body) { // other Explorers=0A= windowWidth =3D document.body.clientWidth;=0A= windowHeight =3D document.body.clientHeight;=0A= } =0A= =0A= // for small pages with total height less then height of the = viewport=0A= if(yScroll < windowHeight){=0A= pageHeight =3D windowHeight;=0A= } else { =0A= pageHeight =3D yScroll;=0A= }=0A= =0A= // for small pages with total width less then width of the viewport=0A= if(xScroll < windowWidth){ =0A= pageWidth =3D windowWidth;=0A= } else {=0A= pageWidth =3D xScroll;=0A= }=0A= } =0A= return {pageWidth: pageWidth ,pageHeight: pageHeight , windowWidth: = windowWidth, windowHeight: windowHeight};=0A= },=0A= =0A= disableScreen: function(className, overlayId, overlayOpacity, = contentId, parent) {=0A= WindowUtilities.initLightbox(overlayId, className, function() = {this._disableScreen(className, overlayId, overlayOpacity, = contentId)}.bind(this), parent || document.body);=0A= },=0A= =0A= _disableScreen: function(className, overlayId, overlayOpacity, = contentId) {=0A= // prep objects=0A= var objOverlay =3D $(overlayId);=0A= =0A= var pageSize =3D WindowUtilities.getPageSize(objOverlay.parentNode);=0A= =0A= // Hide select boxes as they will 'peek' through the image in IE, = store old value=0A= if (contentId && Prototype.Browser.IE) {=0A= WindowUtilities._hideSelect();=0A= WindowUtilities._showSelect(contentId);=0A= } =0A= =0A= // set height of Overlay to take up whole page and show=0A= objOverlay.style.height =3D (pageSize.pageHeight + 'px');=0A= objOverlay.style.display =3D 'none'; =0A= if (overlayId =3D=3D "overlay_modal" && Window.hasEffectLib && = Windows.overlayShowEffectOptions) {=0A= objOverlay.overlayOpacity =3D overlayOpacity;=0A= new Effect.Appear(objOverlay, Object.extend({from: 0, to: = overlayOpacity}, Windows.overlayShowEffectOptions));=0A= }=0A= else=0A= objOverlay.style.display =3D "block";=0A= },=0A= =0A= enableScreen: function(id) {=0A= id =3D id || 'overlay_modal';=0A= var objOverlay =3D $(id);=0A= if (objOverlay) {=0A= // hide lightbox and overlay=0A= if (id =3D=3D "overlay_modal" && Window.hasEffectLib && = Windows.overlayHideEffectOptions)=0A= new Effect.Fade(objOverlay, Object.extend({from: = objOverlay.overlayOpacity, to:0}, Windows.overlayHideEffectOptions));=0A= else {=0A= objOverlay.style.display =3D 'none';=0A= objOverlay.parentNode.removeChild(objOverlay);=0A= }=0A= =0A= // make select boxes visible using old value=0A= if (id !=3D "__invisible__") =0A= WindowUtilities._showSelect();=0A= }=0A= },=0A= =0A= _hideSelect: function(id) {=0A= if (Prototype.Browser.IE) {=0A= id =3D id =3D=3D null ? "" : "#" + id + " ";=0A= $$(id + 'select').each(function(element) {=0A= if (! WindowUtilities.isDefined(element.oldVisibility)) {=0A= element.oldVisibility =3D element.style.visibility ? = element.style.visibility : "visible";=0A= element.style.visibility =3D "hidden";=0A= }=0A= });=0A= }=0A= },=0A= =0A= _showSelect: function(id) {=0A= if (Prototype.Browser.IE) {=0A= id =3D id =3D=3D null ? "" : "#" + id + " ";=0A= $$(id + 'select').each(function(element) {=0A= if (WindowUtilities.isDefined(element.oldVisibility)) {=0A= // Why?? Ask IE=0A= try {=0A= element.style.visibility =3D element.oldVisibility;=0A= } catch(e) {=0A= element.style.visibility =3D "visible";=0A= }=0A= element.oldVisibility =3D null;=0A= }=0A= else {=0A= if (element.style.visibility)=0A= element.style.visibility =3D "visible";=0A= }=0A= });=0A= }=0A= },=0A= =0A= isDefined: function(object) {=0A= return typeof(object) !=3D "undefined" && object !=3D null;=0A= },=0A= =0A= // initLightbox()=0A= // Function runs on window load, going through link tags looking for = rel=3D"lightbox".=0A= // These links receive onclick events that enable the lightbox display = for their targets.=0A= // The function also inserts html markup at the top of the page which = will be used as a=0A= // container for the overlay pattern and the inline image.=0A= initLightbox: function(id, className, doneHandler, parent) {=0A= // Already done, just update zIndex=0A= if ($(id)) {=0A= Element.setStyle(id, {zIndex: Windows.maxZIndex + 1});=0A= Windows.maxZIndex++;=0A= doneHandler();=0A= }=0A= // create overlay div and hardcode some functional styles (aesthetic = styles are in CSS file)=0A= else {=0A= var objOverlay =3D document.createElement("div");=0A= objOverlay.setAttribute('id', id);=0A= objOverlay.className =3D "overlay_" + className=0A= objOverlay.style.display =3D 'none';=0A= objOverlay.style.position =3D 'absolute';=0A= objOverlay.style.top =3D '0';=0A= objOverlay.style.left =3D '0';=0A= objOverlay.style.zIndex =3D Windows.maxZIndex + 1;=0A= Windows.maxZIndex++;=0A= objOverlay.style.width =3D '100%';=0A= parent.insertBefore(objOverlay, parent.firstChild);=0A= if (Prototype.Browser.WebKit && id =3D=3D "overlay_modal") {=0A= setTimeout(function() {doneHandler()}, 10);=0A= }=0A= else=0A= doneHandler();=0A= } =0A= },=0A= =0A= setCookie: function(value, parameters) {=0A= document.cookie=3D parameters[0] + "=3D" + escape(value) +=0A= ((parameters[1]) ? "; expires=3D" + parameters[1].toGMTString() : = "") +=0A= ((parameters[2]) ? "; path=3D" + parameters[2] : "") +=0A= ((parameters[3]) ? "; domain=3D" + parameters[3] : "") +=0A= ((parameters[4]) ? "; secure" : "");=0A= },=0A= =0A= getCookie: function(name) {=0A= var dc =3D document.cookie;=0A= var prefix =3D name + "=3D";=0A= var begin =3D dc.indexOf("; " + prefix);=0A= if (begin =3D=3D -1) {=0A= begin =3D dc.indexOf(prefix);=0A= if (begin !=3D 0) return null;=0A= } else {=0A= begin +=3D 2;=0A= }=0A= var end =3D document.cookie.indexOf(";", begin);=0A= if (end =3D=3D -1) {=0A= end =3D dc.length;=0A= }=0A= return unescape(dc.substring(begin + prefix.length, end));=0A= },=0A= =0A= _computeSize: function(content, id, width, height, margin, className) {=0A= var objBody =3D document.body;=0A= var tmpObj =3D document.createElement("div");=0A= tmpObj.setAttribute('id', id);=0A= tmpObj.className =3D className + "_content";=0A= =0A= if (height)=0A= tmpObj.style.height =3D height + "px"=0A= else=0A= tmpObj.style.width =3D width + "px"=0A= =0A= tmpObj.style.position =3D 'absolute';=0A= tmpObj.style.top =3D '0';=0A= tmpObj.style.left =3D '0';=0A= tmpObj.style.display =3D 'none';=0A= =0A= tmpObj.innerHTML =3D content;=0A= objBody.insertBefore(tmpObj, objBody.firstChild);=0A= =0A= var size;=0A= if (height)=0A= size =3D $(tmpObj).getDimensions().width + margin;=0A= else=0A= size =3D $(tmpObj).getDimensions().height + margin;=0A= objBody.removeChild(tmpObj);=0A= return size;=0A= } =0A= }=0A= =0A= -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/window/window_effects.js Effect.ResizeWindow =3D Class.create();=0A= Object.extend(Object.extend(Effect.ResizeWindow.prototype, = Effect.Base.prototype), {=0A= initialize: function(win, top, left, width, height) {=0A= this.window =3D win;=0A= this.window.resizing =3D true;=0A= =0A= var size =3D win.getSize();=0A= this.initWidth =3D parseFloat(size.width);=0A= this.initHeight =3D parseFloat(size.height);=0A= =0A= var location =3D win.getLocation();=0A= this.initTop =3D parseFloat(location.top);=0A= this.initLeft =3D parseFloat(location.left);=0A= =0A= this.width =3D width !=3D null ? parseFloat(width) : = this.initWidth;=0A= this.height =3D height !=3D null ? parseFloat(height) : = this.initHeight;=0A= this.top =3D top !=3D null ? parseFloat(top) : = this.initTop;=0A= this.left =3D left !=3D null ? parseFloat(left) : = this.initLeft;=0A= =0A= this.dx =3D this.left - this.initLeft;=0A= this.dy =3D this.top - this.initTop;=0A= this.dw =3D this.width - this.initWidth;=0A= this.dh =3D this.height - this.initHeight;=0A= =0A= this.r2 =3D $(this.window.getId() + "_row2");=0A= this.content =3D $(this.window.getId() + "_content");=0A= =0A= this.contentOverflow =3D this.content.getStyle("overflow") || "auto";=0A= this.content.setStyle({overflow: "hidden"});=0A= =0A= // Wired mode=0A= if (this.window.options.wiredDrag) {=0A= this.window.currentDrag =3D win._createWiredElement();=0A= this.window.currentDrag.show();=0A= this.window.element.hide();=0A= }=0A= =0A= this.start(arguments[5]);=0A= },=0A= =0A= update: function(position) {=0A= var width =3D Math.floor(this.initWidth + this.dw * position);=0A= var height =3D Math.floor(this.initHeight + this.dh * position);=0A= var top =3D Math.floor(this.initTop + this.dy * position);=0A= var left =3D Math.floor(this.initLeft + this.dx * position);=0A= =0A= if (window.ie) {=0A= if (Math.floor(height) =3D=3D 0) =0A= this.r2.hide();=0A= else if (Math.floor(height) >1) =0A= this.r2.show();=0A= } =0A= this.r2.setStyle({height: height});=0A= this.window.setSize(width, height);=0A= this.window.setLocation(top, left);=0A= },=0A= =0A= finish: function(position) {=0A= // Wired mode=0A= if (this.window.options.wiredDrag) {=0A= this.window._hideWiredElement();=0A= this.window.element.show();=0A= }=0A= =0A= this.window.setSize(this.width, this.height);=0A= this.window.setLocation(this.top, this.left);=0A= this.r2.setStyle({height: null});=0A= =0A= this.content.setStyle({overflow: this.contentOverflow});=0A= =0A= this.window.resizing =3D false;=0A= }=0A= });=0A= =0A= Effect.ModalSlideDown =3D function(element) {=0A= var windowScroll =3D WindowUtilities.getWindowScroll(); =0A= var height =3D element.getStyle("height"); =0A= element.setStyle({top: - (parseFloat(height) - windowScroll.top) + = "px"});=0A= =0A= element.show();=0A= return new Effect.Move(element, Object.extend({ x: 0, y: = parseFloat(height) }, arguments[1] || {}));=0A= };=0A= =0A= =0A= Effect.ModalSlideUp =3D function(element) {=0A= var height =3D element.getStyle("height");=0A= return new Effect.Move(element, Object.extend({ x: 0, y: = -parseFloat(height) }, arguments[1] || {}));=0A= };=0A= =0A= PopupEffect =3D Class.create();=0A= PopupEffect.prototype =3D { =0A= initialize: function(htmlElement) {=0A= this.html =3D $(htmlElement); =0A= this.options =3D Object.extend({className: "popup_effect", duration: = 0.4}, arguments[1] || {});=0A= =0A= },=0A= show: function(element, options) { =0A= var position =3D Position.cumulativeOffset(this.html); =0A= var size =3D this.html.getDimensions();=0A= var bounds =3D element.win.getBounds();=0A= this.window =3D element.win; =0A= // Create a div=0A= if (!this.div) {=0A= this.div =3D document.createElement("div");=0A= this.div.className =3D this.options.className;=0A= this.div.style.height =3D size.height + "px";=0A= this.div.style.width =3D size.width + "px";=0A= this.div.style.top =3D position[1] + "px";=0A= this.div.style.left =3D position[0] + "px"; =0A= this.div.style.position =3D "absolute"=0A= document.body.appendChild(this.div);=0A= } =0A= if (this.options.fromOpacity)=0A= this.div.setStyle({opacity: this.options.fromOpacity})=0A= this.div.show(); =0A= var style =3D "top:" + bounds.top + ";left:" +bounds.left + = ";width:" + bounds.width +";height:" + bounds.height;=0A= if (this.options.toOpacity)=0A= style +=3D ";opacity:" + this.options.toOpacity;=0A= =0A= new Effect.Morph(this.div ,{style: style, duration: = this.options.duration, afterFinish: this._showWindow.bind(this)}); =0A= },=0A= =0A= hide: function(element, options) { =0A= var position =3D Position.cumulativeOffset(this.html); =0A= var size =3D this.html.getDimensions(); =0A= this.window.visible =3D true; =0A= var bounds =3D this.window.getBounds();=0A= this.window.visible =3D false; =0A= =0A= this.window.element.hide();=0A= =0A= this.div.style.height =3D bounds.height;=0A= this.div.style.width =3D bounds.width;=0A= this.div.style.top =3D bounds.top;=0A= this.div.style.left =3D bounds.left;=0A= =0A= if (this.options.toOpacity)=0A= this.div.setStyle({opacity: this.options.toOpacity})=0A= =0A= this.div.show(); =0A= var style =3D "top:" + position[1] + "px;left:" + position[0] + = "px;width:" + size.width +"px;height:" + size.height + "px";=0A= =0A= if (this.options.fromOpacity)=0A= style +=3D ";opacity:" + this.options.fromOpacity;=0A= new Effect.Morph(this.div ,{style: style, duration: = this.options.duration, afterFinish: this._hideDiv.bind(this)}); =0A= },=0A= =0A= _showWindow: function() {=0A= this.div.hide();=0A= this.window.element.show(); =0A= },=0A= =0A= _hideDiv: function() {=0A= this.div.hide();=0A= }=0A= }=0A= =0A= -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/chenillekit/components/Window.js /*=0A= * Apache License=0A= * Version 2.0, January 2004=0A= * http://www.apache.org/licenses/=0A= *=0A= * Copyright 2008-2010 by chenillekit.org=0A= *=0A= * Licensed under the Apache License, Version 2.0 (the "License");=0A= * you may not use this file except in compliance with the License.=0A= * You may obtain a copy of the License at=0A= *=0A= * http://www.apache.org/licenses/LICENSE-2.0=0A= */=0A= =0A= Tapestry.Initializer.ckwindow =3D function(ckOptions)=0A= {=0A= var win =3D new Window(ckOptions.windowoptions);=0A= if (ckOptions.hasbody){=0A= win.setContent(ckOptions.contentid);=0A= }=0A= if (ckOptions.show){=0A= if (ckOptions.center){=0A= win.showCenter(ckOptions.modal);=0A= }else{=0A= win.show(ckOptions.modal);=0A= }=0A= }=0A= $T(ckOptions.clientid).ck_window =3D win;=0A= }; -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: quoted-printable Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scripts/ems-messages_en.js EMS_Messages =3D { cookiesHandlerMessage : Cookies are required to use this site. Please = enable them in browser and try again. }; -- -- -- =_NextPart_000_0000_01CF1C80.65698700 Content-Type: application/octet-stream Content-Transfer-Encoding: 7bit Content-Location: https://ems.ms.gov.pl/assets/731238022b09c33a/mis/components/scripts/cookies_disabled_handler.js jQuery(function() { cookieDisabledHandler(); }); function cookieDisabledHandler() { var cookieDisabled = (navigator.cookieEnabled) ? false : true; if(cookieDisabled) { alert(EMS_Messages.cookiesHandlerMessage); } } -- -- -- =_NextPart_000_0000_01CF1C80.65698700-- %PDF-1.4 %âăĎÓ 87 0 obj <</Linearized 1/L 109926/O 89/E 4519/N 41/T 109496/H [ 458 229]>> endobj 93 0 obj <</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[<E47201A594F8614A9FD5A9FC461F95FA><E47201A594F8614A9FD5A9FC461F95FA>]/Index[87 13]/Info 86 0 R/Length 53/Prev 109497/Root 88 0 R/Size 100/Type/XRef/W[1 2 1]>>stream hŢbbd``b`$ěău ÁšH°ëdŃ˙ů |