r106056 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106055‎ | r106056 | r106057 >
Date:18:35, 13 December 2011
Author:yaron
Status:ok
Tags:
Comment:
Tag for version 0.9
Modified paths:
  • /tags/extensions/HeaderTabs/REL_0_9 (added) (history)
  • /tags/extensions/HeaderTabs/REL_0_9/HeaderTabs.php (replaced) (history)
  • /tags/extensions/HeaderTabs/REL_0_9/HeaderTabs_body.jq.php (replaced) (history)
  • /tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.bare.css (replaced) (history)
  • /tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.core.js (replaced) (history)
  • /tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.jquery-large.css (replaced) (history)

Diff [purge]

Index: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.bare.css
@@ -0,0 +1,50 @@
 2+/**
 3+ * More Vector-like tabs, with normal sized text, blue links, and shiny tabs.
 4+ *
 5+ * @file
 6+ * @ingroup Extensions
 7+ *
 8+ * @author 70.189.238.136
 9+ * @author Olivier Beaton
 10+ */
 11+
 12+/* JQuery UI tabs clearing styles by Olivier Finlay Beaton and 70.189.238.136 */
 13+#headertabs.bare.ui-widget {
 14+ font-family: inherit;
 15+ font-size: 1em; /* IE doesn't like inherit here */
 16+}
 17+
 18+#headertabs.bare.ui-widget-content {
 19+ color: inherit;
 20+ background: transparent;
 21+ border: none;
 22+}
 23+
 24+#headertabs.bare.ui-tabs {
 25+ padding: 0;
 26+}
 27+
 28+#headertabs.bare.ui-tabs .ui-tabs-panel {
 29+ padding: 0;
 30+ padding-left: 0.5em;
 31+ padding-right: 0.5em;
 32+}
 33+
 34+#headertabs.bare .ui-widget-header {
 35+ border: none;
 36+ border-bottom-width: 1px;
 37+ border-bottom-style: solid;
 38+ border-bottom-color: #cccccc;
 39+}
 40+
 41+/* section by 70.189.238.136 */
 42+#headertabs.bare .ui-widget input, #headertabs.bare .ui-widget select, #headertabs.bare .ui-widget textarea, #headertabs.bare .ui-widget button { font-family: inherit; font-size: 1em; } /* ie doesn't like inherit here */
 43+#headertabs.bare .ui-widget-content a { color:#0645AD; }
 44+#headertabs.bare .ui-widget-content a:visited { color:#0b0080; }
 45+#headertabs.bare .ui-widget-content a.new { color:#CC2200; }
 46+#headertabs.bare .ui-widget-content a.new:visited { color:#A55858; }
 47+#headertabs.bare .ui-widget-content a.extiw { color:#3366BB; }
 48+#headertabs.bare .ui-widget-content a.redirect { color:#308050; }
 49+#headertabs.bare .ui-widget-content a.redirect:visited { color:#3070A0; }
 50+
 51+/* end JQuery UI tabs style clearer */
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.bare.css
___________________________________________________________________
Added: svn:eol-style
152 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.core.js
@@ -0,0 +1,88 @@
 2+/**
 3+ * Javascript code for Header Tabs extension for MW 1.17+
 4+ *
 5+ * @file
 6+ * @ingroup Extensions
 7+ *
 8+ * @author Sergey Chernyshev
 9+ * @author Yaron Koren
 10+ * @author Olivier Beaton
 11+ */
 12+
 13+function tabNameEscape(tabName) {
 14+ tabName = escape( tabName );
 15+ // For some reason, the JS escape() function doesn't handle
 16+ // '+', '/' or '@' - take care of these manually.
 17+ tabName = tabName.replace( /\+/g, "%2B" );
 18+ tabName = tabName.replace( /\//g, "%2F" );
 19+ tabName = tabName.replace( /@/g, "%40" );
 20+ tabName = tabName.replace( /%/g, "_" );
 21+ tabName = tabName.replace( /\./g, "_" );
 22+ return tabName;
 23+}
 24+
 25+var $tabs = $("#headertabs").tabs();
 26+
 27+/* follow a # anchor to a tab OR a heading */
 28+var curHash = window.location.hash;
 29+if ( curHash.indexOf( "#tab=" ) == 0 ) {
 30+ // remove the fragment identifier, we're using it for the name of the tab in the jquery ui tabs
 31+ var tabName = curHash.replace( "#tab=", "" );
 32+ $tabs.tabs('select', tabName);
 33+} else if (curHash != '') {
 34+ /* select tab in a fragment
 35+ thanks kboudloche, Alphos
 36+ http://forum.jquery.com/topic/jquery-ui-tabs-create-an-anchor-to-content-within-tab#14737000001187015
 37+ */
 38+ var tabName = $(curHash).closest('.ui-tabs-panel').attr('id');
 39+ $tabs.tabs('select', tabNameEscape(tabName));
 40+}
 41+
 42+function tabEditTabLink(hash) {
 43+ var section = '';
 44+ if ( hash.indexOf( "#tab=" ) == 0 ) {
 45+ // keep the fragment identifier, using it to do a jquery find on the id
 46+ hash = hash.replace( "#tab=", "#" );
 47+ }
 48+
 49+ if (hash != '') {
 50+ section = $(hash).attr('class');
 51+ var s = section.indexOf('section-')+8;
 52+ section = section.substring(s, s+section.substring(s).indexOf(' '));
 53+ if (section != 0) {
 54+ section = '&section='+section;
 55+ // no way to edit anything before the first section except to edit the entire article
 56+ }
 57+ }
 58+
 59+ if (!section || section == '0' || section == 0) {
 60+ section = '';
 61+ }
 62+ // http://wiki.org/wiki/index.php?title=User_talk:Finlay&action=edit&section=1
 63+ var $anchor = $('#edittab').find('a');
 64+ $anchor.attr('href', mw.config.get("wgScript")+'?title='+mw.config.get("wgPageName")+'&action=edit'+section);
 65+}
 66+
 67+// page load behaviour
 68+if (mw.config.get("htEditTabLink")) {
 69+ tabEditTabLink(window.location.hash);
 70+}
 71+
 72+// only fires when the user clicks on a tab, not on page load
 73+$tabs.bind('tabsshow', function(event, ui) {
 74+ // make the url show the current tab name for bookmarks
 75+ if (mw.config.get("htUseHistory")) {
 76+ window.location.hash = '#tab='+ui.tab.hash.slice(1);
 77+ }
 78+
 79+ if (mw.config.get("htEditTabLink")) {
 80+ tabEditTabLink(ui.tab.hash);
 81+ }
 82+});
 83+
 84+/* click a tab parserhook link */
 85+$(".tabLink").click( function() {
 86+ var href = $(this).attr('href');
 87+ $tabs.tabs('select', tabNameEscape(href));
 88+ return false;
 89+} );
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.core.js
___________________________________________________________________
Added: svn:eol-style
190 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.jquery-large.css
@@ -0,0 +1,27 @@
 2+/**
 3+ * Default jQuery styling, but with normal-sized font and blue (instead of
 4+ * black)links.
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ *
 9+ * @author 70.189.238.136
 10+ * @author Olivier Beaton
 11+ */
 12+
 13+#headertabs.jquery-large.ui-widget {
 14+ font-family: inherit;
 15+ font-size: 1em; /* IE doesn't like inherit here */
 16+}
 17+
 18+/* section by 70.189.238.136 */
 19+#headertabs.jquery-large .ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: inherit; font-size: 1em; } /* IE doesn't like inherit here */
 20+#headertabs.jquery-large .ui-widget-content a { color:#0645AD; }
 21+#headertabs.jquery-large .ui-widget-content a:visited { color:#0b0080; }
 22+#headertabs.jquery-large .ui-widget-content a.new { color:#CC2200; }
 23+#headertabs.jquery-large .ui-widget-content a.new:visited { color:#A55858; }
 24+#headertabs.jquery-large .ui-widget-content a.extiw { color:#3366BB; }
 25+#headertabs.jquery-large .ui-widget-content a.redirect { color:#308050; }
 26+#headertabs.jquery-large .ui-widget-content a.redirect:visited { color:#3070A0; }
 27+
 28+/* end JQuery UI tabs style clearer */
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-jquery/ext.headertabs.jquery-large.css
___________________________________________________________________
Added: svn:eol-style
129 + native
Index: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs.i18n.php
@@ -0,0 +1,87 @@
 2+<?php
 3+/**
 4+ * Internationalisation for Header Tabs extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+/** English */
 13+$messages['en'] = array(
 14+ 'headertabs-desc' => 'Adds tabs to the page separating top-level sections',
 15+ 'headertabs-edittab' => 'edit',
 16+ 'headertabs-edittab-hint' => 'Edit tab',
 17+ 'headertabs-edittab-key' => 't',
 18+);
 19+
 20+/** Asturian (Asturianu)
 21+ * @author Xuacu
 22+ */
 23+$messages['ast'] = array(
 24+ 'headertabs-desc' => 'Amiesta llingüetes a la páxina pa separar les seiciones de primer nivel',
 25+);
 26+
 27+/** German (Deutsch)
 28+ * @author Kghbln
 29+ */
 30+$messages['de'] = array(
 31+ 'headertabs-desc' => 'Ermöglicht Reiter zur alternativen Darstellung der obersten Gliederungsebene von Inhaltsverzeichnissen',
 32+);
 33+
 34+/** French (Français)
 35+ * @author Gomoko
 36+ */
 37+$messages['fr'] = array(
 38+ 'headertabs-desc' => 'Ajoute des onglets à la page qui sépare les sections de niveau supérieur',
 39+);
 40+
 41+/** Galician (Galego)
 42+ * @author Toliño
 43+ */
 44+$messages['gl'] = array(
 45+ 'headertabs-desc' => 'Engade lapelas á páxina para separar as seccións de nivel superior',
 46+);
 47+
 48+/** Upper Sorbian (Hornjoserbsce)
 49+ * @author Michawiki
 50+ */
 51+$messages['hsb'] = array(
 52+ 'headertabs-desc' => 'Zmóžnja rajtarki k stronje, kotrež najwyše wotrězki wotdźěleja',
 53+);
 54+
 55+/** Interlingua (Interlingua)
 56+ * @author McDutchie
 57+ */
 58+$messages['ia'] = array(
 59+ 'headertabs-desc' => 'Adde schedas al pagina, separante le sectiones de prime nivello',
 60+);
 61+
 62+/** Luxembourgish (Lëtzebuergesch)
 63+ * @author Robby
 64+ */
 65+$messages['lb'] = array(
 66+ 'headertabs-desc' => "Setzt Tabs op d'Säiten derbäi als alternativ Manéier fir den Ieweschten Niveau vun den Abschnitter vun engem Artikel duerzestellen",
 67+);
 68+
 69+/** Macedonian (Македонски)
 70+ * @author Bjankuloski06
 71+ */
 72+$messages['mk'] = array(
 73+ 'headertabs-desc' => 'Во страницата додава јазичиња што ги одделуваат првостепените поднаслови',
 74+);
 75+
 76+/** Malay (Bahasa Melayu)
 77+ * @author Anakmalaysia
 78+ */
 79+$messages['ms'] = array(
 80+ 'headertabs-desc' => 'Menambahkan tab pada laman untuk memisahkan bahagian-bahagian aras teratas',
 81+);
 82+
 83+/** Dutch (Nederlands)
 84+ * @author Siebrand
 85+ */
 86+$messages['nl'] = array(
 87+ 'headertabs-desc' => 'Voegt tabbladen toe aan een pagina om de hoogste niveaus te scheiden',
 88+);
Property changes on: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs.i18n.php
___________________________________________________________________
Added: svn:eol-style
189 + native
Index: tags/extensions/HeaderTabs/REL_0_9/COPYING
@@ -0,0 +1,348 @@
 2+The license text below "----" applies to all files within this distribution, other
 3+than those that are in a directory which contains files named "LICENSE" or
 4+"COPYING", or a subdirectory thereof. For those files, the license text contained in
 5+said file overrides any license information contained in directories of smaller depth.
 6+Alternative licenses are typically used for software that is provided by external
 7+parties, and merely packaged with the Semantic Forms release for convenience.
 8+----
 9+
 10+ GNU GENERAL PUBLIC LICENSE
 11+ Version 2, June 1991
 12+
 13+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
 14+ 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 15+ Everyone is permitted to copy and distribute verbatim copies
 16+ of this license document, but changing it is not allowed.
 17+
 18+ Preamble
 19+
 20+ The licenses for most software are designed to take away your
 21+freedom to share and change it. By contrast, the GNU General Public
 22+License is intended to guarantee your freedom to share and change free
 23+software--to make sure the software is free for all its users. This
 24+General Public License applies to most of the Free Software
 25+Foundation's software and to any other program whose authors commit to
 26+using it. (Some other Free Software Foundation software is covered by
 27+the GNU Library General Public License instead.) You can apply it to
 28+your programs, too.
 29+
 30+ When we speak of free software, we are referring to freedom, not
 31+price. Our General Public Licenses are designed to make sure that you
 32+have the freedom to distribute copies of free software (and charge for
 33+this service if you wish), that you receive source code or can get it
 34+if you want it, that you can change the software or use pieces of it
 35+in new free programs; and that you know you can do these things.
 36+
 37+ To protect your rights, we need to make restrictions that forbid
 38+anyone to deny you these rights or to ask you to surrender the rights.
 39+These restrictions translate to certain responsibilities for you if you
 40+distribute copies of the software, or if you modify it.
 41+
 42+ For example, if you distribute copies of such a program, whether
 43+gratis or for a fee, you must give the recipients all the rights that
 44+you have. You must make sure that they, too, receive or can get the
 45+source code. And you must show them these terms so they know their
 46+rights.
 47+
 48+ We protect your rights with two steps: (1) copyright the software, and
 49+(2) offer you this license which gives you legal permission to copy,
 50+distribute and/or modify the software.
 51+
 52+ Also, for each author's protection and ours, we want to make certain
 53+that everyone understands that there is no warranty for this free
 54+software. If the software is modified by someone else and passed on, we
 55+want its recipients to know that what they have is not the original, so
 56+that any problems introduced by others will not reflect on the original
 57+authors' reputations.
 58+
 59+ Finally, any free program is threatened constantly by software
 60+patents. We wish to avoid the danger that redistributors of a free
 61+program will individually obtain patent licenses, in effect making the
 62+program proprietary. To prevent this, we have made it clear that any
 63+patent must be licensed for everyone's free use or not licensed at all.
 64+
 65+ The precise terms and conditions for copying, distribution and
 66+modification follow.
 67+
 68+ GNU GENERAL PUBLIC LICENSE
 69+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 70+
 71+ 0. This License applies to any program or other work which contains
 72+a notice placed by the copyright holder saying it may be distributed
 73+under the terms of this General Public License. The "Program", below,
 74+refers to any such program or work, and a "work based on the Program"
 75+means either the Program or any derivative work under copyright law:
 76+that is to say, a work containing the Program or a portion of it,
 77+either verbatim or with modifications and/or translated into another
 78+language. (Hereinafter, translation is included without limitation in
 79+the term "modification".) Each licensee is addressed as "you".
 80+
 81+Activities other than copying, distribution and modification are not
 82+covered by this License; they are outside its scope. The act of
 83+running the Program is not restricted, and the output from the Program
 84+is covered only if its contents constitute a work based on the
 85+Program (independent of having been made by running the Program).
 86+Whether that is true depends on what the Program does.
 87+
 88+ 1. You may copy and distribute verbatim copies of the Program's
 89+source code as you receive it, in any medium, provided that you
 90+conspicuously and appropriately publish on each copy an appropriate
 91+copyright notice and disclaimer of warranty; keep intact all the
 92+notices that refer to this License and to the absence of any warranty;
 93+and give any other recipients of the Program a copy of this License
 94+along with the Program.
 95+
 96+You may charge a fee for the physical act of transferring a copy, and
 97+you may at your option offer warranty protection in exchange for a fee.
 98+
 99+ 2. You may modify your copy or copies of the Program or any portion
 100+of it, thus forming a work based on the Program, and copy and
 101+distribute such modifications or work under the terms of Section 1
 102+above, provided that you also meet all of these conditions:
 103+
 104+ a) You must cause the modified files to carry prominent notices
 105+ stating that you changed the files and the date of any change.
 106+
 107+ b) You must cause any work that you distribute or publish, that in
 108+ whole or in part contains or is derived from the Program or any
 109+ part thereof, to be licensed as a whole at no charge to all third
 110+ parties under the terms of this License.
 111+
 112+ c) If the modified program normally reads commands interactively
 113+ when run, you must cause it, when started running for such
 114+ interactive use in the most ordinary way, to print or display an
 115+ announcement including an appropriate copyright notice and a
 116+ notice that there is no warranty (or else, saying that you provide
 117+ a warranty) and that users may redistribute the program under
 118+ these conditions, and telling the user how to view a copy of this
 119+ License. (Exception: if the Program itself is interactive but
 120+ does not normally print such an announcement, your work based on
 121+ the Program is not required to print an announcement.)
 122+
 123+These requirements apply to the modified work as a whole. If
 124+identifiable sections of that work are not derived from the Program,
 125+and can be reasonably considered independent and separate works in
 126+themselves, then this License, and its terms, do not apply to those
 127+sections when you distribute them as separate works. But when you
 128+distribute the same sections as part of a whole which is a work based
 129+on the Program, the distribution of the whole must be on the terms of
 130+this License, whose permissions for other licensees extend to the
 131+entire whole, and thus to each and every part regardless of who wrote it.
 132+
 133+Thus, it is not the intent of this section to claim rights or contest
 134+your rights to work written entirely by you; rather, the intent is to
 135+exercise the right to control the distribution of derivative or
 136+collective works based on the Program.
 137+
 138+In addition, mere aggregation of another work not based on the Program
 139+with the Program (or with a work based on the Program) on a volume of
 140+a storage or distribution medium does not bring the other work under
 141+the scope of this License.
 142+
 143+ 3. You may copy and distribute the Program (or a work based on it,
 144+under Section 2) in object code or executable form under the terms of
 145+Sections 1 and 2 above provided that you also do one of the following:
 146+
 147+ a) Accompany it with the complete corresponding machine-readable
 148+ source code, which must be distributed under the terms of Sections
 149+ 1 and 2 above on a medium customarily used for software interchange; or,
 150+
 151+ b) Accompany it with a written offer, valid for at least three
 152+ years, to give any third party, for a charge no more than your
 153+ cost of physically performing source distribution, a complete
 154+ machine-readable copy of the corresponding source code, to be
 155+ distributed under the terms of Sections 1 and 2 above on a medium
 156+ customarily used for software interchange; or,
 157+
 158+ c) Accompany it with the information you received as to the offer
 159+ to distribute corresponding source code. (This alternative is
 160+ allowed only for noncommercial distribution and only if you
 161+ received the program in object code or executable form with such
 162+ an offer, in accord with Subsection b above.)
 163+
 164+The source code for a work means the preferred form of the work for
 165+making modifications to it. For an executable work, complete source
 166+code means all the source code for all modules it contains, plus any
 167+associated interface definition files, plus the scripts used to
 168+control compilation and installation of the executable. However, as a
 169+special exception, the source code distributed need not include
 170+anything that is normally distributed (in either source or binary
 171+form) with the major components (compiler, kernel, and so on) of the
 172+operating system on which the executable runs, unless that component
 173+itself accompanies the executable.
 174+
 175+If distribution of executable or object code is made by offering
 176+access to copy from a designated place, then offering equivalent
 177+access to copy the source code from the same place counts as
 178+distribution of the source code, even though third parties are not
 179+compelled to copy the source along with the object code.
 180+
 181+ 4. You may not copy, modify, sublicense, or distribute the Program
 182+except as expressly provided under this License. Any attempt
 183+otherwise to copy, modify, sublicense or distribute the Program is
 184+void, and will automatically terminate your rights under this License.
 185+However, parties who have received copies, or rights, from you under
 186+this License will not have their licenses terminated so long as such
 187+parties remain in full compliance.
 188+
 189+ 5. You are not required to accept this License, since you have not
 190+signed it. However, nothing else grants you permission to modify or
 191+distribute the Program or its derivative works. These actions are
 192+prohibited by law if you do not accept this License. Therefore, by
 193+modifying or distributing the Program (or any work based on the
 194+Program), you indicate your acceptance of this License to do so, and
 195+all its terms and conditions for copying, distributing or modifying
 196+the Program or works based on it.
 197+
 198+ 6. Each time you redistribute the Program (or any work based on the
 199+Program), the recipient automatically receives a license from the
 200+original licensor to copy, distribute or modify the Program subject to
 201+these terms and conditions. You may not impose any further
 202+restrictions on the recipients' exercise of the rights granted herein.
 203+You are not responsible for enforcing compliance by third parties to
 204+this License.
 205+
 206+ 7. If, as a consequence of a court judgment or allegation of patent
 207+infringement or for any other reason (not limited to patent issues),
 208+conditions are imposed on you (whether by court order, agreement or
 209+otherwise) that contradict the conditions of this License, they do not
 210+excuse you from the conditions of this License. If you cannot
 211+distribute so as to satisfy simultaneously your obligations under this
 212+License and any other pertinent obligations, then as a consequence you
 213+may not distribute the Program at all. For example, if a patent
 214+license would not permit royalty-free redistribution of the Program by
 215+all those who receive copies directly or indirectly through you, then
 216+the only way you could satisfy both it and this License would be to
 217+refrain entirely from distribution of the Program.
 218+
 219+If any portion of this section is held invalid or unenforceable under
 220+any particular circumstance, the balance of the section is intended to
 221+apply and the section as a whole is intended to apply in other
 222+circumstances.
 223+
 224+It is not the purpose of this section to induce you to infringe any
 225+patents or other property right claims or to contest validity of any
 226+such claims; this section has the sole purpose of protecting the
 227+integrity of the free software distribution system, which is
 228+implemented by public license practices. Many people have made
 229+generous contributions to the wide range of software distributed
 230+through that system in reliance on consistent application of that
 231+system; it is up to the author/donor to decide if he or she is willing
 232+to distribute software through any other system and a licensee cannot
 233+impose that choice.
 234+
 235+This section is intended to make thoroughly clear what is believed to
 236+be a consequence of the rest of this License.
 237+
 238+ 8. If the distribution and/or use of the Program is restricted in
 239+certain countries either by patents or by copyrighted interfaces, the
 240+original copyright holder who places the Program under this License
 241+may add an explicit geographical distribution limitation excluding
 242+those countries, so that distribution is permitted only in or among
 243+countries not thus excluded. In such case, this License incorporates
 244+the limitation as if written in the body of this License.
 245+
 246+ 9. The Free Software Foundation may publish revised and/or new versions
 247+of the General Public License from time to time. Such new versions will
 248+be similar in spirit to the present version, but may differ in detail to
 249+address new problems or concerns.
 250+
 251+Each version is given a distinguishing version number. If the Program
 252+specifies a version number of this License which applies to it and "any
 253+later version", you have the option of following the terms and conditions
 254+either of that version or of any later version published by the Free
 255+Software Foundation. If the Program does not specify a version number of
 256+this License, you may choose any version ever published by the Free Software
 257+Foundation.
 258+
 259+ 10. If you wish to incorporate parts of the Program into other free
 260+programs whose distribution conditions are different, write to the author
 261+to ask for permission. For software which is copyrighted by the Free
 262+Software Foundation, write to the Free Software Foundation; we sometimes
 263+make exceptions for this. Our decision will be guided by the two goals
 264+of preserving the free status of all derivatives of our free software and
 265+of promoting the sharing and reuse of software generally.
 266+
 267+ NO WARRANTY
 268+
 269+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
 270+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
 271+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
 272+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
 273+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 274+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
 275+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
 276+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
 277+REPAIR OR CORRECTION.
 278+
 279+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
 280+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
 281+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
 282+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
 283+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
 284+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
 285+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
 286+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
 287+POSSIBILITY OF SUCH DAMAGES.
 288+
 289+ END OF TERMS AND CONDITIONS
 290+
 291+ How to Apply These Terms to Your New Programs
 292+
 293+ If you develop a new program, and you want it to be of the greatest
 294+possible use to the public, the best way to achieve this is to make it
 295+free software which everyone can redistribute and change under these terms.
 296+
 297+ To do so, attach the following notices to the program. It is safest
 298+to attach them to the start of each source file to most effectively
 299+convey the exclusion of warranty; and each file should have at least
 300+the "copyright" line and a pointer to where the full notice is found.
 301+
 302+ <one line to give the program's name and a brief idea of what it does.>
 303+ Copyright (C) <year> <name of author>
 304+
 305+ This program is free software; you can redistribute it and/or modify
 306+ it under the terms of the GNU General Public License as published by
 307+ the Free Software Foundation; either version 2 of the License, or
 308+ (at your option) any later version.
 309+
 310+ This program is distributed in the hope that it will be useful,
 311+ but WITHOUT ANY WARRANTY; without even the implied warranty of
 312+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 313+ GNU General Public License for more details.
 314+
 315+ You should have received a copy of the GNU General Public License
 316+ along with this program; if not, write to the Free Software
 317+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 318+
 319+
 320+Also add information on how to contact you by electronic and paper mail.
 321+
 322+If the program is interactive, make it output a short notice like this
 323+when it starts in an interactive mode:
 324+
 325+ Gnomovision version 69, Copyright (C) year name of author
 326+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
 327+ This is free software, and you are welcome to redistribute it
 328+ under certain conditions; type `show c' for details.
 329+
 330+The hypothetical commands `show w' and `show c' should show the appropriate
 331+parts of the General Public License. Of course, the commands you use may
 332+be called something other than `show w' and `show c'; they could even be
 333+mouse-clicks or menu items--whatever suits your program.
 334+
 335+You should also get your employer (if you work as a programmer) or your
 336+school, if any, to sign a "copyright disclaimer" for the program, if
 337+necessary. Here is a sample; alter the names:
 338+
 339+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
 340+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
 341+
 342+ <signature of Ty Coon>, 1 April 1989
 343+ Ty Coon, President of Vice
 344+
 345+This General Public License does not permit incorporating your program into
 346+proprietary programs. If your program is a subroutine library, you may
 347+consider it more useful to permit linking proprietary applications with the
 348+library. If this is what you want to do, use the GNU Library General
 349+Public License instead of this License.
Property changes on: tags/extensions/HeaderTabs/REL_0_9/COPYING
___________________________________________________________________
Added: svn:eol-style
1350 + native
Index: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs.php
@@ -0,0 +1,127 @@
 2+<?php
 3+/**
 4+ * Header Tabs extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ *
 9+ * @author Sergey Chernyshev
 10+ * @author Yaron Koren
 11+ * @author Olivier Finlay Beaton
 12+ */
 13+
 14+$htScriptPath = $wgScriptPath . '/extensions/HeaderTabs';
 15+
 16+$dir = dirname( __FILE__ );
 17+
 18+// the file loaded depends on whether the ResourceLoader exists, which in
 19+// turn depends on what version of MediaWiki this is - for MW 1.17+,
 20+// HeaderTabs_body.jq.php will get loaded
 21+$useJQuery = is_callable( array( 'OutputPage', 'addModules' ) );
 22+
 23+$wgExtensionCredits['parserhook'][] = array(
 24+ 'path' => __FILE__,
 25+ 'name' => 'Header Tabs',
 26+ 'descriptionmsg' => 'headertabs-desc',
 27+ 'version' => '0.9',
 28+ 'author' => array( '[http://www.sergeychernyshev.com Sergey Chernyshev]', 'Yaron Koren', '[http://olivierbeaton.com Olivier Finlay Beaton]' ),
 29+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Header_Tabs'
 30+);
 31+
 32+// Translations
 33+$wgExtensionMessagesFiles['HeaderTabs'] = $dir . '/HeaderTabs.i18n.php';
 34+
 35+// Config
 36+$htUseHistory = true;
 37+$htRenderSingleTab = false;
 38+$htAutomaticNamespaces = array();
 39+$htDefaultFirstTab = false;
 40+$htDisableDefaultToc = true;
 41+$htGenerateTabTocs = false;
 42+$htStyle = 'jquery-large';
 43+$htEditTabLink = true;
 44+
 45+// Extension:Configure
 46+if ( isset( $wgConfigureAdditionalExtensions ) && is_array( $wgConfigureAdditionalExtensions ) ) {
 47+
 48+ /**
 49+ * attempt to tell Extension:Configure how to web configure our extension
 50+ * @since 2011-09-22, 0.2
 51+ */
 52+ $wgConfigureAdditionalExtensions[] = array(
 53+ 'name' => 'HeaderTabs',
 54+ 'settings' => array(
 55+ 'htUseHistory' => 'bool',
 56+ 'htRenderSingleTab' => 'bool',
 57+ 'htAutomaticNamespaces' => 'array',
 58+ 'htDefaultFirstTab' => 'string',
 59+ 'htDisableDefaultToc' => 'bool',
 60+ 'htGenerateTabTocs' => 'bool',
 61+ 'htStyle' => 'string',
 62+ 'htEditTabLink' => 'bool',
 63+ ),
 64+ 'array' => array(
 65+ 'htAutomaticNamespaces' => 'simple',
 66+ ),
 67+ 'schema' => false,
 68+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Header_Tabs',
 69+ );
 70+
 71+} // $wgConfigureAdditionalExtensions exists
 72+
 73+// used by both jQuery and YUI
 74+$wgHooks['ParserFirstCallInit'][] = 'headerTabsParserFunctions';
 75+$wgHooks['LanguageGetMagic'][] = 'headerTabsLanguageGetMagic';
 76+$wgHooks['BeforePageDisplay'][] = 'HeaderTabs::addHTMLHeader';
 77+$wgHooks['ParserAfterTidy'][] = 'HeaderTabs::replaceFirstLevelHeaders';
 78+
 79+if ( $useJQuery ) {
 80+ $wgAutoloadClasses['HeaderTabs'] = "$dir/HeaderTabs_body.jq.php";
 81+
 82+ $wgHooks['ResourceLoaderGetConfigVars'][] = 'HeaderTabs::addConfigVarsToJS';
 83+
 84+ $wgResourceModules['ext.headertabs'] = array(
 85+ // JavaScript and CSS styles. To combine multiple file, just list them as an array.
 86+ 'scripts' => 'skins-jquery/ext.headertabs.core.js',
 87+ // 'styles' => // the style is added in HeaderTabs::addHTMLHeader
 88+
 89+ // If your scripts need code from other modules, list their identifiers as dependencies
 90+ // and ResourceLoader will make sure they're loaded before you.
 91+ // You don't need to manually list 'mediawiki' or 'jquery', which are always loaded.
 92+ 'dependencies' => array( 'jquery.ui.tabs' ),
 93+
 94+ // ResourceLoader needs to know where your files are; specify your
 95+ // subdir relative to "/extensions" (or $wgExtensionAssetsPath)
 96+ 'localBasePath' => dirname( __FILE__ ),
 97+ 'remoteExtPath' => 'HeaderTabs',
 98+ );
 99+
 100+} else { // if ! $useJQuery
 101+ $wgAutoloadClasses['HeaderTabs'] = "$dir/HeaderTabs_body.yui.php";
 102+}
 103+
 104+# Parser function to insert a link changing a tab:
 105+function headerTabsParserFunctions( $parser ) {
 106+
 107+ //! @todo make this load a custom name from i18n file (2011-12-12, ofb)
 108+ // ensure to keep this name too for backwards compat
 109+ $parser->setHook( 'headertabs', array( 'HeaderTabs', 'tag' ) );
 110+ $parser->setFunctionHook( 'switchtablink', array( 'HeaderTabs', 'renderSwitchTabLink' ) );
 111+ return true;
 112+}
 113+
 114+function headerTabsLanguageGetMagic( &$magicWords, $langCode = "en" ) {
 115+ //! @todo implement in tab parsing code instead... but problems like nowiki (2011-12-12, ofb)
 116+ // if you make them here, it will be article wide instead of tab-wide
 117+ // __NOTABTOC__, __TABTOC__, __NOEDITTAB__
 118+ // and one day with a special page: __NEWTABLINK__, __NONEWTABLINK__
 119+ // and one day if we can force toc generation: __FORCETABTOC__
 120+
 121+ //! @todo make this load a custom name from i18n file (2011-12-12, ofb)
 122+ // ensure to keep this name too for backwards compat
 123+ switch ( $langCode ) {
 124+ default:
 125+ $magicWords['switchtablink'] = array ( 0, 'switchtablink' );
 126+ }
 127+ return true;
 128+}
Property changes on: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs.php
___________________________________________________________________
Added: svn:eol-style
1129 + native
Index: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs_body.yui.php
@@ -0,0 +1,149 @@
 2+<?php
 3+/**
 4+ * Version of the Header Tabs class that uses the YUI Javascript library,
 5+ * meant to be used with MediaWiki < 1.17.
 6+ *
 7+ * @file
 8+ * @ingroup Extensions
 9+ *
 10+ * @author Sergey Chernyshev
 11+ */
 12+
 13+class HeaderTabs {
 14+
 15+ public static function tag( $input, $args, $parser ) {
 16+ global $wgOut, $htScriptPath;
 17+
 18+ $wgOut->addLink( array(
 19+ 'rel' => 'stylesheet',
 20+ 'type' => 'text/css',
 21+ 'media' => 'screen, projection',
 22+ 'href' => $htScriptPath . '/skins-yui/headertabs_hide_factbox.css'
 23+ ) );
 24+
 25+ // This tag, besides just enabling tabs, also designates the
 26+ // end of tabs.
 27+ // TOC doesn't make sense where tabs are used
 28+ return '<div id="nomoretabs"></div>';
 29+ }
 30+
 31+ public static function replaceFirstLevelHeaders( &$parser, &$text ) {
 32+ global $htUseHistory, $htScriptPath, $wgVersion;
 33+
 34+ $aboveandbelow = explode( '<div id="nomoretabs"></div>', $text, 2 );
 35+
 36+ if ( count( $aboveandbelow ) <= 1 ) {
 37+ return true; // <headertabs/> tag is not found
 38+ }
 39+ $below = $aboveandbelow[1];
 40+
 41+ $aboveandtext = preg_split( '/(<a name=".*?"><\/a>)?<h1.*?class="mw-headline".*?<\/h1>/', $aboveandbelow[0], 2 );
 42+ if ( count( $aboveandtext ) > 1 ) {
 43+ $above = $aboveandtext[0];
 44+
 45+ $tabs = array();
 46+
 47+ if ( version_compare( $wgVersion, '1.16', '>=' ) ) {
 48+ $parts = preg_split( '/(<h1.*?class="mw-headline".*?<\/h1>)/', $aboveandbelow[0], - 1, PREG_SPLIT_DELIM_CAPTURE );
 49+ array_shift( $parts ); // don't need above part anyway
 50+
 51+ for ( $i = 0; $i < ( count( $parts ) / 2 ); $i++ )
 52+ {
 53+ preg_match( '/id="(.*?)"/', $parts[$i * 2], $matches );
 54+ $tabid = $matches[1];
 55+
 56+ preg_match( '/<span.*?class="mw-headline".*?>\s*(.*?)\s*<\/h1>/', $parts[$i * 2], $matches );
 57+ $tabtitle = $matches[1];
 58+
 59+ array_push( $tabs, array(
 60+ 'tabid' => $tabid,
 61+ 'title' => $tabtitle,
 62+ 'tabcontent' => $parts[$i * 2 + 1]
 63+ ) );
 64+ }
 65+ } else {
 66+ $parts = preg_split( '/<a name="(.*?)"><\/a><h1>.*?<span class="mw-headline">\s*(.*?)\s*<\/span><\/h1>/', $aboveandbelow[0], - 1, PREG_SPLIT_DELIM_CAPTURE );
 67+ array_shift( $parts ); // don't need above part anyway
 68+
 69+ for ( $i = 0; $i < ( count( $parts ) / 3 ); $i++ ) {
 70+ array_push( $tabs, array(
 71+ 'tabid' => $parts[$i * 3],
 72+ 'title' => $parts[$i * 3 + 1],
 73+ 'tabcontent' => $parts[$i * 3 + 2]
 74+ ) );
 75+ }
 76+ }
 77+
 78+ $tabhtml = '<div id="headertabs" class="yui-navset">';
 79+
 80+ $tabhtml .= '<ul class="yui-nav">';
 81+ $firsttab = true;
 82+ foreach ( $tabs as $tab ) {
 83+ $tabhtml .= '<li';
 84+ if ( $firsttab ) {
 85+ $tabhtml .= ' class="selected"';
 86+ $firsttab = false;
 87+ }
 88+ $tabhtml .= '><a id="headertab_' . $tab['tabid'] . '" tabid="#' . $tab['tabid'] . '"><em>' . $tab['title'] . "</em></a></li>\n";
 89+ }
 90+ $tabhtml .= '</ul>';
 91+
 92+ $tabhtml .= '<div class="yui-content">';
 93+ foreach ( $tabs as $tab ) {
 94+ $tabhtml .= '<div id="' . $tab['tabid'] . '"><p>' . $tab['tabcontent'] . '</p></div>';
 95+ }
 96+ $tabhtml .= '</div></div>';
 97+
 98+ if ( $htUseHistory ) {
 99+ $text = '<iframe id="yui-history-iframe" src="' . $htScriptPath . '/skins-yui/blank.html" style="position:absolute; top:0; left:0; width:1px; height:1px; visibility:hidden;"></iframe><input id="yui-history-field" type="hidden">';
 100+ } else {
 101+ $text = '';
 102+ }
 103+ $text .= '<script>HeaderTabs.init(' . ( $htUseHistory ? 'true' : 'false' ) . ');</script>';
 104+ $text .= $above . $tabhtml . $below;
 105+ }
 106+
 107+ return true;
 108+ }
 109+
 110+ /**
 111+ * @param $out OutputPage
 112+ * @return bool
 113+ */
 114+ public static function addHTMLHeader( &$out ) {
 115+ global $htScriptPath, $htUseHistory;
 116+
 117+ if ( $htUseHistory ) {
 118+ $out->addScript( '<script type="text/javascript" src="'.$htScriptPath.'/skins-yui/combined-history-min.js"></script>' );
 119+ } else {
 120+ $out->addScript( '<script type="text/javascript" src="'.$htScriptPath.'/skins-yui/combined-min.js"></script>' );
 121+ }
 122+
 123+ $out->addLink( array(
 124+ 'rel' => 'stylesheet',
 125+ 'type' => 'text/css',
 126+ 'media' => 'screen, projection',
 127+ 'href' => $htScriptPath . '/skins-yui/combined-min.css'
 128+ ) );
 129+
 130+ return true;
 131+ }
 132+
 133+ public static function renderSwitchTabLink( &$parser, $tabName, $linkText, $anotherTarget = '' ) {
 134+ $tabTitle = Title::newFromText( $tabName );
 135+ $tabKey = $tabTitle->getDBkey();
 136+ $sanitizedLinkText = $parser->recursiveTagParse( $linkText );
 137+
 138+ if ( $anotherTarget != '' ) {
 139+ $targetTitle = Title::newFromText( $anotherTarget );
 140+ $targetURL = $targetTitle->getFullURL();
 141+
 142+ $output = '<a href="' . $targetURL . '#tab=' . $tabKey . '">' . $sanitizedLinkText . '</a>';
 143+ } else {
 144+ $output = '<a href="#tab=' . $tabKey . '" onclick="return HeaderTabs.switchTab(\'' . $tabKey . '\')">' . $sanitizedLinkText . '</a>';
 145+ }
 146+
 147+ return $parser->insertStripItem( $output, $parser->mStripState );
 148+ }
 149+
 150+}
Property changes on: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs_body.yui.php
___________________________________________________________________
Added: svn:eol-style
1151 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-min.css
@@ -0,0 +1 @@
 2+.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{margin:0 .5em 0 0;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .5em;}.yui-navset .yui-content .yui-hidden{border:0;height:0;width:0;padding:0;position:absolute;left:-999999px;overflow:hidden;visibility:hidden;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{width:6em;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{width:auto;}.yui-navset .yui-navset-left,.yui-navset-left{padding:0 0 0 6em;}.yui-navset-right{padding:0 6em 0 0;}.yui-navset-top,.yui-navset-bottom{padding:auto;}.yui-nav,.yui-nav li{margin:0;padding:0;list-style:none;}.yui-navset li em{font-style:normal;}.yui-navset{position:relative;zoom:1;}.yui-navset .yui-content,.yui-navset .yui-content div{zoom:1;}.yui-navset .yui-content:after{content:'';display:block;clear:both;}.yui-navset .yui-nav li,.yui-navset .yui-navset-top .yui-nav li,.yui-navset .yui-navset-bottom .yui-nav li{display:inline-block;display:-moz-inline-stack;*display:inline;vertical-align:bottom;cursor:pointer;zoom:1;}.yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{display:block;}.yui-navset .yui-nav a{position:relative;}.yui-navset .yui-nav li a,.yui-navset-top .yui-nav li a,.yui-navset-bottom .yui-nav li a{display:block;display:inline-block;vertical-align:bottom;zoom:1;}.yui-navset-left .yui-nav li a,.yui-navset-right .yui-nav li a{display:block;}.yui-navset-bottom .yui-nav li a{vertical-align:text-top;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-left .yui-nav,.yui-navset-right .yui-nav{position:absolute;z-index:1;}.yui-navset-top .yui-nav,.yui-navset-bottom .yui-nav{position:static;}.yui-navset .yui-navset-left .yui-nav,.yui-navset-left .yui-nav{left:0;right:auto;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{right:0;left:auto;}.yui-skin-sam .yui-navset .yui-nav,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav{border:solid #2647a0;border-width:0 0 5px;zoom:1;}.yui-skin-sam .yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;zoom:1;}.yui-skin-sam .yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-skin-sam .yui-navset .yui-nav a,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a{background:#d8d8d8 url(http://yui.yahooapis.com/2.8.1/build/assets/skins/sam/sprite.png) repeat-x;border:solid #a3a3a3;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-skin-sam .yui-navset .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav a em{border:solid #a3a3a3;border-width:1px 0 0;cursor:hand;padding:.25em .75em;left:0;right:0;bottom:0;top:-1px;position:relative;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a:focus,.yui-skin-sam .yui-navset .yui-nav .selected a:hover{background:#2647a0 url(http://yui.yahooapis.com/2.8.1/build/assets/skins/sam/sprite.png) repeat-x left -1400px;color:#fff;}.yui-skin-sam .yui-navset .yui-nav a:hover,.yui-skin-sam .yui-navset .yui-nav a:focus{background:#bfdaff url(http://yui.yahooapis.com/2.8.1/build/assets/skins/sam/sprite.png) repeat-x left -1300px;outline:0;}.yui-skin-sam .yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-skin-sam .yui-navset .yui-nav .selected a,.yui-skin-sam .yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:#edf5ff;}.yui-skin-sam .yui-navset .yui-content,.yui-skin-sam .yui-navset .yui-navset-top .yui-content{border:1px solid #808080;border-top-color:#243356;padding:.25em .5em;}.yui-skin-sam .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav,.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 5px 0 0;Xposition:absolute;top:0;bottom:0;}.yui-skin-sam .yui-navset .yui-navset-right .yui-nav,.yui-skin-sam .yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-skin-sam .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav li,.yui-skin-sam .yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-skin-sam .yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-skin-sam .yui-navset-left .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-skin-sam .yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav a{border-width:1px 0;}.yui-skin-sam .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset .yui-navset-left .yui-nav a em,.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 0 0 1px;padding:.2em .75em;top:auto;left:-1px;}.yui-skin-sam .yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-skin-sam .yui-navset-left .yui-nav a,.yui-skin-sam .yui-navset-left .yui-nav .selected a,.yui-skin-sam .yui-navset-left .yui-nav a:hover,.yui-skin-sam .yui-navset-right .yui-nav a,.yui-skin-sam .yui-navset-right .yui-nav .selected a,.yui-skin-sam .yui-navset-right .yui-nav a:hover,.yui-skin-sam .yui-navset-bottom .yui-nav a,.yui-skin-sam .yui-navset-bottom .yui-nav .selected a,.yui-skin-sam .yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-skin-sam .yui-navset-left .yui-content{border:1px solid #808080;border-left-color:#243356;}.yui-skin-sam .yui-navset-bottom .yui-nav,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav .selected,.yui-skin-sam .yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav li,.yui-skin-sam .yui-navset-bottom .yui-nav li{padding:0 0 1px 0;vertical-align:top;}.yui-skin-sam .yui-navset .yui-navset-bottom .yui-nav a em,.yui-skin-sam .yui-navset-bottom .yui-nav a em{border-width:0 0 1px;top:auto;bottom:-1px;}.yui-skin-sam .yui-navset-bottom .yui-content,.yui-skin-sam .yui-navset .yui-navset-bottom .yui-content{border:1px solid #808080;border-bottom-color:#243356;}.yui-skin-sam .yui-navset .yui-content{background:transparent;}.yui-navset .yui-content{background:transparent;}.yui-navset .yui-nav,.yui-navset .yui-navset-top .yui-nav{border-color:#2647A0;border-style:solid;border-width:0 0 5px;}.yui-navset .yui-nav li,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav li{margin:0 .16em 0 0;padding:1px 0 0;}.yui-navset .yui-nav .selected,.yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected{margin:0 .16em -1px 0;}.yui-navset .yui-nav a,.yui-navset .yui-navset-top .yui-nav a{background:#D8D8D8;border-color:#A3A3A3;border-style:solid;border-width:0 1px;color:#000;position:relative;text-decoration:none;}.yui-navset .yui-nav a em,.yui-navset .yui-navset-top .yui-nav a em{border-color:#A3A3A3;border-style:solid;border-width:1px 0 0;bottom:0;left:0;padding:.25em .75em;position:relative;right:0;top:-1px;}.yui-navset .yui-nav .selected a,.yui-navset .yui-nav .selected a:focus,.yui-navset .yui-nav .selected a:hover{background:#2647A0;color:#FFF;}.yui-navset .yui-nav a:hover,.yui-navset .yui-nav a:focus{background:#BFDAFF;outline-color:invert;outline-style:none;outline-width:0;}.yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-navset .yui-nav .selected a,.yui-navset .yui-nav .selected a em{border-color:#243356;}.yui-navset .yui-nav .selected a em{padding:.35em .75em;}.yui-navset .yui-content,.yui-navset .yui-navset-top .yui-content{border-color:#243356 #808080 #808080;border-style:solid;border-width:1px;padding:.25em .5em;}.yui-navset-left .yui-nav,.yui-navset .yui-navset-left .yui-nav,.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{border-width:0 5px 0 0;bottom:0;top:0;}.yui-navset .yui-navset-right .yui-nav,.yui-navset-right .yui-nav{border-width:0 0 0 5px;}.yui-navset-left .yui-nav li,.yui-navset .yui-navset-left .yui-nav li,.yui-navset-right .yui-nav li{margin:0 0 .16em;padding:0 0 0 1px;}.yui-navset-right .yui-nav li{padding:0 1px 0 0;}.yui-navset-left .yui-nav .selected,.yui-navset .yui-navset-left .yui-nav .selected{margin:0 -1px .16em 0;}.yui-navset-right .yui-nav .selected{margin:0 0 .16em -1px;}.yui-navset-left .yui-nav a,.yui-navset-right .yui-nav a{border-width:1px 0;}.yui-navset-left .yui-nav a em,.yui-navset .yui-navset-left .yui-nav a em,.yui-navset-right .yui-nav a em{border-width:0 0 0 1px;left:-1px;padding:.2em .75em;top:auto;}.yui-navset-right .yui-nav a em{border-width:0 1px 0 0;left:auto;right:-1px;}.yui-navset-left .yui-nav a,.yui-navset-left .yui-nav .selected a,.yui-navset-left .yui-nav a:hover,.yui-navset-right .yui-nav a,.yui-navset-right .yui-nav .selected a,.yui-navset-right .yui-nav a:hover,.yui-navset-bottom .yui-nav a,.yui-navset-bottom .yui-nav .selected a,.yui-navset-bottom .yui-nav a:hover{background-image:none;}.yui-navset-left .yui-content{border-color:#808080 #808080 #808080 #243356;border-style:solid;border-width:1px;}.yui-navset-bottom .yui-nav,.yui-navset .yui-navset-bottom .yui-nav{border-width:5px 0 0;}.yui-navset .yui-navset-bottom .yui-nav .selected,.yui-navset-bottom .yui-nav .selected{margin:-1px .16em 0 0;}.yui-navset .yui-navset-bottom .yui-nav li,.yui-navset-bottom .yui-nav li{padding:0 0 1px;vertical-align:top;}.yui-navset .yui-navset-bottom .yui-nav a em,.yui-navset-bottom .yui-nav a em{border-width:0 0 1px;bottom:-1px;top:auto;}.yui-navset-bottom .yui-content,.yui-navset .yui-navset-bottom .yui-content{border-color:#808080 #808080 #243356;border-style:solid;border-width:1px;}.yui-navset .yui-nav a em,.yui-navset .yui-navset-top .yui-nav a em{border-color:#A3A3A3;border-style:solid;border-width:1px 0 0;bottom:0;left:0;padding:.25em .75em;position:relative;right:0;top:-1px;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-nav a em,.yui-navset .yui-navset-top .yui-nav a em{border-color:#A3A3A3;border-style:solid;border-width:1px 0 0;bottom:0;left:0;padding:.25em .75em;position:relative;right:0;top:-1px;}.yui-navset .yui-nav li a em,.yui-navset-top .yui-nav li a em,.yui-navset-bottom .yui-nav li a em{display:block;}.yui-navset .yui-nav a,.yui-navset .yui-navset-top .yui-nav a{color:#000;text-decoration:none;}
\ No newline at end of file
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-min.css
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs_hide_factbox.css
@@ -0,0 +1,3 @@
 2+.smwfact {
 3+ display: none;
 4+}
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs_hide_factbox.css
___________________________________________________________________
Added: svn:eol-style
15 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs.css
@@ -0,0 +1,180 @@
 2+.yui-skin-sam .yui-navset .yui-content {
 3+ background: transparent; /* content background color */
 4+}
 5+
 6+/*
 7+ All the definitions below are intended to replicate the look of the "Sam"
 8+ skin, for sites that don't have a yui-skin-sam class declaration anywhere.
 9+*/
 10+
 11+.yui-navset .yui-content {
 12+ background: transparent; /* content background color */
 13+}
 14+
 15+.yui-navset .yui-nav, .yui-navset .yui-navset-top .yui-nav {
 16+ border-color:#2647A0;
 17+ border-style:solid;
 18+ border-width:0pt 0pt 5px;
 19+}
 20+
 21+.yui-navset .yui-nav li, .yui-skin-sam .yui-navset .yui-navset-top .yui-nav li {
 22+ margin:0pt 0.16em 0pt 0pt;
 23+ padding:1px 0pt 0pt;
 24+}
 25+.yui-navset .yui-nav .selected, .yui-skin-sam .yui-navset .yui-navset-top .yui-nav .selected {
 26+ margin:0pt 0.16em -1px 0pt;
 27+}
 28+
 29+.yui-navset .yui-nav a, .yui-navset .yui-navset-top .yui-nav a {
 30+ background:#D8D8D8;
 31+ border-color:#A3A3A3;
 32+ border-style:solid;
 33+ border-width:0pt 1px;
 34+ color:#000000;
 35+ position:relative;
 36+ text-decoration:none;
 37+}
 38+
 39+.yui-navset .yui-nav a em, .yui-navset .yui-navset-top .yui-nav a em {
 40+ border-color:#A3A3A3;
 41+ border-style:solid;
 42+ border-width:1px 0pt 0pt;
 43+ bottom:0pt;
 44+ left:0pt;
 45+ padding:0.25em 0.75em;
 46+ position:relative;
 47+ right:0pt;
 48+ top:-1px;
 49+}
 50+
 51+.yui-navset .yui-nav .selected a, .yui-navset .yui-nav .selected a:focus, .yui-navset .yui-nav .selected a:hover {
 52+ background:#2647A0;
 53+ color:#FFFFFF;
 54+}
 55+
 56+.yui-navset .yui-nav a:hover, .yui-navset .yui-nav a:focus {
 57+ background:#BFDAFF;
 58+ outline-color:invert;
 59+ outline-style:none;
 60+ outline-width:0pt;
 61+}
 62+
 63+.yui-navset .yui-nav .selected a em {
 64+ padding:0.35em 0.75em;
 65+}
 66+
 67+.yui-navset .yui-nav .selected a, .yui-navset .yui-nav .selected a em {
 68+ border-color:#243356;
 69+}
 70+
 71+.yui-navset .yui-nav .selected a em {
 72+ padding:0.35em 0.75em;
 73+}
 74+
 75+.yui-navset .yui-content, .yui-navset .yui-navset-top .yui-content {
 76+ border-color:#243356 rgb(128, 128, 128) rgb(128, 128, 128);
 77+ border-style:solid;
 78+ border-width:1px;
 79+ padding:0.25em 0.5em;
 80+}
 81+.yui-navset-left .yui-nav, .yui-navset .yui-navset-left .yui-nav, .yui-navset .yui-navset-right .yui-nav, .yui-navset-right .yui-nav {
 82+ border-width:0pt 5px 0pt 0pt;
 83+ bottom:0pt;
 84+ top:0pt;
 85+}
 86+.yui-navset .yui-navset-right .yui-nav, .yui-navset-right .yui-nav {
 87+ border-width:0pt 0pt 0pt 5px;
 88+}
 89+.yui-navset-left .yui-nav li, .yui-navset .yui-navset-left .yui-nav li, .yui-navset-right .yui-nav li {
 90+ margin:0pt 0pt 0.16em;
 91+ padding:0pt 0pt 0pt 1px;
 92+}
 93+.yui-navset-right .yui-nav li {
 94+ padding:0pt 1px 0pt 0pt;
 95+}
 96+.yui-navset-left .yui-nav .selected, .yui-navset .yui-navset-left .yui-nav .selected {
 97+ margin:0pt -1px 0.16em 0pt;
 98+}
 99+.yui-navset-right .yui-nav .selected {
 100+ margin:0pt 0pt 0.16em -1px;
 101+}
 102+.yui-navset-left .yui-nav a, .yui-navset-right .yui-nav a {
 103+ border-width:1px 0pt;
 104+}
 105+.yui-navset-left .yui-nav a em, .yui-navset .yui-navset-left .yui-nav a em, .yui-navset-right .yui-nav a em {
 106+ border-width:0pt 0pt 0pt 1px;
 107+ left:-1px;
 108+ padding:0.2em 0.75em;
 109+ top:auto;
 110+}
 111+.yui-navset-right .yui-nav a em {
 112+ border-width:0pt 1px 0pt 0pt;
 113+ left:auto;
 114+ right:-1px;
 115+}
 116+.yui-navset-left .yui-nav a, .yui-navset-left .yui-nav .selected a, .yui-navset-left .yui-nav a:hover, .yui-navset-right .yui-nav a, .yui-navset-right .yui-nav .selected a, .yui-navset-right .yui-nav a:hover, .yui-navset-bottom .yui-nav a, .yui-navset-bottom .yui-nav .selected a, .yui-navset-bottom .yui-nav a:hover {
 117+ background-image:none;
 118+}
 119+.yui-navset-left .yui-content {
 120+ border-color:#808080 rgb(128, 128, 128) rgb(128, 128, 128) rgb(36, 51, 86);
 121+ border-style:solid;
 122+ border-width:1px;
 123+}
 124+.yui-navset-bottom .yui-nav, .yui-navset .yui-navset-bottom .yui-nav {
 125+ border-width:5px 0pt 0pt;
 126+}
 127+.yui-navset .yui-navset-bottom .yui-nav .selected, .yui-navset-bottom .yui-nav .selected {
 128+ margin:-1px 0.16em 0pt 0pt;
 129+}
 130+.yui-navset .yui-navset-bottom .yui-nav li, .yui-navset-bottom .yui-nav li {
 131+ padding:0pt 0pt 1px;
 132+ vertical-align:top;
 133+}
 134+.yui-navset .yui-navset-bottom .yui-nav li a, .yui-navset-bottom .yui-nav li a {
 135+}
 136+.yui-navset .yui-navset-bottom .yui-nav a em, .yui-navset-bottom .yui-nav a em {
 137+ border-width:0pt 0pt 1px;
 138+ bottom:-1px;
 139+ top:auto;
 140+}
 141+.yui-navset-bottom .yui-content, .yui-navset .yui-navset-bottom .yui-content {
 142+ border-color:#808080 rgb(128, 128, 128) rgb(36, 51, 86);
 143+ border-style:solid;
 144+ border-width:1px;
 145+}
 146+
 147+.yui-navset .yui-nav a em, .yui-navset .yui-navset-top .yui-nav a em {
 148+ border-color:#A3A3A3;
 149+ border-style:solid;
 150+ border-width:1px 0pt 0pt;
 151+ bottom:0pt;
 152+ left:0pt;
 153+ padding:0.25em 0.75em;
 154+ position:relative;
 155+ right:0pt;
 156+ top:-1px;
 157+}
 158+.yui-navset .yui-nav li a em, .yui-navset-top .yui-nav li a em, .yui-navset-bottom .yui-nav li a em {
 159+ display:block;
 160+}
 161+
 162+.yui-navset .yui-nav a em, .yui-navset .yui-navset-top .yui-nav a em {
 163+ border-color:#A3A3A3;
 164+ border-style:solid;
 165+ border-width:1px 0pt 0pt;
 166+ bottom:0pt;
 167+ left:0pt;
 168+ padding:0.25em 0.75em;
 169+ position:relative;
 170+ right:0pt;
 171+ top:-1px;
 172+}
 173+
 174+.yui-navset .yui-nav li a em, .yui-navset-top .yui-nav li a em, .yui-navset-bottom .yui-nav li a em {
 175+ display:block;
 176+}
 177+
 178+.yui-navset .yui-nav a, .yui-navset .yui-navset-top .yui-nav a {
 179+ color:#000000;
 180+ text-decoration:none;
 181+}
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs.css
___________________________________________________________________
Added: svn:eol-style
1182 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/blank.html
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/blank.html
___________________________________________________________________
Added: svn:keywords
2183 + Id Rev
Added: svn:eol-style
3184 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-history-min.js
@@ -0,0 +1 @@
 2+if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=(""+F[I]).split(".");G=YAHOO;for(J=(H[0]=="YAHOO")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]]}}return G};YAHOO.log=function(F,E,G){var H=YAHOO.widget.Logger;if(H&&H.log){return H.log(F,E,G)}else{return false}};YAHOO.register=function(M,R,J){var N=YAHOO.env.modules,L,O,P,Q,K;if(!N[M]){N[M]={versions:[],builds:[]}}L=N[M];O=J.version;P=J.build;Q=YAHOO.env.listeners;L.name=M;L.version=O;L.build=P;L.versions.push(O);L.builds.push(P);L.mainClass=R;for(K=0;K<Q.length;K=K+1){Q[K](L)}if(R){R.VERSION=O;R.BUILD=P}else{YAHOO.log("mainClass is undefined for module "+M,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(B){return YAHOO.env.modules[B]||null};YAHOO.env.ua=function(){var L=function(B){var A=0;return parseFloat(B.replace(/\./g,function(){return(A++==1)?"":"."}))},I=navigator,J={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:I.cajaVersion,secure:false,os:null},M=navigator&&navigator.userAgent,K=window&&window.location,N=K&&K.href,H;J.secure=N&&(N.toLowerCase().indexOf("https")===0);if(M){if((/windows|win32/i).test(M)){J.os="windows"}else{if((/macintosh/i).test(M)){J.os="macintosh"}}if((/KHTML/).test(M)){J.webkit=1}H=M.match(/AppleWebKit\/([^\s]*)/);if(H&&H[1]){J.webkit=L(H[1]);if(/ Mobile\//.test(M)){J.mobile="Apple"}else{H=M.match(/NokiaN[^\/]*/);if(H){J.mobile=H[0]}}H=M.match(/AdobeAIR\/([^\s]*)/);if(H){J.air=H[0]}}if(!J.webkit){H=M.match(/Opera[\s\/]([^\s]*)/);if(H&&H[1]){J.opera=L(H[1]);H=M.match(/Opera Mini[^;]*/);if(H){J.mobile=H[0]}}else{H=M.match(/MSIE\s([^;]*)/);if(H&&H[1]){J.ie=L(H[1])}else{H=M.match(/Gecko\/([^\s]*)/);if(H){J.gecko=1;H=M.match(/rv:([^\s\)]*)/);if(H&&H[1]){J.gecko=L(H[1])}}}}}}return J}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var H=YAHOO_config.listener,E=YAHOO.env.listeners,F=true,G;if(H){for(G=0;G<E.length;G++){if(E[G]==H){F=false;break}}if(F){E.push(H)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var P=YAHOO.lang,I=Object.prototype,J="[object Array]",O="[object Function]",K="[object Object]",M=[],L=["toString","valueOf"],N={isArray:function(A){return I.toString.apply(A)===J},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return(typeof A==="function")||I.toString.apply(A)===O},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||P.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(B,C){var D,E,A;for(D=0;D<L.length;D=D+1){E=L[D];A=C[E];if(P.isFunction(A)&&A!=I[E]){B[E]=A}}}:function(){},extend:function(A,E,B){if(!E||!A){throw new Error("extend failed, please check that all dependencies are included.")}var C=function(){},D;C.prototype=E.prototype;A.prototype=new C();A.prototype.constructor=A;A.superclass=E.prototype;if(E.prototype.constructor==I.constructor){E.prototype.constructor=E}if(B){for(D in B){if(P.hasOwnProperty(B,D)){A.prototype[D]=B[D]}}P._IEEnumFix(A.prototype,B)}},augmentObject:function(F,A){if(!A||!F){throw new Error("Absorb failed, verify dependencies.")}var D=arguments,B,E,C=D[2];if(C&&C!==true){for(B=2;B<D.length;B=B+1){F[D[B]]=A[D[B]]}}else{for(E in A){if(C||!(E in F)){F[E]=A[E]}}P._IEEnumFix(F,A)}},augmentProto:function(A,B){if(!B||!A){throw new Error("Augment failed, verify dependencies.")}var D=[A.prototype,B.prototype],C;for(C=2;C<arguments.length;C=C+1){D.push(arguments[C])}P.augmentObject.apply(this,D)},dump:function(R,D){var G,E,B=[],A="{...}",H="f(){...}",C=", ",F=" => ";if(!P.isObject(R)){return R+""}else{if(R instanceof Date||("nodeType" in R&&"tagName" in R)){return R}else{if(P.isFunction(R)){return H}}}D=(P.isNumber(D))?D:3;if(P.isArray(R)){B.push("[");for(G=0,E=R.length;G<E;G=G+1){if(P.isObject(R[G])){B.push((D>0)?P.dump(R[G],D-1):A)}else{B.push(R[G])}B.push(C)}if(B.length>1){B.pop()}B.push("]")}else{B.push("{");for(G in R){if(P.hasOwnProperty(R,G)){B.push(G+F);if(P.isObject(R[G])){B.push((D>0)?P.dump(R[G],D-1):A)}else{B.push(R[G])}B.push(C)}}if(B.length>1){B.pop()}B.push("}")}return B.join("")},substitute:function(A,g,H){var c,d,e,E,D,B,F=[],f,b="dump",G=" ",h="{",C="}",Z,a;for(;;){c=A.lastIndexOf(h);if(c<0){break}d=A.indexOf(C,c);if(c+1>=d){break}f=A.substring(c+1,d);E=f;B=null;e=E.indexOf(G);if(e>-1){B=E.substring(e+1);E=E.substring(0,e)}D=g[E];if(H){D=H(E,D,B)}if(P.isObject(D)){if(P.isArray(D)){D=P.dump(D,parseInt(B,10))}else{B=B||"";Z=B.indexOf(b);if(Z>-1){B=B.substring(4)}a=D.toString();if(a===K||Z>-1){D=P.dump(D,parseInt(B,10))}else{D=a}}}else{if(!P.isString(D)&&!P.isNumber(D)){D="~-"+F.length+"-~";F[F.length]=f}}A=A.substring(0,c)+D+A.substring(d+1)}for(c=F.length-1;c>=0;c=c-1){A=A.replace(new RegExp("~-"+c+"-~"),"{"+F[c]+"}","g")}return A},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"")}catch(A){return B}},merge:function(){var A={},C=arguments,D=C.length,B;for(B=0;B<D;B=B+1){P.augmentObject(A,C[B],true)}return A},later:function(B,H,A,F,E){B=B||0;H=H||{};var G=A,C=F,D,R;if(P.isString(A)){G=H[A]}if(!G){throw new TypeError("method undefined")}if(C&&!P.isArray(C)){C=[F]}D=function(){G.apply(H,C||M)};R=(E)?setInterval(D,B):setTimeout(D,B);return{interval:E,cancel:function(){if(this.interval){clearInterval(R)}else{clearTimeout(R)}}}},isValue:function(A){return(P.isObject(A)||P.isString(A)||P.isNumber(A)||P.isBoolean(A))}};P.hasOwnProperty=(I.hasOwnProperty)?function(B,A){return B&&B.hasOwnProperty(A)}:function(B,A){return !P.isUndefined(B[A])&&B.constructor.prototype[A]!==B[A]};N.augmentObject(P,N,true);YAHOO.util.Lang=P;P.augment=P.augmentProto;YAHOO.augment=P.augmentProto;YAHOO.extend=P.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.8.1",build:"19"});YAHOO.util.Get=function(){var Z={},a=0,U=0,h=false,Y=YAHOO.env.ua,T=YAHOO.lang;var c=function(A,D,G){var C=G||window,F=C.document,E=F.createElement(A);for(var B in D){if(D[B]&&YAHOO.lang.hasOwnProperty(D,B)){E.setAttribute(B,D[B])}}return E};var d=function(C,B,D){var A={id:"yui__dyn_"+(U++),type:"text/css",rel:"stylesheet",href:C};if(D){T.augmentObject(A,D)}return c("link",A,B)};var W=function(C,B,D){var A={id:"yui__dyn_"+(U++),type:"text/javascript",src:C};if(D){T.augmentObject(A,D)}return c("script",A,B)};var l=function(B,A){return{tId:B.tId,win:B.win,data:B.data,nodes:B.nodes,msg:A,purge:function(){i(this.tId)}}};var k=function(D,A){var C=Z[A],B=(T.isString(D))?C.win.document.getElementById(D):D;if(!B){V(A,"target node not found: "+D)}return B};var V=function(A,B){var D=Z[A];if(D.onFailure){var C=D.scope||D.win;D.onFailure.call(C,l(D,B))}};var j=function(A){var D=Z[A];D.finished=true;if(D.aborted){var B="transaction "+A+" was aborted";V(A,B);return }if(D.onSuccess){var C=D.scope||D.win;D.onSuccess.call(C,l(D))}};var X=function(A){var C=Z[A];if(C.onTimeout){var B=C.scope||C;C.onTimeout.call(B,l(C))}};var f=function(E,A){var F=Z[E];if(F.timer){F.timer.cancel()}if(F.aborted){var C="transaction "+E+" was aborted";V(E,C);return }if(A){F.url.shift();if(F.varName){F.varName.shift()}}else{F.url=(T.isString(F.url))?[F.url]:F.url;if(F.varName){F.varName=(T.isString(F.varName))?[F.varName]:F.varName}}var I=F.win,J=I.document,K=J.getElementsByTagName("head")[0],D;if(F.url.length===0){if(F.type==="script"&&Y.webkit&&Y.webkit<420&&!F.finalpass&&!F.varName){var B=W(null,F.win,F.attributes);B.innerHTML='YAHOO.util.Get._finalize("'+E+'");';F.nodes.push(B);K.appendChild(B)}else{j(E)}return }var G=F.url[0];if(!G){F.url.shift();return f(E)}if(F.timeout){F.timer=T.later(F.timeout,F,X,E)}if(F.type==="script"){D=W(G,I,F.attributes)}else{D=d(G,I,F.attributes)}g(F.type,D,E,G,I,F.url.length);F.nodes.push(D);if(F.insertBefore){var H=k(F.insertBefore,E);if(H){H.parentNode.insertBefore(D,H)}}else{K.appendChild(D)}if((Y.webkit||Y.gecko)&&F.type==="css"){f(E,G)}};var b=function(){if(h){return }h=true;for(var B in Z){var A=Z[B];if(A.autopurge&&A.finished){i(A.tId);delete Z[B]}}h=false};var i=function(A){if(Z[A]){var G=Z[A],F=G.nodes,C=F.length,H=G.win.document,J=H.getElementsByTagName("head")[0],E,B,D,I;if(G.insertBefore){E=k(G.insertBefore,A);if(E){J=E.parentNode}}for(B=0;B<C;B=B+1){D=F[B];if(D.clearAttributes){D.clearAttributes()}else{for(I in D){delete D[I]}}J.removeChild(D)}G.nodes=[]}};var e=function(C,D,B){var E="q"+(a++);B=B||{};if(a%YAHOO.util.Get.PURGE_THRESH===0){b()}Z[E]=T.merge(B,{tId:E,type:C,url:D,finished:false,aborted:false,nodes:[]});var A=Z[E];A.win=A.win||window;A.scope=A.scope||A.win;A.autopurge=("autopurge" in A)?A.autopurge:(C==="script")?true:false;if(B.charset){A.attributes=A.attributes||{};A.attributes.charset=B.charset}T.later(0,A,f,E);return{tId:E}};var g=function(H,C,D,F,B,A,I){var J=I||f;if(Y.ie){C.onreadystatechange=function(){var K=this.readyState;if("loaded"===K||"complete"===K){C.onreadystatechange=null;J(D,F)}}}else{if(Y.webkit){if(H==="script"){if(Y.webkit>=420){C.addEventListener("load",function(){J(D,F)})}else{var G=Z[D];if(G.varName){var E=YAHOO.util.Get.POLL_FREQ;G.maxattempts=YAHOO.util.Get.TIMEOUT/E;G.attempts=0;G._cache=G.varName[0].split(".");G.timer=T.later(E,G,function(K){var N=this._cache,O=N.length,P=this.win,M;for(M=0;M<O;M=M+1){P=P[N[M]];if(!P){this.attempts++;if(this.attempts++>this.maxattempts){var L="Over retry limit, giving up";G.timer.cancel();V(D,L)}else{}return }}G.timer.cancel();J(D,F)},null,true)}else{T.later(YAHOO.util.Get.POLL_FREQ,null,J,[D,F])}}}}else{C.onload=function(){J(D,F)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(A){T.later(0,null,j,A)},abort:function(B){var A=(T.isString(B))?B:B.tId;var C=Z[A];if(C){C.aborted=true}},script:function(B,A){return e("script",B,A)},css:function(B,A){return e("css",B,A)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.1",build:"19"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{yahoo:true,get:true},info:{root:"2.8.1/build/",base:"http://yui.yahooapis.com/2.8.1/build/",comboBase:"http://yui.yahooapis.com/combo?",skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["reset","fonts","grids","base"],rollup:3},dupsAllowed:["yahoo","get"],moduleInfo:{animation:{type:"js",path:"animation/animation-min.js",requires:["dom","event"]},autocomplete:{type:"js",path:"autocomplete/autocomplete-min.js",requires:["dom","event","datasource"],optional:["connection","animation"],skinnable:true},base:{type:"css",path:"base/base-min.css",after:["reset","fonts","grids"]},button:{type:"js",path:"button/button-min.js",requires:["element"],optional:["menu"],skinnable:true},calendar:{type:"js",path:"calendar/calendar-min.js",requires:["event","dom"],supersedes:["datemeth"],skinnable:true},carousel:{type:"js",path:"carousel/carousel-min.js",requires:["element"],optional:["animation"],skinnable:true},charts:{type:"js",path:"charts/charts-min.js",requires:["element","json","datasource","swf"]},colorpicker:{type:"js",path:"colorpicker/colorpicker-min.js",requires:["slider","element"],optional:["animation"],skinnable:true},connection:{type:"js",path:"connection/connection-min.js",requires:["event"],supersedes:["connectioncore"]},connectioncore:{type:"js",path:"connection/connection_core-min.js",requires:["event"],pkg:"connection"},container:{type:"js",path:"container/container-min.js",requires:["dom","event"],optional:["dragdrop","animation","connection"],supersedes:["containercore"],skinnable:true},containercore:{type:"js",path:"container/container_core-min.js",requires:["dom","event"],pkg:"container"},cookie:{type:"js",path:"cookie/cookie-min.js",requires:["yahoo"]},datasource:{type:"js",path:"datasource/datasource-min.js",requires:["event"],optional:["connection"]},datatable:{type:"js",path:"datatable/datatable-min.js",requires:["element","datasource"],optional:["calendar","dragdrop","paginator"],skinnable:true},datemath:{type:"js",path:"datemath/datemath-min.js",requires:["yahoo"]},dom:{type:"js",path:"dom/dom-min.js",requires:["yahoo"]},dragdrop:{type:"js",path:"dragdrop/dragdrop-min.js",requires:["dom","event"]},editor:{type:"js",path:"editor/editor-min.js",requires:["menu","element","button"],optional:["animation","dragdrop"],supersedes:["simpleeditor"],skinnable:true},element:{type:"js",path:"element/element-min.js",requires:["dom","event"],optional:["event-mouseenter","event-delegate"]},"element-delegate":{type:"js",path:"element-delegate/element-delegate-min.js",requires:["element"]},event:{type:"js",path:"event/event-min.js",requires:["yahoo"]},"event-simulate":{type:"js",path:"event-simulate/event-simulate-min.js",requires:["event"]},"event-delegate":{type:"js",path:"event-delegate/event-delegate-min.js",requires:["event"],optional:["selector"]},"event-mouseenter":{type:"js",path:"event-mouseenter/event-mouseenter-min.js",requires:["dom","event"]},fonts:{type:"css",path:"fonts/fonts-min.css"},get:{type:"js",path:"get/get-min.js",requires:["yahoo"]},grids:{type:"css",path:"grids/grids-min.css",requires:["fonts"],optional:["reset"]},history:{type:"js",path:"history/history-min.js",requires:["event"]},imagecropper:{type:"js",path:"imagecropper/imagecropper-min.js",requires:["dragdrop","element","resize"],skinnable:true},imageloader:{type:"js",path:"imageloader/imageloader-min.js",requires:["event","dom"]},json:{type:"js",path:"json/json-min.js",requires:["yahoo"]},layout:{type:"js",path:"layout/layout-min.js",requires:["element"],optional:["animation","dragdrop","resize","selector"],skinnable:true},logger:{type:"js",path:"logger/logger-min.js",requires:["event","dom"],optional:["dragdrop"],skinnable:true},menu:{type:"js",path:"menu/menu-min.js",requires:["containercore"],skinnable:true},paginator:{type:"js",path:"paginator/paginator-min.js",requires:["element"],skinnable:true},profiler:{type:"js",path:"profiler/profiler-min.js",requires:["yahoo"]},profilerviewer:{type:"js",path:"profilerviewer/profilerviewer-min.js",requires:["profiler","yuiloader","element"],skinnable:true},progressbar:{type:"js",path:"progressbar/progressbar-min.js",requires:["element"],optional:["animation"],skinnable:true},reset:{type:"css",path:"reset/reset-min.css"},"reset-fonts-grids":{type:"css",path:"reset-fonts-grids/reset-fonts-grids.css",supersedes:["reset","fonts","grids","reset-fonts"],rollup:4},"reset-fonts":{type:"css",path:"reset-fonts/reset-fonts.css",supersedes:["reset","fonts"],rollup:2},resize:{type:"js",path:"resize/resize-min.js",requires:["dragdrop","element"],optional:["animation"],skinnable:true},selector:{type:"js",path:"selector/selector-min.js",requires:["yahoo","dom"]},simpleeditor:{type:"js",path:"editor/simpleeditor-min.js",requires:["element"],optional:["containercore","menu","button","animation","dragdrop"],skinnable:true,pkg:"editor"},slider:{type:"js",path:"slider/slider-min.js",requires:["dragdrop"],optional:["animation"],skinnable:true},storage:{type:"js",path:"storage/storage-min.js",requires:["yahoo","event","cookie"],optional:["swfstore"]},stylesheet:{type:"js",path:"stylesheet/stylesheet-min.js",requires:["yahoo"]},swf:{type:"js",path:"swf/swf-min.js",requires:["element"],supersedes:["swfdetect"]},swfdetect:{type:"js",path:"swfdetect/swfdetect-min.js",requires:["yahoo"]},swfstore:{type:"js",path:"swfstore/swfstore-min.js",requires:["element","cookie","swf"]},tabview:{type:"js",path:"tabview/tabview-min.js",requires:["element"],optional:["connection"],skinnable:true},treeview:{type:"js",path:"treeview/treeview-min.js",requires:["event","dom"],optional:["json","animation","calendar"],skinnable:true},uploader:{type:"js",path:"uploader/uploader-min.js",requires:["element"]},utilities:{type:"js",path:"utilities/utilities.js",supersedes:["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],rollup:8},yahoo:{type:"js",path:"yahoo/yahoo-min.js"},"yahoo-dom-event":{type:"js",path:"yahoo-dom-event/yahoo-dom-event.js",supersedes:["yahoo","event","dom"],rollup:3},yuiloader:{type:"js",path:"yuiloader/yuiloader-min.js",supersedes:["yahoo","get"]},"yuiloader-dom-event":{type:"js",path:"yuiloader-dom-event/yuiloader-dom-event.js",supersedes:["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],rollup:5},yuitest:{type:"js",path:"yuitest/yuitest-min.js",requires:["logger"],optional:["event-simulate"],skinnable:true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;i<a.length;i=i+1){o[a[i]]=true}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i)}}return a}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2)},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i}}return -1},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true}return o},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a))}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name)}});this.skin=lang.merge(YUI.info.skin);this._config(o)};Y.util.YUILoader.prototype={FILTERS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i])}else{this[i]=o[i]}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger")}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y}}this.filter=this.FILTERS[f]}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a)},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({name:name,type:"css",path:sinf.base+skin+"/"+sinf.path,after:sinf.after,rollup:sinf.rollup,ext:ext})}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({name:name,type:"css",after:sinf.after,path:pkg+"/"+sinf.base+skin+"/"+mod+".css",ext:ext})}}return name},getRequires:function(mod){if(!mod){return[]}if(!this.dirty&&mod.expanded){return mod.expanded}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m))}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]))}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o}if(m[ckey]){return m[ckey]}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm))}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i])}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey]},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup()}this._reduce();this._sort();this.dirty=false}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name)}}else{smod=this._addSkin(this.skin.defaultSkin,name)}m.requires.push(smod)}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules)}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore)}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]]}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j))}}this.loaded=l},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req)}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod}return s},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]}}return null},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m}}}this.rollups=rollups}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m)}}}if(!rolled){break}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i]}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j]}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]]}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false})}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false})}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true}return false};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i)}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break}}if(moved){break}else{p=p+1}}if(!moved){break}}this.sorted=s},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1)},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target}else{css+=target}this._combining.push(s[i])}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true}this.loadNext(o.data)},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self})}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self})}else{loadScript()}return }else{this.loadNext(this._loading)}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine()}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js")};this.insert(null,"css");return }this.loadNext()},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox")}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js")};this.insert(null,"css");return }if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js")},scope:this},"js");return }this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort()}return }if(m.type!=="js"){this._loadCount++;continue}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data})}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data})}else{this._onFailure.call(this.varName+" reference failure")}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data})},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData))}},loadNext:function(mname){if(!this._loading){return }if(mname){if(mname!==this._loading){return }this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data})}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue}if(s[i]===this._loading){return }m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return }if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data)};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return }}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this)}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data})}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load()}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str},_url:function(path){return this._filter((this.base||"")+path)}}})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.1",build:"19"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var AO=YAHOO.util,AI=YAHOO.lang,Ad=YAHOO.env.ua,AS=YAHOO.lang.trim,Am={},Ai={},AG=/^t(?:able|d|h)$/i,Y=/color$/i,AJ=window.document,x=AJ.documentElement,Al="ownerDocument",Ac="defaultView",AU="documentElement",AW="compatMode",Ao="offsetLeft",AE="offsetTop",AV="offsetParent",G="parentNode",Ae="nodeType",AQ="tagName",AF="scrollLeft",Ah="scrollTop",AD="getBoundingClientRect",AT="getComputedStyle",Ap="currentStyle",AH="CSS1Compat",An="BackCompat",Aj="class",AN="className",AK="",AR=" ",AX="(?:^|\\s)",Af="(?= |$)",z="g",Aa="position",Ak="fixed",y="relative",Ag="left",Ab="top",AY="medium",AZ="borderLeftWidth",AC="borderTopWidth",AP=Ad.opera,AL=Ad.webkit,AM=Ad.gecko,AA=Ad.ie;AO.Dom={CUSTOM_ATTRIBUTES:(!x.hasAttribute)?{"for":"htmlFor","class":AN}:{htmlFor:"for",className:Aj},DOT_ATTRIBUTES:{},get:function(F){var C,A,E,H,D,B;if(F){if(F[Ae]||F.item){return F}if(typeof F==="string"){C=F;F=AJ.getElementById(F);B=(F)?F.attributes:null;if(F&&B&&B.id&&B.id.value===C){return F}else{if(F&&AJ.all){F=null;A=AJ.all[C];for(H=0,D=A.length;H<D;++H){if(A[H].id===C){return A[H]}}}}return F}if(YAHOO.util.Element&&F instanceof YAHOO.util.Element){F=F.get("element")}if("length" in F){E=[];for(H=0,D=F.length;H<D;++H){E[E.length]=AO.Dom.get(F[H])}return E}return F}return null},getComputedStyle:function(A,B){if(window[AT]){return A[Al][Ac][AT](A,null)[B]}else{if(A[Ap]){return AO.Dom.IE_ComputedStyle.get(A,B)}}},getStyle:function(A,B){return AO.Dom.batch(A,AO.Dom._getStyle,B)},_getStyle:function(){if(window[AT]){return function(B,D){D=(D==="float")?D="cssFloat":AO.Dom._toCamel(D);var A=B.style[D],C;if(!A){C=B[Al][Ac][AT](B,null);if(C){A=C[D]}}return A}}else{if(x[Ap]){return function(B,E){var A;switch(E){case"opacity":A=100;try{A=B.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(D){try{A=B.filters("alpha").opacity}catch(C){}}return A/100;case"float":E="styleFloat";default:E=AO.Dom._toCamel(E);A=B[Ap]?B[Ap][E]:null;return(B.style[E]||A)}}}}}(),setStyle:function(B,C,A){AO.Dom.batch(B,AO.Dom._setStyle,{prop:C,val:A})},_setStyle:function(){if(AA){return function(C,B){var A=AO.Dom._toCamel(B.prop),D=B.val;if(C){switch(A){case"opacity":if(AI.isString(C.style.filter)){C.style.filter="alpha(opacity="+D*100+")";if(!C[Ap]||!C[Ap].hasLayout){C.style.zoom=1}}break;case"float":A="styleFloat";default:C.style[A]=D}}else{}}}else{return function(C,B){var A=AO.Dom._toCamel(B.prop),D=B.val;if(C){if(A=="float"){A="cssFloat"}C.style[A]=D}else{}}}}(),getXY:function(A){return AO.Dom.batch(A,AO.Dom._getXY)},_canPosition:function(A){return(AO.Dom._getStyle(A,"display")!=="none"&&AO.Dom._inDoc(A))},_getXY:function(){if(AJ[AU][AD]){return function(K){var J,A,I,C,D,E,F,M,L,H=Math.floor,B=false;if(AO.Dom._canPosition(K)){I=K[AD]();C=K[Al];J=AO.Dom.getDocumentScrollLeft(C);A=AO.Dom.getDocumentScrollTop(C);B=[H(I[Ag]),H(I[Ab])];if(AA&&Ad.ie<8){D=2;E=2;F=C[AW];if(Ad.ie===6){if(F!==An){D=0;E=0}}if((F===An)){M=AB(C[AU],AZ);L=AB(C[AU],AC);if(M!==AY){D=parseInt(M,10)}if(L!==AY){E=parseInt(L,10)}}B[0]-=D;B[1]-=E}if((A||J)){B[0]+=J;B[1]+=A}B[0]=H(B[0]);B[1]=H(B[1])}else{}return B}}else{return function(I){var A,H,F,D,C,E=false,B=I;if(AO.Dom._canPosition(I)){E=[I[Ao],I[AE]];A=AO.Dom.getDocumentScrollLeft(I[Al]);H=AO.Dom.getDocumentScrollTop(I[Al]);C=((AM||Ad.webkit>519)?true:false);while((B=B[AV])){E[0]+=B[Ao];E[1]+=B[AE];if(C){E=AO.Dom._calcBorders(B,E)}}if(AO.Dom._getStyle(I,Aa)!==Ak){B=I;while((B=B[G])&&B[AQ]){F=B[Ah];D=B[AF];if(AM&&(AO.Dom._getStyle(B,"overflow")!=="visible")){E=AO.Dom._calcBorders(B,E)}if(F||D){E[0]-=D;E[1]-=F}}E[0]+=A;E[1]+=H}else{if(AP){E[0]-=A;E[1]-=H}else{if(AL||AM){E[0]+=A;E[1]+=H}}}E[0]=Math.floor(E[0]);E[1]=Math.floor(E[1])}else{}return E}}}(),getX:function(A){var B=function(C){return AO.Dom.getXY(C)[0]};return AO.Dom.batch(A,B,AO.Dom,true)},getY:function(A){var B=function(C){return AO.Dom.getXY(C)[1]};return AO.Dom.batch(A,B,AO.Dom,true)},setXY:function(B,A,C){AO.Dom.batch(B,AO.Dom._setXY,{pos:A,noRetry:C})},_setXY:function(J,F){var E=AO.Dom._getStyle(J,Aa),H=AO.Dom.setStyle,B=F.pos,A=F.noRetry,D=[parseInt(AO.Dom.getComputedStyle(J,Ag),10),parseInt(AO.Dom.getComputedStyle(J,Ab),10)],C,I;if(E=="static"){E=y;H(J,Aa,E)}C=AO.Dom._getXY(J);if(!B||C===false){return false}if(isNaN(D[0])){D[0]=(E==y)?0:J[Ao]}if(isNaN(D[1])){D[1]=(E==y)?0:J[AE]}if(B[0]!==null){H(J,Ag,B[0]-C[0]+D[0]+"px")}if(B[1]!==null){H(J,Ab,B[1]-C[1]+D[1]+"px")}if(!A){I=AO.Dom._getXY(J);if((B[0]!==null&&I[0]!=B[0])||(B[1]!==null&&I[1]!=B[1])){AO.Dom._setXY(J,{pos:B,noRetry:true})}}},setX:function(B,A){AO.Dom.setXY(B,[A,null])},setY:function(A,B){AO.Dom.setXY(A,[null,B])},getRegion:function(A){var B=function(C){var D=false;if(AO.Dom._canPosition(C)){D=AO.Region.getRegion(C)}else{}return D};return AO.Dom.batch(A,B,AO.Dom,true)},getClientWidth:function(){return AO.Dom.getViewportWidth()},getClientHeight:function(){return AO.Dom.getViewportHeight()},getElementsByClassName:function(F,B,E,C,K,D){B=B||"*";E=(E)?AO.Dom.get(E):null||AJ;if(!E){return[]}var A=[],L=E.getElementsByTagName(B),I=AO.Dom.hasClass;for(var J=0,H=L.length;J<H;++J){if(I(L[J],F)){A[A.length]=L[J]}}if(C){AO.Dom.batch(A,C,K,D)}return A},hasClass:function(B,A){return AO.Dom.batch(B,AO.Dom._hasClass,A)},_hasClass:function(A,C){var B=false,D;if(A&&C){D=AO.Dom._getAttribute(A,AN)||AK;if(C.exec){B=C.test(D)}else{B=C&&(AR+D+AR).indexOf(AR+C+AR)>-1}}else{}return B},addClass:function(B,A){return AO.Dom.batch(B,AO.Dom._addClass,A)},_addClass:function(A,C){var B=false,D;if(A&&C){D=AO.Dom._getAttribute(A,AN)||AK;if(!AO.Dom._hasClass(A,C)){AO.Dom.setAttribute(A,AN,AS(D+AR+C));B=true}}else{}return B},removeClass:function(B,A){return AO.Dom.batch(B,AO.Dom._removeClass,A)},_removeClass:function(F,A){var E=false,D,C,B;if(F&&A){D=AO.Dom._getAttribute(F,AN)||AK;AO.Dom.setAttribute(F,AN,D.replace(AO.Dom._getClassRegex(A),AK));C=AO.Dom._getAttribute(F,AN);if(D!==C){AO.Dom.setAttribute(F,AN,AS(C));E=true;if(AO.Dom._getAttribute(F,AN)===""){B=(F.hasAttribute&&F.hasAttribute(Aj))?Aj:AN;F.removeAttribute(B)}}}else{}return E},replaceClass:function(A,C,B){return AO.Dom.batch(A,AO.Dom._replaceClass,{from:C,to:B})},_replaceClass:function(H,A){var F,C,E,B=false,D;if(H&&A){C=A.from;E=A.to;if(!E){B=false}else{if(!C){B=AO.Dom._addClass(H,A.to)}else{if(C!==E){D=AO.Dom._getAttribute(H,AN)||AK;F=(AR+D.replace(AO.Dom._getClassRegex(C),AR+E)).split(AO.Dom._getClassRegex(E));F.splice(1,0,AR+E);AO.Dom.setAttribute(H,AN,AS(F.join(AK)));B=true}}}}else{}return B},generateId:function(B,A){A=A||"yui-gen";var C=function(E){if(E&&E.id){return E.id}var D=A+YAHOO.env._id_counter++;if(E){if(E[Al]&&E[Al].getElementById(D)){return AO.Dom.generateId(E,D+A)}E.id=D}return D};return AO.Dom.batch(B,C,AO.Dom,true)||C.apply(AO.Dom,arguments)},isAncestor:function(C,A){C=AO.Dom.get(C);A=AO.Dom.get(A);var B=false;if((C&&A)&&(C[Ae]&&A[Ae])){if(C.contains&&C!==A){B=C.contains(A)}else{if(C.compareDocumentPosition){B=!!(C.compareDocumentPosition(A)&16)}}}else{}return B},inDocument:function(A,B){return AO.Dom._inDoc(AO.Dom.get(A),B)},_inDoc:function(C,A){var B=false;if(C&&C[AQ]){A=A||C[Al];B=AO.Dom.isAncestor(A[AU],C)}else{}return B},getElementsBy:function(A,B,F,D,J,E,C){B=B||"*";F=(F)?AO.Dom.get(F):null||AJ;if(!F){return[]}var K=[],L=F.getElementsByTagName(B);for(var I=0,H=L.length;I<H;++I){if(A(L[I])){if(C){K=L[I];break}else{K[K.length]=L[I]}}}if(D){AO.Dom.batch(K,D,J,E)}return K},getElementBy:function(A,B,C){return AO.Dom.getElementsBy(A,B,C,null,null,null,true)},batch:function(A,C,F,E){var H=[],D=(E)?F:window;A=(A&&(A[AQ]||A.item))?A:AO.Dom.get(A);if(A&&C){if(A[AQ]||A.length===undefined){return C.call(D,A,F)}for(var B=0;B<A.length;++B){H[H.length]=C.call(D,A[B],F)}}else{return false}return H},getDocumentHeight:function(){var B=(AJ[AW]!=AH||AL)?AJ.body.scrollHeight:x.scrollHeight,A=Math.max(B,AO.Dom.getViewportHeight());return A},getDocumentWidth:function(){var B=(AJ[AW]!=AH||AL)?AJ.body.scrollWidth:x.scrollWidth,A=Math.max(B,AO.Dom.getViewportWidth());return A},getViewportHeight:function(){var A=self.innerHeight,B=AJ[AW];if((B||AA)&&!AP){A=(B==AH)?x.clientHeight:AJ.body.clientHeight}return A},getViewportWidth:function(){var A=self.innerWidth,B=AJ[AW];if(B||AA){A=(B==AH)?x.clientWidth:AJ.body.clientWidth}return A},getAncestorBy:function(A,B){while((A=A[G])){if(AO.Dom._testElement(A,B)){return A}}return null},getAncestorByClassName:function(C,B){C=AO.Dom.get(C);if(!C){return null}var A=function(D){return AO.Dom.hasClass(D,B)};return AO.Dom.getAncestorBy(C,A)},getAncestorByTagName:function(C,B){C=AO.Dom.get(C);if(!C){return null}var A=function(D){return D[AQ]&&D[AQ].toUpperCase()==B.toUpperCase()};return AO.Dom.getAncestorBy(C,A)},getPreviousSiblingBy:function(A,B){while(A){A=A.previousSibling;if(AO.Dom._testElement(A,B)){return A}}return null},getPreviousSibling:function(A){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(A,B){while(A){A=A.nextSibling;if(AO.Dom._testElement(A,B)){return A}}return null},getNextSibling:function(A){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getNextSiblingBy(A)},getFirstChildBy:function(B,A){var C=(AO.Dom._testElement(B.firstChild,A))?B.firstChild:null;return C||AO.Dom.getNextSiblingBy(B.firstChild,A)},getFirstChild:function(A,B){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getFirstChildBy(A)},getLastChildBy:function(B,A){if(!B){return null}var C=(AO.Dom._testElement(B.lastChild,A))?B.lastChild:null;return C||AO.Dom.getPreviousSiblingBy(B.lastChild,A)},getLastChild:function(A){A=AO.Dom.get(A);return AO.Dom.getLastChildBy(A)},getChildrenBy:function(C,D){var A=AO.Dom.getFirstChildBy(C,D),B=A?[A]:[];AO.Dom.getNextSiblingBy(A,function(E){if(!D||D(E)){B[B.length]=E}return false});return B},getChildren:function(A){A=AO.Dom.get(A);if(!A){}return AO.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||AJ;return Math.max(A[AU].scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||AJ;return Math.max(A[AU].scrollTop,A.body.scrollTop)},insertBefore:function(B,A){B=AO.Dom.get(B);A=AO.Dom.get(A);if(!B||!A||!A[G]){return null}return A[G].insertBefore(B,A)},insertAfter:function(B,A){B=AO.Dom.get(B);A=AO.Dom.get(A);if(!B||!A||!A[G]){return null}if(A.nextSibling){return A[G].insertBefore(B,A.nextSibling)}else{return A[G].appendChild(B)}},getClientRegion:function(){var A=AO.Dom.getDocumentScrollTop(),C=AO.Dom.getDocumentScrollLeft(),D=AO.Dom.getViewportWidth()+C,B=AO.Dom.getViewportHeight()+A;return new AO.Region(A,D,B,C)},setAttribute:function(C,B,A){AO.Dom.batch(C,AO.Dom._setAttribute,{attr:B,val:A})},_setAttribute:function(A,C){var B=AO.Dom._toCamel(C.attr),D=C.val;if(A&&A.setAttribute){if(AO.Dom.DOT_ATTRIBUTES[B]){A[B]=D}else{B=AO.Dom.CUSTOM_ATTRIBUTES[B]||B;A.setAttribute(B,D)}}else{}},getAttribute:function(B,A){return AO.Dom.batch(B,AO.Dom._getAttribute,A)},_getAttribute:function(C,B){var A;B=AO.Dom.CUSTOM_ATTRIBUTES[B]||B;if(C&&C.getAttribute){A=C.getAttribute(B,2)}else{}return A},_toCamel:function(C){var A=Am;function B(E,D){return D.toUpperCase()}return A[C]||(A[C]=C.indexOf("-")===-1?C:C.replace(/-([a-z])/gi,B))},_getClassRegex:function(B){var A;if(B!==undefined){if(B.exec){A=B}else{A=Ai[B];if(!A){B=B.replace(AO.Dom._patterns.CLASS_RE_TOKENS,"\\$1");A=Ai[B]=new RegExp(AX+B+Af,z)}}}return A},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(A,B){return A&&A[Ae]==1&&(!B||B(A))},_calcBorders:function(A,D){var C=parseInt(AO.Dom[AT](A,AC),10)||0,B=parseInt(AO.Dom[AT](A,AZ),10)||0;if(AM){if(AG.test(A[AQ])){C=0;B=0}}D[0]+=B;D[1]+=C;return D}};var AB=AO.Dom[AT];if(Ad.opera){AO.Dom[AT]=function(C,B){var A=AB(C,B);if(Y.test(B)){A=AO.Dom.Color.toRGB(A)}return A}}if(Ad.webkit){AO.Dom[AT]=function(C,B){var A=AB(C,B);if(A==="rgba(0, 0, 0, 0)"){A="transparent"}return A}}if(Ad.ie&&Ad.ie>=8&&AJ.documentElement.hasAttribute){AO.Dom.DOT_ATTRIBUTES.type=true}})();YAHOO.util.Region=function(G,F,E,H){this.top=G;this.y=G;this[1]=G;this.right=F;this.bottom=E;this.left=H;this.x=H;this[0]=H;this.width=this.right-this.left;this.height=this.bottom-this.top};YAHOO.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top),H=Math.min(this.right,G.right),F=Math.min(this.bottom,G.bottom),J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top),H=Math.max(this.right,G.right),F=Math.max(this.bottom,G.bottom),J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J),K=H[1],I=H[0]+J.offsetWidth,G=H[1]+J.offsetHeight,L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}YAHOO.util.Point.superclass.constructor.call(this,D,C,D,C)};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var s=YAHOO.util,t="clientTop",o="clientLeft",k="parentNode",j="right",X="hasLayout",l="px",Z="opacity",i="auto",q="borderLeftWidth",n="borderTopWidth",e="borderRightWidth",Y="borderBottomWidth",b="visible",d="transparent",g="height",p="width",m="style",a="currentStyle",c=/^width|height$/,f=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,h={get:function(D,B){var C="",A=D[a][B];if(B===Z){C=s.Dom.getStyle(D,Z)}else{if(!A||(A.indexOf&&A.indexOf(l)>-1)){C=A}else{if(s.Dom.IE_COMPUTED[B]){C=s.Dom.IE_COMPUTED[B](D,B)}else{if(f.test(A)){C=s.Dom.IE.ComputedStyle.getPixel(D,B)}else{C=A}}}}return C},getOffset:function(D,C){var A=D[a][C],H=C.charAt(0).toUpperCase()+C.substr(1),G="offset"+H,F="pixel"+H,B="",E;if(A==i){E=D[G];if(E===undefined){B=0}B=E;if(c.test(C)){D[m][C]=E;if(D[G]>E){B=E-(D[G]-E)}D[m][C]=i}}else{if(!D[m][F]&&!D[m][C]){D[m][C]=A}B=D[m][F]}return B+l},getBorderWidth:function(C,A){var B=null;if(!C[a][X]){C[m].zoom=1}switch(A){case n:B=C[t];break;case Y:B=C.offsetHeight-C.clientHeight-C[t];break;case q:B=C[o];break;case e:B=C.offsetWidth-C.clientWidth-C[o];break}return B+l},getPixel:function(D,E){var B=null,A=D[a][j],C=D[a][E];D[m][j]=C;B=D[m].pixelRight;D[m][j]=A;return B+l},getMargin:function(B,C){var A;if(B[a][C]==i){A=0+l}else{A=s.Dom.IE.ComputedStyle.getPixel(B,C)}return A},getVisibility:function(B,C){var A;while((A=B[a])&&A[C]=="inherit"){B=B[k]}return(A)?A[C]:b},getColor:function(A,B){return s.Dom.Color.toRGB(A[a][B])||d},getBorderColor:function(C,D){var B=C[a],A=B[D]||B.color;return s.Dom.Color.toRGB(s.Dom.Color.toHex(A))}},r={};r.top=r.right=r.bottom=r.left=r[p]=r[g]=h.getOffset;r.color=h.getColor;r[n]=r[e]=r[Y]=r[q]=h.getBorderWidth;r.marginTop=r.marginRight=r.marginBottom=r.marginLeft=h.getMargin;r.visibility=h.getVisibility;r.borderColor=r.borderTopColor=r.borderRightColor=r.borderBottomColor=r.borderLeftColor=h.getBorderColor;s.Dom.IE_COMPUTED=r;s.Dom.IE_ComputedStyle=h})();(function(){var G="toString",E=parseInt,H=RegExp,F=YAHOO.util;F.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(A){if(!F.Dom.Color.re_RGB.test(A)){A=F.Dom.Color.toHex(A)}if(F.Dom.Color.re_hex.exec(A)){A="rgb("+[E(H.$1,16),E(H.$2,16),E(H.$3,16)].join(", ")+")"}return A},toHex:function(A){A=F.Dom.Color.KEYWORDS[A]||A;if(F.Dom.Color.re_RGB.exec(A)){var B=(H.$1.length===1)?"0"+H.$1:Number(H.$1),C=(H.$2.length===1)?"0"+H.$2:Number(H.$2),D=(H.$3.length===1)?"0"+H.$3:Number(H.$3);A=[B[G](16),C[G](16),D[G](16)].join("")}if(A.length<6){A=A.replace(F.Dom.Color.re_hex3,"$1$1")}if(A!=="transparent"&&A.indexOf("#")<0){A="#"+A}return A.toLowerCase()}}}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.1",build:"19"});YAHOO.util.CustomEvent=function(J,K,L,G,I){this.type=J;this.scope=K||window;this.silent=L;this.fireOnce=I;this.fired=false;this.firedWith=null;this.signature=G||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var H="_YUICEOnSubscribe";if(J!==H){this.subscribeEvent=new YAHOO.util.CustomEvent(H,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(H,G,F){if(!H){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(H,G,F)}var E=new YAHOO.util.Subscriber(H,G,F);if(this.fireOnce&&this.fired){this.notify(E,this.firedWith)}else{this.subscribers.push(E)}},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){this.lastError=null;var J=[],I=this.subscribers.length;var N=[].slice.call(arguments,0),O=true,L,P=false;if(this.fireOnce){if(this.fired){return true}else{this.firedWith=N}}this.fired=true;if(!I&&this.silent){return true}if(!this.silent){}var M=this.subscribers.slice();for(L=0;L<I;++L){var K=M[L];if(!K){P=true}else{O=this.notify(K,N);if(false===O){if(!this.silent){}break}}}return(O!==false)},notify:function(L,O){var P,J=null,M=L.getScope(this.scope),I=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(O.length>0){J=O[0]}try{P=L.fn.call(M,J,L.obj)}catch(K){this.lastError=K;if(I){throw K}}}else{try{P=L.fn.call(M,this.type,O,L.obj)}catch(N){this.lastError=N;if(I){throw N}}}return P},unsubscribeAll:function(){var C=this.subscribers.length,D;for(D=C-1;D>-1;D--){this._delete(D)}this.subscribers=[];return C},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(D,F,E){this.fn=D;this.obj=YAHOO.lang.isUndefined(F)?null:F;this.overrideContext=E};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var R=false,Q=[],O=[],N=0,T=[],M=0,L={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},K=YAHOO.env.ua.ie,S="focusin",P="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:K,_interval:null,_dri:null,_specialTypes:{focusin:(K?"focusin":"focus"),focusout:(K?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true)}},onAvailable:function(C,G,E,D,F){var B=(YAHOO.lang.isString(C))?[C]:C;for(var A=0;A<B.length;A=A+1){T.push({id:B[A],fn:G,obj:E,overrideContext:D,checkReady:F})}N=this.POLL_RETRYS;this.startInterval()},onContentReady:function(C,B,A,D){this.onAvailable(C,B,A,D,true)},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments)},_addListener:function(b,d,D,J,F,A){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var I=0,G=b.length;I<G;++I){C=this.on(b[I],d,D,J,F)&&C}return C}else{if(YAHOO.lang.isString(b)){var Z=this.getEl(b);if(Z){b=Z}else{this.onAvailable(b,function(){YAHOO.util.Event._addListener(b,d,D,J,F,A)});return true}}}if(!b){return false}if("unload"==d&&J!==this){O[O.length]=[b,d,D,J,F];return true}var c=b;if(F){if(F===true){c=J}else{c=F}}var a=function(U){return D.call(c,YAHOO.util.Event.getEvent(U,b),J)};var B=[b,d,D,a,c,J,F,A];var H=Q.length;Q[H]=B;try{this._simpleAdd(b,d,a,A)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}return true},_getType:function(A){return this._specialTypes[A]||A},addListener:function(F,C,A,E,D){var B=((C==S||C==P)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(F,this._getType(C),A,E,D,B)},addFocusListener:function(A,B,D,C){return this.on(A,S,B,D,C)},removeFocusListener:function(A,B){return this.removeListener(A,S,B)},addBlurListener:function(A,B,D,C){return this.on(A,P,B,D,C)},removeBlurListener:function(A,B){return this.removeListener(A,P,B)},removeListener:function(J,V,D){var I,F,A;V=this._getType(V);if(typeof J=="string"){J=this.getEl(J)}else{if(this._isValidCollection(J)){var C=true;for(I=J.length-1;I>-1;I--){C=(this.removeListener(J[I],V,D)&&C)}return C}}if(!D||!D.call){return this.purgeElement(J,false,V)}if("unload"==V){for(I=O.length-1;I>-1;I--){A=O[I];if(A&&A[0]==J&&A[1]==V&&A[2]==D){O.splice(I,1);return true}}return false}var H=null;var G=arguments[3];if("undefined"===typeof G){G=this._getCacheIndex(Q,J,V,D)}if(G>=0){H=Q[G]}if(!J||!H){return false}var B=H[this.CAPTURE]===true?true:false;try{this._simpleRemove(J,V,H[this.WFN],B)}catch(E){this.lastError=E;return false}delete Q[G][this.WFN];delete Q[G][this.FN];Q.splice(G,1);return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode}}catch(B){}return A},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement}else{if(A.type=="mouseover"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in L)){B=L[B]}return B},_getCacheIndex:function(G,D,C,E){for(var F=0,A=G.length;F<A;F=F+1){var B=G[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+M;++M;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(A){if(!R){R=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(T.length===0){N=0;if(this._interval){this._interval.cancel();this._interval=null}return }if(this.locked){return }if(this.isIE){if(!this.DOMReady){this.startInterval();return }}this.locked=true;var D=!R;if(!D){D=(N>0&&T.length>0)}var E=[];var C=function(J,I){var V=J;if(I.overrideContext){if(I.overrideContext===true){V=I.obj}else{V=I.overrideContext}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=T.length;A<B;A=A+1){F=T[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(R||G.nextSibling||!D){H.push(F);T[A]=null}}else{C(G,F);T[A]=null}}else{E.push(F)}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F)}N--;if(D){for(A=T.length-1;A>-1;A--){F=T[A];if(!F||!F.id){T.splice(A,1)}}this.startInterval()}else{if(this._interval){this._interval.cancel();this._interval=null}}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[Q,O]}else{if(J==="unload"){I=[O]}else{J=this._getType(J);I=[Q]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D})}}}}return(E.length)?E:null},_unload:function(B){var H=YAHOO.util.Event,E,F,G,C,D,A=O.slice(),I;for(E=0,C=O.length;E<C;++E){G=A[E];if(G){I=window;if(G[H.ADJ_SCOPE]){if(G[H.ADJ_SCOPE]===true){I=G[H.UNLOAD_OBJ]}else{I=G[H.ADJ_SCOPE]}}G[H.FN].call(I,H.getEvent(B,G[H.EL]),G[H.UNLOAD_OBJ]);A[E]=null}}G=null;I=null;O=null;if(Q){for(F=Q.length-1;F>-1;F--){G=Q[F];if(G){H.removeListener(G[H.EL],G[H.TYPE],G[H.FN],F)}}G=null}H._simpleRemove(window,"unload",H._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;A.onFocus=A.addFocusListener;A.onBlur=A.addBlurListener;if(A.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;A._ready()}}}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,overrideContext:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(N,I){this.__yui_events=this.__yui_events||{};var K=I||{},L=this.__yui_events,J;if(L[N]){}else{J=new YAHOO.util.CustomEvent(N,K.scope||this,K.silent,YAHOO.util.CustomEvent.FLAT,K.fireOnce);L[N]=J;if(K.onSubscribeCallback){J.subscribeEvent.subscribe(K.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var H=this.__yui_subscribers[N];if(H){for(var M=0;M<H.length;++M){J.subscribe(H[M].fn,H[M].obj,H[M].overrideContext)}}}return L[N]},fireEvent:function(H){this.__yui_events=this.__yui_events||{};var F=this.__yui_events[H];if(!F){return null}var E=[];for(var G=1;G<arguments.length;++G){E.push(arguments[G])}return F.fire.apply(F,E)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};(function(){var D=YAHOO.util.Event,E=YAHOO.lang;YAHOO.util.KeyListener=function(L,A,K,J){if(!L){}else{if(!A){}else{if(!K){}}}if(!J){J=YAHOO.util.KeyListener.KEYDOWN}var C=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(E.isString(L)){L=document.getElementById(L)}if(E.isFunction(K)){C.subscribe(K)}else{C.subscribe(K.fn,K.scope,K.correctScope)}function B(P,Q){if(!A.shift){A.shift=false}if(!A.alt){A.alt=false}if(!A.ctrl){A.ctrl=false}if(P.shiftKey==A.shift&&P.altKey==A.alt&&P.ctrlKey==A.ctrl){var I,R=A.keys,G;if(YAHOO.lang.isArray(R)){for(var H=0;H<R.length;H++){I=R[H];G=D.getCharCode(P);if(I==G){C.fire(G,P);break}}}else{G=D.getCharCode(P);if(R==G){C.fire(G,P)}}}}this.enable=function(){if(!this.enabled){D.on(L,J,B);this.enabledEvent.fire(A)}this.enabled=true};this.disable=function(){if(this.enabled){D.removeListener(L,J,B);this.disabledEvent.fire(A)}this.enabled=false};this.toString=function(){return"KeyListener ["+A.keys+"] "+L.tagName+(L.id?"["+L.id+"]":"")}};var F=YAHOO.util.KeyListener;F.KEYDOWN="keydown";F.KEYUP="keyup";F.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.1",build:"19"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(B){this._msxml_progid.unshift(B)},setDefaultPostHeader:function(B){if(typeof B=="string"){this._default_post_header=B}else{if(typeof B=="boolean"){this._use_default_post_header=B}}},setDefaultXhrHeader:function(B){if(typeof B=="string"){this._default_xhr_header=B}else{this._use_default_xhr_header=B}},setPollingInterval:function(B){if(typeof B=="number"&&isFinite(B)){this._polling_interval=B}},createXhrObject:function(H){var J,G,L;try{G=new XMLHttpRequest();J={conn:G,tId:H,xhr:true}}catch(K){for(L=0;L<this._msxml_progid.length;++L){try{G=new ActiveXObject(this._msxml_progid[L]);J={conn:G,tId:H,xhr:true};break}catch(I){}}}finally{return J}},getConnectionObject:function(E){var G,F=this._transaction_id;try{if(!E){G=this.createXhrObject(F)}else{G={tId:F};if(E==="xdr"){G.conn=this._transport;G.xdr=true}else{if(E==="upload"){G.upload=true}}}if(G){this._transaction_id++}}catch(H){}return G},asyncRequest:function(I,L,J,H){var K,M,N=(J&&J.argument)?J.argument:null;if(this._isFileUpload){M="upload"}else{if(J.xdr){M="xdr"}}K=this.getConnectionObject(M);if(!K){return null}else{if(J&&J.customevents){this.initCustomEvents(K,J)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(K,J,L,H);return K}if(I.toUpperCase()=="GET"){if(this._sFormData.length!==0){L+=((L.indexOf("?")==-1)?"?":"&")+this._sFormData}}else{if(I.toUpperCase()=="POST"){H=H?this._sFormData+"&"+H:this._sFormData}}}if(I.toUpperCase()=="GET"&&(J&&J.cache===false)){L+=((L.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if((I.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header)}if(K.xdr){this.xdr(K,I,L,J,H);return K}K.conn.open(I,L,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(K)}this.handleReadyState(K,J);K.conn.send(H||"");if(this._isFormSubmit===true){this.resetFormState()}this.startEvent.fire(K,N);if(K.startEvent){K.startEvent.fire(K,N)}return K}},initCustomEvents:function(D,E){var F;for(F in E.customevents){if(this._customEvents[F][0]){D[this._customEvents[F][0]]=new YAHOO.util.CustomEvent(this._customEvents[F][1],(E.scope)?E.scope:null);D[this._customEvents[F][0]].subscribe(E.customevents[F])}}},handleReadyState:function(G,F){var H=this,E=(F&&F.argument)?F.argument:null;if(F&&F.timeout){this._timeOut[G.tId]=window.setTimeout(function(){H.abort(G,F,true)},F.timeout)}this._poll[G.tId]=window.setInterval(function(){if(G.conn&&G.conn.readyState===4){window.clearInterval(H._poll[G.tId]);delete H._poll[G.tId];if(F&&F.timeout){window.clearTimeout(H._timeOut[G.tId]);delete H._timeOut[G.tId]}H.completeEvent.fire(G,E);if(G.completeEvent){G.completeEvent.fire(G,E)}H.handleTransactionResponse(G,F)}},this._polling_interval)},handleTransactionResponse:function(M,P,K){var T,N,R=(P&&P.argument)?P.argument:null,L=(M.r&&M.r.statusText==="xdr:success")?true:false,Q=(M.r&&M.r.statusText==="xdr:failure")?true:false,O=K;try{if((M.conn.status!==undefined&&M.conn.status!==0)||L){T=M.conn.status}else{if(Q&&!O){T=0}else{T=13030}}}catch(S){T=13030}if((T>=200&&T<300)||T===1223||L){N=M.xdr?M.r:this.createResponseObject(M,R);if(P&&P.success){if(!P.scope){P.success(N)}else{P.success.apply(P.scope,[N])}}this.successEvent.fire(N);if(M.successEvent){M.successEvent.fire(N)}}else{switch(T){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:N=this.createExceptionObject(M.tId,R,(K?K:false));if(P&&P.failure){if(!P.scope){P.failure(N)}else{P.failure.apply(P.scope,[N])}}break;default:N=(M.xdr)?M.response:this.createResponseObject(M,R);if(P&&P.failure){if(!P.scope){P.failure(N)}else{P.failure.apply(P.scope,[N])}}}this.failureEvent.fire(N);if(M.failureEvent){M.failureEvent.fire(N)}}this.releaseObject(M);N=null},createResponseObject:function(M,P){var J={},N={},R,K,Q,L;try{K=M.conn.getAllResponseHeaders();Q=K.split("\n");for(R=0;R<Q.length;R++){L=Q[R].indexOf(":");if(L!=-1){N[Q[R].substring(0,L)]=YAHOO.lang.trim(Q[R].substring(L+2))}}}catch(O){}J.tId=M.tId;J.status=(M.conn.status==1223)?204:M.conn.status;J.statusText=(M.conn.status==1223)?"No Content":M.conn.statusText;J.getResponseHeader=N;J.getAllResponseHeaders=K;J.responseText=M.conn.responseText;J.responseXML=M.conn.responseXML;if(P){J.argument=P}return J},createExceptionObject:function(J,N,I){var L=0,K="communication failure",O=-1,P="transaction aborted",M={};M.tId=J;if(I){M.status=O;M.statusText=P}else{M.status=L;M.statusText=K}if(N){M.argument=N}return M},initHeader:function(E,F,G){var H=(G)?this._default_headers:this._http_headers;H[E]=F;if(G){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(C){var D;if(this._has_default_headers){for(D in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,D)){C.conn.setRequestHeader(D,this._default_headers[D])}}}if(this._has_http_headers){for(D in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,D)){C.conn.setRequestHeader(D,this._http_headers[D])}}this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false},abort:function(K,I,H){var L,N=(I&&I.argument)?I.argument:null;K=K||{};if(K.conn){if(K.xhr){if(this.isCallInProgress(K)){K.conn.abort();window.clearInterval(this._poll[K.tId]);delete this._poll[K.tId];if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{if(K.xdr){K.conn.abort(K.tId);L=true}}}else{if(K.upload){var M="yuiIO"+K.tId;var J=document.getElementById(M);if(J){YAHOO.util.Event.removeListener(J,"load");document.body.removeChild(J);if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{L=false}}if(L===true){this.abortEvent.fire(K,N);if(K.abortEvent){K.abortEvent.fire(K,N)}this.handleTransactionResponse(K,I,true)}return L},isCallInProgress:function(B){B=B||{};if(B.xhr&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0}else{if(B.xdr&&B.conn){return B.conn.isCallInProgress(B.tId)}else{if(B.upload===true){return document.getElementById("yuiIO"+B.tId)?true:false}else{return false}}}},releaseObject:function(B){if(B&&B.conn){B.conn=null;B=null}}};(function(){var K=YAHOO.util.Connect,J={};function N(C){var B='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+C+'" width="0" height="0"><param name="movie" value="'+C+'"><param name="allowScriptAccess" value="always"></object>',A=document.createElement("div");document.body.appendChild(A);A.innerHTML=B}function P(A,D,C,E,B){J[parseInt(A.tId)]={o:A,c:E};if(B){E.method=D;E.data=B}A.conn.send(C,E,A.tId)}function M(A){N(A);K._transport=document.getElementById("YUIConnectionSwf")}function O(){K.xdrReadyEvent.fire()}function I(A,B){if(A){K.startEvent.fire(A,B.argument);if(A.startEvent){A.startEvent.fire(A,B.argument)}}}function L(B){var A=J[B.tId].o,C=J[B.tId].c;if(B.statusText==="xdr:start"){I(A,C);return }B.responseText=decodeURI(B.responseText);A.r=B;if(C.argument){A.r.argument=C.argument}this.handleTransactionResponse(A,C,B.statusText==="xdr:abort"?true:false);delete J[B.tId]}K.xdr=P;K.swf=N;K.transport=M;K.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");K.xdrReady=O;K.handleXdrResponse=L})();(function(){var L=YAHOO.util.Connect,J=YAHOO.util.Event;L._isFormSubmit=false;L._isFileUpload=false;L._formNode=null;L._sFormData=null;L._submitElementValue=null;L.uploadEvent=new YAHOO.util.CustomEvent("upload"),L._hasSubmitListener=function(){if(J){J.addListener(document,"click",function(A){var B=J.getTarget(A),C=B.nodeName.toLowerCase();if((C==="input"||C==="button")&&(B.type&&B.type.toLowerCase()=="submit")){L._submitElementValue=encodeURIComponent(B.name)+"="+encodeURIComponent(B.value)}});return true}return false}();function I(D,Y,d){var E,e,F,X,A,G=false,a=[],B=0,b,Z,c,C,f;this.resetFormState();if(typeof D=="string"){E=(document.getElementById(D)||document.forms[D])}else{if(typeof D=="object"){E=D}else{return }}if(Y){this.createFrame(d?d:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=E;return }for(b=0,Z=E.elements.length;b<Z;++b){e=E.elements[b];A=e.disabled;F=e.name;if(!A&&F){F=encodeURIComponent(F)+"=";X=encodeURIComponent(e.value);switch(e.type){case"select-one":if(e.selectedIndex>-1){f=e.options[e.selectedIndex];a[B++]=F+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}break;case"select-multiple":if(e.selectedIndex>-1){for(c=e.selectedIndex,C=e.options.length;c<C;++c){f=e.options[c];if(f.selected){a[B++]=F+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}}}break;case"radio":case"checkbox":if(e.checked){a[B++]=F+X}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(G===false){if(this._hasSubmitListener&&this._submitElementValue){a[B++]=this._submitElementValue}G=true}break;default:a[B++]=F+X}}}this._isFormSubmit=true;this._sFormData=a.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData}function M(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""}function N(C){var B="yuiIO"+this._transaction_id,A;if(YAHOO.env.ua.ie){A=document.createElement('<iframe id="'+B+'" name="'+B+'" />');if(typeof C=="boolean"){A.src="javascript:false"}}else{A=document.createElement("iframe");A.id=B;A.name=B}A.style.position="absolute";A.style.top="-1000px";A.style.left="-1000px";document.body.appendChild(A)}function K(E){var B=[],D=E.split("&"),C,A;for(C=0;C<D.length;C++){A=D[C].indexOf("=");if(A!=-1){B[C]=document.createElement("input");B[C].type="hidden";B[C].name=decodeURIComponent(D[C].substring(0,A));B[C].value=decodeURIComponent(D[C].substring(A+1));this._formNode.appendChild(B[C])}}return B}function H(c,B,b,d){var G="yuiIO"+c.tId,F="multipart/form-data",D=document.getElementById(G),a=(document.documentMode&&document.documentMode===8)?true:false,A=this,E=(B&&B.argument)?B.argument:null,C,X,e,Y,f,Z;f={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",b);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",G);if(YAHOO.env.ua.ie&&!a){this._formNode.setAttribute("encoding",F)}else{this._formNode.setAttribute("enctype",F)}if(d){C=this.appendPostData(d)}this._formNode.submit();this.startEvent.fire(c,E);if(c.startEvent){c.startEvent.fire(c,E)}if(B&&B.timeout){this._timeOut[c.tId]=window.setTimeout(function(){A.abort(c,B,true)},B.timeout)}if(C&&C.length>0){for(X=0;X<C.length;X++){this._formNode.removeChild(C[X])}}for(e in f){if(YAHOO.lang.hasOwnProperty(f,e)){if(f[e]){this._formNode.setAttribute(e,f[e])}else{this._formNode.removeAttribute(e)}}}this.resetFormState();Z=function(){if(B&&B.timeout){window.clearTimeout(A._timeOut[c.tId]);delete A._timeOut[c.tId]}A.completeEvent.fire(c,E);if(c.completeEvent){c.completeEvent.fire(c,E)}Y={tId:c.tId,argument:B.argument};try{Y.responseText=D.contentWindow.document.body?D.contentWindow.document.body.innerHTML:D.contentWindow.document.documentElement.textContent;Y.responseXML=D.contentWindow.document.XMLDocument?D.contentWindow.document.XMLDocument:D.contentWindow.document}catch(O){}if(B&&B.upload){if(!B.scope){B.upload(Y)}else{B.upload.apply(B.scope,[Y])}}A.uploadEvent.fire(Y);if(c.uploadEvent){c.uploadEvent.fire(Y)}J.removeListener(D,"load",Z);setTimeout(function(){document.body.removeChild(D);A.releaseObject(c)},100)};J.addListener(D,"load",Z)}L.setForm=I;L.resetFormState=M;L.createFrame=N;L.appendPostData=K;L.uploadFile=H})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.8.1",build:"19"});(function(){var D=YAHOO.util;var C=function(G,H,B,A){if(!G){}this.init(G,H,B,A)};C.NAME="Anim";C.prototype={toString:function(){var B=this.getEl()||{};var A=B.id||B.tagName;return(this.constructor.NAME+": "+A)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(F,A,B){return this.method(this.currentFrame,A,B-A,this.totalFrames)},setAttribute:function(H,A,B){var G=this.getEl();if(this.patterns.noNegatives.test(H)){A=(A>0)?A:0}if(H in G&&!("style" in G&&H in G.style)){G[H]=A}else{D.Dom.setStyle(G,H,A+B)}},getAttribute:function(L){var J=this.getEl();var B=D.Dom.getStyle(J,L);if(B!=="auto"&&!this.patterns.offsetUnit.test(B)){return parseFloat(B)}var K=this.patterns.offsetAttribute.exec(L)||[];var A=!!(K[3]);var I=!!(K[2]);if("style" in J){if(I||(D.Dom.getStyle(J,"position")=="absolute"&&A)){B=J["offset"+K[0].charAt(0).toUpperCase()+K[0].substr(1)]}else{B=0}}else{if(L in J){B=J[L]}}return B},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(M){var A;var L;var K=this.attributes;this.runtimeAttributes[M]={};var B=function(E){return(typeof E!=="undefined")};if(!B(K[M]["to"])&&!B(K[M]["by"])){return false}A=(B(K[M]["from"]))?K[M]["from"]:this.getAttribute(M);if(B(K[M]["to"])){L=K[M]["to"]}else{if(B(K[M]["by"])){if(A.constructor==Array){L=[];for(var J=0,N=A.length;J<N;++J){L[J]=A[J]+K[M]["by"][J]*1}}else{L=A+K[M]["by"]*1}}}this.runtimeAttributes[M].start=A;this.runtimeAttributes[M].end=L;this.runtimeAttributes[M].unit=(B(K[M].unit))?K[M]["unit"]:this.getDefaultUnit(M);return true},init:function(T,O,P,B){var A=false;var S=null;var Q=0;T=D.Dom.get(T);this.attributes=O||{};this.duration=!YAHOO.lang.isUndefined(P)?P:1;this.method=B||D.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=D.AnimMgr.fps;this.setEl=function(E){T=D.Dom.get(E)};this.getEl=function(){return T};this.isAnimated=function(){return A};this.getStartTime=function(){return S};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(D.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}D.AnimMgr.registerElement(this);return true};this.stop=function(E){if(!this.isAnimated()){return false}if(E){this.currentFrame=this.totalFrames;this._onTween.fire()}D.AnimMgr.stop(this)};var M=function(){this.onStart.fire();this.runtimeAttributes={};for(var E in this.attributes){this.setRuntimeAttribute(E)}A=true;Q=0;S=new Date()};var N=function(){var E={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};E.toString=function(){return("duration: "+E.duration+", currentFrame: "+E.currentFrame)};this.onTween.fire(E);var F=this.runtimeAttributes;for(var G in F){this.setAttribute(G,this.doMethod(G,F[G].start,F[G].end),F[G].unit)}Q+=1};var R=function(){var F=(new Date()-S)/1000;var E={duration:F,frames:Q,fps:Q/F};E.toString=function(){return("duration: "+E.duration+", frames: "+E.frames+", fps: "+E.fps)};A=false;Q=0;this.onComplete.fire(E)};this._onStart=new D.CustomEvent("_start",this,true);this.onStart=new D.CustomEvent("start",this);this.onTween=new D.CustomEvent("tween",this);this._onTween=new D.CustomEvent("_tween",this,true);this.onComplete=new D.CustomEvent("complete",this);this._onComplete=new D.CustomEvent("_complete",this,true);this._onStart.subscribe(M);this._onTween.subscribe(N);this._onComplete.subscribe(R)}};D.Anim=C})();YAHOO.util.AnimMgr=new function(){var I=null;var J=[];var F=0;this.fps=1000;this.delay=1;this.registerElement=function(A){J[J.length]=A;F+=1;A._onStart.fire();this.start()};this.unRegister=function(A,B){B=B||G(A);if(!A.isAnimated()||B===-1){return false}A._onComplete.fire();J.splice(B,1);F-=1;if(F<=0){this.stop()}return true};this.start=function(){if(I===null){I=setInterval(this.run,this.delay)}};this.stop=function(A){if(!A){clearInterval(I);for(var B=0,C=J.length;B<C;++B){this.unRegister(J[0],0)}J=[];I=null;F=0}else{this.unRegister(A)}};this.run=function(){for(var A=0,C=J.length;A<C;++A){var B=J[A];if(!B||!B.isAnimated()){continue}if(B.currentFrame<B.totalFrames||B.totalFrames===null){B.currentFrame+=1;if(B.useSeconds){H(B)}B._onTween.fire()}else{YAHOO.util.AnimMgr.stop(B,A)}}};var G=function(A){for(var B=0,C=J.length;B<C;++B){if(J[B]===A){return B}}return -1};var H=function(E){var B=E.totalFrames;var C=E.currentFrame;var D=(E.currentFrame*E.duration*1000/E.totalFrames);var L=(new Date()-E.getStartTime());var A=0;if(L<E.duration*1000){A=Math.round((L/D-1)*E.currentFrame)}else{A=B-(C+1)}if(A>0&&isFinite(A)){if(E.currentFrame+A>=B){A=B-(C+1)}E.currentFrame+=A}};this._queue=J;this._getIndex=G};YAHOO.util.Bezier=new function(){this.getPosition=function(I,J){var H=I.length;var K=[];for(var L=0;L<H;++L){K[L]=[I[L][0],I[L][1]]}for(var G=1;G<H;++G){for(L=0;L<H-G;++L){K[L][0]=(1-J)*K[L][0]+J*K[parseInt(L+1,10)][0];K[L][1]=(1-J)*K[L][1]+J*K[parseInt(L+1,10)][1]}}return[K[0][0],K[0][1]]}};(function(){var E=function(C,D,B,A){E.superclass.constructor.call(this,C,D,B,A)};E.NAME="ColorAnim";E.DEFAULT_BGCOLOR="#fff";var G=YAHOO.util;YAHOO.extend(E,G.Anim);var F=E.superclass;var H=E.prototype;H.patterns.color=/color$/i;H.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;H.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;H.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;H.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;H.parseColor=function(B){if(B.length==3){return B}var A=this.patterns.hex.exec(B);if(A&&A.length==4){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}A=this.patterns.rgb.exec(B);if(A&&A.length==4){return[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3],10)]}A=this.patterns.hex3.exec(B);if(A&&A.length==4){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}return null};H.getAttribute=function(J){var C=this.getEl();if(this.patterns.color.test(J)){var A=YAHOO.util.Dom.getStyle(C,J);var B=this;if(this.patterns.transparent.test(A)){var D=YAHOO.util.Dom.getAncestorBy(C,function(I){return !B.patterns.transparent.test(A)});if(D){A=G.Dom.getStyle(D,J)}else{A=E.DEFAULT_BGCOLOR}}}else{A=F.getAttribute.call(this,J)}return A};H.doMethod=function(K,A,D){var B;if(this.patterns.color.test(K)){B=[];for(var C=0,L=A.length;C<L;++C){B[C]=F.doMethod.call(this,K,A[C],D[C])}B="rgb("+Math.floor(B[0])+","+Math.floor(B[1])+","+Math.floor(B[2])+")"}else{B=F.doMethod.call(this,K,A,D)}return B};H.setRuntimeAttribute=function(K){F.setRuntimeAttribute.call(this,K);if(this.patterns.color.test(K)){var C=this.attributes;var A=this.parseColor(this.runtimeAttributes[K].start);var D=this.parseColor(this.runtimeAttributes[K].end);if(typeof C[K]["to"]==="undefined"&&typeof C[K]["by"]!=="undefined"){D=this.parseColor(C[K].by);for(var B=0,L=A.length;B<L;++B){D[B]=A[B]+D[B]}}this.runtimeAttributes[K].start=A;this.runtimeAttributes[K].end=D}};G.ColorAnim=E})();YAHOO.util.Easing={easeNone:function(H,E,F,G){return F*H/G+E},easeIn:function(H,E,F,G){return F*(H/=G)*H+E},easeOut:function(H,E,F,G){return -F*(H/=G)*(H-2)+E},easeBoth:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H+E}return -F/2*((--H)*(H-2)-1)+E},easeInStrong:function(H,E,F,G){return F*(H/=G)*H*H*H+E},easeOutStrong:function(H,E,F,G){return -F*((H=H/G-1)*H*H*H-1)+E},easeBothStrong:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H*H*H+E}return -F/2*((H-=2)*H*H*H-2)+E},elasticIn:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return -(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H},elasticOut:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return N*Math.pow(2,-10*M)*Math.sin((M*J-L)*(2*Math.PI)/K)+I+H},elasticBoth:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J/2)==2){return H+I}if(!K){K=J*(0.3*1.5)}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}if(M<1){return -0.5*(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H}return N*Math.pow(2,-10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K)*0.5+I+H},backIn:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*(J/=H)*J*((I+1)*J-I)+F},backOut:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*((J=J/H-1)*J*((I+1)*J+I)+1)+F},backBoth:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}if((J/=H/2)<1){return G/2*(J*J*(((I*=(1.525))+1)*J-I))+F}return G/2*((J-=2)*J*(((I*=(1.525))+1)*J+I)+2)+F},bounceIn:function(H,E,F,G){return F-YAHOO.util.Easing.bounceOut(G-H,0,F,G)+E},bounceOut:function(H,E,F,G){if((H/=G)<(1/2.75)){return F*(7.5625*H*H)+E}else{if(H<(2/2.75)){return F*(7.5625*(H-=(1.5/2.75))*H+0.75)+E}else{if(H<(2.5/2.75)){return F*(7.5625*(H-=(2.25/2.75))*H+0.9375)+E}}}return F*(7.5625*(H-=(2.625/2.75))*H+0.984375)+E},bounceBoth:function(H,E,F,G){if(H<G/2){return YAHOO.util.Easing.bounceIn(H*2,0,F,G)*0.5+E}return YAHOO.util.Easing.bounceOut(H*2-G,0,F,G)*0.5+F*0.5+E}};(function(){var G=function(C,D,B,A){if(C){G.superclass.constructor.call(this,C,D,B,A)}};G.NAME="Motion";var I=YAHOO.util;YAHOO.extend(G,I.ColorAnim);var H=G.superclass;var K=G.prototype;K.patterns.points=/^points$/i;K.setAttribute=function(C,A,B){if(this.patterns.points.test(C)){B=B||"px";H.setAttribute.call(this,"left",A[0],B);H.setAttribute.call(this,"top",A[1],B)}else{H.setAttribute.call(this,C,A,B)}};K.getAttribute=function(B){if(this.patterns.points.test(B)){var A=[H.getAttribute.call(this,"left"),H.getAttribute.call(this,"top")]}else{A=H.getAttribute.call(this,B)}return A};K.doMethod=function(E,A,D){var B=null;if(this.patterns.points.test(E)){var C=this.method(this.currentFrame,0,100,this.totalFrames)/100;B=I.Bezier.getPosition(this.runtimeAttributes[E],C)}else{B=H.doMethod.call(this,E,A,D)}return B};K.setRuntimeAttribute=function(A){if(this.patterns.points.test(A)){var S=this.getEl();var Q=this.attributes;var T;var E=Q.points["control"]||[];var R;var D,B;if(E.length>0&&!(E[0] instanceof Array)){E=[E]}else{var F=[];for(D=0,B=E.length;D<B;++D){F[D]=E[D]}E=F}if(I.Dom.getStyle(S,"position")=="static"){I.Dom.setStyle(S,"position","relative")}if(J(Q.points["from"])){I.Dom.setXY(S,Q.points["from"])}else{I.Dom.setXY(S,I.Dom.getXY(S))}T=this.getAttribute("points");if(J(Q.points["to"])){R=L.call(this,Q.points["to"],T);var C=I.Dom.getXY(this.getEl());for(D=0,B=E.length;D<B;++D){E[D]=L.call(this,E[D],T)}}else{if(J(Q.points["by"])){R=[T[0]+Q.points["by"][0],T[1]+Q.points["by"][1]];for(D=0,B=E.length;D<B;++D){E[D]=[T[0]+E[D][0],T[1]+E[D][1]]}}}this.runtimeAttributes[A]=[T];if(E.length>0){this.runtimeAttributes[A]=this.runtimeAttributes[A].concat(E)}this.runtimeAttributes[A][this.runtimeAttributes[A].length]=R}else{H.setRuntimeAttribute.call(this,A)}};var L=function(C,A){var B=I.Dom.getXY(this.getEl());C=[C[0]-B[0]+A[0],C[1]-B[1]+A[1]];return C};var J=function(A){return(typeof A!=="undefined")};I.Motion=G})();(function(){var F=function(C,D,B,A){if(C){F.superclass.constructor.call(this,C,D,B,A)}};F.NAME="Scroll";var H=YAHOO.util;YAHOO.extend(F,H.ColorAnim);var G=F.superclass;var E=F.prototype;E.doMethod=function(D,A,C){var B=null;if(D=="scroll"){B=[this.method(this.currentFrame,A[0],C[0]-A[0],this.totalFrames),this.method(this.currentFrame,A[1],C[1]-A[1],this.totalFrames)]}else{B=G.doMethod.call(this,D,A,C)}return B};E.getAttribute=function(C){var A=null;var B=this.getEl();if(C=="scroll"){A=[B.scrollLeft,B.scrollTop]}else{A=G.getAttribute.call(this,C)}return A};E.setAttribute=function(D,A,B){var C=this.getEl();if(D=="scroll"){C.scrollLeft=A[0];C.scrollTop=A[1]}else{G.setAttribute.call(this,D,A,B)}};H.Scroll=F})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.8.1",build:"19"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var C=YAHOO.util.Event,D=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var A=document.createElement("div");A.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(A,document.body.firstChild)}else{document.body.appendChild(A)}A.style.display="none";A.style.backgroundColor="red";A.style.position="absolute";A.style.zIndex="99999";D.setStyle(A,"opacity","0");this._shim=A;C.on(A,"mouseup",this.handleMouseUp,this,true);C.on(A,"mousemove",this.handleMouseMove,this,true);C.on(window,"scroll",this._sizeShim,this,true)},_sizeShim:function(){if(this._shimActive){var A=this._shim;A.style.height=D.getDocumentHeight()+"px";A.style.width=D.getDocumentWidth()+"px";A.style.top="0";A.style.left="0"}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim()}this._shimActive=true;var B=this._shim,A="0";if(this._debugShim){A=".5"}D.setStyle(B,"opacity",A);this._sizeShim();B.style.display="block"}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var B in this.ids){for(var J in this.ids[B]){var A=this.ids[B][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();C.on(document,"mouseup",this.handleMouseUp,this,true);C.on(document,"mousemove",this.handleMouseMove,this,true);C.on(window,"unload",this._onUnload,this,true);C.on(window,"resize",this._onResize,this,true)},_onResize:function(A){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(A,B){if(!this.initialized){this.init()}if(!this.ids[B]){this.ids[B]={}}this.ids[B][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var B=this.ids[F];if(B&&B[A.id]){delete B[A.id]}},_remove:function(A){for(var B in A.groups){if(B){var F=this.ids[B];if(F&&F[A.id]){delete F[A.id]}}}delete this.handleIds[A.id]},regHandle:function(A,B){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][B]=B},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var B=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue}if(!K||L.isTarget){B[B.length]=L}}}return B},isLegalTarget:function(A,B){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==B.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,B){return(this.handleIds[A]&&this.handleIds[A][B])},getDDById:function(A){for(var B in this.ids){if(this.ids[B][A]){return this.ids[B][A]}}return null},handleMouseDown:function(A,B){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=B;var F=B.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=YAHOO.util.DDM;E.startDrag(E.startX,E.startY);E.fromTimeout=true},this.clickTimeThresh)},startDrag:function(F,A){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true}this._activateShim();clearTimeout(this.clickTimeout);var B=this.dragCurrent;if(B&&B.events.b4StartDrag){B.b4StartDrag(F,A);B.fireEvent("b4StartDragEvent",{x:F,y:A})}if(B&&B.events.startDrag){B.startDrag(F,A);B.fireEvent("startDragEvent",{x:F,y:A})}this.dragThreshMet=true},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(A)}this.fromTimeout=false;this.fireEvents(A,true)}else{}this.stopDrag(A);this.stopEvent(A)}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A)}if(this.preventDefault){YAHOO.util.Event.preventDefault(A)}},stopDrag:function(A,B){var F=this.dragCurrent;if(F&&!B){if(this.dragThreshMet){if(F.events.b4EndDrag){F.b4EndDrag(A);F.fireEvent("b4EndDragEvent",{e:A})}if(F.events.endDrag){F.endDrag(A);F.fireEvent("endDragEvent",{e:A})}}if(F.events.mouseUp){F.onMouseUp(A);F.fireEvent("mouseUpEvent",{e:A})}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}else{if(A.clientX<0||A.clientY<0){}}if(!this.dragThreshMet){var B=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(B>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){if(H&&H.events.b4Drag){H.b4Drag(A);H.fireEvent("b4DragEvent",{e:A})}if(H&&H.events.drag){H.onDrag(A);H.fireEvent("dragEvent",{e:A})}if(H){this.fireEvents(A,false)}}this.stopEvent(A)}},fireEvents:function(f,p){var AB=this.dragCurrent;if(!AB||AB.isLocked()||AB.dragOnly){return }var n=YAHOO.util.Event.getPageX(f),o=YAHOO.util.Event.getPageY(f),l=new YAHOO.util.Point(n,o),q=AB.getTargetCoord(l.x,l.y),v=AB.getDragEl(),w=["out","over","drop","enter"],g=new YAHOO.util.Region(q.y,q.x+v.offsetWidth,q.y+v.offsetHeight,q.x),s=[],x={},k=[],AA={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var i in this.dragOvers){var z=this.dragOvers[i];if(!this.isTypeOfDD(z)){continue}if(!this.isOverTarget(l,z,this.mode,g)){AA.outEvts.push(z)}s[i]=true;delete this.dragOvers[i]}for(var j in AB.groups){if("string"!=typeof j){continue}for(i in this.ids[j]){var u=this.ids[j][i];if(!this.isTypeOfDD(u)){continue}if(u.isTarget&&!u.isLocked()&&u!=AB){if(this.isOverTarget(l,u,this.mode,g)){x[j]=true;if(p){AA.dropEvts.push(u)}else{if(!s[u.id]){AA.enterEvts.push(u)}else{AA.overEvts.push(u)}this.dragOvers[u.id]=u}}}}}this.interactionInfo={out:AA.outEvts,enter:AA.enterEvts,over:AA.overEvts,drop:AA.dropEvts,point:l,draggedRegion:g,sourceRegion:this.locationCache[AB.id],validDrop:p};for(var y in x){k.push(y)}if(p&&!AA.dropEvts.length){this.interactionInfo.validDrop=false;if(AB.events.invalidDrop){AB.onInvalidDrop(f);AB.fireEvent("invalidDropEvent",{e:f})}}for(i=0;i<w.length;i++){var B=null;if(AA[w[i]+"Evts"]){B=AA[w[i]+"Evts"]}if(B&&B.length){var t=w[i].charAt(0).toUpperCase()+w[i].substr(1),b="onDrag"+t,r="b4Drag"+t,m="drag"+t+"Event",e="drag"+t;if(this.mode){if(AB.events[r]){AB[r](f,B,k);AB.fireEvent(r+"Event",{event:f,info:B,group:k})}if(AB.events[e]){AB[b](f,B,k);AB.fireEvent(m,{event:f,info:B,group:k})}}else{for(var A=0,h=B.length;A<h;++A){if(AB.events[r]){AB[r](f,B[A].id,k[0]);AB.fireEvent(r+"Event",{event:f,info:B[A].id,group:k[0]})}if(AB.events[e]){AB[b](f,B[A].id,k[0]);AB.fireEvent(m,{event:f,info:B[A].id,group:k[0]})}}}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var B=0;B<I;++B){var J=H[B];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J}}}}return A},refreshCache:function(K){var I=K||this.ids;for(var L in I){if("string"!=typeof L){continue}for(var J in this.ids[L]){var B=this.ids[L][J];if(this.isTypeOfDD(B)){var A=this.getLocation(B);if(A){this.locationCache[B.id]=A}else{delete this.locationCache[B.id]}}}}},verifyEl:function(B){try{if(B){var F=B.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(U){if(!this.isTypeOfDD(U)){return null}var W=U.getEl(),R,X,A,P,Q,O,B,S,V;try{R=YAHOO.util.Dom.getXY(W)}catch(T){}if(!R){return null}X=R[0];A=X+W.offsetWidth;P=R[1];Q=P+W.offsetHeight;O=P-U.padding[0];B=A+U.padding[1];S=Q+U.padding[2];V=X-U.padding[3];return new YAHOO.util.Region(O,B,S,V)},isOverTarget:function(L,B,R,Q){var P=this.locationCache[B.id];if(!P||!this.useCache){P=this.getLocation(B);this.locationCache[B.id]=P}if(!P){return false}B.cursorIsOver=P.contains(L);var M=this.dragCurrent;if(!M||(!R&&!M.constrainX&&!M.constrainY)){return B.cursorIsOver}B.overlap=null;if(!Q){var O=M.getTargetCoord(L.x,L.y);var A=M.getDragEl();Q=new YAHOO.util.Region(O.y,O.x+A.offsetWidth,O.y+A.offsetHeight,O.x)}var N=Q.intersect(P);if(N){B.overlap=N;return(R)?true:B.cursorIsOver}else{return false}},_onUnload:function(A,B){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var B=this.elementCache[A];if(!B||!B.el){B=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A))}return B},getElement:function(A){return YAHOO.util.Dom.get(A)},getCss:function(A){var B=YAHOO.util.Dom.get(A);return(B)?B.style:null},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style},getPosX:function(A){return YAHOO.util.Dom.getX(A)},getPosY:function(A){return YAHOO.util.Dom.getY(A)},swapNode:function(B,H){if(B.swapNode){B.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==B){A.insertBefore(B,H)}else{if(H==B.nextSibling){A.insertBefore(H,B)}else{B.parentNode.replaceChild(H,B);A.insertBefore(B,G)}}}},getScroll:function(){var B,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){B=A.scrollTop;H=A.scrollLeft}else{if(G){B=G.scrollTop;H=G.scrollLeft}else{}}return{top:B,left:H}},getStyle:function(A,B){return YAHOO.util.Dom.getStyle(A,B)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var B=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,B)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(A,B){return(A-B)},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;if(YAHOO.util.Event&&document){A._onLoad()}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true}else{var B=F.parentNode;while(B){if(this.isHandle(A,B.id)){return true}else{B=B.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id)}return this._domRef},getDragEl:function(){return D.get(this.dragElId)},init:function(A,H,G){this.initTarget(A,H,G);C.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var B in this.events){this.createEvent(B+"Event")}},initTarget:function(A,F,B){this.config=B||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!=="string"){this._domRef=A;A=D.generateId(A)}this.id=A;this.addToGroup((F)?F:"default");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var A in this.config.events){if(this.config.events[A]===false){this.events[A]=false}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B]}else{if(!A&&0!==A){this.padding=[B,H,B,H]}else{this.padding=[B,H,A,G]}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){if(B&&B.style&&(B.style.display=="none")){}else{}return }var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A)},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1]},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A)},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A]}this.DDM.removeDDFromGroup(this,A)},setDragElId:function(A){this.dragElId=A},setHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.handleElId=A;this.DDM.regHandle(this.id,A)},setOuterHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}C.on(A,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true},unreg:function(){C.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(A,B){var O=A.which||A.button;if(this.primaryButtonOnly&&O>1){return }if(this.isLocked()){return }var P=this.b4MouseDown(A),M=true;if(this.events.b4MouseDown){M=this.fireEvent("b4MouseDownEvent",A)}var N=this.onMouseDown(A),K=true;if(this.events.mouseDown){K=this.fireEvent("mouseDownEvent",A)}if((P===false)||(N===false)||(M===false)||(K===false)){return }this.DDM.refreshCache(this.groups);var L=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(L,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=YAHOO.util.Event.getTarget(A);return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)))},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX}if(H>this.maxX){H=this.maxX}}if(this.constrainY){if(A<this.minY){A=this.minY}if(A>this.maxY){A=this.maxY}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A}},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A},addInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.invalidHandleIds[A]=A},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A)},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A]},removeInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}delete this.invalidHandleIds[A]},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A]}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase()}catch(B){A=I.nodeName}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K])}return J},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(A,K){if(!K){return A}else{if(K[0]>=A){return K[0]}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L]}}return K[K.length-1]}}},toString:function(){return("DragDrop "+this.id)}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F)},setDelta:function(D,C){this.deltaX=D;this.deltaY=C},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F)},alignElWithMouse:function(O,K,L){var M=this.getTargetCoord(K,L);if(!this.deltaSetXY){var J=[M.x,M.y];YAHOO.util.Dom.setXY(O,J);var N=parseInt(YAHOO.util.Dom.getStyle(O,"left"),10);var P=parseInt(YAHOO.util.Dom.getStyle(O,"top"),10);this.deltaSetXY=[N-M.x,P-M.y]}else{YAHOO.util.Dom.setStyle(O,"left",(M.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(O,"top",(M.y+this.deltaSetXY[1])+"px")}this.cachePosition(M.x,M.y);var I=this;setTimeout(function(){I.autoScroll.call(I,M.x,M.y,O.offsetHeight,O.offsetWidth)},0)},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1]}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R)}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R)}if(T>Q&&a<P){window.scrollTo(O+R,S)}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},toString:function(){return("DD "+this.id)}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var L=this,G=document.body;if(!G||!G.firstChild){setTimeout(function(){L.createFrame()},50);return }var H=this.getDragEl(),I=YAHOO.util.Dom;if(!H){H=document.createElement("div");H.id=this.dragElId;var J=H.style;J.position="absolute";J.visibility="hidden";J.cursor="move";J.border="2px solid #aaa";J.zIndex=999;J.height="25px";J.width="25px";var K=document.createElement("div");I.setStyle(K,"height","100%");I.setStyle(K,"width","100%");I.setStyle(K,"background-color","#ccc");I.setStyle(K,"opacity","0");H.appendChild(K);G.insertBefore(H,G.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2))}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,"borderTopWidth"),10);var N=parseInt(O.getStyle(K,"borderRightWidth"),10);var Q=parseInt(O.getStyle(K,"borderBottomWidth"),10);var J=parseInt(O.getStyle(K,"borderLeftWidth"),10);if(isNaN(P)){P=0}if(isNaN(N)){N=0}if(isNaN(Q)){Q=0}if(isNaN(J)){J=0}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,"width",R+"px");O.setStyle(K,"height",M+"px")}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","")},toString:function(){return("DDProxy "+this.id)}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.8.1",build:"19"});YAHOO.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var B=this.value;if(this.getter){B=this.getter.call(this.owner,this.name,B)}return B},setValue:function(H,L){var I,G=this.owner,K=this.name;var J={type:K,prevValue:this.getValue(),newValue:H};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(G,H)){return false}if(!L){I=G.fireBeforeChangeEvent(J);if(I===false){return false}}if(this.setter){H=this.setter.call(G,H,this.name);if(H===undefined){}}if(this.method){this.method.call(G,H,this.name)}this.value=H;this._written=true;J.type=K;if(!L){this.owner.fireChangeEvent(J)}return true},configure:function(F,E){F=F||{};if(E){this._written=false}this._initialConfig=this._initialConfig||{};for(var D in F){if(F.hasOwnProperty(D)){this[D]=F[D];if(E){this._initialConfig[D]=F[D]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig,true)},refresh:function(B){this.setValue(this.value,B)}};(function(){var B=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D||!this._configs.hasOwnProperty(A)){return null}return D.getValue()},set:function(F,A,H){this._configs=this._configs||{};var G=this._configs[F];if(!G){return false}return G.setValue(A,H)},getAttributeKeys:function(){this._configs=this._configs;var A=[],D;for(D in this._configs){if(B.hasOwnProperty(this._configs,D)&&!B.isUndefined(this._configs[D])){A[A.length]=D}}return A},setAttributes:function(A,F){for(var E in A){if(B.hasOwnProperty(A,E)){this.set(E,A[E],F)}}},resetValue:function(A,D){this._configs=this._configs||{};if(this._configs[A]){this.set(A,this._configs[A]._initialConfig.value,D);return true}return false},refresh:function(G,I){this._configs=this._configs||{};var A=this._configs;G=((B.isString(G))?[G]:G)||this.getAttributeKeys();for(var H=0,J=G.length;H<J;++H){if(A.hasOwnProperty(G[H])){this._configs[G[H]].refresh(I)}}},register:function(D,A){this.setAttributeConfig(D,A)},getAttributeConfig:function(E){this._configs=this._configs||{};var F=this._configs[E]||{};var A={};for(E in F){if(B.hasOwnProperty(F,E)){A[E]=F[E]}}return A},setAttributeConfig:function(F,E,A){this._configs=this._configs||{};E=E||{};if(!this._configs[F]){E.name=F;this._configs[F]=this.createAttribute(E)}else{this._configs[F].configure(E,A)}},configureAttribute:function(F,E,A){this.setAttributeConfig(F,E,A)},resetAttributeConfig:function(A){this._configs=this._configs||{};this._configs[A].resetConfig()},subscribe:function(D,A){this._events=this._events||{};if(!(D in this._events)){this._events[D]=this.createEvent(D)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(A){var D="before";D+=A.type.charAt(0).toUpperCase()+A.type.substr(1)+"Change";A.type=D;return this.fireEvent(A.type,A)},fireChangeEvent:function(A){A.type+="Change";return this.fireEvent(A.type,A)},createAttribute:function(A){return new YAHOO.util.Attribute(A,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();(function(){var H=YAHOO.util.Dom,F=YAHOO.util.AttributeProvider,G={mouseenter:true,mouseleave:true};var E=function(B,A){this.init.apply(this,arguments)};E.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mouseenter:true,mouseleave:true,focus:true,blur:true,submit:true,change:true};E.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(A,C){var B=this.get("element");if(B){B[C]=A}return A},DEFAULT_HTML_GETTER:function(C){var B=this.get("element"),A;if(B){A=B[C]}return A},appendChild:function(A){A=A.get?A.get("element"):A;return this.get("element").appendChild(A)},getElementsByTagName:function(A){return this.get("element").getElementsByTagName(A)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(B,A){B=B.get?B.get("element"):B;A=(A&&A.get)?A.get("element"):A;return this.get("element").insertBefore(B,A)},removeChild:function(A){A=A.get?A.get("element"):A;return this.get("element").removeChild(A)},replaceChild:function(B,A){B=B.get?B.get("element"):B;A=A.get?A.get("element"):A;return this.get("element").replaceChild(B,A)},initAttributes:function(A){},addListener:function(B,C,A,D){D=D||this;var N=YAHOO.util.Event,L=this.get("element")||this.get("id"),M=this;if(G[B]&&!N._createMouseDelegate){return false}if(!this._events[B]){if(L&&this.DOM_EVENTS[B]){N.on(L,B,function(J,I){if(J.srcElement&&!J.target){J.target=J.srcElement}if((J.toElement&&!J.relatedTarget)||(J.fromElement&&!J.relatedTarget)){J.relatedTarget=N.getRelatedTarget(J)}if(!J.currentTarget){J.currentTarget=L}M.fireEvent(B,J,I)},A,D)}this.createEvent(B,{scope:this})}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,arguments)},removeListener:function(A,B){return this.unsubscribe.apply(this,arguments)},addClass:function(A){H.addClass(this.get("element"),A)},getElementsByClassName:function(A,B){return H.getElementsByClassName(A,B,this.get("element"))},hasClass:function(A){return H.hasClass(this.get("element"),A)},removeClass:function(A){return H.removeClass(this.get("element"),A)},replaceClass:function(A,B){return H.replaceClass(this.get("element"),A,B)},setStyle:function(A,B){return H.setStyle(this.get("element"),A,B)},getStyle:function(A){return H.getStyle(this.get("element"),A)},fireQueue:function(){var B=this._queue;for(var A=0,C=B.length;A<C;++A){this[B[A][0]].apply(this,B[A][1])}},appendTo:function(B,A){B=(B.get)?B.get("element"):H.get(B);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:B});A=(A&&A.get)?A.get("element"):H.get(A);var C=this.get("element");if(!C){return false}if(!B){return false}if(C.parent!=B){if(A){B.insertBefore(C,A)}else{B.appendChild(C)}}this.fireEvent("appendTo",{type:"appendTo",target:B});return C},get:function(C){var A=this._configs||{},B=A.element;if(B&&!A[C]&&!YAHOO.lang.isUndefined(B.value[C])){this._setHTMLAttrConfig(C)}return F.prototype.get.call(this,C)},setAttributes:function(A,D){var M={},C=this._configOrder;for(var B=0,N=C.length;B<N;++B){if(A[C[B]]!==undefined){M[C[B]]=true;this.set(C[B],A[C[B]],D)}}for(var L in A){if(A.hasOwnProperty(L)&&!M[L]){this.set(L,A[L],D)}}},set:function(C,A,D){var B=this.get("element");if(!B){this._queue[this._queue.length]=["set",arguments];if(this._configs[C]){this._configs[C].value=A}return }if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){this._setHTMLAttrConfig(C)}return F.prototype.set.apply(this,arguments)},setAttributeConfig:function(C,B,A){this._configOrder.push(C);F.prototype.setAttributeConfig.apply(this,arguments)},createEvent:function(A,B){this._events[A]=true;return F.prototype.createEvent.apply(this,arguments)},init:function(A,B){this._initElement(A,B)},destroy:function(){var A=this.get("element");YAHOO.util.Event.purgeElement(A,true);this.unsubscribeAll();if(A&&A.parentNode){A.parentNode.removeChild(A)}this._queue=[];this._events={};this._configs={};this._configOrder=[]},_initElement:function(C,D){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];D=D||{};D.element=D.element||C||null;var A=false;var J=E.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var B in J){if(J.hasOwnProperty(B)){this.DOM_EVENTS[B]=J[B]}}if(typeof D.element==="string"){this._setHTMLAttrConfig("id",{value:D.element})}if(H.get(D.element)){A=true;this._initHTMLElement(D);this._initContent(D)}YAHOO.util.Event.onAvailable(D.element,function(){if(!A){this._initHTMLElement(D)}this.fireEvent("available",{type:"available",target:H.get(D.element)})},this,true);YAHOO.util.Event.onContentReady(D.element,function(){if(!A){this._initContent(D)}this.fireEvent("contentReady",{type:"contentReady",target:H.get(D.element)})},this,true)},_initHTMLElement:function(A){this.setAttributeConfig("element",{value:H.get(A.element),readOnly:true})},_initContent:function(A){this.initAttributes(A);this.setAttributes(A,true);this.fireQueue()},_setHTMLAttrConfig:function(C,A){var B=this.get("element");A=A||{};A.name=C;A.setter=A.setter||this.DEFAULT_HTML_SETTER;A.getter=A.getter||this.DEFAULT_HTML_GETTER;A.value=A.value||B[C];this._configs[C]=new YAHOO.util.Attribute(A,this)}};YAHOO.augment(E,F);YAHOO.util.Element=E})();YAHOO.register("element",YAHOO.util.Element,{version:"2.8.1",build:"19"});YAHOO.register("utilities",YAHOO,{version:"2.8.1",build:"19"});(function(){var M=YAHOO.util,L=M.Dom,Q=M.Event,S=window.document,O="active",K="activeIndex",T="activeTab",N="contentEl",R="element",P=function(A,B){B=B||{};if(arguments.length==1&&!YAHOO.lang.isString(A)&&!A.nodeName){B=A;A=B.element||null}if(!A&&!B.element){A=this._createTabViewElement(B)}P.superclass.constructor.call(this,A,B)};YAHOO.extend(P,M.Element,{CLASSNAME:"yui-navset",TAB_PARENT_CLASSNAME:"yui-nav",CONTENT_PARENT_CLASSNAME:"yui-content",_tabParent:null,_contentParent:null,addTab:function(E,A){var G=this.get("tabs"),D=this.getTab(A),C=this._tabParent,B=this._contentParent,H=E.get(R),F=E.get(N);if(!G){this._queue[this._queue.length]=["addTab",arguments];return false}A=(A===undefined)?G.length:A;G.splice(A,0,E);if(D){C.insertBefore(H,D.get(R))}else{C.appendChild(H)}if(F&&!L.isAncestor(B,F)){B.appendChild(F)}if(!E.get(O)){E.set("contentVisible",false,true)}else{this.set(T,E,true);this.set("activeIndex",A,true)}this._initTabEvents(E)},_initTabEvents:function(A){A.addListener(A.get("activationEvent"),A._onActivate,this,A);A.addListener(A.get("activationEventChange"),A._onActivationEventChange,this,A)},_removeTabEvents:function(A){A.removeListener(A.get("activationEvent"),A._onActivate,this,A);A.removeListener("activationEventChange",A._onActivationEventChange,this,A)},DOMEventHandler:function(D){var C=Q.getTarget(D),A=this._tabParent,B=this.get("tabs"),G,H,I;if(L.isAncestor(A,C)){for(var F=0,E=B.length;F<E;F++){H=B[F].get(R);I=B[F].get(N);if(C==H||L.isAncestor(H,C)){G=B[F];break}}if(G){G.fireEvent(D.type,D)}}},getTab:function(A){return this.get("tabs")[A]},getTabIndex:function(C){var A=null,D=this.get("tabs");for(var E=0,B=D.length;E<B;++E){if(C==D[E]){A=E;break}}return A},removeTab:function(C){var A=this.get("tabs").length,B=this.getTabIndex(C);if(C===this.get(T)){if(A>1){if(B+1===A){this.set(K,B-1)}else{this.set(K,B+1)}}else{this.set(T,null)}}this._removeTabEvents(C);this._tabParent.removeChild(C.get(R));this._contentParent.removeChild(C.get(N));this._configs.tabs.value.splice(B,1);C.fireEvent("remove",{type:"remove",tabview:this})},toString:function(){var A=this.get("id")||this.get("tagName");return"TabView "+A},contentTransition:function(A,B){if(A){A.set("contentVisible",true)}if(B){B.set("contentVisible",false)}},initAttributes:function(B){P.superclass.initAttributes.call(this,B);if(!B.orientation){B.orientation="top"}var C=this.get(R);if(!L.hasClass(C,this.CLASSNAME)){L.addClass(C,this.CLASSNAME)}this.setAttributeConfig("tabs",{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,"ul")[0]||this._createTabParent();this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,"div")[0]||this._createContentParent();this.setAttributeConfig("orientation",{value:B.orientation,method:function(E){var D=this.get("orientation");this.addClass("yui-navset-"+E);if(D!=E){this.removeClass("yui-navset-"+D)}if(E==="bottom"){this.appendChild(this._tabParent)}}});this.setAttributeConfig(K,{value:B.activeIndex,validator:function(D){var E=true;if(D&&this.getTab(D).get("disabled")){E=false}return E}});this.setAttributeConfig(T,{value:B.activeTab,method:function(D){var E=this.get(T);if(D){D.set(O,true)}if(E&&E!==D){E.set(O,false)}if(E&&D!==E){this.contentTransition(D,E)}else{if(D){D.set("contentVisible",true)}}},validator:function(D){var E=true;if(D&&D.get("disabled")){E=false}return E}});this.on("activeTabChange",this._onActiveTabChange);this.on("activeIndexChange",this._onActiveIndexChange);if(this._tabParent){this._initTabs()}this.DOM_EVENTS.submit=false;this.DOM_EVENTS.focus=false;this.DOM_EVENTS.blur=false;for(var A in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,A)){this.addListener.call(this,A,this.DOMEventHandler)}}},deselectTab:function(A){if(this.getTab(A)===this.get("activeTab")){this.set("activeTab",null)}},selectTab:function(A){this.set("activeTab",this.getTab(A))},_onActiveTabChange:function(C){var B=this.get(K),A=this.getTabIndex(C.newValue);if(B!==A){if(!(this.set(K,A))){this.set(T,C.prevValue)}}},_onActiveIndexChange:function(A){if(A.newValue!==this.getTabIndex(this.get(T))){if(!(this.set(T,this.getTab(A.newValue)))){this.set(K,A.prevValue)}}},_initTabs:function(){var E=L.getChildren(this._tabParent),G=L.getChildren(this._contentParent),H=this.get(K),D,A,C;for(var F=0,B=E.length;F<B;++F){A={};if(G[F]){A.contentEl=G[F]}D=new YAHOO.widget.Tab(E[F],A);this.addTab(D);if(D.hasClass(D.ACTIVE_CLASSNAME)){C=D}}if(H){this.set(T,this.getTab(H))}else{this._configs.activeTab.value=C;this._configs.activeIndex.value=this.getTabIndex(C)}},_createTabViewElement:function(B){var A=S.createElement("div");if(this.CLASSNAME){A.className=this.CLASSNAME}return A},_createTabParent:function(B){var A=S.createElement("ul");if(this.TAB_PARENT_CLASSNAME){A.className=this.TAB_PARENT_CLASSNAME}this.get(R).appendChild(A);return A},_createContentParent:function(B){var A=S.createElement("div");if(this.CONTENT_PARENT_CLASSNAME){A.className=this.CONTENT_PARENT_CLASSNAME}this.get(R).appendChild(A);return A}});YAHOO.widget.TabView=P})();(function(){var R=YAHOO.util,d=R.Dom,a=YAHOO.lang,Z="activeTab",c="label",f="labelEl",V="content",S="contentEl",X="element",W="cacheData",T="dataSrc",e="dataLoaded",U="dataTimeout",Y="loadMethod",g="postData",b="disabled",h=function(A,B){B=B||{};if(arguments.length==1&&!a.isString(A)&&!A.nodeName){B=A;A=B.element}if(!A&&!B.element){A=this._createTabElement(B)}this.loadHandler={success:function(C){this.set(V,C.responseText)},failure:function(C){}};h.superclass.constructor.call(this,A,B);this.DOM_EVENTS={}};YAHOO.extend(h,YAHOO.util.Element,{LABEL_TAGNAME:"em",ACTIVE_CLASSNAME:"selected",HIDDEN_CLASSNAME:"yui-hidden",ACTIVE_TITLE:"active",DISABLED_CLASSNAME:b,LOADING_CLASSNAME:"loading",dataConnection:null,loadHandler:null,_loading:false,toString:function(){var B=this.get(X),A=B.id||B.tagName;return"Tab "+A},initAttributes:function(A){A=A||{};h.superclass.initAttributes.call(this,A);this.setAttributeConfig("activationEvent",{value:A.activationEvent||"click"});this.setAttributeConfig(f,{value:A[f]||this._getLabelEl(),method:function(C){C=d.get(C);var B=this.get(f);if(B){if(B==C){return false}B.parentNode.replaceChild(C,B);this.set(c,C.innerHTML)}}});this.setAttributeConfig(c,{value:A.label||this._getLabel(),method:function(B){var C=this.get(f);if(!C){this.set(f,this._createLabelEl())}C.innerHTML=B}});this.setAttributeConfig(S,{value:A[S]||document.createElement("div"),method:function(C){C=d.get(C);var B=this.get(S);if(B){if(B===C){return false}if(!this.get("selected")){d.addClass(C,this.HIDDEN_CLASSNAME)}B.parentNode.replaceChild(C,B);this.set(V,C.innerHTML)}}});this.setAttributeConfig(V,{value:A[V],method:function(B){this.get(S).innerHTML=B}});this.setAttributeConfig(T,{value:A.dataSrc});this.setAttributeConfig(W,{value:A.cacheData||false,validator:a.isBoolean});this.setAttributeConfig(Y,{value:A.loadMethod||"GET",validator:a.isString});this.setAttributeConfig(e,{value:false,validator:a.isBoolean,writeOnce:true});this.setAttributeConfig(U,{value:A.dataTimeout||null,validator:a.isNumber});this.setAttributeConfig(g,{value:A.postData||null});this.setAttributeConfig("active",{value:A.active||this.hasClass(this.ACTIVE_CLASSNAME),method:function(B){if(B===true){this.addClass(this.ACTIVE_CLASSNAME);this.set("title",this.ACTIVE_TITLE)}else{this.removeClass(this.ACTIVE_CLASSNAME);this.set("title","")}},validator:function(B){return a.isBoolean(B)&&!this.get(b)}});this.setAttributeConfig(b,{value:A.disabled||this.hasClass(this.DISABLED_CLASSNAME),method:function(B){if(B===true){d.addClass(this.get(X),this.DISABLED_CLASSNAME)}else{d.removeClass(this.get(X),this.DISABLED_CLASSNAME)}},validator:a.isBoolean});this.setAttributeConfig("href",{value:A.href||this.getElementsByTagName("a")[0].getAttribute("href",2)||"#",method:function(B){this.getElementsByTagName("a")[0].href=B},validator:a.isString});this.setAttributeConfig("contentVisible",{value:A.contentVisible,method:function(B){if(B){d.removeClass(this.get(S),this.HIDDEN_CLASSNAME);if(this.get(T)){if(!this._loading&&!(this.get(e)&&this.get(W))){this._dataConnect()}}}else{d.addClass(this.get(S),this.HIDDEN_CLASSNAME)}},validator:a.isBoolean})},_dataConnect:function(){if(!R.Connect){return false}d.addClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=true;this.dataConnection=R.Connect.asyncRequest(this.get(Y),this.get(T),{success:function(A){this.loadHandler.success.call(this,A);this.set(e,true);this.dataConnection=null;d.removeClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=false},failure:function(A){this.loadHandler.failure.call(this,A);this.dataConnection=null;d.removeClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=false},scope:this,timeout:this.get(U)},this.get(g))},_createTabElement:function(E){var A=document.createElement("li"),D=document.createElement("a"),B=E.label||null,C=E.labelEl||null;D.href=E.href||"#";A.appendChild(D);if(C){if(!B){B=this._getLabel()}}else{C=this._createLabelEl()}D.appendChild(C);return A},_getLabelEl:function(){return this.getElementsByTagName(this.LABEL_TAGNAME)[0]},_createLabelEl:function(){var A=document.createElement(this.LABEL_TAGNAME);return A},_getLabel:function(){var A=this.get(f);if(!A){return undefined}return A.innerHTML},_onActivate:function(A,B){var C=this,D=false;R.Event.preventDefault(A);if(C===B.get(Z)){D=true}B.set(Z,C,D)},_onActivationEventChange:function(A){var B=this;if(A.prevValue!=A.newValue){B.removeListener(A.prevValue,B._onActivate);B.addListener(A.newValue,B._onActivate,this,B)}}});YAHOO.widget.Tab=h})();YAHOO.register("tabview",YAHOO.widget.TabView,{version:"2.8.1",build:"19"});YAHOO.util.CustomEvent=function(J,K,L,G,I){this.type=J;this.scope=K||window;this.silent=L;this.fireOnce=I;this.fired=false;this.firedWith=null;this.signature=G||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var H="_YUICEOnSubscribe";if(J!==H){this.subscribeEvent=new YAHOO.util.CustomEvent(H,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(H,G,F){if(!H){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(H,G,F)}var E=new YAHOO.util.Subscriber(H,G,F);if(this.fireOnce&&this.fired){this.notify(E,this.firedWith)}else{this.subscribers.push(E)}},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){this.lastError=null;var J=[],I=this.subscribers.length;var N=[].slice.call(arguments,0),O=true,L,P=false;if(this.fireOnce){if(this.fired){return true}else{this.firedWith=N}}this.fired=true;if(!I&&this.silent){return true}if(!this.silent){}var M=this.subscribers.slice();for(L=0;L<I;++L){var K=M[L];if(!K){P=true}else{O=this.notify(K,N);if(false===O){if(!this.silent){}break}}}return(O!==false)},notify:function(L,O){var P,J=null,M=L.getScope(this.scope),I=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(O.length>0){J=O[0]}try{P=L.fn.call(M,J,L.obj)}catch(K){this.lastError=K;if(I){throw K}}}else{try{P=L.fn.call(M,this.type,O,L.obj)}catch(N){this.lastError=N;if(I){throw N}}}return P},unsubscribeAll:function(){var C=this.subscribers.length,D;for(D=C-1;D>-1;D--){this._delete(D)}this.subscribers=[];return C},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(D,F,E){this.fn=D;this.obj=YAHOO.lang.isUndefined(F)?null:F;this.overrideContext=E};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var R=false,Q=[],O=[],N=0,T=[],M=0,L={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},K=YAHOO.env.ua.ie,S="focusin",P="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:K,_interval:null,_dri:null,_specialTypes:{focusin:(K?"focusin":"focus"),focusout:(K?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true)}},onAvailable:function(C,G,E,D,F){var B=(YAHOO.lang.isString(C))?[C]:C;for(var A=0;A<B.length;A=A+1){T.push({id:B[A],fn:G,obj:E,overrideContext:D,checkReady:F})}N=this.POLL_RETRYS;this.startInterval()},onContentReady:function(C,B,A,D){this.onAvailable(C,B,A,D,true)},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments)},_addListener:function(b,d,D,J,F,A){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var I=0,G=b.length;I<G;++I){C=this.on(b[I],d,D,J,F)&&C}return C}else{if(YAHOO.lang.isString(b)){var Z=this.getEl(b);if(Z){b=Z}else{this.onAvailable(b,function(){YAHOO.util.Event._addListener(b,d,D,J,F,A)});return true}}}if(!b){return false}if("unload"==d&&J!==this){O[O.length]=[b,d,D,J,F];return true}var c=b;if(F){if(F===true){c=J}else{c=F}}var a=function(U){return D.call(c,YAHOO.util.Event.getEvent(U,b),J)};var B=[b,d,D,a,c,J,F,A];var H=Q.length;Q[H]=B;try{this._simpleAdd(b,d,a,A)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}return true},_getType:function(A){return this._specialTypes[A]||A},addListener:function(F,C,A,E,D){var B=((C==S||C==P)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(F,this._getType(C),A,E,D,B)},addFocusListener:function(A,B,D,C){return this.on(A,S,B,D,C)},removeFocusListener:function(A,B){return this.removeListener(A,S,B)},addBlurListener:function(A,B,D,C){return this.on(A,P,B,D,C)},removeBlurListener:function(A,B){return this.removeListener(A,P,B)},removeListener:function(J,V,D){var I,F,A;V=this._getType(V);if(typeof J=="string"){J=this.getEl(J)}else{if(this._isValidCollection(J)){var C=true;for(I=J.length-1;I>-1;I--){C=(this.removeListener(J[I],V,D)&&C)}return C}}if(!D||!D.call){return this.purgeElement(J,false,V)}if("unload"==V){for(I=O.length-1;I>-1;I--){A=O[I];if(A&&A[0]==J&&A[1]==V&&A[2]==D){O.splice(I,1);return true}}return false}var H=null;var G=arguments[3];if("undefined"===typeof G){G=this._getCacheIndex(Q,J,V,D)}if(G>=0){H=Q[G]}if(!J||!H){return false}var B=H[this.CAPTURE]===true?true:false;try{this._simpleRemove(J,V,H[this.WFN],B)}catch(E){this.lastError=E;return false}delete Q[G][this.WFN];delete Q[G][this.FN];Q.splice(G,1);return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode}}catch(B){}return A},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement}else{if(A.type=="mouseover"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in L)){B=L[B]}return B},_getCacheIndex:function(G,D,C,E){for(var F=0,A=G.length;F<A;F=F+1){var B=G[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+M;++M;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(A){if(!R){R=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(T.length===0){N=0;if(this._interval){this._interval.cancel();this._interval=null}return }if(this.locked){return }if(this.isIE){if(!this.DOMReady){this.startInterval();return }}this.locked=true;var D=!R;if(!D){D=(N>0&&T.length>0)}var E=[];var C=function(J,I){var V=J;if(I.overrideContext){if(I.overrideContext===true){V=I.obj}else{V=I.overrideContext}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=T.length;A<B;A=A+1){F=T[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(R||G.nextSibling||!D){H.push(F);T[A]=null}}else{C(G,F);T[A]=null}}else{E.push(F)}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F)}N--;if(D){for(A=T.length-1;A>-1;A--){F=T[A];if(!F||!F.id){T.splice(A,1)}}this.startInterval()}else{if(this._interval){this._interval.cancel();this._interval=null}}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[Q,O]}else{if(J==="unload"){I=[O]}else{J=this._getType(J);I=[Q]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D})}}}}return(E.length)?E:null},_unload:function(B){var H=YAHOO.util.Event,E,F,G,C,D,A=O.slice(),I;for(E=0,C=O.length;E<C;++E){G=A[E];if(G){I=window;if(G[H.ADJ_SCOPE]){if(G[H.ADJ_SCOPE]===true){I=G[H.UNLOAD_OBJ]}else{I=G[H.ADJ_SCOPE]}}G[H.FN].call(I,H.getEvent(B,G[H.EL]),G[H.UNLOAD_OBJ]);A[E]=null}}G=null;I=null;O=null;if(Q){for(F=Q.length-1;F>-1;F--){G=Q[F];if(G){H.removeListener(G[H.EL],G[H.TYPE],G[H.FN],F)}}G=null}H._simpleRemove(window,"unload",H._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;A.onFocus=A.addFocusListener;A.onBlur=A.addBlurListener;if(A.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;A._ready()}}}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,overrideContext:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(N,I){this.__yui_events=this.__yui_events||{};var K=I||{},L=this.__yui_events,J;if(L[N]){}else{J=new YAHOO.util.CustomEvent(N,K.scope||this,K.silent,YAHOO.util.CustomEvent.FLAT,K.fireOnce);L[N]=J;if(K.onSubscribeCallback){J.subscribeEvent.subscribe(K.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var H=this.__yui_subscribers[N];if(H){for(var M=0;M<H.length;++M){J.subscribe(H[M].fn,H[M].obj,H[M].overrideContext)}}}return L[N]},fireEvent:function(H){this.__yui_events=this.__yui_events||{};var F=this.__yui_events[H];if(!F){return null}var E=[];for(var G=1;G<arguments.length;++G){E.push(arguments[G])}return F.fire.apply(F,E)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};(function(){var D=YAHOO.util.Event,E=YAHOO.lang;YAHOO.util.KeyListener=function(L,A,K,J){if(!L){}else{if(!A){}else{if(!K){}}}if(!J){J=YAHOO.util.KeyListener.KEYDOWN}var C=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(E.isString(L)){L=document.getElementById(L)}if(E.isFunction(K)){C.subscribe(K)}else{C.subscribe(K.fn,K.scope,K.correctScope)}function B(P,Q){if(!A.shift){A.shift=false}if(!A.alt){A.alt=false}if(!A.ctrl){A.ctrl=false}if(P.shiftKey==A.shift&&P.altKey==A.alt&&P.ctrlKey==A.ctrl){var I,R=A.keys,G;if(YAHOO.lang.isArray(R)){for(var H=0;H<R.length;H++){I=R[H];G=D.getCharCode(P);if(I==G){C.fire(G,P);break}}}else{G=D.getCharCode(P);if(R==G){C.fire(G,P)}}}}this.enable=function(){if(!this.enabled){D.on(L,J,B);this.enabledEvent.fire(A)}this.enabled=true};this.disable=function(){if(this.enabled){D.removeListener(L,J,B);this.disabledEvent.fire(A)}this.enabled=false};this.toString=function(){return"KeyListener ["+A.keys+"] "+L.tagName+(L.id?"["+L.id+"]":"")}};var F=YAHOO.util.KeyListener;F.KEYDOWN="keydown";F.KEYUP="keyup";F.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.1",build:"19"});YAHOO.util.History=(function(){var M=null;var P=null;var U=false;var L=[];var N=[];function R(){var B,A;A=top.location.href;B=A.indexOf("#");return B>=0?A.substr(B+1):null}function O(){var D,C,B=[],A=[];for(D in L){if(YAHOO.lang.hasOwnProperty(L,D)){C=L[D];B.push(D+"="+C.initialState);A.push(D+"="+C.currentState)}}P.value=B.join("&")+"|"+A.join("&");if(YAHOO.env.ua.webkit){P.value+="|"+N.join(",")}}function S(I){var D,C,H,F,E,A,B,G;if(!I){for(H in L){if(YAHOO.lang.hasOwnProperty(L,H)){F=L[H];F.currentState=F.initialState;F.onStateChange(unescape(F.currentState))}}return }E=[];A=I.split("&");for(D=0,C=A.length;D<C;D++){B=A[D].split("=");if(B.length===2){H=B[0];G=B[1];E[H]=G}}for(H in L){if(YAHOO.lang.hasOwnProperty(L,H)){F=L[H];G=E[H];if(!G||F.currentState!==G){F.currentState=G||F.initialState;F.onStateChange(unescape(F.currentState))}}}}function Q(B){var A,C;A='<html><body><div id="state">'+B.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+"</div></body></html>";try{C=M.contentWindow.document;C.open();C.write(A);C.close();return true}catch(D){return false}}function T(){var B,A,C,D;if(!M.contentWindow||!M.contentWindow.document){setTimeout(T,10);return }B=M.contentWindow.document;A=B.getElementById("state");C=A?A.innerText:null;D=R();setInterval(function(){var E,I,H,G,F,J;B=M.contentWindow.document;A=B.getElementById("state");E=A?A.innerText:null;F=R();if(E!==C){C=E;S(C);if(!C){I=[];for(H in L){if(YAHOO.lang.hasOwnProperty(L,H)){G=L[H];I.push(H+"="+G.initialState)}}F=I.join("&")}else{F=C}top.location.hash=F;D=F;O()}else{if(F!==D){D=F;Q(F)}}},50);U=true;YAHOO.util.History.onLoadEvent.fire()}function V(){var E,C,G,A,K,I,B,H,D,J,X,F;G=P.value.split("|");if(G.length>1){B=G[0].split("&");for(E=0,C=B.length;E<C;E++){A=B[E].split("=");if(A.length===2){K=A[0];H=A[1];I=L[K];if(I){I.initialState=H}}}D=G[1].split("&");for(E=0,C=D.length;E<C;E++){A=D[E].split("=");if(A.length>=2){K=A[0];J=A[1];I=L[K];if(I){I.currentState=J}}}}if(G.length>2){N=G[2].split(",")}if(YAHOO.env.ua.ie){if(typeof document.documentMode==="undefined"||document.documentMode<8){T()}else{YAHOO.util.Event.on(top,"hashchange",function(){var W=R();S(W);O()});U=true;YAHOO.util.History.onLoadEvent.fire()}}else{X=history.length;F=R();setInterval(function(){var W,b,a;b=R();a=history.length;if(b!==F){F=b;X=a;S(F);O()}else{if(a!==X&&YAHOO.env.ua.webkit){F=b;X=a;W=N[X-1];S(W);O()}}},50);U=true;YAHOO.util.History.onLoadEvent.fire()}}return{onLoadEvent:new YAHOO.util.CustomEvent("onLoad"),onReady:function(A,C,B){if(U){setTimeout(function(){var D=window;if(B){if(B===true){D=C}else{D=B}}A.call(D,"onLoad",[],C)},0)}else{YAHOO.util.History.onLoadEvent.subscribe(A,C,B)}},register:function(F,A,D,C,B){var E,G;if(typeof F!=="string"||YAHOO.lang.trim(F)===""||typeof A!=="string"||typeof D!=="function"){throw new Error("Missing or invalid argument")}if(L[F]){return }if(U){throw new Error("All modules must be registered before calling YAHOO.util.History.initialize")}F=escape(F);A=escape(A);E=null;if(B===true){E=C}else{E=B}G=function(H){return D.call(E,H,C)};L[F]={name:F,initialState:A,currentState:A,onStateChange:G}},initialize:function(A,B){if(U){return }if(YAHOO.env.ua.opera&&typeof history.navigationMode!=="undefined"){history.navigationMode="compatible"}if(typeof A==="string"){A=document.getElementById(A)}if(!A||A.tagName.toUpperCase()!=="TEXTAREA"&&(A.tagName.toUpperCase()!=="INPUT"||A.type!=="hidden"&&A.type!=="text")){throw new Error("Missing or invalid argument")}P=A;if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){if(typeof B==="string"){B=document.getElementById(B)}if(!B||B.tagName.toUpperCase()!=="IFRAME"){throw new Error("Missing or invalid argument")}M=B}YAHOO.util.Event.onDOMReady(V)},navigate:function(C,B){var A;if(typeof C!=="string"||typeof B!=="string"){throw new Error("Missing or invalid argument")}A={};A[C]=B;return YAHOO.util.History.multiNavigate(A)},multiNavigate:function(F){var A,E,C,D,B;if(typeof F!=="object"){throw new Error("Missing or invalid argument")}if(!U){throw new Error("The Browser History Manager is not initialized")}for(E in F){if(!L[E]){throw new Error("The following module has not been registered: "+E)}}A=[];for(E in L){if(YAHOO.lang.hasOwnProperty(L,E)){C=L[E];if(YAHOO.lang.hasOwnProperty(F,E)){D=F[unescape(E)]}else{D=unescape(C.currentState)}E=escape(E);D=escape(D);A.push(E+"="+D)}}B=A.join("&");if(YAHOO.env.ua.ie&&(typeof document.documentMode==="undefined"||document.documentMode<8)){return Q(B)}else{top.location.hash=B;if(YAHOO.env.ua.webkit){N[history.length]=B;O()}return true}},getCurrentState:function(A){var B;if(typeof A!=="string"){throw new Error("Missing or invalid argument")}if(!U){throw new Error("The Browser History Manager is not initialized")}B=L[A];if(!B){throw new Error("No such registered module: "+A)}return unescape(B.currentState)},getBookmarkedState:function(D){var E,H,A,B,G,C,F;if(typeof D!=="string"){throw new Error("Missing or invalid argument")}A=top.location.href.indexOf("#");if(A>=0){B=top.location.href.substr(A+1);G=B.split("&");for(E=0,H=G.length;E<H;E++){C=G[E].split("=");if(C.length===2){F=C[0];if(F===D){return unescape(C[1])}}}}return null},getQueryStringParameter:function(D,G){var F,H,A,B,C,E;G=G||top.location.href;A=G.indexOf("?");B=A>=0?G.substr(A+1):G;A=B.lastIndexOf("#");B=A>=0?B.substr(0,A):B;C=B.split("&");for(F=0,H=C.length;F<H;F++){E=C[F].split("=");if(E.length>=2){if(E[0]===D){return unescape(E[1])}}}return null}}})();YAHOO.register("history",YAHOO.util.History,{version:"2.8.1",build:"19"});if(typeof HeaderTabs=="undefined"){var HeaderTabs={}}HeaderTabs.tabView=null;HeaderTabs.tabids=[];HeaderTabs.init=function(B){if(B){var A=YAHOO.util.History.getBookmarkedState("tab")||"--no-tab--";YAHOO.util.History.register("tab",A,function(D){for(var E=0;E<HeaderTabs.tabids.length;E++){if(HeaderTabs.tabids[E]==D){HeaderTabs.tabView.set("activeIndex",E);return }}});try{YAHOO.util.History.initialize("yui-history-field","yui-history-iframe")}catch(C){B=false}}if(B){YAHOO.util.History.onReady(function(){var D=YAHOO.util.History.getCurrentState("tab");for(var E=0;E<HeaderTabs.tabids.length;E++){if(HeaderTabs.tabids[E]==D){HeaderTabs.tabView.set("activeIndex",E);return }}})}YAHOO.util.Event.onContentReady("headertabs",function(){HeaderTabs.tabView=new YAHOO.widget.TabView("headertabs");var D=new YAHOO.util.Element("headertabs").getElementsByClassName("yui-content")[0].childNodes;YAHOO.util.Dom.batch(D,function(E){HeaderTabs.tabids.push(E.id)});HeaderTabs.tabView.set("activeIndex",0);if(B){HeaderTabs.tabView.addListener("activeTabChange",function(E){if(E.prevValue!=E.newValue){YAHOO.util.History.navigate("tab",HeaderTabs.tabids[HeaderTabs.tabView.get("activeIndex")])}})}});YAHOO.util.Event.onContentReady("bodyContent",function(){if(typeof HeaderTabs.tabView=="undefined"){return }var D=new YAHOO.util.Element("bodyContent").getElementsByClassName("smwfact")[0];if(D){HeaderTabs.tabView.addTab(new YAHOO.widget.Tab({label:"Factbox",id:"headertabs_Factbox_tab",contentEl:D}));HeaderTabs.tabids.push("Factbox");document.getElementById("headertabs_Factbox_tab").getElementsByTagName("a")[0].id="headertab_Factbox"}})};HeaderTabs.switchTab=function(A){if(typeof HeaderTabs.tabView=="undefined"){return false}for(var B=0;B<HeaderTabs.tabids.length;B++){if(HeaderTabs.tabids[B]==A){HeaderTabs.tabView.set("activeIndex",B);document.getElementById("headertab_"+A).focus();return false}}return false};
\ No newline at end of file
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-history-min.js
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-min.js
@@ -0,0 +1 @@
 2+if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var F=arguments,G=null,I,J,H;for(I=0;I<F.length;I=I+1){H=(""+F[I]).split(".");G=YAHOO;for(J=(H[0]=="YAHOO")?1:0;J<H.length;J=J+1){G[H[J]]=G[H[J]]||{};G=G[H[J]]}}return G};YAHOO.log=function(F,E,G){var H=YAHOO.widget.Logger;if(H&&H.log){return H.log(F,E,G)}else{return false}};YAHOO.register=function(M,R,J){var N=YAHOO.env.modules,L,O,P,Q,K;if(!N[M]){N[M]={versions:[],builds:[]}}L=N[M];O=J.version;P=J.build;Q=YAHOO.env.listeners;L.name=M;L.version=O;L.build=P;L.versions.push(O);L.builds.push(P);L.mainClass=R;for(K=0;K<Q.length;K=K+1){Q[K](L)}if(R){R.VERSION=O;R.BUILD=P}else{YAHOO.log("mainClass is undefined for module "+M,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(B){return YAHOO.env.modules[B]||null};YAHOO.env.ua=function(){var L=function(B){var A=0;return parseFloat(B.replace(/\./g,function(){return(A++==1)?"":"."}))},I=navigator,J={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:I.cajaVersion,secure:false,os:null},M=navigator&&navigator.userAgent,K=window&&window.location,N=K&&K.href,H;J.secure=N&&(N.toLowerCase().indexOf("https")===0);if(M){if((/windows|win32/i).test(M)){J.os="windows"}else{if((/macintosh/i).test(M)){J.os="macintosh"}}if((/KHTML/).test(M)){J.webkit=1}H=M.match(/AppleWebKit\/([^\s]*)/);if(H&&H[1]){J.webkit=L(H[1]);if(/ Mobile\//.test(M)){J.mobile="Apple"}else{H=M.match(/NokiaN[^\/]*/);if(H){J.mobile=H[0]}}H=M.match(/AdobeAIR\/([^\s]*)/);if(H){J.air=H[0]}}if(!J.webkit){H=M.match(/Opera[\s\/]([^\s]*)/);if(H&&H[1]){J.opera=L(H[1]);H=M.match(/Opera Mini[^;]*/);if(H){J.mobile=H[0]}}else{H=M.match(/MSIE\s([^;]*)/);if(H&&H[1]){J.ie=L(H[1])}else{H=M.match(/Gecko\/([^\s]*)/);if(H){J.gecko=1;H=M.match(/rv:([^\s\)]*)/);if(H&&H[1]){J.gecko=L(H[1])}}}}}}return J}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var H=YAHOO_config.listener,E=YAHOO.env.listeners,F=true,G;if(H){for(G=0;G<E.length;G++){if(E[G]==H){F=false;break}}if(F){E.push(H)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var P=YAHOO.lang,I=Object.prototype,J="[object Array]",O="[object Function]",K="[object Object]",M=[],L=["toString","valueOf"],N={isArray:function(A){return I.toString.apply(A)===J},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return(typeof A==="function")||I.toString.apply(A)===O},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||P.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(B,C){var D,E,A;for(D=0;D<L.length;D=D+1){E=L[D];A=C[E];if(P.isFunction(A)&&A!=I[E]){B[E]=A}}}:function(){},extend:function(A,E,B){if(!E||!A){throw new Error("extend failed, please check that all dependencies are included.")}var C=function(){},D;C.prototype=E.prototype;A.prototype=new C();A.prototype.constructor=A;A.superclass=E.prototype;if(E.prototype.constructor==I.constructor){E.prototype.constructor=E}if(B){for(D in B){if(P.hasOwnProperty(B,D)){A.prototype[D]=B[D]}}P._IEEnumFix(A.prototype,B)}},augmentObject:function(F,A){if(!A||!F){throw new Error("Absorb failed, verify dependencies.")}var D=arguments,B,E,C=D[2];if(C&&C!==true){for(B=2;B<D.length;B=B+1){F[D[B]]=A[D[B]]}}else{for(E in A){if(C||!(E in F)){F[E]=A[E]}}P._IEEnumFix(F,A)}},augmentProto:function(A,B){if(!B||!A){throw new Error("Augment failed, verify dependencies.")}var D=[A.prototype,B.prototype],C;for(C=2;C<arguments.length;C=C+1){D.push(arguments[C])}P.augmentObject.apply(this,D)},dump:function(R,D){var G,E,B=[],A="{...}",H="f(){...}",C=", ",F=" => ";if(!P.isObject(R)){return R+""}else{if(R instanceof Date||("nodeType" in R&&"tagName" in R)){return R}else{if(P.isFunction(R)){return H}}}D=(P.isNumber(D))?D:3;if(P.isArray(R)){B.push("[");for(G=0,E=R.length;G<E;G=G+1){if(P.isObject(R[G])){B.push((D>0)?P.dump(R[G],D-1):A)}else{B.push(R[G])}B.push(C)}if(B.length>1){B.pop()}B.push("]")}else{B.push("{");for(G in R){if(P.hasOwnProperty(R,G)){B.push(G+F);if(P.isObject(R[G])){B.push((D>0)?P.dump(R[G],D-1):A)}else{B.push(R[G])}B.push(C)}}if(B.length>1){B.pop()}B.push("}")}return B.join("")},substitute:function(A,g,H){var c,d,e,E,D,B,F=[],f,b="dump",G=" ",h="{",C="}",Z,a;for(;;){c=A.lastIndexOf(h);if(c<0){break}d=A.indexOf(C,c);if(c+1>=d){break}f=A.substring(c+1,d);E=f;B=null;e=E.indexOf(G);if(e>-1){B=E.substring(e+1);E=E.substring(0,e)}D=g[E];if(H){D=H(E,D,B)}if(P.isObject(D)){if(P.isArray(D)){D=P.dump(D,parseInt(B,10))}else{B=B||"";Z=B.indexOf(b);if(Z>-1){B=B.substring(4)}a=D.toString();if(a===K||Z>-1){D=P.dump(D,parseInt(B,10))}else{D=a}}}else{if(!P.isString(D)&&!P.isNumber(D)){D="~-"+F.length+"-~";F[F.length]=f}}A=A.substring(0,c)+D+A.substring(d+1)}for(c=F.length-1;c>=0;c=c-1){A=A.replace(new RegExp("~-"+c+"-~"),"{"+F[c]+"}","g")}return A},trim:function(B){try{return B.replace(/^\s+|\s+$/g,"")}catch(A){return B}},merge:function(){var A={},C=arguments,D=C.length,B;for(B=0;B<D;B=B+1){P.augmentObject(A,C[B],true)}return A},later:function(B,H,A,F,E){B=B||0;H=H||{};var G=A,C=F,D,R;if(P.isString(A)){G=H[A]}if(!G){throw new TypeError("method undefined")}if(C&&!P.isArray(C)){C=[F]}D=function(){G.apply(H,C||M)};R=(E)?setInterval(D,B):setTimeout(D,B);return{interval:E,cancel:function(){if(this.interval){clearInterval(R)}else{clearTimeout(R)}}}},isValue:function(A){return(P.isObject(A)||P.isString(A)||P.isNumber(A)||P.isBoolean(A))}};P.hasOwnProperty=(I.hasOwnProperty)?function(B,A){return B&&B.hasOwnProperty(A)}:function(B,A){return !P.isUndefined(B[A])&&B.constructor.prototype[A]!==B[A]};N.augmentObject(P,N,true);YAHOO.util.Lang=P;P.augment=P.augmentProto;YAHOO.augment=P.augmentProto;YAHOO.extend=P.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.8.1",build:"19"});YAHOO.util.Get=function(){var Z={},a=0,U=0,h=false,Y=YAHOO.env.ua,T=YAHOO.lang;var c=function(A,D,G){var C=G||window,F=C.document,E=F.createElement(A);for(var B in D){if(D[B]&&YAHOO.lang.hasOwnProperty(D,B)){E.setAttribute(B,D[B])}}return E};var d=function(C,B,D){var A={id:"yui__dyn_"+(U++),type:"text/css",rel:"stylesheet",href:C};if(D){T.augmentObject(A,D)}return c("link",A,B)};var W=function(C,B,D){var A={id:"yui__dyn_"+(U++),type:"text/javascript",src:C};if(D){T.augmentObject(A,D)}return c("script",A,B)};var l=function(B,A){return{tId:B.tId,win:B.win,data:B.data,nodes:B.nodes,msg:A,purge:function(){i(this.tId)}}};var k=function(D,A){var C=Z[A],B=(T.isString(D))?C.win.document.getElementById(D):D;if(!B){V(A,"target node not found: "+D)}return B};var V=function(A,B){var D=Z[A];if(D.onFailure){var C=D.scope||D.win;D.onFailure.call(C,l(D,B))}};var j=function(A){var D=Z[A];D.finished=true;if(D.aborted){var B="transaction "+A+" was aborted";V(A,B);return }if(D.onSuccess){var C=D.scope||D.win;D.onSuccess.call(C,l(D))}};var X=function(A){var C=Z[A];if(C.onTimeout){var B=C.scope||C;C.onTimeout.call(B,l(C))}};var f=function(E,A){var F=Z[E];if(F.timer){F.timer.cancel()}if(F.aborted){var C="transaction "+E+" was aborted";V(E,C);return }if(A){F.url.shift();if(F.varName){F.varName.shift()}}else{F.url=(T.isString(F.url))?[F.url]:F.url;if(F.varName){F.varName=(T.isString(F.varName))?[F.varName]:F.varName}}var I=F.win,J=I.document,K=J.getElementsByTagName("head")[0],D;if(F.url.length===0){if(F.type==="script"&&Y.webkit&&Y.webkit<420&&!F.finalpass&&!F.varName){var B=W(null,F.win,F.attributes);B.innerHTML='YAHOO.util.Get._finalize("'+E+'");';F.nodes.push(B);K.appendChild(B)}else{j(E)}return }var G=F.url[0];if(!G){F.url.shift();return f(E)}if(F.timeout){F.timer=T.later(F.timeout,F,X,E)}if(F.type==="script"){D=W(G,I,F.attributes)}else{D=d(G,I,F.attributes)}g(F.type,D,E,G,I,F.url.length);F.nodes.push(D);if(F.insertBefore){var H=k(F.insertBefore,E);if(H){H.parentNode.insertBefore(D,H)}}else{K.appendChild(D)}if((Y.webkit||Y.gecko)&&F.type==="css"){f(E,G)}};var b=function(){if(h){return }h=true;for(var B in Z){var A=Z[B];if(A.autopurge&&A.finished){i(A.tId);delete Z[B]}}h=false};var i=function(A){if(Z[A]){var G=Z[A],F=G.nodes,C=F.length,H=G.win.document,J=H.getElementsByTagName("head")[0],E,B,D,I;if(G.insertBefore){E=k(G.insertBefore,A);if(E){J=E.parentNode}}for(B=0;B<C;B=B+1){D=F[B];if(D.clearAttributes){D.clearAttributes()}else{for(I in D){delete D[I]}}J.removeChild(D)}G.nodes=[]}};var e=function(C,D,B){var E="q"+(a++);B=B||{};if(a%YAHOO.util.Get.PURGE_THRESH===0){b()}Z[E]=T.merge(B,{tId:E,type:C,url:D,finished:false,aborted:false,nodes:[]});var A=Z[E];A.win=A.win||window;A.scope=A.scope||A.win;A.autopurge=("autopurge" in A)?A.autopurge:(C==="script")?true:false;if(B.charset){A.attributes=A.attributes||{};A.attributes.charset=B.charset}T.later(0,A,f,E);return{tId:E}};var g=function(H,C,D,F,B,A,I){var J=I||f;if(Y.ie){C.onreadystatechange=function(){var K=this.readyState;if("loaded"===K||"complete"===K){C.onreadystatechange=null;J(D,F)}}}else{if(Y.webkit){if(H==="script"){if(Y.webkit>=420){C.addEventListener("load",function(){J(D,F)})}else{var G=Z[D];if(G.varName){var E=YAHOO.util.Get.POLL_FREQ;G.maxattempts=YAHOO.util.Get.TIMEOUT/E;G.attempts=0;G._cache=G.varName[0].split(".");G.timer=T.later(E,G,function(K){var N=this._cache,O=N.length,P=this.win,M;for(M=0;M<O;M=M+1){P=P[N[M]];if(!P){this.attempts++;if(this.attempts++>this.maxattempts){var L="Over retry limit, giving up";G.timer.cancel();V(D,L)}else{}return }}G.timer.cancel();J(D,F)},null,true)}else{T.later(YAHOO.util.Get.POLL_FREQ,null,J,[D,F])}}}}else{C.onload=function(){J(D,F)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(A){T.later(0,null,j,A)},abort:function(B){var A=(T.isString(B))?B:B.tId;var C=Z[A];if(C){C.aborted=true}},script:function(B,A){return e("script",B,A)},css:function(B,A){return e("css",B,A)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.8.1",build:"19"});(function(){var Y=YAHOO,util=Y.util,lang=Y.lang,env=Y.env,PROV="_provides",SUPER="_supersedes",REQ="expanded",AFTER="_after";var YUI={dupsAllowed:{yahoo:true,get:true},info:{root:"2.8.1/build/",base:"http://yui.yahooapis.com/2.8.1/build/",comboBase:"http://yui.yahooapis.com/combo?",skin:{defaultSkin:"sam",base:"assets/skins/",path:"skin.css",after:["reset","fonts","grids","base"],rollup:3},dupsAllowed:["yahoo","get"],moduleInfo:{animation:{type:"js",path:"animation/animation-min.js",requires:["dom","event"]},autocomplete:{type:"js",path:"autocomplete/autocomplete-min.js",requires:["dom","event","datasource"],optional:["connection","animation"],skinnable:true},base:{type:"css",path:"base/base-min.css",after:["reset","fonts","grids"]},button:{type:"js",path:"button/button-min.js",requires:["element"],optional:["menu"],skinnable:true},calendar:{type:"js",path:"calendar/calendar-min.js",requires:["event","dom"],supersedes:["datemeth"],skinnable:true},carousel:{type:"js",path:"carousel/carousel-min.js",requires:["element"],optional:["animation"],skinnable:true},charts:{type:"js",path:"charts/charts-min.js",requires:["element","json","datasource","swf"]},colorpicker:{type:"js",path:"colorpicker/colorpicker-min.js",requires:["slider","element"],optional:["animation"],skinnable:true},connection:{type:"js",path:"connection/connection-min.js",requires:["event"],supersedes:["connectioncore"]},connectioncore:{type:"js",path:"connection/connection_core-min.js",requires:["event"],pkg:"connection"},container:{type:"js",path:"container/container-min.js",requires:["dom","event"],optional:["dragdrop","animation","connection"],supersedes:["containercore"],skinnable:true},containercore:{type:"js",path:"container/container_core-min.js",requires:["dom","event"],pkg:"container"},cookie:{type:"js",path:"cookie/cookie-min.js",requires:["yahoo"]},datasource:{type:"js",path:"datasource/datasource-min.js",requires:["event"],optional:["connection"]},datatable:{type:"js",path:"datatable/datatable-min.js",requires:["element","datasource"],optional:["calendar","dragdrop","paginator"],skinnable:true},datemath:{type:"js",path:"datemath/datemath-min.js",requires:["yahoo"]},dom:{type:"js",path:"dom/dom-min.js",requires:["yahoo"]},dragdrop:{type:"js",path:"dragdrop/dragdrop-min.js",requires:["dom","event"]},editor:{type:"js",path:"editor/editor-min.js",requires:["menu","element","button"],optional:["animation","dragdrop"],supersedes:["simpleeditor"],skinnable:true},element:{type:"js",path:"element/element-min.js",requires:["dom","event"],optional:["event-mouseenter","event-delegate"]},"element-delegate":{type:"js",path:"element-delegate/element-delegate-min.js",requires:["element"]},event:{type:"js",path:"event/event-min.js",requires:["yahoo"]},"event-simulate":{type:"js",path:"event-simulate/event-simulate-min.js",requires:["event"]},"event-delegate":{type:"js",path:"event-delegate/event-delegate-min.js",requires:["event"],optional:["selector"]},"event-mouseenter":{type:"js",path:"event-mouseenter/event-mouseenter-min.js",requires:["dom","event"]},fonts:{type:"css",path:"fonts/fonts-min.css"},get:{type:"js",path:"get/get-min.js",requires:["yahoo"]},grids:{type:"css",path:"grids/grids-min.css",requires:["fonts"],optional:["reset"]},history:{type:"js",path:"history/history-min.js",requires:["event"]},imagecropper:{type:"js",path:"imagecropper/imagecropper-min.js",requires:["dragdrop","element","resize"],skinnable:true},imageloader:{type:"js",path:"imageloader/imageloader-min.js",requires:["event","dom"]},json:{type:"js",path:"json/json-min.js",requires:["yahoo"]},layout:{type:"js",path:"layout/layout-min.js",requires:["element"],optional:["animation","dragdrop","resize","selector"],skinnable:true},logger:{type:"js",path:"logger/logger-min.js",requires:["event","dom"],optional:["dragdrop"],skinnable:true},menu:{type:"js",path:"menu/menu-min.js",requires:["containercore"],skinnable:true},paginator:{type:"js",path:"paginator/paginator-min.js",requires:["element"],skinnable:true},profiler:{type:"js",path:"profiler/profiler-min.js",requires:["yahoo"]},profilerviewer:{type:"js",path:"profilerviewer/profilerviewer-min.js",requires:["profiler","yuiloader","element"],skinnable:true},progressbar:{type:"js",path:"progressbar/progressbar-min.js",requires:["element"],optional:["animation"],skinnable:true},reset:{type:"css",path:"reset/reset-min.css"},"reset-fonts-grids":{type:"css",path:"reset-fonts-grids/reset-fonts-grids.css",supersedes:["reset","fonts","grids","reset-fonts"],rollup:4},"reset-fonts":{type:"css",path:"reset-fonts/reset-fonts.css",supersedes:["reset","fonts"],rollup:2},resize:{type:"js",path:"resize/resize-min.js",requires:["dragdrop","element"],optional:["animation"],skinnable:true},selector:{type:"js",path:"selector/selector-min.js",requires:["yahoo","dom"]},simpleeditor:{type:"js",path:"editor/simpleeditor-min.js",requires:["element"],optional:["containercore","menu","button","animation","dragdrop"],skinnable:true,pkg:"editor"},slider:{type:"js",path:"slider/slider-min.js",requires:["dragdrop"],optional:["animation"],skinnable:true},storage:{type:"js",path:"storage/storage-min.js",requires:["yahoo","event","cookie"],optional:["swfstore"]},stylesheet:{type:"js",path:"stylesheet/stylesheet-min.js",requires:["yahoo"]},swf:{type:"js",path:"swf/swf-min.js",requires:["element"],supersedes:["swfdetect"]},swfdetect:{type:"js",path:"swfdetect/swfdetect-min.js",requires:["yahoo"]},swfstore:{type:"js",path:"swfstore/swfstore-min.js",requires:["element","cookie","swf"]},tabview:{type:"js",path:"tabview/tabview-min.js",requires:["element"],optional:["connection"],skinnable:true},treeview:{type:"js",path:"treeview/treeview-min.js",requires:["event","dom"],optional:["json","animation","calendar"],skinnable:true},uploader:{type:"js",path:"uploader/uploader-min.js",requires:["element"]},utilities:{type:"js",path:"utilities/utilities.js",supersedes:["yahoo","event","dragdrop","animation","dom","connection","element","yahoo-dom-event","get","yuiloader","yuiloader-dom-event"],rollup:8},yahoo:{type:"js",path:"yahoo/yahoo-min.js"},"yahoo-dom-event":{type:"js",path:"yahoo-dom-event/yahoo-dom-event.js",supersedes:["yahoo","event","dom"],rollup:3},yuiloader:{type:"js",path:"yuiloader/yuiloader-min.js",supersedes:["yahoo","get"]},"yuiloader-dom-event":{type:"js",path:"yuiloader-dom-event/yuiloader-dom-event.js",supersedes:["yahoo","dom","event","get","yuiloader","yahoo-dom-event"],rollup:5},yuitest:{type:"js",path:"yuitest/yuitest-min.js",requires:["logger"],optional:["event-simulate"],skinnable:true}}},ObjectUtil:{appendArray:function(o,a){if(a){for(var i=0;i<a.length;i=i+1){o[a[i]]=true}}},keys:function(o,ordered){var a=[],i;for(i in o){if(lang.hasOwnProperty(o,i)){a.push(i)}}return a}},ArrayUtil:{appendArray:function(a1,a2){Array.prototype.push.apply(a1,a2)},indexOf:function(a,val){for(var i=0;i<a.length;i=i+1){if(a[i]===val){return i}}return -1},toObject:function(a){var o={};for(var i=0;i<a.length;i=i+1){o[a[i]]=true}return o},uniq:function(a){return YUI.ObjectUtil.keys(YUI.ArrayUtil.toObject(a))}}};YAHOO.util.YUILoader=function(o){this._internalCallback=null;this._useYahooListener=false;this.onSuccess=null;this.onFailure=Y.log;this.onProgress=null;this.onTimeout=null;this.scope=this;this.data=null;this.insertBefore=null;this.charset=null;this.varName=null;this.base=YUI.info.base;this.comboBase=YUI.info.comboBase;this.combine=false;this.root=YUI.info.root;this.timeout=0;this.ignore=null;this.force=null;this.allowRollup=true;this.filter=null;this.required={};this.moduleInfo=lang.merge(YUI.info.moduleInfo);this.rollups=null;this.loadOptional=false;this.sorted=[];this.loaded={};this.dirty=true;this.inserted={};var self=this;env.listeners.push(function(m){if(self._useYahooListener){self.loadNext(m.name)}});this.skin=lang.merge(YUI.info.skin);this._config(o)};Y.util.YUILoader.prototype={FILTERS:{RAW:{searchExp:"-min\\.js",replaceStr:".js"},DEBUG:{searchExp:"-min\\.js",replaceStr:"-debug.js"}},SKIN_PREFIX:"skin-",_config:function(o){if(o){for(var i in o){if(lang.hasOwnProperty(o,i)){if(i=="require"){this.require(o[i])}else{this[i]=o[i]}}}}var f=this.filter;if(lang.isString(f)){f=f.toUpperCase();if(f==="DEBUG"){this.require("logger")}if(!Y.widget.LogWriter){Y.widget.LogWriter=function(){return Y}}this.filter=this.FILTERS[f]}},addModule:function(o){if(!o||!o.name||!o.type||(!o.path&&!o.fullpath)){return false}o.ext=("ext" in o)?o.ext:true;o.requires=o.requires||[];this.moduleInfo[o.name]=o;this.dirty=true;return true},require:function(what){var a=(typeof what==="string")?arguments:what;this.dirty=true;YUI.ObjectUtil.appendArray(this.required,a)},_addSkin:function(skin,mod){var name=this.formatSkin(skin),info=this.moduleInfo,sinf=this.skin,ext=info[mod]&&info[mod].ext;if(!info[name]){this.addModule({name:name,type:"css",path:sinf.base+skin+"/"+sinf.path,after:sinf.after,rollup:sinf.rollup,ext:ext})}if(mod){name=this.formatSkin(skin,mod);if(!info[name]){var mdef=info[mod],pkg=mdef.pkg||mod;this.addModule({name:name,type:"css",after:sinf.after,path:pkg+"/"+sinf.base+skin+"/"+mod+".css",ext:ext})}}return name},getRequires:function(mod){if(!mod){return[]}if(!this.dirty&&mod.expanded){return mod.expanded}mod.requires=mod.requires||[];var i,d=[],r=mod.requires,o=mod.optional,info=this.moduleInfo,m;for(i=0;i<r.length;i=i+1){d.push(r[i]);m=info[r[i]];YUI.ArrayUtil.appendArray(d,this.getRequires(m))}if(o&&this.loadOptional){for(i=0;i<o.length;i=i+1){d.push(o[i]);YUI.ArrayUtil.appendArray(d,this.getRequires(info[o[i]]))}}mod.expanded=YUI.ArrayUtil.uniq(d);return mod.expanded},getProvides:function(name,notMe){var addMe=!(notMe),ckey=(addMe)?PROV:SUPER,m=this.moduleInfo[name],o={};if(!m){return o}if(m[ckey]){return m[ckey]}var s=m.supersedes,done={},me=this;var add=function(mm){if(!done[mm]){done[mm]=true;lang.augmentObject(o,me.getProvides(mm))}};if(s){for(var i=0;i<s.length;i=i+1){add(s[i])}}m[SUPER]=o;m[PROV]=lang.merge(o);m[PROV][name]=true;return m[ckey]},calculate:function(o){if(o||this.dirty){this._config(o);this._setup();this._explode();if(this.allowRollup){this._rollup()}this._reduce();this._sort();this.dirty=false}},_setup:function(){var info=this.moduleInfo,name,i,j;for(name in info){if(lang.hasOwnProperty(info,name)){var m=info[name];if(m&&m.skinnable){var o=this.skin.overrides,smod;if(o&&o[name]){for(i=0;i<o[name].length;i=i+1){smod=this._addSkin(o[name][i],name)}}else{smod=this._addSkin(this.skin.defaultSkin,name)}m.requires.push(smod)}}}var l=lang.merge(this.inserted);if(!this._sandbox){l=lang.merge(l,env.modules)}if(this.ignore){YUI.ObjectUtil.appendArray(l,this.ignore)}if(this.force){for(i=0;i<this.force.length;i=i+1){if(this.force[i] in l){delete l[this.force[i]]}}}for(j in l){if(lang.hasOwnProperty(l,j)){lang.augmentObject(l,this.getProvides(j))}}this.loaded=l},_explode:function(){var r=this.required,i,mod;for(i in r){if(lang.hasOwnProperty(r,i)){mod=this.moduleInfo[i];if(mod){var req=this.getRequires(mod);if(req){YUI.ObjectUtil.appendArray(r,req)}}}}},_skin:function(){},formatSkin:function(skin,mod){var s=this.SKIN_PREFIX+skin;if(mod){s=s+"-"+mod}return s},parseSkin:function(mod){if(mod.indexOf(this.SKIN_PREFIX)===0){var a=mod.split("-");return{skin:a[1],module:a[2]}}return null},_rollup:function(){var i,j,m,s,rollups={},r=this.required,roll,info=this.moduleInfo;if(this.dirty||!this.rollups){for(i in info){if(lang.hasOwnProperty(info,i)){m=info[i];if(m&&m.rollup){rollups[i]=m}}}this.rollups=rollups}for(;;){var rolled=false;for(i in rollups){if(!r[i]&&!this.loaded[i]){m=info[i];s=m.supersedes;roll=false;if(!m.rollup){continue}var skin=(m.ext)?false:this.parseSkin(i),c=0;if(skin){for(j in r){if(lang.hasOwnProperty(r,j)){if(i!==j&&this.parseSkin(j)){c++;roll=(c>=m.rollup);if(roll){break}}}}}else{for(j=0;j<s.length;j=j+1){if(this.loaded[s[j]]&&(!YUI.dupsAllowed[s[j]])){roll=false;break}else{if(r[s[j]]){c++;roll=(c>=m.rollup);if(roll){break}}}}}if(roll){r[i]=true;rolled=true;this.getRequires(m)}}}if(!rolled){break}}},_reduce:function(){var i,j,s,m,r=this.required;for(i in r){if(i in this.loaded){delete r[i]}else{var skinDef=this.parseSkin(i);if(skinDef){if(!skinDef.module){var skin_pre=this.SKIN_PREFIX+skinDef.skin;for(j in r){if(lang.hasOwnProperty(r,j)){m=this.moduleInfo[j];var ext=m&&m.ext;if(!ext&&j!==i&&j.indexOf(skin_pre)>-1){delete r[j]}}}}}else{m=this.moduleInfo[i];s=m&&m.supersedes;if(s){for(j=0;j<s.length;j=j+1){if(s[j] in r){delete r[s[j]]}}}}}}},_onFailure:function(msg){YAHOO.log("Failure","info","loader");var f=this.onFailure;if(f){f.call(this.scope,{msg:"failure: "+msg,data:this.data,success:false})}},_onTimeout:function(){YAHOO.log("Timeout","info","loader");var f=this.onTimeout;if(f){f.call(this.scope,{msg:"timeout",data:this.data,success:false})}},_sort:function(){var s=[],info=this.moduleInfo,loaded=this.loaded,checkOptional=!this.loadOptional,me=this;var requires=function(aa,bb){var mm=info[aa];if(loaded[bb]||!mm){return false}var ii,rr=mm.expanded,after=mm.after,other=info[bb],optional=mm.optional;if(rr&&YUI.ArrayUtil.indexOf(rr,bb)>-1){return true}if(after&&YUI.ArrayUtil.indexOf(after,bb)>-1){return true}if(checkOptional&&optional&&YUI.ArrayUtil.indexOf(optional,bb)>-1){return true}var ss=info[bb]&&info[bb].supersedes;if(ss){for(ii=0;ii<ss.length;ii=ii+1){if(requires(aa,ss[ii])){return true}}}if(mm.ext&&mm.type=="css"&&!other.ext&&other.type=="css"){return true}return false};for(var i in this.required){if(lang.hasOwnProperty(this.required,i)){s.push(i)}}var p=0;for(;;){var l=s.length,a,b,j,k,moved=false;for(j=p;j<l;j=j+1){a=s[j];for(k=j+1;k<l;k=k+1){if(requires(a,s[k])){b=s.splice(k,1);s.splice(j,0,b[0]);moved=true;break}}if(moved){break}else{p=p+1}}if(!moved){break}}this.sorted=s},toString:function(){var o={type:"YUILoader",base:this.base,filter:this.filter,required:this.required,loaded:this.loaded,inserted:this.inserted};lang.dump(o,1)},_combine:function(){this._combining=[];var self=this,s=this.sorted,len=s.length,js=this.comboBase,css=this.comboBase,target,startLen=js.length,i,m,type=this.loadType;YAHOO.log("type "+type);for(i=0;i<len;i=i+1){m=this.moduleInfo[s[i]];if(m&&!m.ext&&(!type||type===m.type)){target=this.root+m.path;target+="&";if(m.type=="js"){js+=target}else{css+=target}this._combining.push(s[i])}}if(this._combining.length){YAHOO.log("Attempting to combine: "+this._combining,"info","loader");var callback=function(o){var c=this._combining,len=c.length,i,m;for(i=0;i<len;i=i+1){this.inserted[c[i]]=true}this.loadNext(o.data)},loadScript=function(){if(js.length>startLen){YAHOO.util.Get.script(self._filter(js),{data:self._loading,onSuccess:callback,onFailure:self._onFailure,onTimeout:self._onTimeout,insertBefore:self.insertBefore,charset:self.charset,timeout:self.timeout,scope:self})}};if(css.length>startLen){YAHOO.util.Get.css(this._filter(css),{data:this._loading,onSuccess:loadScript,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,scope:self})}else{loadScript()}return }else{this.loadNext(this._loading)}},insert:function(o,type){this.calculate(o);this._loading=true;this.loadType=type;if(this.combine){return this._combine()}if(!type){var self=this;this._internalCallback=function(){self._internalCallback=null;self.insert(null,"js")};this.insert(null,"css");return }this.loadNext()},sandbox:function(o,type){this._config(o);if(!this.onSuccess){throw new Error("You must supply an onSuccess handler for your sandbox")}this._sandbox=true;var self=this;if(!type||type!=="js"){this._internalCallback=function(){self._internalCallback=null;self.sandbox(null,"js")};this.insert(null,"css");return }if(!util.Connect){var ld=new YAHOO.util.YUILoader();ld.insert({base:this.base,filter:this.filter,require:"connection",insertBefore:this.insertBefore,charset:this.charset,onSuccess:function(){this.sandbox(null,"js")},scope:this},"js");return }this._scriptText=[];this._loadCount=0;this._stopCount=this.sorted.length;this._xhr=[];this.calculate();var s=this.sorted,l=s.length,i,m,url;for(i=0;i<l;i=i+1){m=this.moduleInfo[s[i]];if(!m){this._onFailure("undefined module "+m);for(var j=0;j<this._xhr.length;j=j+1){this._xhr[j].abort()}return }if(m.type!=="js"){this._loadCount++;continue}url=m.fullpath;url=(url)?this._filter(url):this._url(m.path);var xhrData={success:function(o){var idx=o.argument[0],name=o.argument[2];this._scriptText[idx]=o.responseText;if(this.onProgress){this.onProgress.call(this.scope,{name:name,scriptText:o.responseText,xhrResponse:o,data:this.data})}this._loadCount++;if(this._loadCount>=this._stopCount){var v=this.varName||"YAHOO";var t="(function() {\n";var b="\nreturn "+v+";\n})();";var ref=eval(t+this._scriptText.join("\n")+b);this._pushEvents(ref);if(ref){this.onSuccess.call(this.scope,{reference:ref,data:this.data})}else{this._onFailure.call(this.varName+" reference failure")}}},failure:function(o){this.onFailure.call(this.scope,{msg:"XHR failure",xhrResponse:o,data:this.data})},scope:this,argument:[i,url,s[i]]};this._xhr.push(util.Connect.asyncRequest("GET",url,xhrData))}},loadNext:function(mname){if(!this._loading){return }if(mname){if(mname!==this._loading){return }this.inserted[mname]=true;if(this.onProgress){this.onProgress.call(this.scope,{name:mname,data:this.data})}}var s=this.sorted,len=s.length,i,m;for(i=0;i<len;i=i+1){if(s[i] in this.inserted){continue}if(s[i]===this._loading){return }m=this.moduleInfo[s[i]];if(!m){this.onFailure.call(this.scope,{msg:"undefined module "+m,data:this.data});return }if(!this.loadType||this.loadType===m.type){this._loading=s[i];var fn=(m.type==="css")?util.Get.css:util.Get.script,url=m.fullpath,self=this,c=function(o){self.loadNext(o.data)};url=(url)?this._filter(url):this._url(m.path);if(env.ua.webkit&&env.ua.webkit<420&&m.type==="js"&&!m.varName){c=null;this._useYahooListener=true}fn(url,{data:s[i],onSuccess:c,onFailure:this._onFailure,onTimeout:this._onTimeout,insertBefore:this.insertBefore,charset:this.charset,timeout:this.timeout,varName:m.varName,scope:self});return }}this._loading=null;if(this._internalCallback){var f=this._internalCallback;this._internalCallback=null;f.call(this)}else{if(this.onSuccess){this._pushEvents();this.onSuccess.call(this.scope,{data:this.data})}}},_pushEvents:function(ref){var r=ref||YAHOO;if(r.util&&r.util.Event){r.util.Event._load()}},_filter:function(str){var f=this.filter;return(f)?str.replace(new RegExp(f.searchExp,"g"),f.replaceStr):str},_url:function(path){return this._filter((this.base||"")+path)}}})();YAHOO.register("yuiloader",YAHOO.util.YUILoader,{version:"2.8.1",build:"19"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var AO=YAHOO.util,AI=YAHOO.lang,Ad=YAHOO.env.ua,AS=YAHOO.lang.trim,Am={},Ai={},AG=/^t(?:able|d|h)$/i,Y=/color$/i,AJ=window.document,x=AJ.documentElement,Al="ownerDocument",Ac="defaultView",AU="documentElement",AW="compatMode",Ao="offsetLeft",AE="offsetTop",AV="offsetParent",G="parentNode",Ae="nodeType",AQ="tagName",AF="scrollLeft",Ah="scrollTop",AD="getBoundingClientRect",AT="getComputedStyle",Ap="currentStyle",AH="CSS1Compat",An="BackCompat",Aj="class",AN="className",AK="",AR=" ",AX="(?:^|\\s)",Af="(?= |$)",z="g",Aa="position",Ak="fixed",y="relative",Ag="left",Ab="top",AY="medium",AZ="borderLeftWidth",AC="borderTopWidth",AP=Ad.opera,AL=Ad.webkit,AM=Ad.gecko,AA=Ad.ie;AO.Dom={CUSTOM_ATTRIBUTES:(!x.hasAttribute)?{"for":"htmlFor","class":AN}:{htmlFor:"for",className:Aj},DOT_ATTRIBUTES:{},get:function(F){var C,A,E,H,D,B;if(F){if(F[Ae]||F.item){return F}if(typeof F==="string"){C=F;F=AJ.getElementById(F);B=(F)?F.attributes:null;if(F&&B&&B.id&&B.id.value===C){return F}else{if(F&&AJ.all){F=null;A=AJ.all[C];for(H=0,D=A.length;H<D;++H){if(A[H].id===C){return A[H]}}}}return F}if(YAHOO.util.Element&&F instanceof YAHOO.util.Element){F=F.get("element")}if("length" in F){E=[];for(H=0,D=F.length;H<D;++H){E[E.length]=AO.Dom.get(F[H])}return E}return F}return null},getComputedStyle:function(A,B){if(window[AT]){return A[Al][Ac][AT](A,null)[B]}else{if(A[Ap]){return AO.Dom.IE_ComputedStyle.get(A,B)}}},getStyle:function(A,B){return AO.Dom.batch(A,AO.Dom._getStyle,B)},_getStyle:function(){if(window[AT]){return function(B,D){D=(D==="float")?D="cssFloat":AO.Dom._toCamel(D);var A=B.style[D],C;if(!A){C=B[Al][Ac][AT](B,null);if(C){A=C[D]}}return A}}else{if(x[Ap]){return function(B,E){var A;switch(E){case"opacity":A=100;try{A=B.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(D){try{A=B.filters("alpha").opacity}catch(C){}}return A/100;case"float":E="styleFloat";default:E=AO.Dom._toCamel(E);A=B[Ap]?B[Ap][E]:null;return(B.style[E]||A)}}}}}(),setStyle:function(B,C,A){AO.Dom.batch(B,AO.Dom._setStyle,{prop:C,val:A})},_setStyle:function(){if(AA){return function(C,B){var A=AO.Dom._toCamel(B.prop),D=B.val;if(C){switch(A){case"opacity":if(AI.isString(C.style.filter)){C.style.filter="alpha(opacity="+D*100+")";if(!C[Ap]||!C[Ap].hasLayout){C.style.zoom=1}}break;case"float":A="styleFloat";default:C.style[A]=D}}else{}}}else{return function(C,B){var A=AO.Dom._toCamel(B.prop),D=B.val;if(C){if(A=="float"){A="cssFloat"}C.style[A]=D}else{}}}}(),getXY:function(A){return AO.Dom.batch(A,AO.Dom._getXY)},_canPosition:function(A){return(AO.Dom._getStyle(A,"display")!=="none"&&AO.Dom._inDoc(A))},_getXY:function(){if(AJ[AU][AD]){return function(K){var J,A,I,C,D,E,F,M,L,H=Math.floor,B=false;if(AO.Dom._canPosition(K)){I=K[AD]();C=K[Al];J=AO.Dom.getDocumentScrollLeft(C);A=AO.Dom.getDocumentScrollTop(C);B=[H(I[Ag]),H(I[Ab])];if(AA&&Ad.ie<8){D=2;E=2;F=C[AW];if(Ad.ie===6){if(F!==An){D=0;E=0}}if((F===An)){M=AB(C[AU],AZ);L=AB(C[AU],AC);if(M!==AY){D=parseInt(M,10)}if(L!==AY){E=parseInt(L,10)}}B[0]-=D;B[1]-=E}if((A||J)){B[0]+=J;B[1]+=A}B[0]=H(B[0]);B[1]=H(B[1])}else{}return B}}else{return function(I){var A,H,F,D,C,E=false,B=I;if(AO.Dom._canPosition(I)){E=[I[Ao],I[AE]];A=AO.Dom.getDocumentScrollLeft(I[Al]);H=AO.Dom.getDocumentScrollTop(I[Al]);C=((AM||Ad.webkit>519)?true:false);while((B=B[AV])){E[0]+=B[Ao];E[1]+=B[AE];if(C){E=AO.Dom._calcBorders(B,E)}}if(AO.Dom._getStyle(I,Aa)!==Ak){B=I;while((B=B[G])&&B[AQ]){F=B[Ah];D=B[AF];if(AM&&(AO.Dom._getStyle(B,"overflow")!=="visible")){E=AO.Dom._calcBorders(B,E)}if(F||D){E[0]-=D;E[1]-=F}}E[0]+=A;E[1]+=H}else{if(AP){E[0]-=A;E[1]-=H}else{if(AL||AM){E[0]+=A;E[1]+=H}}}E[0]=Math.floor(E[0]);E[1]=Math.floor(E[1])}else{}return E}}}(),getX:function(A){var B=function(C){return AO.Dom.getXY(C)[0]};return AO.Dom.batch(A,B,AO.Dom,true)},getY:function(A){var B=function(C){return AO.Dom.getXY(C)[1]};return AO.Dom.batch(A,B,AO.Dom,true)},setXY:function(B,A,C){AO.Dom.batch(B,AO.Dom._setXY,{pos:A,noRetry:C})},_setXY:function(J,F){var E=AO.Dom._getStyle(J,Aa),H=AO.Dom.setStyle,B=F.pos,A=F.noRetry,D=[parseInt(AO.Dom.getComputedStyle(J,Ag),10),parseInt(AO.Dom.getComputedStyle(J,Ab),10)],C,I;if(E=="static"){E=y;H(J,Aa,E)}C=AO.Dom._getXY(J);if(!B||C===false){return false}if(isNaN(D[0])){D[0]=(E==y)?0:J[Ao]}if(isNaN(D[1])){D[1]=(E==y)?0:J[AE]}if(B[0]!==null){H(J,Ag,B[0]-C[0]+D[0]+"px")}if(B[1]!==null){H(J,Ab,B[1]-C[1]+D[1]+"px")}if(!A){I=AO.Dom._getXY(J);if((B[0]!==null&&I[0]!=B[0])||(B[1]!==null&&I[1]!=B[1])){AO.Dom._setXY(J,{pos:B,noRetry:true})}}},setX:function(B,A){AO.Dom.setXY(B,[A,null])},setY:function(A,B){AO.Dom.setXY(A,[null,B])},getRegion:function(A){var B=function(C){var D=false;if(AO.Dom._canPosition(C)){D=AO.Region.getRegion(C)}else{}return D};return AO.Dom.batch(A,B,AO.Dom,true)},getClientWidth:function(){return AO.Dom.getViewportWidth()},getClientHeight:function(){return AO.Dom.getViewportHeight()},getElementsByClassName:function(F,B,E,C,K,D){B=B||"*";E=(E)?AO.Dom.get(E):null||AJ;if(!E){return[]}var A=[],L=E.getElementsByTagName(B),I=AO.Dom.hasClass;for(var J=0,H=L.length;J<H;++J){if(I(L[J],F)){A[A.length]=L[J]}}if(C){AO.Dom.batch(A,C,K,D)}return A},hasClass:function(B,A){return AO.Dom.batch(B,AO.Dom._hasClass,A)},_hasClass:function(A,C){var B=false,D;if(A&&C){D=AO.Dom._getAttribute(A,AN)||AK;if(C.exec){B=C.test(D)}else{B=C&&(AR+D+AR).indexOf(AR+C+AR)>-1}}else{}return B},addClass:function(B,A){return AO.Dom.batch(B,AO.Dom._addClass,A)},_addClass:function(A,C){var B=false,D;if(A&&C){D=AO.Dom._getAttribute(A,AN)||AK;if(!AO.Dom._hasClass(A,C)){AO.Dom.setAttribute(A,AN,AS(D+AR+C));B=true}}else{}return B},removeClass:function(B,A){return AO.Dom.batch(B,AO.Dom._removeClass,A)},_removeClass:function(F,A){var E=false,D,C,B;if(F&&A){D=AO.Dom._getAttribute(F,AN)||AK;AO.Dom.setAttribute(F,AN,D.replace(AO.Dom._getClassRegex(A),AK));C=AO.Dom._getAttribute(F,AN);if(D!==C){AO.Dom.setAttribute(F,AN,AS(C));E=true;if(AO.Dom._getAttribute(F,AN)===""){B=(F.hasAttribute&&F.hasAttribute(Aj))?Aj:AN;F.removeAttribute(B)}}}else{}return E},replaceClass:function(A,C,B){return AO.Dom.batch(A,AO.Dom._replaceClass,{from:C,to:B})},_replaceClass:function(H,A){var F,C,E,B=false,D;if(H&&A){C=A.from;E=A.to;if(!E){B=false}else{if(!C){B=AO.Dom._addClass(H,A.to)}else{if(C!==E){D=AO.Dom._getAttribute(H,AN)||AK;F=(AR+D.replace(AO.Dom._getClassRegex(C),AR+E)).split(AO.Dom._getClassRegex(E));F.splice(1,0,AR+E);AO.Dom.setAttribute(H,AN,AS(F.join(AK)));B=true}}}}else{}return B},generateId:function(B,A){A=A||"yui-gen";var C=function(E){if(E&&E.id){return E.id}var D=A+YAHOO.env._id_counter++;if(E){if(E[Al]&&E[Al].getElementById(D)){return AO.Dom.generateId(E,D+A)}E.id=D}return D};return AO.Dom.batch(B,C,AO.Dom,true)||C.apply(AO.Dom,arguments)},isAncestor:function(C,A){C=AO.Dom.get(C);A=AO.Dom.get(A);var B=false;if((C&&A)&&(C[Ae]&&A[Ae])){if(C.contains&&C!==A){B=C.contains(A)}else{if(C.compareDocumentPosition){B=!!(C.compareDocumentPosition(A)&16)}}}else{}return B},inDocument:function(A,B){return AO.Dom._inDoc(AO.Dom.get(A),B)},_inDoc:function(C,A){var B=false;if(C&&C[AQ]){A=A||C[Al];B=AO.Dom.isAncestor(A[AU],C)}else{}return B},getElementsBy:function(A,B,F,D,J,E,C){B=B||"*";F=(F)?AO.Dom.get(F):null||AJ;if(!F){return[]}var K=[],L=F.getElementsByTagName(B);for(var I=0,H=L.length;I<H;++I){if(A(L[I])){if(C){K=L[I];break}else{K[K.length]=L[I]}}}if(D){AO.Dom.batch(K,D,J,E)}return K},getElementBy:function(A,B,C){return AO.Dom.getElementsBy(A,B,C,null,null,null,true)},batch:function(A,C,F,E){var H=[],D=(E)?F:window;A=(A&&(A[AQ]||A.item))?A:AO.Dom.get(A);if(A&&C){if(A[AQ]||A.length===undefined){return C.call(D,A,F)}for(var B=0;B<A.length;++B){H[H.length]=C.call(D,A[B],F)}}else{return false}return H},getDocumentHeight:function(){var B=(AJ[AW]!=AH||AL)?AJ.body.scrollHeight:x.scrollHeight,A=Math.max(B,AO.Dom.getViewportHeight());return A},getDocumentWidth:function(){var B=(AJ[AW]!=AH||AL)?AJ.body.scrollWidth:x.scrollWidth,A=Math.max(B,AO.Dom.getViewportWidth());return A},getViewportHeight:function(){var A=self.innerHeight,B=AJ[AW];if((B||AA)&&!AP){A=(B==AH)?x.clientHeight:AJ.body.clientHeight}return A},getViewportWidth:function(){var A=self.innerWidth,B=AJ[AW];if(B||AA){A=(B==AH)?x.clientWidth:AJ.body.clientWidth}return A},getAncestorBy:function(A,B){while((A=A[G])){if(AO.Dom._testElement(A,B)){return A}}return null},getAncestorByClassName:function(C,B){C=AO.Dom.get(C);if(!C){return null}var A=function(D){return AO.Dom.hasClass(D,B)};return AO.Dom.getAncestorBy(C,A)},getAncestorByTagName:function(C,B){C=AO.Dom.get(C);if(!C){return null}var A=function(D){return D[AQ]&&D[AQ].toUpperCase()==B.toUpperCase()};return AO.Dom.getAncestorBy(C,A)},getPreviousSiblingBy:function(A,B){while(A){A=A.previousSibling;if(AO.Dom._testElement(A,B)){return A}}return null},getPreviousSibling:function(A){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getPreviousSiblingBy(A)},getNextSiblingBy:function(A,B){while(A){A=A.nextSibling;if(AO.Dom._testElement(A,B)){return A}}return null},getNextSibling:function(A){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getNextSiblingBy(A)},getFirstChildBy:function(B,A){var C=(AO.Dom._testElement(B.firstChild,A))?B.firstChild:null;return C||AO.Dom.getNextSiblingBy(B.firstChild,A)},getFirstChild:function(A,B){A=AO.Dom.get(A);if(!A){return null}return AO.Dom.getFirstChildBy(A)},getLastChildBy:function(B,A){if(!B){return null}var C=(AO.Dom._testElement(B.lastChild,A))?B.lastChild:null;return C||AO.Dom.getPreviousSiblingBy(B.lastChild,A)},getLastChild:function(A){A=AO.Dom.get(A);return AO.Dom.getLastChildBy(A)},getChildrenBy:function(C,D){var A=AO.Dom.getFirstChildBy(C,D),B=A?[A]:[];AO.Dom.getNextSiblingBy(A,function(E){if(!D||D(E)){B[B.length]=E}return false});return B},getChildren:function(A){A=AO.Dom.get(A);if(!A){}return AO.Dom.getChildrenBy(A)},getDocumentScrollLeft:function(A){A=A||AJ;return Math.max(A[AU].scrollLeft,A.body.scrollLeft)},getDocumentScrollTop:function(A){A=A||AJ;return Math.max(A[AU].scrollTop,A.body.scrollTop)},insertBefore:function(B,A){B=AO.Dom.get(B);A=AO.Dom.get(A);if(!B||!A||!A[G]){return null}return A[G].insertBefore(B,A)},insertAfter:function(B,A){B=AO.Dom.get(B);A=AO.Dom.get(A);if(!B||!A||!A[G]){return null}if(A.nextSibling){return A[G].insertBefore(B,A.nextSibling)}else{return A[G].appendChild(B)}},getClientRegion:function(){var A=AO.Dom.getDocumentScrollTop(),C=AO.Dom.getDocumentScrollLeft(),D=AO.Dom.getViewportWidth()+C,B=AO.Dom.getViewportHeight()+A;return new AO.Region(A,D,B,C)},setAttribute:function(C,B,A){AO.Dom.batch(C,AO.Dom._setAttribute,{attr:B,val:A})},_setAttribute:function(A,C){var B=AO.Dom._toCamel(C.attr),D=C.val;if(A&&A.setAttribute){if(AO.Dom.DOT_ATTRIBUTES[B]){A[B]=D}else{B=AO.Dom.CUSTOM_ATTRIBUTES[B]||B;A.setAttribute(B,D)}}else{}},getAttribute:function(B,A){return AO.Dom.batch(B,AO.Dom._getAttribute,A)},_getAttribute:function(C,B){var A;B=AO.Dom.CUSTOM_ATTRIBUTES[B]||B;if(C&&C.getAttribute){A=C.getAttribute(B,2)}else{}return A},_toCamel:function(C){var A=Am;function B(E,D){return D.toUpperCase()}return A[C]||(A[C]=C.indexOf("-")===-1?C:C.replace(/-([a-z])/gi,B))},_getClassRegex:function(B){var A;if(B!==undefined){if(B.exec){A=B}else{A=Ai[B];if(!A){B=B.replace(AO.Dom._patterns.CLASS_RE_TOKENS,"\\$1");A=Ai[B]=new RegExp(AX+B+Af,z)}}}return A},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}\\])/g},_testElement:function(A,B){return A&&A[Ae]==1&&(!B||B(A))},_calcBorders:function(A,D){var C=parseInt(AO.Dom[AT](A,AC),10)||0,B=parseInt(AO.Dom[AT](A,AZ),10)||0;if(AM){if(AG.test(A[AQ])){C=0;B=0}}D[0]+=B;D[1]+=C;return D}};var AB=AO.Dom[AT];if(Ad.opera){AO.Dom[AT]=function(C,B){var A=AB(C,B);if(Y.test(B)){A=AO.Dom.Color.toRGB(A)}return A}}if(Ad.webkit){AO.Dom[AT]=function(C,B){var A=AB(C,B);if(A==="rgba(0, 0, 0, 0)"){A="transparent"}return A}}if(Ad.ie&&Ad.ie>=8&&AJ.documentElement.hasAttribute){AO.Dom.DOT_ATTRIBUTES.type=true}})();YAHOO.util.Region=function(G,F,E,H){this.top=G;this.y=G;this[1]=G;this.right=F;this.bottom=E;this.left=H;this.x=H;this[0]=H;this.width=this.right-this.left;this.height=this.bottom-this.top};YAHOO.util.Region.prototype.contains=function(B){return(B.left>=this.left&&B.right<=this.right&&B.top>=this.top&&B.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(G){var I=Math.max(this.top,G.top),H=Math.min(this.right,G.right),F=Math.min(this.bottom,G.bottom),J=Math.max(this.left,G.left);if(F>=I&&H>=J){return new YAHOO.util.Region(I,H,F,J)}else{return null}};YAHOO.util.Region.prototype.union=function(G){var I=Math.min(this.top,G.top),H=Math.max(this.right,G.right),F=Math.max(this.bottom,G.bottom),J=Math.min(this.left,G.left);return new YAHOO.util.Region(I,H,F,J)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}")};YAHOO.util.Region.getRegion=function(J){var H=YAHOO.util.Dom.getXY(J),K=H[1],I=H[0]+J.offsetWidth,G=H[1]+J.offsetHeight,L=H[0];return new YAHOO.util.Region(K,I,G,L)};YAHOO.util.Point=function(C,D){if(YAHOO.lang.isArray(C)){D=C[1];C=C[0]}YAHOO.util.Point.superclass.constructor.call(this,D,C,D,C)};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var s=YAHOO.util,t="clientTop",o="clientLeft",k="parentNode",j="right",X="hasLayout",l="px",Z="opacity",i="auto",q="borderLeftWidth",n="borderTopWidth",e="borderRightWidth",Y="borderBottomWidth",b="visible",d="transparent",g="height",p="width",m="style",a="currentStyle",c=/^width|height$/,f=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,h={get:function(D,B){var C="",A=D[a][B];if(B===Z){C=s.Dom.getStyle(D,Z)}else{if(!A||(A.indexOf&&A.indexOf(l)>-1)){C=A}else{if(s.Dom.IE_COMPUTED[B]){C=s.Dom.IE_COMPUTED[B](D,B)}else{if(f.test(A)){C=s.Dom.IE.ComputedStyle.getPixel(D,B)}else{C=A}}}}return C},getOffset:function(D,C){var A=D[a][C],H=C.charAt(0).toUpperCase()+C.substr(1),G="offset"+H,F="pixel"+H,B="",E;if(A==i){E=D[G];if(E===undefined){B=0}B=E;if(c.test(C)){D[m][C]=E;if(D[G]>E){B=E-(D[G]-E)}D[m][C]=i}}else{if(!D[m][F]&&!D[m][C]){D[m][C]=A}B=D[m][F]}return B+l},getBorderWidth:function(C,A){var B=null;if(!C[a][X]){C[m].zoom=1}switch(A){case n:B=C[t];break;case Y:B=C.offsetHeight-C.clientHeight-C[t];break;case q:B=C[o];break;case e:B=C.offsetWidth-C.clientWidth-C[o];break}return B+l},getPixel:function(D,E){var B=null,A=D[a][j],C=D[a][E];D[m][j]=C;B=D[m].pixelRight;D[m][j]=A;return B+l},getMargin:function(B,C){var A;if(B[a][C]==i){A=0+l}else{A=s.Dom.IE.ComputedStyle.getPixel(B,C)}return A},getVisibility:function(B,C){var A;while((A=B[a])&&A[C]=="inherit"){B=B[k]}return(A)?A[C]:b},getColor:function(A,B){return s.Dom.Color.toRGB(A[a][B])||d},getBorderColor:function(C,D){var B=C[a],A=B[D]||B.color;return s.Dom.Color.toRGB(s.Dom.Color.toHex(A))}},r={};r.top=r.right=r.bottom=r.left=r[p]=r[g]=h.getOffset;r.color=h.getColor;r[n]=r[e]=r[Y]=r[q]=h.getBorderWidth;r.marginTop=r.marginRight=r.marginBottom=r.marginLeft=h.getMargin;r.visibility=h.getVisibility;r.borderColor=r.borderTopColor=r.borderRightColor=r.borderBottomColor=r.borderLeftColor=h.getBorderColor;s.Dom.IE_COMPUTED=r;s.Dom.IE_ComputedStyle=h})();(function(){var G="toString",E=parseInt,H=RegExp,F=YAHOO.util;F.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(A){if(!F.Dom.Color.re_RGB.test(A)){A=F.Dom.Color.toHex(A)}if(F.Dom.Color.re_hex.exec(A)){A="rgb("+[E(H.$1,16),E(H.$2,16),E(H.$3,16)].join(", ")+")"}return A},toHex:function(A){A=F.Dom.Color.KEYWORDS[A]||A;if(F.Dom.Color.re_RGB.exec(A)){var B=(H.$1.length===1)?"0"+H.$1:Number(H.$1),C=(H.$2.length===1)?"0"+H.$2:Number(H.$2),D=(H.$3.length===1)?"0"+H.$3:Number(H.$3);A=[B[G](16),C[G](16),D[G](16)].join("")}if(A.length<6){A=A.replace(F.Dom.Color.re_hex3,"$1$1")}if(A!=="transparent"&&A.indexOf("#")<0){A="#"+A}return A.toLowerCase()}}}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.8.1",build:"19"});YAHOO.util.CustomEvent=function(J,K,L,G,I){this.type=J;this.scope=K||window;this.silent=L;this.fireOnce=I;this.fired=false;this.firedWith=null;this.signature=G||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var H="_YUICEOnSubscribe";if(J!==H){this.subscribeEvent=new YAHOO.util.CustomEvent(H,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(H,G,F){if(!H){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(H,G,F)}var E=new YAHOO.util.Subscriber(H,G,F);if(this.fireOnce&&this.fired){this.notify(E,this.firedWith)}else{this.subscribers.push(E)}},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){this.lastError=null;var J=[],I=this.subscribers.length;var N=[].slice.call(arguments,0),O=true,L,P=false;if(this.fireOnce){if(this.fired){return true}else{this.firedWith=N}}this.fired=true;if(!I&&this.silent){return true}if(!this.silent){}var M=this.subscribers.slice();for(L=0;L<I;++L){var K=M[L];if(!K){P=true}else{O=this.notify(K,N);if(false===O){if(!this.silent){}break}}}return(O!==false)},notify:function(L,O){var P,J=null,M=L.getScope(this.scope),I=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(O.length>0){J=O[0]}try{P=L.fn.call(M,J,L.obj)}catch(K){this.lastError=K;if(I){throw K}}}else{try{P=L.fn.call(M,this.type,O,L.obj)}catch(N){this.lastError=N;if(I){throw N}}}return P},unsubscribeAll:function(){var C=this.subscribers.length,D;for(D=C-1;D>-1;D--){this._delete(D)}this.subscribers=[];return C},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(D,F,E){this.fn=D;this.obj=YAHOO.lang.isUndefined(F)?null:F;this.overrideContext=E};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var R=false,Q=[],O=[],N=0,T=[],M=0,L={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},K=YAHOO.env.ua.ie,S="focusin",P="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:K,_interval:null,_dri:null,_specialTypes:{focusin:(K?"focusin":"focus"),focusout:(K?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true)}},onAvailable:function(C,G,E,D,F){var B=(YAHOO.lang.isString(C))?[C]:C;for(var A=0;A<B.length;A=A+1){T.push({id:B[A],fn:G,obj:E,overrideContext:D,checkReady:F})}N=this.POLL_RETRYS;this.startInterval()},onContentReady:function(C,B,A,D){this.onAvailable(C,B,A,D,true)},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments)},_addListener:function(b,d,D,J,F,A){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var I=0,G=b.length;I<G;++I){C=this.on(b[I],d,D,J,F)&&C}return C}else{if(YAHOO.lang.isString(b)){var Z=this.getEl(b);if(Z){b=Z}else{this.onAvailable(b,function(){YAHOO.util.Event._addListener(b,d,D,J,F,A)});return true}}}if(!b){return false}if("unload"==d&&J!==this){O[O.length]=[b,d,D,J,F];return true}var c=b;if(F){if(F===true){c=J}else{c=F}}var a=function(U){return D.call(c,YAHOO.util.Event.getEvent(U,b),J)};var B=[b,d,D,a,c,J,F,A];var H=Q.length;Q[H]=B;try{this._simpleAdd(b,d,a,A)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}return true},_getType:function(A){return this._specialTypes[A]||A},addListener:function(F,C,A,E,D){var B=((C==S||C==P)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(F,this._getType(C),A,E,D,B)},addFocusListener:function(A,B,D,C){return this.on(A,S,B,D,C)},removeFocusListener:function(A,B){return this.removeListener(A,S,B)},addBlurListener:function(A,B,D,C){return this.on(A,P,B,D,C)},removeBlurListener:function(A,B){return this.removeListener(A,P,B)},removeListener:function(J,V,D){var I,F,A;V=this._getType(V);if(typeof J=="string"){J=this.getEl(J)}else{if(this._isValidCollection(J)){var C=true;for(I=J.length-1;I>-1;I--){C=(this.removeListener(J[I],V,D)&&C)}return C}}if(!D||!D.call){return this.purgeElement(J,false,V)}if("unload"==V){for(I=O.length-1;I>-1;I--){A=O[I];if(A&&A[0]==J&&A[1]==V&&A[2]==D){O.splice(I,1);return true}}return false}var H=null;var G=arguments[3];if("undefined"===typeof G){G=this._getCacheIndex(Q,J,V,D)}if(G>=0){H=Q[G]}if(!J||!H){return false}var B=H[this.CAPTURE]===true?true:false;try{this._simpleRemove(J,V,H[this.WFN],B)}catch(E){this.lastError=E;return false}delete Q[G][this.WFN];delete Q[G][this.FN];Q.splice(G,1);return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode}}catch(B){}return A},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement}else{if(A.type=="mouseover"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in L)){B=L[B]}return B},_getCacheIndex:function(G,D,C,E){for(var F=0,A=G.length;F<A;F=F+1){var B=G[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+M;++M;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(A){if(!R){R=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(T.length===0){N=0;if(this._interval){this._interval.cancel();this._interval=null}return }if(this.locked){return }if(this.isIE){if(!this.DOMReady){this.startInterval();return }}this.locked=true;var D=!R;if(!D){D=(N>0&&T.length>0)}var E=[];var C=function(J,I){var V=J;if(I.overrideContext){if(I.overrideContext===true){V=I.obj}else{V=I.overrideContext}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=T.length;A<B;A=A+1){F=T[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(R||G.nextSibling||!D){H.push(F);T[A]=null}}else{C(G,F);T[A]=null}}else{E.push(F)}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F)}N--;if(D){for(A=T.length-1;A>-1;A--){F=T[A];if(!F||!F.id){T.splice(A,1)}}this.startInterval()}else{if(this._interval){this._interval.cancel();this._interval=null}}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[Q,O]}else{if(J==="unload"){I=[O]}else{J=this._getType(J);I=[Q]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D})}}}}return(E.length)?E:null},_unload:function(B){var H=YAHOO.util.Event,E,F,G,C,D,A=O.slice(),I;for(E=0,C=O.length;E<C;++E){G=A[E];if(G){I=window;if(G[H.ADJ_SCOPE]){if(G[H.ADJ_SCOPE]===true){I=G[H.UNLOAD_OBJ]}else{I=G[H.ADJ_SCOPE]}}G[H.FN].call(I,H.getEvent(B,G[H.EL]),G[H.UNLOAD_OBJ]);A[E]=null}}G=null;I=null;O=null;if(Q){for(F=Q.length-1;F>-1;F--){G=Q[F];if(G){H.removeListener(G[H.EL],G[H.TYPE],G[H.FN],F)}}G=null}H._simpleRemove(window,"unload",H._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;A.onFocus=A.addFocusListener;A.onBlur=A.addBlurListener;if(A.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;A._ready()}}}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,overrideContext:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(N,I){this.__yui_events=this.__yui_events||{};var K=I||{},L=this.__yui_events,J;if(L[N]){}else{J=new YAHOO.util.CustomEvent(N,K.scope||this,K.silent,YAHOO.util.CustomEvent.FLAT,K.fireOnce);L[N]=J;if(K.onSubscribeCallback){J.subscribeEvent.subscribe(K.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var H=this.__yui_subscribers[N];if(H){for(var M=0;M<H.length;++M){J.subscribe(H[M].fn,H[M].obj,H[M].overrideContext)}}}return L[N]},fireEvent:function(H){this.__yui_events=this.__yui_events||{};var F=this.__yui_events[H];if(!F){return null}var E=[];for(var G=1;G<arguments.length;++G){E.push(arguments[G])}return F.fire.apply(F,E)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};(function(){var D=YAHOO.util.Event,E=YAHOO.lang;YAHOO.util.KeyListener=function(L,A,K,J){if(!L){}else{if(!A){}else{if(!K){}}}if(!J){J=YAHOO.util.KeyListener.KEYDOWN}var C=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(E.isString(L)){L=document.getElementById(L)}if(E.isFunction(K)){C.subscribe(K)}else{C.subscribe(K.fn,K.scope,K.correctScope)}function B(P,Q){if(!A.shift){A.shift=false}if(!A.alt){A.alt=false}if(!A.ctrl){A.ctrl=false}if(P.shiftKey==A.shift&&P.altKey==A.alt&&P.ctrlKey==A.ctrl){var I,R=A.keys,G;if(YAHOO.lang.isArray(R)){for(var H=0;H<R.length;H++){I=R[H];G=D.getCharCode(P);if(I==G){C.fire(G,P);break}}}else{G=D.getCharCode(P);if(R==G){C.fire(G,P)}}}}this.enable=function(){if(!this.enabled){D.on(L,J,B);this.enabledEvent.fire(A)}this.enabled=true};this.disable=function(){if(this.enabled){D.removeListener(L,J,B);this.disabledEvent.fire(A)}this.enabled=false};this.toString=function(){return"KeyListener ["+A.keys+"] "+L.tagName+(L.id?"["+L.id+"]":"")}};var F=YAHOO.util.KeyListener;F.KEYDOWN="keydown";F.KEYUP="keyup";F.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.1",build:"19"});YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:false,_use_default_post_header:true,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:true,_default_xhr_header:"XMLHttpRequest",_has_default_headers:true,_default_headers:{},_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(B){this._msxml_progid.unshift(B)},setDefaultPostHeader:function(B){if(typeof B=="string"){this._default_post_header=B}else{if(typeof B=="boolean"){this._use_default_post_header=B}}},setDefaultXhrHeader:function(B){if(typeof B=="string"){this._default_xhr_header=B}else{this._use_default_xhr_header=B}},setPollingInterval:function(B){if(typeof B=="number"&&isFinite(B)){this._polling_interval=B}},createXhrObject:function(H){var J,G,L;try{G=new XMLHttpRequest();J={conn:G,tId:H,xhr:true}}catch(K){for(L=0;L<this._msxml_progid.length;++L){try{G=new ActiveXObject(this._msxml_progid[L]);J={conn:G,tId:H,xhr:true};break}catch(I){}}}finally{return J}},getConnectionObject:function(E){var G,F=this._transaction_id;try{if(!E){G=this.createXhrObject(F)}else{G={tId:F};if(E==="xdr"){G.conn=this._transport;G.xdr=true}else{if(E==="upload"){G.upload=true}}}if(G){this._transaction_id++}}catch(H){}return G},asyncRequest:function(I,L,J,H){var K,M,N=(J&&J.argument)?J.argument:null;if(this._isFileUpload){M="upload"}else{if(J.xdr){M="xdr"}}K=this.getConnectionObject(M);if(!K){return null}else{if(J&&J.customevents){this.initCustomEvents(K,J)}if(this._isFormSubmit){if(this._isFileUpload){this.uploadFile(K,J,L,H);return K}if(I.toUpperCase()=="GET"){if(this._sFormData.length!==0){L+=((L.indexOf("?")==-1)?"?":"&")+this._sFormData}}else{if(I.toUpperCase()=="POST"){H=H?this._sFormData+"&"+H:this._sFormData}}}if(I.toUpperCase()=="GET"&&(J&&J.cache===false)){L+=((L.indexOf("?")==-1)?"?":"&")+"rnd="+new Date().valueOf().toString()}if(this._use_default_xhr_header){if(!this._default_headers["X-Requested-With"]){this.initHeader("X-Requested-With",this._default_xhr_header,true)}}if((I.toUpperCase()==="POST"&&this._use_default_post_header)&&this._isFormSubmit===false){this.initHeader("Content-Type",this._default_post_header)}if(K.xdr){this.xdr(K,I,L,J,H);return K}K.conn.open(I,L,true);if(this._has_default_headers||this._has_http_headers){this.setHeader(K)}this.handleReadyState(K,J);K.conn.send(H||"");if(this._isFormSubmit===true){this.resetFormState()}this.startEvent.fire(K,N);if(K.startEvent){K.startEvent.fire(K,N)}return K}},initCustomEvents:function(D,E){var F;for(F in E.customevents){if(this._customEvents[F][0]){D[this._customEvents[F][0]]=new YAHOO.util.CustomEvent(this._customEvents[F][1],(E.scope)?E.scope:null);D[this._customEvents[F][0]].subscribe(E.customevents[F])}}},handleReadyState:function(G,F){var H=this,E=(F&&F.argument)?F.argument:null;if(F&&F.timeout){this._timeOut[G.tId]=window.setTimeout(function(){H.abort(G,F,true)},F.timeout)}this._poll[G.tId]=window.setInterval(function(){if(G.conn&&G.conn.readyState===4){window.clearInterval(H._poll[G.tId]);delete H._poll[G.tId];if(F&&F.timeout){window.clearTimeout(H._timeOut[G.tId]);delete H._timeOut[G.tId]}H.completeEvent.fire(G,E);if(G.completeEvent){G.completeEvent.fire(G,E)}H.handleTransactionResponse(G,F)}},this._polling_interval)},handleTransactionResponse:function(M,P,K){var T,N,R=(P&&P.argument)?P.argument:null,L=(M.r&&M.r.statusText==="xdr:success")?true:false,Q=(M.r&&M.r.statusText==="xdr:failure")?true:false,O=K;try{if((M.conn.status!==undefined&&M.conn.status!==0)||L){T=M.conn.status}else{if(Q&&!O){T=0}else{T=13030}}}catch(S){T=13030}if((T>=200&&T<300)||T===1223||L){N=M.xdr?M.r:this.createResponseObject(M,R);if(P&&P.success){if(!P.scope){P.success(N)}else{P.success.apply(P.scope,[N])}}this.successEvent.fire(N);if(M.successEvent){M.successEvent.fire(N)}}else{switch(T){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:N=this.createExceptionObject(M.tId,R,(K?K:false));if(P&&P.failure){if(!P.scope){P.failure(N)}else{P.failure.apply(P.scope,[N])}}break;default:N=(M.xdr)?M.response:this.createResponseObject(M,R);if(P&&P.failure){if(!P.scope){P.failure(N)}else{P.failure.apply(P.scope,[N])}}}this.failureEvent.fire(N);if(M.failureEvent){M.failureEvent.fire(N)}}this.releaseObject(M);N=null},createResponseObject:function(M,P){var J={},N={},R,K,Q,L;try{K=M.conn.getAllResponseHeaders();Q=K.split("\n");for(R=0;R<Q.length;R++){L=Q[R].indexOf(":");if(L!=-1){N[Q[R].substring(0,L)]=YAHOO.lang.trim(Q[R].substring(L+2))}}}catch(O){}J.tId=M.tId;J.status=(M.conn.status==1223)?204:M.conn.status;J.statusText=(M.conn.status==1223)?"No Content":M.conn.statusText;J.getResponseHeader=N;J.getAllResponseHeaders=K;J.responseText=M.conn.responseText;J.responseXML=M.conn.responseXML;if(P){J.argument=P}return J},createExceptionObject:function(J,N,I){var L=0,K="communication failure",O=-1,P="transaction aborted",M={};M.tId=J;if(I){M.status=O;M.statusText=P}else{M.status=L;M.statusText=K}if(N){M.argument=N}return M},initHeader:function(E,F,G){var H=(G)?this._default_headers:this._http_headers;H[E]=F;if(G){this._has_default_headers=true}else{this._has_http_headers=true}},setHeader:function(C){var D;if(this._has_default_headers){for(D in this._default_headers){if(YAHOO.lang.hasOwnProperty(this._default_headers,D)){C.conn.setRequestHeader(D,this._default_headers[D])}}}if(this._has_http_headers){for(D in this._http_headers){if(YAHOO.lang.hasOwnProperty(this._http_headers,D)){C.conn.setRequestHeader(D,this._http_headers[D])}}this._http_headers={};this._has_http_headers=false}},resetDefaultHeaders:function(){this._default_headers={};this._has_default_headers=false},abort:function(K,I,H){var L,N=(I&&I.argument)?I.argument:null;K=K||{};if(K.conn){if(K.xhr){if(this.isCallInProgress(K)){K.conn.abort();window.clearInterval(this._poll[K.tId]);delete this._poll[K.tId];if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{if(K.xdr){K.conn.abort(K.tId);L=true}}}else{if(K.upload){var M="yuiIO"+K.tId;var J=document.getElementById(M);if(J){YAHOO.util.Event.removeListener(J,"load");document.body.removeChild(J);if(H){window.clearTimeout(this._timeOut[K.tId]);delete this._timeOut[K.tId]}L=true}}else{L=false}}if(L===true){this.abortEvent.fire(K,N);if(K.abortEvent){K.abortEvent.fire(K,N)}this.handleTransactionResponse(K,I,true)}return L},isCallInProgress:function(B){B=B||{};if(B.xhr&&B.conn){return B.conn.readyState!==4&&B.conn.readyState!==0}else{if(B.xdr&&B.conn){return B.conn.isCallInProgress(B.tId)}else{if(B.upload===true){return document.getElementById("yuiIO"+B.tId)?true:false}else{return false}}}},releaseObject:function(B){if(B&&B.conn){B.conn=null;B=null}}};(function(){var K=YAHOO.util.Connect,J={};function N(C){var B='<object id="YUIConnectionSwf" type="application/x-shockwave-flash" data="'+C+'" width="0" height="0"><param name="movie" value="'+C+'"><param name="allowScriptAccess" value="always"></object>',A=document.createElement("div");document.body.appendChild(A);A.innerHTML=B}function P(A,D,C,E,B){J[parseInt(A.tId)]={o:A,c:E};if(B){E.method=D;E.data=B}A.conn.send(C,E,A.tId)}function M(A){N(A);K._transport=document.getElementById("YUIConnectionSwf")}function O(){K.xdrReadyEvent.fire()}function I(A,B){if(A){K.startEvent.fire(A,B.argument);if(A.startEvent){A.startEvent.fire(A,B.argument)}}}function L(B){var A=J[B.tId].o,C=J[B.tId].c;if(B.statusText==="xdr:start"){I(A,C);return }B.responseText=decodeURI(B.responseText);A.r=B;if(C.argument){A.r.argument=C.argument}this.handleTransactionResponse(A,C,B.statusText==="xdr:abort"?true:false);delete J[B.tId]}K.xdr=P;K.swf=N;K.transport=M;K.xdrReadyEvent=new YAHOO.util.CustomEvent("xdrReady");K.xdrReady=O;K.handleXdrResponse=L})();(function(){var L=YAHOO.util.Connect,J=YAHOO.util.Event;L._isFormSubmit=false;L._isFileUpload=false;L._formNode=null;L._sFormData=null;L._submitElementValue=null;L.uploadEvent=new YAHOO.util.CustomEvent("upload"),L._hasSubmitListener=function(){if(J){J.addListener(document,"click",function(A){var B=J.getTarget(A),C=B.nodeName.toLowerCase();if((C==="input"||C==="button")&&(B.type&&B.type.toLowerCase()=="submit")){L._submitElementValue=encodeURIComponent(B.name)+"="+encodeURIComponent(B.value)}});return true}return false}();function I(D,Y,d){var E,e,F,X,A,G=false,a=[],B=0,b,Z,c,C,f;this.resetFormState();if(typeof D=="string"){E=(document.getElementById(D)||document.forms[D])}else{if(typeof D=="object"){E=D}else{return }}if(Y){this.createFrame(d?d:null);this._isFormSubmit=true;this._isFileUpload=true;this._formNode=E;return }for(b=0,Z=E.elements.length;b<Z;++b){e=E.elements[b];A=e.disabled;F=e.name;if(!A&&F){F=encodeURIComponent(F)+"=";X=encodeURIComponent(e.value);switch(e.type){case"select-one":if(e.selectedIndex>-1){f=e.options[e.selectedIndex];a[B++]=F+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}break;case"select-multiple":if(e.selectedIndex>-1){for(c=e.selectedIndex,C=e.options.length;c<C;++c){f=e.options[c];if(f.selected){a[B++]=F+encodeURIComponent((f.attributes.value&&f.attributes.value.specified)?f.value:f.text)}}}break;case"radio":case"checkbox":if(e.checked){a[B++]=F+X}break;case"file":case undefined:case"reset":case"button":break;case"submit":if(G===false){if(this._hasSubmitListener&&this._submitElementValue){a[B++]=this._submitElementValue}G=true}break;default:a[B++]=F+X}}}this._isFormSubmit=true;this._sFormData=a.join("&");this.initHeader("Content-Type",this._default_form_header);return this._sFormData}function M(){this._isFormSubmit=false;this._isFileUpload=false;this._formNode=null;this._sFormData=""}function N(C){var B="yuiIO"+this._transaction_id,A;if(YAHOO.env.ua.ie){A=document.createElement('<iframe id="'+B+'" name="'+B+'" />');if(typeof C=="boolean"){A.src="javascript:false"}}else{A=document.createElement("iframe");A.id=B;A.name=B}A.style.position="absolute";A.style.top="-1000px";A.style.left="-1000px";document.body.appendChild(A)}function K(E){var B=[],D=E.split("&"),C,A;for(C=0;C<D.length;C++){A=D[C].indexOf("=");if(A!=-1){B[C]=document.createElement("input");B[C].type="hidden";B[C].name=decodeURIComponent(D[C].substring(0,A));B[C].value=decodeURIComponent(D[C].substring(A+1));this._formNode.appendChild(B[C])}}return B}function H(c,B,b,d){var G="yuiIO"+c.tId,F="multipart/form-data",D=document.getElementById(G),a=(document.documentMode&&document.documentMode===8)?true:false,A=this,E=(B&&B.argument)?B.argument:null,C,X,e,Y,f,Z;f={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};this._formNode.setAttribute("action",b);this._formNode.setAttribute("method","POST");this._formNode.setAttribute("target",G);if(YAHOO.env.ua.ie&&!a){this._formNode.setAttribute("encoding",F)}else{this._formNode.setAttribute("enctype",F)}if(d){C=this.appendPostData(d)}this._formNode.submit();this.startEvent.fire(c,E);if(c.startEvent){c.startEvent.fire(c,E)}if(B&&B.timeout){this._timeOut[c.tId]=window.setTimeout(function(){A.abort(c,B,true)},B.timeout)}if(C&&C.length>0){for(X=0;X<C.length;X++){this._formNode.removeChild(C[X])}}for(e in f){if(YAHOO.lang.hasOwnProperty(f,e)){if(f[e]){this._formNode.setAttribute(e,f[e])}else{this._formNode.removeAttribute(e)}}}this.resetFormState();Z=function(){if(B&&B.timeout){window.clearTimeout(A._timeOut[c.tId]);delete A._timeOut[c.tId]}A.completeEvent.fire(c,E);if(c.completeEvent){c.completeEvent.fire(c,E)}Y={tId:c.tId,argument:B.argument};try{Y.responseText=D.contentWindow.document.body?D.contentWindow.document.body.innerHTML:D.contentWindow.document.documentElement.textContent;Y.responseXML=D.contentWindow.document.XMLDocument?D.contentWindow.document.XMLDocument:D.contentWindow.document}catch(O){}if(B&&B.upload){if(!B.scope){B.upload(Y)}else{B.upload.apply(B.scope,[Y])}}A.uploadEvent.fire(Y);if(c.uploadEvent){c.uploadEvent.fire(Y)}J.removeListener(D,"load",Z);setTimeout(function(){document.body.removeChild(D);A.releaseObject(c)},100)};J.addListener(D,"load",Z)}L.setForm=I;L.resetFormState=M;L.createFrame=N;L.appendPostData=K;L.uploadFile=H})();YAHOO.register("connection",YAHOO.util.Connect,{version:"2.8.1",build:"19"});(function(){var D=YAHOO.util;var C=function(G,H,B,A){if(!G){}this.init(G,H,B,A)};C.NAME="Anim";C.prototype={toString:function(){var B=this.getEl()||{};var A=B.id||B.tagName;return(this.constructor.NAME+": "+A)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(F,A,B){return this.method(this.currentFrame,A,B-A,this.totalFrames)},setAttribute:function(H,A,B){var G=this.getEl();if(this.patterns.noNegatives.test(H)){A=(A>0)?A:0}if(H in G&&!("style" in G&&H in G.style)){G[H]=A}else{D.Dom.setStyle(G,H,A+B)}},getAttribute:function(L){var J=this.getEl();var B=D.Dom.getStyle(J,L);if(B!=="auto"&&!this.patterns.offsetUnit.test(B)){return parseFloat(B)}var K=this.patterns.offsetAttribute.exec(L)||[];var A=!!(K[3]);var I=!!(K[2]);if("style" in J){if(I||(D.Dom.getStyle(J,"position")=="absolute"&&A)){B=J["offset"+K[0].charAt(0).toUpperCase()+K[0].substr(1)]}else{B=0}}else{if(L in J){B=J[L]}}return B},getDefaultUnit:function(A){if(this.patterns.defaultUnit.test(A)){return"px"}return""},setRuntimeAttribute:function(M){var A;var L;var K=this.attributes;this.runtimeAttributes[M]={};var B=function(E){return(typeof E!=="undefined")};if(!B(K[M]["to"])&&!B(K[M]["by"])){return false}A=(B(K[M]["from"]))?K[M]["from"]:this.getAttribute(M);if(B(K[M]["to"])){L=K[M]["to"]}else{if(B(K[M]["by"])){if(A.constructor==Array){L=[];for(var J=0,N=A.length;J<N;++J){L[J]=A[J]+K[M]["by"][J]*1}}else{L=A+K[M]["by"]*1}}}this.runtimeAttributes[M].start=A;this.runtimeAttributes[M].end=L;this.runtimeAttributes[M].unit=(B(K[M].unit))?K[M]["unit"]:this.getDefaultUnit(M);return true},init:function(T,O,P,B){var A=false;var S=null;var Q=0;T=D.Dom.get(T);this.attributes=O||{};this.duration=!YAHOO.lang.isUndefined(P)?P:1;this.method=B||D.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=D.AnimMgr.fps;this.setEl=function(E){T=D.Dom.get(E)};this.getEl=function(){return T};this.isAnimated=function(){return A};this.getStartTime=function(){return S};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(D.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}D.AnimMgr.registerElement(this);return true};this.stop=function(E){if(!this.isAnimated()){return false}if(E){this.currentFrame=this.totalFrames;this._onTween.fire()}D.AnimMgr.stop(this)};var M=function(){this.onStart.fire();this.runtimeAttributes={};for(var E in this.attributes){this.setRuntimeAttribute(E)}A=true;Q=0;S=new Date()};var N=function(){var E={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};E.toString=function(){return("duration: "+E.duration+", currentFrame: "+E.currentFrame)};this.onTween.fire(E);var F=this.runtimeAttributes;for(var G in F){this.setAttribute(G,this.doMethod(G,F[G].start,F[G].end),F[G].unit)}Q+=1};var R=function(){var F=(new Date()-S)/1000;var E={duration:F,frames:Q,fps:Q/F};E.toString=function(){return("duration: "+E.duration+", frames: "+E.frames+", fps: "+E.fps)};A=false;Q=0;this.onComplete.fire(E)};this._onStart=new D.CustomEvent("_start",this,true);this.onStart=new D.CustomEvent("start",this);this.onTween=new D.CustomEvent("tween",this);this._onTween=new D.CustomEvent("_tween",this,true);this.onComplete=new D.CustomEvent("complete",this);this._onComplete=new D.CustomEvent("_complete",this,true);this._onStart.subscribe(M);this._onTween.subscribe(N);this._onComplete.subscribe(R)}};D.Anim=C})();YAHOO.util.AnimMgr=new function(){var I=null;var J=[];var F=0;this.fps=1000;this.delay=1;this.registerElement=function(A){J[J.length]=A;F+=1;A._onStart.fire();this.start()};this.unRegister=function(A,B){B=B||G(A);if(!A.isAnimated()||B===-1){return false}A._onComplete.fire();J.splice(B,1);F-=1;if(F<=0){this.stop()}return true};this.start=function(){if(I===null){I=setInterval(this.run,this.delay)}};this.stop=function(A){if(!A){clearInterval(I);for(var B=0,C=J.length;B<C;++B){this.unRegister(J[0],0)}J=[];I=null;F=0}else{this.unRegister(A)}};this.run=function(){for(var A=0,C=J.length;A<C;++A){var B=J[A];if(!B||!B.isAnimated()){continue}if(B.currentFrame<B.totalFrames||B.totalFrames===null){B.currentFrame+=1;if(B.useSeconds){H(B)}B._onTween.fire()}else{YAHOO.util.AnimMgr.stop(B,A)}}};var G=function(A){for(var B=0,C=J.length;B<C;++B){if(J[B]===A){return B}}return -1};var H=function(E){var B=E.totalFrames;var C=E.currentFrame;var D=(E.currentFrame*E.duration*1000/E.totalFrames);var L=(new Date()-E.getStartTime());var A=0;if(L<E.duration*1000){A=Math.round((L/D-1)*E.currentFrame)}else{A=B-(C+1)}if(A>0&&isFinite(A)){if(E.currentFrame+A>=B){A=B-(C+1)}E.currentFrame+=A}};this._queue=J;this._getIndex=G};YAHOO.util.Bezier=new function(){this.getPosition=function(I,J){var H=I.length;var K=[];for(var L=0;L<H;++L){K[L]=[I[L][0],I[L][1]]}for(var G=1;G<H;++G){for(L=0;L<H-G;++L){K[L][0]=(1-J)*K[L][0]+J*K[parseInt(L+1,10)][0];K[L][1]=(1-J)*K[L][1]+J*K[parseInt(L+1,10)][1]}}return[K[0][0],K[0][1]]}};(function(){var E=function(C,D,B,A){E.superclass.constructor.call(this,C,D,B,A)};E.NAME="ColorAnim";E.DEFAULT_BGCOLOR="#fff";var G=YAHOO.util;YAHOO.extend(E,G.Anim);var F=E.superclass;var H=E.prototype;H.patterns.color=/color$/i;H.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;H.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;H.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;H.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;H.parseColor=function(B){if(B.length==3){return B}var A=this.patterns.hex.exec(B);if(A&&A.length==4){return[parseInt(A[1],16),parseInt(A[2],16),parseInt(A[3],16)]}A=this.patterns.rgb.exec(B);if(A&&A.length==4){return[parseInt(A[1],10),parseInt(A[2],10),parseInt(A[3],10)]}A=this.patterns.hex3.exec(B);if(A&&A.length==4){return[parseInt(A[1]+A[1],16),parseInt(A[2]+A[2],16),parseInt(A[3]+A[3],16)]}return null};H.getAttribute=function(J){var C=this.getEl();if(this.patterns.color.test(J)){var A=YAHOO.util.Dom.getStyle(C,J);var B=this;if(this.patterns.transparent.test(A)){var D=YAHOO.util.Dom.getAncestorBy(C,function(I){return !B.patterns.transparent.test(A)});if(D){A=G.Dom.getStyle(D,J)}else{A=E.DEFAULT_BGCOLOR}}}else{A=F.getAttribute.call(this,J)}return A};H.doMethod=function(K,A,D){var B;if(this.patterns.color.test(K)){B=[];for(var C=0,L=A.length;C<L;++C){B[C]=F.doMethod.call(this,K,A[C],D[C])}B="rgb("+Math.floor(B[0])+","+Math.floor(B[1])+","+Math.floor(B[2])+")"}else{B=F.doMethod.call(this,K,A,D)}return B};H.setRuntimeAttribute=function(K){F.setRuntimeAttribute.call(this,K);if(this.patterns.color.test(K)){var C=this.attributes;var A=this.parseColor(this.runtimeAttributes[K].start);var D=this.parseColor(this.runtimeAttributes[K].end);if(typeof C[K]["to"]==="undefined"&&typeof C[K]["by"]!=="undefined"){D=this.parseColor(C[K].by);for(var B=0,L=A.length;B<L;++B){D[B]=A[B]+D[B]}}this.runtimeAttributes[K].start=A;this.runtimeAttributes[K].end=D}};G.ColorAnim=E})();YAHOO.util.Easing={easeNone:function(H,E,F,G){return F*H/G+E},easeIn:function(H,E,F,G){return F*(H/=G)*H+E},easeOut:function(H,E,F,G){return -F*(H/=G)*(H-2)+E},easeBoth:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H+E}return -F/2*((--H)*(H-2)-1)+E},easeInStrong:function(H,E,F,G){return F*(H/=G)*H*H*H+E},easeOutStrong:function(H,E,F,G){return -F*((H=H/G-1)*H*H*H-1)+E},easeBothStrong:function(H,E,F,G){if((H/=G/2)<1){return F/2*H*H*H*H+E}return -F/2*((H-=2)*H*H*H-2)+E},elasticIn:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return -(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H},elasticOut:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J)==1){return H+I}if(!K){K=J*0.3}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}return N*Math.pow(2,-10*M)*Math.sin((M*J-L)*(2*Math.PI)/K)+I+H},elasticBoth:function(M,H,I,J,N,K){if(M==0){return H}if((M/=J/2)==2){return H+I}if(!K){K=J*(0.3*1.5)}if(!N||N<Math.abs(I)){N=I;var L=K/4}else{var L=K/(2*Math.PI)*Math.asin(I/N)}if(M<1){return -0.5*(N*Math.pow(2,10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K))+H}return N*Math.pow(2,-10*(M-=1))*Math.sin((M*J-L)*(2*Math.PI)/K)*0.5+I+H},backIn:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*(J/=H)*J*((I+1)*J-I)+F},backOut:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}return G*((J=J/H-1)*J*((I+1)*J+I)+1)+F},backBoth:function(J,F,G,H,I){if(typeof I=="undefined"){I=1.70158}if((J/=H/2)<1){return G/2*(J*J*(((I*=(1.525))+1)*J-I))+F}return G/2*((J-=2)*J*(((I*=(1.525))+1)*J+I)+2)+F},bounceIn:function(H,E,F,G){return F-YAHOO.util.Easing.bounceOut(G-H,0,F,G)+E},bounceOut:function(H,E,F,G){if((H/=G)<(1/2.75)){return F*(7.5625*H*H)+E}else{if(H<(2/2.75)){return F*(7.5625*(H-=(1.5/2.75))*H+0.75)+E}else{if(H<(2.5/2.75)){return F*(7.5625*(H-=(2.25/2.75))*H+0.9375)+E}}}return F*(7.5625*(H-=(2.625/2.75))*H+0.984375)+E},bounceBoth:function(H,E,F,G){if(H<G/2){return YAHOO.util.Easing.bounceIn(H*2,0,F,G)*0.5+E}return YAHOO.util.Easing.bounceOut(H*2-G,0,F,G)*0.5+F*0.5+E}};(function(){var G=function(C,D,B,A){if(C){G.superclass.constructor.call(this,C,D,B,A)}};G.NAME="Motion";var I=YAHOO.util;YAHOO.extend(G,I.ColorAnim);var H=G.superclass;var K=G.prototype;K.patterns.points=/^points$/i;K.setAttribute=function(C,A,B){if(this.patterns.points.test(C)){B=B||"px";H.setAttribute.call(this,"left",A[0],B);H.setAttribute.call(this,"top",A[1],B)}else{H.setAttribute.call(this,C,A,B)}};K.getAttribute=function(B){if(this.patterns.points.test(B)){var A=[H.getAttribute.call(this,"left"),H.getAttribute.call(this,"top")]}else{A=H.getAttribute.call(this,B)}return A};K.doMethod=function(E,A,D){var B=null;if(this.patterns.points.test(E)){var C=this.method(this.currentFrame,0,100,this.totalFrames)/100;B=I.Bezier.getPosition(this.runtimeAttributes[E],C)}else{B=H.doMethod.call(this,E,A,D)}return B};K.setRuntimeAttribute=function(A){if(this.patterns.points.test(A)){var S=this.getEl();var Q=this.attributes;var T;var E=Q.points["control"]||[];var R;var D,B;if(E.length>0&&!(E[0] instanceof Array)){E=[E]}else{var F=[];for(D=0,B=E.length;D<B;++D){F[D]=E[D]}E=F}if(I.Dom.getStyle(S,"position")=="static"){I.Dom.setStyle(S,"position","relative")}if(J(Q.points["from"])){I.Dom.setXY(S,Q.points["from"])}else{I.Dom.setXY(S,I.Dom.getXY(S))}T=this.getAttribute("points");if(J(Q.points["to"])){R=L.call(this,Q.points["to"],T);var C=I.Dom.getXY(this.getEl());for(D=0,B=E.length;D<B;++D){E[D]=L.call(this,E[D],T)}}else{if(J(Q.points["by"])){R=[T[0]+Q.points["by"][0],T[1]+Q.points["by"][1]];for(D=0,B=E.length;D<B;++D){E[D]=[T[0]+E[D][0],T[1]+E[D][1]]}}}this.runtimeAttributes[A]=[T];if(E.length>0){this.runtimeAttributes[A]=this.runtimeAttributes[A].concat(E)}this.runtimeAttributes[A][this.runtimeAttributes[A].length]=R}else{H.setRuntimeAttribute.call(this,A)}};var L=function(C,A){var B=I.Dom.getXY(this.getEl());C=[C[0]-B[0]+A[0],C[1]-B[1]+A[1]];return C};var J=function(A){return(typeof A!=="undefined")};I.Motion=G})();(function(){var F=function(C,D,B,A){if(C){F.superclass.constructor.call(this,C,D,B,A)}};F.NAME="Scroll";var H=YAHOO.util;YAHOO.extend(F,H.ColorAnim);var G=F.superclass;var E=F.prototype;E.doMethod=function(D,A,C){var B=null;if(D=="scroll"){B=[this.method(this.currentFrame,A[0],C[0]-A[0],this.totalFrames),this.method(this.currentFrame,A[1],C[1]-A[1],this.totalFrames)]}else{B=G.doMethod.call(this,D,A,C)}return B};E.getAttribute=function(C){var A=null;var B=this.getEl();if(C=="scroll"){A=[B.scrollLeft,B.scrollTop]}else{A=G.getAttribute.call(this,C)}return A};E.setAttribute=function(D,A,B){var C=this.getEl();if(D=="scroll"){C.scrollLeft=A[0];C.scrollTop=A[1]}else{G.setAttribute.call(this,D,A,B)}};H.Scroll=F})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.8.1",build:"19"});if(!YAHOO.util.DragDropMgr){YAHOO.util.DragDropMgr=function(){var C=YAHOO.util.Event,D=YAHOO.util.Dom;return{useShim:false,_shimActive:false,_shimState:false,_debugShim:false,_createShim:function(){var A=document.createElement("div");A.id="yui-ddm-shim";if(document.body.firstChild){document.body.insertBefore(A,document.body.firstChild)}else{document.body.appendChild(A)}A.style.display="none";A.style.backgroundColor="red";A.style.position="absolute";A.style.zIndex="99999";D.setStyle(A,"opacity","0");this._shim=A;C.on(A,"mouseup",this.handleMouseUp,this,true);C.on(A,"mousemove",this.handleMouseMove,this,true);C.on(window,"scroll",this._sizeShim,this,true)},_sizeShim:function(){if(this._shimActive){var A=this._shim;A.style.height=D.getDocumentHeight()+"px";A.style.width=D.getDocumentWidth()+"px";A.style.top="0";A.style.left="0"}},_activateShim:function(){if(this.useShim){if(!this._shim){this._createShim()}this._shimActive=true;var B=this._shim,A="0";if(this._debugShim){A=".5"}D.setStyle(B,"opacity",A);this._sizeShim();B.style.display="block"}},_deactivateShim:function(){this._shim.style.display="none";this._shimActive=false},_shim:null,ids:{},handleIds:{},dragCurrent:null,dragOvers:{},deltaX:0,deltaY:0,preventDefault:true,stopPropagation:true,initialized:false,locked:false,interactionInfo:null,init:function(){this.initialized=true},POINT:0,INTERSECT:1,STRICT_INTERSECT:2,mode:0,_execOnAll:function(H,I){for(var B in this.ids){for(var J in this.ids[B]){var A=this.ids[B][J];if(!this.isTypeOfDD(A)){continue}A[H].apply(A,I)}}},_onLoad:function(){this.init();C.on(document,"mouseup",this.handleMouseUp,this,true);C.on(document,"mousemove",this.handleMouseMove,this,true);C.on(window,"unload",this._onUnload,this,true);C.on(window,"resize",this._onResize,this,true)},_onResize:function(A){this._execOnAll("resetConstraints",[])},lock:function(){this.locked=true},unlock:function(){this.locked=false},isLocked:function(){return this.locked},locationCache:{},useCache:true,clickPixelThresh:3,clickTimeThresh:1000,dragThreshMet:false,clickTimeout:null,startX:0,startY:0,fromTimeout:false,regDragDrop:function(A,B){if(!this.initialized){this.init()}if(!this.ids[B]){this.ids[B]={}}this.ids[B][A.id]=A},removeDDFromGroup:function(A,F){if(!this.ids[F]){this.ids[F]={}}var B=this.ids[F];if(B&&B[A.id]){delete B[A.id]}},_remove:function(A){for(var B in A.groups){if(B){var F=this.ids[B];if(F&&F[A.id]){delete F[A.id]}}}delete this.handleIds[A.id]},regHandle:function(A,B){if(!this.handleIds[A]){this.handleIds[A]={}}this.handleIds[A][B]=B},isDragDrop:function(A){return(this.getDDById(A))?true:false},getRelated:function(A,K){var B=[];for(var I in A.groups){for(var J in this.ids[I]){var L=this.ids[I][J];if(!this.isTypeOfDD(L)){continue}if(!K||L.isTarget){B[B.length]=L}}}return B},isLegalTarget:function(A,B){var I=this.getRelated(A,true);for(var H=0,J=I.length;H<J;++H){if(I[H].id==B.id){return true}}return false},isTypeOfDD:function(A){return(A&&A.__ygDragDrop)},isHandle:function(A,B){return(this.handleIds[A]&&this.handleIds[A][B])},getDDById:function(A){for(var B in this.ids){if(this.ids[B][A]){return this.ids[B][A]}}return null},handleMouseDown:function(A,B){this.currentTarget=YAHOO.util.Event.getTarget(A);this.dragCurrent=B;var F=B.getEl();this.startX=YAHOO.util.Event.getPageX(A);this.startY=YAHOO.util.Event.getPageY(A);this.deltaX=this.startX-F.offsetLeft;this.deltaY=this.startY-F.offsetTop;this.dragThreshMet=false;this.clickTimeout=setTimeout(function(){var E=YAHOO.util.DDM;E.startDrag(E.startX,E.startY);E.fromTimeout=true},this.clickTimeThresh)},startDrag:function(F,A){if(this.dragCurrent&&this.dragCurrent.useShim){this._shimState=this.useShim;this.useShim=true}this._activateShim();clearTimeout(this.clickTimeout);var B=this.dragCurrent;if(B&&B.events.b4StartDrag){B.b4StartDrag(F,A);B.fireEvent("b4StartDragEvent",{x:F,y:A})}if(B&&B.events.startDrag){B.startDrag(F,A);B.fireEvent("startDragEvent",{x:F,y:A})}this.dragThreshMet=true},handleMouseUp:function(A){if(this.dragCurrent){clearTimeout(this.clickTimeout);if(this.dragThreshMet){if(this.fromTimeout){this.fromTimeout=false;this.handleMouseMove(A)}this.fromTimeout=false;this.fireEvents(A,true)}else{}this.stopDrag(A);this.stopEvent(A)}},stopEvent:function(A){if(this.stopPropagation){YAHOO.util.Event.stopPropagation(A)}if(this.preventDefault){YAHOO.util.Event.preventDefault(A)}},stopDrag:function(A,B){var F=this.dragCurrent;if(F&&!B){if(this.dragThreshMet){if(F.events.b4EndDrag){F.b4EndDrag(A);F.fireEvent("b4EndDragEvent",{e:A})}if(F.events.endDrag){F.endDrag(A);F.fireEvent("endDragEvent",{e:A})}}if(F.events.mouseUp){F.onMouseUp(A);F.fireEvent("mouseUpEvent",{e:A})}}if(this._shimActive){this._deactivateShim();if(this.dragCurrent&&this.dragCurrent.useShim){this.useShim=this._shimState;this._shimState=false}}this.dragCurrent=null;this.dragOvers={}},handleMouseMove:function(A){var H=this.dragCurrent;if(H){if(YAHOO.util.Event.isIE&&!A.button){this.stopEvent(A);return this.handleMouseUp(A)}else{if(A.clientX<0||A.clientY<0){}}if(!this.dragThreshMet){var B=Math.abs(this.startX-YAHOO.util.Event.getPageX(A));var G=Math.abs(this.startY-YAHOO.util.Event.getPageY(A));if(B>this.clickPixelThresh||G>this.clickPixelThresh){this.startDrag(this.startX,this.startY)}}if(this.dragThreshMet){if(H&&H.events.b4Drag){H.b4Drag(A);H.fireEvent("b4DragEvent",{e:A})}if(H&&H.events.drag){H.onDrag(A);H.fireEvent("dragEvent",{e:A})}if(H){this.fireEvents(A,false)}}this.stopEvent(A)}},fireEvents:function(f,p){var AB=this.dragCurrent;if(!AB||AB.isLocked()||AB.dragOnly){return }var n=YAHOO.util.Event.getPageX(f),o=YAHOO.util.Event.getPageY(f),l=new YAHOO.util.Point(n,o),q=AB.getTargetCoord(l.x,l.y),v=AB.getDragEl(),w=["out","over","drop","enter"],g=new YAHOO.util.Region(q.y,q.x+v.offsetWidth,q.y+v.offsetHeight,q.x),s=[],x={},k=[],AA={outEvts:[],overEvts:[],dropEvts:[],enterEvts:[]};for(var i in this.dragOvers){var z=this.dragOvers[i];if(!this.isTypeOfDD(z)){continue}if(!this.isOverTarget(l,z,this.mode,g)){AA.outEvts.push(z)}s[i]=true;delete this.dragOvers[i]}for(var j in AB.groups){if("string"!=typeof j){continue}for(i in this.ids[j]){var u=this.ids[j][i];if(!this.isTypeOfDD(u)){continue}if(u.isTarget&&!u.isLocked()&&u!=AB){if(this.isOverTarget(l,u,this.mode,g)){x[j]=true;if(p){AA.dropEvts.push(u)}else{if(!s[u.id]){AA.enterEvts.push(u)}else{AA.overEvts.push(u)}this.dragOvers[u.id]=u}}}}}this.interactionInfo={out:AA.outEvts,enter:AA.enterEvts,over:AA.overEvts,drop:AA.dropEvts,point:l,draggedRegion:g,sourceRegion:this.locationCache[AB.id],validDrop:p};for(var y in x){k.push(y)}if(p&&!AA.dropEvts.length){this.interactionInfo.validDrop=false;if(AB.events.invalidDrop){AB.onInvalidDrop(f);AB.fireEvent("invalidDropEvent",{e:f})}}for(i=0;i<w.length;i++){var B=null;if(AA[w[i]+"Evts"]){B=AA[w[i]+"Evts"]}if(B&&B.length){var t=w[i].charAt(0).toUpperCase()+w[i].substr(1),b="onDrag"+t,r="b4Drag"+t,m="drag"+t+"Event",e="drag"+t;if(this.mode){if(AB.events[r]){AB[r](f,B,k);AB.fireEvent(r+"Event",{event:f,info:B,group:k})}if(AB.events[e]){AB[b](f,B,k);AB.fireEvent(m,{event:f,info:B,group:k})}}else{for(var A=0,h=B.length;A<h;++A){if(AB.events[r]){AB[r](f,B[A].id,k[0]);AB.fireEvent(r+"Event",{event:f,info:B[A].id,group:k[0]})}if(AB.events[e]){AB[b](f,B[A].id,k[0]);AB.fireEvent(m,{event:f,info:B[A].id,group:k[0]})}}}}}},getBestMatch:function(H){var A=null;var I=H.length;if(I==1){A=H[0]}else{for(var B=0;B<I;++B){var J=H[B];if(this.mode==this.INTERSECT&&J.cursorIsOver){A=J;break}else{if(!A||!A.overlap||(J.overlap&&A.overlap.getArea()<J.overlap.getArea())){A=J}}}}return A},refreshCache:function(K){var I=K||this.ids;for(var L in I){if("string"!=typeof L){continue}for(var J in this.ids[L]){var B=this.ids[L][J];if(this.isTypeOfDD(B)){var A=this.getLocation(B);if(A){this.locationCache[B.id]=A}else{delete this.locationCache[B.id]}}}}},verifyEl:function(B){try{if(B){var F=B.offsetParent;if(F){return true}}}catch(A){}return false},getLocation:function(U){if(!this.isTypeOfDD(U)){return null}var W=U.getEl(),R,X,A,P,Q,O,B,S,V;try{R=YAHOO.util.Dom.getXY(W)}catch(T){}if(!R){return null}X=R[0];A=X+W.offsetWidth;P=R[1];Q=P+W.offsetHeight;O=P-U.padding[0];B=A+U.padding[1];S=Q+U.padding[2];V=X-U.padding[3];return new YAHOO.util.Region(O,B,S,V)},isOverTarget:function(L,B,R,Q){var P=this.locationCache[B.id];if(!P||!this.useCache){P=this.getLocation(B);this.locationCache[B.id]=P}if(!P){return false}B.cursorIsOver=P.contains(L);var M=this.dragCurrent;if(!M||(!R&&!M.constrainX&&!M.constrainY)){return B.cursorIsOver}B.overlap=null;if(!Q){var O=M.getTargetCoord(L.x,L.y);var A=M.getDragEl();Q=new YAHOO.util.Region(O.y,O.x+A.offsetWidth,O.y+A.offsetHeight,O.x)}var N=Q.intersect(P);if(N){B.overlap=N;return(R)?true:B.cursorIsOver}else{return false}},_onUnload:function(A,B){this.unregAll()},unregAll:function(){if(this.dragCurrent){this.stopDrag();this.dragCurrent=null}this._execOnAll("unreg",[]);this.ids={}},elementCache:{},getElWrapper:function(A){var B=this.elementCache[A];if(!B||!B.el){B=this.elementCache[A]=new this.ElementWrapper(YAHOO.util.Dom.get(A))}return B},getElement:function(A){return YAHOO.util.Dom.get(A)},getCss:function(A){var B=YAHOO.util.Dom.get(A);return(B)?B.style:null},ElementWrapper:function(A){this.el=A||null;this.id=this.el&&A.id;this.css=this.el&&A.style},getPosX:function(A){return YAHOO.util.Dom.getX(A)},getPosY:function(A){return YAHOO.util.Dom.getY(A)},swapNode:function(B,H){if(B.swapNode){B.swapNode(H)}else{var A=H.parentNode;var G=H.nextSibling;if(G==B){A.insertBefore(B,H)}else{if(H==B.nextSibling){A.insertBefore(H,B)}else{B.parentNode.replaceChild(H,B);A.insertBefore(B,G)}}}},getScroll:function(){var B,H,A=document.documentElement,G=document.body;if(A&&(A.scrollTop||A.scrollLeft)){B=A.scrollTop;H=A.scrollLeft}else{if(G){B=G.scrollTop;H=G.scrollLeft}else{}}return{top:B,left:H}},getStyle:function(A,B){return YAHOO.util.Dom.getStyle(A,B)},getScrollTop:function(){return this.getScroll().top},getScrollLeft:function(){return this.getScroll().left},moveToEl:function(F,A){var B=YAHOO.util.Dom.getXY(A);YAHOO.util.Dom.setXY(F,B)},getClientHeight:function(){return YAHOO.util.Dom.getViewportHeight()},getClientWidth:function(){return YAHOO.util.Dom.getViewportWidth()},numericSort:function(A,B){return(A-B)},_timeoutCount:0,_addListeners:function(){var A=YAHOO.util.DDM;if(YAHOO.util.Event&&document){A._onLoad()}else{if(A._timeoutCount>2000){}else{setTimeout(A._addListeners,10);if(document&&document.body){A._timeoutCount+=1}}}},handleWasClicked:function(F,A){if(this.isHandle(A,F.id)){return true}else{var B=F.parentNode;while(B){if(this.isHandle(A,B.id)){return true}else{B=B.parentNode}}}return false}}}();YAHOO.util.DDM=YAHOO.util.DragDropMgr;YAHOO.util.DDM._addListeners()}(function(){var C=YAHOO.util.Event;var D=YAHOO.util.Dom;YAHOO.util.DragDrop=function(A,F,B){if(A){this.init(A,F,B)}};YAHOO.util.DragDrop.prototype={events:null,on:function(){this.subscribe.apply(this,arguments)},id:null,config:null,dragElId:null,handleElId:null,invalidHandleTypes:null,invalidHandleIds:null,invalidHandleClasses:null,startPageX:0,startPageY:0,groups:null,locked:false,lock:function(){this.locked=true},unlock:function(){this.locked=false},isTarget:true,padding:null,dragOnly:false,useShim:false,_domRef:null,__ygDragDrop:true,constrainX:false,constrainY:false,minX:0,maxX:0,minY:0,maxY:0,deltaX:0,deltaY:0,maintainOffset:false,xTicks:null,yTicks:null,primaryButtonOnly:true,available:false,hasOuterHandles:false,cursorIsOver:false,overlap:null,b4StartDrag:function(B,A){},startDrag:function(B,A){},b4Drag:function(A){},onDrag:function(A){},onDragEnter:function(B,A){},b4DragOver:function(A){},onDragOver:function(B,A){},b4DragOut:function(A){},onDragOut:function(B,A){},b4DragDrop:function(A){},onDragDrop:function(B,A){},onInvalidDrop:function(A){},b4EndDrag:function(A){},endDrag:function(A){},b4MouseDown:function(A){},onMouseDown:function(A){},onMouseUp:function(A){},onAvailable:function(){},getEl:function(){if(!this._domRef){this._domRef=D.get(this.id)}return this._domRef},getDragEl:function(){return D.get(this.dragElId)},init:function(A,H,G){this.initTarget(A,H,G);C.on(this._domRef||this.id,"mousedown",this.handleMouseDown,this,true);for(var B in this.events){this.createEvent(B+"Event")}},initTarget:function(A,F,B){this.config=B||{};this.events={};this.DDM=YAHOO.util.DDM;this.groups={};if(typeof A!=="string"){this._domRef=A;A=D.generateId(A)}this.id=A;this.addToGroup((F)?F:"default");this.handleElId=A;C.onAvailable(A,this.handleOnAvailable,this,true);this.setDragElId(A);this.invalidHandleTypes={A:"A"};this.invalidHandleIds={};this.invalidHandleClasses=[];this.applyConfig()},applyConfig:function(){this.events={mouseDown:true,b4MouseDown:true,mouseUp:true,b4StartDrag:true,startDrag:true,b4EndDrag:true,endDrag:true,drag:true,b4Drag:true,invalidDrop:true,b4DragOut:true,dragOut:true,dragEnter:true,b4DragOver:true,dragOver:true,b4DragDrop:true,dragDrop:true};if(this.config.events){for(var A in this.config.events){if(this.config.events[A]===false){this.events[A]=false}}}this.padding=this.config.padding||[0,0,0,0];this.isTarget=(this.config.isTarget!==false);this.maintainOffset=(this.config.maintainOffset);this.primaryButtonOnly=(this.config.primaryButtonOnly!==false);this.dragOnly=((this.config.dragOnly===true)?true:false);this.useShim=((this.config.useShim===true)?true:false)},handleOnAvailable:function(){this.available=true;this.resetConstraints();this.onAvailable()},setPadding:function(B,H,A,G){if(!H&&0!==H){this.padding=[B,B,B,B]}else{if(!A&&0!==A){this.padding=[B,H,B,H]}else{this.padding=[B,H,A,G]}}},setInitPosition:function(I,J){var B=this.getEl();if(!this.DDM.verifyEl(B)){if(B&&B.style&&(B.style.display=="none")){}else{}return }var K=I||0;var L=J||0;var A=D.getXY(B);this.initPageX=A[0]-K;this.initPageY=A[1]-L;this.lastPageX=A[0];this.lastPageY=A[1];this.setStartPosition(A)},setStartPosition:function(A){var B=A||D.getXY(this.getEl());this.deltaSetXY=null;this.startPageX=B[0];this.startPageY=B[1]},addToGroup:function(A){this.groups[A]=true;this.DDM.regDragDrop(this,A)},removeFromGroup:function(A){if(this.groups[A]){delete this.groups[A]}this.DDM.removeDDFromGroup(this,A)},setDragElId:function(A){this.dragElId=A},setHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.handleElId=A;this.DDM.regHandle(this.id,A)},setOuterHandleElId:function(A){if(typeof A!=="string"){A=D.generateId(A)}C.on(A,"mousedown",this.handleMouseDown,this,true);this.setHandleElId(A);this.hasOuterHandles=true},unreg:function(){C.removeListener(this.id,"mousedown",this.handleMouseDown);this._domRef=null;this.DDM._remove(this)},isLocked:function(){return(this.DDM.isLocked()||this.locked)},handleMouseDown:function(A,B){var O=A.which||A.button;if(this.primaryButtonOnly&&O>1){return }if(this.isLocked()){return }var P=this.b4MouseDown(A),M=true;if(this.events.b4MouseDown){M=this.fireEvent("b4MouseDownEvent",A)}var N=this.onMouseDown(A),K=true;if(this.events.mouseDown){K=this.fireEvent("mouseDownEvent",A)}if((P===false)||(N===false)||(M===false)||(K===false)){return }this.DDM.refreshCache(this.groups);var L=new YAHOO.util.Point(C.getPageX(A),C.getPageY(A));if(!this.hasOuterHandles&&!this.DDM.isOverTarget(L,this)){}else{if(this.clickValidator(A)){this.setStartPosition();this.DDM.handleMouseDown(A,this);this.DDM.stopEvent(A)}else{}}},clickValidator:function(A){var B=YAHOO.util.Event.getTarget(A);return(this.isValidHandleChild(B)&&(this.id==this.handleElId||this.DDM.handleWasClicked(B,this.id)))},getTargetCoord:function(B,G){var H=B-this.deltaX;var A=G-this.deltaY;if(this.constrainX){if(H<this.minX){H=this.minX}if(H>this.maxX){H=this.maxX}}if(this.constrainY){if(A<this.minY){A=this.minY}if(A>this.maxY){A=this.maxY}}H=this.getTick(H,this.xTicks);A=this.getTick(A,this.yTicks);return{x:H,y:A}},addInvalidHandleType:function(B){var A=B.toUpperCase();this.invalidHandleTypes[A]=A},addInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}this.invalidHandleIds[A]=A},addInvalidHandleClass:function(A){this.invalidHandleClasses.push(A)},removeInvalidHandleType:function(B){var A=B.toUpperCase();delete this.invalidHandleTypes[A]},removeInvalidHandleId:function(A){if(typeof A!=="string"){A=D.generateId(A)}delete this.invalidHandleIds[A]},removeInvalidHandleClass:function(B){for(var A=0,F=this.invalidHandleClasses.length;A<F;++A){if(this.invalidHandleClasses[A]==B){delete this.invalidHandleClasses[A]}}},isValidHandleChild:function(I){var J=true;var A;try{A=I.nodeName.toUpperCase()}catch(B){A=I.nodeName}J=J&&!this.invalidHandleTypes[A];J=J&&!this.invalidHandleIds[I.id];for(var K=0,L=this.invalidHandleClasses.length;J&&K<L;++K){J=!D.hasClass(I,this.invalidHandleClasses[K])}return J},setXTicks:function(A,H){this.xTicks=[];this.xTickSize=H;var B={};for(var G=this.initPageX;G>=this.minX;G=G-H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}for(G=this.initPageX;G<=this.maxX;G=G+H){if(!B[G]){this.xTicks[this.xTicks.length]=G;B[G]=true}}this.xTicks.sort(this.DDM.numericSort)},setYTicks:function(A,H){this.yTicks=[];this.yTickSize=H;var B={};for(var G=this.initPageY;G>=this.minY;G=G-H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}for(G=this.initPageY;G<=this.maxY;G=G+H){if(!B[G]){this.yTicks[this.yTicks.length]=G;B[G]=true}}this.yTicks.sort(this.DDM.numericSort)},setXConstraint:function(A,B,F){this.leftConstraint=parseInt(A,10);this.rightConstraint=parseInt(B,10);this.minX=this.initPageX-this.leftConstraint;this.maxX=this.initPageX+this.rightConstraint;if(F){this.setXTicks(this.initPageX,F)}this.constrainX=true},clearConstraints:function(){this.constrainX=false;this.constrainY=false;this.clearTicks()},clearTicks:function(){this.xTicks=null;this.yTicks=null;this.xTickSize=0;this.yTickSize=0},setYConstraint:function(F,A,B){this.topConstraint=parseInt(F,10);this.bottomConstraint=parseInt(A,10);this.minY=this.initPageY-this.topConstraint;this.maxY=this.initPageY+this.bottomConstraint;if(B){this.setYTicks(this.initPageY,B)}this.constrainY=true},resetConstraints:function(){if(this.initPageX||this.initPageX===0){var A=(this.maintainOffset)?this.lastPageX-this.initPageX:0;var B=(this.maintainOffset)?this.lastPageY-this.initPageY:0;this.setInitPosition(A,B)}else{this.setInitPosition()}if(this.constrainX){this.setXConstraint(this.leftConstraint,this.rightConstraint,this.xTickSize)}if(this.constrainY){this.setYConstraint(this.topConstraint,this.bottomConstraint,this.yTickSize)}},getTick:function(A,K){if(!K){return A}else{if(K[0]>=A){return K[0]}else{for(var M=0,N=K.length;M<N;++M){var L=M+1;if(K[L]&&K[L]>=A){var B=A-K[M];var J=K[L]-A;return(J>B)?K[M]:K[L]}}return K[K.length-1]}}},toString:function(){return("DragDrop "+this.id)}};YAHOO.augment(YAHOO.util.DragDrop,YAHOO.util.EventProvider)})();YAHOO.util.DD=function(E,D,F){if(E){this.init(E,D,F)}};YAHOO.extend(YAHOO.util.DD,YAHOO.util.DragDrop,{scroll:true,autoOffset:function(G,H){var E=G-this.startPageX;var F=H-this.startPageY;this.setDelta(E,F)},setDelta:function(D,C){this.deltaX=D;this.deltaY=C},setDragElPos:function(E,F){var D=this.getDragEl();this.alignElWithMouse(D,E,F)},alignElWithMouse:function(O,K,L){var M=this.getTargetCoord(K,L);if(!this.deltaSetXY){var J=[M.x,M.y];YAHOO.util.Dom.setXY(O,J);var N=parseInt(YAHOO.util.Dom.getStyle(O,"left"),10);var P=parseInt(YAHOO.util.Dom.getStyle(O,"top"),10);this.deltaSetXY=[N-M.x,P-M.y]}else{YAHOO.util.Dom.setStyle(O,"left",(M.x+this.deltaSetXY[0])+"px");YAHOO.util.Dom.setStyle(O,"top",(M.y+this.deltaSetXY[1])+"px")}this.cachePosition(M.x,M.y);var I=this;setTimeout(function(){I.autoScroll.call(I,M.x,M.y,O.offsetHeight,O.offsetWidth)},0)},cachePosition:function(F,D){if(F){this.lastPageX=F;this.lastPageY=D}else{var E=YAHOO.util.Dom.getXY(this.getEl());this.lastPageX=E[0];this.lastPageY=E[1]}},autoScroll:function(W,X,b,V){if(this.scroll){var U=this.DDM.getClientHeight();var Q=this.DDM.getClientWidth();var S=this.DDM.getScrollTop();var O=this.DDM.getScrollLeft();var Y=b+X;var T=V+W;var Z=(U+S-X-this.deltaY);var a=(Q+O-W-this.deltaX);var P=40;var R=(document.all)?80:30;if(Y>U&&Z<P){window.scrollTo(O,S+R)}if(X<S&&S>0&&X-S<P){window.scrollTo(O,S-R)}if(T>Q&&a<P){window.scrollTo(O+R,S)}if(W<O&&O>0&&W-O<P){window.scrollTo(O-R,S)}}},applyConfig:function(){YAHOO.util.DD.superclass.applyConfig.call(this);this.scroll=(this.config.scroll!==false)},b4MouseDown:function(B){this.setStartPosition();this.autoOffset(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},b4Drag:function(B){this.setDragElPos(YAHOO.util.Event.getPageX(B),YAHOO.util.Event.getPageY(B))},toString:function(){return("DD "+this.id)}});YAHOO.util.DDProxy=function(E,D,F){if(E){this.init(E,D,F);this.initFrame()}};YAHOO.util.DDProxy.dragElId="ygddfdiv";YAHOO.extend(YAHOO.util.DDProxy,YAHOO.util.DD,{resizeFrame:true,centerFrame:false,createFrame:function(){var L=this,G=document.body;if(!G||!G.firstChild){setTimeout(function(){L.createFrame()},50);return }var H=this.getDragEl(),I=YAHOO.util.Dom;if(!H){H=document.createElement("div");H.id=this.dragElId;var J=H.style;J.position="absolute";J.visibility="hidden";J.cursor="move";J.border="2px solid #aaa";J.zIndex=999;J.height="25px";J.width="25px";var K=document.createElement("div");I.setStyle(K,"height","100%");I.setStyle(K,"width","100%");I.setStyle(K,"background-color","#ccc");I.setStyle(K,"opacity","0");H.appendChild(K);G.insertBefore(H,G.firstChild)}},initFrame:function(){this.createFrame()},applyConfig:function(){YAHOO.util.DDProxy.superclass.applyConfig.call(this);this.resizeFrame=(this.config.resizeFrame!==false);this.centerFrame=(this.config.centerFrame);this.setDragElId(this.config.dragElId||YAHOO.util.DDProxy.dragElId)},showFrame:function(G,H){var I=this.getEl();var F=this.getDragEl();var J=F.style;this._resizeProxy();if(this.centerFrame){this.setDelta(Math.round(parseInt(J.width,10)/2),Math.round(parseInt(J.height,10)/2))}this.setDragElPos(G,H);YAHOO.util.Dom.setStyle(F,"visibility","visible")},_resizeProxy:function(){if(this.resizeFrame){var O=YAHOO.util.Dom;var L=this.getEl();var K=this.getDragEl();var P=parseInt(O.getStyle(K,"borderTopWidth"),10);var N=parseInt(O.getStyle(K,"borderRightWidth"),10);var Q=parseInt(O.getStyle(K,"borderBottomWidth"),10);var J=parseInt(O.getStyle(K,"borderLeftWidth"),10);if(isNaN(P)){P=0}if(isNaN(N)){N=0}if(isNaN(Q)){Q=0}if(isNaN(J)){J=0}var R=Math.max(0,L.offsetWidth-N-J);var M=Math.max(0,L.offsetHeight-P-Q);O.setStyle(K,"width",R+"px");O.setStyle(K,"height",M+"px")}},b4MouseDown:function(F){this.setStartPosition();var D=YAHOO.util.Event.getPageX(F);var E=YAHOO.util.Event.getPageY(F);this.autoOffset(D,E)},b4StartDrag:function(C,D){this.showFrame(C,D)},b4EndDrag:function(B){YAHOO.util.Dom.setStyle(this.getDragEl(),"visibility","hidden")},endDrag:function(F){var G=YAHOO.util.Dom;var H=this.getEl();var E=this.getDragEl();G.setStyle(E,"visibility","");G.setStyle(H,"visibility","hidden");YAHOO.util.DDM.moveToEl(H,E);G.setStyle(E,"visibility","hidden");G.setStyle(H,"visibility","")},toString:function(){return("DDProxy "+this.id)}});YAHOO.util.DDTarget=function(E,D,F){if(E){this.initTarget(E,D,F)}};YAHOO.extend(YAHOO.util.DDTarget,YAHOO.util.DragDrop,{toString:function(){return("DDTarget "+this.id)}});YAHOO.register("dragdrop",YAHOO.util.DragDropMgr,{version:"2.8.1",build:"19"});YAHOO.util.Attribute=function(D,C){if(C){this.owner=C;this.configure(D,true)}};YAHOO.util.Attribute.prototype={name:undefined,value:null,owner:null,readOnly:false,writeOnce:false,_initialConfig:null,_written:false,method:null,setter:null,getter:null,validator:null,getValue:function(){var B=this.value;if(this.getter){B=this.getter.call(this.owner,this.name,B)}return B},setValue:function(H,L){var I,G=this.owner,K=this.name;var J={type:K,prevValue:this.getValue(),newValue:H};if(this.readOnly||(this.writeOnce&&this._written)){return false}if(this.validator&&!this.validator.call(G,H)){return false}if(!L){I=G.fireBeforeChangeEvent(J);if(I===false){return false}}if(this.setter){H=this.setter.call(G,H,this.name);if(H===undefined){}}if(this.method){this.method.call(G,H,this.name)}this.value=H;this._written=true;J.type=K;if(!L){this.owner.fireChangeEvent(J)}return true},configure:function(F,E){F=F||{};if(E){this._written=false}this._initialConfig=this._initialConfig||{};for(var D in F){if(F.hasOwnProperty(D)){this[D]=F[D];if(E){this._initialConfig[D]=F[D]}}}},resetValue:function(){return this.setValue(this._initialConfig.value)},resetConfig:function(){this.configure(this._initialConfig,true)},refresh:function(B){this.setValue(this.value,B)}};(function(){var B=YAHOO.util.Lang;YAHOO.util.AttributeProvider=function(){};YAHOO.util.AttributeProvider.prototype={_configs:null,get:function(A){this._configs=this._configs||{};var D=this._configs[A];if(!D||!this._configs.hasOwnProperty(A)){return null}return D.getValue()},set:function(F,A,H){this._configs=this._configs||{};var G=this._configs[F];if(!G){return false}return G.setValue(A,H)},getAttributeKeys:function(){this._configs=this._configs;var A=[],D;for(D in this._configs){if(B.hasOwnProperty(this._configs,D)&&!B.isUndefined(this._configs[D])){A[A.length]=D}}return A},setAttributes:function(A,F){for(var E in A){if(B.hasOwnProperty(A,E)){this.set(E,A[E],F)}}},resetValue:function(A,D){this._configs=this._configs||{};if(this._configs[A]){this.set(A,this._configs[A]._initialConfig.value,D);return true}return false},refresh:function(G,I){this._configs=this._configs||{};var A=this._configs;G=((B.isString(G))?[G]:G)||this.getAttributeKeys();for(var H=0,J=G.length;H<J;++H){if(A.hasOwnProperty(G[H])){this._configs[G[H]].refresh(I)}}},register:function(D,A){this.setAttributeConfig(D,A)},getAttributeConfig:function(E){this._configs=this._configs||{};var F=this._configs[E]||{};var A={};for(E in F){if(B.hasOwnProperty(F,E)){A[E]=F[E]}}return A},setAttributeConfig:function(F,E,A){this._configs=this._configs||{};E=E||{};if(!this._configs[F]){E.name=F;this._configs[F]=this.createAttribute(E)}else{this._configs[F].configure(E,A)}},configureAttribute:function(F,E,A){this.setAttributeConfig(F,E,A)},resetAttributeConfig:function(A){this._configs=this._configs||{};this._configs[A].resetConfig()},subscribe:function(D,A){this._events=this._events||{};if(!(D in this._events)){this._events[D]=this.createEvent(D)}YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){this.subscribe.apply(this,arguments)},addListener:function(){this.subscribe.apply(this,arguments)},fireBeforeChangeEvent:function(A){var D="before";D+=A.type.charAt(0).toUpperCase()+A.type.substr(1)+"Change";A.type=D;return this.fireEvent(A.type,A)},fireChangeEvent:function(A){A.type+="Change";return this.fireEvent(A.type,A)},createAttribute:function(A){return new YAHOO.util.Attribute(A,this)}};YAHOO.augment(YAHOO.util.AttributeProvider,YAHOO.util.EventProvider)})();(function(){var H=YAHOO.util.Dom,F=YAHOO.util.AttributeProvider,G={mouseenter:true,mouseleave:true};var E=function(B,A){this.init.apply(this,arguments)};E.DOM_EVENTS={click:true,dblclick:true,keydown:true,keypress:true,keyup:true,mousedown:true,mousemove:true,mouseout:true,mouseover:true,mouseup:true,mouseenter:true,mouseleave:true,focus:true,blur:true,submit:true,change:true};E.prototype={DOM_EVENTS:null,DEFAULT_HTML_SETTER:function(A,C){var B=this.get("element");if(B){B[C]=A}return A},DEFAULT_HTML_GETTER:function(C){var B=this.get("element"),A;if(B){A=B[C]}return A},appendChild:function(A){A=A.get?A.get("element"):A;return this.get("element").appendChild(A)},getElementsByTagName:function(A){return this.get("element").getElementsByTagName(A)},hasChildNodes:function(){return this.get("element").hasChildNodes()},insertBefore:function(B,A){B=B.get?B.get("element"):B;A=(A&&A.get)?A.get("element"):A;return this.get("element").insertBefore(B,A)},removeChild:function(A){A=A.get?A.get("element"):A;return this.get("element").removeChild(A)},replaceChild:function(B,A){B=B.get?B.get("element"):B;A=A.get?A.get("element"):A;return this.get("element").replaceChild(B,A)},initAttributes:function(A){},addListener:function(B,C,A,D){D=D||this;var N=YAHOO.util.Event,L=this.get("element")||this.get("id"),M=this;if(G[B]&&!N._createMouseDelegate){return false}if(!this._events[B]){if(L&&this.DOM_EVENTS[B]){N.on(L,B,function(J,I){if(J.srcElement&&!J.target){J.target=J.srcElement}if((J.toElement&&!J.relatedTarget)||(J.fromElement&&!J.relatedTarget)){J.relatedTarget=N.getRelatedTarget(J)}if(!J.currentTarget){J.currentTarget=L}M.fireEvent(B,J,I)},A,D)}this.createEvent(B,{scope:this})}return YAHOO.util.EventProvider.prototype.subscribe.apply(this,arguments)},on:function(){return this.addListener.apply(this,arguments)},subscribe:function(){return this.addListener.apply(this,arguments)},removeListener:function(A,B){return this.unsubscribe.apply(this,arguments)},addClass:function(A){H.addClass(this.get("element"),A)},getElementsByClassName:function(A,B){return H.getElementsByClassName(A,B,this.get("element"))},hasClass:function(A){return H.hasClass(this.get("element"),A)},removeClass:function(A){return H.removeClass(this.get("element"),A)},replaceClass:function(A,B){return H.replaceClass(this.get("element"),A,B)},setStyle:function(A,B){return H.setStyle(this.get("element"),A,B)},getStyle:function(A){return H.getStyle(this.get("element"),A)},fireQueue:function(){var B=this._queue;for(var A=0,C=B.length;A<C;++A){this[B[A][0]].apply(this,B[A][1])}},appendTo:function(B,A){B=(B.get)?B.get("element"):H.get(B);this.fireEvent("beforeAppendTo",{type:"beforeAppendTo",target:B});A=(A&&A.get)?A.get("element"):H.get(A);var C=this.get("element");if(!C){return false}if(!B){return false}if(C.parent!=B){if(A){B.insertBefore(C,A)}else{B.appendChild(C)}}this.fireEvent("appendTo",{type:"appendTo",target:B});return C},get:function(C){var A=this._configs||{},B=A.element;if(B&&!A[C]&&!YAHOO.lang.isUndefined(B.value[C])){this._setHTMLAttrConfig(C)}return F.prototype.get.call(this,C)},setAttributes:function(A,D){var M={},C=this._configOrder;for(var B=0,N=C.length;B<N;++B){if(A[C[B]]!==undefined){M[C[B]]=true;this.set(C[B],A[C[B]],D)}}for(var L in A){if(A.hasOwnProperty(L)&&!M[L]){this.set(L,A[L],D)}}},set:function(C,A,D){var B=this.get("element");if(!B){this._queue[this._queue.length]=["set",arguments];if(this._configs[C]){this._configs[C].value=A}return }if(!this._configs[C]&&!YAHOO.lang.isUndefined(B[C])){this._setHTMLAttrConfig(C)}return F.prototype.set.apply(this,arguments)},setAttributeConfig:function(C,B,A){this._configOrder.push(C);F.prototype.setAttributeConfig.apply(this,arguments)},createEvent:function(A,B){this._events[A]=true;return F.prototype.createEvent.apply(this,arguments)},init:function(A,B){this._initElement(A,B)},destroy:function(){var A=this.get("element");YAHOO.util.Event.purgeElement(A,true);this.unsubscribeAll();if(A&&A.parentNode){A.parentNode.removeChild(A)}this._queue=[];this._events={};this._configs={};this._configOrder=[]},_initElement:function(C,D){this._queue=this._queue||[];this._events=this._events||{};this._configs=this._configs||{};this._configOrder=[];D=D||{};D.element=D.element||C||null;var A=false;var J=E.DOM_EVENTS;this.DOM_EVENTS=this.DOM_EVENTS||{};for(var B in J){if(J.hasOwnProperty(B)){this.DOM_EVENTS[B]=J[B]}}if(typeof D.element==="string"){this._setHTMLAttrConfig("id",{value:D.element})}if(H.get(D.element)){A=true;this._initHTMLElement(D);this._initContent(D)}YAHOO.util.Event.onAvailable(D.element,function(){if(!A){this._initHTMLElement(D)}this.fireEvent("available",{type:"available",target:H.get(D.element)})},this,true);YAHOO.util.Event.onContentReady(D.element,function(){if(!A){this._initContent(D)}this.fireEvent("contentReady",{type:"contentReady",target:H.get(D.element)})},this,true)},_initHTMLElement:function(A){this.setAttributeConfig("element",{value:H.get(A.element),readOnly:true})},_initContent:function(A){this.initAttributes(A);this.setAttributes(A,true);this.fireQueue()},_setHTMLAttrConfig:function(C,A){var B=this.get("element");A=A||{};A.name=C;A.setter=A.setter||this.DEFAULT_HTML_SETTER;A.getter=A.getter||this.DEFAULT_HTML_GETTER;A.value=A.value||B[C];this._configs[C]=new YAHOO.util.Attribute(A,this)}};YAHOO.augment(E,F);YAHOO.util.Element=E})();YAHOO.register("element",YAHOO.util.Element,{version:"2.8.1",build:"19"});YAHOO.register("utilities",YAHOO,{version:"2.8.1",build:"19"});(function(){var M=YAHOO.util,L=M.Dom,Q=M.Event,S=window.document,O="active",K="activeIndex",T="activeTab",N="contentEl",R="element",P=function(A,B){B=B||{};if(arguments.length==1&&!YAHOO.lang.isString(A)&&!A.nodeName){B=A;A=B.element||null}if(!A&&!B.element){A=this._createTabViewElement(B)}P.superclass.constructor.call(this,A,B)};YAHOO.extend(P,M.Element,{CLASSNAME:"yui-navset",TAB_PARENT_CLASSNAME:"yui-nav",CONTENT_PARENT_CLASSNAME:"yui-content",_tabParent:null,_contentParent:null,addTab:function(E,A){var G=this.get("tabs"),D=this.getTab(A),C=this._tabParent,B=this._contentParent,H=E.get(R),F=E.get(N);if(!G){this._queue[this._queue.length]=["addTab",arguments];return false}A=(A===undefined)?G.length:A;G.splice(A,0,E);if(D){C.insertBefore(H,D.get(R))}else{C.appendChild(H)}if(F&&!L.isAncestor(B,F)){B.appendChild(F)}if(!E.get(O)){E.set("contentVisible",false,true)}else{this.set(T,E,true);this.set("activeIndex",A,true)}this._initTabEvents(E)},_initTabEvents:function(A){A.addListener(A.get("activationEvent"),A._onActivate,this,A);A.addListener(A.get("activationEventChange"),A._onActivationEventChange,this,A)},_removeTabEvents:function(A){A.removeListener(A.get("activationEvent"),A._onActivate,this,A);A.removeListener("activationEventChange",A._onActivationEventChange,this,A)},DOMEventHandler:function(D){var C=Q.getTarget(D),A=this._tabParent,B=this.get("tabs"),G,H,I;if(L.isAncestor(A,C)){for(var F=0,E=B.length;F<E;F++){H=B[F].get(R);I=B[F].get(N);if(C==H||L.isAncestor(H,C)){G=B[F];break}}if(G){G.fireEvent(D.type,D)}}},getTab:function(A){return this.get("tabs")[A]},getTabIndex:function(C){var A=null,D=this.get("tabs");for(var E=0,B=D.length;E<B;++E){if(C==D[E]){A=E;break}}return A},removeTab:function(C){var A=this.get("tabs").length,B=this.getTabIndex(C);if(C===this.get(T)){if(A>1){if(B+1===A){this.set(K,B-1)}else{this.set(K,B+1)}}else{this.set(T,null)}}this._removeTabEvents(C);this._tabParent.removeChild(C.get(R));this._contentParent.removeChild(C.get(N));this._configs.tabs.value.splice(B,1);C.fireEvent("remove",{type:"remove",tabview:this})},toString:function(){var A=this.get("id")||this.get("tagName");return"TabView "+A},contentTransition:function(A,B){if(A){A.set("contentVisible",true)}if(B){B.set("contentVisible",false)}},initAttributes:function(B){P.superclass.initAttributes.call(this,B);if(!B.orientation){B.orientation="top"}var C=this.get(R);if(!L.hasClass(C,this.CLASSNAME)){L.addClass(C,this.CLASSNAME)}this.setAttributeConfig("tabs",{value:[],readOnly:true});this._tabParent=this.getElementsByClassName(this.TAB_PARENT_CLASSNAME,"ul")[0]||this._createTabParent();this._contentParent=this.getElementsByClassName(this.CONTENT_PARENT_CLASSNAME,"div")[0]||this._createContentParent();this.setAttributeConfig("orientation",{value:B.orientation,method:function(E){var D=this.get("orientation");this.addClass("yui-navset-"+E);if(D!=E){this.removeClass("yui-navset-"+D)}if(E==="bottom"){this.appendChild(this._tabParent)}}});this.setAttributeConfig(K,{value:B.activeIndex,validator:function(D){var E=true;if(D&&this.getTab(D).get("disabled")){E=false}return E}});this.setAttributeConfig(T,{value:B.activeTab,method:function(D){var E=this.get(T);if(D){D.set(O,true)}if(E&&E!==D){E.set(O,false)}if(E&&D!==E){this.contentTransition(D,E)}else{if(D){D.set("contentVisible",true)}}},validator:function(D){var E=true;if(D&&D.get("disabled")){E=false}return E}});this.on("activeTabChange",this._onActiveTabChange);this.on("activeIndexChange",this._onActiveIndexChange);if(this._tabParent){this._initTabs()}this.DOM_EVENTS.submit=false;this.DOM_EVENTS.focus=false;this.DOM_EVENTS.blur=false;for(var A in this.DOM_EVENTS){if(YAHOO.lang.hasOwnProperty(this.DOM_EVENTS,A)){this.addListener.call(this,A,this.DOMEventHandler)}}},deselectTab:function(A){if(this.getTab(A)===this.get("activeTab")){this.set("activeTab",null)}},selectTab:function(A){this.set("activeTab",this.getTab(A))},_onActiveTabChange:function(C){var B=this.get(K),A=this.getTabIndex(C.newValue);if(B!==A){if(!(this.set(K,A))){this.set(T,C.prevValue)}}},_onActiveIndexChange:function(A){if(A.newValue!==this.getTabIndex(this.get(T))){if(!(this.set(T,this.getTab(A.newValue)))){this.set(K,A.prevValue)}}},_initTabs:function(){var E=L.getChildren(this._tabParent),G=L.getChildren(this._contentParent),H=this.get(K),D,A,C;for(var F=0,B=E.length;F<B;++F){A={};if(G[F]){A.contentEl=G[F]}D=new YAHOO.widget.Tab(E[F],A);this.addTab(D);if(D.hasClass(D.ACTIVE_CLASSNAME)){C=D}}if(H){this.set(T,this.getTab(H))}else{this._configs.activeTab.value=C;this._configs.activeIndex.value=this.getTabIndex(C)}},_createTabViewElement:function(B){var A=S.createElement("div");if(this.CLASSNAME){A.className=this.CLASSNAME}return A},_createTabParent:function(B){var A=S.createElement("ul");if(this.TAB_PARENT_CLASSNAME){A.className=this.TAB_PARENT_CLASSNAME}this.get(R).appendChild(A);return A},_createContentParent:function(B){var A=S.createElement("div");if(this.CONTENT_PARENT_CLASSNAME){A.className=this.CONTENT_PARENT_CLASSNAME}this.get(R).appendChild(A);return A}});YAHOO.widget.TabView=P})();(function(){var R=YAHOO.util,d=R.Dom,a=YAHOO.lang,Z="activeTab",c="label",f="labelEl",V="content",S="contentEl",X="element",W="cacheData",T="dataSrc",e="dataLoaded",U="dataTimeout",Y="loadMethod",g="postData",b="disabled",h=function(A,B){B=B||{};if(arguments.length==1&&!a.isString(A)&&!A.nodeName){B=A;A=B.element}if(!A&&!B.element){A=this._createTabElement(B)}this.loadHandler={success:function(C){this.set(V,C.responseText)},failure:function(C){}};h.superclass.constructor.call(this,A,B);this.DOM_EVENTS={}};YAHOO.extend(h,YAHOO.util.Element,{LABEL_TAGNAME:"em",ACTIVE_CLASSNAME:"selected",HIDDEN_CLASSNAME:"yui-hidden",ACTIVE_TITLE:"active",DISABLED_CLASSNAME:b,LOADING_CLASSNAME:"loading",dataConnection:null,loadHandler:null,_loading:false,toString:function(){var B=this.get(X),A=B.id||B.tagName;return"Tab "+A},initAttributes:function(A){A=A||{};h.superclass.initAttributes.call(this,A);this.setAttributeConfig("activationEvent",{value:A.activationEvent||"click"});this.setAttributeConfig(f,{value:A[f]||this._getLabelEl(),method:function(C){C=d.get(C);var B=this.get(f);if(B){if(B==C){return false}B.parentNode.replaceChild(C,B);this.set(c,C.innerHTML)}}});this.setAttributeConfig(c,{value:A.label||this._getLabel(),method:function(B){var C=this.get(f);if(!C){this.set(f,this._createLabelEl())}C.innerHTML=B}});this.setAttributeConfig(S,{value:A[S]||document.createElement("div"),method:function(C){C=d.get(C);var B=this.get(S);if(B){if(B===C){return false}if(!this.get("selected")){d.addClass(C,this.HIDDEN_CLASSNAME)}B.parentNode.replaceChild(C,B);this.set(V,C.innerHTML)}}});this.setAttributeConfig(V,{value:A[V],method:function(B){this.get(S).innerHTML=B}});this.setAttributeConfig(T,{value:A.dataSrc});this.setAttributeConfig(W,{value:A.cacheData||false,validator:a.isBoolean});this.setAttributeConfig(Y,{value:A.loadMethod||"GET",validator:a.isString});this.setAttributeConfig(e,{value:false,validator:a.isBoolean,writeOnce:true});this.setAttributeConfig(U,{value:A.dataTimeout||null,validator:a.isNumber});this.setAttributeConfig(g,{value:A.postData||null});this.setAttributeConfig("active",{value:A.active||this.hasClass(this.ACTIVE_CLASSNAME),method:function(B){if(B===true){this.addClass(this.ACTIVE_CLASSNAME);this.set("title",this.ACTIVE_TITLE)}else{this.removeClass(this.ACTIVE_CLASSNAME);this.set("title","")}},validator:function(B){return a.isBoolean(B)&&!this.get(b)}});this.setAttributeConfig(b,{value:A.disabled||this.hasClass(this.DISABLED_CLASSNAME),method:function(B){if(B===true){d.addClass(this.get(X),this.DISABLED_CLASSNAME)}else{d.removeClass(this.get(X),this.DISABLED_CLASSNAME)}},validator:a.isBoolean});this.setAttributeConfig("href",{value:A.href||this.getElementsByTagName("a")[0].getAttribute("href",2)||"#",method:function(B){this.getElementsByTagName("a")[0].href=B},validator:a.isString});this.setAttributeConfig("contentVisible",{value:A.contentVisible,method:function(B){if(B){d.removeClass(this.get(S),this.HIDDEN_CLASSNAME);if(this.get(T)){if(!this._loading&&!(this.get(e)&&this.get(W))){this._dataConnect()}}}else{d.addClass(this.get(S),this.HIDDEN_CLASSNAME)}},validator:a.isBoolean})},_dataConnect:function(){if(!R.Connect){return false}d.addClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=true;this.dataConnection=R.Connect.asyncRequest(this.get(Y),this.get(T),{success:function(A){this.loadHandler.success.call(this,A);this.set(e,true);this.dataConnection=null;d.removeClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=false},failure:function(A){this.loadHandler.failure.call(this,A);this.dataConnection=null;d.removeClass(this.get(S).parentNode,this.LOADING_CLASSNAME);this._loading=false},scope:this,timeout:this.get(U)},this.get(g))},_createTabElement:function(E){var A=document.createElement("li"),D=document.createElement("a"),B=E.label||null,C=E.labelEl||null;D.href=E.href||"#";A.appendChild(D);if(C){if(!B){B=this._getLabel()}}else{C=this._createLabelEl()}D.appendChild(C);return A},_getLabelEl:function(){return this.getElementsByTagName(this.LABEL_TAGNAME)[0]},_createLabelEl:function(){var A=document.createElement(this.LABEL_TAGNAME);return A},_getLabel:function(){var A=this.get(f);if(!A){return undefined}return A.innerHTML},_onActivate:function(A,B){var C=this,D=false;R.Event.preventDefault(A);if(C===B.get(Z)){D=true}B.set(Z,C,D)},_onActivationEventChange:function(A){var B=this;if(A.prevValue!=A.newValue){B.removeListener(A.prevValue,B._onActivate);B.addListener(A.newValue,B._onActivate,this,B)}}});YAHOO.widget.Tab=h})();YAHOO.register("tabview",YAHOO.widget.TabView,{version:"2.8.1",build:"19"});YAHOO.util.CustomEvent=function(J,K,L,G,I){this.type=J;this.scope=K||window;this.silent=L;this.fireOnce=I;this.fired=false;this.firedWith=null;this.signature=G||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var H="_YUICEOnSubscribe";if(J!==H){this.subscribeEvent=new YAHOO.util.CustomEvent(H,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(H,G,F){if(!H){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(H,G,F)}var E=new YAHOO.util.Subscriber(H,G,F);if(this.fireOnce&&this.fired){this.notify(E,this.firedWith)}else{this.subscribers.push(E)}},unsubscribe:function(J,H){if(!J){return this.unsubscribeAll()}var I=false;for(var L=0,G=this.subscribers.length;L<G;++L){var K=this.subscribers[L];if(K&&K.contains(J,H)){this._delete(L);I=true}}return I},fire:function(){this.lastError=null;var J=[],I=this.subscribers.length;var N=[].slice.call(arguments,0),O=true,L,P=false;if(this.fireOnce){if(this.fired){return true}else{this.firedWith=N}}this.fired=true;if(!I&&this.silent){return true}if(!this.silent){}var M=this.subscribers.slice();for(L=0;L<I;++L){var K=M[L];if(!K){P=true}else{O=this.notify(K,N);if(false===O){if(!this.silent){}break}}}return(O!==false)},notify:function(L,O){var P,J=null,M=L.getScope(this.scope),I=YAHOO.util.Event.throwErrors;if(!this.silent){}if(this.signature==YAHOO.util.CustomEvent.FLAT){if(O.length>0){J=O[0]}try{P=L.fn.call(M,J,L.obj)}catch(K){this.lastError=K;if(I){throw K}}}else{try{P=L.fn.call(M,this.type,O,L.obj)}catch(N){this.lastError=N;if(I){throw N}}}return P},unsubscribeAll:function(){var C=this.subscribers.length,D;for(D=C-1;D>-1;D--){this._delete(D)}this.subscribers=[];return C},_delete:function(C){var D=this.subscribers[C];if(D){delete D.fn;delete D.obj}this.subscribers.splice(C,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(D,F,E){this.fn=D;this.obj=YAHOO.lang.isUndefined(F)?null:F;this.overrideContext=E};YAHOO.util.Subscriber.prototype.getScope=function(B){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return B};YAHOO.util.Subscriber.prototype.contains=function(C,D){if(D){return(this.fn==C&&this.obj==D)}else{return(this.fn==C)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var R=false,Q=[],O=[],N=0,T=[],M=0,L={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},K=YAHOO.env.ua.ie,S="focusin",P="focusout";return{POLL_RETRYS:500,POLL_INTERVAL:40,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,CAPTURE:7,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:K,_interval:null,_dri:null,_specialTypes:{focusin:(K?"focusin":"focus"),focusout:(K?"focusout":"blur")},DOMReady:false,throwErrors:false,startInterval:function(){if(!this._interval){this._interval=YAHOO.lang.later(this.POLL_INTERVAL,this,this._tryPreloadAttach,null,true)}},onAvailable:function(C,G,E,D,F){var B=(YAHOO.lang.isString(C))?[C]:C;for(var A=0;A<B.length;A=A+1){T.push({id:B[A],fn:G,obj:E,overrideContext:D,checkReady:F})}N=this.POLL_RETRYS;this.startInterval()},onContentReady:function(C,B,A,D){this.onAvailable(C,B,A,D,true)},onDOMReady:function(){this.DOMReadyEvent.subscribe.apply(this.DOMReadyEvent,arguments)},_addListener:function(b,d,D,J,F,A){if(!D||!D.call){return false}if(this._isValidCollection(b)){var C=true;for(var I=0,G=b.length;I<G;++I){C=this.on(b[I],d,D,J,F)&&C}return C}else{if(YAHOO.lang.isString(b)){var Z=this.getEl(b);if(Z){b=Z}else{this.onAvailable(b,function(){YAHOO.util.Event._addListener(b,d,D,J,F,A)});return true}}}if(!b){return false}if("unload"==d&&J!==this){O[O.length]=[b,d,D,J,F];return true}var c=b;if(F){if(F===true){c=J}else{c=F}}var a=function(U){return D.call(c,YAHOO.util.Event.getEvent(U,b),J)};var B=[b,d,D,a,c,J,F,A];var H=Q.length;Q[H]=B;try{this._simpleAdd(b,d,a,A)}catch(E){this.lastError=E;this.removeListener(b,d,D);return false}return true},_getType:function(A){return this._specialTypes[A]||A},addListener:function(F,C,A,E,D){var B=((C==S||C==P)&&!YAHOO.env.ua.ie)?true:false;return this._addListener(F,this._getType(C),A,E,D,B)},addFocusListener:function(A,B,D,C){return this.on(A,S,B,D,C)},removeFocusListener:function(A,B){return this.removeListener(A,S,B)},addBlurListener:function(A,B,D,C){return this.on(A,P,B,D,C)},removeBlurListener:function(A,B){return this.removeListener(A,P,B)},removeListener:function(J,V,D){var I,F,A;V=this._getType(V);if(typeof J=="string"){J=this.getEl(J)}else{if(this._isValidCollection(J)){var C=true;for(I=J.length-1;I>-1;I--){C=(this.removeListener(J[I],V,D)&&C)}return C}}if(!D||!D.call){return this.purgeElement(J,false,V)}if("unload"==V){for(I=O.length-1;I>-1;I--){A=O[I];if(A&&A[0]==J&&A[1]==V&&A[2]==D){O.splice(I,1);return true}}return false}var H=null;var G=arguments[3];if("undefined"===typeof G){G=this._getCacheIndex(Q,J,V,D)}if(G>=0){H=Q[G]}if(!J||!H){return false}var B=H[this.CAPTURE]===true?true:false;try{this._simpleRemove(J,V,H[this.WFN],B)}catch(E){this.lastError=E;return false}delete Q[G][this.WFN];delete Q[G][this.FN];Q.splice(G,1);return true},getTarget:function(C,A){var B=C.target||C.srcElement;return this.resolveTextNode(B)},resolveTextNode:function(A){try{if(A&&3==A.nodeType){return A.parentNode}}catch(B){}return A},getPageX:function(A){var B=A.pageX;if(!B&&0!==B){B=A.clientX||0;if(this.isIE){B+=this._getScrollLeft()}}return B},getPageY:function(B){var A=B.pageY;if(!A&&0!==A){A=B.clientY||0;if(this.isIE){A+=this._getScrollTop()}}return A},getXY:function(A){return[this.getPageX(A),this.getPageY(A)]},getRelatedTarget:function(A){var B=A.relatedTarget;if(!B){if(A.type=="mouseout"){B=A.toElement}else{if(A.type=="mouseover"){B=A.fromElement}}}return this.resolveTextNode(B)},getTime:function(C){if(!C.time){var A=new Date().getTime();try{C.time=A}catch(B){this.lastError=B;return A}}return C.time},stopEvent:function(A){this.stopPropagation(A);this.preventDefault(A)},stopPropagation:function(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}},preventDefault:function(A){if(A.preventDefault){A.preventDefault()}else{A.returnValue=false}},getEvent:function(D,B){var A=D||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A},getCharCode:function(A){var B=A.keyCode||A.charCode||0;if(YAHOO.env.ua.webkit&&(B in L)){B=L[B]}return B},_getCacheIndex:function(G,D,C,E){for(var F=0,A=G.length;F<A;F=F+1){var B=G[F];if(B&&B[this.FN]==E&&B[this.EL]==D&&B[this.TYPE]==C){return F}}return -1},generateId:function(B){var A=B.id;if(!A){A="yuievtautoid-"+M;++M;B.id=A}return A},_isValidCollection:function(A){try{return(A&&typeof A!=="string"&&A.length&&!A.tagName&&!A.alert&&typeof A[0]!=="undefined")}catch(B){return false}},elCache:{},getEl:function(A){return(typeof A==="string")?document.getElementById(A):A},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",YAHOO,0,0,1),_load:function(A){if(!R){R=true;var B=YAHOO.util.Event;B._ready();B._tryPreloadAttach()}},_ready:function(A){var B=YAHOO.util.Event;if(!B.DOMReady){B.DOMReady=true;B.DOMReadyEvent.fire();B._simpleRemove(document,"DOMContentLoaded",B._ready)}},_tryPreloadAttach:function(){if(T.length===0){N=0;if(this._interval){this._interval.cancel();this._interval=null}return }if(this.locked){return }if(this.isIE){if(!this.DOMReady){this.startInterval();return }}this.locked=true;var D=!R;if(!D){D=(N>0&&T.length>0)}var E=[];var C=function(J,I){var V=J;if(I.overrideContext){if(I.overrideContext===true){V=I.obj}else{V=I.overrideContext}}I.fn.call(V,I.obj)};var A,B,F,G,H=[];for(A=0,B=T.length;A<B;A=A+1){F=T[A];if(F){G=this.getEl(F.id);if(G){if(F.checkReady){if(R||G.nextSibling||!D){H.push(F);T[A]=null}}else{C(G,F);T[A]=null}}else{E.push(F)}}}for(A=0,B=H.length;A<B;A=A+1){F=H[A];C(this.getEl(F.id),F)}N--;if(D){for(A=T.length-1;A>-1;A--){F=T[A];if(!F||!F.id){T.splice(A,1)}}this.startInterval()}else{if(this._interval){this._interval.cancel();this._interval=null}}this.locked=false},purgeElement:function(F,E,C){var H=(YAHOO.lang.isString(F))?this.getEl(F):F;var D=this.getListeners(H,C),G,B;if(D){for(G=D.length-1;G>-1;G--){var A=D[G];this.removeListener(H,A.type,A.fn)}}if(E&&H&&H.childNodes){for(G=0,B=H.childNodes.length;G<B;++G){this.purgeElement(H.childNodes[G],E,C)}}},getListeners:function(H,J){var E=[],I;if(!J){I=[Q,O]}else{if(J==="unload"){I=[O]}else{J=this._getType(J);I=[Q]}}var C=(YAHOO.lang.isString(H))?this.getEl(H):H;for(var F=0;F<I.length;F=F+1){var A=I[F];if(A){for(var D=0,B=A.length;D<B;++D){var G=A[D];if(G&&G[this.EL]===C&&(!J||J===G[this.TYPE])){E.push({type:G[this.TYPE],fn:G[this.FN],obj:G[this.OBJ],adjust:G[this.OVERRIDE],scope:G[this.ADJ_SCOPE],index:D})}}}}return(E.length)?E:null},_unload:function(B){var H=YAHOO.util.Event,E,F,G,C,D,A=O.slice(),I;for(E=0,C=O.length;E<C;++E){G=A[E];if(G){I=window;if(G[H.ADJ_SCOPE]){if(G[H.ADJ_SCOPE]===true){I=G[H.UNLOAD_OBJ]}else{I=G[H.ADJ_SCOPE]}}G[H.FN].call(I,H.getEvent(B,G[H.EL]),G[H.UNLOAD_OBJ]);A[E]=null}}G=null;I=null;O=null;if(Q){for(F=Q.length-1;F>-1;F--){G=Q[F];if(G){H.removeListener(G[H.EL],G[H.TYPE],G[H.FN],F)}}G=null}H._simpleRemove(window,"unload",H._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var B=document.documentElement,A=document.body;if(B&&(B.scrollTop||B.scrollLeft)){return[B.scrollTop,B.scrollLeft]}else{if(A){return[A.scrollTop,A.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(D,C,A,B){D.addEventListener(C,A,(B))}}else{if(window.attachEvent){return function(D,C,A,B){D.attachEvent("on"+C,A)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(D,C,A,B){D.removeEventListener(C,A,(B))}}else{if(window.detachEvent){return function(A,C,B){A.detachEvent("on"+C,B)}}else{return function(){}}}}()}}();(function(){var A=YAHOO.util.Event;A.on=A.addListener;A.onFocus=A.addFocusListener;A.onBlur=A.addBlurListener;if(A.isIE){if(self!==self.top){document.onreadystatechange=function(){if(document.readyState=="complete"){document.onreadystatechange=null;A._ready()}}}else{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B=document.createElement("p");A._dri=setInterval(function(){try{B.doScroll("left");clearInterval(A._dri);A._dri=null;A._ready();B=null}catch(C){}},A.POLL_INTERVAL)}}else{if(A.webkit&&A.webkit<525){A._dri=setInterval(function(){var C=document.readyState;if("loaded"==C||"complete"==C){clearInterval(A._dri);A._dri=null;A._ready()}},A.POLL_INTERVAL)}else{A._simpleAdd(document,"DOMContentLoaded",A._ready)}}A._simpleAdd(window,"load",A._load);A._simpleAdd(window,"unload",A._unload);A._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(G,K,H,I){this.__yui_events=this.__yui_events||{};var J=this.__yui_events[G];if(J){J.subscribe(K,H,I)}else{this.__yui_subscribers=this.__yui_subscribers||{};var L=this.__yui_subscribers;if(!L[G]){L[G]=[]}L[G].push({fn:K,obj:H,overrideContext:I})}},unsubscribe:function(M,K,I){this.__yui_events=this.__yui_events||{};var H=this.__yui_events;if(M){var J=H[M];if(J){return J.unsubscribe(K,I)}}else{var N=true;for(var L in H){if(YAHOO.lang.hasOwnProperty(H,L)){N=N&&H[L].unsubscribe(K,I)}}return N}return false},unsubscribeAll:function(B){return this.unsubscribe(B)},createEvent:function(N,I){this.__yui_events=this.__yui_events||{};var K=I||{},L=this.__yui_events,J;if(L[N]){}else{J=new YAHOO.util.CustomEvent(N,K.scope||this,K.silent,YAHOO.util.CustomEvent.FLAT,K.fireOnce);L[N]=J;if(K.onSubscribeCallback){J.subscribeEvent.subscribe(K.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var H=this.__yui_subscribers[N];if(H){for(var M=0;M<H.length;++M){J.subscribe(H[M].fn,H[M].obj,H[M].overrideContext)}}}return L[N]},fireEvent:function(H){this.__yui_events=this.__yui_events||{};var F=this.__yui_events[H];if(!F){return null}var E=[];for(var G=1;G<arguments.length;++G){E.push(arguments[G])}return F.fire.apply(F,E)},hasEvent:function(B){if(this.__yui_events){if(this.__yui_events[B]){return true}}return false}};(function(){var D=YAHOO.util.Event,E=YAHOO.lang;YAHOO.util.KeyListener=function(L,A,K,J){if(!L){}else{if(!A){}else{if(!K){}}}if(!J){J=YAHOO.util.KeyListener.KEYDOWN}var C=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(E.isString(L)){L=document.getElementById(L)}if(E.isFunction(K)){C.subscribe(K)}else{C.subscribe(K.fn,K.scope,K.correctScope)}function B(P,Q){if(!A.shift){A.shift=false}if(!A.alt){A.alt=false}if(!A.ctrl){A.ctrl=false}if(P.shiftKey==A.shift&&P.altKey==A.alt&&P.ctrlKey==A.ctrl){var I,R=A.keys,G;if(YAHOO.lang.isArray(R)){for(var H=0;H<R.length;H++){I=R[H];G=D.getCharCode(P);if(I==G){C.fire(G,P);break}}}else{G=D.getCharCode(P);if(R==G){C.fire(G,P)}}}}this.enable=function(){if(!this.enabled){D.on(L,J,B);this.enabledEvent.fire(A)}this.enabled=true};this.disable=function(){if(this.enabled){D.removeListener(L,J,B);this.disabledEvent.fire(A)}this.enabled=false};this.toString=function(){return"KeyListener ["+A.keys+"] "+L.tagName+(L.id?"["+L.id+"]":"")}};var F=YAHOO.util.KeyListener;F.KEYDOWN="keydown";F.KEYUP="keyup";F.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}})();YAHOO.register("event",YAHOO.util.Event,{version:"2.8.1",build:"19"});if(typeof HeaderTabs=="undefined"){var HeaderTabs={}}HeaderTabs.tabView=null;HeaderTabs.tabids=[];HeaderTabs.init=function(B){if(B){var A=YAHOO.util.History.getBookmarkedState("tab")||"--no-tab--";YAHOO.util.History.register("tab",A,function(D){for(var E=0;E<HeaderTabs.tabids.length;E++){if(HeaderTabs.tabids[E]==D){HeaderTabs.tabView.set("activeIndex",E);return }}});try{YAHOO.util.History.initialize("yui-history-field","yui-history-iframe")}catch(C){B=false}}if(B){YAHOO.util.History.onReady(function(){var D=YAHOO.util.History.getCurrentState("tab");for(var E=0;E<HeaderTabs.tabids.length;E++){if(HeaderTabs.tabids[E]==D){HeaderTabs.tabView.set("activeIndex",E);return }}})}YAHOO.util.Event.onContentReady("headertabs",function(){HeaderTabs.tabView=new YAHOO.widget.TabView("headertabs");var D=new YAHOO.util.Element("headertabs").getElementsByClassName("yui-content")[0].childNodes;YAHOO.util.Dom.batch(D,function(E){HeaderTabs.tabids.push(E.id)});HeaderTabs.tabView.set("activeIndex",0);if(B){HeaderTabs.tabView.addListener("activeTabChange",function(E){if(E.prevValue!=E.newValue){YAHOO.util.History.navigate("tab",HeaderTabs.tabids[HeaderTabs.tabView.get("activeIndex")])}})}});YAHOO.util.Event.onContentReady("bodyContent",function(){if(typeof HeaderTabs.tabView=="undefined"){return }var D=new YAHOO.util.Element("bodyContent").getElementsByClassName("smwfact")[0];if(D){HeaderTabs.tabView.addTab(new YAHOO.widget.Tab({label:"Factbox",id:"headertabs_Factbox_tab",contentEl:D}));HeaderTabs.tabids.push("Factbox");document.getElementById("headertabs_Factbox_tab").getElementsByTagName("a")[0].id="headertab_Factbox"}})};HeaderTabs.switchTab=function(A){if(typeof HeaderTabs.tabView=="undefined"){return false}for(var B=0;B<HeaderTabs.tabids.length;B++){if(HeaderTabs.tabids[B]==A){HeaderTabs.tabView.set("activeIndex",B);document.getElementById("headertab_"+A).focus();return false}}return false};
\ No newline at end of file
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/combined-min.js
___________________________________________________________________
Added: svn:eol-style
13 + native
Index: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs.js
@@ -0,0 +1,119 @@
 2+// Tabs code
 3+if (typeof HeaderTabs == "undefined") {
 4+ var HeaderTabs = { };
 5+}
 6+
 7+HeaderTabs.tabView = null;
 8+HeaderTabs.tabids = [];
 9+HeaderTabs.init = function(useHistory) {
 10+
 11+ if (useHistory)
 12+ {
 13+ var bookmarkedtab = YAHOO.util.History.getBookmarkedState('tab') || '--no-tab--';
 14+
 15+ YAHOO.util.History.register('tab', bookmarkedtab, function(tabid)
 16+ {
 17+ for (var i = 0; i<HeaderTabs.tabids.length; i++)
 18+ {
 19+ if (HeaderTabs.tabids[i] == tabid)
 20+ {
 21+ HeaderTabs.tabView.set('activeIndex', i);
 22+ return;
 23+ }
 24+ }
 25+ });
 26+
 27+ try {
 28+ YAHOO.util.History.initialize("yui-history-field", "yui-history-iframe");
 29+ }
 30+ catch (e)
 31+ {
 32+ useHistory = false;
 33+ }
 34+ }
 35+
 36+ if (useHistory)
 37+ {
 38+ YAHOO.util.History.onReady(function()
 39+ {
 40+ var tabid = YAHOO.util.History.getCurrentState("tab");
 41+ for (var i = 0; i<HeaderTabs.tabids.length; i++)
 42+ {
 43+ if (HeaderTabs.tabids[i] == tabid)
 44+ {
 45+ HeaderTabs.tabView.set('activeIndex', i);
 46+ return;
 47+ }
 48+ }
 49+ });
 50+ }
 51+
 52+ YAHOO.util.Event.onContentReady('headertabs', function()
 53+ {
 54+ HeaderTabs.tabView = new YAHOO.widget.TabView('headertabs');
 55+
 56+ var tabs = new YAHOO.util.Element('headertabs').getElementsByClassName('yui-content')[0].childNodes;
 57+
 58+ YAHOO.util.Dom.batch(tabs, function(tab) {
 59+ HeaderTabs.tabids.push(tab.id);
 60+ });
 61+
 62+ HeaderTabs.tabView.set('activeIndex', 0);
 63+
 64+ if (useHistory)
 65+ {
 66+ HeaderTabs.tabView.addListener('activeTabChange', function(e)
 67+ {
 68+ if (e.prevValue != e.newValue)
 69+ {
 70+ YAHOO.util.History.navigate('tab', HeaderTabs.tabids[HeaderTabs.tabView.get('activeIndex')]);
 71+ }
 72+ });
 73+ }
 74+ });
 75+
 76+ YAHOO.util.Event.onContentReady('bodyContent', function()
 77+ {
 78+ // don't try adding tabs if there is no tabview
 79+ if (typeof HeaderTabs.tabView == "undefined")
 80+ {
 81+ return;
 82+ }
 83+
 84+ // Adding Factbox tab
 85+ var factboxdiv = new YAHOO.util.Element('bodyContent').getElementsByClassName('smwfact')[0];
 86+ if (factboxdiv)
 87+ {
 88+ HeaderTabs.tabView.addTab(new YAHOO.widget.Tab({
 89+ label: 'Factbox',
 90+ id: 'headertabs_Factbox_tab',
 91+ contentEl: factboxdiv
 92+ }));
 93+
 94+ HeaderTabs.tabids.push('Factbox');
 95+
 96+ document.getElementById('headertabs_Factbox_tab').getElementsByTagName('a')[0].id = 'headertab_Factbox';
 97+ }
 98+ });
 99+};
 100+
 101+HeaderTabs.switchTab = function(tabid) {
 102+ if (typeof HeaderTabs.tabView == "undefined")
 103+ {
 104+ return false;
 105+ }
 106+
 107+ for (var i = 0; i<HeaderTabs.tabids.length; i++)
 108+ {
 109+ if (HeaderTabs.tabids[i] == tabid)
 110+ {
 111+ HeaderTabs.tabView.set('activeIndex', i);
 112+
 113+ document.getElementById('headertab_'+tabid).focus();
 114+
 115+ return false;
 116+ }
 117+ }
 118+
 119+ return false;
 120+};
Property changes on: tags/extensions/HeaderTabs/REL_0_9/skins-yui/headertabs.js
___________________________________________________________________
Added: svn:eol-style
1121 + native
Index: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs_body.jq.php
@@ -0,0 +1,292 @@
 2+<?php
 3+/**
 4+ * Version of the HeaderTabs class that uses jQuery and the ResourceLoader.
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ *
 9+ * @author Sergey Chernyshev
 10+ * @author Yaron Koren
 11+ * @author Olivier Finlay Beaton
 12+ */
 13+
 14+class HeaderTabs {
 15+ public static function tag( $input, $args, $parser ) {
 16+ // This tag, besides just enabling tabs, also designates
 17+ // the end of tabs. Can be used even if automatiic namespaced
 18+ return '<div id="nomoretabs"></div>';
 19+ }
 20+
 21+ public static function replaceFirstLevelHeaders( &$parser, &$text ) {
 22+ global $htRenderSingleTab, $htAutomaticNamespaces, $htDefaultFirstTab, $htDisableDefaultToc, $htGenerateTabTocs, $htStyle;
 23+
 24+ //! @todo handle __NOTABTOC__, __TABTOC__, __FORCETABTOC__ here (2011-12-12, ofb)
 25+
 26+ // Where do we stop rendering tabs, and what is below it?
 27+ // if we don't have a stop point, then bail out
 28+ $aboveandbelow = explode( '<div id="nomoretabs"></div>', $text, 2 );
 29+ if ( count( $aboveandbelow ) <= 1 ) {
 30+ if ( in_array( $parser->getTitle()->getNamespace(), $htAutomaticNamespaces ) === FALSE ) {
 31+ return true; // <headertabs/> tag is not found
 32+ } else {
 33+ // assume end of article is nomoretabs
 34+ $aboveandbelow[] = '';
 35+ }
 36+ }
 37+ $below = $aboveandbelow[1];
 38+
 39+ wfDebugLog('headertabs', __METHOD__.': detected header handling, checking');
 40+
 41+ if ($below !== '') {
 42+ wfDebugLog('headertabs', __METHOD__.': we have text below our tabs');
 43+ }
 44+
 45+ // grab the TOC
 46+ $toc = '';
 47+ $tocpattern = '%<table id="toc" class="toc"><tr><td><div id="toctitle"><h2>.+?</h2></div>'."\n+".'(<ul>'."\n+".'.+?</ul>)'."\n+".'</td></tr></table>'."\n+".'%ms';
 48+ if ( preg_match($tocpattern, $aboveandbelow[0], $tocmatches, PREG_OFFSET_CAPTURE) === 1 ) {
 49+ wfDebugLog('headertabs', __METHOD__.': found the toc: '.$tocmatches[0][1]);
 50+ $toc = $tocmatches[0][0];
 51+ // toc is first thing
 52+ if ( $tocmatches[0][1] === 0 ) {
 53+ wfDebugLog('headertabs', __METHOD__.': removed standard-pos TOC');
 54+ $aboveandbelow[0] = substr_replace( $aboveandbelow[0], '', $tocmatches[0][1], strlen($tocmatches[0][0]) );
 55+ }
 56+ }
 57+ // toc is tricky, if you allow the auto-gen-toc,
 58+ // and it's not at the top, but you end up with tabs... it could be embedded in a tab
 59+ // but if it is at the top, and you have auto-first-tab, but only a toc is there, you don't really have an auto-tab
 60+
 61+ // how many headers parts do we have? if not enough, bail out
 62+ // text -- with defaulttab off = 1 parts
 63+ //--render singletab=on here
 64+ // text -- with defaulttab on = 2 parts
 65+ // 1 header -- with defaulttab off = 2 parts
 66+ // above, 1 header -- with defaulttab off = 3 parts
 67+ //--render singletab=off here
 68+ // above, 1 header -- with defaulttab on = 4 parts
 69+ // 2 header -- with defaulttab on/off = 4 parts
 70+ // above, 2 header -- with defaulttab off = 5 parts
 71+ // above, 2 header -- with defaulttab on = 6 parts
 72+
 73+ $tabpatternsplit = '/(<h1.+?<span[^>]+class="mw-headline"[^>]+id="[^"]+"[^>]*>\s*.*?\s*<\/span>.*?<\/h1>)/';
 74+ $tabpatternmatch = '/<h(1).+?<span[^>]+class="mw-headline"[^>]+id="([^"]+)"[^>]*>\s*(.*?)\s*<\/span>.*?<\/h1>/';
 75+ $parts = preg_split( $tabpatternsplit, trim($aboveandbelow[0]), -1, PREG_SPLIT_DELIM_CAPTURE );
 76+ $above = '';
 77+
 78+ // auto tab and the first thing isn't a header (note we already removed the default toc, add it back later if needed)
 79+ if ( $htDefaultFirstTab !== FALSE && $parts[0] !== '' ) {
 80+ // add the default header
 81+ $headline = '<h1><span class="mw-headline" id="'.str_replace(' ', '_', $htDefaultFirstTab).'">'.$htDefaultFirstTab.'</span></h1>';
 82+ array_unshift( $parts, $headline );
 83+ $above = ''; // explicit
 84+ } else {
 85+ $above = $parts[0];
 86+ // discard first part blank part
 87+ array_shift( $parts ); // don't need above part anyway
 88+ }
 89+
 90+ $partslimit = $htRenderSingleTab ? 2 : 4;
 91+
 92+ wfDebugLog('headertabs', __METHOD__.': parts (limit '.$partslimit.'): '.count($parts));
 93+ if ($above !== '') {
 94+ wfDebugLog('headertabs', __METHOD__.': we have text above our tabs');
 95+ }
 96+
 97+ if ( count($parts) < $partslimit ) {
 98+ return true;
 99+ }
 100+
 101+ wfDebugLog('headertabs', __METHOD__.': split count OK, continuing');
 102+
 103+ // disable default TOC
 104+ if ( $htDisableDefaultToc === TRUE ) {
 105+ // if it was somewhere else, we need to remove it
 106+ if ( count($tocmatches) > 0 && $tocmatches[0][1] !== 0 ) {
 107+ wfDebugLog('headertabs', __METHOD__.': removed non-standard-pos TOC');
 108+ // remove from above
 109+ if ( $tocmatches[0][1] < strlen($above) ) {
 110+ $above = substr_replace( $above, '', $tocmatches[0][1], strlen($tocmatches[0][0]) );
 111+ } else {
 112+ $tocmatches[0][1] -= strlen($above);
 113+ // it's in a tab
 114+ for ($i = 0; ($i < count ( $parts ) / 2 ); $i++ ) {
 115+ if ( $tocmatches[0][1] < strlen($parts[($i * 2) + 1]) ) {
 116+ $parts[($i * 2) + 1] = substr_replace( $parts[($i * 2) + 1], '', $tocmatches[0][1], strlen($tocmatches[0][0]) );
 117+ break;
 118+ }
 119+ $tocmatches[0][1] -= strlen($parts[($i * 2) + 1]);
 120+ }
 121+ }
 122+ }
 123+ } elseif( count($tocmatches) > 0 && $tocmatches[0][1] === 0 ) {
 124+ // add back a default-pos toc
 125+ $above = $toc.$above;
 126+ }
 127+
 128+ // we have level 1 headers to parse, we'll want to render tabs
 129+ $tabs = array();
 130+
 131+ $s = 0;
 132+
 133+ for ( $i = 0; $i < ( count( $parts ) / 2 ); $i++ ) {
 134+ preg_match( $tabpatternmatch, $parts[$i * 2], $matches );
 135+
 136+ // if this is a default tab, don't increment our section number
 137+ if ($s !== 0 || $i !== 0 || $htDefaultFirstTab === FALSE || $matches[3] !== $htDefaultFirstTab) {
 138+ ++$s;
 139+ }
 140+
 141+ $tabsection = $s;
 142+ $content = $parts[$i * 2 + 1];
 143+
 144+ // Almost all special characters in tab IDs
 145+ // cause a problem in the jQuery UI tabs()
 146+ // function - in the URLs they already come out
 147+ // as URL-encoded, which is good, but for some
 148+ // reason it's as ".2F", etc., instead of
 149+ // "%2F" - so replace all "." with "_", and
 150+ // everything should be fine.
 151+ $tabid = str_replace('.', '_', $matches[2]);
 152+
 153+ $tabtitle = $matches[3];
 154+
 155+ wfDebugLog('headertabs', __METHOD__.': found tab: '.$tabtitle);
 156+
 157+ // toc and section counter
 158+ $subpatternsplit = '/(<h[2-6].+?<span[^>]+class="mw-headline"[^>]+id="[^"]+"[^>]*>\s*.*?\s*<\/span>.*?<\/h[2-6]>)/';
 159+ $subpatternmatch = '/<h([2-6]).+?<span[^>]+class="mw-headline"[^>]+id="([^"]+)"[^>]*>\s*(.*?)\s*<\/span>.*?<\/h[2-6]>/';
 160+ $subparts = preg_split( $subpatternsplit, $content, -1, PREG_SPLIT_DELIM_CAPTURE );
 161+ if ((count($subparts) % 2) !== 0) {
 162+ // don't need anything above first header
 163+ array_shift( $subparts );
 164+ }
 165+ for ( $p = 0; $p < ( count( $subparts ) / 2 ); $p++ ) {
 166+ preg_match( $subpatternmatch, $subparts[$p * 2], $submatches );
 167+ ++$s;
 168+ }
 169+
 170+ //! @todo handle __TOC__, __FORCETOC__, __NOTOC__ here (2011-12-12, ofb)
 171+ if ($htGenerateTabTocs === TRUE) {
 172+ // really? that was it?
 173+ // maybe a better way then clone... formatHeadings changes properties on the parser which we don't want to do
 174+ // would be better to have a 'clean' parser so the tab was treated as a new page
 175+ // maybe use LinkerOutput's generateTOC?
 176+
 177+ //! @todo insert the toc after the first paragraph, maybe we can steal the location from formatHeadings despite the changed html? (2011-12-12, ofb)
 178+
 179+ $tocparser = clone $parser;
 180+ $tabtocraw = $tocparser->formatHeadings($content, '');
 181+ if ( preg_match($tocpattern, $tabtocraw, $tabtocmatches) === 1 ) {
 182+ wfDebugLog('headertabs', __METHOD__.': generated toc for tab');
 183+ $tabtocraw = $tabtocmatches[0];
 184+ $tabtoc = $tabtocraw;
 185+ $itempattern = '/<li class="toclevel-[0-9]+"><a href="(#[^"]+)"><span class="tocnumber">[0-9]+<\/span> <span class="toctext">([^<]+)<\/span><\/a><\/li>/';
 186+ if ( preg_match_all( $itempattern , $tabtocraw, $tabtocitemmatches, PREG_SET_ORDER ) > 0 ) {
 187+ foreach( $tabtocitemmatches as $match ) {
 188+ $newitem = $match[0];
 189+
 190+ // 1.17 behavior
 191+ if ( strpos( $match[2], '[edit] ' ) === 0 ) {
 192+ $newitem = str_replace( $match[1], '#' . substr( $match[1], 12 ), $newitem );
 193+ $newitem = str_replace( $match[2], substr( $match[2], 7 ), $newitem );
 194+ // 1.18+ behavior
 195+ } elseif ( trim( substr( $match[2], 0, strlen( $match[2] ) / 2 ) ) == trim( substr( $match[2], strlen( $match[2] ) / 2 ) ) ) {
 196+ $newitem = str_replace( $match[1], '#' . trim( substr( $match[1], ( strlen( $match[1] ) / 2 ) + 1 ) ), $newitem );
 197+ $newitem = str_replace( $match[2], trim( substr( $match[2], strlen( $match[2] ) / 2 ) ), $newitem );
 198+ }
 199+ $tabtoc = str_replace( $match[0], $newitem, $tabtoc );
 200+ }
 201+ $content = $tabtoc.$content;
 202+ }
 203+ }
 204+ }
 205+
 206+ array_push( $tabs, array(
 207+ 'tabid' => $tabid,
 208+ 'title' => $tabtitle,
 209+ 'tabcontent' => $content,
 210+ 'section' => $tabsection,
 211+ ) );
 212+ }
 213+
 214+ //! @todo see if we can't add the SMW factbox stuff back in (2011-12-12, ofb)
 215+
 216+ wfDebugLog('headertabs', __METHOD__.': generated '.count($tabs).' tabs');
 217+
 218+ $tabhtml = '<div id="headertabs"';
 219+ if (!empty($htStyle) && $htStyle !== 'jquery') {
 220+ $tabhtml .= ' class="'.$htStyle.'"';
 221+ }
 222+ $tabhtml .= '>';
 223+
 224+ //! @todo handle __NOEDITTAB__ here (2011-12-12, ofb)
 225+ $tabhtml .= '<span class="editsection" id="edittab">[<a href="" title="'.wfMsg('headertabs-edittab-hint').'">'.wfMsg('headertabs-edittab').'</a>]</span>';
 226+
 227+ $tabhtml .= '<ul>';
 228+ foreach ( $tabs as $i => $tab ) {
 229+ $tabhtml .= '<li';
 230+ if ( $i == 0 ) {
 231+ $tabhtml .= ' class="selected"';
 232+ }
 233+ $tabhtml .= '><a href="#' . $tab['tabid'] . '">'.$tab['title'] . "</a></li>\n";
 234+ }
 235+ $tabhtml .= '</ul>';
 236+
 237+ foreach ( $tabs as $tab ) {
 238+ $tabhtml .= '<div id="' . $tab['tabid'] . '" class="section-'.$tab['section'].'"><p>' . $tab['tabcontent'] . '</p></div>';
 239+ }
 240+ $tabhtml .= '</div>';
 241+
 242+ $text = $above . $tabhtml . $below;
 243+
 244+ return true;
 245+ }
 246+
 247+ public static function addConfigVarsToJS( &$vars ) {
 248+ global $htUseHistory, $htEditTabLink;
 249+
 250+ $vars['htUseHistory'] = $htUseHistory;
 251+ $vars['htEditTabLink'] = $htEditTabLink;
 252+
 253+ return true;
 254+ }
 255+
 256+ /**
 257+ * @param $out OutputPage
 258+ * @return bool
 259+ */
 260+ public static function addHTMLHeader( &$out ) {
 261+ global $htScriptPath,$htStyle;
 262+
 263+ //! @todo we might be able to only load our js and styles if we are rendering tabs, speeding up pages that don't use it? but what about cached pages? (2011-12-12, ofb)
 264+
 265+ $out->addModules( 'ext.headertabs' );
 266+
 267+ // Add the CSS file for the specified style.
 268+ if ( !empty( $htStyle ) && $htStyle !== 'jquery' ) {
 269+ $styleFile = $htScriptPath . '/skins-jquery/ext.headertabs.' . $htStyle . '.css';
 270+ $out->addExtensionStyle( $styleFile );
 271+ }
 272+
 273+ return true;
 274+ }
 275+
 276+ public static function renderSwitchTabLink( &$parser, $tabName, $linkText, $anotherTarget = '' ) {
 277+ $tabTitle = Title::newFromText( $tabName );
 278+ $tabKey = $tabTitle->getDBkey();
 279+ $sanitizedLinkText = $parser->recursiveTagParse( $linkText );
 280+
 281+ if ( $anotherTarget != '' ) {
 282+ $targetTitle = Title::newFromText( $anotherTarget );
 283+ $targetURL = $targetTitle->getFullURL();
 284+
 285+ $output = '<a href="' . $targetURL . '#tab=' . $tabKey . '">' . $sanitizedLinkText . '</a>';
 286+ } else {
 287+ $output = '<a href="#tab='.$tabKey.'" class="tabLink">'.$sanitizedLinkText.'</a>';
 288+ }
 289+
 290+ return $parser->insertStripItem( $output, $parser->mStripState );
 291+ }
 292+
 293+}
Property changes on: tags/extensions/HeaderTabs/REL_0_9/HeaderTabs_body.jq.php
___________________________________________________________________
Added: svn:eol-style
1294 + native

Status & tagging log