From: <Saved by Windows Internet Explorer 7>
Subject: Court Upholds New Hampshire Drug Law - NYTimes.com
Date: Thu, 20 Nov 2008 13:21:43 -0500
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C94B12.EDFDAF50"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.nytimes.com/2008/11/19/business/19drug.html?_r=2&pagewanted=print

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>Court Upholds New Hampshire Drug Law - =
NYTimes.com</TITLE>
<SCRIPT src=3D"http://graphics8.nytimes.com/js/common.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"http://graphics8.nytimes.com/js/article/articleShare.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"http://graphics8.nytimes.com/js/Tacoda_AMS_DDC_Header.js" =

type=3Dtext/javascript></SCRIPT>

<SCRIPT src=3D"http://graphics8.nytimes.com/js/fileit.js"></SCRIPT>

<SCRIPT language=3DJavaScript=20
src=3D"http://graphics8.nytimes.com/js/common/screen/DropDown.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3DJavaScript=20
src=3D"http://graphics8.nytimes.com/js/common/screen/modifyNavigationDisp=
lay.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3DJavaScript=20
src=3D"http://graphics8.nytimes.com/js/common/screen/altClickToSearch.js"=
=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT language=3DJavaScript=20
src=3D"http://graphics8.nytimes.com/js/util/tooltip.js"=20
type=3Dtext/javascript></SCRIPT>

<STYLE type=3Dtext/css>@import url( =
http://graphics8.nytimes.com/css/article/screen/print.css );
</STYLE>

<META=20
content=3D"The court upheld the right of states to prohibit the sale of =
doctor-specific prescription drug data that is widely used in =
pharmaceutical marketing."=20
name=3Ddescription>
<META=20
content=3D"Drugs (Pharmaceuticals),Doctors,Decisions and =
Verdicts,Medicine and Health"=20
name=3Dkeywords>
<META content=3D"" name=3Dmisspelling>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3DNOARCHIVE name=3DROBOTS>
<META content=3D"November 19, 2008" name=3DDISPLAYDATE>
<META content=3D"Federal Court Upholds Drug Privacy Law" name=3Dhdl>
<META content=3D"Federal Court Upholds Drug Privacy Law" name=3Dhdl_p>
<META content=3D"By STEPHANIE SAUL" name=3Dbyl>
<META=20
content=3D"The court upheld the right of states to prohibit the sale of =
doctor-specific prescription drug data that is widely used in =
pharmaceutical marketing."=20
name=3Dlp>
<META content=3D"The New York Times" name=3Dcre>
<META content=3DNewYork name=3Dedt>
<META content=3D20081119 name=3Dpdate>
<META content=3D"" name=3Dttl>
<META content=3D"" name=3Dvirtloc>
<META=20
content=3D"Drugs (Pharmaceuticals);Doctors;Decisions and =
Verdicts;Medicine and Health"=20
name=3Ddes>
<META content=3D"" name=3Dper>
<META content=3D"" name=3Dorg>
<META content=3D"" name=3Dgeo>
<META content=3D"IMS Health Incorporated|RX|NYSE" name=3Dticker>
<META content=3D"November 19, 2008" name=3Ddat>
<META content=3DNews name=3Dtom>
<META content=3D"" name=3Dcat>
<META content=3D"" name=3Dcol>
<META content=3DBusiness name=3Ddsk>
<META content=3D1194833300153 name=3Darticleid>
<META content=3Dbusiness name=3DCG>
<META content=3D"" name=3DSCG>
<META content=3DArticle name=3DPT>
<META content=3D"" name=3DPST>
<META content=3D/images/article/header/sect_business.gif name=3Dhdr_img>
<META content=3D"" name=3Dthumbnail>
<META content=3D"" name=3Dthumbnail_height>
<META content=3D"" name=3Dthumbnail_width>
<META content=3D600 name=3DARTICLE_TEMPLATE_VERSION>
<META content=3DB name=3Dsec>
<META content=3D10 name=3Dpg>
<SCRIPT type=3Dtext/JavaScript>=0A=
	var google_hints =3D =
"Drugs+(Pharmaceuticals),Doctors,Decisions+and+Verdicts,Medicine+and+Heal=
th";=0A=
	var google_ad_channel =3D "ar_business";=0A=
</SCRIPT>
<LINK media=3Dhandheld=20
href=3D"http://mobile.nytimes.com/2008/11/19/business/19drug.xml"=20
rel=3Dalternate><LINK title=3D"NYTimes.com Business RSS"=20
href=3D"http://www.nytimes.com/services/xml/rss/nyt/Business.xml"=20
type=3Dapplication/rss+xml rel=3Dalternate><!--AUTOCOMPLETE for business =
-->
<SCRIPT=20
src=3D"http://graphics8.nytimes.com/js/app/lib/prototype/1.6.0.2/prototyp=
e.js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT=20
src=3D"http://graphics8.nytimes.com/js/app/lib/scriptaculous/1.8.1/script=
aculous.js?load=3Deffects,controls"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT=20
src=3D"http://graphics8.nytimes.com/js/section/business/businesssearch/au=
tosuggest.js"=20
type=3Dtext/javascript></SCRIPT>

<META content=3D"MSHTML 6.00.5730.13" name=3DGENERATOR></HEAD>
<BODY class=3Dprinterversion><A href=3D"http://www.nytimes.com/"><IMG=20
alt=3D"The New York Times" hspace=3D0=20
src=3D"http://graphics8.nytimes.com/images/misc/logoprinter.gif" =
align=3Dleft=20
border=3D0></A>=20
<TABLE style=3D"MARGIN-TOP: 3px; MARGIN-BOTTOM: 3px" cellSpacing=3D0 =
cellPadding=3D0=20
width=3D"80%" border=3D0>
  <TBODY>
  <TR vAlign=3Dbottom>
    <TD>
      <DIV style=3D"MARGIN-RIGHT: 2px">
      <DIV align=3Dright><IMG height=3D1 alt=3D""=20
      src=3D"http://graphics8.nytimes.com/ads/spacer.gif" width=3D1 =
border=3D0><A=20
      =
href=3D"http://www.nytimes.com/adx/bin/adx_click.html?type=3Dgoto&amp;pag=
e=3Dwww.nytimes.com/printer-friendly&amp;pos=3DPosition1&amp;sn2=3D336c55=
7e/4f3dd5d2&amp;sn1=3D6d9a287b/ca62410c&amp;camp=3Dfoxsearch2008_emailtoo=
ls_810909e_nyt5&amp;ad=3Dslumdog_f_88x31_11-12&amp;goto=3Dhttp://www.foxs=
earchlight.com/slumdogmillionaire/"=20
      target=3D_blank><IMG height=3D24 alt=3D"Printer Friendly Format =
Sponsored By"=20
      src=3D"http://graphics8.nytimes.com/ads/fox/printerfriendly.gif" =
width=3D106=20
      border=3D0><IMG height=3D31 alt=3D""=20
      =
src=3D"http://graphics8.nytimes.com/adx/images/ADS/18/63/ad.186340/sdm_aw=
_88x31_np.gif"=20
      width=3D88 =
border=3D0></A><BR></DIV></DIV></TD></TR></TBODY></TABLE><BR =
clear=3Dall>
<HR align=3Dleft SIZE=3D1>

<DIV class=3Dtimestamp>November 19, 2008</DIV>
<DIV class=3Dkicker></DIV>
<H1><NYT_HEADLINE type=3D" " version=3D"1.0">Federal Court Upholds Drug =
Privacy Law=20
</NYT_HEADLINE></H1><NYT_BYLINE type=3D" " version=3D"1.0">
<DIV class=3Dbyline>By <A title=3D"More Articles by Stephanie Saul"=20
href=3D"http://topics.nytimes.com/top/reference/timestopics/people/s/step=
hanie_saul/index.html?inline=3Dnyt-per">STEPHANIE=20
SAUL</A></DIV></NYT_BYLINE><NYT_TEXT>
<DIV id=3DarticleBody>
<P>A federal appeals court in Boston on Tuesday dealt a setback to the=20
pharmaceutical industry and companies that collect prescription data for =
use in=20
drug marketing.</P>
<P>Ruling in support of a New Hampshire law, the court upheld the right =
of=20
states to prohibit the sale of doctor-specific prescription drug data =
that is=20
widely used in pharmaceutical marketing. </P>
<P>The case is a defeat for two large data-mining companies, <A=20
title=3D"More information about IMS Health Incorporated"=20
href=3D"http://topics.nytimes.com/top/news/business/companies/ims_health_=
inc/index.html?inline=3Dnyt-org">IMS=20
Health</A> and Verispan. They sued in 2006 to block implementation of =
the New=20
Hampshire law, which prohibited the sale of computerized data showing =
which=20
doctors were prescribing what drugs. </P>
<P>The law was intended to cut down on state health care costs by =
eliminating=20
the tool used by drug sales representatives in promoting brand name =
drugs. By=20
purchasing the data describing which doctors prescribe what drugs,=20
pharmaceutical sales forces are better able to identify which doctors =
might use=20
their products and be receptive to their sales pitches. They can also =
focus on=20
persuading doctors who do not write many <A=20
title=3D"In-depth reference and news articles about Getting a =
prescription filled."=20
href=3D"http://health.nytimes.com/health/guides/specialtopic/getting-a-pr=
escription-filled/overview.html?inline=3Dnyt-classifier">prescriptions</A=
>=20
for their products to change their minds.</P>
<P>The sale of prescription data, in which individual patients=92 =
identities have=20
been removed, has become a lucrative industry. The information is =
purchased from=20
pharmacy chains and the companies that manage drug benefits for =
employers. </P>
<P>Sales representatives =97 known as detailers in industry argot =97 =
often visit=20
doctors=92 offices carrying laptop computers with detailed reports on =
each=20
doctor=92s prescription-writing habits. </P>
<P>Saying in Tuesday=92s opinion that the enterprise of buying and =
reselling=20
prescription information was =93mind-boggling=94 in its scope, United =
States Court=20
of Appeals Judge Bruce Marshall Selya wrote, =93The record contains =
substantial=20
evidence that, in several instances, detailers armed with prescribing =
histories=20
encourage the overzealous prescription of more costly brand-name drugs=20
regardless of both the public health consequences and the probable =
outcome of a=20
sensible cost/benefit analysis.=94 </P>
<P>The three-judge panel concluded that =93the state adequately =
demonstrated that=20
the Prescription Information Law is reasonably calculated to advance its =

substantial interest in reducing overall health care costs within New=20
Hampshire.=94 </P>
<P>The appeals court ruling overturned a decision last year by United =
States=20
District Judge Paul Barbadoro of Concord, N.H., that stuck down the New=20
Hampshire law on First Amendment grounds. </P>
<P>In a statement, IMS, based in Norwalk, Conn., said it was =
disappointed with=20
the decision and was evaluating its potential next steps. Shares in IMS =
fell 12=20
cents, or 1 percent, to $11.75 on the <A=20
title=3D"More articles about the New York Stock Exchange."=20
href=3D"http://topics.nytimes.com/top/reference/timestopics/organizations=
/n/new_york_stock_exchange/index.html?inline=3Dnyt-org">New=20
York Stock Exchange</A>. </P>
<P>Along with Verispan, which is located in Yardley, Pa., IMS had argued =
that=20
the purchase and collection of prescription data were valuable for =
public health=20
reasons and, also, that the law infringed on commercial free speech. =
</P>
<P>The New Hampshire law, which was to take effect in July 2006 before =
it was=20
challenged, was the first state law to specifically prohibit the sale or =

transfer of information identifying doctors for commercial purposes. =
</P>
<P>Tuesday=92s decision could also have implications in other states =
that have=20
either adopted or are considering similar legislation, particularly =
Maine, which=20
is in the same appellate district as New Hampshire and where a similar =
law was=20
also struck down by a district court this year. Vermont has also enacted =
a=20
similar law that is to take effect next year but is also facing a court=20
challenge.</P>
<P>Such legislation has been urged by doctors who object to the =
disclosure of=20
their prescribing patterns. </P>
<P>The American College of Physicians asked the larger <A=20
title=3D"More articles about American Medical Association"=20
href=3D"http://topics.nytimes.com/top/reference/timestopics/organizations=
/a/american_medical_association/index.html?inline=3Dnyt-org">American=20
Medical Association</A> to prohibit the release or sale of doctors=92 =
prescribing=20
information. In 2006, the A.M.A. established a registry of doctors who =
could=20
=93opt out=94 of having their prescription data shared with sales =
representatives.=20
That was part of a voluntary arrangement the A.M.A. reached with the =
data=20
companies. </P>
<P>In sponsoring the New Hampshire legislation in 2006, Representative =
Cindy=20
Rosenwald of Nashua, said she was motivated partly by high state <A=20
title=3D"Recent and archival health news about Medicaid."=20
href=3D"http://topics.nytimes.com/top/news/health/diseasesconditionsandhe=
althtopics/medicaid/index.html?inline=3Dnyt-classifier">Medicaid</A>=20
drug costs, which she said had been driven up by pharmaceutical =
marketing.</P>
<P>Besides her state, Maine and Vermont, Ms. Rosenwald predicted Tuesday =
that=20
other states would now take a more serious look at enacting such laws. =
</P>
<P>=93A lot of states have been looking at this and have come very close =
to=20
enacting it,=94 she said, =93and then they=92ve basically said while =
this is still on=20
appeal, we should just wait.=94=20
</P><NYT_UPDATE_BOTTOM></NYT_UPDATE_BOTTOM></DIV></NYT_TEXT><BR>
<CENTER><NYT_COPYRIGHT>
<DIV id=3Dfooter>
<DIV class=3DfooterRow><A href=3D"http://www.nytimes.com/">Home</A>=20
<UL>
  <LI><A =
href=3D"http://www.nytimes.com/pages/world/index.html">World</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/national/index.html">U.S.</A>=20
  <LI><A href=3D"http://www.nytimes.com/pages/nyregion/index.html">N.Y. =
/=20
  Region</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/business/index.html">Business</A>=20
  <LI><A=20
  =
href=3D"http://www.nytimes.com/pages/technology/index.html">Technology</A=
>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/science/index.html">Science</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/health/index.html">Health</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/sports/index.html">Sports</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/opinion/index.html">Opinion</A>=20
  <LI><A href=3D"http://www.nytimes.com/pages/arts/index.html">Arts</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/style/index.html">Style</A>=20
  <LI><A =
href=3D"http://travel.nytimes.com/pages/travel/index.html">Travel</A>=20
  <LI><A href=3D"http://www.nytimes.com/pages/jobs/index.html">Jobs</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/pages/realestate/index.html">Real=20
  Estate</A>=20
  <LI><A=20
  =
href=3D"http://www.nytimes.com/pages/automobiles/index.html">Automobiles<=
/A>=20
  <LI><A=20
  =
href=3D"http://www.nytimes.com/2008/11/19/business/19drug.html?_r=3D2&amp=
;pagewanted=3Dprint#top">Back=20
  to Top</A> </LI></UL></DIV><A=20
href=3D"http://www.nytimes.com/ref/membercenter/help/copyright.html">Copy=
right=20
2008</A> <A href=3D"http://www.nytco.com/">The New York Times =
Company</A>=20
<UL>
  <LI><A href=3D"http://www.nytimes.com/privacy">Privacy Policy</A>=20
  <LI><A=20
  =
href=3D"http://query.nytimes.com/gst/sitesearch_selector.html?query=3D&am=
p;date_select=3Dfull&amp;type=3Dnyt">Search</A>=20

  <LI><A =
href=3D"http://www.nytimes.com/corrections.html">Corrections</A>=20
  <LI><A class=3DrssButton href=3D"http://www.nytimes.com/rss">RSS</A>=20
  <LI><A href=3D"http://firstlook.nytimes.com/">First Look</A>=20
  <LI><A =
href=3D"http://www.nytimes.com/membercenter/sitehelp.html">Help</A>=20
  <LI><A=20
  =
href=3D"http://nytimes.com/ref/membercenter/help/infoservdirectory.html">=
Contact=20
  Us</A>=20
  <LI><A =
href=3D"https://careers.nytco.com/TAM/nyt_docs/TAM/candidate.html">Work=20
  for Us</A>=20
  <LI><A href=3D"http://spiderbites.nytimes.com/">Site Map</A>=20
</LI></UL></DIV></NYT_COPYRIGHT></CENTER><!-- Start UPT call --><IMG =
height=3D1=20
src=3D"http://up.nytimes.com/?d=3D0/4/&amp;t=3D&amp;s=3D0&amp;ui=3D0&amp;=
r=3D&amp;u=3Dwww%2enytimes%2ecom%2f2008%2f11%2f19%2fbusiness%2f19drug%2eh=
tml%3f%5fr%3d2%26pagewanted%3dprint"=20
width=3D3 border=3D0> <!-- End UPT call -->
<SCRIPT language=3DJavaScript><!--=0A=
          var dcsvid=3D"0";=0A=
          var regstatus=3D"non-registered";=0A=
        //--></SCRIPT>

<SCRIPT =
src=3D"http://graphics8.nytimes.com/js/app/analytics/trackingTags_v1.1.js=
"=20
type=3Dtext/javascript></SCRIPT>
<NOSCRIPT>
<DIV><IMG id=3DDCSIMG height=3D1 alt=3DDCSIMG=20
src=3D"http://wt.o.nytimes.com/dcsym57yw10000s1s8g0boozt_9t1x/njs.gif?dcs=
uri=3D/nojavascript&amp;WT.js=3DNo&amp;WT.tv=3D1.0.7"=20
width=3D1></DIV></NOSCRIPT><IMG height=3D1=20
src=3D"http://www.nytimes.com/adx/bin/clientside/50628e58Q2F)YE!-)AQ7E.-Q=
26lQ7Eh2YA-Ro2Q24k7,kY8Q5D76Q20d,Q207Q24Q20Q5D"=20
width=3D3> </BODY></HTML>

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://graphics8.nytimes.com/images/misc/logoprinter.gif

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

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://graphics8.nytimes.com/ads/spacer.gif

R0lGODlhBQAFAIAAAMDAwAAAACH5BAEAAAAALAAAAAAFAAUAAAIEhI+pWAA7

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://graphics8.nytimes.com/ads/fox/printerfriendly.gif

R0lGODlhagAYALMAAPHx8VtbXa2trHZ2dJGRk0JBSdXV1U5OTrq6uePi5YSEhcnJyaCgoGlpaf//
/wAAACH5BAAAAAAALAAAAABqABgAAAT/0MlJq7046827/2AojmRpnmiqrmzrvnAszxgTNIxj4/ri
FABHQ1hoGBaHxlDZQFCQSqHSOYQufdUkwbHIAQa9CVNgUAp0txzjnBg6BIp34LClMLDh4f0Hdru7
YhJuEoCChlU5ggEAiA4ER4kMCGCBEgNBengMBw4KbgpxXIl2aWg8ew0ECH6ESWdMTkcAUK9TQlyu
QggEjXeFAAc+YlGsO2oNAgNDCQoCZ4V2wj1reQA3hqKBDQlvDAnQS9yNhgMF2Y/gFYOXt3fUksF6
BwFg0BN7EnfWAKhcrLjEuFAiNKpKH4BLHAAwB2WLlVsUBpVB1mPfHQO3GmCaNYqGx48glkOKHEmy
pMmTJnhp/KEkwZdU/s4pCcKLXZFtLI3sODPhpgF9A1E6CBBRlCRHRwq4GzrBwBYEORoN6hcI6hd8
QuXYbLnHFwNkOQTQ45jtJrciW6hKKBKAG4OgQoNAhajDCToGBpQqdADVKd+o1rDlKQrIHkoAntrS
felQDQPEDRTXxKQjh8+dFNhiNJy1s+fPoEOLHj0hAgA7

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: image/gif
Content-Transfer-Encoding: base64
Content-Location: http://graphics8.nytimes.com/adx/images/ADS/18/63/ad.186340/sdm_aw_88x31_np.gif

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
ADs=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://up.nytimes.com/?d=0/4/&t=&s=0&ui=0&r=&u=www%2enytimes%2ecom%2f2008%2f11%2f19%2fbusiness%2f19drug%2ehtml%3f%5fr%3d2%26pagewanted%3dprint

GIF89a=01
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Location: http://wt.o.nytimes.com/dcsym57yw10000s1s8g0boozt_9t1x/njs.gif?dcsuri=/nojavascript&WT.js=No&WT.tv=1.0.7

R0lGODlhAQABAJH/AP///wAAAP///wAAACH/C0FET0JFOklSMS4wAt7tACH5BAEAAAIALAAAAAAB
AAEAAAICVAEAOw==

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Location: http://www.nytimes.com/adx/bin/clientside/50628e58Q2F)YE!-)AQ7E.-Q26lQ7Eh2YA-Ro2Q24k7,kY8Q5D76Q20d,Q207Q24Q20Q5D

R0lGODlhBQAFAIAAAMDAwAAAACH5BAEAAAAALAAAAAAFAAUAAAIEhI+pWAA7

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/css/article/screen/print.css

BODY {
	FONT: small Georgia, serif; BACKGROUND-COLOR: white
}
HTML > BODY {
	FONT: 83.5% Georgia, serif
}
A {
	COLOR: #000066
}
A:link {
	COLOR: #000066
}
A:visited {
	COLOR: #000066
}
A:hover {
	COLOR: #990000
}
A H1 {
	TEXT-DECORATION: underline
}
A H2 {
	TEXT-DECORATION: underline
}
A H3 {
	TEXT-DECORATION: underline
}
A H4 {
	TEXT-DECORATION: underline
}
A H5 {
	TEXT-DECORATION: underline
}
LI {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: =
0px; PADDING-TOP: 0px
}
UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: =
0px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
DIV.clear {
	CLEAR: both; LINE-HEIGHT: 0px
}
H1 {
	MARGIN-TOP: 3px; FONT-WEIGHT: bold; FONT-SIZE: 180%
}
.kicker {
	MARGIN-TOP: 15px; FONT-WEIGHT: bold; TEXT-TRANSFORM: uppercase; COLOR: =
#666
}
.byline {
	FONT-WEIGHT: bold; FONT-SIZE: 10pt
}
.timestamp {
	MARGIN-TOP: 15px; FONT-WEIGHT: bold; FONT-SIZE: 10pt
}
P {
	FONT-SIZE: medium; COLOR: black
}
#articleBody P {
	LINE-HEIGHT: 24px
}
#articleInline {
	BORDER-RIGHT: #ccc 1px solid; BORDER-TOP: #ccc 1px solid; FLOAT: right; =
MARGIN: 0px 0px 10px 10px; BORDER-LEFT: #ccc 1px solid; BORDER-BOTTOM: =
#ccc 1px solid
}
#inlineBox {
	PADDING-RIGHT: 11px; PADDING-LEFT: 11px; PADDING-BOTTOM: 11px; =
PADDING-TOP: 11px
}
.jumpLink {
	DISPLAY: none
}
.inlineVideo {
	DISPLAY: none
}
#authorId {
	CLEAR: both; FONT-STYLE: italic
}
#footer {
	CLEAR: both; MIN-WIDTH: 768px; FONT-SIZE: 76%; PADDING-BOTTOM: 1px; ; =
WIDTH: expression(document.body.clientWidth < 774 ? "768px" : "auto"); =
PADDING-TOP: 5px; BORDER-BOTTOM: #b9b9b9 1px solid; FONT-FAMILY: Arial, =
Helvetica, sans serif; BACKGROUND-COLOR: #e5e5e5
}
#footer UL {
	PADDING-RIGHT: 4px; MARGIN-TOP: 10px; PADDING-LEFT: 10px; =
PADDING-BOTTOM: 4px; MARGIN-LEFT: 0px; PADDING-TOP: 4px; WHITE-SPACE: =
nowrap
}
#footer LI {
	BORDER-RIGHT: #000 1px solid; ; BORDER-RIGHT: =
expression((this.parentNode.lastChild =3D=3D this)? "none" : "1px solid =
#000" ); PADDING-RIGHT: 6px; DISPLAY: inline; MARGIN-RIGHT: 6px
}
#footer LI:unknown {
	BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: =
none; BORDER-BOTTOM-STYLE: none
}
#footer P {
	MARGIN: 0px
}
#footer .footerRow {
	DISPLAY: none
}
A.rssButton {
	BORDER-RIGHT: 1px outset; PADDING-RIGHT: 3px; BORDER-TOP: 1px outset; =
PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 2px; BORDER-LEFT: =
1px outset; COLOR: #fff; PADDING-TOP: 2px; BORDER-BOTTOM: 1px outset; =
FONT-FAMILY: Verdana, Arial, Helvetica; BACKGROUND-COLOR: #f60; =
TEXT-DECORATION: none
}
A.rssButton:visited {
	BORDER-RIGHT: 1px outset; PADDING-RIGHT: 3px; BORDER-TOP: 1px outset; =
PADDING-LEFT: 4px; FONT-WEIGHT: bold; PADDING-BOTTOM: 2px; BORDER-LEFT: =
1px outset; COLOR: #fff; PADDING-TOP: 2px; BORDER-BOTTOM: 1px outset; =
FONT-FAMILY: Verdana, Arial, Helvetica; BACKGROUND-COLOR: #f60; =
TEXT-DECORATION: none
}

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/common.js

 /*  	 =0A=
 $Id: common.js 6369 2008-11-05 16:09:00Z santep $ 	 =0A=
 (c) 2006-2007 The New York Times Company 	 =0A=
 */=0A=
=0A=
	function nameIt() {=0A=
    	window.name =3D 'nytimesmain';=0A=
	    if ((navigator.appName =3D=3D "Microsoft Internet Explorer") && =
(document.all.globalsearchform)){=0A=
				document.all.globalsearchform.style.visibility =3D "visible";=0A=
      }=0A=
   }=0A=
     =0A=
	function pop_me_up(pURL,features){ =0A=
		new_window =3D window.open(pURL, "popup_window", features);=0A=
		new_window.focus();=0A=
	}=0A=
=0A=
	function pop_me_up2(pURL,name,features){=0A=
		new_window =3D window.open(pURL,name,features);=0A=
		new_window.focus();=0A=
	}=0A=
=0A=
	function changeImage(image_name,image_src) {=0A=
   		document.images[image_name].src =3D image_src;=0A=
	}=0A=
=0A=
	function goToURL(obj){=0A=
		var f =3D (obj.section) ? obj : obj.form;=0A=
		var selected =3D f.section.selectedIndex;=0A=
		var URL =3D f.section.options[selected].value;=0A=
		if (URL !=3D "") document.location =3D URL;=0A=
		return false;=0A=
	}=0A=
=0A=
	function goToURL2(sel){=0A=
	// This version only works for onChange events from select objects=0A=
	// but the select object can have any name, unlike goToURL() which =
requires =0A=
	// the select object to be named "section"=0A=
	=0A=
		var selected =3D sel.selectedIndex;=0A=
		var url =3D sel.options[selected].value;=0A=
		if (url !=3D "") document.location =3D url;=0A=
		return false;=0A=
	}=0A=
	if (window.self !=3D window.top && =
!document.referrer.match(/https?:\/\/[^?\/]+\.nytimes\.com\//)) {=0A=
		top.location.replace(window.location.pathname); =0A=
	}=0A=
	=0A=
	//begin functions for Travel flash slideshows=0A=
	function writeFlashSlideShow(xmlFile){=0A=
		var swfFile =3D =
"/slideshow/swf/slideshow.swf?XMLfile=3D/slideshow/xml/travel/" + =
xmlFile;=0A=
		=0A=
		var HTMLstr =3D "";=0A=
		HTMLstr +=3D "<object =
classid=3D\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" =
codebase=3D\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/sw=
flash.cab#version=3D6,0,0,0\" width=3D\"390\" height=3D\"300\" =
id=3D\"slideshow\" align=3D\"middle\">";=0A=
		HTMLstr +=3D "<param name=3D\"allowScriptAccess\" =
value=3D\"sameDomain\" />";=0A=
		HTMLstr +=3D "<param name=3D\"movie\" value=3D\"" + swfFile + "\" />";=0A=
		HTMLstr +=3D "<param name=3D\"quality\" value=3D\"high\" />";=0A=
		HTMLstr +=3D "<param name=3D\"wmode\" value=3D\"transparent\" />";=0A=
		HTMLstr +=3D "<embed src=3D\"" + swfFile + "\" wmode=3D\"transparent\" =
quality=3D\"high\" width=3D\"390\" height=3D\"300\" name=3D\"slideshow\" =
align=3D\"middle\" allowScriptAccess=3D\"sameDomain\" =
type=3D\"application/x-shockwave-flash\" =
pluginspage=3D\"http://www.macromedia.com/go/getflashplayer\" />";=0A=
		HTMLstr +=3D "</object>";=0A=
		return HTMLstr;=0A=
	}=0A=
	=0A=
	function showFirstSlide(imgName, photoCredit, photoCaption){=0A=
		var HTMLstr =3D "";=0A=
		HTMLstr +=3D "<!-- begin photo -->";=0A=
		HTMLstr +=3D "<img =
src=3D\"http://graphics.nytimes.com/images/section/travel/slideshow/" + =
imgName + "\" width=3D\"390\" height=3D\"200\" alt=3D\"photo\" =
border=3D\"0\">";=0A=
		HTMLstr +=3D "<!-- end photo -->";=0A=
		HTMLstr +=3D "<div align=3D\"right\" class=3D\"photocredit\">" + =
photoCredit + "</div>";=0A=
		HTMLstr +=3D "<div class=3D\"photocaption\">" + photoCaption + =
"</div>";=0A=
		return HTMLstr;=0A=
	}=0A=
	//end functions for Travel flash slideshows=0A=
	=0A=
	//begin functions for Global flash slideshows=0A=
	function writeEmbeddedFlashSlideShow(xmlFile){=0A=
		var swfFile =3D =
"/slideshow/swf/slideshow.swf?XMLfile=3D/slideshow/xml/" + xmlFile;=0A=
		=0A=
		var HTMLstr =3D "";=0A=
		HTMLstr +=3D "<object =
classid=3D\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" =
codebase=3D\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/sw=
flash.cab#version=3D6,0,0,0\" width=3D\"390\" height=3D\"300\" =
id=3D\"slideshow\" align=3D\"middle\">";=0A=
		HTMLstr +=3D "<param name=3D\"allowScriptAccess\" =
value=3D\"sameDomain\" />";=0A=
		HTMLstr +=3D "<param name=3D\"movie\" value=3D\"" + swfFile + "\" />";=0A=
		HTMLstr +=3D "<param name=3D\"quality\" value=3D\"high\" />";=0A=
		HTMLstr +=3D "<param name=3D\"wmode\" value=3D\"transparent\" />";=0A=
		HTMLstr +=3D "<embed src=3D\"" + swfFile + "\" wmode=3D\"transparent\" =
qualityaigh\" width=3D\"390\" height=3D\"300\" name=3D\"slideshow\" =
align=3D\"middle\" allowScriptAccess=3D\"sameDomain\" =
type=3D\"application/x-shockwave-flash\" =
pluginspage=3D\"http://www.macromedia.com/go/getflashplayer\" />";=0A=
		HTMLstr +=3D "</object>";=0A=
		return HTMLstr;=0A=
	}=0A=
	=0A=
	function showFirstEmbeddedSlide(imgName, photoCredit, photoCaption){=0A=
		var HTMLstr =3D "";=0A=
		HTMLstr +=3D "<!-- begin photo -->";=0A=
		HTMLstr +=3D "<img src=3D\"" + imgName + "\" width=3D\"390\" =
height=3D\"200\" alt=3D\"photo\" border=3D\"0\">";=0A=
		HTMLstr +=3D "<!-- end photo -->";=0A=
		HTMLstr +=3D "<div align=3D\"right\" class=3D\"photocredit\">" + =
photoCredit + "</div>";=0A=
		HTMLstr +=3D "<div class=3D\"photocaption\">" + photoCaption + =
"</div>";=0A=
		return HTMLstr;=0A=
	}=0A=
	//end functions for Global flash slideshows=0A=
	=0A=
	=0A=
	function preloadNavImages(imageNames, imagePath){=0A=
		var loadedImages =3D new Array();=0A=
		if (document.images) {=0A=
			for (var i=3D0; i < imageNames.length; i++){=0A=
				loadedImages[i] =3D new Image();=0A=
				loadedImages[i].src =3D imagePath + "nav_" + imageNames[i] + =
"_off.gif";=0A=
			}=0A=
		}=0A=
	=0A=
	}=0A=
	=0A=
	function readCookie(value){=0A=
		var allCookieVals =3D document.cookie.split(";");=0A=
		for (var i=3D0; i < allCookieVals.length; i++){ //loop through all =
cookies=0A=
			if (allCookieVals[i].indexOf(value) !=3D -1) { //find target cookie=0A=
				var cookieVal =3D allCookieVals[i].split("=3D"); //split name/value =
pair=0A=
				return cookieVal[1]; //return target cookie value=0A=
			}=0A=
		}=0A=
	}=0A=
	=0A=
	function expandMultimediaWindow(){=0A=
		if (window.resizeTo && window.moveTo) {=0A=
			window.resizeTo(screen.availWidth, screen.availHeight);=0A=
			window.moveTo(0,0);=0A=
		}=0A=
	}=0A=
	=0A=
	function shrinkMultimediaWindow(w,h){=0A=
		if (window.resizeTo) window.resizeTo(w,h);=0A=
		if (window.moveTo) {=0A=
			var winX =3D ((screen.availWidth/2) - (w/2));=0A=
			var winY =3D ((screen.availHeight/2) - (h/2));=0A=
			window.moveTo(winX,winY);=0A=
		}=0A=
	}=0A=
	=0A=
	function ieXLiquidWidth() {=0A=
		if (document.body.clientWidth < 774) {=0A=
			return "768px";=0A=
		} else if (document.body.clientWidth > 984) {=0A=
			return "980px";=0A=
		} else {=0A=
			return "auto";=0A=
		}=0A=
	}=0A=
=0A=
	function setClientSizeCookies() {=0A=
        	var client_w =3D document.body.clientWidth;=0A=
       		var path =3D "/";=0A=
        	var domain =3D "nytimes.com";=0A=
        	document.cookie =3D "client_w=3D" + client_w + "; path=3D " + =
path + "; domain=3D" + domain;=0A=
	}=0A=
=0A=
=0A=
=0A=
// Function for Classifieds and Most Popular modules=0A=
   function Accordian(target) {=0A=
   	typeof target =3D=3D "object" ? this.element =3D target : =
this.element =3D document.getElementById(target); if (!this.element) =
return false;  =0A=
   	this.ul =3D this.element.getElementsByTagName("ul")[0]; =0A=
   	this.tabs =3D this.ul.getElementsByTagName("li");=0A=
   	this.tabContent =3D this.getTabContent();=0A=
   	this.bind();=0A=
   }=0A=
=0A=
   Accordian.prototype.getTabContent =3D function() {=0A=
   	tabContent=3D new Array();    =0A=
   	this.divs =3D this.element.getElementsByTagName("div");=0A=
   	for(var i =3D 0; i < this.divs.length; i++) {=0A=
           if (/tabContent/i.test(this.divs[i].className)) {=0A=
           tabContent.push(this.divs[i]);                        =0A=
   		}=0A=
   	}=0A=
   	return tabContent;=0A=
   }=0A=
=0A=
=0A=
   Accordian.prototype.bind =3D function() {    =0A=
   	var o =3D this;=0A=
   	for(var i =3D 0; i < this.tabs.length; i++) {=0A=
   		this.tabs[i].onclick =3D function() { =0A=
   		   if (this.className !=3D 'selected') {=0A=
   		      o.open(this); return false;=0A=
   		      var a =3D this.getElementsByTagName("a")[0];=0A=
   		      if (a) a.onclick =3D function() { =0A=
                    return false; =0A=
               }=0A=
   		   }=0A=
   		} =0A=
   	}=0A=
   }=0A=
=0A=
   Accordian.prototype.open =3D function(caller) {    =0A=
   	for(var i =3D 0; i < this.tabs.length; i++) {=0A=
   		var tab =3D this.tabs[i]; =0A=
   		if (tab =3D=3D caller) {  =0A=
   			this.collapse();=0A=
   			tab.className =3D "selected"=0A=
   			this.tabContent[i].style.display =3D "block";=0A=
   		}=0A=
   	}=0A=
   }=0A=
=0A=
   Accordian.prototype.collapse =3D function() {=0A=
   	for(var i =3D 0; i < this.tabs.length; i++) {    =0A=
   		this.tabs[i].className =3D "";=0A=
   		this.tabContent[i].style.display =3D "none";                 =0A=
   	}                                                                =0A=
   }=0A=
=0A=
//Function for Google ads links=0A=
function linkbox(url, winName) {=0A=
   window.open(url, winName, =0A=
"location=3Dyes,directories=3Dyes,menubar=3Dyes,toolbar=3Dyes,status=3Dye=
s,resizable=3Dyes,scrollbars=3Dyes");=0A=
}    =0A=
=0A=
=0A=
function enhanceAccordians() {=0A=
	var divs =3D document.getElementsByTagName('div');=0A=
	for (var i =3D 0; i < divs.length; i++) {=0A=
		var element =3D divs[i];     =0A=
		if (/accordian/i.test(element.className)) {=0A=
			new Accordian(element);=0A=
		}=0A=
	} =0A=
}=0A=
=0A=
getMetaTagValue =3D function(name){=0A=
        if (document.getElementsByTagName) {=0A=
                var meta =3D document.getElementsByTagName("meta");=0A=
                for (var i=3D0; i < meta.length; i++) {=0A=
                        if (meta[i].name =3D=3D name) return =
meta[i].content;=0A=
                }=0A=
        }=0A=
}=0A=
=0A=
var NYTD =3D NYTD || {};=0A=
=0A=
NYTD.Hosts =3D (function(){=0A=
  var host, scripts =3D document.getElementsByTagName("script");=0A=
  =0A=
  for (var i =3D 0, script; script =3D scripts[i]; i++) {=0A=
    host =3D script.src && =
/^(.+\.nytimes.com)\/js\/common\.js/.test(script.src) ? RegExp.$1 : '';=0A=
    if (host) { break };=0A=
  };=0A=
=0A=
  return {=0A=
    imageHost: host,=0A=
    jsHost: host,=0A=
    cssHost: host=0A=
  }=0A=
})();=0A=
=0A=
=0A=
NYTD.require =3D function(file, callback) {=0A=
  =0A=
  if (document.loaded) { throw('Cannot require file, document is already =
loaded'); }  =0A=
  =0A=
  var force =3D arguments[arguments.length - 1] =3D=3D=3D true;=0A=
  var scripts =3D document.getElementsByTagName("script");=0A=
  var loaded_scripts =3D {};=0A=
  =0A=
  for (var i =3D 0, script; script =3D scripts[i]; i++) {=0A=
    if(script.src) { loaded_scripts[script.src] =3D 1; }=0A=
  };=0A=
=0A=
  var url =3D file.indexOf('/') =3D=3D 0 ?  NYTD.Hosts.jsHost + file : =
file;=0A=
  =0A=
  if (force || !loaded_scripts[url]) { =0A=
    document.write('<script src=3D"' + url + '" type=3D"text/javascript" =
charset=3D"utf-8" onerror=3D"throw(\'NYTD.require: An error =
occured\')"><\/script>');=0A=
  }=0A=
  =0A=
  if (typeof callback =3D=3D 'function') {=0A=
    =0A=
    if (document.addEventListener) {=0A=
      document.write('<script type=3D"text/javascript" =
charset=3D"utf-8">(' + callback.toString() + ')();<\/script>');=0A=
    }=0A=
    else {=0A=
      NYTD.require.callbacks =3D NYTD.require.callbacks || [];=0A=
      NYTD.require.callbacks.push(callback);=0A=
      document.write("<script id=3D__onAfterRequire" + =
NYTD.require.callbacks.length + " src=3D//:><\/script>");=0A=
      document.getElementById("__onAfterRequire" + =
NYTD.require.callbacks.length).onreadystatechange =3D function() {=0A=
        if (this.readyState =3D=3D "complete") {=0A=
          this.onreadystatechange =3D null;=0A=
          (NYTD.require.callbacks.pop())();=0A=
        }=0A=
      };=0A=
    }=0A=
    =0A=
  }=0A=
  =0A=
};=0A=
=0A=
=0A=
// Load TimesPeople=0A=
if (!window.TimesPeople && navigator.userAgent.indexOf('AppleWebKit/41') =
=3D=3D -1 && !window.opera) {=0A=
  NYTD.require('/js/app/timespeople/preloader.js');=0A=
}=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/article/articleShare.js

// $Id: articleShare.js 5367 2008-09-18 22:28:38Z ccorliss $=0A=
=0A=
function showHideSwap (id1, id2) {=0A=
	if (document.getElementById) {=0A=
		if (document.getElementById(id1).className =3D=3D 'hide' && =
document.getElementById(id2).className =3D=3D 'post') {=0A=
			document.getElementById(id1).className =3D 'show';=0A=
			document.getElementById(id2).className =3D 'postFrame';=0A=
		} else {=0A=
       		     	document.getElementById(id1).className =3D 'hide';=0A=
            		document.getElementById(id2).className =3D 'post';=0A=
		}=0A=
	}=0A=
}=0A=
=0A=
function articleShare(site) {=0A=
	var popUpUrl;=0A=
    var title =3D getShareHeadline();=0A=
    var description =3D getShareDescription();=0A=
	switch (site) {=0A=
	case "newsvine":=0A=
		popUpUrl =3D generatePasskeyURL('newsvine');=0A=
		var keywords =3D getShareSection(); =0A=
		if(typeof(getShareSubSection) =3D=3D 'function') {=0A=
			if(getShareSubSection() !=3D '') {=0A=
				keywords =3D keywords + ',' + getShareSubSection();=0A=
			}=0A=
		}=0A=
		if (getShareKeywords() !=3D '') {=0A=
			keywords =3D keywords + ',' + getShareKeywords();=0A=
		}=0A=
		=
postPopUp('http://www.newsvine.com/_wine/save?ver=3D2&popoff=3D0&aff=3Dny=
times&t=3D' + keywords + '&e=3D' + description + '&h=3D' + title + =
'&u=3D' + popUpUrl, 'newsvine', =
'toolbar=3D0,status=3D0,height=3D445,width=3D650,scrollbars=3Dyes,resizab=
le=3Dyes');=0A=
		s_code_linktrack('Article-Tool-Share-Newsvine');=0A=
		break;=0A=
	case "facebook":=0A=
		popUpUrl =3D generatePasskeyURL('facebook');=0A=
		postPopUp('http://www.facebook.com/sharer.php?u=3D' + popUpUrl + =
'&t=3D' + title, 'facebook', =
'toolbar=3D0,status=3D0,height=3D436,width=3D646,scrollbars=3Dyes,resizab=
le=3Dyes');=0A=
		s_code_linktrack('Article-Tool-Share-Facebook');=0A=
		break;=0A=
	case "digg":=0A=
		popUpUrl =3D generatePasskeyURL('digg');=0A=
		var topic =3D getShareSection();	=0A=
		postPopUp('http://digg.com/remote-submit?phase=3D2&url=3D' + popUpUrl =
+ '&title=3D' + title + '&bodytext=3D' + description, 'digg', =
'toolbar=3D0,status=3D0,height=3D450,width=3D650,scrollbars=3Dyes,resizab=
le=3Dyes');=0A=
		s_code_linktrack('Article-Tool-Share-Digg');=0A=
		break;	=0A=
	case "permalink":=0A=
		popUpUrl =3D generatePasskeyURL('permalink');=0A=
		var section =3D getShareSectionDisplay();=0A=
		var byline =3D getShareByline();=0A=
		var pubdate =3D getSharePubdate();	=0A=
		=
postPopUp('http://www.nytimes.com/export_html/common/new_article_post.htm=
l?url=3D' + popUpUrl + '&title=3D' + title+ '&summary=3D' + description =
+ '&section=3D' + section + '&pubdate=3D' + pubdate + '&byline=3D' + =
byline, 'permalink', =
'toolbar=3D0,status=3D0,height=3D410,width=3D490,scrollbars=3Dyes,resizab=
le=3Dno');=0A=
		s_code_linktrack('Article-Tool-Share-Permalink');=0A=
		break;	=0A=
	case "delicious":=0A=
		popUpUrl =3D generatePasskeyURL('delicious');=0A=
		=
postPopUp('http://del.icio.us/post?v=3D4&partner=3Dnyt&noui&jump=3Dclose&=
url=3D' + popUpUrl + '&title=3D' + title + '&bodytext=3D' + description, =
'delicious', =
'toolbar=3D0,status=3D0,height=3D400,width=3D700,scrollbars=3Dyes,resizab=
le=3Dno');=0A=
		s_code_linktrack('Article-Tool-Share-Delicious');=0A=
		break;			=0A=
=0A=
	case "yahoobuzz":=0A=
		// fall-back behavior.  At least it'll just open the page in a new =
window/tab, but not downsized.=0A=
    		postPopUp( 'http://buzz.yahoo.com/article/new_york_times/'=0A=
			    + encodeURIComponent(getShareURL()),=0A=
			    'yahoobuzz',=0A=
                         'scrollbars=3Dyes,resizable=3Dyes'=0A=
		);=0A=
		s_code_linktrack('Article-Tool-Share-YahooBuzz');=0A=
		break;			=0A=
=0A=
	case "mixx":=0A=
		try {=0A=
		    var popUpUrl =3D getShareURL();=0A=
		    var passKey  =3D encodeURIComponent( '?' + getSharePasskey() );=0A=
		    var otherParams =3D =0A=
			     '&title=3D'       + getShareHeadline()=0A=
			   + '&description=3D' + getShareDescription()=0A=
			   + '&tags=3D'        + getShareKeywords()=0A=
			   + '&partner=3D'     + 'NYT';=0A=
		    postPopUp( =0A=
			   'http://mini.mixx.com/submit/story'=0A=
			   + '?page_url=3D'    + getShareURL()=0A=
			   + passKey =0A=
			   + otherParams,=0A=
			   'mixx',=0A=
			   =
'toolbar=3D0,status=3D0,height=3D550,width=3D700,scrollbars=3Dyes,resizab=
le=3Dno'=0A=
		    );=0A=
		} catch(e) {=0A=
		    postPopUp( =0A=
			   'http://mini.mixx.com/submit/story'=0A=
			   + '?page_url=3D'    + getShareURL()=0A=
			   + '&title=3D'       + getShareHeadline()=0A=
			   + '&partner=3D'     + 'NYT'=0A=
			   ,=0A=
			   'mixx',=0A=
			   =
'toolbar=3D0,status=3D0,height=3D550,width=3D700,scrollbars=3Dyes,resizab=
le=3Dno'=0A=
		    );=0A=
		}=0A=
		s_code_linktrack('Article-Tool-Share-Mixx');=0A=
		break;=0A=
	case "linkedin":=0A=
	  =
//http://www.linkedin.com/shareArticle?mini=3Dtrue&url=3D{articleUrl}&tit=
le=3D{articleTitle}&summary=3D{articleSummary}&source=3D{articleSource}=0A=
	  postPopUp(=0A=
	     'http://www.linkedin.com/shareArticle?mini=3Dtrue'=0A=
		   + '&url=3D'         + getShareURL()=0A=
		   + '&title=3D'       + getShareHeadline()=0A=
		   + '&summary=3D'     + description=0A=
		   + '&source=3D'      + 'The New York Times'=0A=
		   ,=0A=
		   'Linkedin',=0A=
		   =
'toolbar=3D0,status=3D0,height=3D550,width=3D700,scrollbars=3Dyes,resizab=
le=3Dno'=0A=
	  )=0A=
	  s_code_linktrack('Article-Tool-Share-LinkedIn');=0A=
	     break;=0A=
	}=0A=
}=0A=
=0A=
function generatePasskeyURL(tracker) {=0A=
	var shareURL =3D getShareURL();=0A=
	var queryStr =3D (decodeURIComponent(shareURL).indexOf('?') > 0) ? "&" =
: "?";=0A=
=0A=
        switch (tracker){=0A=
                case "permalink": break;=0A=
                default: var passkey =3D getSharePasskey(); queryStr =
+=3D (passkey !=3D '') ? passkey + "&" : "";=0A=
        }=0A=
        queryStr +=3D 'partner=3D' + tracker;=0A=
        queryStr +=3D '&exprod=3D' + tracker;=0A=
=0A=
        return shareURL + encodeURIComponent(queryStr);=0A=
}=0A=
=0A=
function postPopUp(url, name, params) {=0A=
	var win =3D window.open(url, name, params);=0A=
}=0A=
=0A=
function addPostItem(parentElement, sharelinkName, sharelinkText) {=0A=
	var imageHost =3D "http://graphics8.nytimes.com";=0A=
	var imagePath =3D "/images/article/functions/";=0A=
	if( document.createElement ){=0A=
		if( typeof(window.shareToolsExcludeList)!=3D'undefined'=0A=
		    && =
typeof(window.shareToolsExcludeList[sharelinkName])!=3D'undefined' ) {=0A=
		    return;=0A=
		}=0A=
		var postItem =3D document.createElement("LI");=0A=
		postItem.className =3D sharelinkName;=0A=
		=0A=
		var itemLink =3D document.createElement("A");=0A=
		itemLink.setAttribute("href", "javascript:articleShare('"+ =
sharelinkName +"');");=0A=
		itemLink.style.backgroundImage =3D "url('" + imageHost + imagePath + =
sharelinkName + ".gif')";=0A=
		itemLink.innerHTML =3D sharelinkText;=0A=
=0A=
		postItem.appendChild(itemLink);=0A=
		parentElement.appendChild(postItem);=0A=
	}=0A=
}=0A=
=0A=
function writePost(excludeList) {=0A=
	=0A=
	if( document.createElement ){=0A=
		var parentElement =3D document.getElementById('toolsList');=0A=
		=0A=
		//create post li=0A=
		var postElement =3D document.createElement( "LI");=0A=
		postElement.className =3D "post";=0A=
		postElement.setAttribute("id", "post");=0A=
		// create post link=0A=
		var postLink =3D document.createElement("A");=0A=
		postLink.setAttribute("href", "#");=0A=
		//postLink.setAttribute("onClick", "showHideSwap(\'postList\', =
\'post\'); return false;");=0A=
		postLink.onclick =3D function () { showHideSwap('postList', 'post'); =
return false; };=0A=
		postLink.innerHTML =3D " Share";=0A=
=0A=
		postElement.appendChild(postLink);=0A=
		=0A=
		// create unordered list for post items=0A=
		var postList =3D document.createElement("UL");=0A=
		postList.setAttribute("id","postList");	=0A=
		postList.className =3D "hide";=0A=
=0A=
		// If excludeList is supplied, it's a hash keyed on vendor names=0A=
		// (CSS class names for the vendor links, actually)=0A=
		if(typeof(excludeList)!=3D'undefined') {=0A=
		    window.shareToolsExcludeList =3D excludeList;=0A=
		}=0A=
		=0A=
		//add post links=0A=
		addPosts(postList);=0A=
		=0A=
		postElement.appendChild(postList); =0A=
		parentElement.appendChild(postElement); =0A=
		instrumentYahooBuzzBadge();=0A=
	}=0A=
=0A=
}=0A=
=0A=
function createYahooBuzzOnLoad() {=0A=
	=0A=
	// An event listener is attached once the badge is loaded so that =0A=
	// function itself is separated from the dom ref via a closure to =
prevent IE 6 memory leakage.=0A=
	window.yahooBuzzOnLoad =3D function () {=0A=
		var onclick =3D function () {=0A=
			// this is the onclick handler that gets attached to the badge.=0A=
			s_code_linktrack('Article-Tool-Share-YahooBuzz');=0A=
		};=0A=
		return function () {=0A=
		    if(typeof(window['yahooBuzzOnLoad'])!=3D'function') {=0A=
			    window.yahooBuzzOnLoad=3Dnull; // clean up the global.=0A=
		    }=0A=
			var badge =3D document.getElementById('yahooBuzzBadge-form');=0A=
			if ( badge ) {=0A=
				if ( badge.addEventListener ) {=0A=
					badge.addEventListener('click', onclick, true);=0A=
				} else if ( badge.attachEvent ) {=0A=
					badge.attachEvent('click', onclick);=0A=
				} else {=0A=
					// can't put an onclick directly, or it'll break the badge.=0A=
					// This is an edge case, so losing non-mousers is not very =
significant.=0A=
					badge.onmousedown =3D onclick;=0A=
				}=0A=
			}=0A=
		}=0A=
	}();=0A=
	=0A=
};=0A=
=0A=
function instrumentYahooBuzzBadge() {=0A=
	=0A=
	if ( document.getElementById('yahooBuzzBadge') ) {=0A=
		// already instrumented. Abort.=0A=
		return;=0A=
	}=0A=
	=0A=
	var list =3D document.getElementById('postList');=0A=
	if ( !list ) {=0A=
		// haven't created the list yet. Abort.=0A=
		return;=0A=
	}=0A=
	=0A=
	createYahooBuzzOnLoad();=0A=
	=0A=
	var postLinks =3D list.getElementsByTagName('a');=0A=
	for ( var i =3D 0, l =3D postLinks.length; i < l; i ++ ) {=0A=
		var href =3D postLinks[i].href;=0A=
		href =3D href.toLowerCase();=0A=
		if ( href.indexOf('buzz') !=3D=3D -1 && href.indexOf('yahoo') !=3D=3D =
-1 ) {=0A=
			// works whether it's the real URL or the javascript: with yahoobuzz =
in the call.=0A=
			var badge =3D postLinks[i];=0A=
			badge.id =3D 'yahooBuzzBadge';=0A=
		}=0A=
	}=0A=
	=0A=
	// Y! Buzz requires its own script be included dynamically like this ...=0A=
	var artUriYahoo =3D decodeURIComponent(getShareURL());=0A=
	document.write(=0A=
	        '<script badgetype=3D"text" =
src=3D"http://d.yimg.com/ds/badge.js">new_york_times:'=0A=
		 + artUriYahoo=0A=
		 + '</script>'=0A=
	);=0A=
}=0A=
=0A=
function addPosts(shareList) {	=0A=
		=0A=
		if(document.getElementById) {	=0A=
			var sList;=0A=
				=0A=
			if(typeof(shareList)=3D=3D'string') {=0A=
				sList =3D document.getElementById(shareList); =0A=
				}=0A=
			=0A=
			else if(typeof(shareList)=3D=3D'object') { =0A=
				sList =3D shareList;=0A=
			}=0A=
			=0A=
			else {=0A=
				return false;=0A=
			}=0A=
=0A=
			addPostItem(sList, "linkedin", "Linkedin");=0A=
			addPostItem(sList, "digg", "Digg");=0A=
			addPostItem(sList, "facebook", "Facebook");=0A=
			addPostItem(sList, "mixx", "Mixx");=0A=
			addPostItem(sList, "yahoobuzz", "Yahoo! Buzz");=0A=
			addPostItem(sList, "permalink", "Permalink");=0A=
		}=0A=
}=0A=
=0A=
=0A=
function toggleShareTab(shareButton, postList, excludeList) {=0A=
=0A=
	if(document.getElementById && document.getElementById(shareButton) && =
document.getElementById(postList)) {=0A=
=0A=
		if(typeof(excludeList)!=3D'undefined') {=0A=
		    window.shareToolsExcludeList =3D excludeList;=0A=
		}=0A=
=0A=
		addPosts(postList);=0A=
		var shareSpan =3D document.getElementById(shareButton)=0A=
		var listContainer =3D document.getElementById(postList)=0A=
		var shareLink =3D shareSpan.getElementsByTagName("a")=0A=
=0A=
		if(shareLink && listContainer){=0A=
=0A=
			shareLink[0].onclick =3D function() {=0A=
				if(this.parentNode.className=3D=3D"")=0A=
					{=0A=
					 this.parentNode.className=3D"open";=0A=
					 listContainer.style.display=3D"block";=0A=
					 return false;=0A=
					} else { this.parentNode.className=3D"";=0A=
						 listContainer.style.display=3D"none";=0A=
						 return false;=0A=
						}=0A=
			} =0A=
		} =0A=
	} =0A=
	else return false;=0A=
}=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/Tacoda_AMS_DDC_Header.js

var Tacoda_AMS_DDC_snippet_version =3D "1.3a";=0A=
var Tacoda_AMD_DDC_snippet_date =3D "011905";=0A=
var Tacoda_AMS_DDC_clist =3D new Array("TID","RMID","nyt-d");=0A=
var Tacoda_AMS_DDC_clist_notset =3D null;=0A=
var Tacoda_AMS_DDC_keys =3D new Array();=0A=
var Tacoda_AMS_DDC_values =3D new Array();=0A=
var Tacoda_AMS_DDC_vars_num =3D 0;=0A=
function Tacoda_AMS_DDC_getCookie(name) {=0A=
var cname =3D name + "=3D";=0A=
var dc =3D document.cookie;=0A=
if (dc.length > 0) {=0A=
for(var begin =3D dc.indexOf(cname); begin !=3D -1; begin =3D =0A=
dc.indexOf(cname, begin)) {=0A=
if((begin !=3D 0) && (dc.charAt(begin - 1) !=3D ' ')) {=0A=
begin++;=0A=
continue;=0A=
}=0A=
begin +=3D cname.length;=0A=
var end =3D dc.indexOf(";", begin);=0A=
if (end =3D=3D -1)=0A=
end =3D dc.length;=0A=
return unescape(dc.substring(begin, end));=0A=
}=0A=
}=0A=
return Tacoda_AMS_DDC_clist_notset;=0A=
}=0A=
function Tacoda_AMS_DDC_addPair(key, value) {=0A=
Tacoda_AMS_DDC_keys[Tacoda_AMS_DDC_vars_num] =3D key;=0A=
Tacoda_AMS_DDC_values[Tacoda_AMS_DDC_vars_num] =3D value;=0A=
Tacoda_AMS_DDC_vars_num++;=0A=
}=0A=
function Tacoda_AMS_DDC_collect_vars() {=0A=
var Tacoda_AMS_DDC_vars_as_string =3D "";=0A=
for(var i =3D 0; i < Tacoda_AMS_DDC_vars_num; i++) {=0A=
Tacoda_AMS_DDC_vars_as_string +=3D "&var_" + escape( =0A=
Tacoda_AMS_DDC_keys[i] ) + "=3D" + escape( Tacoda_AMS_DDC_values[i] ) ;=0A=
}=0A=
return Tacoda_AMS_DDC_vars_as_string;=0A=
}=0A=
function Tacoda_AMS_DDC(Tacoda_AMS_DDC_img_url, Tacoda_AMS_DDC_js) {=0A=
Tacoda_AMS_DDC_js =3D parseFloat(Tacoda_AMS_DDC_js);=0A=
Tacoda_AMS_DDC_args =3D "?" + Math.random() + "&snippet_version=3D" + =0A=
Tacoda_AMS_DDC_snippet_version + "&referrer=3D" + =
escape(document.referrer) + =0A=
"&page=3D" + escape(window.location.href);=0A=
Tacoda_AMS_DDC_args +=3D "&timezone=3D" + (new =
Date()).getTimezoneOffset();=0A=
for(var i =3D 0; i < Tacoda_AMS_DDC_clist.length; i++) {=0A=
var clist_name =3D Tacoda_AMS_DDC_clist[i];=0A=
var clist_value =3D Tacoda_AMS_DDC_getCookie(clist_name);=0A=
if(clist_value !=3D null) {=0A=
Tacoda_AMS_DDC_args +=3D "&clist_" + escape(clist_name) + "=3D" + =0A=
escape(clist_value);=0A=
}=0A=
}=0A=
Tacoda_AMS_DDC_args +=3D Tacoda_AMS_DDC_collect_vars();=0A=
document.write('<IMG '+'SRC=3D"' + Tacoda_AMS_DDC_img_url + =0A=
Tacoda_AMS_DDC_args + '" height=3D"1" width=3D"1" border=3D"0" =
id=3D"tacoda">');=0A=
}=0A=
=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/fileit.js

// function furlIt(title, url, clip, referrer, partner) {=0A=
//  var furlit=3Dwindow.open(buildURL(title, url, clip, referrer, =
partner, =
true),'myfurlwindow','scrollbars=3Dno,width=3D475,height=3D575,left=3D75,=
top=3D20,status=3Dno,resizable=3Dyes');=0A=
//     furlit.focus();=0A=
//     return false;=0A=
// }=0A=
=0A=
/**=0A=
 * This function is now exclusively Article Tools Save, =0A=
 * The SAVE link included within each article=0A=
 * =0A=
 */=0A=
function furlItNoPop(title, url, clip, referrer, partner) {=0A=
	articleToolsSave(title, url, clip, referrer, partner);=0A=
	=0A=
}=0A=
=0A=
/**=0A=
 * Article tools save=0A=
 * 1-click with simple confirmation=0A=
 * =0A=
 */=0A=
function articleToolsSave(title, url, clip, referrer, partner) {=0A=
    saveArticle(buildURL(title, url, clip, referrer, partner, =
"articleToolsSave"));=0A=
    return false;=0A=
    =0A=
}=0A=
=0A=
function dropDownToolsSave(title, url, clip, referrer, partner) {=0A=
    document.location.href =3D buildURL(title, url, clip, referrer, =
partner, "normal");=0A=
    return false;=0A=
    =0A=
}=0A=
=0A=
function buildURL(title, url, clip, referrer, partner, type) {=0A=
    =0A=
    var d =3D document;=0A=
    =0A=
    pop =3D "p=3D1";=0A=
    =0A=
    if (!title) {=0A=
        title =3D "";=0A=
    } else {=0A=
        title =3D "&t=3D" + encodeIt(title);=0A=
    }=0A=
    =0A=
    if (!url) {=0A=
        url=3D "&u=3D";=0A=
    } else {=0A=
        url =3D "&u=3D" + escape(url);=0A=
    }=0A=
    =0A=
    if (!referrer) {=0A=
        referrer =3D d.referrer;=0A=
        if (!referrer) {=0A=
            referrer =3D "&r=3D";=0A=
        }=0A=
        =0A=
    } else {=0A=
        referrer =3D "&r=3D" + escape(referrer);=0A=
    }=0A=
    =0A=
    if (partner && partner !=3D "") {=0A=
        partner =3D "&source=3D" + partner;=0A=
    } else {=0A=
        partner =3D "";=0A=
    }=0A=
    =0A=
    if (!clip) {=0A=
        =
d.selection?(d.selection.type!=3D"None"?d.selection.createRange().text:""=
):(d.getSelection?d.getSelection():"");=0A=
        if (document.selection) {=0A=
           if (d.selection.type !=3D "None") {=0A=
               clip =3D d.selection.createRange().text;=0A=
           }=0A=
        } else if (d.getSelection) {=0A=
            clip =3D d.getSelection();=0A=
        } else if (getSelection) {=0A=
            clip =3D getSelection();=0A=
        }=0A=
        if (!clip) {=0A=
            clip =3D "";=0A=
        }=0A=
    }=0A=
    clip =3D "&c=3D" + encodeIt(clip);=0A=
    =0A=
    if(typeof(getShareSection) !=3D "undefined") {=0A=
        shareSection =3D "&dt=3D" + getShareSection();=0A=
    } else {=0A=
        shareSection =3D "";=0A=
    }=0A=
    =0A=
    if(type =3D=3D "normal") {=0A=
        return "http://timesfile.nytimes.com/storeIt.jsp?" + pop + title =
+ url + referrer + partner + clip + shareSection;=0A=
        =0A=
    } else if(type =3D=3D "articleToolsSave") {=0A=
        store =3D "&store=3DnytOneClick";=0A=
        return "http://timesfile.nytimes.com/store?" + pop + title + url =
+ referrer + partner + store + clip + shareSection;=0A=
        =0A=
    } else {=0A=
        store =3D "&store=3DmostPopularOneClick";=0A=
        =0A=
        if(days) {=0A=
            days =3D "&days=3D" + days;=0A=
        }=0A=
        =0A=
        if(mppg) {=0A=
            page =3D "&page" + mppg;=0A=
        }=0A=
        =0A=
        //prompt("MP One Click Save URL", =
"http://timesfile.nytimes.com/store?" + pop + title + url + referrer + =
partner + store + clip + shareSection + page + days);=0A=
        =0A=
        return "http://timesfile.nytimes.com/store?" + pop + title + url =
+ referrer + partner + store + clip + shareSection + page + days;=0A=
        =0A=
    }=0A=
    =0A=
}=0A=
=0A=
function encodeIt(strToEncode) {=0A=
    if (typeof(encodeURIComponent) !=3D 'function') {=0A=
        retVal =3D escape(strToEncode);=0A=
        =0A=
    } else {=0A=
	    retVal =3D encodeURIComponent(strToEncode);=0A=
	    =0A=
    }=0A=
    return retVal;=0A=
}=0A=
=0A=
function decodeIt(strToDecode) {=0A=
    if (typeof(decodeURIComponent) !=3D 'function') {=0A=
        retVal =3D unescape(strToEncode);=0A=
        =0A=
    } else {=0A=
	    retVal =3D decodeURIComponent(strToDecode);=0A=
	    =0A=
    }=0A=
    return retVal;=0A=
}=0A=
=0A=
function saveArticle(url) {=0A=
	var int_windowLeft =3D (screen.width - 420) / 2;=0A=
	var int_windowTop =3D (screen.height - 370) / 2;=0A=
	var str_windowProperties =3D ',top=3D' + int_windowTop + ',left=3D' + =
int_windowLeft ;=0A=
	new_window =3D =
window.open(url,"save","width=3D420,height=3D370,scrollbars=3D0,statusbar=
=3D0,resizable=3D1,toolbar=3D0,location=3D0,menubar=3D0"+str_windowProper=
ties);=0A=
	new_window.focus();=0A=
}
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/common/screen/DropDown.js

function DropDown( dropDownId ){=0A=
	if( window.dropDowns && window.dropDowns[dropDownId] ){		// already =
registered=0A=
		return window.dropDowns[dropDownId];=0A=
	} else {													// unregistered=0A=
		this.elementId =3D dropDownId;=0A=
		this.mouseOver =3D false;=0A=
		this.timeoutID;=0A=
		=0A=
		var ddObj =3D this.getElement();=0A=
	=0A=
//		if( ddObj.className !=3D "dropDown" ) throw new Error( =
this.elementId + " is not a valid DropDown. Please make sure you have =
provided it a CSS class of 'dropDown'." );=0A=
		=0A=
		//register=0A=
		if( !window.dropDowns )	window.dropDowns =3D new Object();=0A=
		window.dropDowns[this.dropDownId] =3D this;=0A=
	}				=0A=
}=0A=
=0A=
DropDown.prototype.show =3D function(){=0A=
	ddObj =3D this.getElement();=0A=
	ddObj.style.visibility =3D "visible";=0A=
	=0A=
	ddObj.onmouseout =3D function( event ){=0A=
		window.dropDowns[this.elementId].mouseOver =3D false;=0A=
		this.timeoutID =3D window.setTimeout( "window.dropDowns['" + =
this.elementId + "'].checkOver();" , 500  );=0A=
		=0A=
	}=0A=
	=0A=
	ddObj.onmouseover =3D function( event ){=0A=
		window.dropDowns[this.elementId].mouseOver =3D true;=0A=
		window.clearTimeout(this.timeoutID);=0A=
	}=0A=
}=0A=
=0A=
DropDown.prototype.TimeOut =3D function(){=0A=
	var ddObj =3D this;=0A=
	this.timeoutID =3D window.setTimeout( function(){ddObj.checkOver();} , =
500  );=0A=
}=0A=
=0A=
DropDown.prototype.hide =3D function(){=0A=
	this.getElement().style.visibility =3D "hidden";=0A=
}=0A=
=0A=
DropDown.prototype.getElement =3D function(){=0A=
	return document.getElementById( this.elementId );=0A=
}=0A=
=0A=
DropDown.prototype.checkOver =3D function(){=0A=
	if( this.mouseOver =3D=3D false ) this.hide();=0A=
}=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/common/screen/modifyNavigationDisplay.js

function modifyNavigationDisplay(){=0A=
	if(document.createElement && document.getElementById( "navigation")) {	=0A=
		var navDiv =3D document.getElementById( "navigation" );=0A=
		var navList =3D evalChildNodes( navDiv , ["nodeName.toLowerCase() =
=3D=3D 'ul'" , "className =3D=3D 'tabs'"] );=0A=
		var selectedItem =3D evalChildNodes ( navList , ["className =3D=3D =
'selected'" , "nodeName.toLowerCase() =3D=3D 'li'"] ); if =
(!selectedItem) return false;=0A=
		var subNavList =3D evalChildNodes( selectedItem , =
["nodeName.toLowerCase() =3D=3D 'ul'"] );=0A=
		=0A=
		if(subNavList) {=0A=
		=0A=
			subNavList.id =3D "sub" + selectedItem.id;=0A=
=0A=
			var subNavDiv =3D document.createElement( "DIV" );=0A=
			subNavDiv.id =3D "subNavigation";=0A=
			navDiv.appendChild( subNavDiv );=0A=
			selectedItem.removeChild( subNavList );=0A=
=0A=
			subNavDiv.appendChild( subNavList );=0A=
		}=0A=
	}=0A=
}=0A=
=0A=
=0A=
=0A=
function evalChildNodes( parentObj , evalStatementArray ){=0A=
	var evalStatement =3D new String();=0A=
=0A=
	try{=0A=
		for( iESA=3D0 ; iESA < evalStatementArray.length ; iESA++ ){=0A=
			if( iESA !=3D 0 ) evalStatement +=3D " && ";=0A=
			evalStatement +=3D " parentObj.childNodes[iECN]." + =
evalStatementArray[iESA] + " ";=0A=
		}=0A=
		=0A=
		for( iECN=3D0 ; iECN < parentObj.childNodes.length ; iECN++ ){=0A=
			if( eval( evalStatement ) ){=0A=
				return parentObj.childNodes[iECN];=0A=
			}=0A=
		}=0A=
		return null;=0A=
	} catch( e ){=0A=
		return null;=0A=
	}=0A=
}
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/common/screen/altClickToSearch.js

NYTD.require("http://graphics8.nytimes.com/js/app/lib/prototype/1.6.0.2/p=
rototype.js", function(){NYTD.WordReference.initialize();});=0A=
=0A=
NYTD.WordReference =3D (function(){=0A=
  =0A=
  var selection, selectionText, selectionButton, newRange;=0A=
  =0A=
  function handleClick(event) {=0A=
    if (selectionButton){=0A=
      cleanUp();=0A=
    }=0A=
    =0A=
    selection =3D getSelection();=0A=
    selectionText =3D selection && selection.toString();=0A=
    if (selectionText) {=0A=
      window.setTimeout(insertButton, 0);=0A=
      event.stop();=0A=
    }=0A=
  }=0A=
  =0A=
  function getSelection() {=0A=
    return Try.these(=0A=
      function() { return window.getSelection() },=0A=
      function() { return document.getSelection() },=0A=
      function() { =0A=
        var selection =3D document.selection && =
document.selection.createRange();=0A=
        selection.toString =3D function() { return this.text };=0A=
        return selection;=0A=
      }=0A=
    ) || false;=0A=
  }=0A=
  =0A=
  function insertButton() {=0A=
    =0A=
    selectionButton =3D new Element(=0A=
        'span', {=0A=
          'className':'nytd_selection_button',=0A=
          'id':'nytd_selection_button',=0A=
          'title':'Lookup Word',=0A=
          'style': 'margin:-20px 0 0 -20px; position:absolute; =
background:url(http://graphics8.nytimes.com/images/global/word_reference/=
ref_bubble.png);width:25px;height:29px;cursor:pointer;_background-image: =
none;filter: =
progid:DXImageTransform.Microsoft.AlphaImageLoader(src=3D"http://graphics=
8.nytimes.com/images/global/word_reference/ref_bubble.png", =
sizingMethod=3D"image");'=0A=
        }=0A=
    )=0A=
      =0A=
    if (Prototype.Browser.IE) {=0A=
      var tmp =3D new Element('div');=0A=
      tmp.appendChild(selectionButton);=0A=
      newRange =3D selection.duplicate();=0A=
      newRange.setEndPoint( "StartToEnd", selection);=0A=
      newRange.pasteHTML(tmp.innerHTML);=0A=
      selectionButton =3D $('nytd_selection_button');=0A=
    }=0A=
    else {=0A=
      var range =3D selection.getRangeAt(0);=0A=
      newRange =3D document.createRange();=0A=
      newRange.setStart(selection.focusNode, range.endOffset);=0A=
      newRange.insertNode(selectionButton);=0A=
    }=0A=
    =0A=
    Element.observe(selectionButton, 'mouseup', exportSelection, true);=0A=
    =0A=
  }=0A=
  =0A=
  function cleanUp() {=0A=
    selection =3D null;=0A=
    selectionButton.stopObserving('mouseup', exportSelection);=0A=
    newRange && newRange.pasteHTML && newRange.pasteHTML('');=0A=
    newRange =3D null;=0A=
    selectionButton.remove();=0A=
    selectionButton =3D null;=0A=
    selectionText =3D '';=0A=
  }=0A=
  =0A=
  function exportSelection(event) {=0A=
    var url =3D =
'http://query.nytimes.com/search/query?srchst=3Dref&query=3D' + =
encodeURIComponent(selectionText);=0A=
    var newwin =3D =
window.open(url,'answersdotcom','height=3D450,width=3D820,location=3Dfals=
e,menubar=3Dfalse,toolbar=3Dfalse,status=3Dfalse,resizable, scrollbars');=0A=
    if (newwin) newwin.focus();=0A=
    event.stop();=0A=
  }=0A=
  =0A=
  return {=0A=
    initialize: function() {=0A=
      document.observe('mouseup', handleClick, false);=0A=
    }=0A=
  };=0A=
  =0A=
})();
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/util/tooltip.js

/*=0A=
$Id: tooltip.js,v 1.2 2007/10/22 19:26:44 cookn Exp $ =0A=
(c)2006 - 2007 The New York Times Company =0A=
*/=0A=
=0A=
function tooltip() {=0A=
	this.container =3D null;=0A=
	this.content =3D null; =0A=
	this.miliseconds =3D 5000;=0A=
	this.timeoutId =3D null;=0A=
	this.topOffset =3D 0;=0A=
	this.leftOffset =3D 65;=0A=
	this.coords =3D [];=0A=
	return this;=0A=
}=0A=
=0A=
tooltip.prototype.write =3D function(){=0A=
	this.container =3D document.createElement("div");=0A=
	=0A=
	this.container.setAttribute("id", "toolTip");=0A=
	this.container.setAttribute("class","show");=0A=
	=0A=
	closeButton =3D document.createElement("div");=0A=
	closeButton.setAttribute("id", "button");=0A=
	A =3D document.createElement("a");=0A=
	A.setAttribute("href", "javascript:tooltip.hide();");=0A=
	A.appendChild(document.createTextNode("close window"));=0A=
	closeButton.appendChild(A);=0A=
	this.container.appendChild(closeButton);=0A=
=0A=
	this.content =3D document.createElement("div");=0A=
	this.content.setAttribute("id", "content");=0A=
	this.content.appendChild(document.createTextNode("this is the =
toolbar"));=0A=
	this.container.appendChild(this.content);=0A=
	=0A=
	document.body.appendChild(this.container);=0A=
}=0A=
=0A=
tooltip.prototype.stop =3D function(){=0A=
	if (this.timeoutId !=3D null) window.clearTimeout(this.timeoutId); =0A=
}=0A=
=0A=
=0A=
tooltip.prototype.findPos =3D function(obj) {=0A=
	var curleft =3D curtop =3D 0;=0A=
	if (obj.offsetParent) {=0A=
		curleft =3D obj.offsetLeft=0A=
		curtop =3D obj.offsetTop=0A=
		while (obj =3D obj.offsetParent) {=0A=
			curleft +=3D obj.offsetLeft=0A=
			curtop +=3D obj.offsetTop=0A=
		}=0A=
	}=0A=
	this.coords =3D [curleft,curtop];=0A=
}=0A=
=0A=
=0A=
tooltip.prototype.show =3D function(obj, text) {=0A=
	this.stop();=0A=
	//initialize tooltip div=0A=
	if (this.container =3D=3D null) { this.write(); }=0A=
	this.findPos(obj);=0A=
	topOffset =3D (arguments[2]) ? arguments[2] : this.topOffset; //use =
custom value for top if available=0A=
	leftOffset =3D (arguments[3]) ? arguments[3] : this.leftOffset; //use =
custom value for left if available=0A=
	this.container.style.top =3D (this.coords[1] + topOffset) + 'px';=0A=
	this.container.style.left =3D (this.coords[0] + leftOffset) +  'px';=0A=
	this.container.style.display =3D "block";=0A=
	this.content.innerHTML =3D text;=0A=
}=0A=
=0A=
tooltip.prototype.rollout =3D function(){=0A=
	this.timeoutId =3D window.setTimeout("tooltip.hide()", =
this.miliseconds);=0A=
}=0A=
	=0A=
tooltip.prototype.hide =3D function() {=0A=
	this.stop();=0A=
	this.container.style.display =3D "none";=0A=
}=0A=
=0A=
tooltip =3D new tooltip();=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/app/lib/prototype/1.6.0.2/prototype.js

/*  Prototype JavaScript framework, version 1.6.0.2=0A=
 *  (c) 2005-2008 Sam Stephenson=0A=
 *=0A=
 *  Prototype is freely distributable under the terms of an MIT-style =
license.=0A=
 *  For details, see the Prototype web site: http://www.prototypejs.org/=0A=
 *=0A=
 =
*------------------------------------------------------------------------=
--*/=0A=
=0A=
var Prototype =3D {=0A=
  Version: '1.6.0.2',=0A=
=0A=
  Browser: {=0A=
    IE:     !!(window.attachEvent && !window.opera),=0A=
    Opera:  !!window.opera,=0A=
    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,=0A=
    Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && =
navigator.userAgent.indexOf('KHTML') =3D=3D -1,=0A=
    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)=0A=
  },=0A=
=0A=
  BrowserFeatures: {=0A=
    XPath: !!document.evaluate,=0A=
    ElementExtensions: !!window.HTMLElement,=0A=
    SpecificElementExtensions:=0A=
      document.createElement('div').__proto__ &&=0A=
      document.createElement('div').__proto__ !=3D=3D=0A=
        document.createElement('form').__proto__=0A=
  },=0A=
=0A=
  ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',=0A=
  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,=0A=
=0A=
  emptyFunction: function() { },=0A=
  K: function(x) { return x }=0A=
};=0A=
=0A=
if (Prototype.Browser.MobileSafari)=0A=
  Prototype.BrowserFeatures.SpecificElementExtensions =3D false;=0A=
=0A=
=0A=
/* Based on Alex Arnell's inheritance implementation. */=0A=
var Class =3D {=0A=
  create: function() {=0A=
    var parent =3D null, properties =3D $A(arguments);=0A=
    if (Object.isFunction(properties[0]))=0A=
      parent =3D properties.shift();=0A=
=0A=
    function klass() {=0A=
      this.initialize.apply(this, arguments);=0A=
    }=0A=
=0A=
    Object.extend(klass, Class.Methods);=0A=
    klass.superclass =3D parent;=0A=
    klass.subclasses =3D [];=0A=
=0A=
    if (parent) {=0A=
      var subclass =3D function() { };=0A=
      subclass.prototype =3D parent.prototype;=0A=
      klass.prototype =3D new subclass;=0A=
      parent.subclasses.push(klass);=0A=
    }=0A=
=0A=
    for (var i =3D 0; i < properties.length; i++)=0A=
      klass.addMethods(properties[i]);=0A=
=0A=
    if (!klass.prototype.initialize)=0A=
      klass.prototype.initialize =3D Prototype.emptyFunction;=0A=
=0A=
    klass.prototype.constructor =3D klass;=0A=
=0A=
    return klass;=0A=
  }=0A=
};=0A=
=0A=
Class.Methods =3D {=0A=
  addMethods: function(source) {=0A=
    var ancestor   =3D this.superclass && this.superclass.prototype;=0A=
    var properties =3D Object.keys(source);=0A=
=0A=
    if (!Object.keys({ toString: true }).length)=0A=
      properties.push("toString", "valueOf");=0A=
=0A=
    for (var i =3D 0, length =3D properties.length; i < length; i++) {=0A=
      var property =3D properties[i], value =3D source[property];=0A=
      if (ancestor && Object.isFunction(value) &&=0A=
          value.argumentNames().first() =3D=3D "$super") {=0A=
        var method =3D value, value =3D Object.extend((function(m) {=0A=
          return function() { return ancestor[m].apply(this, arguments) =
};=0A=
        })(property).wrap(method), {=0A=
          valueOf:  function() { return method },=0A=
          toString: function() { return method.toString() }=0A=
        });=0A=
      }=0A=
      this.prototype[property] =3D value;=0A=
    }=0A=
=0A=
    return this;=0A=
  }=0A=
};=0A=
=0A=
var Abstract =3D { };=0A=
=0A=
Object.extend =3D function(destination, source) {=0A=
  for (var property in source)=0A=
    destination[property] =3D source[property];=0A=
  return destination;=0A=
};=0A=
=0A=
Object.extend(Object, {=0A=
  inspect: function(object) {=0A=
    try {=0A=
      if (Object.isUndefined(object)) return 'undefined';=0A=
      if (object =3D=3D=3D null) return 'null';=0A=
      return object.inspect ? object.inspect() : String(object);=0A=
    } catch (e) {=0A=
      if (e instanceof RangeError) return '...';=0A=
      throw e;=0A=
    }=0A=
  },=0A=
=0A=
  toJSON: function(object) {=0A=
    var type =3D typeof object;=0A=
    switch (type) {=0A=
      case 'undefined':=0A=
      case 'function':=0A=
      case 'unknown': return;=0A=
      case 'boolean': return object.toString();=0A=
    }=0A=
=0A=
    if (object =3D=3D=3D null) return 'null';=0A=
    if (object.toJSON) return object.toJSON();=0A=
    if (Object.isElement(object)) return;=0A=
=0A=
    var results =3D [];=0A=
    for (var property in object) {=0A=
      var value =3D Object.toJSON(object[property]);=0A=
      if (!Object.isUndefined(value))=0A=
        results.push(property.toJSON() + ': ' + value);=0A=
    }=0A=
=0A=
    return '{' + results.join(', ') + '}';=0A=
  },=0A=
=0A=
  toQueryString: function(object) {=0A=
    return $H(object).toQueryString();=0A=
  },=0A=
=0A=
  toHTML: function(object) {=0A=
    return object && object.toHTML ? object.toHTML() : =
String.interpret(object);=0A=
  },=0A=
=0A=
  keys: function(object) {=0A=
    var keys =3D [];=0A=
    for (var property in object)=0A=
      keys.push(property);=0A=
    return keys;=0A=
  },=0A=
=0A=
  values: function(object) {=0A=
    var values =3D [];=0A=
    for (var property in object)=0A=
      values.push(object[property]);=0A=
    return values;=0A=
  },=0A=
=0A=
  clone: function(object) {=0A=
    return Object.extend({ }, object);=0A=
  },=0A=
=0A=
  isElement: function(object) {=0A=
    return object && object.nodeType =3D=3D 1;=0A=
  },=0A=
=0A=
  isArray: function(object) {=0A=
    return object !=3D null && typeof object =3D=3D "object" &&=0A=
      'splice' in object && 'join' in object;=0A=
  },=0A=
=0A=
  isHash: function(object) {=0A=
    return object instanceof Hash;=0A=
  },=0A=
=0A=
  isFunction: function(object) {=0A=
    return typeof object =3D=3D "function";=0A=
  },=0A=
=0A=
  isString: function(object) {=0A=
    return typeof object =3D=3D "string";=0A=
  },=0A=
=0A=
  isNumber: function(object) {=0A=
    return typeof object =3D=3D "number";=0A=
  },=0A=
=0A=
  isUndefined: function(object) {=0A=
    return typeof object =3D=3D "undefined";=0A=
  }=0A=
});=0A=
=0A=
Object.extend(Function.prototype, {=0A=
  argumentNames: function() {=0A=
    var names =3D =
this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").inv=
oke("strip");=0A=
    return names.length =3D=3D 1 && !names[0] ? [] : names;=0A=
  },=0A=
=0A=
  bind: function() {=0A=
    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return =
this;=0A=
    var __method =3D this, args =3D $A(arguments), object =3D =
args.shift();=0A=
    return function() {=0A=
      return __method.apply(object, args.concat($A(arguments)));=0A=
    }=0A=
  },=0A=
=0A=
  bindAsEventListener: function() {=0A=
    var __method =3D this, args =3D $A(arguments), object =3D =
args.shift();=0A=
    return function(event) {=0A=
      return __method.apply(object, [event || =
window.event].concat(args));=0A=
    }=0A=
  },=0A=
=0A=
  curry: function() {=0A=
    if (!arguments.length) return this;=0A=
    var __method =3D this, args =3D $A(arguments);=0A=
    return function() {=0A=
      return __method.apply(this, args.concat($A(arguments)));=0A=
    }=0A=
  },=0A=
=0A=
  delay: function() {=0A=
    var __method =3D this, args =3D $A(arguments), timeout =3D =
args.shift() * 1000;=0A=
    return window.setTimeout(function() {=0A=
      return __method.apply(__method, args);=0A=
    }, timeout);=0A=
  },=0A=
=0A=
  wrap: function(wrapper) {=0A=
    var __method =3D this;=0A=
    return function() {=0A=
      return wrapper.apply(this, =
[__method.bind(this)].concat($A(arguments)));=0A=
    }=0A=
  },=0A=
=0A=
  methodize: function() {=0A=
    if (this._methodized) return this._methodized;=0A=
    var __method =3D this;=0A=
    return this._methodized =3D function() {=0A=
      return __method.apply(null, [this].concat($A(arguments)));=0A=
    };=0A=
  }=0A=
});=0A=
=0A=
Function.prototype.defer =3D Function.prototype.delay.curry(0.01);=0A=
=0A=
Date.prototype.toJSON =3D function() {=0A=
  return '"' + this.getUTCFullYear() + '-' +=0A=
    (this.getUTCMonth() + 1).toPaddedString(2) + '-' +=0A=
    this.getUTCDate().toPaddedString(2) + 'T' +=0A=
    this.getUTCHours().toPaddedString(2) + ':' +=0A=
    this.getUTCMinutes().toPaddedString(2) + ':' +=0A=
    this.getUTCSeconds().toPaddedString(2) + 'Z"';=0A=
};=0A=
=0A=
var Try =3D {=0A=
  these: function() {=0A=
    var returnValue;=0A=
=0A=
    for (var i =3D 0, length =3D arguments.length; i < length; i++) {=0A=
      var lambda =3D arguments[i];=0A=
      try {=0A=
        returnValue =3D lambda();=0A=
        break;=0A=
      } catch (e) { }=0A=
    }=0A=
=0A=
    return returnValue;=0A=
  }=0A=
};=0A=
=0A=
RegExp.prototype.match =3D RegExp.prototype.test;=0A=
=0A=
RegExp.escape =3D function(str) {=0A=
  return String(str).replace(/([.*+?^=3D!:${}()|[\]\/\\])/g, '\\$1');=0A=
};=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
var PeriodicalExecuter =3D Class.create({=0A=
  initialize: function(callback, frequency) {=0A=
    this.callback =3D callback;=0A=
    this.frequency =3D frequency;=0A=
    this.currentlyExecuting =3D false;=0A=
=0A=
    this.registerCallback();=0A=
  },=0A=
=0A=
  registerCallback: function() {=0A=
    this.timer =3D setInterval(this.onTimerEvent.bind(this), =
this.frequency * 1000);=0A=
  },=0A=
=0A=
  execute: function() {=0A=
    this.callback(this);=0A=
  },=0A=
=0A=
  stop: function() {=0A=
    if (!this.timer) return;=0A=
    clearInterval(this.timer);=0A=
    this.timer =3D null;=0A=
  },=0A=
=0A=
  onTimerEvent: function() {=0A=
    if (!this.currentlyExecuting) {=0A=
      try {=0A=
        this.currentlyExecuting =3D true;=0A=
        this.execute();=0A=
      } finally {=0A=
        this.currentlyExecuting =3D false;=0A=
      }=0A=
    }=0A=
  }=0A=
});=0A=
Object.extend(String, {=0A=
  interpret: function(value) {=0A=
    return value =3D=3D null ? '' : String(value);=0A=
  },=0A=
  specialChar: {=0A=
    '\b': '\\b',=0A=
    '\t': '\\t',=0A=
    '\n': '\\n',=0A=
    '\f': '\\f',=0A=
    '\r': '\\r',=0A=
    '\\': '\\\\'=0A=
  }=0A=
});=0A=
=0A=
Object.extend(String.prototype, {=0A=
  gsub: function(pattern, replacement) {=0A=
    var result =3D '', source =3D this, match;=0A=
    replacement =3D arguments.callee.prepareReplacement(replacement);=0A=
=0A=
    while (source.length > 0) {=0A=
      if (match =3D source.match(pattern)) {=0A=
        result +=3D source.slice(0, match.index);=0A=
        result +=3D String.interpret(replacement(match));=0A=
        source  =3D source.slice(match.index + match[0].length);=0A=
      } else {=0A=
        result +=3D source, source =3D '';=0A=
      }=0A=
    }=0A=
    return result;=0A=
  },=0A=
=0A=
  sub: function(pattern, replacement, count) {=0A=
    replacement =3D this.gsub.prepareReplacement(replacement);=0A=
    count =3D Object.isUndefined(count) ? 1 : count;=0A=
=0A=
    return this.gsub(pattern, function(match) {=0A=
      if (--count < 0) return match[0];=0A=
      return replacement(match);=0A=
    });=0A=
  },=0A=
=0A=
  scan: function(pattern, iterator) {=0A=
    this.gsub(pattern, iterator);=0A=
    return String(this);=0A=
  },=0A=
=0A=
  truncate: function(length, truncation) {=0A=
    length =3D length || 30;=0A=
    truncation =3D Object.isUndefined(truncation) ? '...' : truncation;=0A=
    return this.length > length ?=0A=
      this.slice(0, length - truncation.length) + truncation : =
String(this);=0A=
  },=0A=
=0A=
  strip: function() {=0A=
    return this.replace(/^\s+/, '').replace(/\s+$/, '');=0A=
  },=0A=
=0A=
  stripTags: function() {=0A=
    return this.replace(/<\/?[^>]+>/gi, '');=0A=
  },=0A=
=0A=
  stripScripts: function() {=0A=
    return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), '');=0A=
  },=0A=
=0A=
  extractScripts: function() {=0A=
    var matchAll =3D new RegExp(Prototype.ScriptFragment, 'img');=0A=
    var matchOne =3D new RegExp(Prototype.ScriptFragment, 'im');=0A=
    return (this.match(matchAll) || []).map(function(scriptTag) {=0A=
      return (scriptTag.match(matchOne) || ['', ''])[1];=0A=
    });=0A=
  },=0A=
=0A=
  evalScripts: function() {=0A=
    return this.extractScripts().map(function(script) { return =
eval(script) });=0A=
  },=0A=
=0A=
  escapeHTML: function() {=0A=
    var self =3D arguments.callee;=0A=
    self.text.data =3D this;=0A=
    return self.div.innerHTML;=0A=
  },=0A=
=0A=
  unescapeHTML: function() {=0A=
    var div =3D new Element('div');=0A=
    div.innerHTML =3D this.stripTags();=0A=
    return div.childNodes[0] ? (div.childNodes.length > 1 ?=0A=
      $A(div.childNodes).inject('', function(memo, node) { return =
memo+node.nodeValue }) :=0A=
      div.childNodes[0].nodeValue) : '';=0A=
  },=0A=
=0A=
  toQueryParams: function(separator) {=0A=
    var match =3D this.strip().match(/([^?#]*)(#.*)?$/);=0A=
    if (!match) return { };=0A=
=0A=
    return match[1].split(separator || '&').inject({ }, function(hash, =
pair) {=0A=
      if ((pair =3D pair.split('=3D'))[0]) {=0A=
        var key =3D decodeURIComponent(pair.shift());=0A=
        var value =3D pair.length > 1 ? pair.join('=3D') : pair[0];=0A=
        if (value !=3D undefined) value =3D decodeURIComponent(value);=0A=
=0A=
        if (key in hash) {=0A=
          if (!Object.isArray(hash[key])) hash[key] =3D [hash[key]];=0A=
          hash[key].push(value);=0A=
        }=0A=
        else hash[key] =3D value;=0A=
      }=0A=
      return hash;=0A=
    });=0A=
  },=0A=
=0A=
  toArray: function() {=0A=
    return this.split('');=0A=
  },=0A=
=0A=
  succ: function() {=0A=
    return this.slice(0, this.length - 1) +=0A=
      String.fromCharCode(this.charCodeAt(this.length - 1) + 1);=0A=
  },=0A=
=0A=
  times: function(count) {=0A=
    return count < 1 ? '' : new Array(count + 1).join(this);=0A=
  },=0A=
=0A=
  camelize: function() {=0A=
    var parts =3D this.split('-'), len =3D parts.length;=0A=
    if (len =3D=3D 1) return parts[0];=0A=
=0A=
    var camelized =3D this.charAt(0) =3D=3D '-'=0A=
      ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)=0A=
      : parts[0];=0A=
=0A=
    for (var i =3D 1; i < len; i++)=0A=
      camelized +=3D parts[i].charAt(0).toUpperCase() + =
parts[i].substring(1);=0A=
=0A=
    return camelized;=0A=
  },=0A=
=0A=
  capitalize: function() {=0A=
    return this.charAt(0).toUpperCase() + =
this.substring(1).toLowerCase();=0A=
  },=0A=
=0A=
  underscore: function() {=0A=
    return this.gsub(/::/, =
'/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{=
1}_#{2}').gsub(/-/,'_').toLowerCase();=0A=
  },=0A=
=0A=
  dasherize: function() {=0A=
    return this.gsub(/_/,'-');=0A=
  },=0A=
=0A=
  inspect: function(useDoubleQuotes) {=0A=
    var escapedString =3D this.gsub(/[\x00-\x1f\\]/, function(match) {=0A=
      var character =3D String.specialChar[match[0]];=0A=
      return character ? character : '\\u00' + =
match[0].charCodeAt().toPaddedString(2, 16);=0A=
    });=0A=
    if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') =
+ '"';=0A=
    return "'" + escapedString.replace(/'/g, '\\\'') + "'";=0A=
  },=0A=
=0A=
  toJSON: function() {=0A=
    return this.inspect(true);=0A=
  },=0A=
=0A=
  unfilterJSON: function(filter) {=0A=
    return this.sub(filter || Prototype.JSONFilter, '#{1}');=0A=
  },=0A=
=0A=
  isJSON: function() {=0A=
    var str =3D this;=0A=
    if (str.blank()) return false;=0A=
    str =3D this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');=0A=
    return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);=0A=
  },=0A=
=0A=
  evalJSON: function(sanitize) {=0A=
    var json =3D this.unfilterJSON();=0A=
    try {=0A=
      if (!sanitize || json.isJSON()) return eval('(' + json + ')');=0A=
    } catch (e) { }=0A=
    throw new SyntaxError('Badly formed JSON string: ' + this.inspect());=0A=
  },=0A=
=0A=
  include: function(pattern) {=0A=
    return this.indexOf(pattern) > -1;=0A=
  },=0A=
=0A=
  startsWith: function(pattern) {=0A=
    return this.indexOf(pattern) =3D=3D=3D 0;=0A=
  },=0A=
=0A=
  endsWith: function(pattern) {=0A=
    var d =3D this.length - pattern.length;=0A=
    return d >=3D 0 && this.lastIndexOf(pattern) =3D=3D=3D d;=0A=
  },=0A=
=0A=
  empty: function() {=0A=
    return this =3D=3D '';=0A=
  },=0A=
=0A=
  blank: function() {=0A=
    return /^\s*$/.test(this);=0A=
  },=0A=
=0A=
  interpolate: function(object, pattern) {=0A=
    return new Template(this, pattern).evaluate(object);=0A=
  }=0A=
});=0A=
=0A=
if (Prototype.Browser.WebKit || Prototype.Browser.IE) =
Object.extend(String.prototype, {=0A=
  escapeHTML: function() {=0A=
    return =
this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');=0A=
  },=0A=
  unescapeHTML: function() {=0A=
    return =
this.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');=0A=
  }=0A=
});=0A=
=0A=
String.prototype.gsub.prepareReplacement =3D function(replacement) {=0A=
  if (Object.isFunction(replacement)) return replacement;=0A=
  var template =3D new Template(replacement);=0A=
  return function(match) { return template.evaluate(match) };=0A=
};=0A=
=0A=
String.prototype.parseQuery =3D String.prototype.toQueryParams;=0A=
=0A=
Object.extend(String.prototype.escapeHTML, {=0A=
  div:  document.createElement('div'),=0A=
  text: document.createTextNode('')=0A=
});=0A=
=0A=
with (String.prototype.escapeHTML) div.appendChild(text);=0A=
=0A=
var Template =3D Class.create({=0A=
  initialize: function(template, pattern) {=0A=
    this.template =3D template.toString();=0A=
    this.pattern =3D pattern || Template.Pattern;=0A=
  },=0A=
=0A=
  evaluate: function(object) {=0A=
    if (Object.isFunction(object.toTemplateReplacements))=0A=
      object =3D object.toTemplateReplacements();=0A=
=0A=
    return this.template.gsub(this.pattern, function(match) {=0A=
      if (object =3D=3D null) return '';=0A=
=0A=
      var before =3D match[1] || '';=0A=
      if (before =3D=3D '\\') return match[2];=0A=
=0A=
      var ctx =3D object, expr =3D match[3];=0A=
      var pattern =3D /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;=0A=
      match =3D pattern.exec(expr);=0A=
      if (match =3D=3D null) return before;=0A=
=0A=
      while (match !=3D null) {=0A=
        var comp =3D match[1].startsWith('[') ? match[2].gsub('\\\\]', =
']') : match[1];=0A=
        ctx =3D ctx[comp];=0A=
        if (null =3D=3D ctx || '' =3D=3D match[3]) break;=0A=
        expr =3D expr.substring('[' =3D=3D match[3] ? match[1].length : =
match[0].length);=0A=
        match =3D pattern.exec(expr);=0A=
      }=0A=
=0A=
      return before + String.interpret(ctx);=0A=
    });=0A=
  }=0A=
});=0A=
Template.Pattern =3D /(^|.|\r|\n)(#\{(.*?)\})/;=0A=
=0A=
var $break =3D { };=0A=
=0A=
var Enumerable =3D {=0A=
  each: function(iterator, context) {=0A=
    var index =3D 0;=0A=
    iterator =3D iterator.bind(context);=0A=
    try {=0A=
      this._each(function(value) {=0A=
        iterator(value, index++);=0A=
      });=0A=
    } catch (e) {=0A=
      if (e !=3D $break) throw e;=0A=
    }=0A=
    return this;=0A=
  },=0A=
=0A=
  eachSlice: function(number, iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var index =3D -number, slices =3D [], array =3D this.toArray();=0A=
    while ((index +=3D number) < array.length)=0A=
      slices.push(array.slice(index, index+number));=0A=
    return slices.collect(iterator, context);=0A=
  },=0A=
=0A=
  all: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var result =3D true;=0A=
    this.each(function(value, index) {=0A=
      result =3D result && !!iterator(value, index);=0A=
      if (!result) throw $break;=0A=
    });=0A=
    return result;=0A=
  },=0A=
=0A=
  any: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var result =3D false;=0A=
    this.each(function(value, index) {=0A=
      if (result =3D !!iterator(value, index))=0A=
        throw $break;=0A=
    });=0A=
    return result;=0A=
  },=0A=
=0A=
  collect: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var results =3D [];=0A=
    this.each(function(value, index) {=0A=
      results.push(iterator(value, index));=0A=
    });=0A=
    return results;=0A=
  },=0A=
=0A=
  detect: function(iterator, context) {=0A=
    iterator =3D iterator.bind(context);=0A=
    var result;=0A=
    this.each(function(value, index) {=0A=
      if (iterator(value, index)) {=0A=
        result =3D value;=0A=
        throw $break;=0A=
      }=0A=
    });=0A=
    return result;=0A=
  },=0A=
=0A=
  findAll: function(iterator, context) {=0A=
    iterator =3D iterator.bind(context);=0A=
    var results =3D [];=0A=
    this.each(function(value, index) {=0A=
      if (iterator(value, index))=0A=
        results.push(value);=0A=
    });=0A=
    return results;=0A=
  },=0A=
=0A=
  grep: function(filter, iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var results =3D [];=0A=
=0A=
    if (Object.isString(filter))=0A=
      filter =3D new RegExp(filter);=0A=
=0A=
    this.each(function(value, index) {=0A=
      if (filter.match(value))=0A=
        results.push(iterator(value, index));=0A=
    });=0A=
    return results;=0A=
  },=0A=
=0A=
  include: function(object) {=0A=
    if (Object.isFunction(this.indexOf))=0A=
      if (this.indexOf(object) !=3D -1) return true;=0A=
=0A=
    var found =3D false;=0A=
    this.each(function(value) {=0A=
      if (value =3D=3D object) {=0A=
        found =3D true;=0A=
        throw $break;=0A=
      }=0A=
    });=0A=
    return found;=0A=
  },=0A=
=0A=
  inGroupsOf: function(number, fillWith) {=0A=
    fillWith =3D Object.isUndefined(fillWith) ? null : fillWith;=0A=
    return this.eachSlice(number, function(slice) {=0A=
      while(slice.length < number) slice.push(fillWith);=0A=
      return slice;=0A=
    });=0A=
  },=0A=
=0A=
  inject: function(memo, iterator, context) {=0A=
    iterator =3D iterator.bind(context);=0A=
    this.each(function(value, index) {=0A=
      memo =3D iterator(memo, value, index);=0A=
    });=0A=
    return memo;=0A=
  },=0A=
=0A=
  invoke: function(method) {=0A=
    var args =3D $A(arguments).slice(1);=0A=
    return this.map(function(value) {=0A=
      return value[method].apply(value, args);=0A=
    });=0A=
  },=0A=
=0A=
  max: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var result;=0A=
    this.each(function(value, index) {=0A=
      value =3D iterator(value, index);=0A=
      if (result =3D=3D null || value >=3D result)=0A=
        result =3D value;=0A=
    });=0A=
    return result;=0A=
  },=0A=
=0A=
  min: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var result;=0A=
    this.each(function(value, index) {=0A=
      value =3D iterator(value, index);=0A=
      if (result =3D=3D null || value < result)=0A=
        result =3D value;=0A=
    });=0A=
    return result;=0A=
  },=0A=
=0A=
  partition: function(iterator, context) {=0A=
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;=0A=
    var trues =3D [], falses =3D [];=0A=
    this.each(function(value, index) {=0A=
      (iterator(value, index) ?=0A=
        trues : falses).push(value);=0A=
    });=0A=
    return [trues, falses];=0A=
  },=0A=
=0A=
  pluck: function(property) {=0A=
    var results =3D [];=0A=
    this.each(function(value) {=0A=
      results.push(value[property]);=0A=
    });=0A=
    return results;=0A=
  },=0A=
=0A=
  reject: function(iterator, context) {=0A=
    iterator =3D iterator.bind(context);=0A=
    var results =3D [];=0A=
    this.each(function(value, index) {=0A=
      if (!iterator(value, index))=0A=
        results.push(value);=0A=
    });=0A=
    return results;=0A=
  },=0A=
=0A=
  sortBy: function(iterator, context) {=0A=
    iterator =3D iterator.bind(context);=0A=
    return this.map(function(value, index) {=0A=
      return {value: value, criteria: iterator(value, index)};=0A=
    }).sort(function(left, right) {=0A=
      var a =3D left.criteria, b =3D right.criteria;=0A=
      return a < b ? -1 : a > b ? 1 : 0;=0A=
    }).pluck('value');=0A=
  },=0A=
=0A=
  toArray: function() {=0A=
    return this.map();=0A=
  },=0A=
=0A=
  zip: function() {=0A=
    var iterator =3D Prototype.K, args =3D $A(arguments);=0A=
    if (Object.isFunction(args.last()))=0A=
      iterator =3D args.pop();=0A=
=0A=
    var collections =3D [this].concat(args).map($A);=0A=
    return this.map(function(value, index) {=0A=
      return iterator(collections.pluck(index));=0A=
    });=0A=
  },=0A=
=0A=
  size: function() {=0A=
    return this.toArray().length;=0A=
  },=0A=
=0A=
  inspect: function() {=0A=
    return '#<Enumerable:' + this.toArray().inspect() + '>';=0A=
  }=0A=
};=0A=
=0A=
Object.extend(Enumerable, {=0A=
  map:     Enumerable.collect,=0A=
  find:    Enumerable.detect,=0A=
  select:  Enumerable.findAll,=0A=
  filter:  Enumerable.findAll,=0A=
  member:  Enumerable.include,=0A=
  entries: Enumerable.toArray,=0A=
  every:   Enumerable.all,=0A=
  some:    Enumerable.any=0A=
});=0A=
function $A(iterable) {=0A=
  if (!iterable) return [];=0A=
  if (iterable.toArray) return iterable.toArray();=0A=
  var length =3D iterable.length || 0, results =3D new Array(length);=0A=
  while (length--) results[length] =3D iterable[length];=0A=
  return results;=0A=
}=0A=
=0A=
if (Prototype.Browser.WebKit) {=0A=
  $A =3D function(iterable) {=0A=
    if (!iterable) return [];=0A=
    if (!(Object.isFunction(iterable) && iterable =3D=3D '[object =
NodeList]') &&=0A=
        iterable.toArray) return iterable.toArray();=0A=
    var length =3D iterable.length || 0, results =3D new Array(length);=0A=
    while (length--) results[length] =3D iterable[length];=0A=
    return results;=0A=
  };=0A=
}=0A=
=0A=
Array.from =3D $A;=0A=
=0A=
Object.extend(Array.prototype, Enumerable);=0A=
=0A=
if (!Array.prototype._reverse) Array.prototype._reverse =3D =
Array.prototype.reverse;=0A=
=0A=
Object.extend(Array.prototype, {=0A=
  _each: function(iterator) {=0A=
    for (var i =3D 0, length =3D this.length; i < length; i++)=0A=
      iterator(this[i]);=0A=
  },=0A=
=0A=
  clear: function() {=0A=
    this.length =3D 0;=0A=
    return this;=0A=
  },=0A=
=0A=
  first: function() {=0A=
    return this[0];=0A=
  },=0A=
=0A=
  last: function() {=0A=
    return this[this.length - 1];=0A=
  },=0A=
=0A=
  compact: function() {=0A=
    return this.select(function(value) {=0A=
      return value !=3D null;=0A=
    });=0A=
  },=0A=
=0A=
  flatten: function() {=0A=
    return this.inject([], function(array, value) {=0A=
      return array.concat(Object.isArray(value) ?=0A=
        value.flatten() : [value]);=0A=
    });=0A=
  },=0A=
=0A=
  without: function() {=0A=
    var values =3D $A(arguments);=0A=
    return this.select(function(value) {=0A=
      return !values.include(value);=0A=
    });=0A=
  },=0A=
=0A=
  reverse: function(inline) {=0A=
    return (inline !=3D=3D false ? this : this.toArray())._reverse();=0A=
  },=0A=
=0A=
  reduce: function() {=0A=
    return this.length > 1 ? this : this[0];=0A=
  },=0A=
=0A=
  uniq: function(sorted) {=0A=
    return this.inject([], function(array, value, index) {=0A=
      if (0 =3D=3D index || (sorted ? array.last() !=3D value : =
!array.include(value)))=0A=
        array.push(value);=0A=
      return array;=0A=
    });=0A=
  },=0A=
=0A=
  intersect: function(array) {=0A=
    return this.uniq().findAll(function(item) {=0A=
      return array.detect(function(value) { return item =3D=3D=3D value =
});=0A=
    });=0A=
  },=0A=
=0A=
  clone: function() {=0A=
    return [].concat(this);=0A=
  },=0A=
=0A=
  size: function() {=0A=
    return this.length;=0A=
  },=0A=
=0A=
  inspect: function() {=0A=
    return '[' + this.map(Object.inspect).join(', ') + ']';=0A=
  },=0A=
=0A=
  toJSON: function() {=0A=
    var results =3D [];=0A=
    this.each(function(object) {=0A=
      var value =3D Object.toJSON(object);=0A=
      if (!Object.isUndefined(value)) results.push(value);=0A=
    });=0A=
    return '[' + results.join(', ') + ']';=0A=
  }=0A=
});=0A=
=0A=
// use native browser JS 1.6 implementation if available=0A=
if (Object.isFunction(Array.prototype.forEach))=0A=
  Array.prototype._each =3D Array.prototype.forEach;=0A=
=0A=
if (!Array.prototype.indexOf) Array.prototype.indexOf =3D function(item, =
i) {=0A=
  i || (i =3D 0);=0A=
  var length =3D this.length;=0A=
  if (i < 0) i =3D length + i;=0A=
  for (; i < length; i++)=0A=
    if (this[i] =3D=3D=3D item) return i;=0A=
  return -1;=0A=
};=0A=
=0A=
if (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf =3D =
function(item, i) {=0A=
  i =3D isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1;=0A=
  var n =3D this.slice(0, i).reverse().indexOf(item);=0A=
  return (n < 0) ? n : i - n - 1;=0A=
};=0A=
=0A=
Array.prototype.toArray =3D Array.prototype.clone;=0A=
=0A=
function $w(string) {=0A=
  if (!Object.isString(string)) return [];=0A=
  string =3D string.strip();=0A=
  return string ? string.split(/\s+/) : [];=0A=
}=0A=
=0A=
if (Prototype.Browser.Opera){=0A=
  Array.prototype.concat =3D function() {=0A=
    var array =3D [];=0A=
    for (var i =3D 0, length =3D this.length; i < length; i++) =
array.push(this[i]);=0A=
    for (var i =3D 0, length =3D arguments.length; i < length; i++) {=0A=
      if (Object.isArray(arguments[i])) {=0A=
        for (var j =3D 0, arrayLength =3D arguments[i].length; j < =
arrayLength; j++)=0A=
          array.push(arguments[i][j]);=0A=
      } else {=0A=
        array.push(arguments[i]);=0A=
      }=0A=
    }=0A=
    return array;=0A=
  };=0A=
}=0A=
Object.extend(Number.prototype, {=0A=
  toColorPart: function() {=0A=
    return this.toPaddedString(2, 16);=0A=
  },=0A=
=0A=
  succ: function() {=0A=
    return this + 1;=0A=
  },=0A=
=0A=
  times: function(iterator) {=0A=
    $R(0, this, true).each(iterator);=0A=
    return this;=0A=
  },=0A=
=0A=
  toPaddedString: function(length, radix) {=0A=
    var string =3D this.toString(radix || 10);=0A=
    return '0'.times(length - string.length) + string;=0A=
  },=0A=
=0A=
  toJSON: function() {=0A=
    return isFinite(this) ? this.toString() : 'null';=0A=
  }=0A=
});=0A=
=0A=
$w('abs round ceil floor').each(function(method){=0A=
  Number.prototype[method] =3D Math[method].methodize();=0A=
});=0A=
function $H(object) {=0A=
  return new Hash(object);=0A=
};=0A=
=0A=
var Hash =3D Class.create(Enumerable, (function() {=0A=
=0A=
  function toQueryPair(key, value) {=0A=
    if (Object.isUndefined(value)) return key;=0A=
    return key + '=3D' + encodeURIComponent(String.interpret(value));=0A=
  }=0A=
=0A=
  return {=0A=
    initialize: function(object) {=0A=
      this._object =3D Object.isHash(object) ? object.toObject() : =
Object.clone(object);=0A=
    },=0A=
=0A=
    _each: function(iterator) {=0A=
      for (var key in this._object) {=0A=
        var value =3D this._object[key], pair =3D [key, value];=0A=
        pair.key =3D key;=0A=
        pair.value =3D value;=0A=
        iterator(pair);=0A=
      }=0A=
    },=0A=
=0A=
    set: function(key, value) {=0A=
      return this._object[key] =3D value;=0A=
    },=0A=
=0A=
    get: function(key) {=0A=
      return this._object[key];=0A=
    },=0A=
=0A=
    unset: function(key) {=0A=
      var value =3D this._object[key];=0A=
      delete this._object[key];=0A=
      return value;=0A=
    },=0A=
=0A=
    toObject: function() {=0A=
      return Object.clone(this._object);=0A=
    },=0A=
=0A=
    keys: function() {=0A=
      return this.pluck('key');=0A=
    },=0A=
=0A=
    values: function() {=0A=
      return this.pluck('value');=0A=
    },=0A=
=0A=
    index: function(value) {=0A=
      var match =3D this.detect(function(pair) {=0A=
        return pair.value =3D=3D=3D value;=0A=
      });=0A=
      return match && match.key;=0A=
    },=0A=
=0A=
    merge: function(object) {=0A=
      return this.clone().update(object);=0A=
    },=0A=
=0A=
    update: function(object) {=0A=
      return new Hash(object).inject(this, function(result, pair) {=0A=
        result.set(pair.key, pair.value);=0A=
        return result;=0A=
      });=0A=
    },=0A=
=0A=
    toQueryString: function() {=0A=
      return this.map(function(pair) {=0A=
        var key =3D encodeURIComponent(pair.key), values =3D pair.value;=0A=
=0A=
        if (values && typeof values =3D=3D 'object') {=0A=
          if (Object.isArray(values))=0A=
            return values.map(toQueryPair.curry(key)).join('&');=0A=
        }=0A=
        return toQueryPair(key, values);=0A=
      }).join('&');=0A=
    },=0A=
=0A=
    inspect: function() {=0A=
      return '#<Hash:{' + this.map(function(pair) {=0A=
        return pair.map(Object.inspect).join(': ');=0A=
      }).join(', ') + '}>';=0A=
    },=0A=
=0A=
    toJSON: function() {=0A=
      return Object.toJSON(this.toObject());=0A=
    },=0A=
=0A=
    clone: function() {=0A=
      return new Hash(this);=0A=
    }=0A=
  }=0A=
})());=0A=
=0A=
Hash.prototype.toTemplateReplacements =3D Hash.prototype.toObject;=0A=
Hash.from =3D $H;=0A=
var ObjectRange =3D Class.create(Enumerable, {=0A=
  initialize: function(start, end, exclusive) {=0A=
    this.start =3D start;=0A=
    this.end =3D end;=0A=
    this.exclusive =3D exclusive;=0A=
  },=0A=
=0A=
  _each: function(iterator) {=0A=
    var value =3D this.start;=0A=
    while (this.include(value)) {=0A=
      iterator(value);=0A=
      value =3D value.succ();=0A=
    }=0A=
  },=0A=
=0A=
  include: function(value) {=0A=
    if (value < this.start)=0A=
      return false;=0A=
    if (this.exclusive)=0A=
      return value < this.end;=0A=
    return value <=3D this.end;=0A=
  }=0A=
});=0A=
=0A=
var $R =3D function(start, end, exclusive) {=0A=
  return new ObjectRange(start, end, exclusive);=0A=
};=0A=
=0A=
var Ajax =3D {=0A=
  getTransport: function() {=0A=
    return Try.these(=0A=
      function() {return new XMLHttpRequest()},=0A=
      function() {return new ActiveXObject('Msxml2.XMLHTTP')},=0A=
      function() {return new ActiveXObject('Microsoft.XMLHTTP')}=0A=
    ) || false;=0A=
  },=0A=
=0A=
  activeRequestCount: 0=0A=
};=0A=
=0A=
Ajax.Responders =3D {=0A=
  responders: [],=0A=
=0A=
  _each: function(iterator) {=0A=
    this.responders._each(iterator);=0A=
  },=0A=
=0A=
  register: function(responder) {=0A=
    if (!this.include(responder))=0A=
      this.responders.push(responder);=0A=
  },=0A=
=0A=
  unregister: function(responder) {=0A=
    this.responders =3D this.responders.without(responder);=0A=
  },=0A=
=0A=
  dispatch: function(callback, request, transport, json) {=0A=
    this.each(function(responder) {=0A=
      if (Object.isFunction(responder[callback])) {=0A=
        try {=0A=
          responder[callback].apply(responder, [request, transport, =
json]);=0A=
        } catch (e) { }=0A=
      }=0A=
    });=0A=
  }=0A=
};=0A=
=0A=
Object.extend(Ajax.Responders, Enumerable);=0A=
=0A=
Ajax.Responders.register({=0A=
  onCreate:   function() { Ajax.activeRequestCount++ },=0A=
  onComplete: function() { Ajax.activeRequestCount-- }=0A=
});=0A=
=0A=
Ajax.Base =3D Class.create({=0A=
  initialize: function(options) {=0A=
    this.options =3D {=0A=
      method:       'post',=0A=
      asynchronous: true,=0A=
      contentType:  'application/x-www-form-urlencoded',=0A=
      encoding:     'UTF-8',=0A=
      parameters:   '',=0A=
      evalJSON:     true,=0A=
      evalJS:       true=0A=
    };=0A=
    Object.extend(this.options, options || { });=0A=
=0A=
    this.options.method =3D this.options.method.toLowerCase();=0A=
=0A=
    if (Object.isString(this.options.parameters))=0A=
      this.options.parameters =3D =
this.options.parameters.toQueryParams();=0A=
    else if (Object.isHash(this.options.parameters))=0A=
      this.options.parameters =3D this.options.parameters.toObject();=0A=
  }=0A=
});=0A=
=0A=
Ajax.Request =3D Class.create(Ajax.Base, {=0A=
  _complete: false,=0A=
=0A=
  initialize: function($super, url, options) {=0A=
    $super(options);=0A=
    this.transport =3D Ajax.getTransport();=0A=
    this.request(url);=0A=
  },=0A=
=0A=
  request: function(url) {=0A=
    this.url =3D url;=0A=
    this.method =3D this.options.method;=0A=
    var params =3D Object.clone(this.options.parameters);=0A=
=0A=
    if (!['get', 'post'].include(this.method)) {=0A=
      // simulate other verbs over post=0A=
      params['_method'] =3D this.method;=0A=
      this.method =3D 'post';=0A=
    }=0A=
=0A=
    this.parameters =3D params;=0A=
=0A=
    if (params =3D Object.toQueryString(params)) {=0A=
      // when GET, append parameters to URL=0A=
      if (this.method =3D=3D 'get')=0A=
        this.url +=3D (this.url.include('?') ? '&' : '?') + params;=0A=
      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))=0A=
        params +=3D '&_=3D';=0A=
    }=0A=
=0A=
    try {=0A=
      var response =3D new Ajax.Response(this);=0A=
      if (this.options.onCreate) this.options.onCreate(response);=0A=
      Ajax.Responders.dispatch('onCreate', this, response);=0A=
=0A=
      this.transport.open(this.method.toUpperCase(), this.url,=0A=
        this.options.asynchronous);=0A=
=0A=
      if (this.options.asynchronous) =
this.respondToReadyState.bind(this).defer(1);=0A=
=0A=
      this.transport.onreadystatechange =3D =
this.onStateChange.bind(this);=0A=
      this.setRequestHeaders();=0A=
=0A=
      this.body =3D this.method =3D=3D 'post' ? (this.options.postBody =
|| params) : null;=0A=
      this.transport.send(this.body);=0A=
=0A=
      /* Force Firefox to handle ready state 4 for synchronous requests =
*/=0A=
      if (!this.options.asynchronous && this.transport.overrideMimeType)=0A=
        this.onStateChange();=0A=
=0A=
    }=0A=
    catch (e) {=0A=
      this.dispatchException(e);=0A=
    }=0A=
  },=0A=
=0A=
  onStateChange: function() {=0A=
    var readyState =3D this.transport.readyState;=0A=
    if (readyState > 1 && !((readyState =3D=3D 4) && this._complete))=0A=
      this.respondToReadyState(this.transport.readyState);=0A=
  },=0A=
=0A=
  setRequestHeaders: function() {=0A=
    var headers =3D {=0A=
      'X-Requested-With': 'XMLHttpRequest',=0A=
      'X-Prototype-Version': Prototype.Version,=0A=
      'Accept': 'text/javascript, text/html, application/xml, text/xml, =
*/*'=0A=
    };=0A=
=0A=
    if (this.method =3D=3D 'post') {=0A=
      headers['Content-type'] =3D this.options.contentType +=0A=
        (this.options.encoding ? '; charset=3D' + this.options.encoding =
: '');=0A=
=0A=
      /* Force "Connection: close" for older Mozilla browsers to work=0A=
       * around a bug where XMLHttpRequest sends an incorrect=0A=
       * Content-length header. See Mozilla Bugzilla #246651.=0A=
       */=0A=
      if (this.transport.overrideMimeType &&=0A=
          (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < =
2005)=0A=
            headers['Connection'] =3D 'close';=0A=
    }=0A=
=0A=
    // user-defined headers=0A=
    if (typeof this.options.requestHeaders =3D=3D 'object') {=0A=
      var extras =3D this.options.requestHeaders;=0A=
=0A=
      if (Object.isFunction(extras.push))=0A=
        for (var i =3D 0, length =3D extras.length; i < length; i +=3D 2)=0A=
          headers[extras[i]] =3D extras[i+1];=0A=
      else=0A=
        $H(extras).each(function(pair) { headers[pair.key] =3D =
pair.value });=0A=
    }=0A=
=0A=
    for (var name in headers)=0A=
      this.transport.setRequestHeader(name, headers[name]);=0A=
  },=0A=
=0A=
  success: function() {=0A=
    var status =3D this.getStatus();=0A=
    return !status || (status >=3D 200 && status < 300);=0A=
  },=0A=
=0A=
  getStatus: function() {=0A=
    try {=0A=
      return this.transport.status || 0;=0A=
    } catch (e) { return 0 }=0A=
  },=0A=
=0A=
  respondToReadyState: function(readyState) {=0A=
    var state =3D Ajax.Request.Events[readyState], response =3D new =
Ajax.Response(this);=0A=
=0A=
    if (state =3D=3D 'Complete') {=0A=
      try {=0A=
        this._complete =3D true;=0A=
        (this.options['on' + response.status]=0A=
         || this.options['on' + (this.success() ? 'Success' : 'Failure')]=0A=
         || Prototype.emptyFunction)(response, response.headerJSON);=0A=
      } catch (e) {=0A=
        this.dispatchException(e);=0A=
      }=0A=
=0A=
      var contentType =3D response.getHeader('Content-type');=0A=
      if (this.options.evalJS =3D=3D 'force'=0A=
          || (this.options.evalJS && this.isSameOrigin() && contentType=0A=
          && =
contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s=
*$/i)))=0A=
        this.evalResponse();=0A=
    }=0A=
=0A=
    try {=0A=
      (this.options['on' + state] || Prototype.emptyFunction)(response, =
response.headerJSON);=0A=
      Ajax.Responders.dispatch('on' + state, this, response, =
response.headerJSON);=0A=
    } catch (e) {=0A=
      this.dispatchException(e);=0A=
    }=0A=
=0A=
    if (state =3D=3D 'Complete') {=0A=
      // avoid memory leak in MSIE: clean up=0A=
      this.transport.onreadystatechange =3D Prototype.emptyFunction;=0A=
    }=0A=
  },=0A=
=0A=
  isSameOrigin: function() {=0A=
    var m =3D this.url.match(/^\s*https?:\/\/[^\/]*/);=0A=
    return !m || (m[0] =3D=3D =
'#{protocol}//#{domain}#{port}'.interpolate({=0A=
      protocol: location.protocol,=0A=
      domain: document.domain,=0A=
      port: location.port ? ':' + location.port : ''=0A=
    }));=0A=
  },=0A=
=0A=
  getHeader: function(name) {=0A=
    try {=0A=
      return this.transport.getResponseHeader(name) || null;=0A=
    } catch (e) { return null }=0A=
  },=0A=
=0A=
  evalResponse: function() {=0A=
    try {=0A=
      return eval((this.transport.responseText || '').unfilterJSON());=0A=
    } catch (e) {=0A=
      this.dispatchException(e);=0A=
    }=0A=
  },=0A=
=0A=
  dispatchException: function(exception) {=0A=
    (this.options.onException || Prototype.emptyFunction)(this, =
exception);=0A=
    Ajax.Responders.dispatch('onException', this, exception);=0A=
  }=0A=
});=0A=
=0A=
Ajax.Request.Events =3D=0A=
  ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];=0A=
=0A=
Ajax.Response =3D Class.create({=0A=
  initialize: function(request){=0A=
    this.request =3D request;=0A=
    var transport  =3D this.transport  =3D request.transport,=0A=
        readyState =3D this.readyState =3D transport.readyState;=0A=
=0A=
    if((readyState > 2 && !Prototype.Browser.IE) || readyState =3D=3D 4) =
{=0A=
      this.status       =3D this.getStatus();=0A=
      this.statusText   =3D this.getStatusText();=0A=
      this.responseText =3D String.interpret(transport.responseText);=0A=
      this.headerJSON   =3D this._getHeaderJSON();=0A=
    }=0A=
=0A=
    if(readyState =3D=3D 4) {=0A=
      var xml =3D transport.responseXML;=0A=
      this.responseXML  =3D Object.isUndefined(xml) ? null : xml;=0A=
      this.responseJSON =3D this._getResponseJSON();=0A=
    }=0A=
  },=0A=
=0A=
  status:      0,=0A=
  statusText: '',=0A=
=0A=
  getStatus: Ajax.Request.prototype.getStatus,=0A=
=0A=
  getStatusText: function() {=0A=
    try {=0A=
      return this.transport.statusText || '';=0A=
    } catch (e) { return '' }=0A=
  },=0A=
=0A=
  getHeader: Ajax.Request.prototype.getHeader,=0A=
=0A=
  getAllHeaders: function() {=0A=
    try {=0A=
      return this.getAllResponseHeaders();=0A=
    } catch (e) { return null }=0A=
  },=0A=
=0A=
  getResponseHeader: function(name) {=0A=
    return this.transport.getResponseHeader(name);=0A=
  },=0A=
=0A=
  getAllResponseHeaders: function() {=0A=
    return this.transport.getAllResponseHeaders();=0A=
  },=0A=
=0A=
  _getHeaderJSON: function() {=0A=
    var json =3D this.getHeader('X-JSON');=0A=
    if (!json) return null;=0A=
    json =3D decodeURIComponent(escape(json));=0A=
    try {=0A=
      return json.evalJSON(this.request.options.sanitizeJSON ||=0A=
        !this.request.isSameOrigin());=0A=
    } catch (e) {=0A=
      this.request.dispatchException(e);=0A=
    }=0A=
  },=0A=
=0A=
  _getResponseJSON: function() {=0A=
    var options =3D this.request.options;=0A=
    if (!options.evalJSON || (options.evalJSON !=3D 'force' &&=0A=
      !(this.getHeader('Content-type') || =
'').include('application/json')) ||=0A=
        this.responseText.blank())=0A=
          return null;=0A=
    try {=0A=
      return this.responseText.evalJSON(options.sanitizeJSON ||=0A=
        !this.request.isSameOrigin());=0A=
    } catch (e) {=0A=
      this.request.dispatchException(e);=0A=
    }=0A=
  }=0A=
});=0A=
=0A=
Ajax.Updater =3D Class.create(Ajax.Request, {=0A=
  initialize: function($super, container, url, options) {=0A=
    this.container =3D {=0A=
      success: (container.success || container),=0A=
      failure: (container.failure || (container.success ? null : =
container))=0A=
    };=0A=
=0A=
    options =3D Object.clone(options);=0A=
    var onComplete =3D options.onComplete;=0A=
    options.onComplete =3D (function(response, json) {=0A=
      this.updateContent(response.responseText);=0A=
      if (Object.isFunction(onComplete)) onComplete(response, json);=0A=
    }).bind(this);=0A=
=0A=
    $super(url, options);=0A=
  },=0A=
=0A=
  updateContent: function(responseText) {=0A=
    var receiver =3D this.container[this.success() ? 'success' : =
'failure'],=0A=
        options =3D this.options;=0A=
=0A=
    if (!options.evalScripts) responseText =3D =
responseText.stripScripts();=0A=
=0A=
    if (receiver =3D $(receiver)) {=0A=
      if (options.insertion) {=0A=
        if (Object.isString(options.insertion)) {=0A=
          var insertion =3D { }; insertion[options.insertion] =3D =
responseText;=0A=
          receiver.insert(insertion);=0A=
        }=0A=
        else options.insertion(receiver, responseText);=0A=
      }=0A=
      else receiver.update(responseText);=0A=
    }=0A=
  }=0A=
});=0A=
=0A=
Ajax.PeriodicalUpdater =3D Class.create(Ajax.Base, {=0A=
  initialize: function($super, container, url, options) {=0A=
    $super(options);=0A=
    this.onComplete =3D this.options.onComplete;=0A=
=0A=
    this.frequency =3D (this.options.frequency || 2);=0A=
    this.decay =3D (this.options.decay || 1);=0A=
=0A=
    this.updater =3D { };=0A=
    this.container =3D container;=0A=
    this.url =3D url;=0A=
=0A=
    this.start();=0A=
  },=0A=
=0A=
  start: function() {=0A=
    this.options.onComplete =3D this.updateComplete.bind(this);=0A=
    this.onTimerEvent();=0A=
  },=0A=
=0A=
  stop: function() {=0A=
    this.updater.options.onComplete =3D undefined;=0A=
    clearTimeout(this.timer);=0A=
    (this.onComplete || Prototype.emptyFunction).apply(this, arguments);=0A=
  },=0A=
=0A=
  updateComplete: function(response) {=0A=
    if (this.options.decay) {=0A=
      this.decay =3D (response.responseText =3D=3D this.lastText ?=0A=
        this.decay * this.options.decay : 1);=0A=
=0A=
      this.lastText =3D response.responseText;=0A=
    }=0A=
    this.timer =3D this.onTimerEvent.bind(this).delay(this.decay * =
this.frequency);=0A=
  },=0A=
=0A=
  onTimerEvent: function() {=0A=
    this.updater =3D new Ajax.Updater(this.container, this.url, =
this.options);=0A=
  }=0A=
});=0A=
function $(element) {=0A=
  if (arguments.length > 1) {=0A=
    for (var i =3D 0, elements =3D [], length =3D arguments.length; i < =
length; i++)=0A=
      elements.push($(arguments[i]));=0A=
    return elements;=0A=
  }=0A=
  if (Object.isString(element))=0A=
    element =3D document.getElementById(element);=0A=
  return Element.extend(element);=0A=
}=0A=
=0A=
if (Prototype.BrowserFeatures.XPath) {=0A=
  document._getElementsByXPath =3D function(expression, parentElement) {=0A=
    var results =3D [];=0A=
    var query =3D document.evaluate(expression, $(parentElement) || =
document,=0A=
      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);=0A=
    for (var i =3D 0, length =3D query.snapshotLength; i < length; i++)=0A=
      results.push(Element.extend(query.snapshotItem(i)));=0A=
    return results;=0A=
  };=0A=
}=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
if (!window.Node) var Node =3D { };=0A=
=0A=
if (!Node.ELEMENT_NODE) {=0A=
  // DOM level 2 ECMAScript Language Binding=0A=
  Object.extend(Node, {=0A=
    ELEMENT_NODE: 1,=0A=
    ATTRIBUTE_NODE: 2,=0A=
    TEXT_NODE: 3,=0A=
    CDATA_SECTION_NODE: 4,=0A=
    ENTITY_REFERENCE_NODE: 5,=0A=
    ENTITY_NODE: 6,=0A=
    PROCESSING_INSTRUCTION_NODE: 7,=0A=
    COMMENT_NODE: 8,=0A=
    DOCUMENT_NODE: 9,=0A=
    DOCUMENT_TYPE_NODE: 10,=0A=
    DOCUMENT_FRAGMENT_NODE: 11,=0A=
    NOTATION_NODE: 12=0A=
  });=0A=
}=0A=
=0A=
(function() {=0A=
  var element =3D this.Element;=0A=
  this.Element =3D function(tagName, attributes) {=0A=
    attributes =3D attributes || { };=0A=
    tagName =3D tagName.toLowerCase();=0A=
    var cache =3D Element.cache;=0A=
    if (Prototype.Browser.IE && attributes.name) {=0A=
      tagName =3D '<' + tagName + ' name=3D"' + attributes.name + '">';=0A=
      delete attributes.name;=0A=
      return Element.writeAttribute(document.createElement(tagName), =
attributes);=0A=
    }=0A=
    if (!cache[tagName]) cache[tagName] =3D =
Element.extend(document.createElement(tagName));=0A=
    return Element.writeAttribute(cache[tagName].cloneNode(false), =
attributes);=0A=
  };=0A=
  Object.extend(this.Element, element || { });=0A=
}).call(window);=0A=
=0A=
Element.cache =3D { };=0A=
=0A=
Element.Methods =3D {=0A=
  visible: function(element) {=0A=
    return $(element).style.display !=3D 'none';=0A=
  },=0A=
=0A=
  toggle: function(element) {=0A=
    element =3D $(element);=0A=
    Element[Element.visible(element) ? 'hide' : 'show'](element);=0A=
    return element;=0A=
  },=0A=
=0A=
  hide: function(element) {=0A=
    $(element).style.display =3D 'none';=0A=
    return element;=0A=
  },=0A=
=0A=
  show: function(element) {=0A=
    $(element).style.display =3D '';=0A=
    return element;=0A=
  },=0A=
=0A=
  remove: function(element) {=0A=
    element =3D $(element);=0A=
    element.parentNode.removeChild(element);=0A=
    return element;=0A=
  },=0A=
=0A=
  update: function(element, content) {=0A=
    element =3D $(element);=0A=
    if (content && content.toElement) content =3D content.toElement();=0A=
    if (Object.isElement(content)) return =
element.update().insert(content);=0A=
    content =3D Object.toHTML(content);=0A=
    element.innerHTML =3D content.stripScripts();=0A=
    content.evalScripts.bind(content).defer();=0A=
    return element;=0A=
  },=0A=
=0A=
  replace: function(element, content) {=0A=
    element =3D $(element);=0A=
    if (content && content.toElement) content =3D content.toElement();=0A=
    else if (!Object.isElement(content)) {=0A=
      content =3D Object.toHTML(content);=0A=
      var range =3D element.ownerDocument.createRange();=0A=
      range.selectNode(element);=0A=
      content.evalScripts.bind(content).defer();=0A=
      content =3D range.createContextualFragment(content.stripScripts());=0A=
    }=0A=
    element.parentNode.replaceChild(content, element);=0A=
    return element;=0A=
  },=0A=
=0A=
  insert: function(element, insertions) {=0A=
    element =3D $(element);=0A=
=0A=
    if (Object.isString(insertions) || Object.isNumber(insertions) ||=0A=
        Object.isElement(insertions) || (insertions && =
(insertions.toElement || insertions.toHTML)))=0A=
          insertions =3D {bottom:insertions};=0A=
=0A=
    var content, insert, tagName, childNodes;=0A=
=0A=
    for (var position in insertions) {=0A=
      content  =3D insertions[position];=0A=
      position =3D position.toLowerCase();=0A=
      insert =3D Element._insertionTranslations[position];=0A=
=0A=
      if (content && content.toElement) content =3D content.toElement();=0A=
      if (Object.isElement(content)) {=0A=
        insert(element, content);=0A=
        continue;=0A=
      }=0A=
=0A=
      content =3D Object.toHTML(content);=0A=
=0A=
      tagName =3D ((position =3D=3D 'before' || position =3D=3D 'after')=0A=
        ? element.parentNode : element).tagName.toUpperCase();=0A=
=0A=
      childNodes =3D Element._getContentFromAnonymousElement(tagName, =
content.stripScripts());=0A=
=0A=
      if (position =3D=3D 'top' || position =3D=3D 'after') =
childNodes.reverse();=0A=
      childNodes.each(insert.curry(element));=0A=
=0A=
      content.evalScripts.bind(content).defer();=0A=
    }=0A=
=0A=
    return element;=0A=
  },=0A=
=0A=
  wrap: function(element, wrapper, attributes) {=0A=
    element =3D $(element);=0A=
    if (Object.isElement(wrapper))=0A=
      $(wrapper).writeAttribute(attributes || { });=0A=
    else if (Object.isString(wrapper)) wrapper =3D new Element(wrapper, =
attributes);=0A=
    else wrapper =3D new Element('div', wrapper);=0A=
    if (element.parentNode)=0A=
      element.parentNode.replaceChild(wrapper, element);=0A=
    wrapper.appendChild(element);=0A=
    return wrapper;=0A=
  },=0A=
=0A=
  inspect: function(element) {=0A=
    element =3D $(element);=0A=
    var result =3D '<' + element.tagName.toLowerCase();=0A=
    $H({'id': 'id', 'className': 'class'}).each(function(pair) {=0A=
      var property =3D pair.first(), attribute =3D pair.last();=0A=
      var value =3D (element[property] || '').toString();=0A=
      if (value) result +=3D ' ' + attribute + '=3D' + =
value.inspect(true);=0A=
    });=0A=
    return result + '>';=0A=
  },=0A=
=0A=
  recursivelyCollect: function(element, property) {=0A=
    element =3D $(element);=0A=
    var elements =3D [];=0A=
    while (element =3D element[property])=0A=
      if (element.nodeType =3D=3D 1)=0A=
        elements.push(Element.extend(element));=0A=
    return elements;=0A=
  },=0A=
=0A=
  ancestors: function(element) {=0A=
    return $(element).recursivelyCollect('parentNode');=0A=
  },=0A=
=0A=
  descendants: function(element) {=0A=
    return $(element).select("*");=0A=
  },=0A=
=0A=
  firstDescendant: function(element) {=0A=
    element =3D $(element).firstChild;=0A=
    while (element && element.nodeType !=3D 1) element =3D =
element.nextSibling;=0A=
    return $(element);=0A=
  },=0A=
=0A=
  immediateDescendants: function(element) {=0A=
    if (!(element =3D $(element).firstChild)) return [];=0A=
    while (element && element.nodeType !=3D 1) element =3D =
element.nextSibling;=0A=
    if (element) return [element].concat($(element).nextSiblings());=0A=
    return [];=0A=
  },=0A=
=0A=
  previousSiblings: function(element) {=0A=
    return $(element).recursivelyCollect('previousSibling');=0A=
  },=0A=
=0A=
  nextSiblings: function(element) {=0A=
    return $(element).recursivelyCollect('nextSibling');=0A=
  },=0A=
=0A=
  siblings: function(element) {=0A=
    element =3D $(element);=0A=
    return =
element.previousSiblings().reverse().concat(element.nextSiblings());=0A=
  },=0A=
=0A=
  match: function(element, selector) {=0A=
    if (Object.isString(selector))=0A=
      selector =3D new Selector(selector);=0A=
    return selector.match($(element));=0A=
  },=0A=
=0A=
  up: function(element, expression, index) {=0A=
    element =3D $(element);=0A=
    if (arguments.length =3D=3D 1) return $(element.parentNode);=0A=
    var ancestors =3D element.ancestors();=0A=
    return Object.isNumber(expression) ? ancestors[expression] :=0A=
      Selector.findElement(ancestors, expression, index);=0A=
  },=0A=
=0A=
  down: function(element, expression, index) {=0A=
    element =3D $(element);=0A=
    if (arguments.length =3D=3D 1) return element.firstDescendant();=0A=
    return Object.isNumber(expression) ? =
element.descendants()[expression] :=0A=
      element.select(expression)[index || 0];=0A=
  },=0A=
=0A=
  previous: function(element, expression, index) {=0A=
    element =3D $(element);=0A=
    if (arguments.length =3D=3D 1) return =
$(Selector.handlers.previousElementSibling(element));=0A=
    var previousSiblings =3D element.previousSiblings();=0A=
    return Object.isNumber(expression) ? previousSiblings[expression] :=0A=
      Selector.findElement(previousSiblings, expression, index);=0A=
  },=0A=
=0A=
  next: function(element, expression, index) {=0A=
    element =3D $(element);=0A=
    if (arguments.length =3D=3D 1) return =
$(Selector.handlers.nextElementSibling(element));=0A=
    var nextSiblings =3D element.nextSiblings();=0A=
    return Object.isNumber(expression) ? nextSiblings[expression] :=0A=
      Selector.findElement(nextSiblings, expression, index);=0A=
  },=0A=
=0A=
  select: function() {=0A=
    var args =3D $A(arguments), element =3D $(args.shift());=0A=
    return Selector.findChildElements(element, args);=0A=
  },=0A=
=0A=
  adjacent: function() {=0A=
    var args =3D $A(arguments), element =3D $(args.shift());=0A=
    return Selector.findChildElements(element.parentNode, =
args).without(element);=0A=
  },=0A=
=0A=
  identify: function(element) {=0A=
    element =3D $(element);=0A=
    var id =3D element.readAttribute('id'), self =3D arguments.callee;=0A=
    if (id) return id;=0A=
    do { id =3D 'anonymous_element_' + self.counter++ } while ($(id));=0A=
    element.writeAttribute('id', id);=0A=
    return id;=0A=
  },=0A=
=0A=
  readAttribute: function(element, name) {=0A=
    element =3D $(element);=0A=
    if (Prototype.Browser.IE) {=0A=
      var t =3D Element._attributeTranslations.read;=0A=
      if (t.values[name]) return t.values[name](element, name);=0A=
      if (t.names[name]) name =3D t.names[name];=0A=
      if (name.include(':')) {=0A=
        return (!element.attributes || !element.attributes[name]) ? null =
:=0A=
         element.attributes[name].value;=0A=
      }=0A=
    }=0A=
    return element.getAttribute(name);=0A=
  },=0A=
=0A=
  writeAttribute: function(element, name, value) {=0A=
    element =3D $(element);=0A=
    var attributes =3D { }, t =3D Element._attributeTranslations.write;=0A=
=0A=
    if (typeof name =3D=3D 'object') attributes =3D name;=0A=
    else attributes[name] =3D Object.isUndefined(value) ? true : value;=0A=
=0A=
    for (var attr in attributes) {=0A=
      name =3D t.names[attr] || attr;=0A=
      value =3D attributes[attr];=0A=
      if (t.values[attr]) name =3D t.values[attr](element, value);=0A=
      if (value =3D=3D=3D false || value =3D=3D=3D null)=0A=
        element.removeAttribute(name);=0A=
      else if (value =3D=3D=3D true)=0A=
        element.setAttribute(name, name);=0A=
      else element.setAttribute(name, value);=0A=
    }=0A=
    return element;=0A=
  },=0A=
=0A=
  getHeight: function(element) {=0A=
    return $(element).getDimensions().height;=0A=
  },=0A=
=0A=
  getWidth: function(element) {=0A=
    return $(element).getDimensions().width;=0A=
  },=0A=
=0A=
  classNames: function(element) {=0A=
    return new Element.ClassNames(element);=0A=
  },=0A=
=0A=
  hasClassName: function(element, className) {=0A=
    if (!(element =3D $(element))) return;=0A=
    var elementClassName =3D element.className;=0A=
    return (elementClassName.length > 0 && (elementClassName =3D=3D =
className ||=0A=
      new RegExp("(^|\\s)" + className + =
"(\\s|$)").test(elementClassName)));=0A=
  },=0A=
=0A=
  addClassName: function(element, className) {=0A=
    if (!(element =3D $(element))) return;=0A=
    if (!element.hasClassName(className))=0A=
      element.className +=3D (element.className ? ' ' : '') + className;=0A=
    return element;=0A=
  },=0A=
=0A=
  removeClassName: function(element, className) {=0A=
    if (!(element =3D $(element))) return;=0A=
    element.className =3D element.className.replace(=0A=
      new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip();=0A=
    return element;=0A=
  },=0A=
=0A=
  toggleClassName: function(element, className) {=0A=
    if (!(element =3D $(element))) return;=0A=
    return element[element.hasClassName(className) ?=0A=
      'removeClassName' : 'addClassName'](className);=0A=
  },=0A=
=0A=
  // removes whitespace-only text node children=0A=
  cleanWhitespace: function(element) {=0A=
    element =3D $(element);=0A=
    var node =3D element.firstChild;=0A=
    while (node) {=0A=
      var nextNode =3D node.nextSibling;=0A=
      if (node.nodeType =3D=3D 3 && !/\S/.test(node.nodeValue))=0A=
        element.removeChild(node);=0A=
      node =3D nextNode;=0A=
    }=0A=
    return element;=0A=
  },=0A=
=0A=
  empty: function(element) {=0A=
    return $(element).innerHTML.blank();=0A=
  },=0A=
=0A=
  descendantOf: function(element, ancestor) {=0A=
    element =3D $(element), ancestor =3D $(ancestor);=0A=
    var originalAncestor =3D ancestor;=0A=
=0A=
    if (element.compareDocumentPosition)=0A=
      return (element.compareDocumentPosition(ancestor) & 8) =3D=3D=3D 8;=0A=
=0A=
    if (element.sourceIndex && !Prototype.Browser.Opera) {=0A=
      var e =3D element.sourceIndex, a =3D ancestor.sourceIndex,=0A=
       nextAncestor =3D ancestor.nextSibling;=0A=
      if (!nextAncestor) {=0A=
        do { ancestor =3D ancestor.parentNode; }=0A=
        while (!(nextAncestor =3D ancestor.nextSibling) && =
ancestor.parentNode);=0A=
      }=0A=
      if (nextAncestor && nextAncestor.sourceIndex)=0A=
       return (e > a && e < nextAncestor.sourceIndex);=0A=
    }=0A=
=0A=
    while (element =3D element.parentNode)=0A=
      if (element =3D=3D originalAncestor) return true;=0A=
    return false;=0A=
  },=0A=
=0A=
  scrollTo: function(element) {=0A=
    element =3D $(element);=0A=
    var pos =3D element.cumulativeOffset();=0A=
    window.scrollTo(pos[0], pos[1]);=0A=
    return element;=0A=
  },=0A=
=0A=
  getStyle: function(element, style) {=0A=
    element =3D $(element);=0A=
    style =3D style =3D=3D 'float' ? 'cssFloat' : style.camelize();=0A=
    var value =3D element.style[style];=0A=
    if (!value) {=0A=
      var css =3D document.defaultView.getComputedStyle(element, null);=0A=
      value =3D css ? css[style] : null;=0A=
    }=0A=
    if (style =3D=3D 'opacity') return value ? parseFloat(value) : 1.0;=0A=
    return value =3D=3D 'auto' ? null : value;=0A=
  },=0A=
=0A=
  getOpacity: function(element) {=0A=
    return $(element).getStyle('opacity');=0A=
  },=0A=
=0A=
  setStyle: function(element, styles) {=0A=
    element =3D $(element);=0A=
    var elementStyle =3D element.style, match;=0A=
    if (Object.isString(styles)) {=0A=
      element.style.cssText +=3D ';' + styles;=0A=
      return styles.include('opacity') ?=0A=
        element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : =
element;=0A=
    }=0A=
    for (var property in styles)=0A=
      if (property =3D=3D 'opacity') =
element.setOpacity(styles[property]);=0A=
      else=0A=
        elementStyle[(property =3D=3D 'float' || property =3D=3D =
'cssFloat') ?=0A=
          (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : =
'styleFloat') :=0A=
            property] =3D styles[property];=0A=
=0A=
    return element;=0A=
  },=0A=
=0A=
  setOpacity: function(element, value) {=0A=
    element =3D $(element);=0A=
    element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? =
'' :=0A=
      (value < 0.00001) ? 0 : value;=0A=
    return element;=0A=
  },=0A=
=0A=
  getDimensions: function(element) {=0A=
    element =3D $(element);=0A=
    var display =3D $(element).getStyle('display');=0A=
    if (display !=3D 'none' && display !=3D null) // Safari bug=0A=
      return {width: element.offsetWidth, height: element.offsetHeight};=0A=
=0A=
    // All *Width and *Height properties give 0 on elements with display =
none,=0A=
    // so enable the element temporarily=0A=
    var els =3D element.style;=0A=
    var originalVisibility =3D els.visibility;=0A=
    var originalPosition =3D els.position;=0A=
    var originalDisplay =3D els.display;=0A=
    els.visibility =3D 'hidden';=0A=
    els.position =3D 'absolute';=0A=
    els.display =3D 'block';=0A=
    var originalWidth =3D element.clientWidth;=0A=
    var originalHeight =3D element.clientHeight;=0A=
    els.display =3D originalDisplay;=0A=
    els.position =3D originalPosition;=0A=
    els.visibility =3D originalVisibility;=0A=
    return {width: originalWidth, height: originalHeight};=0A=
  },=0A=
=0A=
  makePositioned: function(element) {=0A=
    element =3D $(element);=0A=
    var pos =3D Element.getStyle(element, 'position');=0A=
    if (pos =3D=3D 'static' || !pos) {=0A=
      element._madePositioned =3D true;=0A=
      element.style.position =3D 'relative';=0A=
      // Opera returns the offset relative to the positioning context, =
when an=0A=
      // element is position relative but top and left have not been =
defined=0A=
      if (window.opera) {=0A=
        element.style.top =3D 0;=0A=
        element.style.left =3D 0;=0A=
      }=0A=
    }=0A=
    return element;=0A=
  },=0A=
=0A=
  undoPositioned: function(element) {=0A=
    element =3D $(element);=0A=
    if (element._madePositioned) {=0A=
      element._madePositioned =3D undefined;=0A=
      element.style.position =3D=0A=
        element.style.top =3D=0A=
        element.style.left =3D=0A=
        element.style.bottom =3D=0A=
        element.style.right =3D '';=0A=
    }=0A=
    return element;=0A=
  },=0A=
=0A=
  makeClipping: function(element) {=0A=
    element =3D $(element);=0A=
    if (element._overflow) return element;=0A=
    element._overflow =3D Element.getStyle(element, 'overflow') || =
'auto';=0A=
    if (element._overflow !=3D=3D 'hidden')=0A=
      element.style.overflow =3D 'hidden';=0A=
    return element;=0A=
  },=0A=
=0A=
  undoClipping: function(element) {=0A=
    element =3D $(element);=0A=
    if (!element._overflow) return element;=0A=
    element.style.overflow =3D element._overflow =3D=3D 'auto' ? '' : =
element._overflow;=0A=
    element._overflow =3D null;=0A=
    return element;=0A=
  },=0A=
=0A=
  cumulativeOffset: function(element) {=0A=
    var valueT =3D 0, valueL =3D 0;=0A=
    do {=0A=
      valueT +=3D element.offsetTop  || 0;=0A=
      valueL +=3D element.offsetLeft || 0;=0A=
      element =3D element.offsetParent;=0A=
    } while (element);=0A=
    return Element._returnOffset(valueL, valueT);=0A=
  },=0A=
=0A=
  positionedOffset: function(element) {=0A=
    var valueT =3D 0, valueL =3D 0;=0A=
    do {=0A=
      valueT +=3D element.offsetTop  || 0;=0A=
      valueL +=3D element.offsetLeft || 0;=0A=
      element =3D element.offsetParent;=0A=
      if (element) {=0A=
        if (element.tagName =3D=3D 'BODY') break;=0A=
        var p =3D Element.getStyle(element, 'position');=0A=
        if (p !=3D=3D 'static') break;=0A=
      }=0A=
    } while (element);=0A=
    return Element._returnOffset(valueL, valueT);=0A=
  },=0A=
=0A=
  absolutize: function(element) {=0A=
    element =3D $(element);=0A=
    if (element.getStyle('position') =3D=3D 'absolute') return;=0A=
    // Position.prepare(); // To be done manually by Scripty when it =
needs it.=0A=
=0A=
    var offsets =3D element.positionedOffset();=0A=
    var top     =3D offsets[1];=0A=
    var left    =3D offsets[0];=0A=
    var width   =3D element.clientWidth;=0A=
    var height  =3D element.clientHeight;=0A=
=0A=
    element._originalLeft   =3D left - parseFloat(element.style.left  || =
0);=0A=
    element._originalTop    =3D top  - parseFloat(element.style.top || =
0);=0A=
    element._originalWidth  =3D element.style.width;=0A=
    element._originalHeight =3D element.style.height;=0A=
=0A=
    element.style.position =3D 'absolute';=0A=
    element.style.top    =3D top + 'px';=0A=
    element.style.left   =3D left + 'px';=0A=
    element.style.width  =3D width + 'px';=0A=
    element.style.height =3D height + 'px';=0A=
    return element;=0A=
  },=0A=
=0A=
  relativize: function(element) {=0A=
    element =3D $(element);=0A=
    if (element.getStyle('position') =3D=3D 'relative') return;=0A=
    // Position.prepare(); // To be done manually by Scripty when it =
needs it.=0A=
=0A=
    element.style.position =3D 'relative';=0A=
    var top  =3D parseFloat(element.style.top  || 0) - =
(element._originalTop || 0);=0A=
    var left =3D parseFloat(element.style.left || 0) - =
(element._originalLeft || 0);=0A=
=0A=
    element.style.top    =3D top + 'px';=0A=
    element.style.left   =3D left + 'px';=0A=
    element.style.height =3D element._originalHeight;=0A=
    element.style.width  =3D element._originalWidth;=0A=
    return element;=0A=
  },=0A=
=0A=
  cumulativeScrollOffset: function(element) {=0A=
    var valueT =3D 0, valueL =3D 0;=0A=
    do {=0A=
      valueT +=3D element.scrollTop  || 0;=0A=
      valueL +=3D element.scrollLeft || 0;=0A=
      element =3D element.parentNode;=0A=
    } while (element);=0A=
    return Element._returnOffset(valueL, valueT);=0A=
  },=0A=
=0A=
  getOffsetParent: function(element) {=0A=
    if (element.offsetParent) return $(element.offsetParent);=0A=
    if (element =3D=3D document.body) return $(element);=0A=
=0A=
    while ((element =3D element.parentNode) && element !=3D =
document.body)=0A=
      if (Element.getStyle(element, 'position') !=3D 'static')=0A=
        return $(element);=0A=
=0A=
    return $(document.body);=0A=
  },=0A=
=0A=
  viewportOffset: function(forElement) {=0A=
    var valueT =3D 0, valueL =3D 0;=0A=
=0A=
    var element =3D forElement;=0A=
    do {=0A=
      valueT +=3D element.offsetTop  || 0;=0A=
      valueL +=3D element.offsetLeft || 0;=0A=
=0A=
      // Safari fix=0A=
      if (element.offsetParent =3D=3D document.body &&=0A=
        Element.getStyle(element, 'position') =3D=3D 'absolute') break;=0A=
=0A=
    } while (element =3D element.offsetParent);=0A=
=0A=
    element =3D forElement;=0A=
    do {=0A=
      if (!Prototype.Browser.Opera || element.tagName =3D=3D 'BODY') {=0A=
        valueT -=3D element.scrollTop  || 0;=0A=
        valueL -=3D element.scrollLeft || 0;=0A=
      }=0A=
    } while (element =3D element.parentNode);=0A=
=0A=
    return Element._returnOffset(valueL, valueT);=0A=
  },=0A=
=0A=
  clonePosition: function(element, source) {=0A=
    var options =3D Object.extend({=0A=
      setLeft:    true,=0A=
      setTop:     true,=0A=
      setWidth:   true,=0A=
      setHeight:  true,=0A=
      offsetTop:  0,=0A=
      offsetLeft: 0=0A=
    }, arguments[2] || { });=0A=
=0A=
    // find page position of source=0A=
    source =3D $(source);=0A=
    var p =3D source.viewportOffset();=0A=
=0A=
    // find coordinate system to use=0A=
    element =3D $(element);=0A=
    var delta =3D [0, 0];=0A=
    var parent =3D null;=0A=
    // delta [0,0] will do fine with position: fixed elements,=0A=
    // position:absolute needs offsetParent deltas=0A=
    if (Element.getStyle(element, 'position') =3D=3D 'absolute') {=0A=
      parent =3D element.getOffsetParent();=0A=
      delta =3D parent.viewportOffset();=0A=
    }=0A=
=0A=
    // correct by body offsets (fixes Safari)=0A=
    if (parent =3D=3D document.body) {=0A=
      delta[0] -=3D document.body.offsetLeft;=0A=
      delta[1] -=3D document.body.offsetTop;=0A=
    }=0A=
=0A=
    // set position=0A=
    if (options.setLeft)   element.style.left  =3D (p[0] - delta[0] + =
options.offsetLeft) + 'px';=0A=
    if (options.setTop)    element.style.top   =3D (p[1] - delta[1] + =
options.offsetTop) + 'px';=0A=
    if (options.setWidth)  element.style.width =3D source.offsetWidth + =
'px';=0A=
    if (options.setHeight) element.style.height =3D source.offsetHeight =
+ 'px';=0A=
    return element;=0A=
  }=0A=
};=0A=
=0A=
Element.Methods.identify.counter =3D 1;=0A=
=0A=
Object.extend(Element.Methods, {=0A=
  getElementsBySelector: Element.Methods.select,=0A=
  childElements: Element.Methods.immediateDescendants=0A=
});=0A=
=0A=
Element._attributeTranslations =3D {=0A=
  write: {=0A=
    names: {=0A=
      className: 'class',=0A=
      htmlFor:   'for'=0A=
    },=0A=
    values: { }=0A=
  }=0A=
};=0A=
=0A=
if (Prototype.Browser.Opera) {=0A=
  Element.Methods.getStyle =3D Element.Methods.getStyle.wrap(=0A=
    function(proceed, element, style) {=0A=
      switch (style) {=0A=
        case 'left': case 'top': case 'right': case 'bottom':=0A=
          if (proceed(element, 'position') =3D=3D=3D 'static') return =
null;=0A=
        case 'height': case 'width':=0A=
          // returns '0px' for hidden elements; we want it to return null=0A=
          if (!Element.visible(element)) return null;=0A=
=0A=
          // returns the border-box dimensions rather than the =
content-box=0A=
          // dimensions, so we subtract padding and borders from the =
value=0A=
          var dim =3D parseInt(proceed(element, style), 10);=0A=
=0A=
          if (dim !=3D=3D element['offset' + style.capitalize()])=0A=
            return dim + 'px';=0A=
=0A=
          var properties;=0A=
          if (style =3D=3D=3D 'height') {=0A=
            properties =3D ['border-top-width', 'padding-top',=0A=
             'padding-bottom', 'border-bottom-width'];=0A=
          }=0A=
          else {=0A=
            properties =3D ['border-left-width', 'padding-left',=0A=
             'padding-right', 'border-right-width'];=0A=
          }=0A=
          return properties.inject(dim, function(memo, property) {=0A=
            var val =3D proceed(element, property);=0A=
            return val =3D=3D=3D null ? memo : memo - parseInt(val, 10);=0A=
          }) + 'px';=0A=
        default: return proceed(element, style);=0A=
      }=0A=
    }=0A=
  );=0A=
=0A=
  Element.Methods.readAttribute =3D Element.Methods.readAttribute.wrap(=0A=
    function(proceed, element, attribute) {=0A=
      if (attribute =3D=3D=3D 'title') return element.title;=0A=
      return proceed(element, attribute);=0A=
    }=0A=
  );=0A=
}=0A=
=0A=
else if (Prototype.Browser.IE) {=0A=
  // IE doesn't report offsets correctly for static elements, so we =
change them=0A=
  // to "relative" to get the values, then change them back.=0A=
  Element.Methods.getOffsetParent =3D =
Element.Methods.getOffsetParent.wrap(=0A=
    function(proceed, element) {=0A=
      element =3D $(element);=0A=
      var position =3D element.getStyle('position');=0A=
      if (position !=3D=3D 'static') return proceed(element);=0A=
      element.setStyle({ position: 'relative' });=0A=
      var value =3D proceed(element);=0A=
      element.setStyle({ position: position });=0A=
      return value;=0A=
    }=0A=
  );=0A=
=0A=
  $w('positionedOffset viewportOffset').each(function(method) {=0A=
    Element.Methods[method] =3D Element.Methods[method].wrap(=0A=
      function(proceed, element) {=0A=
        element =3D $(element);=0A=
        var position =3D element.getStyle('position');=0A=
        if (position !=3D=3D 'static') return proceed(element);=0A=
        // Trigger hasLayout on the offset parent so that IE6 reports=0A=
        // accurate offsetTop and offsetLeft values for position: fixed.=0A=
        var offsetParent =3D element.getOffsetParent();=0A=
        if (offsetParent && offsetParent.getStyle('position') =3D=3D=3D =
'fixed')=0A=
          offsetParent.setStyle({ zoom: 1 });=0A=
        element.setStyle({ position: 'relative' });=0A=
        var value =3D proceed(element);=0A=
        element.setStyle({ position: position });=0A=
        return value;=0A=
      }=0A=
    );=0A=
  });=0A=
=0A=
  Element.Methods.getStyle =3D function(element, style) {=0A=
    element =3D $(element);=0A=
    style =3D (style =3D=3D 'float' || style =3D=3D 'cssFloat') ? =
'styleFloat' : style.camelize();=0A=
    var value =3D element.style[style];=0A=
    if (!value && element.currentStyle) value =3D =
element.currentStyle[style];=0A=
=0A=
    if (style =3D=3D 'opacity') {=0A=
      if (value =3D (element.getStyle('filter') || =
'').match(/alpha\(opacity=3D(.*)\)/))=0A=
        if (value[1]) return parseFloat(value[1]) / 100;=0A=
      return 1.0;=0A=
    }=0A=
=0A=
    if (value =3D=3D 'auto') {=0A=
      if ((style =3D=3D 'width' || style =3D=3D 'height') && =
(element.getStyle('display') !=3D 'none'))=0A=
        return element['offset' + style.capitalize()] + 'px';=0A=
      return null;=0A=
    }=0A=
    return value;=0A=
  };=0A=
=0A=
  Element.Methods.setOpacity =3D function(element, value) {=0A=
    function stripAlpha(filter){=0A=
      return filter.replace(/alpha\([^\)]*\)/gi,'');=0A=
    }=0A=
    element =3D $(element);=0A=
    var currentStyle =3D element.currentStyle;=0A=
    if ((currentStyle && !currentStyle.hasLayout) ||=0A=
      (!currentStyle && element.style.zoom =3D=3D 'normal'))=0A=
        element.style.zoom =3D 1;=0A=
=0A=
    var filter =3D element.getStyle('filter'), style =3D element.style;=0A=
    if (value =3D=3D 1 || value =3D=3D=3D '') {=0A=
      (filter =3D stripAlpha(filter)) ?=0A=
        style.filter =3D filter : style.removeAttribute('filter');=0A=
      return element;=0A=
    } else if (value < 0.00001) value =3D 0;=0A=
    style.filter =3D stripAlpha(filter) +=0A=
      'alpha(opacity=3D' + (value * 100) + ')';=0A=
    return element;=0A=
  };=0A=
=0A=
  Element._attributeTranslations =3D {=0A=
    read: {=0A=
      names: {=0A=
        'class': 'className',=0A=
        'for':   'htmlFor'=0A=
      },=0A=
      values: {=0A=
        _getAttr: function(element, attribute) {=0A=
          return element.getAttribute(attribute, 2);=0A=
        },=0A=
        _getAttrNode: function(element, attribute) {=0A=
          var node =3D element.getAttributeNode(attribute);=0A=
          return node ? node.value : "";=0A=
        },=0A=
        _getEv: function(element, attribute) {=0A=
          attribute =3D element.getAttribute(attribute);=0A=
          return attribute ? attribute.toString().slice(23, -2) : null;=0A=
        },=0A=
        _flag: function(element, attribute) {=0A=
          return $(element).hasAttribute(attribute) ? attribute : null;=0A=
        },=0A=
        style: function(element) {=0A=
          return element.style.cssText.toLowerCase();=0A=
        },=0A=
        title: function(element) {=0A=
          return element.title;=0A=
        }=0A=
      }=0A=
    }=0A=
  };=0A=
=0A=
  Element._attributeTranslations.write =3D {=0A=
    names: Object.extend({=0A=
      cellpadding: 'cellPadding',=0A=
      cellspacing: 'cellSpacing'=0A=
    }, Element._attributeTranslations.read.names),=0A=
    values: {=0A=
      checked: function(element, value) {=0A=
        element.checked =3D !!value;=0A=
      },=0A=
=0A=
      style: function(element, value) {=0A=
        element.style.cssText =3D value ? value : '';=0A=
      }=0A=
    }=0A=
  };=0A=
=0A=
  Element._attributeTranslations.has =3D {};=0A=
=0A=
  $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' +=0A=
      'encType maxLength readOnly longDesc').each(function(attr) {=0A=
    Element._attributeTranslations.write.names[attr.toLowerCase()] =3D =
attr;=0A=
    Element._attributeTranslations.has[attr.toLowerCase()] =3D attr;=0A=
  });=0A=
=0A=
  (function(v) {=0A=
    Object.extend(v, {=0A=
      href:        v._getAttr,=0A=
      src:         v._getAttr,=0A=
      type:        v._getAttr,=0A=
      action:      v._getAttrNode,=0A=
      disabled:    v._flag,=0A=
      checked:     v._flag,=0A=
      readonly:    v._flag,=0A=
      multiple:    v._flag,=0A=
      onload:      v._getEv,=0A=
      onunload:    v._getEv,=0A=
      onclick:     v._getEv,=0A=
      ondblclick:  v._getEv,=0A=
      onmousedown: v._getEv,=0A=
      onmouseup:   v._getEv,=0A=
      onmouseover: v._getEv,=0A=
      onmousemove: v._getEv,=0A=
      onmouseout:  v._getEv,=0A=
      onfocus:     v._getEv,=0A=
      onblur:      v._getEv,=0A=
      onkeypress:  v._getEv,=0A=
      onkeydown:   v._getEv,=0A=
      onkeyup:     v._getEv,=0A=
      onsubmit:    v._getEv,=0A=
      onreset:     v._getEv,=0A=
      onselect:    v._getEv,=0A=
      onchange:    v._getEv=0A=
    });=0A=
  })(Element._attributeTranslations.read.values);=0A=
}=0A=
=0A=
else if (Prototype.Browser.Gecko && =
/rv:1\.8\.0/.test(navigator.userAgent)) {=0A=
  Element.Methods.setOpacity =3D function(element, value) {=0A=
    element =3D $(element);=0A=
    element.style.opacity =3D (value =3D=3D 1) ? 0.999999 :=0A=
      (value =3D=3D=3D '') ? '' : (value < 0.00001) ? 0 : value;=0A=
    return element;=0A=
  };=0A=
}=0A=
=0A=
else if (Prototype.Browser.WebKit) {=0A=
  Element.Methods.setOpacity =3D function(element, value) {=0A=
    element =3D $(element);=0A=
    element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? =
'' :=0A=
      (value < 0.00001) ? 0 : value;=0A=
=0A=
    if (value =3D=3D 1)=0A=
      if(element.tagName =3D=3D 'IMG' && element.width) {=0A=
        element.width++; element.width--;=0A=
      } else try {=0A=
        var n =3D document.createTextNode(' ');=0A=
        element.appendChild(n);=0A=
        element.removeChild(n);=0A=
      } catch (e) { }=0A=
=0A=
    return element;=0A=
  };=0A=
=0A=
  // Safari returns margins on body which is incorrect if the child is =
absolutely=0A=
  // positioned.  For performance reasons, redefine =
Element#cumulativeOffset for=0A=
  // KHTML/WebKit only.=0A=
  Element.Methods.cumulativeOffset =3D function(element) {=0A=
    var valueT =3D 0, valueL =3D 0;=0A=
    do {=0A=
      valueT +=3D element.offsetTop  || 0;=0A=
      valueL +=3D element.offsetLeft || 0;=0A=
      if (element.offsetParent =3D=3D document.body)=0A=
        if (Element.getStyle(element, 'position') =3D=3D 'absolute') =
break;=0A=
=0A=
      element =3D element.offsetParent;=0A=
    } while (element);=0A=
=0A=
    return Element._returnOffset(valueL, valueT);=0A=
  };=0A=
}=0A=
=0A=
if (Prototype.Browser.IE || Prototype.Browser.Opera) {=0A=
  // IE and Opera are missing .innerHTML support for TABLE-related and =
SELECT elements=0A=
  Element.Methods.update =3D function(element, content) {=0A=
    element =3D $(element);=0A=
=0A=
    if (content && content.toElement) content =3D content.toElement();=0A=
    if (Object.isElement(content)) return =
element.update().insert(content);=0A=
=0A=
    content =3D Object.toHTML(content);=0A=
    var tagName =3D element.tagName.toUpperCase();=0A=
=0A=
    if (tagName in Element._insertionTranslations.tags) {=0A=
      $A(element.childNodes).each(function(node) { =
element.removeChild(node) });=0A=
      Element._getContentFromAnonymousElement(tagName, =
content.stripScripts())=0A=
        .each(function(node) { element.appendChild(node) });=0A=
    }=0A=
    else element.innerHTML =3D content.stripScripts();=0A=
=0A=
    content.evalScripts.bind(content).defer();=0A=
    return element;=0A=
  };=0A=
}=0A=
=0A=
if ('outerHTML' in document.createElement('div')) {=0A=
  Element.Methods.replace =3D function(element, content) {=0A=
    element =3D $(element);=0A=
=0A=
    if (content && content.toElement) content =3D content.toElement();=0A=
    if (Object.isElement(content)) {=0A=
      element.parentNode.replaceChild(content, element);=0A=
      return element;=0A=
    }=0A=
=0A=
    content =3D Object.toHTML(content);=0A=
    var parent =3D element.parentNode, tagName =3D =
parent.tagName.toUpperCase();=0A=
=0A=
    if (Element._insertionTranslations.tags[tagName]) {=0A=
      var nextSibling =3D element.next();=0A=
      var fragments =3D Element._getContentFromAnonymousElement(tagName, =
content.stripScripts());=0A=
      parent.removeChild(element);=0A=
      if (nextSibling)=0A=
        fragments.each(function(node) { parent.insertBefore(node, =
nextSibling) });=0A=
      else=0A=
        fragments.each(function(node) { parent.appendChild(node) });=0A=
    }=0A=
    else element.outerHTML =3D content.stripScripts();=0A=
=0A=
    content.evalScripts.bind(content).defer();=0A=
    return element;=0A=
  };=0A=
}=0A=
=0A=
Element._returnOffset =3D function(l, t) {=0A=
  var result =3D [l, t];=0A=
  result.left =3D l;=0A=
  result.top =3D t;=0A=
  return result;=0A=
};=0A=
=0A=
Element._getContentFromAnonymousElement =3D function(tagName, html) {=0A=
  var div =3D new Element('div'), t =3D =
Element._insertionTranslations.tags[tagName];=0A=
  if (t) {=0A=
    div.innerHTML =3D t[0] + html + t[1];=0A=
    t[2].times(function() { div =3D div.firstChild });=0A=
  } else div.innerHTML =3D html;=0A=
  return $A(div.childNodes);=0A=
};=0A=
=0A=
Element._insertionTranslations =3D {=0A=
  before: function(element, node) {=0A=
    element.parentNode.insertBefore(node, element);=0A=
  },=0A=
  top: function(element, node) {=0A=
    element.insertBefore(node, element.firstChild);=0A=
  },=0A=
  bottom: function(element, node) {=0A=
    element.appendChild(node);=0A=
  },=0A=
  after: function(element, node) {=0A=
    element.parentNode.insertBefore(node, element.nextSibling);=0A=
  },=0A=
  tags: {=0A=
    TABLE:  ['<table>',                '</table>',                   1],=0A=
    TBODY:  ['<table><tbody>',         '</tbody></table>',           2],=0A=
    TR:     ['<table><tbody><tr>',     '</tr></tbody></table>',      3],=0A=
    TD:     ['<table><tbody><tr><td>', '</td></tr></tbody></table>', 4],=0A=
    SELECT: ['<select>',               '</select>',                  1]=0A=
  }=0A=
};=0A=
=0A=
(function() {=0A=
  Object.extend(this.tags, {=0A=
    THEAD: this.tags.TBODY,=0A=
    TFOOT: this.tags.TBODY,=0A=
    TH:    this.tags.TD=0A=
  });=0A=
}).call(Element._insertionTranslations);=0A=
=0A=
Element.Methods.Simulated =3D {=0A=
  hasAttribute: function(element, attribute) {=0A=
    attribute =3D Element._attributeTranslations.has[attribute] || =
attribute;=0A=
    var node =3D $(element).getAttributeNode(attribute);=0A=
    return node && node.specified;=0A=
  }=0A=
};=0A=
=0A=
Element.Methods.ByTag =3D { };=0A=
=0A=
Object.extend(Element, Element.Methods);=0A=
=0A=
if (!Prototype.BrowserFeatures.ElementExtensions &&=0A=
    document.createElement('div').__proto__) {=0A=
  window.HTMLElement =3D { };=0A=
  window.HTMLElement.prototype =3D =
document.createElement('div').__proto__;=0A=
  Prototype.BrowserFeatures.ElementExtensions =3D true;=0A=
}=0A=
=0A=
Element.extend =3D (function() {=0A=
  if (Prototype.BrowserFeatures.SpecificElementExtensions)=0A=
    return Prototype.K;=0A=
=0A=
  var Methods =3D { }, ByTag =3D Element.Methods.ByTag;=0A=
=0A=
  var extend =3D Object.extend(function(element) {=0A=
    if (!element || element._extendedByPrototype ||=0A=
        element.nodeType !=3D 1 || element =3D=3D window) return element;=0A=
=0A=
    var methods =3D Object.clone(Methods),=0A=
      tagName =3D element.tagName, property, value;=0A=
=0A=
    // extend methods for specific tags=0A=
    if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);=0A=
=0A=
    for (property in methods) {=0A=
      value =3D methods[property];=0A=
      if (Object.isFunction(value) && !(property in element))=0A=
        element[property] =3D value.methodize();=0A=
    }=0A=
=0A=
    element._extendedByPrototype =3D Prototype.emptyFunction;=0A=
    return element;=0A=
=0A=
  }, {=0A=
    refresh: function() {=0A=
      // extend methods for all tags (Safari doesn't need this)=0A=
      if (!Prototype.BrowserFeatures.ElementExtensions) {=0A=
        Object.extend(Methods, Element.Methods);=0A=
        Object.extend(Methods, Element.Methods.Simulated);=0A=
      }=0A=
    }=0A=
  });=0A=
=0A=
  extend.refresh();=0A=
  return extend;=0A=
})();=0A=
=0A=
Element.hasAttribute =3D function(element, attribute) {=0A=
  if (element.hasAttribute) return element.hasAttribute(attribute);=0A=
  return Element.Methods.Simulated.hasAttribute(element, attribute);=0A=
};=0A=
=0A=
Element.addMethods =3D function(methods) {=0A=
  var F =3D Prototype.BrowserFeatures, T =3D Element.Methods.ByTag;=0A=
=0A=
  if (!methods) {=0A=
    Object.extend(Form, Form.Methods);=0A=
    Object.extend(Form.Element, Form.Element.Methods);=0A=
    Object.extend(Element.Methods.ByTag, {=0A=
      "FORM":     Object.clone(Form.Methods),=0A=
      "INPUT":    Object.clone(Form.Element.Methods),=0A=
      "SELECT":   Object.clone(Form.Element.Methods),=0A=
      "TEXTAREA": Object.clone(Form.Element.Methods)=0A=
    });=0A=
  }=0A=
=0A=
  if (arguments.length =3D=3D 2) {=0A=
    var tagName =3D methods;=0A=
    methods =3D arguments[1];=0A=
  }=0A=
=0A=
  if (!tagName) Object.extend(Element.Methods, methods || { });=0A=
  else {=0A=
    if (Object.isArray(tagName)) tagName.each(extend);=0A=
    else extend(tagName);=0A=
  }=0A=
=0A=
  function extend(tagName) {=0A=
    tagName =3D tagName.toUpperCase();=0A=
    if (!Element.Methods.ByTag[tagName])=0A=
      Element.Methods.ByTag[tagName] =3D { };=0A=
    Object.extend(Element.Methods.ByTag[tagName], methods);=0A=
  }=0A=
=0A=
  function copy(methods, destination, onlyIfAbsent) {=0A=
    onlyIfAbsent =3D onlyIfAbsent || false;=0A=
    for (var property in methods) {=0A=
      var value =3D methods[property];=0A=
      if (!Object.isFunction(value)) continue;=0A=
      if (!onlyIfAbsent || !(property in destination))=0A=
        destination[property] =3D value.methodize();=0A=
    }=0A=
  }=0A=
=0A=
  function findDOMClass(tagName) {=0A=
    var klass;=0A=
    var trans =3D {=0A=
      "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph",=0A=
      "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": =
"DList",=0A=
      "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": =
"Heading",=0A=
      "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote",=0A=
      "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", =
"CAPTION":=0A=
      "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", "THEAD":=0A=
      "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", =
"TR":=0A=
      "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET":=0A=
      "FrameSet", "IFRAME": "IFrame"=0A=
    };=0A=
    if (trans[tagName]) klass =3D 'HTML' + trans[tagName] + 'Element';=0A=
    if (window[klass]) return window[klass];=0A=
    klass =3D 'HTML' + tagName + 'Element';=0A=
    if (window[klass]) return window[klass];=0A=
    klass =3D 'HTML' + tagName.capitalize() + 'Element';=0A=
    if (window[klass]) return window[klass];=0A=
=0A=
    window[klass] =3D { };=0A=
    window[klass].prototype =3D =
document.createElement(tagName).__proto__;=0A=
    return window[klass];=0A=
  }=0A=
=0A=
  if (F.ElementExtensions) {=0A=
    copy(Element.Methods, HTMLElement.prototype);=0A=
    copy(Element.Methods.Simulated, HTMLElement.prototype, true);=0A=
  }=0A=
=0A=
  if (F.SpecificElementExtensions) {=0A=
    for (var tag in Element.Methods.ByTag) {=0A=
      var klass =3D findDOMClass(tag);=0A=
      if (Object.isUndefined(klass)) continue;=0A=
      copy(T[tag], klass.prototype);=0A=
    }=0A=
  }=0A=
=0A=
  Object.extend(Element, Element.Methods);=0A=
  delete Element.ByTag;=0A=
=0A=
  if (Element.extend.refresh) Element.extend.refresh();=0A=
  Element.cache =3D { };=0A=
};=0A=
=0A=
document.viewport =3D {=0A=
  getDimensions: function() {=0A=
    var dimensions =3D { };=0A=
    var B =3D Prototype.Browser;=0A=
    $w('width height').each(function(d) {=0A=
      var D =3D d.capitalize();=0A=
      dimensions[d] =3D (B.WebKit && !document.evaluate) ? self['inner' =
+ D] :=0A=
        (B.Opera) ? document.body['client' + D] : =
document.documentElement['client' + D];=0A=
    });=0A=
    return dimensions;=0A=
  },=0A=
=0A=
  getWidth: function() {=0A=
    return this.getDimensions().width;=0A=
  },=0A=
=0A=
  getHeight: function() {=0A=
    return this.getDimensions().height;=0A=
  },=0A=
=0A=
  getScrollOffsets: function() {=0A=
    return Element._returnOffset(=0A=
      window.pageXOffset || document.documentElement.scrollLeft || =
document.body.scrollLeft,=0A=
      window.pageYOffset || document.documentElement.scrollTop || =
document.body.scrollTop);=0A=
  }=0A=
};=0A=
/* Portions of the Selector class are derived from Jack Slocum=E2=80=99s =
DomQuery,=0A=
 * part of YUI-Ext version 0.40, distributed under the terms of an =
MIT-style=0A=
 * license.  Please see http://www.yui-ext.com/ for more information. */=0A=
=0A=
var Selector =3D Class.create({=0A=
  initialize: function(expression) {=0A=
    this.expression =3D expression.strip();=0A=
    this.compileMatcher();=0A=
  },=0A=
=0A=
  shouldUseXPath: function() {=0A=
    if (!Prototype.BrowserFeatures.XPath) return false;=0A=
=0A=
    var e =3D this.expression;=0A=
=0A=
    // Safari 3 chokes on :*-of-type and :empty=0A=
    if (Prototype.Browser.WebKit &&=0A=
     (e.include("-of-type") || e.include(":empty")))=0A=
      return false;=0A=
=0A=
    // XPath can't do namespaced attributes, nor can it read=0A=
    // the "checked" property from DOM nodes=0A=
    if ((/(\[[\w-]*?:|:checked)/).test(this.expression))=0A=
      return false;=0A=
=0A=
    return true;=0A=
  },=0A=
=0A=
  compileMatcher: function() {=0A=
    if (this.shouldUseXPath())=0A=
      return this.compileXPathMatcher();=0A=
=0A=
    var e =3D this.expression, ps =3D Selector.patterns, h =3D =
Selector.handlers,=0A=
        c =3D Selector.criteria, le, p, m;=0A=
=0A=
    if (Selector._cache[e]) {=0A=
      this.matcher =3D Selector._cache[e];=0A=
      return;=0A=
    }=0A=
=0A=
    this.matcher =3D ["this.matcher =3D function(root) {",=0A=
                    "var r =3D root, h =3D Selector.handlers, c =3D =
false, n;"];=0A=
=0A=
    while (e && le !=3D e && (/\S/).test(e)) {=0A=
      le =3D e;=0A=
      for (var i in ps) {=0A=
        p =3D ps[i];=0A=
        if (m =3D e.match(p)) {=0A=
          this.matcher.push(Object.isFunction(c[i]) ? c[i](m) :=0A=
    	      new Template(c[i]).evaluate(m));=0A=
          e =3D e.replace(m[0], '');=0A=
          break;=0A=
        }=0A=
      }=0A=
    }=0A=
=0A=
    this.matcher.push("return h.unique(n);\n}");=0A=
    eval(this.matcher.join('\n'));=0A=
    Selector._cache[this.expression] =3D this.matcher;=0A=
  },=0A=
=0A=
  compileXPathMatcher: function() {=0A=
    var e =3D this.expression, ps =3D Selector.patterns,=0A=
        x =3D Selector.xpath, le, m;=0A=
=0A=
    if (Selector._cache[e]) {=0A=
      this.xpath =3D Selector._cache[e]; return;=0A=
    }=0A=
=0A=
    this.matcher =3D ['.//*'];=0A=
    while (e && le !=3D e && (/\S/).test(e)) {=0A=
      le =3D e;=0A=
      for (var i in ps) {=0A=
        if (m =3D e.match(ps[i])) {=0A=
          this.matcher.push(Object.isFunction(x[i]) ? x[i](m) :=0A=
            new Template(x[i]).evaluate(m));=0A=
          e =3D e.replace(m[0], '');=0A=
          break;=0A=
        }=0A=
      }=0A=
    }=0A=
=0A=
    this.xpath =3D this.matcher.join('');=0A=
    Selector._cache[this.expression] =3D this.xpath;=0A=
  },=0A=
=0A=
  findElements: function(root) {=0A=
    root =3D root || document;=0A=
    if (this.xpath) return document._getElementsByXPath(this.xpath, =
root);=0A=
    return this.matcher(root);=0A=
  },=0A=
=0A=
  match: function(element) {=0A=
    this.tokens =3D [];=0A=
=0A=
    var e =3D this.expression, ps =3D Selector.patterns, as =3D =
Selector.assertions;=0A=
    var le, p, m;=0A=
=0A=
    while (e && le !=3D=3D e && (/\S/).test(e)) {=0A=
      le =3D e;=0A=
      for (var i in ps) {=0A=
        p =3D ps[i];=0A=
        if (m =3D e.match(p)) {=0A=
          // use the Selector.assertions methods unless the selector=0A=
          // is too complex.=0A=
          if (as[i]) {=0A=
            this.tokens.push([i, Object.clone(m)]);=0A=
            e =3D e.replace(m[0], '');=0A=
          } else {=0A=
            // reluctantly do a document-wide search=0A=
            // and look for a match in the array=0A=
            return this.findElements(document).include(element);=0A=
          }=0A=
        }=0A=
      }=0A=
    }=0A=
=0A=
    var match =3D true, name, matches;=0A=
    for (var i =3D 0, token; token =3D this.tokens[i]; i++) {=0A=
      name =3D token[0], matches =3D token[1];=0A=
      if (!Selector.assertions[name](element, matches)) {=0A=
        match =3D false; break;=0A=
      }=0A=
    }=0A=
=0A=
    return match;=0A=
  },=0A=
=0A=
  toString: function() {=0A=
    return this.expression;=0A=
  },=0A=
=0A=
  inspect: function() {=0A=
    return "#<Selector:" + this.expression.inspect() + ">";=0A=
  }=0A=
});=0A=
=0A=
Object.extend(Selector, {=0A=
  _cache: { },=0A=
=0A=
  xpath: {=0A=
    descendant:   "//*",=0A=
    child:        "/*",=0A=
    adjacent:     "/following-sibling::*[1]",=0A=
    laterSibling: '/following-sibling::*',=0A=
    tagName:      function(m) {=0A=
      if (m[1] =3D=3D '*') return '';=0A=
      return "[local-name()=3D'" + m[1].toLowerCase() +=0A=
             "' or local-name()=3D'" + m[1].toUpperCase() + "']";=0A=
    },=0A=
    className:    "[contains(concat(' ', @class, ' '), ' #{1} ')]",=0A=
    id:           "[@id=3D'#{1}']",=0A=
    attrPresence: function(m) {=0A=
      m[1] =3D m[1].toLowerCase();=0A=
      return new Template("[@#{1}]").evaluate(m);=0A=
    },=0A=
    attr: function(m) {=0A=
      m[1] =3D m[1].toLowerCase();=0A=
      m[3] =3D m[5] || m[6];=0A=
      return new Template(Selector.xpath.operators[m[2]]).evaluate(m);=0A=
    },=0A=
    pseudo: function(m) {=0A=
      var h =3D Selector.xpath.pseudos[m[1]];=0A=
      if (!h) return '';=0A=
      if (Object.isFunction(h)) return h(m);=0A=
      return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);=0A=
    },=0A=
    operators: {=0A=
      '=3D':  "[@#{1}=3D'#{3}']",=0A=
      '!=3D': "[@#{1}!=3D'#{3}']",=0A=
      '^=3D': "[starts-with(@#{1}, '#{3}')]",=0A=
      '$=3D': "[substring(@#{1}, (string-length(@#{1}) - =
string-length('#{3}') + 1))=3D'#{3}']",=0A=
      '*=3D': "[contains(@#{1}, '#{3}')]",=0A=
      '~=3D': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",=0A=
      '|=3D': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]"=0A=
    },=0A=
    pseudos: {=0A=
      'first-child': '[not(preceding-sibling::*)]',=0A=
      'last-child':  '[not(following-sibling::*)]',=0A=
      'only-child':  '[not(preceding-sibling::* or =
following-sibling::*)]',=0A=
      'empty':       "[count(*) =3D 0 and (count(text()) =3D 0 or =
translate(text(), ' \t\r\n', '') =3D '')]",=0A=
      'checked':     "[@checked]",=0A=
      'disabled':    "[@disabled]",=0A=
      'enabled':     "[not(@disabled)]",=0A=
      'not': function(m) {=0A=
        var e =3D m[6], p =3D Selector.patterns,=0A=
            x =3D Selector.xpath, le, v;=0A=
=0A=
        var exclusion =3D [];=0A=
        while (e && le !=3D e && (/\S/).test(e)) {=0A=
          le =3D e;=0A=
          for (var i in p) {=0A=
            if (m =3D e.match(p[i])) {=0A=
              v =3D Object.isFunction(x[i]) ? x[i](m) : new =
Template(x[i]).evaluate(m);=0A=
              exclusion.push("(" + v.substring(1, v.length - 1) + ")");=0A=
              e =3D e.replace(m[0], '');=0A=
              break;=0A=
            }=0A=
          }=0A=
        }=0A=
        return "[not(" + exclusion.join(" and ") + ")]";=0A=
      },=0A=
      'nth-child':      function(m) {=0A=
        return =
Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m);=0A=
      },=0A=
      'nth-last-child': function(m) {=0A=
        return =
Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m);=0A=
      },=0A=
      'nth-of-type':    function(m) {=0A=
        return Selector.xpath.pseudos.nth("position() ", m);=0A=
      },=0A=
      'nth-last-of-type': function(m) {=0A=
        return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", =
m);=0A=
      },=0A=
      'first-of-type':  function(m) {=0A=
        m[6] =3D "1"; return Selector.xpath.pseudos['nth-of-type'](m);=0A=
      },=0A=
      'last-of-type':   function(m) {=0A=
        m[6] =3D "1"; return =
Selector.xpath.pseudos['nth-last-of-type'](m);=0A=
      },=0A=
      'only-of-type':   function(m) {=0A=
        var p =3D Selector.xpath.pseudos; return p['first-of-type'](m) + =
p['last-of-type'](m);=0A=
      },=0A=
      nth: function(fragment, m) {=0A=
        var mm, formula =3D m[6], predicate;=0A=
        if (formula =3D=3D 'even') formula =3D '2n+0';=0A=
        if (formula =3D=3D 'odd')  formula =3D '2n+1';=0A=
        if (mm =3D formula.match(/^(\d+)$/)) // digit only=0A=
          return '[' + fragment + "=3D " + mm[1] + ']';=0A=
        if (mm =3D formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b=0A=
          if (mm[1] =3D=3D "-") mm[1] =3D -1;=0A=
          var a =3D mm[1] ? Number(mm[1]) : 1;=0A=
          var b =3D mm[2] ? Number(mm[2]) : 0;=0A=
          predicate =3D "[((#{fragment} - #{b}) mod #{a} =3D 0) and " +=0A=
          "((#{fragment} - #{b}) div #{a} >=3D 0)]";=0A=
          return new Template(predicate).evaluate({=0A=
            fragment: fragment, a: a, b: b });=0A=
        }=0A=
      }=0A=
    }=0A=
  },=0A=
=0A=
  criteria: {=0A=
    tagName:      'n =3D h.tagName(n, r, "#{1}", c);      c =3D false;',=0A=
    className:    'n =3D h.className(n, r, "#{1}", c);    c =3D false;',=0A=
    id:           'n =3D h.id(n, r, "#{1}", c);           c =3D false;',=0A=
    attrPresence: 'n =3D h.attrPresence(n, r, "#{1}", c); c =3D false;',=0A=
    attr: function(m) {=0A=
      m[3] =3D (m[5] || m[6]);=0A=
      return new Template('n =3D h.attr(n, r, "#{1}", "#{3}", "#{2}", =
c); c =3D false;').evaluate(m);=0A=
    },=0A=
    pseudo: function(m) {=0A=
      if (m[6]) m[6] =3D m[6].replace(/"/g, '\\"');=0A=
      return new Template('n =3D h.pseudo(n, "#{1}", "#{6}", r, c); c =
=3D false;').evaluate(m);=0A=
    },=0A=
    descendant:   'c =3D "descendant";',=0A=
    child:        'c =3D "child";',=0A=
    adjacent:     'c =3D "adjacent";',=0A=
    laterSibling: 'c =3D "laterSibling";'=0A=
  },=0A=
=0A=
  patterns: {=0A=
    // combinators must be listed first=0A=
    // (and descendant needs to be last combinator)=0A=
    laterSibling: /^\s*~\s*/,=0A=
    child:        /^\s*>\s*/,=0A=
    adjacent:     /^\s*\+\s*/,=0A=
    descendant:   /^\s/,=0A=
=0A=
    // selectors follow=0A=
    tagName:      /^\s*(\*|[\w\-]+)(\b|$)?/,=0A=
    id:           /^#([\w\-\*]+)(\b|$)/,=0A=
    className:    /^\.([\w\-\*]+)(\b|$)/,=0A=
    pseudo:=0A=
/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis=
)abled|not)(\((.*?)\))?(\b|$|(?=3D\s|[:+~>]))/,=0A=
    attrPresence: /^\[([\w]+)\]/,=0A=
    attr:         =
/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=3D)\s*((['"])([^\4]*?)\4|([^'"][^=
\]]*?)))?\]/=0A=
  },=0A=
=0A=
  // for Selector.match and Element#match=0A=
  assertions: {=0A=
    tagName: function(element, matches) {=0A=
      return matches[1].toUpperCase() =3D=3D =
element.tagName.toUpperCase();=0A=
    },=0A=
=0A=
    className: function(element, matches) {=0A=
      return Element.hasClassName(element, matches[1]);=0A=
    },=0A=
=0A=
    id: function(element, matches) {=0A=
      return element.id =3D=3D=3D matches[1];=0A=
    },=0A=
=0A=
    attrPresence: function(element, matches) {=0A=
      return Element.hasAttribute(element, matches[1]);=0A=
    },=0A=
=0A=
    attr: function(element, matches) {=0A=
      var nodeValue =3D Element.readAttribute(element, matches[1]);=0A=
      return nodeValue && Selector.operators[matches[2]](nodeValue, =
matches[5] || matches[6]);=0A=
    }=0A=
  },=0A=
=0A=
  handlers: {=0A=
    // UTILITY FUNCTIONS=0A=
    // joins two collections=0A=
    concat: function(a, b) {=0A=
      for (var i =3D 0, node; node =3D b[i]; i++)=0A=
        a.push(node);=0A=
      return a;=0A=
    },=0A=
=0A=
    // marks an array of nodes for counting=0A=
    mark: function(nodes) {=0A=
      var _true =3D Prototype.emptyFunction;=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
        node._countedByPrototype =3D _true;=0A=
      return nodes;=0A=
    },=0A=
=0A=
    unmark: function(nodes) {=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
        node._countedByPrototype =3D undefined;=0A=
      return nodes;=0A=
    },=0A=
=0A=
    // mark each child node with its position (for nth calls)=0A=
    // "ofType" flag indicates whether we're indexing for nth-of-type=0A=
    // rather than nth-child=0A=
    index: function(parentNode, reverse, ofType) {=0A=
      parentNode._countedByPrototype =3D Prototype.emptyFunction;=0A=
      if (reverse) {=0A=
        for (var nodes =3D parentNode.childNodes, i =3D nodes.length - =
1, j =3D 1; i >=3D 0; i--) {=0A=
          var node =3D nodes[i];=0A=
          if (node.nodeType =3D=3D 1 && (!ofType || =
node._countedByPrototype)) node.nodeIndex =3D j++;=0A=
        }=0A=
      } else {=0A=
        for (var i =3D 0, j =3D 1, nodes =3D parentNode.childNodes; node =
=3D nodes[i]; i++)=0A=
          if (node.nodeType =3D=3D 1 && (!ofType || =
node._countedByPrototype)) node.nodeIndex =3D j++;=0A=
      }=0A=
    },=0A=
=0A=
    // filters out duplicates and extends all nodes=0A=
    unique: function(nodes) {=0A=
      if (nodes.length =3D=3D 0) return nodes;=0A=
      var results =3D [], n;=0A=
      for (var i =3D 0, l =3D nodes.length; i < l; i++)=0A=
        if (!(n =3D nodes[i])._countedByPrototype) {=0A=
          n._countedByPrototype =3D Prototype.emptyFunction;=0A=
          results.push(Element.extend(n));=0A=
        }=0A=
      return Selector.handlers.unmark(results);=0A=
    },=0A=
=0A=
    // COMBINATOR FUNCTIONS=0A=
    descendant: function(nodes) {=0A=
      var h =3D Selector.handlers;=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        h.concat(results, node.getElementsByTagName('*'));=0A=
      return results;=0A=
    },=0A=
=0A=
    child: function(nodes) {=0A=
      var h =3D Selector.handlers;=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {=0A=
        for (var j =3D 0, child; child =3D node.childNodes[j]; j++)=0A=
          if (child.nodeType =3D=3D 1 && child.tagName !=3D '!') =
results.push(child);=0A=
      }=0A=
      return results;=0A=
    },=0A=
=0A=
    adjacent: function(nodes) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {=0A=
        var next =3D this.nextElementSibling(node);=0A=
        if (next) results.push(next);=0A=
      }=0A=
      return results;=0A=
    },=0A=
=0A=
    laterSibling: function(nodes) {=0A=
      var h =3D Selector.handlers;=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        h.concat(results, Element.nextSiblings(node));=0A=
      return results;=0A=
    },=0A=
=0A=
    nextElementSibling: function(node) {=0A=
      while (node =3D node.nextSibling)=0A=
	      if (node.nodeType =3D=3D 1) return node;=0A=
      return null;=0A=
    },=0A=
=0A=
    previousElementSibling: function(node) {=0A=
      while (node =3D node.previousSibling)=0A=
        if (node.nodeType =3D=3D 1) return node;=0A=
      return null;=0A=
    },=0A=
=0A=
    // TOKEN FUNCTIONS=0A=
    tagName: function(nodes, root, tagName, combinator) {=0A=
      var uTagName =3D tagName.toUpperCase();=0A=
      var results =3D [], h =3D Selector.handlers;=0A=
      if (nodes) {=0A=
        if (combinator) {=0A=
          // fastlane for ordinary descendant combinators=0A=
          if (combinator =3D=3D "descendant") {=0A=
            for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
              h.concat(results, node.getElementsByTagName(tagName));=0A=
            return results;=0A=
          } else nodes =3D this[combinator](nodes);=0A=
          if (tagName =3D=3D "*") return nodes;=0A=
        }=0A=
        for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
          if (node.tagName.toUpperCase() =3D=3D=3D uTagName) =
results.push(node);=0A=
        return results;=0A=
      } else return root.getElementsByTagName(tagName);=0A=
    },=0A=
=0A=
    id: function(nodes, root, id, combinator) {=0A=
      var targetNode =3D $(id), h =3D Selector.handlers;=0A=
      if (!targetNode) return [];=0A=
      if (!nodes && root =3D=3D document) return [targetNode];=0A=
      if (nodes) {=0A=
        if (combinator) {=0A=
          if (combinator =3D=3D 'child') {=0A=
            for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
              if (targetNode.parentNode =3D=3D node) return [targetNode];=0A=
          } else if (combinator =3D=3D 'descendant') {=0A=
            for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
              if (Element.descendantOf(targetNode, node)) return =
[targetNode];=0A=
          } else if (combinator =3D=3D 'adjacent') {=0A=
            for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
              if (Selector.handlers.previousElementSibling(targetNode) =
=3D=3D node)=0A=
                return [targetNode];=0A=
          } else nodes =3D h[combinator](nodes);=0A=
        }=0A=
        for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
          if (node =3D=3D targetNode) return [targetNode];=0A=
        return [];=0A=
      }=0A=
      return (targetNode && Element.descendantOf(targetNode, root)) ? =
[targetNode] : [];=0A=
    },=0A=
=0A=
    className: function(nodes, root, className, combinator) {=0A=
      if (nodes && combinator) nodes =3D this[combinator](nodes);=0A=
      return Selector.handlers.byClassName(nodes, root, className);=0A=
    },=0A=
=0A=
    byClassName: function(nodes, root, className) {=0A=
      if (!nodes) nodes =3D Selector.handlers.descendant([root]);=0A=
      var needle =3D ' ' + className + ' ';=0A=
      for (var i =3D 0, results =3D [], node, nodeClassName; node =3D =
nodes[i]; i++) {=0A=
        nodeClassName =3D node.className;=0A=
        if (nodeClassName.length =3D=3D 0) continue;=0A=
        if (nodeClassName =3D=3D className || (' ' + nodeClassName + ' =
').include(needle))=0A=
          results.push(node);=0A=
      }=0A=
      return results;=0A=
    },=0A=
=0A=
    attrPresence: function(nodes, root, attr, combinator) {=0A=
      if (!nodes) nodes =3D root.getElementsByTagName("*");=0A=
      if (nodes && combinator) nodes =3D this[combinator](nodes);=0A=
      var results =3D [];=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
        if (Element.hasAttribute(node, attr)) results.push(node);=0A=
      return results;=0A=
    },=0A=
=0A=
    attr: function(nodes, root, attr, value, operator, combinator) {=0A=
      if (!nodes) nodes =3D root.getElementsByTagName("*");=0A=
      if (nodes && combinator) nodes =3D this[combinator](nodes);=0A=
      var handler =3D Selector.operators[operator], results =3D [];=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++) {=0A=
        var nodeValue =3D Element.readAttribute(node, attr);=0A=
        if (nodeValue =3D=3D=3D null) continue;=0A=
        if (handler(nodeValue, value)) results.push(node);=0A=
      }=0A=
      return results;=0A=
    },=0A=
=0A=
    pseudo: function(nodes, name, value, root, combinator) {=0A=
      if (nodes && combinator) nodes =3D this[combinator](nodes);=0A=
      if (!nodes) nodes =3D root.getElementsByTagName("*");=0A=
      return Selector.pseudos[name](nodes, value, root);=0A=
    }=0A=
  },=0A=
=0A=
  pseudos: {=0A=
    'first-child': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {=0A=
        if (Selector.handlers.previousElementSibling(node)) continue;=0A=
          results.push(node);=0A=
      }=0A=
      return results;=0A=
    },=0A=
    'last-child': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {=0A=
        if (Selector.handlers.nextElementSibling(node)) continue;=0A=
          results.push(node);=0A=
      }=0A=
      return results;=0A=
    },=0A=
    'only-child': function(nodes, value, root) {=0A=
      var h =3D Selector.handlers;=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        if (!h.previousElementSibling(node) && =
!h.nextElementSibling(node))=0A=
          results.push(node);=0A=
      return results;=0A=
    },=0A=
    'nth-child':        function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, formula, root);=0A=
    },=0A=
    'nth-last-child':   function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, formula, root, true);=0A=
    },=0A=
    'nth-of-type':      function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, formula, root, false, true);=0A=
    },=0A=
    'nth-last-of-type': function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, formula, root, true, true);=0A=
    },=0A=
    'first-of-type':    function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, "1", root, false, true);=0A=
    },=0A=
    'last-of-type':     function(nodes, formula, root) {=0A=
      return Selector.pseudos.nth(nodes, "1", root, true, true);=0A=
    },=0A=
    'only-of-type':     function(nodes, formula, root) {=0A=
      var p =3D Selector.pseudos;=0A=
      return p['last-of-type'](p['first-of-type'](nodes, formula, root), =
formula, root);=0A=
    },=0A=
=0A=
    // handles the an+b logic=0A=
    getIndices: function(a, b, total) {=0A=
      if (a =3D=3D 0) return b > 0 ? [b] : [];=0A=
      return $R(1, total).inject([], function(memo, i) {=0A=
        if (0 =3D=3D (i - b) % a && (i - b) / a >=3D 0) memo.push(i);=0A=
        return memo;=0A=
      });=0A=
    },=0A=
=0A=
    // handles nth(-last)-child, nth(-last)-of-type, and =
(first|last)-of-type=0A=
    nth: function(nodes, formula, root, reverse, ofType) {=0A=
      if (nodes.length =3D=3D 0) return [];=0A=
      if (formula =3D=3D 'even') formula =3D '2n+0';=0A=
      if (formula =3D=3D 'odd')  formula =3D '2n+1';=0A=
      var h =3D Selector.handlers, results =3D [], indexed =3D [], m;=0A=
      h.mark(nodes);=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++) {=0A=
        if (!node.parentNode._countedByPrototype) {=0A=
          h.index(node.parentNode, reverse, ofType);=0A=
          indexed.push(node.parentNode);=0A=
        }=0A=
      }=0A=
      if (formula.match(/^\d+$/)) { // just a number=0A=
        formula =3D Number(formula);=0A=
        for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
          if (node.nodeIndex =3D=3D formula) results.push(node);=0A=
      } else if (m =3D formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // =
an+b=0A=
        if (m[1] =3D=3D "-") m[1] =3D -1;=0A=
        var a =3D m[1] ? Number(m[1]) : 1;=0A=
        var b =3D m[2] ? Number(m[2]) : 0;=0A=
        var indices =3D Selector.pseudos.getIndices(a, b, nodes.length);=0A=
        for (var i =3D 0, node, l =3D indices.length; node =3D nodes[i]; =
i++) {=0A=
          for (var j =3D 0; j < l; j++)=0A=
            if (node.nodeIndex =3D=3D indices[j]) results.push(node);=0A=
        }=0A=
      }=0A=
      h.unmark(nodes);=0A=
      h.unmark(indexed);=0A=
      return results;=0A=
    },=0A=
=0A=
    'empty': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {=0A=
        // IE treats comments as element nodes=0A=
        if (node.tagName =3D=3D '!' || (node.firstChild && =
!node.innerHTML.match(/^\s*$/))) continue;=0A=
        results.push(node);=0A=
      }=0A=
      return results;=0A=
    },=0A=
=0A=
    'not': function(nodes, selector, root) {=0A=
      var h =3D Selector.handlers, selectorType, m;=0A=
      var exclusions =3D new Selector(selector).findElements(root);=0A=
      h.mark(exclusions);=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        if (!node._countedByPrototype) results.push(node);=0A=
      h.unmark(exclusions);=0A=
      return results;=0A=
    },=0A=
=0A=
    'enabled': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        if (!node.disabled) results.push(node);=0A=
      return results;=0A=
    },=0A=
=0A=
    'disabled': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        if (node.disabled) results.push(node);=0A=
      return results;=0A=
    },=0A=
=0A=
    'checked': function(nodes, value, root) {=0A=
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)=0A=
        if (node.checked) results.push(node);=0A=
      return results;=0A=
    }=0A=
  },=0A=
=0A=
  operators: {=0A=
    '=3D':  function(nv, v) { return nv =3D=3D v; },=0A=
    '!=3D': function(nv, v) { return nv !=3D v; },=0A=
    '^=3D': function(nv, v) { return nv.startsWith(v); },=0A=
    '$=3D': function(nv, v) { return nv.endsWith(v); },=0A=
    '*=3D': function(nv, v) { return nv.include(v); },=0A=
    '~=3D': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + =
' '); },=0A=
    '|=3D': function(nv, v) { return ('-' + nv.toUpperCase() + =
'-').include('-' + v.toUpperCase() + '-'); }=0A=
  },=0A=
=0A=
  split: function(expression) {=0A=
    var expressions =3D [];=0A=
    expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, =
function(m) {=0A=
      expressions.push(m[1].strip());=0A=
    });=0A=
    return expressions;=0A=
  },=0A=
=0A=
  matchElements: function(elements, expression) {=0A=
    var matches =3D $$(expression), h =3D Selector.handlers;=0A=
    h.mark(matches);=0A=
    for (var i =3D 0, results =3D [], element; element =3D elements[i]; =
i++)=0A=
      if (element._countedByPrototype) results.push(element);=0A=
    h.unmark(matches);=0A=
    return results;=0A=
  },=0A=
=0A=
  findElement: function(elements, expression, index) {=0A=
    if (Object.isNumber(expression)) {=0A=
      index =3D expression; expression =3D false;=0A=
    }=0A=
    return Selector.matchElements(elements, expression || '*')[index || =
0];=0A=
  },=0A=
=0A=
  findChildElements: function(element, expressions) {=0A=
    expressions =3D Selector.split(expressions.join(','));=0A=
    var results =3D [], h =3D Selector.handlers;=0A=
    for (var i =3D 0, l =3D expressions.length, selector; i < l; i++) {=0A=
      selector =3D new Selector(expressions[i].strip());=0A=
      h.concat(results, selector.findElements(element));=0A=
    }=0A=
    return (l > 1) ? h.unique(results) : results;=0A=
  }=0A=
});=0A=
=0A=
if (Prototype.Browser.IE) {=0A=
  Object.extend(Selector.handlers, {=0A=
    // IE returns comment nodes on getElementsByTagName("*").=0A=
    // Filter them out.=0A=
    concat: function(a, b) {=0A=
      for (var i =3D 0, node; node =3D b[i]; i++)=0A=
        if (node.tagName !=3D=3D "!") a.push(node);=0A=
      return a;=0A=
    },=0A=
=0A=
    // IE improperly serializes _countedByPrototype in (inner|outer)HTML.=0A=
    unmark: function(nodes) {=0A=
      for (var i =3D 0, node; node =3D nodes[i]; i++)=0A=
        node.removeAttribute('_countedByPrototype');=0A=
      return nodes;=0A=
    }=0A=
  });=0A=
}=0A=
=0A=
function $$() {=0A=
  return Selector.findChildElements(document, $A(arguments));=0A=
}=0A=
var Form =3D {=0A=
  reset: function(form) {=0A=
    $(form).reset();=0A=
    return form;=0A=
  },=0A=
=0A=
  serializeElements: function(elements, options) {=0A=
    if (typeof options !=3D 'object') options =3D { hash: !!options };=0A=
    else if (Object.isUndefined(options.hash)) options.hash =3D true;=0A=
    var key, value, submitted =3D false, submit =3D options.submit;=0A=
=0A=
    var data =3D elements.inject({ }, function(result, element) {=0A=
      if (!element.disabled && element.name) {=0A=
        key =3D element.name; value =3D $(element).getValue();=0A=
        if (value !=3D null && (element.type !=3D 'submit' || =
(!submitted &&=0A=
            submit !=3D=3D false && (!submit || key =3D=3D submit) && =
(submitted =3D true)))) {=0A=
          if (key in result) {=0A=
            // a key is already present; construct an array of values=0A=
            if (!Object.isArray(result[key])) result[key] =3D =
[result[key]];=0A=
            result[key].push(value);=0A=
          }=0A=
          else result[key] =3D value;=0A=
        }=0A=
      }=0A=
      return result;=0A=
    });=0A=
=0A=
    return options.hash ? data : Object.toQueryString(data);=0A=
  }=0A=
};=0A=
=0A=
Form.Methods =3D {=0A=
  serialize: function(form, options) {=0A=
    return Form.serializeElements(Form.getElements(form), options);=0A=
  },=0A=
=0A=
  getElements: function(form) {=0A=
    return $A($(form).getElementsByTagName('*')).inject([],=0A=
      function(elements, child) {=0A=
        if (Form.Element.Serializers[child.tagName.toLowerCase()])=0A=
          elements.push(Element.extend(child));=0A=
        return elements;=0A=
      }=0A=
    );=0A=
  },=0A=
=0A=
  getInputs: function(form, typeName, name) {=0A=
    form =3D $(form);=0A=
    var inputs =3D form.getElementsByTagName('input');=0A=
=0A=
    if (!typeName && !name) return $A(inputs).map(Element.extend);=0A=
=0A=
    for (var i =3D 0, matchingInputs =3D [], length =3D inputs.length; i =
< length; i++) {=0A=
      var input =3D inputs[i];=0A=
      if ((typeName && input.type !=3D typeName) || (name && input.name =
!=3D name))=0A=
        continue;=0A=
      matchingInputs.push(Element.extend(input));=0A=
    }=0A=
=0A=
    return matchingInputs;=0A=
  },=0A=
=0A=
  disable: function(form) {=0A=
    form =3D $(form);=0A=
    Form.getElements(form).invoke('disable');=0A=
    return form;=0A=
  },=0A=
=0A=
  enable: function(form) {=0A=
    form =3D $(form);=0A=
    Form.getElements(form).invoke('enable');=0A=
    return form;=0A=
  },=0A=
=0A=
  findFirstElement: function(form) {=0A=
    var elements =3D $(form).getElements().findAll(function(element) {=0A=
      return 'hidden' !=3D element.type && !element.disabled;=0A=
    });=0A=
    var firstByIndex =3D elements.findAll(function(element) {=0A=
      return element.hasAttribute('tabIndex') && element.tabIndex >=3D 0;=0A=
    }).sortBy(function(element) { return element.tabIndex }).first();=0A=
=0A=
    return firstByIndex ? firstByIndex : elements.find(function(element) =
{=0A=
      return ['input', 'select', =
'textarea'].include(element.tagName.toLowerCase());=0A=
    });=0A=
  },=0A=
=0A=
  focusFirstElement: function(form) {=0A=
    form =3D $(form);=0A=
    form.findFirstElement().activate();=0A=
    return form;=0A=
  },=0A=
=0A=
  request: function(form, options) {=0A=
    form =3D $(form), options =3D Object.clone(options || { });=0A=
=0A=
    var params =3D options.parameters, action =3D =
form.readAttribute('action') || '';=0A=
    if (action.blank()) action =3D window.location.href;=0A=
    options.parameters =3D form.serialize(true);=0A=
=0A=
    if (params) {=0A=
      if (Object.isString(params)) params =3D params.toQueryParams();=0A=
      Object.extend(options.parameters, params);=0A=
    }=0A=
=0A=
    if (form.hasAttribute('method') && !options.method)=0A=
      options.method =3D form.method;=0A=
=0A=
    return new Ajax.Request(action, options);=0A=
  }=0A=
};=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Form.Element =3D {=0A=
  focus: function(element) {=0A=
    $(element).focus();=0A=
    return element;=0A=
  },=0A=
=0A=
  select: function(element) {=0A=
    $(element).select();=0A=
    return element;=0A=
  }=0A=
};=0A=
=0A=
Form.Element.Methods =3D {=0A=
  serialize: function(element) {=0A=
    element =3D $(element);=0A=
    if (!element.disabled && element.name) {=0A=
      var value =3D element.getValue();=0A=
      if (value !=3D undefined) {=0A=
        var pair =3D { };=0A=
        pair[element.name] =3D value;=0A=
        return Object.toQueryString(pair);=0A=
      }=0A=
    }=0A=
    return '';=0A=
  },=0A=
=0A=
  getValue: function(element) {=0A=
    element =3D $(element);=0A=
    var method =3D element.tagName.toLowerCase();=0A=
    return Form.Element.Serializers[method](element);=0A=
  },=0A=
=0A=
  setValue: function(element, value) {=0A=
    element =3D $(element);=0A=
    var method =3D element.tagName.toLowerCase();=0A=
    Form.Element.Serializers[method](element, value);=0A=
    return element;=0A=
  },=0A=
=0A=
  clear: function(element) {=0A=
    $(element).value =3D '';=0A=
    return element;=0A=
  },=0A=
=0A=
  present: function(element) {=0A=
    return $(element).value !=3D '';=0A=
  },=0A=
=0A=
  activate: function(element) {=0A=
    element =3D $(element);=0A=
    try {=0A=
      element.focus();=0A=
      if (element.select && (element.tagName.toLowerCase() !=3D 'input' =
||=0A=
          !['button', 'reset', 'submit'].include(element.type)))=0A=
        element.select();=0A=
    } catch (e) { }=0A=
    return element;=0A=
  },=0A=
=0A=
  disable: function(element) {=0A=
    element =3D $(element);=0A=
    element.blur();=0A=
    element.disabled =3D true;=0A=
    return element;=0A=
  },=0A=
=0A=
  enable: function(element) {=0A=
    element =3D $(element);=0A=
    element.disabled =3D false;=0A=
    return element;=0A=
  }=0A=
};=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
var Field =3D Form.Element;=0A=
var $F =3D Form.Element.Methods.getValue;=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Form.Element.Serializers =3D {=0A=
  input: function(element, value) {=0A=
    switch (element.type.toLowerCase()) {=0A=
      case 'checkbox':=0A=
      case 'radio':=0A=
        return Form.Element.Serializers.inputSelector(element, value);=0A=
      default:=0A=
        return Form.Element.Serializers.textarea(element, value);=0A=
    }=0A=
  },=0A=
=0A=
  inputSelector: function(element, value) {=0A=
    if (Object.isUndefined(value)) return element.checked ? =
element.value : null;=0A=
    else element.checked =3D !!value;=0A=
  },=0A=
=0A=
  textarea: function(element, value) {=0A=
    if (Object.isUndefined(value)) return element.value;=0A=
    else element.value =3D value;=0A=
  },=0A=
=0A=
  select: function(element, index) {=0A=
    if (Object.isUndefined(index))=0A=
      return this[element.type =3D=3D 'select-one' ?=0A=
        'selectOne' : 'selectMany'](element);=0A=
    else {=0A=
      var opt, value, single =3D !Object.isArray(index);=0A=
      for (var i =3D 0, length =3D element.length; i < length; i++) {=0A=
        opt =3D element.options[i];=0A=
        value =3D this.optionValue(opt);=0A=
        if (single) {=0A=
          if (value =3D=3D index) {=0A=
            opt.selected =3D true;=0A=
            return;=0A=
          }=0A=
        }=0A=
        else opt.selected =3D index.include(value);=0A=
      }=0A=
    }=0A=
  },=0A=
=0A=
  selectOne: function(element) {=0A=
    var index =3D element.selectedIndex;=0A=
    return index >=3D 0 ? this.optionValue(element.options[index]) : =
null;=0A=
  },=0A=
=0A=
  selectMany: function(element) {=0A=
    var values, length =3D element.length;=0A=
    if (!length) return null;=0A=
=0A=
    for (var i =3D 0, values =3D []; i < length; i++) {=0A=
      var opt =3D element.options[i];=0A=
      if (opt.selected) values.push(this.optionValue(opt));=0A=
    }=0A=
    return values;=0A=
  },=0A=
=0A=
  optionValue: function(opt) {=0A=
    // extend element because hasAttribute may not be native=0A=
    return Element.extend(opt).hasAttribute('value') ? opt.value : =
opt.text;=0A=
  }=0A=
};=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Abstract.TimedObserver =3D Class.create(PeriodicalExecuter, {=0A=
  initialize: function($super, element, frequency, callback) {=0A=
    $super(callback, frequency);=0A=
    this.element   =3D $(element);=0A=
    this.lastValue =3D this.getValue();=0A=
  },=0A=
=0A=
  execute: function() {=0A=
    var value =3D this.getValue();=0A=
    if (Object.isString(this.lastValue) && Object.isString(value) ?=0A=
        this.lastValue !=3D value : String(this.lastValue) !=3D =
String(value)) {=0A=
      this.callback(this.element, value);=0A=
      this.lastValue =3D value;=0A=
    }=0A=
  }=0A=
});=0A=
=0A=
Form.Element.Observer =3D Class.create(Abstract.TimedObserver, {=0A=
  getValue: function() {=0A=
    return Form.Element.getValue(this.element);=0A=
  }=0A=
});=0A=
=0A=
Form.Observer =3D Class.create(Abstract.TimedObserver, {=0A=
  getValue: function() {=0A=
    return Form.serialize(this.element);=0A=
  }=0A=
});=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Abstract.EventObserver =3D Class.create({=0A=
  initialize: function(element, callback) {=0A=
    this.element  =3D $(element);=0A=
    this.callback =3D callback;=0A=
=0A=
    this.lastValue =3D this.getValue();=0A=
    if (this.element.tagName.toLowerCase() =3D=3D 'form')=0A=
      this.registerFormCallbacks();=0A=
    else=0A=
      this.registerCallback(this.element);=0A=
  },=0A=
=0A=
  onElementEvent: function() {=0A=
    var value =3D this.getValue();=0A=
    if (this.lastValue !=3D value) {=0A=
      this.callback(this.element, value);=0A=
      this.lastValue =3D value;=0A=
    }=0A=
  },=0A=
=0A=
  registerFormCallbacks: function() {=0A=
    Form.getElements(this.element).each(this.registerCallback, this);=0A=
  },=0A=
=0A=
  registerCallback: function(element) {=0A=
    if (element.type) {=0A=
      switch (element.type.toLowerCase()) {=0A=
        case 'checkbox':=0A=
        case 'radio':=0A=
          Event.observe(element, 'click', =
this.onElementEvent.bind(this));=0A=
          break;=0A=
        default:=0A=
          Event.observe(element, 'change', =
this.onElementEvent.bind(this));=0A=
          break;=0A=
      }=0A=
    }=0A=
  }=0A=
});=0A=
=0A=
Form.Element.EventObserver =3D Class.create(Abstract.EventObserver, {=0A=
  getValue: function() {=0A=
    return Form.Element.getValue(this.element);=0A=
  }=0A=
});=0A=
=0A=
Form.EventObserver =3D Class.create(Abstract.EventObserver, {=0A=
  getValue: function() {=0A=
    return Form.serialize(this.element);=0A=
  }=0A=
});=0A=
if (!window.Event) var Event =3D { };=0A=
=0A=
Object.extend(Event, {=0A=
  KEY_BACKSPACE: 8,=0A=
  KEY_TAB:       9,=0A=
  KEY_RETURN:   13,=0A=
  KEY_ESC:      27,=0A=
  KEY_LEFT:     37,=0A=
  KEY_UP:       38,=0A=
  KEY_RIGHT:    39,=0A=
  KEY_DOWN:     40,=0A=
  KEY_DELETE:   46,=0A=
  KEY_HOME:     36,=0A=
  KEY_END:      35,=0A=
  KEY_PAGEUP:   33,=0A=
  KEY_PAGEDOWN: 34,=0A=
  KEY_INSERT:   45,=0A=
=0A=
  cache: { },=0A=
=0A=
  relatedTarget: function(event) {=0A=
    var element;=0A=
    switch(event.type) {=0A=
      case 'mouseover': element =3D event.fromElement; break;=0A=
      case 'mouseout':  element =3D event.toElement;   break;=0A=
      default: return null;=0A=
    }=0A=
    return Element.extend(element);=0A=
  }=0A=
});=0A=
=0A=
Event.Methods =3D (function() {=0A=
  var isButton;=0A=
=0A=
  if (Prototype.Browser.IE) {=0A=
    var buttonMap =3D { 0: 1, 1: 4, 2: 2 };=0A=
    isButton =3D function(event, code) {=0A=
      return event.button =3D=3D buttonMap[code];=0A=
    };=0A=
=0A=
  } else if (Prototype.Browser.WebKit) {=0A=
    isButton =3D function(event, code) {=0A=
      switch (code) {=0A=
        case 0: return event.which =3D=3D 1 && !event.metaKey;=0A=
        case 1: return event.which =3D=3D 1 && event.metaKey;=0A=
        default: return false;=0A=
      }=0A=
    };=0A=
=0A=
  } else {=0A=
    isButton =3D function(event, code) {=0A=
      return event.which ? (event.which =3D=3D=3D code + 1) : =
(event.button =3D=3D=3D code);=0A=
    };=0A=
  }=0A=
=0A=
  return {=0A=
    isLeftClick:   function(event) { return isButton(event, 0) },=0A=
    isMiddleClick: function(event) { return isButton(event, 1) },=0A=
    isRightClick:  function(event) { return isButton(event, 2) },=0A=
=0A=
    element: function(event) {=0A=
      var node =3D Event.extend(event).target;=0A=
      return Element.extend(node.nodeType =3D=3D Node.TEXT_NODE ? =
node.parentNode : node);=0A=
    },=0A=
=0A=
    findElement: function(event, expression) {=0A=
      var element =3D Event.element(event);=0A=
      if (!expression) return element;=0A=
      var elements =3D [element].concat(element.ancestors());=0A=
      return Selector.findElement(elements, expression, 0);=0A=
    },=0A=
=0A=
    pointer: function(event) {=0A=
      return {=0A=
        x: event.pageX || (event.clientX +=0A=
          (document.documentElement.scrollLeft || =
document.body.scrollLeft)),=0A=
        y: event.pageY || (event.clientY +=0A=
          (document.documentElement.scrollTop || =
document.body.scrollTop))=0A=
      };=0A=
    },=0A=
=0A=
    pointerX: function(event) { return Event.pointer(event).x },=0A=
    pointerY: function(event) { return Event.pointer(event).y },=0A=
=0A=
    stop: function(event) {=0A=
      Event.extend(event);=0A=
      event.preventDefault();=0A=
      event.stopPropagation();=0A=
      event.stopped =3D true;=0A=
    }=0A=
  };=0A=
})();=0A=
=0A=
Event.extend =3D (function() {=0A=
  var methods =3D Object.keys(Event.Methods).inject({ }, function(m, =
name) {=0A=
    m[name] =3D Event.Methods[name].methodize();=0A=
    return m;=0A=
  });=0A=
=0A=
  if (Prototype.Browser.IE) {=0A=
    Object.extend(methods, {=0A=
      stopPropagation: function() { this.cancelBubble =3D true },=0A=
      preventDefault:  function() { this.returnValue =3D false },=0A=
      inspect: function() { return "[object Event]" }=0A=
    });=0A=
=0A=
    return function(event) {=0A=
      if (!event) return false;=0A=
      if (event._extendedByPrototype) return event;=0A=
=0A=
      event._extendedByPrototype =3D Prototype.emptyFunction;=0A=
      var pointer =3D Event.pointer(event);=0A=
      Object.extend(event, {=0A=
        target: event.srcElement,=0A=
        relatedTarget: Event.relatedTarget(event),=0A=
        pageX:  pointer.x,=0A=
        pageY:  pointer.y=0A=
      });=0A=
      return Object.extend(event, methods);=0A=
    };=0A=
=0A=
  } else {=0A=
    Event.prototype =3D Event.prototype || =
document.createEvent("HTMLEvents").__proto__;=0A=
    Object.extend(Event.prototype, methods);=0A=
    return Prototype.K;=0A=
  }=0A=
})();=0A=
=0A=
Object.extend(Event, (function() {=0A=
  var cache =3D Event.cache;=0A=
=0A=
  function getEventID(element) {=0A=
    if (element._prototypeEventID) return element._prototypeEventID[0];=0A=
    arguments.callee.id =3D arguments.callee.id || 1;=0A=
    return element._prototypeEventID =3D [++arguments.callee.id];=0A=
  }=0A=
=0A=
  function getDOMEventName(eventName) {=0A=
    if (eventName && eventName.include(':')) return "dataavailable";=0A=
    return eventName;=0A=
  }=0A=
=0A=
  function getCacheForID(id) {=0A=
    return cache[id] =3D cache[id] || { };=0A=
  }=0A=
=0A=
  function getWrappersForEventName(id, eventName) {=0A=
    var c =3D getCacheForID(id);=0A=
    return c[eventName] =3D c[eventName] || [];=0A=
  }=0A=
=0A=
  function createWrapper(element, eventName, handler) {=0A=
    var id =3D getEventID(element);=0A=
    var c =3D getWrappersForEventName(id, eventName);=0A=
    if (c.pluck("handler").include(handler)) return false;=0A=
=0A=
    var wrapper =3D function(event) {=0A=
      if (!Event || !Event.extend ||=0A=
        (event.eventName && event.eventName !=3D eventName))=0A=
          return false;=0A=
=0A=
      Event.extend(event);=0A=
      handler.call(element, event);=0A=
    };=0A=
=0A=
    wrapper.handler =3D handler;=0A=
    c.push(wrapper);=0A=
    return wrapper;=0A=
  }=0A=
=0A=
  function findWrapper(id, eventName, handler) {=0A=
    var c =3D getWrappersForEventName(id, eventName);=0A=
    return c.find(function(wrapper) { return wrapper.handler =3D=3D =
handler });=0A=
  }=0A=
=0A=
  function destroyWrapper(id, eventName, handler) {=0A=
    var c =3D getCacheForID(id);=0A=
    if (!c[eventName]) return false;=0A=
    c[eventName] =3D c[eventName].without(findWrapper(id, eventName, =
handler));=0A=
  }=0A=
=0A=
  function destroyCache() {=0A=
    for (var id in cache)=0A=
      for (var eventName in cache[id])=0A=
        cache[id][eventName] =3D null;=0A=
  }=0A=
=0A=
  if (window.attachEvent) {=0A=
    window.attachEvent("onunload", destroyCache);=0A=
  }=0A=
=0A=
  return {=0A=
    observe: function(element, eventName, handler) {=0A=
      element =3D $(element);=0A=
      var name =3D getDOMEventName(eventName);=0A=
=0A=
      var wrapper =3D createWrapper(element, eventName, handler);=0A=
      if (!wrapper) return element;=0A=
=0A=
      if (element.addEventListener) {=0A=
        element.addEventListener(name, wrapper, false);=0A=
      } else {=0A=
        element.attachEvent("on" + name, wrapper);=0A=
      }=0A=
=0A=
      return element;=0A=
    },=0A=
=0A=
    stopObserving: function(element, eventName, handler) {=0A=
      element =3D $(element);=0A=
      var id =3D getEventID(element), name =3D =
getDOMEventName(eventName);=0A=
=0A=
      if (!handler && eventName) {=0A=
        getWrappersForEventName(id, eventName).each(function(wrapper) {=0A=
          element.stopObserving(eventName, wrapper.handler);=0A=
        });=0A=
        return element;=0A=
=0A=
      } else if (!eventName) {=0A=
        Object.keys(getCacheForID(id)).each(function(eventName) {=0A=
          element.stopObserving(eventName);=0A=
        });=0A=
        return element;=0A=
      }=0A=
=0A=
      var wrapper =3D findWrapper(id, eventName, handler);=0A=
      if (!wrapper) return element;=0A=
=0A=
      if (element.removeEventListener) {=0A=
        element.removeEventListener(name, wrapper, false);=0A=
      } else {=0A=
        element.detachEvent("on" + name, wrapper);=0A=
      }=0A=
=0A=
      destroyWrapper(id, eventName, handler);=0A=
=0A=
      return element;=0A=
    },=0A=
=0A=
    fire: function(element, eventName, memo) {=0A=
      element =3D $(element);=0A=
      if (element =3D=3D document && document.createEvent && =
!element.dispatchEvent)=0A=
        element =3D document.documentElement;=0A=
=0A=
      var event;=0A=
      if (document.createEvent) {=0A=
        event =3D document.createEvent("HTMLEvents");=0A=
        event.initEvent("dataavailable", true, true);=0A=
      } else {=0A=
        event =3D document.createEventObject();=0A=
        event.eventType =3D "ondataavailable";=0A=
      }=0A=
=0A=
      event.eventName =3D eventName;=0A=
      event.memo =3D memo || { };=0A=
=0A=
      if (document.createEvent) {=0A=
        element.dispatchEvent(event);=0A=
      } else {=0A=
        element.fireEvent(event.eventType, event);=0A=
      }=0A=
=0A=
      return Event.extend(event);=0A=
    }=0A=
  };=0A=
})());=0A=
=0A=
Object.extend(Event, Event.Methods);=0A=
=0A=
Element.addMethods({=0A=
  fire:          Event.fire,=0A=
  observe:       Event.observe,=0A=
  stopObserving: Event.stopObserving=0A=
});=0A=
=0A=
Object.extend(document, {=0A=
  fire:          Element.Methods.fire.methodize(),=0A=
  observe:       Element.Methods.observe.methodize(),=0A=
  stopObserving: Element.Methods.stopObserving.methodize(),=0A=
  loaded:        false=0A=
});=0A=
=0A=
(function() {=0A=
  /* Support for the DOMContentLoaded event is based on work by Dan Webb,=0A=
     Matthias Miller, Dean Edwards and John Resig. */=0A=
=0A=
  var timer;=0A=
=0A=
  function fireContentLoadedEvent() {=0A=
    if (document.loaded) return;=0A=
    if (timer) window.clearInterval(timer);=0A=
    document.fire("dom:loaded");=0A=
    document.loaded =3D true;=0A=
  }=0A=
=0A=
  if (document.addEventListener) {=0A=
    if (Prototype.Browser.WebKit) {=0A=
      timer =3D window.setInterval(function() {=0A=
        if (/loaded|complete/.test(document.readyState))=0A=
          fireContentLoadedEvent();=0A=
      }, 0);=0A=
=0A=
      Event.observe(window, "load", fireContentLoadedEvent);=0A=
=0A=
    } else {=0A=
      document.addEventListener("DOMContentLoaded",=0A=
        fireContentLoadedEvent, false);=0A=
    }=0A=
=0A=
  } else {=0A=
    document.write("<script id=3D__onDOMContentLoaded defer =
src=3D//:><\/script>");=0A=
    $("__onDOMContentLoaded").onreadystatechange =3D function() {=0A=
      if (this.readyState =3D=3D "complete") {=0A=
        this.onreadystatechange =3D null;=0A=
        fireContentLoadedEvent();=0A=
      }=0A=
    };=0A=
  }=0A=
})();=0A=
/*------------------------------- DEPRECATED =
-------------------------------*/=0A=
=0A=
Hash.toQueryString =3D Object.toQueryString;=0A=
=0A=
var Toggle =3D { display: Element.toggle };=0A=
=0A=
Element.Methods.childOf =3D Element.Methods.descendantOf;=0A=
=0A=
var Insertion =3D {=0A=
  Before: function(element, content) {=0A=
    return Element.insert(element, {before:content});=0A=
  },=0A=
=0A=
  Top: function(element, content) {=0A=
    return Element.insert(element, {top:content});=0A=
  },=0A=
=0A=
  Bottom: function(element, content) {=0A=
    return Element.insert(element, {bottom:content});=0A=
  },=0A=
=0A=
  After: function(element, content) {=0A=
    return Element.insert(element, {after:content});=0A=
  }=0A=
};=0A=
=0A=
var $continue =3D new Error('"throw $continue" is deprecated, use =
"return" instead');=0A=
=0A=
// This should be moved to script.aculo.us; notice the deprecated methods=0A=
// further below, that map to the newer Element methods.=0A=
var Position =3D {=0A=
  // set to true if needed, warning: firefox performance problems=0A=
  // NOT neeeded for page scrolling, only if draggable contained in=0A=
  // scrollable elements=0A=
  includeScrollOffsets: false,=0A=
=0A=
  // must be called before calling withinIncludingScrolloffset, every =
time the=0A=
  // page is scrolled=0A=
  prepare: function() {=0A=
    this.deltaX =3D  window.pageXOffset=0A=
                || document.documentElement.scrollLeft=0A=
                || document.body.scrollLeft=0A=
                || 0;=0A=
    this.deltaY =3D  window.pageYOffset=0A=
                || document.documentElement.scrollTop=0A=
                || document.body.scrollTop=0A=
                || 0;=0A=
  },=0A=
=0A=
  // caches x/y coordinate pair to use with overlap=0A=
  within: function(element, x, y) {=0A=
    if (this.includeScrollOffsets)=0A=
      return this.withinIncludingScrolloffsets(element, x, y);=0A=
    this.xcomp =3D x;=0A=
    this.ycomp =3D y;=0A=
    this.offset =3D Element.cumulativeOffset(element);=0A=
=0A=
    return (y >=3D this.offset[1] &&=0A=
            y <  this.offset[1] + element.offsetHeight &&=0A=
            x >=3D this.offset[0] &&=0A=
            x <  this.offset[0] + element.offsetWidth);=0A=
  },=0A=
=0A=
  withinIncludingScrolloffsets: function(element, x, y) {=0A=
    var offsetcache =3D Element.cumulativeScrollOffset(element);=0A=
=0A=
    this.xcomp =3D x + offsetcache[0] - this.deltaX;=0A=
    this.ycomp =3D y + offsetcache[1] - this.deltaY;=0A=
    this.offset =3D Element.cumulativeOffset(element);=0A=
=0A=
    return (this.ycomp >=3D this.offset[1] &&=0A=
            this.ycomp <  this.offset[1] + element.offsetHeight &&=0A=
            this.xcomp >=3D this.offset[0] &&=0A=
            this.xcomp <  this.offset[0] + element.offsetWidth);=0A=
  },=0A=
=0A=
  // within must be called directly before=0A=
  overlap: function(mode, element) {=0A=
    if (!mode) return 0;=0A=
    if (mode =3D=3D 'vertical')=0A=
      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /=0A=
        element.offsetHeight;=0A=
    if (mode =3D=3D 'horizontal')=0A=
      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /=0A=
        element.offsetWidth;=0A=
  },=0A=
=0A=
  // Deprecation layer -- use newer Element methods now (1.5.2).=0A=
=0A=
  cumulativeOffset: Element.Methods.cumulativeOffset,=0A=
=0A=
  positionedOffset: Element.Methods.positionedOffset,=0A=
=0A=
  absolutize: function(element) {=0A=
    Position.prepare();=0A=
    return Element.absolutize(element);=0A=
  },=0A=
=0A=
  relativize: function(element) {=0A=
    Position.prepare();=0A=
    return Element.relativize(element);=0A=
  },=0A=
=0A=
  realOffset: Element.Methods.cumulativeScrollOffset,=0A=
=0A=
  offsetParent: Element.Methods.getOffsetParent,=0A=
=0A=
  page: Element.Methods.viewportOffset,=0A=
=0A=
  clone: function(source, target, options) {=0A=
    options =3D options || { };=0A=
    return Element.clonePosition(target, source, options);=0A=
  }=0A=
};=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
if (!document.getElementsByClassName) document.getElementsByClassName =
=3D function(instanceMethods){=0A=
  function iter(name) {=0A=
    return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' =
" + name + " ')]";=0A=
  }=0A=
=0A=
  instanceMethods.getElementsByClassName =3D =
Prototype.BrowserFeatures.XPath ?=0A=
  function(element, className) {=0A=
    className =3D className.toString().strip();=0A=
    var cond =3D /\s/.test(className) ? $w(className).map(iter).join('') =
: iter(className);=0A=
    return cond ? document._getElementsByXPath('.//*' + cond, element) : =
[];=0A=
  } : function(element, className) {=0A=
    className =3D className.toString().strip();=0A=
    var elements =3D [], classNames =3D (/\s/.test(className) ? =
$w(className) : null);=0A=
    if (!classNames && !className) return elements;=0A=
=0A=
    var nodes =3D $(element).getElementsByTagName('*');=0A=
    className =3D ' ' + className + ' ';=0A=
=0A=
    for (var i =3D 0, child, cn; child =3D nodes[i]; i++) {=0A=
      if (child.className && (cn =3D ' ' + child.className + ' ') && =
(cn.include(className) ||=0A=
          (classNames && classNames.all(function(name) {=0A=
            return !name.toString().blank() && cn.include(' ' + name + ' =
');=0A=
          }))))=0A=
        elements.push(Element.extend(child));=0A=
    }=0A=
    return elements;=0A=
  };=0A=
=0A=
  return function(className, parentElement) {=0A=
    return $(parentElement || =
document.body).getElementsByClassName(className);=0A=
  };=0A=
}(Element.Methods);=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Element.ClassNames =3D Class.create();=0A=
Element.ClassNames.prototype =3D {=0A=
  initialize: function(element) {=0A=
    this.element =3D $(element);=0A=
  },=0A=
=0A=
  _each: function(iterator) {=0A=
    this.element.className.split(/\s+/).select(function(name) {=0A=
      return name.length > 0;=0A=
    })._each(iterator);=0A=
  },=0A=
=0A=
  set: function(className) {=0A=
    this.element.className =3D className;=0A=
  },=0A=
=0A=
  add: function(classNameToAdd) {=0A=
    if (this.include(classNameToAdd)) return;=0A=
    this.set($A(this).concat(classNameToAdd).join(' '));=0A=
  },=0A=
=0A=
  remove: function(classNameToRemove) {=0A=
    if (!this.include(classNameToRemove)) return;=0A=
    this.set($A(this).without(classNameToRemove).join(' '));=0A=
  },=0A=
=0A=
  toString: function() {=0A=
    return $A(this).join(' ');=0A=
  }=0A=
};=0A=
=0A=
Object.extend(Element.ClassNames.prototype, Enumerable);=0A=
=0A=
/*-----------------------------------------------------------------------=
---*/=0A=
=0A=
Element.addMethods();
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/app/lib/scriptaculous/1.8.1/scriptaculous.js?load=effects,controls

// script.aculo.us scriptaculous.js v1.8.1, Thu Jan 03 22:07:12 -0500 =
2008=0A=
=0A=
// Copyright (c) 2005-2007 Thomas Fuchs (http://script.aculo.us, =
http://mir.aculo.us)=0A=
// =0A=
// Permission is hereby granted, free of charge, to any person obtaining=0A=
// a copy of this software and associated documentation files (the=0A=
// "Software"), to deal in the Software without restriction, including=0A=
// without limitation the rights to use, copy, modify, merge, publish,=0A=
// distribute, sublicense, and/or sell copies of the Software, and to=0A=
// permit persons to whom the Software is furnished to do so, subject to=0A=
// the following conditions:=0A=
// =0A=
// The above copyright notice and this permission notice shall be=0A=
// included in all copies or substantial portions of the Software.=0A=
//=0A=
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,=0A=
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF=0A=
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND=0A=
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE=0A=
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION=0A=
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION=0A=
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.=0A=
//=0A=
// For details, see the script.aculo.us web site: http://script.aculo.us/=0A=
=0A=
var Scriptaculous =3D {=0A=
  Version: '1.8.1',=0A=
  require: function(libraryName) {=0A=
    // inserting via DOM fails in Safari 2.0, so brute force approach=0A=
    document.write('<script type=3D"text/javascript" =
src=3D"'+libraryName+'"><\/script>');=0A=
  },=0A=
  REQUIRED_PROTOTYPE: '1.6.0',=0A=
  load: function() {=0A=
    function convertVersionString(versionString){=0A=
      var r =3D versionString.split('.');=0A=
      return parseInt(r[0])*100000 + parseInt(r[1])*1000 + =
parseInt(r[2]);=0A=
    }=0A=
 =0A=
    if((typeof Prototype=3D=3D'undefined') || =0A=
       (typeof Element =3D=3D 'undefined') || =0A=
       (typeof Element.Methods=3D=3D'undefined') ||=0A=
       (convertVersionString(Prototype.Version) < =0A=
        convertVersionString(Scriptaculous.REQUIRED_PROTOTYPE)))=0A=
       throw("script.aculo.us requires the Prototype JavaScript =
framework >=3D " +=0A=
        Scriptaculous.REQUIRED_PROTOTYPE);=0A=
    =0A=
    $A(document.getElementsByTagName("script")).findAll( function(s) {=0A=
      return (s.src && s.src.match(/scriptaculous\.js(\?.*)?$/))=0A=
    }).each( function(s) {=0A=
      var path =3D s.src.replace(/scriptaculous\.js(\?.*)?$/,'');=0A=
      var includes =3D s.src.match(/\?.*load=3D([a-z,]*)/);=0A=
      (includes ? includes[1] : =
'builder,effects,dragdrop,controls,slider,sound').split(',').each(=0A=
       function(include) { Scriptaculous.require(path+include+'.js') });=0A=
    });=0A=
  }=0A=
}=0A=
=0A=
Scriptaculous.load();
------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/section/business/businesssearch/autosuggest.js

/* $Id: autosuggest.js 5518 2008-09-22 17:53:07Z nickc $=0A=
   (c) 2008 The New York Times Company=0A=
*/=0A=
=0A=
// common object for member center ticker alerts=0A=
var TickerAlertCommon =3D { safe: 'result.ticker', preventSubmit: true, =
selectFirst: true, disableFunds: true, paramName: 'query' }=0A=
=0A=
/**=0A=
 * Configuration variables specific to Business Autosuggest=0A=
 * @constructor=0A=
 */=0A=
Business =3D {=0A=
  =0A=
  /**=0A=
   * @param {Array} Inputs An array of inputs used in autosuggest,=0A=
   * an item can either be a string representing the ID or an object=0A=
   * containing setup information:=0A=
   * { input: id,=0A=
   *   placeholder: text (optional)=0A=
   *   placeholder_class: class (optional)=0A=
   *   safe: evaled js (optional) Place in input field=0A=
   *   preventSubmit: boolean (optional) Prevents redirecting to URL on =
selection=0A=
   *   selectFirst: boolean (optional) Selects first item on searching=0A=
   *   forceLeft: boolean (optional) Forces the autosuggest results box =
to the left=0A=
   *  // Extra: any option defined within Ajax.Autocompleter can go here=0A=
   *  // and will be passed on creation=0A=
   *  }=0A=
   */=0A=
  Inputs:   [ // regular page inputs=0A=
              { input: 'bsearchQuery', // subnav input=0A=
                placeholder: 'News, Stocks, Funds, Companies',=0A=
                placeholder_class: 'greyed' },=0A=
              { input: 'qsearchQuery', // module input=0A=
                placeholder: 'Stocks, ETFs, Funds',=0A=
                placeholder_class: 'greyed',=0A=
                paramName: 'query' },=0A=
                =0A=
              // create ticker alert inputs (member center)=0A=
              Object.extend(Object.clone(TickerAlertCommon), { input: =
'tickername_1' }),=0A=
              Object.extend(Object.clone(TickerAlertCommon), { input: =
'tickername_2' }),=0A=
              Object.extend(Object.clone(TickerAlertCommon), { input: =
'tickername_3' }),=0A=
              Object.extend(Object.clone(TickerAlertCommon), { input: =
'tickername_4' }),=0A=
              Object.extend(Object.clone(TickerAlertCommon), { input: =
'tickername_5' })=0A=
            ],=0A=
  =0A=
  /**=0A=
   * Defines autosuggest URI based on the hostname=0A=
   *=0A=
   * @param {String} h Supply a hostname instead of=0A=
   * basing it off the window hostname=0A=
   * @returns {String} Autosuggest Service URI=0A=
   */=0A=
  SuggestServer: function(h) {=0A=
    switch (h || window.location.hostname) {=0A=
      // blogs, currently disabled=0A=
      case 'dealbook.blogs.nytimes.com':=0A=
        return false;=0A=
        break;=0A=
      // wsod=0A=
      case 'smarkets.on.nytimes.com':=0A=
      case 'markets.on.nytimes.com':=0A=
      case 'nytimes.wsodqa.com':=0A=
        return '/services/autocomplete/autocomplete.asp';=0A=
        break;=0A=
       // debug=0A=
      case 'localhost':=0A=
        return '_return.php';=0A=
        break;=0A=
      // default=0A=
      default:=0A=
        return '/svc/search/business/autosuggest';=0A=
    }=0A=
  },=0A=
  =0A=
  /**=0A=
   * Returns the funds redirect url=0A=
   *=0A=
   * @param {String} s Ticker to be appended to url=0A=
   * @returns {String} URL for Funds redirect=0A=
   */=0A=
  FundURL: function(s) {=0A=
    return =
'http://markets.on.nytimes.com/research/markets/usmarkets/snapshot.asp?sy=
mbol=3D' + s;=0A=
  },=0A=
  =0A=
  /**=0A=
   * @param {Template} Template Defines template used for pushing into UL=0A=
   */=0A=
  Template:           new Template('<li =
title=3D"#{output_safe}"><span>#{ticker}</span>#{company}</li>')=0A=
}=0A=
=0A=
/**=0A=
 * Business.Autosuggest is an extension of Ajax.Autocompleter=0A=
 * defined by scriptaculous. This extension adds specific=0A=
 * support for NYT service-based autocomplete.=0A=
 *=0A=
 * Assumes results divider is below (next) to the search=0A=
 * input.=0A=
 *=0A=
 * Requires Scriptaculous 1.8.1 or above (1.8.0 has a bug)=0A=
 * =0A=
 * @constructor=0A=
 * @base Ajax.Autocompleter=0A=
 * @requires Business.Config Required for configuration variables=0A=
 */=0A=
Business.Autosuggest =3D Class.create();=0A=
Object.extend(Object.extend(Business.Autosuggest.prototype, =
Ajax.Autocompleter.prototype), {=0A=
  initialize: function(element, update, url, options) {=0A=
    options =3D options || {};=0A=
    this.baseInitialize(element, update, options);=0A=
    this.options.asynchronous  =3D true;=0A=
    this.options.onComplete    =3D this.onComplete.bind(this);=0A=
    this.options.defaultParams =3D this.options.parameters || null;=0A=
    this.options.method        =3D 'get';=0A=
    this.options.autoSelect    =3D false; // prevent autoselecting if =
only one result=0A=
    this.options.minChars      =3D 2;=0A=
    this.options.frequency     =3D 0;=0A=
    this.options.selectFirst   =3D options.selectFirst || false;=0A=
    this.options.preventSubmit =3D options.preventSubmit || false;=0A=
    this.options.disableFunds  =3D options.disableFunds || false;=0A=
    this.url                   =3D url;=0A=
    this.urls                  =3D [];=0A=
  },=0A=
  =0A=
  /**=0A=
   * Called on a successfull complete of the service call=0A=
   */=0A=
  onComplete: function(request) {=0A=
    this.processResponse(request.responseText.evalJSON());=0A=
  },=0A=
  =0A=
  /**=0A=
   * Overwriting to remove scrolling into view as this breaks=0A=
   * functionality. Why was this added?=0A=
   * @private=0A=
   */=0A=
  markPrevious: function() {=0A=
    if(this.index > 0) this.index--=0A=
      else this.index =3D this.entryCount-1;=0A=
  },=0A=
=0A=
  /**=0A=
   * Overwriting to remove scrolling into view as this breaks=0A=
   * functionality. Why was this added?=0A=
   * @private=0A=
   */=0A=
  markNext: function() {=0A=
    if(this.index < this.entryCount-1) this.index++=0A=
      else this.index =3D 0;=0A=
  },=0A=
  =0A=
  /**=0A=
   * Fires when a user selects an entry, this will redirect the=0A=
   * user to the page supplied within the URLs array=0A=
   */=0A=
  selectEntry: function() {=0A=
    this.active =3D false;=0A=
    var entry =3D this.getCurrentEntry();=0A=
    if(entry) {=0A=
      this.updateElement(entry);=0A=
      this.element.parentNode.onsubmit =3D function() { return false; } =
// firefox 2 mac bug=0A=
      if( !this.options.preventSubmit ) { window.location =3D =
this.urls[entry.autocompleteIndex]; }=0A=
    } else {=0A=
      this.element.parentNode.submit();=0A=
    }=0A=
  },=0A=
  =0A=
  /**=0A=
   * Updates the search input with the selected value=0A=
   *=0A=
   * @param {Element} selectedElement DOM element selected by user=0A=
   */=0A=
  updateElement: function(selectedElement) {  =0A=
    this.element.setValue(selectedElement.readAttribute('title'));=0A=
    this.element.focus();=0A=
  },=0A=
  =0A=
  /**=0A=
   * Processes the JSON response into a properly formatted list=0A=
   *=0A=
   * @param {Object} json The json object initially returned=0A=
   * by the ajax call=0A=
   * @requires Business.Config Defines HTML template=0A=
   */=0A=
  processResponse: function(json) {=0A=
    var html =3D [];=0A=
    var keyword =3D json[0];=0A=
    var results =3D json[1];=0A=
    =0A=
    this.urls =3D [];=0A=
    this.entryCount =3D 0;=0A=
    html.push('<ul>')=0A=
    =0A=
    /**=0A=
     * Loop through the results array and push to UL=0A=
     */=0A=
    for(var i =3D 0; i < results.length; i++ )=0A=
    {=0A=
      var result =3D eval('(' + results[i] + ')').results;=0A=
      var re =3D new RegExp('(' + keyword + ')', 'i');=0A=
      =0A=
      // validate and skip on false=0A=
      if ( !this.validateResult(result) ) continue;=0A=
=0A=
      this.urls.push((this.isFund(result)) ? =
Business.FundURL(result.ticker) : result.url);=0A=
      html.push(this.options.template.evaluate({=0A=
        ticker:       result.ticker.replace(re, '<strong>$1</strong>'),=0A=
        company:      result.company.replace(re, '<strong>$1</strong>'),=0A=
        output_safe:  ( this.options.safe ) ?=0A=
          eval( this.options.safe ) : result.company=0A=
      }));=0A=
      this.entryCount++;=0A=
    }=0A=
    =0A=
    html.push('</ul>');=0A=
    this.updateChoices(html.join(''));=0A=
    if( !this.options.selectFirst ) this.makeInactive();=0A=
  },=0A=
  =0A=
  /**=0A=
   * Not so pretty way of not selecting the first result by=0A=
   * default; this removes the selected class and sets the=0A=
   * index to a negative value negating the selectEntry func=0A=
   */=0A=
  makeInactive: function() {=0A=
    =
this.update.getElementsByTagName('li')[0].removeClassName('selected');=0A=
    this.index =3D -1;=0A=
  },=0A=
  =0A=
  /**=0A=
   * Returns true or false dependent on weather the result=0A=
   * is a fund, i.e. contains company and ticker but no url=0A=
   *=0A=
   * @returns True or false=0A=
   */=0A=
  isFund: function(result) {=0A=
    return ( result.company && result.ticker && !result.url );=0A=
  },=0A=
  =0A=
  /**=0A=
   * Returns true or false based on whether the object passes=0A=
   * validation or not.=0A=
   *=0A=
   * @param {Object} result Result object passed to function=0A=
   * @returns True or false=0A=
   * @type Boolean=0A=
   */=0A=
  validateResult: function(result) {=0A=
    // if entirely empty return false=0A=
    if ( !result.company || !result.ticker || ( !this.isFund(result) && =
!result.url) )=0A=
      return false;=0A=
=0A=
    // if the result is a fund, check that we want to display it=0A=
    if ( this.isFund(result) && this.options.disableFunds )=0A=
      return false;=0A=
    =0A=
    // defaults to true=0A=
    return true;=0A=
  }=0A=
});=0A=
=0A=
/**=0A=
 * Creates a placeholder, or default input text, for the=0A=
 * supplied element.=0A=
 *=0A=
 * @param {Element} el Search input=0A=
 * @param {String} text Placeholder Text=0A=
 * @param {String} class Placeholder class name=0A=
 */=0A=
var createPlaceholder =3D function(el, text, css_class) {=0A=
  var searchInput     =3D $(el);=0A=
=0A=
  // if value is present, quietly exit=0A=
  if ( searchInput.present() ) return;=0A=
  =0A=
  // set default text and class=0A=
  if ( css_class ) $(el).addClassName( css_class );=0A=
  $(el).setValue( text );=0A=
=0A=
  /**=0A=
   * Observe focus, if input value equals placeholder value=0A=
   * then clear the input and remove the class=0A=
   */=0A=
  searchInput.observe('focus', function(){=0A=
    if ( this.value =3D=3D text ) {=0A=
      this.clear();=0A=
      if ( css_class ) this.removeClassName( css_class );=0A=
    }=0A=
  });=0A=
=0A=
  /**=0A=
   * Observe blur, if input value is empty, replace with default=0A=
   * placeholder value and add class back=0A=
   */=0A=
  searchInput.observe('blur', function(){=0A=
    if ( !this.present() ) {=0A=
      if ( css_class ) this.addClassName( css_class );=0A=
      this.setValue( text );=0A=
    }=0A=
  });=0A=
  =0A=
  // prevent placeholder text from being submitted by accident=0A=
  searchInput.parentNode.onsubmit =3D function(){=0A=
    if ( $(el).value =3D=3D text ) $(el).clear();=0A=
    return true;=0A=
  }=0A=
}=0A=
=0A=
/**=0A=
 * Fires on document ready, initializes autosuggest object=0A=
 */=0A=
document.observe("dom:loaded", function(){=0A=
  var page =3D Business.SuggestServer();=0A=
  var template =3D Business.Template;=0A=
  =0A=
  // get the inputs, if there is only one, push it into an array=0A=
  var inputs =3D ( typeof(Business.Inputs) !=3D 'object' ) ?=0A=
    [Business.Inputs] : Business.Inputs;=0A=
  =0A=
  // only create object if on correct host and has defined inputs=0A=
  if ( page !=3D false && inputs )=0A=
  {    =0A=
    // loop through supplied inputs and create autosuggest object=0A=
    inputs.each(function(i) {=0A=
      =0A=
      // using placeholder? if so, get the input from object=0A=
      var input =3D ( typeof(i) =3D=3D 'object' ) ? $(i.input) : $(i);=0A=
      var update =3D (input) ? input.next("div.querySuggestions") : =
update =3D null;=0A=
  =0A=
      // check for existence & create=0A=
      if( input && update )=0A=
      {=0A=
        =0A=
        // force left if set=0A=
        if ( i.forceLeft ) update.addClassName('forceLeft');=0A=
        =0A=
        // deal with options - remove default (not used by autosuggest)=0A=
        var options =3D ( typeof i =3D=3D 'object' ) ? Object.clone(i) : =
{};=0A=
        options.input =3D options.placeholder =3D =
options.placeholder_class =3D options.forceLeft =3D null;=0A=
        options.template =3D template;=0A=
        =0A=
        // finally create the object=0A=
        new Business.Autosuggest(input, update, page, options);=0A=
      }=0A=
      =0A=
      // create placeholder if defined=0A=
      if ( input && typeof i =3D=3D 'object' && i.placeholder )=0A=
        createPlaceholder(input, i.placeholder, i.placeholder_class)=0A=
    });=0A=
  }=0A=
});=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://graphics8.nytimes.com/js/app/analytics/trackingTags_v1.1.js

// START WEBTRENDS JS TAG=0A=
var gtrackevents=3Dfalse;=0A=
var gdcsid=3D"dcsym57yw10000s1s8g0boozt_9t1x";=0A=
var gfpcdom=3D".nytimes.com";=0A=
var gdomain=3D"wt.o.nytimes.com";=0A=
var js_host;=0A=
if (window.location.protocol.indexOf('https:')=3D=3D-1) {=0A=
  js_host =3D "http://graphics8.nytimes.com/js/app/analytics/";=0A=
} else {=0A=
  js_host =3D "https://select.nytimes.com/js/app/analytics/";=0A=
}=0A=
=0A=
// Include WebTrends wtid.js=0A=
var wt_initObj =3D { enabled:true, fpc:"WT_FPC", domain:gdomain, =
dcsid:gdcsid };=0A=
if =
(wt_initObj.enabled&&(document.cookie.indexOf(wt_initObj.fpc+"=3D")=3D=3D=
-1)&&(document.cookie.indexOf("WTLOPTOUT=3D")=3D=3D-1)){=0A=
var =
wtid_js_host=3D"http"+(window.location.protocol.indexOf('https:')=3D=3D0?=
's':'')+"://"+wt_initObj.domain+"/"+wt_initObj.dcsid+"/"=0A=
var wtidjs =3D document.createElement('script');=0A=
wtidjs.setAttribute('type', 'text/javascript');=0A=
wtidjs.setAttribute('src', wtid_js_host+'wtid.js');=0A=
document.getElementsByTagName('head').item(0).appendChild(wtidjs);=0A=
}=0A=
=0A=
var wtInc =3D document.createElement('script');=0A=
wtInc.setAttribute('language', 'javascript');=0A=
wtInc.setAttribute('type', 'text/javascript');=0A=
wtInc.setAttribute('src', js_host+'controller_v1.1.js');=0A=
document.getElementsByTagName('head').item(0).appendChild(wtInc);=0A=
// END WEBTRENDS JS TAG=0A=
=0A=
// START REVENUE SCIENCE PIXELLING CODE=0A=
var revSc =3D document.createElement('script');=0A=
revSc.setAttribute('language', 'javascript');=0A=
revSc.setAttribute('type', 'text/javascript');=0A=
revSc.setAttribute('src', js_host+'gw.js?csid=3DH07707');=0A=
document.getElementsByTagName('head').item(0).appendChild(revSc);=0A=
=0A=
var customRevSci =3D document.createElement('script');=0A=
customRevSci.setAttribute('language', 'javascript');=0A=
customRevSci.setAttribute('type', 'text/javascript');=0A=
customRevSci.setAttribute('src', js_host+'revenuescience.js');=0A=
document.getElementsByTagName('head').item(0).appendChild(customRevSci);=0A=
// END REVENUE SCIENCE PIXELLING CODE=0A=
=0A=
=0A=
// Load TimesPeople=0A=
if (navigator.userAgent.indexOf('AppleWebKit/41') =3D=3D -1 && =
!window.opera) {=0A=
  if(!window.TimesPeople) {=0A=
    document.write('<script =
src=3D"http://graphics8.nytimes.com/js/app/timespeople/preloader.js" =
type=3D"text/javascript" charset=3D"utf-8"><\/script>');=0A=
  }=0A=
  document.write('<script =
src=3D"http://graphics8.nytimes.com/js/app/timespeople/loader.js" =
type=3D"text/javascript" charset=3D"utf-8"><\/script>');=0A=
}=0A=

------=_NextPart_000_0000_01C94B12.EDFDAF50--
