From: <Saved by Windows Internet Explorer 7>
Subject: =?Windows-1252?Q?Kentucky_New_Era_=97_News_that_hits_home?=
Date: Tue, 22 Jul 2008 17:07:50 -0500
MIME-Version: 1.0
Content-Type: multipart/related;
	type="text/html";
	boundary="----=_NextPart_000_0000_01C8EC1D.78CAEA30"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198

This is a multi-part message in MIME format.

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/articles/2008/05/29/news/free/doc483ef3b7adfa4968435637.txt?sessinfo=12428a1465861f43bb842673ad115d33f7ff1400be88a9a294fd37e0f4f6d151ef2253e0eddcb02fafb66f179efe4f4392e6a9cb846791ea0e3cca93effd0120ba857e6301680f9b02a23f2a6b90ae1f94c856765e38604999864b316b655e33fa4f3ec48cbe986c3ba8bdfa9e774388bb0da98123ca5f14e86fbc444fd7a612a949a546f7ba883f3d4213edb6498fd2ef9d5143d8877a12de8c3c4d21eac918a4349b167255c1d9a80991a57c86429e3e0984021e42a04c541aafc301dc949934a230b1e739b61f3ade0f1889d8f2fa47d7329f79c490bd9b77259dc224c15ae78e5e5d81da19385c699164a455f6c7a24b58a526921337d53d2955bf8fffa0

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- NewSys(TM), version 3.42.1, Copyright TownNews.com(C) 2002-2005, on =
web21.ch2.l3.sys.townnews.com --><HTML=20
xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>Kentucky New Era =97 =
News that hits home</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3DISO-8859-1"><LINK=20
href=3D"http://www.kentuckynewera.com/art/interiorPage.css" =
type=3Dtext/css=20
rel=3Dstylesheet>
<SCRIPT src=3D"http://www.kentuckynewera.com/art/textsizer.js"=20
type=3Dtext/javascript></SCRIPT>

<META content=3D"MSHTML 6.00.6000.16674" name=3DGENERATOR></HEAD>
<BODY>
<SCRIPT=20
src=3D"http://www.kentuckynewera.com/shared-content/stats/common/tracker.=
js"=20
type=3Dtext/javascript></SCRIPT>

<SCRIPT type=3Dtext/javascript>=0A=
<!--=0A=
 if(typeof(TNStats_Tracker) !=3D=3D 'undefined' && typeof(TNTracker) =
=3D=3D=3D 'undefined') { TNTracker =3D new =
TNStats_Tracker('kentuckynewera.com'); =
TNTracker.setTracker('http://www.kentuckynewera.com/shared-content/stats/=
common/tracker.gif', =
'https://secure.townnews.com/shared-content/stats/common/tracker.gif'); =
TNTracker.trackPageView(); }=0A=
// -->=0A=
</SCRIPT>

<TABLE id=3Dleaderboard cellSpacing=3D0 cellPadding=3D0 width=3D780 =
align=3Dcenter>
  <TBODY>
  <TR>
    <TD align=3Dmiddle>
      <SCRIPT language=3Djavascript=20
      =
src=3D"http://www.kentuckynewera.com/shared-content/adsys/creative.js"></=
SCRIPT>

      <SCRIPT language=3Djavascript=20
      src=3D"http://adsys.townnews.com/global/capped.js"></SCRIPT>
<!-- AdSys ad not found for news/free:leaderboard =
--><BR><BR></TD></TR></TBODY></TABLE>
<TABLE id=3Dheader cellSpacing=3D0 cellPadding=3D0 width=3D780 =
align=3Dcenter>
  <TBODY>
  <TR id=3Dlogo>
    <TD height=3D37><IMG height=3D59 alt=3D"Kentucky New Era"=20
      src=3D"http://www.kentuckynewera.com/art/kneLogoInterior.jpg" =
width=3D282>=20
      <DIV=20
      id=3DheaderAd><!-- AdSys ad not found for news/free:home_leader =
--></DIV><BR><SPAN>
      <SCRIPT=20
      =
src=3D"http://www.kentuckynewera.com/shared-content/newsys/common/date.js=
"></SCRIPT>

      <SCRIPT><!--=0A=
showCurrentDate(1);//--></SCRIPT>
      <NOSCRIPT></NOSCRIPT></SPAN></TD></TR>
  <TR>
    <TD id=3Dnavbar>
      <UL>
        <LI><A href=3D"http://www.kentuckynewera.com/news/">News</A> =
</LI>
        <LI><A href=3D"http://www.kentuckynewera.com/sports/">Sports</A> =
</LI>
        <LI><A =
href=3D"http://www.kentuckynewera.com/community/">Community</A>=20
        </LI>
        <LI><A=20
        =
href=3D"http://www.kentuckynewera.com/obituaries/Tuesday/">Area&nbsp;Deat=
hs</A>=20
        </LI>
        <LI><A =
href=3D"http://www.kentuckynewera.com/opinion/">Opinion</A> </LI>
        <LI><A=20
        =
href=3D"http://www.kentuckynewera.com/CFA/">Classified&nbsp;Ads&nbsp;&#85=
95;</A>=20

        <UL>
          <LI><A=20
          =
href=3D"http://www.thejobnetwork.com/home.asp?AffiliateID=3D1307">The =
Job=20
          Network</A> </LI>
          <LI><A href=3D"http://www.kentuckynewera.com/admarket">View =
Ads</A>=20
</LI>
          <LI><A=20
          =
onclick=3D"window.open('https://www.clickforads.biz','popuppage','width=3D=
763,height=3D440,top=3D0,left=3D0,scrollbars=3Dyes,toolbar=3Dyes,resizabl=
e=3Dyes');"=20
          href=3D"javascript:void(0)">Place an Ad</A> </LI>
          <LI><A=20
          =
href=3D"http://www.kentuckynewera.com/special_edition/?pub=3DSpecial%20Se=
ction:%20Service%20Directory">Service=20
          Directory</A> </LI>
          <LI><A href=3D"http://www.publicnoticeads.com/KY/">Public =
Notice=20
          Ads/Legal Notices</A> </LI></UL></LI>
        <LI><A =
href=3D"http://kentuckynewera.mycapture.com/mycapture/index.asp"=20
        target=3D_blank>Photo&nbsp;Gallery </A></LI>
        <LI><A=20
        =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/free/">Abo=
ut&nbsp;us&nbsp;<SPAN>&#8595;</SPAN></A>=20

        <UL>
          <LI><A=20
          =
onclick=3D"window.open('https://secure.townnews.com/shared-content/perfor=
m/?domain_name=3Dkentuckynewera.com&amp;form_template=3Dnew_subscribe','p=
opuppage','width=3D500,height=3D400,top=3D0,left=3D0,scrollbars=3Dyes,too=
lbar=3Dyes,resizable=3Dyes');"=20
          href=3D"javascript:void(0)">Paper subscription</A> </LI>
          <LI><A=20
          =
href=3D"https://secure.townnews.com/shared-content/subscription/authentic=
ate/index.php?mode=3Dstart&amp;domain=3Dkentuckynewera.com&amp;usereg=3D1=
&amp;url=3Dhttp://kentuckynewera.com">Internet=20
          subscription</A> </LI>
          <LI><A =
href=3D"http://www.kentuckynewera.com/about_us#contact">Contact=20
          Us</A> </LI>
          <LI><A=20
          =
href=3D"http://www.kentuckynewera.com/community/communicate.txt">Online=20
          forms</A> </LI>
          <LI><A href=3D"http://www.kentuckynewera.com/staff/">Our =
Staff</A> <!--<li><a =
href=3D"http://www.kentuckynewera.com/shared-content/perform/?form_templa=
te=3Dnewstip">Got a NewsTip?</a></li>--></LI>
          <LI><A=20
          =
onclick=3D"window.open('/shared-content/perform/?domain_name=3Dkentuckyne=
wera.com&amp;form_template=3Dletters','popuppage','width=3D500,height=3D4=
00,top=3D0,left=3D0,scrollbars=3Dyes,toolbar=3Dyes,resizable=3Dyes');"=20
          href=3D"javascript:void(0)">Letter to the Editor</A> </LI>
          <LI><A=20
          =
href=3D"http://www.kentuckynewera.com/shared-content/perform/?form_templa=
te=3Demployment">Work=20
          for us</A> </LI>
          <LI><A href=3D"http://www.kentuckynewera.com/homepage/">Make =
us your=20
          Homepage</A> </LI>
          <LI><A=20
          =
onclick=3D"window.open('/shared-content/perform/?domain_name=3Dkentuckyne=
wera.com&amp;form_template=3Dfeedback','popuppage','width=3D500,height=3D=
400,top=3D0,left=3D0,scrollbars=3Dyes,toolbar=3Dyes,resizable=3Dyes');"=20
          href=3D"javascript:void(0)">Feedback Survey</A> =
</LI></UL></LI>
        <LI><A=20
        =
href=3D"http://www.kentuckynewera.com/shared-content/search/index.php?sea=
rch=3D1&amp;o=3D0&amp;l=3D25&amp;q=3D&amp;submit=3DGo%21">Archives</A>=20
        </LI></UL></TD></TR>
  <TR>
    <TD id=3Dbreadcrumb><SPAN><A =
href=3D"http://www.kentuckynewera.com/">Home</A>=20
      &gt; <A=20
      =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/">News</A>=
=20
      &gt; <A=20
      =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/free/">Fre=
e</A></SPAN>=20
    </TD></TR></TBODY></TABLE>
<TABLE id=3Dmain cellSpacing=3D0 cellPadding=3D0 width=3D780 =
align=3Dcenter>
  <TBODY>
  <TR>
    <TD id=3Dmaincontent width=3D460>
      <TABLE class=3Dnewsextras cellSpacing=3D0 cellPadding=3D0 =
width=3D"100%"=20
      align=3Dcenter>
        <TBODY>
        <TR>
          <TD align=3Dright><A=20
            =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/free/doc48=
3ef3b7adfa4968435637.prt"=20
            target=3Dprintable>Print this story</A> &nbsp;|&nbsp; <A=20
            =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/free/doc48=
3ef3b7adfa4968435637.eml"=20
            target=3Demailafriend>Email this story</A> &nbsp;|&nbsp; <A=20
            =
href=3D"http://www.kentuckynewera.com/articles/2008/05/29/news/free/doc48=
3ef3b7adfa4968435637.txt?sessinfo=3D12428a1465861f43bb842673ad115d33f7ff1=
400be88a9a294fd37e0f4f6d151ef2253e0eddcb02fafb66f179efe4f4392e6a9cb846791=
ea0e3cca93effd0120ba857e6301680f9b02a23f2a6b90ae1f94c856765e38604999864b3=
16b655e33fa4f3ec48cbe986c3ba8bdfa9e774388bb0da98123ca5f14e86fbc444fd7a612=
a949a546f7ba883f3d4213edb6498fd2ef9d5143d8877a12de8c3c4d21eac918a4349b167=
255c1d9a80991a57c86429e3e0984021e42a04c541aafc301dc949934a230b1e739b61f3a=
de0f1889d8f2fa47d7329f79c490bd9b77259dc224c15ae78e5e5d81da19385c699164a45=
5f6c7a24b58a526921337d53d2955bf8fffa0#postcomment">
            <SCRIPT=20
            =
src=3D"http://my.kentuckynewera.com/apis/scripts/remoteViewer.ashx?tp_rv_=
type=3Ditemnumcomments&amp;id=3Ddoc483ef3b7adfa4968435637.txt"=20
            type=3Dtext/javascript></SCRIPT>
            </A>&nbsp; </TD></TR></TBODY></TABLE><BR clear=3Dall>
      <DIV align=3Dright>Originally Published: Thursday, May 29, 2008=20
      </DIV><BR><BR>
      <H1>Inner-City REZ receives state award at annual conference</H1>
      <H2></H2>
      <TABLE cellSpacing=3D0 cellPadding=3D0 align=3Dright border=3D0>
        <TBODY>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD class=3Dcutline></TD></TR></TBODY></TABLE>
      <P>By Melanie George, New Era staff writer</P>
      <P><FONT face=3DArial>Pioneered in Hopkinsville, the Inner-City =
Residential=20
      Enterprise Zone was recently recognized on a state =
level.<BR><BR>The=20
      Kentucky chapter of the American Planning Association named the =
inner-city=20
      program the most outstanding project, program or tool in the state =
at the=20
      chapter=92s spring conference May 23 in Corbin.<BR><BR>Holly =
Boggess,=20
      assistant director of the Hopkinsville-Christian County Planning=20
      Commission and planners Holly Harris, Dave Herndon, Chris =
Covington and=20
      Angela Satterlee attended the three-day conference and accepted =
the=20
      award.<BR><BR>Boggess said the award is very competitive across =
the=20
      state.<BR><BR>=93We applied for the award in 2006, but we didn=92t =
have enough=20
      progress in the program at that point,=94 Boggess said.</P>
      <TABLE cellSpacing=3D0 cellPadding=3D0 align=3Dleft border=3D0>
        <TBODY>
        <TR>
          <TD></TD></TR>
        <TR>
          <TD class=3Dcutline></TD></TR></TBODY></TABLE>
      <P>The assistant director said that she is pleased and excited =
about the=20
      inner-city program being recognized this year.<BR><BR>Boggess =
hopes the=20
      program can serve as a model for other communities.<BR><BR>The =
inner-city=20
      program was established in 2005 to develop new homes, better=20
      neighborhoods, economic growth and to demolish dilapidated houses =
in=20
      Hopkinsville=92s oldest neighborhoods.</FONT><BR><BR><FONT=20
      face=3DArial>MELANIE GEORGE can be reached at 887-3240 or by =
e-mail at <A=20
      =
href=3D"mailto:mgeorge@kentuckynewera.com">mgeorge@kentuckynewera.com</A>=
.</FONT></P>---
      <SCRIPT=20
      =
src=3D"http://my.kentuckynewera.com/apis/scripts/remoteMgr.ashx"></SCRIPT=
>
      =20
      <DIV id=3Dtp_CommentsDiv></DIV>
      <SCRIPT type=3Dtext/javascript>=0A=
    var tp_remoteMgr =3D new tp_remoteManager.Comments();=0A=
    =
tp_remoteMgr.setProxy("/shared-content/newsys/theport/proxy.php?url=3D%ur=
l%"); =0A=
    tp_remoteMgr.postLoadItemNumCommmentsHTML=3D"(%num%) Comments";=0A=
    tp_remoteMgr.postLoadZeroCommmentsHTML=3D"Enter Comments Below";=0A=
    tp_remoteMgr.request("doc483ef3b7adfa4968435637.txt","Inner-City REZ =
receives state award at annual =
conference","http://www.kentuckynewera.com/articles/2008/05/29/news/free/=
doc483ef3b7adfa4968435637.txt","","tp_CommentsDiv");=0A=
</SCRIPT>
<!--[include:incs/simple-blog-archives.inc]--></TD>
    <TD id=3Drightrail vAlign=3Dtop align=3Dright width=3D303>
      <SCRIPT type=3Dtext/javascript>=0A=
<!-- =0A=
aCampaigns =3D new Array();=0A=
aCampaigns[820] =3D 100;=0A=
aAds =3D new Array();=0A=
nAdsysTime =3D new Date().getTime()/1000;=0A=
document.usePlayer =3D 1;=0A=
if ((nAdsysTime >=3D 1187672400) && (nAdsysTime <=3D 1503377999)) {=0A=
aAd =3D new Array('news+free+rightrail', '93805-1216316749', 'swf');=0A=
aAd[3] =3D '300';=0A=
aAd[4] =3D '250';=0A=
aAd[5] =3D new Array();=0A=
aAd[5][0] =3D 'http%3A%2F%2Fwww.poundchiro.com';=0A=
aAd[6] =3D 'news%2Bfree%2Brightrail';=0A=
aAd[7] =3D 10;=0A=
aAd[8] =3D 0;=0A=
aAd[9] =3D 820;=0A=
aAd[10] =3D 0;=0A=
aAd[11] =3D 0;=0A=
aAds[aAds.length] =3D aAd;=0A=
}=0A=
if ((nAdsysTime >=3D 1188277200) && (nAdsysTime <=3D 1503982799)) {=0A=
aAd =3D new Array('news+free+rightrail', '94686-1211494939', 'swf');=0A=
aAd[3] =3D '300';=0A=
aAd[4] =3D '250';=0A=
aAd[5] =3D new Array();=0A=
aAd[5][0] =3D '';=0A=
aAd[6] =3D 'news%2Bfree%2Brightrail';=0A=
aAd[7] =3D 10;=0A=
aAd[8] =3D 0;=0A=
aAd[9] =3D 820;=0A=
aAd[10] =3D 0;=0A=
aAd[11] =3D 0;=0A=
aAds[aAds.length] =3D aAd;=0A=
}=0A=
if ((nAdsysTime >=3D 1199080800) && (nAdsysTime <=3D 1514786399)) {=0A=
aAd =3D new Array('news+free+rightrail', '109375-1216321310', 'swf');=0A=
aAd[3] =3D '300';=0A=
aAd[4] =3D '250';=0A=
aAd[5] =3D new Array();=0A=
aAd[5][0] =3D 'http%3A%2F%2Fwww.patriotchevybuickgmc.com';=0A=
aAd[6] =3D 'news%2Bfree%2Brightrail';=0A=
aAd[7] =3D 10;=0A=
aAd[8] =3D 0;=0A=
aAd[9] =3D 820;=0A=
aAd[10] =3D 0;=0A=
aAd[11] =3D 0;=0A=
aAds[aAds.length] =3D aAd;=0A=
}=0A=
adsys_displayAd('http://adsys.townnews.com', 'kentuckynewera.com', aAds, =
aCampaigns);=0A=
=0A=
// -->=0A=
</SCRIPT>
      <BR><BR><!-- AdSys ad not found for news/free:rightrail2 =
--></TD></TR>
  <TR>
    <TD id=3Dfooter align=3Dmiddle colSpan=3D2>
      <P>=A9 2008 Kentucky New Era =97 All rights reserved <BR>Questions =
or=20
      comments? Contact the <A=20
      =
href=3D"mailto:webmaster@kentuckynewera.com">Webmaster</A></P></TD></TR><=
/TBODY></TABLE>
<P>&nbsp;</P></BODY></HTML>

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: http://www.kentuckynewera.com/art/kneLogoInterior.jpg

/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAUAAA/+4AJkFkb2JlAGTAAAAAAQMA
FQQDBgoNAAAGbgAADg4AABOFAAAZ/f/bAIQAAgICAgICAgICAgMCAgIDBAMCAgMEBQQEBAQEBQYF
BQUFBQUGBgcHCAcHBgkJCgoJCQwMDAwMDAwMDAwMDAwMDAEDAwMFBAUJBgYJDQsJCw0PDg4ODg8P
DAwMDAwPDwwMDAwMDA8MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8IAEQgAOwEaAwERAAIR
AQMRAf/EAOgAAQACAQUBAAAAAAAAAAAAAAAHCAYBAwQFCQIBAQEAAwEBAQAAAAAAAAAAAAABAgMG
BQQHEAAABgEDAgQEBAcAAAAAAAABAgMEBQYHAFAREDIxEhQ1ExUWNiAwNDdAIiMzJSYXEQABAwID
BAUFDAYLAQAAAAABAgMEABEhEgUxQSITUWFxMhQQgbFSIyCRocFCcjNzs3QVBlDRYsJDwzBA8IKS
olNjoyREdRIBAQEBAAAAAAAAAAAAAAAAAVBgERMBAAICAgECBgIDAQAAAAAAAQARITFBURBhcSBQ
8IGRobHRMEDhwf/aAAwDAQACEQMRAAABv8dYUIXuC+SAAAAAAAAAAAAAAACNDlnkcykNPW2ToPk+
vIPs+QAAAAAAAAAAAAAAeVLKW0wwsT5noSD4ftR39/wxx0Hh4cZuXjTeB8GFGcAFdCxRqCCCNFwQ
tokkgHFKfLjxYtJhAB5EMo5Jw1Z24/P+7635vo3eu5TFeg8Oma5UXiSNSKTLDAzNSbCGyAlvQkMl
n0kE8kmV0GOPr3Zgx2RdZKgLCROxtHNLdJqVlPOhlL+nZbb8877iatm/13KYz0Hh1bO0OeSeVylk
Ws6Svq5OXPY0bmWf2RXLdmy06UsWAl6QnpK8yq9WGNWF3EiBZXK5HqwnKPPpapLMGnZbb8877ha9
nx2XIPb8euZIBxiW0r+uSGUkOmcHcHWHTkELaFJ/Sry98dOTglSl2D0WSuiwsZSZiQgTaXRSs5T1
edp2zlyPV9j7HkWf9nx8yzxAAAAGhqYsVjLMGXGhoD6Pg0Ps0No3AfBumoBWnDKRMcpS26wAAAAA
AAAAAAAAAB//2gAIAQEAAQUC08ckZtZ2+uvU0e8vl57YI6ytHTu1FUPXXCnxVaMgd1cdEfpqPP46
xO1G8pCZIdIJEqUXbH1Vq0fTdOpox9Q0golL2qzXZuo4v9hXCRvMm5kkxESdDGKQsHOtJ5HqtkWN
NO9bbaX0UnTshvpQVMnWdrJ1eTkJWO6rKkQSs17s0Y8Nke1OkqzMTMqX8FnXTUk9Y4OYLa5UMc2q
oADPZf8A5I8f1gSBD2K1ZAYV4kHkaScwg5GtzmOlrhNTVIq0jYYmOSybYvkcbkZn9Nf9Dtx375+o
zssVdnD+pN8pTgxNMsZ7JDumyChPK8hHFgWjpeNsuSkWKa+RXY1NxlSa+VvcqyKKiKqblDL39KOr
dkcwziTyaMPLMcjzC569k1WRmOlxx/DyaS6Jm6mOvuxXu1U/f8w8egRiHCx7WkVJ9eSiSyMaWdjE
Rwf4pn+3ta/b1v7Cb7Ix6zbOqtIkMaz0dZIGzT2bEvsy/wDYaQAWHH1flVg16FRxY5iqfT1NUL/r
cv8ApYT2nMQj6fHccgsfJJQLcbvNGgGDVIiFvIoTnU7fnYCusZdXHX3Yr3CIAFKV9VOXCuSFlklc
czqLqy0WXUa2OmTj5rBwE09jWlAnyDD02cUhKlV5hONJRbGTTGjzDmuVCDs6GntImE7XD0+cjJUq
KaJ8UvnqCttipmZKhT7XASM1TnrWzWKmTTSwu6vJSdbJU7KoxUq1jctKyV6nDXGFnrNIMU7xWn1v
gJ6Vkb7XpSUjE4CyBJfI7Mhc+VNXTHKVhXfUC4xwY85JbnU2s5dp1S5S2oKCZV9j+VwHSbYmkolD
FbPyxMO1iUOggA64Dp5S68heNcBoyaZ9eUo6EAEPhk4/BO/B+qqh5Pk+wf/aAAgBAgABBQLaSq+Y
2wqOQLpR5zplsJ+1Q3PRl4bAftN0ZeGwH7TdGZeA2BTtI2E+iMwDQBxsI+BfDYP/2gAIAQMAAQUC
2kUuC7Cm3E2k2nGnmwl8Uw46PPHYCdxejzx2AncXo7NyOwE7juQJo7sR0I87CGjeOwf/2gAIAQIC
Bj8Ck8MKxGIxHDf/2gAIAQMCBj8Ck91JEIhhv//aAAgBAQEGPwKn5TncYQVnzUpDSldeVVgOymNK
muKdh6hdLOc3LbgFxY9B2foFenPuJZmZiGRucA6OvqrV+UCpaY6lgD9jiPopTnrVobbYvynuc51J
bSVeTwqCDZNz8P8AX3yD3XlEe/SWJikzGwLWe71vnfrqUfy1qKdMkJ9o/pEkEhIO9padqeq2FPSF
P/iGqvpyOzCMqEJ9Vsek1ZFarLW07K5LSLMNYrPe2XIoTW1N6Xp6TwNNFLlvnqUMT2UqH48guNFx
99DSEEHl3CEbbDp31ouiM3itXjGe+O+8pQSqwO5NIKu8Rj5SpRCUpF1KOwCpEiH9C0+tptXrhGGb
z+4iaLAaVIzv8qXMVdKU2vgkbTj7h2NosBUycgXfkLT7FoWv1Z1dQqXC1JhEiehsuwEtWa5uXaji
OW9SESNLa5ajka04g3QepY23oSdTZQzJUonI2DlSk91OPQPcLecvkbFzlBUfMBSVxtJbjaane/7R
a/n5FcHZS3NP0qPlCxdVlLKLi+W2YX7a52pRmYqCgZWGgo2VvUpRPwD3/cywhVyl5d/f8kax/wDP
J+yVWJ8moA4gtpuP8daK2jhQX3CUjZgkW9NH6n+VWnzZTbjDLZjgAiysqEhIPx0YUMCdq2Uey/ht
XGBWfiFarzWmpetwEqfazezStm+JsNuTop9KH2m1MLC3pqGwHMqjgm3d29VcyzbJ53htWkIwUtOG
XKndmvxVM1OA4XIEMKUYmARm2Zl4XsL3tepCuUwuY0+lHjyNiV3I9nsJwpvV9XTkmBamPDsj6VxO
PD0XHTUaY1EZGmzFBMeJlzIsTbFwY3qdqLIBdamuuICtl8xqVqzEVEvVdMRabFzZBgPpOy2Nqmur
hR3ZbTqA3J7qUJcvtRv2dNImPtpaltqLclKe6SN47adcW2FrDarE9laZqzOHMtIjObrpPEmvytrM
VpI8bqDPMtu4VZknsIr8M/LKUqcQMruoEcCfqxv7aZ1aBFbdnocEfUis8LK9ysm0he6oTzOnR231
LUiTJVdSFFO5KL3GB6a0pbeltNxn2UOygpWYrvgrJbu2tvpt1GLbyQodhrRmmxkQt9wrA35Ui3pp
cKPprU7xymuJ29k3QkbqVpydD/6jAs5c5HFqIwUjaMtJXK0UNsgKtGZS4t947gm/dA3k03pep6am
EJK+Wy4gm6F7gsK8uo6uzmh6mlkuAoNmlqQPlJtvotL7ydtRvu0n7JXln/Vp/frRfX8Q5lG/uipc
rBKI0RS8mYZzlaxwrQikW5unR1q7c6h8VMKABLkaKoBWw4Wx96tX1h6wd8E+pNhYDMg3CR0Vr5/2
mPtRWr/fmfSmvzT81f7tan95j/v03/8AV/lqqHz2kuWUq1/nGtVbbYEg+MkgMHAHFVfmePbK6vS3
1Zr4KAScLVq/1kb0qqV9efip75ivRTaG03nQip2GesE8PnFQNDdvy06o1JZv8hQBSsee9T9PaSgr
dkyGuMbOI4gDeK1F2/tJLjHMvtNl4XqKronuD/jTWg/cv5i6gfUp9FaEnpce9CK1FEpnMqOtuwO4
8tFWSLDlR60yDpsZtp7UmS47M2qTaw4RURtu+USWiMxzHiAOJPbQazjmBAUW7426beSVp/tMyFqQ
4hWGylur2qNRvu0n7JXkudlaq40MzLCUJW5uuc9JyjwyIaeWwQS4pYOJVbBKPTQa2tq/ii97VpD7
Cy85FZ8O9nJK7BRUk389aZqGYyJbMdMeTnwUchOVWHbTjesTn3VuRnIzSlnhbS4nLwowues1qcLP
kS4jLh3XMpzJJv2VrOlPK5YkZHGW/kh1tV9vXsrWdInKLcTUWlIyADgWflXOPmqbp+AbuFWGIcKL
5T1bamQHjkcQ8mTFQRwhaQUqTfbiDS9PkyHmdNzXXCQrKCetdrgdQp6Uwv2LzxkNvpFzx4qFjhvq
W04Q1GdZdYeetfM0tNr47KnQV6o0lk4Z0ArbdUju4gVJgrYvAe425G8L6B0ikRIc9cSEU+1aYwW4
r9tfq9VRlafNdaaUricQfgKNhqDq8Vj/AKkp9t6S2P4a78fv7aVqelLIRKe8Q0+nvNrVifhqfGlS
nHNQmJbWp943KltG6RYYJHUKehFmyIrpeTH3lVrHi7KhrWzmTGHJSj1E3JxO/bUNmfjIaRlUu2W/
mpDjQ8K1pxUiJG752/SkjAZrbMaUYubM+r22ey217uLNjWn6xyUKVJYaQ+UgpShxG3hNzatE1Bhr
mPQWeVKjjA42OYVB1QspLqloXzbcIKLCxHm3U3q6JTympFl8zfy/9AjZYf2xru/J+GlanpkhMHU1
D26Vj2T1thNthpS3NJMttO1cVQd/yji+CmUupLS240rmIWLEWZVtBow9Fgu6pIT3uULpT2mgma6x
o8ZXf4s7luxP66TBhA2vmffV33F+sr+l1CChfLXLZU2HBgcaQpa8egk0lphAzAWK/LiL+XYMdtWy
i3R5Nm2uJAVbpFYgG1WIuOigMgsNg9zH5n4Vn8DLy5ed+IW5C758nDk7ceimuX+HZL8P4bnyf3+Z
xZum/wCgf//aAAgBAQMBPyGafne6YPuy+SnI9ICDdc92l5nDh3T8hLF0TTmm8f8AiCO0okwD7QJz
ZlH9WmOSF/FRQFWg2xW4u+fpX++lKssyJwn4MoOV3/KZcCTbzrhdreyp3YBsbbq5Qsc+kDWv9EYC
uOXa0Qc22wZVBqS4K9+sf5mso+j21RwptPRiJzgC5kwd2ay+00UFr2nlB7mKBlVepnadrtUrwPXp
8FieiadZZbSraPeDYPefNhHQRXItw1bXPUtfsrPboAMjjFyhlouDW2+Wx4qJQ/GMXYm3Y/BlUk1P
oJV9CLqUaQF6VCeNvXiM/wBSGB2ja8OdSrcZIDgbPBNdvhDoAPgiKN34abPY14FMAp7RUtrZJMq9
LQ2d1e/2ypGa0VY7FPsgAFjLgELbTeztIzgJsQtXZX0qys7hV5CWmSuhheUabLB1YBXqHFGGM4A6
l0thpAtikrmQrYE3JevRcwbWxe0aNsFBbYisIB4gVD3ce1S0nDze+TDzLyhsL7u2Wh6gwxXEvCuW
2NDD1mBQPOjNugJjuGfgDdZS5rrLKonfT6Ma4je38EBjzK5VTCLv6sdDua9uENpJ0ho51LRD6oFo
i0LVekQyAq3RaKJVk94iJ/aSXAEWH1bIe1pTBwqUyFHBuJS7diEKFZV2p1qN+9LGYdCwP224rODv
mcsvVlU8eQ7ODIT64lKJ3P7YD4zfx+PqvUBBhXaDNR+ItVx3cFhbAeWHCwhzZMbz7VAa+iHTFamU
WztVuYjxQPz4zR+r4jdrG37eEwLeRjInJHJtMod3puOxZ4nLnQRbHwy+r9R9W7QV5VbbT9b3qPGX
pODfYff3iEgGxDS7DYesJx0PRtulXqfUSU/8n5JvxRICWLr1on3dSv0Sg1Z7R7PRKDo0W3t11Mpm
pVt3KW4Ta6iKvByVZvwn2iThbmJhd58Zv44iShtl35H6YhcQ7gw0I2CuOVWaKJgQqqcjeDH7hCHE
aqCOLlcQb1cQVBV6pnPNze+aOwFTsveqiVwBW6tEYL4ZltLolmg4Xiae8wx+/CoJW0YYixWqE7SK
4KYnmuIQ2fiJPvv9ptycqXKvRSsvBEUothro4bktBXd3HWqW2CvQL5hjGuQBoRrJW+JjHblw8jgH
AzzxBDJsqx2m/wBcQD+olrOHS4dzIaZgrXQN5NemGZVuk+pVugPNtswqUIctnDDAzWkLUuWjstTC
r2vTTk8TJR6BuWVaKsgC6cSvzbV05DoOMzmQMWCFu8ZWWGhM9SLqxwzgkqhgHS4hYSNxLKryRqMa
zHpOX9YATgo0K2VZVg3ycy4gThY5sgzLqg+wUEqYNgXUfjPvE6M6mU2GG/cROZbSrafwcEou6y8+
EHZcocVjqVWsSjqUGipVSi7ovuUGioBoC5Rd1nuKGZRRWnNMUyMVa/OpTICkGuDo8UOy5oD3RTYN
a8AWhPRuA0B6BXgBUA7MUF7RBiABNBIuMm1qAgHhjHtKLGizT8H0KcV0f9s9Xrqfo2fyH//aAAgB
AgMBPyH5SC8XyLQRsCZC9/IVSekRfI79Rm/yO/UZv4XP8h/QZn3EzcMUfId3yK//2gAIAQMDAT8h
+TvhjfPyCvIHkzBD/Sr/ADiz7wR5j4K+CpXwV8NeKleDxXivh/YJr5jyf43/AAnk+L9gmvgcPi5c
vxcvxcvxfl8X4vxfxHw3P2CYszMfHV/5r/09z5Ff/9oADAMBAAIRAxEAABAQ0AAAAAAAAAAAAAAA
A2lgAAAAAAAAAAAAAACWN8EAAEAUAUGgCAUACH32QCGkgiGgWAyCgCAnr0W0IGA6oCABQAkEAnqI
UC0SiSSWQGmSgGAnTMSCQQSAUACACQCQAD4AAAAAAAAAAAAAAAD/2gAIAQEDAT8QnpqgHIH7BL49
VBzpkoI/cajfnOZTUsFU38gstLlwLXFGU2mbZAfw/rWEGVWxzHxsLO9RrGc7He8DX3IcwExLRoD1
YEw1/OyiHB3d/wC+4+ciLSKMiOkmEu3rcaWTWMJTOyLcltaBtQLZSt1HEMt6aFhUoGFfocFH6Tf3
h9ux0tNtsAALxBfrUWOPUzachexns5AnIYFjJpqjhdTEmASghauTBo76GUFryA8BxFTAAFq6l61i
YihoZBLnBd151mWbGjUhNVWBbII/RB98+TRXqFwFogqozxVL3qXLfsIuC4oXYVpKlE7LZJgVEcSn
ZKBOsLqX4LzgiAORM4AVYa3IiQLPxIpvKbGXpiIGPUFUaAq4KVLOy6uceQFMHwA8eHCKDWSXXJkX
NRfdIMEqAwtjwGl8LEcCQDobdiQNoA92ZvUhHuTEQW2LKykm9IbT5AStUoAaxoorW6mnhCNky5wU
ENSIsClqGJBeYGbgtxnwDoqFULQFF+kZHekWwjIWLtaCocogciAS5DAw1akBuMCq6vBHADhfUEqK
iOTVCs9aARmQHSy45CVxcrKSVwFQSrgknqOME7VAMmdZJkRrS1QkRS1Y1Uxbh+XEOCDhhX9kXA4O
S7h2eYCx64ZV7EE4YNhT1CiV19iJSWm2VNiFBbE4QI+UZZ2mAEuyK+tPfU0C1o5HJUixcKID9mBk
GcB9sy6V9wlcyvQaagt6SqEIYc8nqAqXlC0EII7AuA0AoLhpzlDkUNhfsFNCII2OR8BtiPFW0UDZ
dK27rdxAOOR4v6vZ5SB+ghynsiXl9o7qRUXe+cbA1gipUaKtWdrSWYOQqpZyavpKEIkHeagC2h1q
VkG9cio/Qw566mBKoKVMC9QD1T2LdMSp7vqoBW0xoZl104VTCupjosYCuuBQXshy1rJP+CeLcRzm
ivSd0WGsnE1i/wAKELIYLgPaBTAWY5IgKR0OJW6DEoXQxkUNW7llwypWWoz6QAUAbTuf0TpMd5cW
pIH5YPd/vAwTsY/UIhReHHoQrgIVxSZ7c/S2StqnPsyBIq8woC1tdttRoFKsTwVdewpQDQvDTLAj
P7+L+r2Q15VRoAlL8Z2R1S40THz90FSkdcOoIATCTzwh3EU4yzS2QTou1SAArmF19ySLpEsmShJW
UK2dMRdAosoVRdiKrKtX8FUmYvdYVrXipSsPLAoxkkXvbrICWl1C5YQln+1kAnYFc0iRsoqNGQg7
NUBLtitptiRGqGj3tQUWZ5u5lhDIjFNXgKa05spTzTWFckEnQJDRqacbq+SMNeiRiDD2UljF2gsf
2SEulogM6q6oPucS0RdcypR9RLJVPEQQlNwcFFVUsvFCzLoIjsqO0WvzLBgMrGrZJS12S0AqUELF
L1uG7YrXlEql7JCjPGAR4r9LlwFxbmi6gqluuQRBYpZCBioEwdKKRRoLpQw4lBZrs00Cr3A1HM52
uxlsCKWCbzGUP09yE0h5N5NxJ3kJkFgMyUwHKf2/9J6xSU8qJgpgRADJB4JQtbQSHdZ9kdFQxRII
pkSBHsd8XVBX2oIa90Ge4zixXuI0nLIDAkC6ADGA5UNAGwGX7xBpQU0wCgHSXEFg9hiAAABoMEoV
pbtrMLFFt0VAWoC91M7OYaZ/MAUA6CoirmyAXLAgjVM/mVKvZHEFSyxw4Ye/KfoPVCvIASnDusQ0
AGDgPDQQRksuoOBA2AGn7yhO8Aa8IbkAB93cSNraCt3VQAACg0EVUlkAr6x53WwD2KSsaSQhWqHU
JC9AFHSMRYVhUvRWIuhuALPZ+D6dtb+k9Sf/AJbvlf8AUu/kP//aAAgBAgMBPxD5QoFsygALfVv+
vkTaZVy6+3cPf+MajtW/v5CpGxfxM3fG767+Q/Xunz7vrv5D9e6fGCtEtg38h+ndM4ycdx0Rb6/1
8iEfqP8AE1a+2vkP/9oACAEDAwE/EPARPkNQ8gVomJFWD0K/v/fIwqQcXF8c/fqJxIDoKP1CpUrH
wp8FfAESUj8IEoj8J4IrpH8zDTxq+uvKsQLjFEDMauUubSicSs+CV434IrPwhIRRHyHx9A7PLq+u
vC4TSXcdzmO5zOY7nEZzNvF0xJeINs5h5MNQXOPIePoHZ4VAtlWWv+Qa8CCL8NospNos0i+Q14Xi
GEuUlngalkGKpZLx4Hw+odk5Cc9QFDR6f3LE/wApLf6f7x/M2b++/kP/2Q==

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: text/css;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/art/interiorPage.css

BODY {
	FONT-SIZE: 85%; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
HTML {
	FONT-SIZE: 85%; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
BODY {
	BEHAVIOR: url("/art/csshover.htc")
}
TABLE {
	BORDER-COLLAPSE: collapse
}
TABLE#leaderboard {
	BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium =
none; BORDER-BOTTOM: medium none
}
TR#logo {
	BORDER-TOP: #bbbbbb 1px solid
}
TD#logo {
	BORDER-TOP: #bbbbbb 1px solid
}
TR#logo SPAN {
	MARGIN-TOP: -20px; FONT-SIZE: 80%; MARGIN-LEFT: 55px; FONT-FAMILY: =
Arial, Helvetica, sans-serif
}
TR#logo IMG {
	PADDING-RIGHT: 0px; PADDING-LEFT: 10px; PADDING-BOTTOM: 0px; =
PADDING-TOP: 6px
}
TD#breadcrumb {
	PADDING-RIGHT: 5px; PADDING-LEFT: 5px; FONT-SIZE: 80%; Z-INDEX: 1; =
PADDING-BOTTOM: 5px; PADDING-TOP: 5px
}
TABLE#header {
	BORDER-RIGHT: #bbbbbb 1px solid; BORDER-TOP: #bbbbbb 1px solid; =
BORDER-LEFT: #bbbbbb 1px solid; BORDER-BOTTOM: #bbbbbb 1px solid
}
TABLE#header H1 {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 14px; PADDING-BOTTOM: =
0px; MARGIN: 0px; PADDING-TOP: 0px
}
TABLE#header IMG {
	BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium =
none; BORDER-BOTTOM: medium none
}
TABLE#photo {
	MARGIN: 15px
}
TABLE#main {
	BORDER-RIGHT: #bbbbbb 1px solid; BORDER-LEFT: #bbbbbb 1px solid
}
DIV#headerAd {
	Z-INDEX: 500; LEFT: 630px; POSITION: absolute; TOP: 20px
}
TD.cutline {
	PADDING-RIGHT: 2px; PADDING-LEFT: 2px; FONT-WEIGHT: bold; FONT-SIZE: =
x-small; PADDING-BOTTOM: 2px; PADDING-TOP: 2px; FONT-FAMILY: Verdana, =
Arial, Helvetica, sans-serif
}
TD#navbar {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: =
url(/art/header2_bg.gif) #efefef repeat-x; PADDING-BOTTOM: 0px; MARGIN: =
0px; WIDTH: 780px; PADDING-TOP: 0px; LIST-STYLE-TYPE: none
}
TD#navbar UL {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; Z-INDEX: 100; PADDING-BOTTOM: =
0px; MARGIN: 0px; PADDING-TOP: 0px; BORDER-BOTTOM: gray 1px solid
}
TD#navbar LI {
	PADDING-RIGHT: 0px; PADDING-LEFT: 0px; FONT-SIZE: 12px; Z-INDEX: 100; =
FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; =
FONT-FAMILY: Trebuchet, Arial, Helvetica sans-serif; LIST-STYLE-TYPE: =
none
}
TD#navbar A {
	BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: gray 1px =
solid; DISPLAY: block; PADDING-LEFT: 8px; BACKGROUND: =
url(/art/orangeGradient.gif) #efefef repeat-x left top; FLOAT: left; =
PADDING-BOTTOM: 4px; MARGIN: 0px; BORDER-LEFT: medium none; COLOR: =
#003366; PADDING-TOP: 4px; BORDER-BOTTOM: gray 1px solid; =
TEXT-DECORATION: none
}
TD#navbar LI A SPAN {
	FONT-WEIGHT: bold
}
TD#navbar A:hover {
	BACKGROUND: url(/art/grayGradient.gif) #bec1c6 repeat-x left top; =
COLOR: #003366
}
TD#navbar UL LI UL {
	Z-INDEX: 100; LEFT: -1px; MARGIN: 0px; WIDTH: 10em; POSITION: absolute; =
TOP: 23px
}
TD#navbar UL {
	WIDTH: 100%
}
TD#navbar UL LI UL LI {
	FONT-WEIGHT: bold; MARGIN-BOTTOM: -1px; WIDTH: 100%; HEIGHT: auto
}
TD#navbar UL LI UL LI A {
	PADDING-RIGHT: 8px; PADDING-LEFT: 8px; Z-INDEX: 100; PADDING-BOTTOM: =
4px; WIDTH: 100%; PADDING-TOP: 4px
}
TD#navbar LI {
	POSITION: relative
}
BODY TD#navbar UL LI UL {
	DISPLAY: none
}
TD#navbar UL LI:hover UL {
	DISPLAY: block; Z-INDEX: 99
}
TD#navbar UL LI UL:hover {
	DISPLAY: block; Z-INDEX: 99
}
TD#maincontent {
	PADDING-RIGHT: 15px; PADDING-LEFT: 5px; FONT-SIZE: 12px; BACKGROUND: =
url(/art/content_Interior_bg.gif) white repeat-y; PADDING-BOTTOM: 5px; =
VERTICAL-ALIGN: top; PADDING-TOP: 5px; FONT-FAMILY: Verdana, Arial, =
Helvetica, sans-serif
}
TD#maincontentx {
	PADDING-RIGHT: 15px; PADDING-LEFT: 5px; FONT-SIZE: 12px; =
PADDING-BOTTOM: 5px; VERTICAL-ALIGN: top; PADDING-TOP: 5px; FONT-FAMILY: =
Verdana, Arial, Helvetica, sans-serif
}
TD#maincontentFullPage {
	PADDING-RIGHT: 9px; PADDING-LEFT: 5px; FONT-SIZE: 12px; PADDING-BOTTOM: =
5px; PADDING-TOP: 5px; FONT-FAMILY: Verdana, Arial, Helvetica, =
sans-serif
}
TD#maincontent H1 {
	MARGIN-TOP: -3px; FONT-WEIGHT: normal; FONT-SIZE: 1.7em; COLOR: =
#000066; FONT-FAMILY: "Times New Roman", Times, serif
}
TD#maincontent H2 {
	MARGIN-TOP: 0px; FONT-WEIGHT: normal; FONT-SIZE: 1.3em; COLOR: #000066; =
FONT-FAMILY: Georgia, Arial, Helvetica, sans-serif
}
TD#maincontent .free {
	FONT-WEIGHT: bold
}
TD#maincontent .paid {
	FONT-WEIGHT: bold
}
UNKNOWN {
	COLOR: #000066
}
DIV#submitforms A:link {
	COLOR: #000066
}
DIV#submitforms A:visited {
	COLOR: #000066
}
DIV#submitforms {
	COLOR: #000066
}
DIV.sizeme {
	FONT-SIZE: 10px
}
TD#rightrail {
	BACKGROUND: url(/art/rightRail_bg.gif) white; MARGIN-LEFT: auto; =
MARGIN-RIGHT: auto
}
TD#footer {
	BORDER-TOP: #dddddd 1px solid; BACKGROUND: url(/art/footer_bg.jpg) =
repeat-x; COLOR: #000000; BORDER-BOTTOM: #dddddd 1px solid
}
TD#footer P {
	PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FONT-SIZE: 75%; =
PADDING-BOTTOM: 15px; MARGIN: 0px; PADDING-TOP: 15px; TEXT-ALIGN: center
}
.newsextras-alert {
	FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: red
}
.newsextras-blog {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.blogcomments {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.simpleblog-form-label {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.simpleblog-name {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.simpleblog-results {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.simpleblog-date {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
.simpleblog-response {
	FONT-WEIGHT: normal; FONT-SIZE: 12px; COLOR: #000000
}
LEGEND {
	FONT-SIZE: medium; COLOR: #000066; FONT-FAMILY: Georgia, "Times New =
Roman", Times, serif
}
.pullout {
	BORDER-RIGHT: blue 1px solid; PADDING-RIGHT: 7px; BORDER-TOP: blue 1px =
solid; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; BORDER-LEFT: blue 1px =
solid; PADDING-TOP: 7px; BORDER-BOTTOM: blue 1px solid; =
BACKGROUND-COLOR: #ffffcc
}
DIV.comic {
	BORDER-RIGHT: gray 1px solid; PADDING-RIGHT: 7px; BORDER-TOP: gray 1px =
solid; PADDING-LEFT: 7px; PADDING-BOTTOM: 7px; BORDER-LEFT: gray 1px =
solid; PADDING-TOP: 7px; BORDER-BOTTOM: gray 1px solid; =
BACKGROUND-COLOR: #ffffcc
}

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/art/textsizer.js

/*------------------------------------------------------------=0A=
	Document Text Sizer- Copyright 2003 - Taewook Kang.  All rights =
reserved.=0A=
	Coded by: Taewook Kang (txkang.REMOVETHIS@hotmail.com)=0A=
	Web Site: http://txkang.com=0A=
	Script featured on Dynamic Drive (http://www.dynamicdrive.com)=0A=
	=0A=
	Please retain this copyright notice in the script.=0A=
	License is granted to user to reuse this code on =0A=
	their own website if, and only if, =0A=
	this entire copyright notice is included.=0A=
--------------------------------------------------------------*/=0A=
=0A=
//Specify affected tags. Add or remove from list:=0A=
var tgs =3D new Array( 'div','td','tr');=0A=
=0A=
//Specify spectrum of different font sizes:=0A=
var szs =3D new Array( =
'xx-small','x-small','small','medium','large','x-large','xx-large' );=0A=
var startSz =3D 2;=0A=
=0A=
function ts( trgt,inc ) {=0A=
	if (!document.getElementById) return=0A=
	var d =3D document,cEl =3D null,sz =3D startSz,i,j,cTags;=0A=
	=0A=
	sz +=3D inc;=0A=
	if ( sz < 0 ) sz =3D 0;=0A=
	if ( sz > 6 ) sz =3D 6;=0A=
	startSz =3D sz;=0A=
		=0A=
	if ( !( cEl =3D d.getElementById( trgt ) ) ) cEl =3D =
d.getElementsByTagName( trgt )[ 0 ];=0A=
=0A=
	cEl.style.fontSize =3D szs[ sz ];=0A=
=0A=
	for ( i =3D 0 ; i < tgs.length ; i++ ) {=0A=
		cTags =3D cEl.getElementsByTagName( tgs[ i ] );=0A=
		for ( j =3D 0 ; j < cTags.length ; j++ ) cTags[ j ].style.fontSize =3D =
szs[ sz ];=0A=
	}=0A=
}
------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/shared-content/stats/common/tracker.js

function =
TNStats_Tracker(A){this._domain=3DA;this._http_url=3D"/shared-content/sta=
ts/common/tracker.gif";this._https_url=3D"/shared-content/stats/common/tr=
acker.gif";this._plugins=3D["DetectFlash","DetectRes","DetectVisitor","De=
tectPageTitle"];this._trackvars=3D[];this._sessionTimeout=3D1800;this._co=
okieTimeout=3D43800;this._pageStart=3Dnew Date();this._ignoreURI=3Dnew =
Array();this._ignoreURI["/shared-content/firebuglite/firebug.html"]=3D1;$=
options=3Ddocument.getElementsByTagName("meta");for($i=3D0;$i<$options.le=
ngth;$i++){if($options[$i].name!=3D"murlinstats"){continue}if($options[$i=
].content.substr(0,6)=3D=3D"ignore"){$ignorelist=3D$options[$i].content.s=
ubstr(7).split(",");for($x=3D0;$x<$ignorelist.length;$x++){this._ignoreUR=
I[$ignorelist[$x]]=3D1}}}this._addTrackVar=3Dfunction(C,B){C=3Descape(C);=
B=3Descape(B);this._trackvars[C]=3DB};this._clearTrackVars=3Dfunction(){t=
his._trackvars=3D[]};this._joinTrackVars=3Dfunction(){var C=3Dnew =
Array;for(var B in =
this._trackvars){C[C.length]=3D(B+"=3D"+this._trackvars[B])}return =
C.join("&")};this._addCookie=3Dfunction(G,C,B){var =
E=3DG+"=3D"+escape(C)+"; path=3D/; =
domain=3D."+this._domain+";";if(B>0){var F=3Dnew Date();var =
D=3DF.getTime();F.setTime((B*3600*1000)+D);E=3DE+" =
expires=3D"+F.toGMTString()+";"}document.cookie=3DE};this._getCookie=3Dfu=
nction(F){var B=3Ddocument.cookie;var D=3DB.split("; ");for(var =
E=3D0;E<D.length;E++){var C=3DD[E].split("=3D");if(C[0]=3D=3DF){return =
unescape(C[1])}}return""};this._sendTracker=3Dfunction(){var E=3Dnew =
Date();var =
D=3D"this._"+this._scheme+"_url";if(this._scheme=3D=3D"https"){var =
C=3Dthis._https_url}else{var =
C=3Dthis._http_url}C=3DC+"?"+this._joinTrackVars()+"&rt=3D"+E.getTime();v=
ar B=3Dnew =
Image(1,1);B.src=3DC}}TNStats_Tracker.prototype.setTracker=3Dfunction(B,A=
){this._http_url=3DB;this._https_url=3DB};TNStats_Tracker.prototype.ignor=
eURI=3Dfunction(B,A){if(!A){this._ignoreURI[B]=3D1}else{this._ignoreURI[A=
+"-"+B]=3D1}};TNStats_Tracker.prototype.pluginDetectRes=3Dfunction(){if(s=
creen){this._addTrackVar("tnms_rs",screen.width+"x"+screen.height+"x"+scr=
een.colorDepth)}};TNStats_Tracker.prototype.pluginDetectPageTitle=3Dfunct=
ion(){var A=3Dthis._getCookie("tnms_pdt");var =
B=3D"";if(document&&document.title){B=3Ddocument.title}if(!B.length){B=3D=
"(empty =
title)"}if(A){this._addTrackVar("tnms_pdt",A)}this._addTrackVar("tnms_dt"=
,B);this._addCookie("tnms_pdt",B,this._cookieTimeout)};TNStats_Tracker.pr=
ototype.pluginDetectVisitor=3Dfunction(){var G=3Dnew Date();var =
D=3D0;var F=3Dnew String(this._getCookie("tnms_vid"));var =
B=3Dthis._getCookie("tnms_vsst");var =
E=3Dthis._getCookie("tnms_vssl");var =
A=3Dthis._getCookie("tnms_vpuri");var =
C=3D0;if(!F.length){D=3D1;B=3DG.getTime()/1000;F+=3DG.getTime();if(window=
.screenX){F+=3DMath.abs(window.screenX)}else{if(window.screenLeft){F+=3DM=
ath.abs(window.screenLeft)}}if(window.screenX){F+=3DMath.abs(window.scree=
nY)}else{if(window.screenTop){F+=3DMath.abs(window.screenTop)}}if(documen=
t.body.clientWidth){F+=3Ddocument.body.clientWidth}else{if(window.innerWi=
dth){F+=3Dwindow.innerWidth}}if(document.body.clientHeight){F+=3Ddocument=
.body.clientHeight}else{F+=3Dwindow.innerHeight}F+=3DMath.floor(Math.rand=
om()*G.getTime())}else{if((!B)||(((G.getTime()/1000)-E)>this._sessionTime=
out)){D=3D2;B=3DG.getTime()/1000}}this._addCookie("tnms_vsst",Math.ceil(B=
));this._addCookie("tnms_vssl",Math.ceil((G.getTime()/1000)));this._addCo=
okie("tnms_vpuri",this._uri,this._cookieTimeout);this._addCookie("tnms_vi=
d",F,this._cookieTimeout);if(E){this._addTrackVar("tnms_vpuri",A);if(D){C=
=3D0}else{C=3D(G.getTime()/1000)-E}this._addTrackVar("tnms_vplen",Math.ce=
il(C))}this._addTrackVar("tnms_vt",D);this._addTrackVar("tnms_vid",F)};TN=
Stats_Tracker.prototype.pluginDetectFlash=3Dfunction(){var =
D=3Dfalse;if(navigator.plugins["Shockwave =
Flash"]&&navigator.plugins["Shockwave Flash"].description){var C=3Dnew =
String(navigator.plugins["Shockwave Flash"].description);var =
A=3DC.split(" ");D=3DA[2]}else{try{axo=3Dnew =
ActiveXObject("ShockwaveFlash.ShockwaveFlash.5");var C=3Dnew =
String(axo.GetVariable("$version"));var A=3DC.split(/[, =
]/);D=3DA[1]+"."+A[2]}catch(B){D=3Dfalse}}if(D){this._addTrackVar("tnms_f=
l",D)}};TNStats_Tracker.prototype.trackPageView=3Dfunction($passed_uri){v=
ar $uri=3Dnew String(document.location);var =
$ret=3D$uri.match(/^(http|https):\/\/([^\/]{1,})(.*)$/);this._clearTrackV=
ars();if($ret){this._uri=3D$ret[3];this._scheme=3D$ret[1]}if($passed_uri)=
{this._uri=3D$passed_uri}if(this._ignoreURI[this._uri]){return }for(var =
$x=3D0;$x<this._plugins.length;$x++){try{if(!this._ignoreURI[this._plugin=
s[$x]+"-"+this._uri]){eval("this.plugin"+this._plugins[$x]+"();")}}catch(=
$e){}}this._addTrackVar("tnms_do",this._domain);this._addTrackVar("tnms_u=
ri",this._uri);if($passed_uri){this._addTrackVar("tnms_ref",document.loca=
tion)}else{this._addTrackVar("tnms_ref",document.referrer)}this._sendTrac=
ker()};
------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/shared-content/adsys/creative.js

function adsys_getAdCount(nAdID)=0A=
{var sAllCookies=3Ddocument.cookie;var nAdCount=3D0;var =
sIndexString=3D"tnadsys_adcount_"+nAdID+"=3D";var =
nPos=3DsAllCookies.indexOf(sIndexString);if(nPos!=3D-1)=0A=
{var nStart=3DnPos+sIndexString.length;var =
nEnd=3DsAllCookies.indexOf(";",nStart);if(nEnd=3D=3D-1)=0A=
{nEnd=3DsAllCookies.length;}=0A=
var sDataString=3DsAllCookies.substring(nStart,nEnd);var =
aAdData=3DsDataString.split("&");nAdCount=3DparseInt(aAdData[0],10);if(is=
NaN(nAdCount))=0A=
{nAdCount=3D0;}}=0A=
return nAdCount;}=0A=
function adsys_hasReachedFreqCap(nAdID,nLimit)=0A=
{var nAdCount=3Dadsys_getAdCount(nAdID);if(nAdCount>=3DnLimit)=0A=
{return true;}=0A=
return false;}=0A=
function adsys_incrementAdView(nAdID,nMinutes)=0A=
{var sAllCookies=3Ddocument.cookie;var =
sIndexString=3D"tnadsys_adcount_"+nAdID+"=3D";var =
nPos=3DsAllCookies.indexOf(sIndexString);if(nPos=3D=3D-1)=0A=
{var expdate=3Dnew Date((new =
Date()).getTime()+nMinutes*60000);document.cookie=3DsIndexString+"1&"+esc=
ape(expdate.toGMTString())+"; expires=3D"+expdate.toGMTString();}=0A=
else=0A=
{var sCookieData=3DsAllCookies.substring(nPos+sIndexString.length);var =
aCookieData=3DsCookieData.split(";");var =
sDataString=3DaCookieData[0];var =
aData=3DsDataString.split("&");nAdCount=3DparseInt(aData[0],10)+1;documen=
t.cookie=3DsIndexString+nAdCount+"&"+aData[1]+"; =
expires=3D"+unescape(aData[1]);}}=0A=
function adsys_displayAd(sAdsURL,sDomain,aAdSet,aCampaigns)=0A=
{var adNumber=3Dnull;var adLink=3D"";var aAds=3Dnew Array();var =
sAdUniqueURL=3DsSubURL=3DsAdsURL;var sAdsBaseURL=3D""=0A=
var sFlashVars=3D""=0A=
var nTotalWeight=3D0;var aCampaignTotals=3Dnew Array();var =
nHighestCampaign=3D0;var nCampaignID=3D0;if(!document.adsys)=0A=
{document.adsys=3Dnew Array();}=0A=
for(var i=3D0;i<aAdSet.length;i++)=0A=
{var tempAry=3DaAdSet[i][1].split("-");var =
nAdId=3DtempAry[0];if(!document.adsys[nAdId])=0A=
{aAds[aAds.length]=3DaAdSet[i];}}=0A=
if(aAds.length=3D=3D0)=0A=
{return;}=0A=
else if(aAds.length=3D=3D1)=0A=
{adNumber=3D0;}=0A=
else=0A=
{aCampaignTotals[0]=3D0;for(var i=3D0;i<aAds.length;i++)=0A=
{nCampaignID=3DaAds[i][9];if(!aCampaignTotals[nCampaignID])=0A=
{aCampaignTotals[nCampaignID]=3D0;}=0A=
aAds[i][7]=3DaAds[i][7]*100;aCampaignTotals[nCampaignID]=3DaCampaignTotal=
s[nCampaignID]+aAds[i][7];if(aCampaignTotals[nCampaignID]>=3DaCampaignTot=
als[nHighestCampaign])=0A=
{nHighestCampaign=3DnCampaignID;}}=0A=
for(var i=3D0;i<aAds.length;i++)=0A=
{nCampaignID=3DaAds[i][9];nMultiplier=3DaCampaignTotals[nHighestCampaign]=
/aCampaignTotals[nCampaignID];nPercentage=3DaCampaigns[nCampaignID]/100;a=
Ads[i][7]=3DMath.ceil(aAds[i][7]*nMultiplier*nPercentage);aAds[i][8]=3DnT=
otalWeight;nTotalWeight+=3DaAds[i][7];}=0A=
randomWeight=3DMath.floor(Math.random()*nTotalWeight);for(var =
i=3D0;i<aAds.length;i++)=0A=
{if(randomWeight>=3DaAds[i][8])=0A=
{adNumber=3Di;}=0A=
else=0A=
{break;}}}=0A=
var temp=3DaAds[adNumber][1].split("-");var =
nAdId=3Dtemp[0];document.adsys[nAdId]=3D1;if(aAds[adNumber][11]&&(aAds[ad=
Number][11]>0))=0A=
{adsys_incrementAdView(nAdId,aAds[adNumber][11]);}=0A=
sAdsBaseURL=3D"/creative/"+sDomain+"/"+aAds[adNumber][0];sAdsBaseURL+=3D"=
/"+aAds[adNumber][1]+"."+aAds[adNumber][2];sAdUniqueURL+=3D"/"+Math.floor=
(Math.random()*100000000)+sAdsBaseURL;sAdClickURL=3D"/c"+Math.floor(Math.=
random()*100000000);sAdExtURL=3D"/e"+Math.floor(Math.random()*100000000);=
sAdsBaseExtURL=3D"/creative/"+sDomain+"/"+aAds[adNumber][0]+"/"+aAds[adNu=
mber][1]+".external";switch(aAds[adNumber][2])=0A=
{case"swf":if(aAds[adNumber][5][0]!=3D'')=0A=
{sSubURL+=3DsAdClickURL;sSubURL+=3D"/creative/"+sDomain+"/"+aAds[adNumber=
][6];sSubURL+=3D"/"+aAds[adNumber][1]+"."+aAds[adNumber][2];sFlashVars=3D=
"clickTAG=3D"+sSubURL+"%3Fr%3D"+aAds[adNumber][5][0];for(var =
x=3D1;x<aAds[adNumber][5].length;x++)=0A=
{sFlashVars+=3D"&clickTAG"+(x+1)+"=3D"+sSubURL+"%3Fr%3D"+aAds[adNumber][5=
][x];}=0A=
sAdUniqueURL+=3D"?"+sFlashVars;}=0A=
adLink=3D'<object classid=3D"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" =
';adLink+=3D'codebase=3D"http://download.macromedia.com/pub/shockwave/cab=
s/flash/swflash.cab#version=3D6,0,40,0" =
';adLink+=3D'width=3D"'+aAds[adNumber][3]+'" =
height=3D"'+aAds[adNumber][4];adLink+=3D'" =
name=3D"'+aAds[adNumber][1]+'" =
id=3D"'+aAds[adNumber][1]+'">';adLink+=3D'<param name=3D"play" =
value=3D"true">';adLink+=3D'<param name=3D"movie" =
value=3D"'+sAdUniqueURL+'" />';adLink+=3D'<param name=3D"quality" =
value=3D"high" />';adLink+=3D'<param name=3D"wmode" value=3D"opaque" =
/>';adLink+=3D'<param name=3D"FlashVars" value=3D"'+sFlashVars+'" =
/>';adLink+=3D'<embed src=3D"'+sAdUniqueURL+'" quality=3D"high" =
';adLink+=3D'FlashVars=3D"'+sFlashVars+'" ';adLink+=3D'wmode=3D"opaque" =
';adLink+=3D'width=3D"'+aAds[adNumber][3]+'" =
height=3D"'+aAds[adNumber][4];adLink+=3D'" =
name=3D"'+aAds[adNumber][1];adLink+=3D'" =
type=3D"application/x-shockwave-flash" =
pluginspage=3D"http://www.macromedia.com/go/getflashplayer">';adLink+=3D'=
</embed>';adLink+=3D'</object>';break;case"js":adLink=3D'<scr'+'ipt =
type=3D"text/javascript" =
src=3D"'+sAdUniqueURL+'">';adLink+=3D'</scr'+'ipt>';break;case"flv":if(do=
cument.usePlayer)=0A=
{var theSkin=3D"FlowPlayer.swf";var =
sClickLink=3D"";if(aAds[adNumber][12])=0A=
{var =
sMovie=3DsAdsURL+sAdExtURL+sAdsBaseExtURL+'?o=3D'+aAds[adNumber][12];sCli=
ckLink=3DsAdsURL+sAdClickURL+sAdsBaseExtURL+'?r=3D'+aAds[adNumber][5];}=0A=
else=0A=
{var =
sMovie=3DsAdUniqueURL;sClickLink=3DsAdsURL+sAdClickURL+sAdsBaseURL+'?r=3D=
'+aAds[adNumber][5];}=0A=
adLink+=3D'<object type=3D"application/x-shockwave-flash" =
id=3D"FlowPlayer" ';adLink+=3D'width=3D"'+aAds[adNumber][3]+'" =
height=3D"'+aAds[adNumber][4]+'" =
';adLink+=3D'data=3D"/shared-content/flowplayer/'+theSkin+'">';adLink+=3D=
'<param name=3D"allowScriptAccess" value=3D"always" =
/>';adLink+=3D'<param name=3D"movie" =
value=3D"/shared-content/flowplayer/'+theSkin+'" />';adLink+=3D'<param =
name=3D"quality" value=3D"high" />';adLink+=3D'<param name=3D"scaleMode" =
value=3D"showAll" />';adLink+=3D'<param name=3D"allowfullscreen" =
value=3D"true" />';adLink+=3D'<param name=3D"wmode" =
value=3D"transparent" />';adLink+=3D'<param name=3D"allowNetworking" =
value=3D"all" />';adLink+=3D'<param name=3D"flashvars" =
value=3D"config=3D{';if(aAds[adNumber][13]=3D=3D'1'){adLink+=3D'autoPlay:=
 true, autoBuffering: true, ';overlay=3D0;}else{adLink+=3D'autoPlay: =
false, autoBuffering: false, ';overlay=3D1;}=0A=
adLink+=3D'loop: false, ';adLink+=3D'baseURL: =
\'/shared-content/flowplayer\', ';adLink+=3D'fullScreenScriptURL: =
\'/shared-content/flowplayer/fullscreen.js\', =
';adLink+=3D'showLoopButton: false, ';adLink+=3D'showPlayListButtons: =
false, ';adLink+=3D'playList: =
[';if(overlay){if(aAds[adNumber][14]){adLink+=3D'{ overlayId: \'play\', =
url: \''+aAds[adNumber][14]+'\'},';}}=0A=
adLink+=3D'{ url: \''+sMovie+'\', type: \'flv\', linkUrl: =
\''+sClickLink+'\' }]}" />';adLink+=3D'</object>';}=0A=
else=0A=
{var sClickLink=3D"";if(aAds[adNumber][12])=0A=
{var =
sMovie=3DsAdsURL+sAdExtURL+sAdsBaseExtURL+'?o=3D'+aAds[adNumber][12];sCli=
ckLink=3DsAdsURL+sAdClickURL+sAdsBaseExtURL+'?r=3D'+aAds[adNumber][5];}=0A=
else=0A=
{var =
sMovie=3DsAdUniqueURL;sClickLink=3DsAdsURL+sAdClickURL+sAdsBaseURL+'?r=3D=
'+aAds[adNumber][5];}=0A=
adLink=3D'<scr'+'ipt =
type=3D"text/javascript">';adLink+=3D"document.embededAd =3D {itemUrl: =
'"+sMovie+"', itemLink: '"+sClickLink+"', preRoll: =
'"+aAds[adNumber][6]+"', itemType: 'flv'};\n";adLink+=3D'</scr'+'ipt>';}=0A=
break;default:if(!document.usePlayer&&aAds[adNumber][2]=3D=3D"jpg")=0A=
{var =
sClickLink=3D"";sClickLink=3DsAdsURL+sAdClickURL+sAdsBaseURL+'?r=3D'+aAds=
[adNumber][3];adLink=3D'<scr'+'ipt =
type=3D"text/javascript">';adLink+=3D"document.embededAd =3D {itemUrl: =
'"+sAdUniqueURL+"', itemLink: '"+sClickLink+"', preRoll: =
'"+aAds[adNumber][6]+"', itemType: 'jpg'};\n";adLink+=3D'</scr'+'ipt>';}=0A=
else=0A=
{if(aAds[adNumber][3]!=3D"")=0A=
{if(aAds[adNumber][3].substring(0,7)=3D=3D"mailto:")=0A=
{adLink=3D'<a href=3D"'+aAds[adNumber][3]+'">';}=0A=
else=0A=
{adLink=3D'<a =
href=3D"'+sAdsURL+sAdClickURL+sAdsBaseURL+'?r=3D'+aAds[adNumber][3]+'"';i=
f(aAds[adNumber][4]=3D=3D"1")=0A=
{adLink+=3D' target=3D"_blank"';}=0A=
adLink+=3D'>';}}=0A=
adLink+=3D'<img alt=3D"*" border=3D"0" src=3D"'+sAdUniqueURL+'" =
/>';if(aAds[adNumber][3]!=3D"")=0A=
{adLink+=3D'</a>';}}=0A=
break;}=0A=
document.write(adLink);}=0A=

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://adsys.townnews.com/global/capped.js

if (!document.adsys)=0A=
{=0A=
   document.adsys =3D new Array();=0A=
}=0A=
document.adsys[18707] =3D 1;=0A=
document.adsys[19101] =3D 1;=0A=
document.adsys[32755] =3D 1;=0A=
document.adsys[42420] =3D 1;=0A=
document.adsys[49410] =3D 1;=0A=
document.adsys[52197] =3D 1;=0A=
document.adsys[52198] =3D 1;=0A=
document.adsys[52206] =3D 1;=0A=
document.adsys[52209] =3D 1;=0A=
document.adsys[52922] =3D 1;=0A=
document.adsys[59920] =3D 1;=0A=
document.adsys[59932] =3D 1;=0A=
document.adsys[60394] =3D 1;=0A=
document.adsys[61737] =3D 1;=0A=
document.adsys[61802] =3D 1;=0A=
document.adsys[61918] =3D 1;=0A=
document.adsys[62399] =3D 1;=0A=
document.adsys[62987] =3D 1;=0A=
document.adsys[63657] =3D 1;=0A=
document.adsys[65281] =3D 1;=0A=
document.adsys[66866] =3D 1;=0A=
document.adsys[68112] =3D 1;=0A=
document.adsys[68919] =3D 1;=0A=
document.adsys[69259] =3D 1;=0A=
document.adsys[69498] =3D 1;=0A=
document.adsys[69672] =3D 1;=0A=
document.adsys[72211] =3D 1;=0A=
document.adsys[72284] =3D 1;=0A=
document.adsys[74397] =3D 1;=0A=
document.adsys[76312] =3D 1;=0A=
document.adsys[79832] =3D 1;=0A=
document.adsys[82934] =3D 1;=0A=
document.adsys[82966] =3D 1;=0A=
document.adsys[83190] =3D 1;=0A=
document.adsys[84804] =3D 1;=0A=
document.adsys[85332] =3D 1;=0A=
document.adsys[87989] =3D 1;=0A=
document.adsys[89012] =3D 1;=0A=
document.adsys[94061] =3D 1;=0A=
document.adsys[96892] =3D 1;=0A=
document.adsys[99011] =3D 1;=0A=
document.adsys[99546] =3D 1;=0A=
document.adsys[100743] =3D 1;=0A=
document.adsys[100756] =3D 1;=0A=
document.adsys[102235] =3D 1;=0A=
document.adsys[102286] =3D 1;=0A=
document.adsys[102345] =3D 1;=0A=
document.adsys[102413] =3D 1;=0A=
document.adsys[102450] =3D 1;=0A=
document.adsys[102768] =3D 1;=0A=
document.adsys[103026] =3D 1;=0A=
document.adsys[103420] =3D 1;=0A=
document.adsys[105054] =3D 1;=0A=
document.adsys[107163] =3D 1;=0A=
document.adsys[107411] =3D 1;=0A=
document.adsys[108115] =3D 1;=0A=
document.adsys[108365] =3D 1;=0A=
document.adsys[109130] =3D 1;=0A=
document.adsys[109265] =3D 1;=0A=
document.adsys[109290] =3D 1;=0A=
document.adsys[109303] =3D 1;=0A=
document.adsys[109304] =3D 1;=0A=
document.adsys[109383] =3D 1;=0A=
document.adsys[109592] =3D 1;=0A=
document.adsys[109643] =3D 1;=0A=
document.adsys[109908] =3D 1;=0A=
document.adsys[110295] =3D 1;=0A=
document.adsys[110400] =3D 1;=0A=
document.adsys[110951] =3D 1;=0A=
document.adsys[111710] =3D 1;=0A=
document.adsys[111772] =3D 1;=0A=
document.adsys[111909] =3D 1;=0A=
document.adsys[112065] =3D 1;=0A=
document.adsys[112117] =3D 1;=0A=
document.adsys[112254] =3D 1;=0A=
document.adsys[112255] =3D 1;=0A=
document.adsys[112560] =3D 1;=0A=
document.adsys[112879] =3D 1;=0A=
document.adsys[112941] =3D 1;=0A=
document.adsys[113088] =3D 1;=0A=
document.adsys[113235] =3D 1;=0A=
document.adsys[113400] =3D 1;=0A=
document.adsys[113634] =3D 1;=0A=
document.adsys[113863] =3D 1;=0A=
document.adsys[114260] =3D 1;=0A=
document.adsys[114464] =3D 1;=0A=
document.adsys[115085] =3D 1;=0A=
document.adsys[115344] =3D 1;=0A=
document.adsys[115420] =3D 1;=0A=
document.adsys[116241] =3D 1;=0A=
document.adsys[116585] =3D 1;=0A=
document.adsys[116854] =3D 1;=0A=
document.adsys[117107] =3D 1;=0A=
document.adsys[117109] =3D 1;=0A=
document.adsys[117303] =3D 1;=0A=
document.adsys[117304] =3D 1;=0A=
document.adsys[117330] =3D 1;=0A=
document.adsys[117331] =3D 1;=0A=
document.adsys[117776] =3D 1;=0A=
document.adsys[117778] =3D 1;=0A=
document.adsys[118074] =3D 1;=0A=
document.adsys[118969] =3D 1;=0A=
document.adsys[119060] =3D 1;=0A=
document.adsys[119066] =3D 1;=0A=
document.adsys[119225] =3D 1;=0A=
document.adsys[119228] =3D 1;=0A=
document.adsys[119229] =3D 1;=0A=
document.adsys[119232] =3D 1;=0A=
document.adsys[119290] =3D 1;=0A=
document.adsys[119803] =3D 1;=0A=
document.adsys[120055] =3D 1;=0A=
document.adsys[120195] =3D 1;=0A=
document.adsys[120339] =3D 1;=0A=
document.adsys[120349] =3D 1;=0A=
document.adsys[120369] =3D 1;=0A=
document.adsys[120700] =3D 1;=0A=
document.adsys[120854] =3D 1;=0A=
document.adsys[121020] =3D 1;=0A=
document.adsys[121147] =3D 1;=0A=
document.adsys[121324] =3D 1;=0A=
document.adsys[121552] =3D 1;=0A=
document.adsys[121686] =3D 1;=0A=
document.adsys[121923] =3D 1;=0A=
document.adsys[122050] =3D 1;=0A=
document.adsys[122053] =3D 1;=0A=
document.adsys[122111] =3D 1;=0A=
document.adsys[122132] =3D 1;=0A=
document.adsys[122398] =3D 1;=0A=
document.adsys[122421] =3D 1;=0A=
document.adsys[122614] =3D 1;=0A=
document.adsys[123767] =3D 1;=0A=
document.adsys[124225] =3D 1;=0A=
document.adsys[124388] =3D 1;=0A=
document.adsys[124627] =3D 1;=0A=
document.adsys[125331] =3D 1;=0A=
document.adsys[125690] =3D 1;=0A=
document.adsys[125691] =3D 1;=0A=
document.adsys[125719] =3D 1;=0A=
document.adsys[125753] =3D 1;=0A=
document.adsys[125796] =3D 1;=0A=
document.adsys[125810] =3D 1;=0A=
document.adsys[125816] =3D 1;=0A=
document.adsys[125857] =3D 1;=0A=
document.adsys[125871] =3D 1;=0A=
document.adsys[125872] =3D 1;=0A=
document.adsys[125875] =3D 1;=0A=
document.adsys[125876] =3D 1;=0A=
document.adsys[125877] =3D 1;=0A=
document.adsys[125878] =3D 1;=0A=
document.adsys[125879] =3D 1;=0A=
document.adsys[125880] =3D 1;=0A=
document.adsys[125881] =3D 1;=0A=
document.adsys[125882] =3D 1;=0A=
document.adsys[125883] =3D 1;=0A=
document.adsys[125884] =3D 1;=0A=
document.adsys[125894] =3D 1;=0A=
document.adsys[125895] =3D 1;=0A=
document.adsys[125896] =3D 1;=0A=
document.adsys[125897] =3D 1;=0A=
document.adsys[125899] =3D 1;=0A=
document.adsys[125900] =3D 1;=0A=
document.adsys[125901] =3D 1;=0A=
document.adsys[125999] =3D 1;=0A=
document.adsys[126076] =3D 1;=0A=
document.adsys[126087] =3D 1;=0A=
document.adsys[126349] =3D 1;=0A=
document.adsys[126373] =3D 1;=0A=
document.adsys[126378] =3D 1;=0A=
document.adsys[126489] =3D 1;=0A=
document.adsys[126977] =3D 1;=0A=
document.adsys[127026] =3D 1;=0A=
document.adsys[127054] =3D 1;=0A=
document.adsys[127462] =3D 1;=0A=
document.adsys[127679] =3D 1;=0A=
document.adsys[127849] =3D 1;=0A=
document.adsys[127876] =3D 1;=0A=
document.adsys[127991] =3D 1;=0A=
document.adsys[128027] =3D 1;=0A=
document.adsys[128029] =3D 1;=0A=
document.adsys[128170] =3D 1;=0A=
document.adsys[128174] =3D 1;=0A=
document.adsys[128267] =3D 1;=0A=
document.adsys[128286] =3D 1;=0A=
document.adsys[128522] =3D 1;=0A=
document.adsys[128758] =3D 1;=0A=
document.adsys[128799] =3D 1;=0A=
document.adsys[128830] =3D 1;=0A=
document.adsys[128835] =3D 1;=0A=
document.adsys[128886] =3D 1;=0A=
document.adsys[128905] =3D 1;=0A=
document.adsys[128974] =3D 1;=0A=
document.adsys[129037] =3D 1;=0A=
document.adsys[129040] =3D 1;=0A=
document.adsys[129119] =3D 1;=0A=
document.adsys[129152] =3D 1;=0A=
document.adsys[129170] =3D 1;=0A=
document.adsys[129271] =3D 1;=0A=
document.adsys[129277] =3D 1;=0A=
document.adsys[129279] =3D 1;=0A=
document.adsys[129344] =3D 1;=0A=
document.adsys[129373] =3D 1;=0A=
document.adsys[129475] =3D 1;=0A=
document.adsys[129661] =3D 1;=0A=
document.adsys[129692] =3D 1;=0A=
document.adsys[130162] =3D 1;=0A=
document.adsys[130215] =3D 1;=0A=
document.adsys[130311] =3D 1;=0A=
document.adsys[130513] =3D 1;=0A=
document.adsys[130516] =3D 1;=0A=
document.adsys[130619] =3D 1;=0A=
document.adsys[130629] =3D 1;=0A=
document.adsys[130659] =3D 1;=0A=
document.adsys[130769] =3D 1;=0A=
document.adsys[130776] =3D 1;=0A=
document.adsys[130896] =3D 1;=0A=
document.adsys[130905] =3D 1;=0A=
document.adsys[130925] =3D 1;=0A=
document.adsys[131144] =3D 1;=0A=
document.adsys[131345] =3D 1;=0A=
document.adsys[131417] =3D 1;=0A=
document.adsys[131485] =3D 1;=0A=
document.adsys[131495] =3D 1;=0A=
document.adsys[131511] =3D 1;=0A=
document.adsys[131520] =3D 1;=0A=
document.adsys[131533] =3D 1;=0A=
document.adsys[131657] =3D 1;=0A=
document.adsys[131663] =3D 1;=0A=
document.adsys[131671] =3D 1;=0A=
document.adsys[131790] =3D 1;=0A=
document.adsys[132387] =3D 1;=0A=
document.adsys[132536] =3D 1;=0A=
document.adsys[132553] =3D 1;=0A=
document.adsys[132652] =3D 1;=0A=
document.adsys[132663] =3D 1;=0A=
document.adsys[132873] =3D 1;=0A=
document.adsys[133103] =3D 1;=0A=
document.adsys[133205] =3D 1;=0A=
document.adsys[133476] =3D 1;=0A=
document.adsys[133488] =3D 1;=0A=
document.adsys[133490] =3D 1;=0A=
document.adsys[133682] =3D 1;=0A=
document.adsys[133683] =3D 1;=0A=
document.adsys[133752] =3D 1;=0A=
document.adsys[133955] =3D 1;=0A=
document.adsys[133957] =3D 1;=0A=
document.adsys[133991] =3D 1;=0A=
document.adsys[134032] =3D 1;=0A=
document.adsys[134044] =3D 1;=0A=
document.adsys[134047] =3D 1;=0A=
document.adsys[134050] =3D 1;=0A=
document.adsys[134403] =3D 1;=0A=
document.adsys[134533] =3D 1;=0A=
document.adsys[134614] =3D 1;=0A=
document.adsys[134679] =3D 1;=0A=
document.adsys[134687] =3D 1;=0A=
document.adsys[134967] =3D 1;=0A=
document.adsys[135370] =3D 1;=0A=
document.adsys[135404] =3D 1;=0A=
document.adsys[135466] =3D 1;=0A=
document.adsys[135472] =3D 1;=0A=
document.adsys[135600] =3D 1;=0A=
document.adsys[135675] =3D 1;=0A=
document.adsys[135752] =3D 1;=0A=
document.adsys[135754] =3D 1;=0A=
document.adsys[135768] =3D 1;=0A=
document.adsys[135824] =3D 1;=0A=
document.adsys[135825] =3D 1;=0A=
document.adsys[135830] =3D 1;=0A=
document.adsys[135834] =3D 1;=0A=
document.adsys[135836] =3D 1;=0A=
document.adsys[135837] =3D 1;=0A=
document.adsys[135839] =3D 1;=0A=
document.adsys[135840] =3D 1;=0A=
document.adsys[135841] =3D 1;=0A=
document.adsys[135843] =3D 1;=0A=
document.adsys[135844] =3D 1;=0A=
document.adsys[135845] =3D 1;=0A=
document.adsys[135847] =3D 1;=0A=
document.adsys[135848] =3D 1;=0A=
document.adsys[135849] =3D 1;=0A=
document.adsys[135850] =3D 1;=0A=
document.adsys[135851] =3D 1;=0A=
document.adsys[135889] =3D 1;=0A=
document.adsys[135997] =3D 1;=0A=
document.adsys[136099] =3D 1;=0A=
document.adsys[136129] =3D 1;=0A=
document.adsys[136175] =3D 1;=0A=
document.adsys[136440] =3D 1;=0A=
document.adsys[136457] =3D 1;=0A=
document.adsys[136637] =3D 1;=0A=
document.adsys[136664] =3D 1;=0A=
document.adsys[136686] =3D 1;=0A=
document.adsys[136882] =3D 1;=0A=
document.adsys[136919] =3D 1;=0A=
document.adsys[136985] =3D 1;=0A=
document.adsys[136993] =3D 1;=0A=
document.adsys[136994] =3D 1;=0A=
document.adsys[137029] =3D 1;=0A=
document.adsys[137064] =3D 1;=0A=
document.adsys[137103] =3D 1;=0A=
document.adsys[137128] =3D 1;=0A=
document.adsys[137279] =3D 1;=0A=
document.adsys[137301] =3D 1;=0A=
document.adsys[137337] =3D 1;=0A=
document.adsys[137386] =3D 1;=0A=
document.adsys[137455] =3D 1;=0A=
document.adsys[137456] =3D 1;=0A=
document.adsys[137477] =3D 1;=0A=
document.adsys[137609] =3D 1;=0A=
document.adsys[137610] =3D 1;=0A=
document.adsys[137611] =3D 1;=0A=
document.adsys[137620] =3D 1;=0A=
document.adsys[137621] =3D 1;=0A=
document.adsys[137729] =3D 1;=0A=
document.adsys[137954] =3D 1;=0A=
document.adsys[138002] =3D 1;=0A=
document.adsys[138010] =3D 1;=0A=
document.adsys[138330] =3D 1;=0A=
document.adsys[138335] =3D 1;=0A=
document.adsys[138336] =3D 1;=0A=
document.adsys[138337] =3D 1;=0A=
document.adsys[138345] =3D 1;=0A=
document.adsys[138347] =3D 1;=0A=
document.adsys[138349] =3D 1;=0A=
document.adsys[138379] =3D 1;=0A=
document.adsys[138386] =3D 1;=0A=
document.adsys[138490] =3D 1;=0A=
document.adsys[138592] =3D 1;=0A=
document.adsys[138602] =3D 1;=0A=
document.adsys[138694] =3D 1;=0A=
document.adsys[138704] =3D 1;=0A=
if (typeof adsys_displayStaticAds =3D=3D 'function') { =
adsys_displayStaticAds(); adsys_displayStaticAds =3D null; }
------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.kentuckynewera.com/shared-content/newsys/common/date.js

/**=0A=
* NewSys(TM) Date Javascript Library=0A=
*=0A=
* This library provides utility functions for calculating and=0A=
* displaying date information from the perspective of the end=0A=
* user, as opposed to when NewSys rendered a document.=0A=
*=0A=
* @author Patrick O'Lone <polone@townnews.com>=0A=
* @copyright TownNews.com (C) 2003-2004=0A=
* @version 1.6=0A=
*/=0A=
=0A=
/**=0A=
* Show today's date in a human readable format=0A=
*=0A=
* @param integer nID=0A=
* The unique ID that will determine "which" class will dynamically=0A=
* be updated. This is needed in case multiple instances occur.=0A=
*=0A=
* @access public=0A=
*/=0A=
function showCurrentDate( nID )=0A=
{=0A=
	// The textual name of days in the week=0A=
=0A=
	var rgDayNames =3D new Array( "Sunday", "Monday", "Tuesday",=0A=
		                        "Wednesday", "Thursday",=0A=
		                        "Friday", "Saturday" );=0A=
=0A=
    // The textual name of months of the year=0A=
=0A=
    var rgMonthNames =3D new Array( "January", "February", "March", =
"April",=0A=
		                          "May", "June", "July", "August", "September",=0A=
		                          "October", "November", "December");=0A=
    =0A=
	var objDate =3D new Date();=0A=
	var nYear =3D (objDate.getYear() < 200) ? objDate.getYear() + 1900 : =
objDate.getYear();=0A=
=0A=
    var szDate =3D  rgDayNames[objDate.getDay()];=0A=
	szDate +=3D ", " + rgMonthNames[objDate.getMonth()];=0A=
	szDate +=3D " " + objDate.getDate();=0A=
	szDate +=3D ", " + nYear;=0A=
=0A=
	document.write(szDate);=0A=
}=0A=
=0A=
/**=0A=
* Show today's current time, based on the end-user's location=0A=
*=0A=
* This feature performs a real-time clock calculation in browsers=0A=
* that support DHTML features. Every 60 seconds, the clock will=0A=
* automatically update the timer. The feature is supported in=0A=
* IE 4.0+ and Netscape 6.0+. Other browsers will render a static=0A=
* time value.=0A=
*=0A=
* @param integer nID=0A=
* The unique ID that will determine "which" class will dynamically=0A=
* be updated. This is needed in case multiple instances occur.=0A=
*=0A=
* @access public=0A=
*/=0A=
function showCurrentTime( nID )=0A=
{=0A=
    var objDate =3D new Date();=0A=
    var nHours =3D ((objDate.getHours() < 1) ? objDate.getHours()+12 : =
objDate.getHours());=0A=
    var nTimeout =3D 60;=0A=
	var ampm =3D ((objDate.getHours() < 1) ? 1 : 0);=0A=
	=0A=
    var szTime =3D "" + ((nHours >12) ? nHours -12 : nHours);=0A=
    szTime +=3D ((objDate.getMinutes() < 10) ? ":0" : ":") + =
objDate.getMinutes();=0A=
    if(ampm)=0A=
    {=0A=
    	     szTime +=3D " A.M.";=0A=
    	}=0A=
    	else=0A=
    	{=0A=
         szTime +=3D (nHours >=3D 12) ? " P.M." : " A.M.";=0A=
     }=0A=
=0A=
	document.write(szTime);=0A=
}=0A=

------=_NextPart_000_0000_01C8EC1D.78CAEA30
Content-Type: application/octet-stream
Content-Transfer-Encoding: quoted-printable
Content-Location: http://my.kentuckynewera.com/apis/scripts/remoteMgr.ashx

/*  Prototype JavaScript framework, version 1.6.0.2
 *  (c) 2005-2008 Sam Stephenson
 *
 *  Prototype is freely distributable under the terms of an MIT-style =
license.
 *  For details, see the Prototype web site: http://www.prototypejs.org/
 *
 =
*------------------------------------------------------------------------=
--*/

var Prototype =3D {
  Version: '1.6.0.2',

  Browser: {
    IE:     !!(window.attachEvent && !window.opera),
    Opera:  !!window.opera,
    WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1,
    Gecko:  navigator.userAgent.indexOf('Gecko') > -1 && =
navigator.userAgent.indexOf('KHTML') =3D=3D -1,
    MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/)
  },

  BrowserFeatures: {
    XPath: !!document.evaluate,
    ElementExtensions: !!window.HTMLElement,
    SpecificElementExtensions:
      document.createElement('div').__proto__ &&
      document.createElement('div').__proto__ !=3D=3D
        document.createElement('form').__proto__
  },

  ScriptFragment: '<script[^>]*>([\\S\\s]*?)<\/script>',
  JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/,

  emptyFunction: function() { },
  K: function(x) { return x }
};

if (Prototype.Browser.MobileSafari)
  Prototype.BrowserFeatures.SpecificElementExtensions =3D false;


/* Based on Alex Arnell's inheritance implementation. */
var Class =3D {
  create: function() {
    var parent =3D null, properties =3D $A(arguments);
    if (Object.isFunction(properties[0]))
      parent =3D properties.shift();

    function klass() {
      this.initialize.apply(this, arguments);
    }

    Object.extend(klass, Class.Methods);
    klass.superclass =3D parent;
    klass.subclasses =3D [];

    if (parent) {
      var subclass =3D function() { };
      subclass.prototype =3D parent.prototype;
      klass.prototype =3D new subclass;
      parent.subclasses.push(klass);
    }

    for (var i =3D 0; i < properties.length; i++)
      klass.addMethods(properties[i]);

    if (!klass.prototype.initialize)
      klass.prototype.initialize =3D Prototype.emptyFunction;

    klass.prototype.constructor =3D klass;

    return klass;
  }
};

Class.Methods =3D {
  addMethods: function(source) {
    var ancestor   =3D this.superclass && this.superclass.prototype;
    var properties =3D Object.keys(source);

    if (!Object.keys({ toString: true }).length)
      properties.push("toString", "valueOf");

    for (var i =3D 0, length =3D properties.length; i < length; i++) {
      var property =3D properties[i], value =3D source[property];
      if (ancestor && Object.isFunction(value) &&
          value.argumentNames().first() =3D=3D "$super") {
        var method =3D value, value =3D Object.extend((function(m) {
          return function() { return ancestor[m].apply(this, arguments) =
};
        })(property).wrap(method), {
          valueOf:  function() { return method },
          toString: function() { return method.toString() }
        });
      }
      this.prototype[property] =3D value;
    }

    return this;
  }
};

var Abstract =3D { };

Object.extend =3D function(destination, source) {
  for (var property in source)
    destination[property] =3D source[property];
  return destination;
};

Object.extend(Object, {
  inspect: function(object) {
    try {
      if (Object.isUndefined(object)) return 'undefined';
      if (object =3D=3D=3D null) return 'null';
      return object.inspect ? object.inspect() : String(object);
    } catch (e) {
      if (e instanceof RangeError) return '...';
      throw e;
    }
  },

  toJSON: function(object) {
    var type =3D typeof object;
    switch (type) {
      case 'undefined':
      case 'function':
      case 'unknown': return;
      case 'boolean': return object.toString();
    }

    if (object =3D=3D=3D null) return 'null';
    if (object.toJSON) return object.toJSON();
    if (Object.isElement(object)) return;

    var results =3D [];
    for (var property in object) {
      var value =3D Object.toJSON(object[property]);
      if (!Object.isUndefined(value))
        results.push(property.toJSON() + ': ' + value);
    }

    return '{' + results.join(', ') + '}';
  },

  toQueryString: function(object) {
    return $H(object).toQueryString();
  },

  toHTML: function(object) {
    return object && object.toHTML ? object.toHTML() : =
String.interpret(object);
  },

  keys: function(object) {
    var keys =3D [];
    for (var property in object)
      keys.push(property);
    return keys;
  },

  values: function(object) {
    var values =3D [];
    for (var property in object)
      values.push(object[property]);
    return values;
  },

  clone: function(object) {
    return Object.extend({ }, object);
  },

  isElement: function(object) {
    return object && object.nodeType =3D=3D 1;
  },

  isArray: function(object) {
    return object !=3D null && typeof object =3D=3D "object" &&
      'splice' in object && 'join' in object;
  },

  isHash: function(object) {
    return object instanceof Hash;
  },

  isFunction: function(object) {
    return typeof object =3D=3D "function";
  },

  isString: function(object) {
    return typeof object =3D=3D "string";
  },

  isNumber: function(object) {
    return typeof object =3D=3D "number";
  },

  isUndefined: function(object) {
    return typeof object =3D=3D "undefined";
  }
});

Object.extend(Function.prototype, {
  argumentNames: function() {
    var names =3D =
this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").inv=
oke("strip");
    return names.length =3D=3D 1 && !names[0] ? [] : names;
  },

  bind: function() {
    if (arguments.length < 2 && Object.isUndefined(arguments[0])) return =
this;
    var __method =3D this, args =3D $A(arguments), object =3D =
args.shift();
    return function() {
      return __method.apply(object, args.concat($A(arguments)));
    }
  },

  bindAsEventListener: function() {
    var __method =3D this, args =3D $A(arguments), object =3D =
args.shift();
    return function(event) {
      return __method.apply(object, [event || =
window.event].concat(args));
    }
  },

  curry: function() {
    if (!arguments.length) return this;
    var __method =3D this, args =3D $A(arguments);
    return function() {
      return __method.apply(this, args.concat($A(arguments)));
    }
  },

  delay: function() {
    var __method =3D this, args =3D $A(arguments), timeout =3D =
args.shift() * 1000;
    return window.setTimeout(function() {
      return __method.apply(__method, args);
    }, timeout);
  },

  wrap: function(wrapper) {
    var __method =3D this;
    return function() {
      return wrapper.apply(this, =
[__method.bind(this)].concat($A(arguments)));
    }
  },

  methodize: function() {
    if (this._methodized) return this._methodized;
    var __method =3D this;
    return this._methodized =3D function() {
      return __method.apply(null, [this].concat($A(arguments)));
    };
  }
});

Function.prototype.defer =3D Function.prototype.delay.curry(0.01);

Date.prototype.toJSON =3D function() {
  return '"' + this.getUTCFullYear() + '-' +
    (this.getUTCMonth() + 1).toPaddedString(2) + '-' +
    this.getUTCDate().toPaddedString(2) + 'T' +
    this.getUTCHours().toPaddedString(2) + ':' +
    this.getUTCMinutes().toPaddedString(2) + ':' +
    this.getUTCSeconds().toPaddedString(2) + 'Z"';
};

var Try =3D {
  these: function() {
    var returnValue;

    for (var i =3D 0, length =3D arguments.length; i < length; i++) {
      var lambda =3D arguments[i];
      try {
        returnValue =3D lambda();
        break;
      } catch (e) { }
    }

    return returnValue;
  }
};

RegExp.prototype.match =3D RegExp.prototype.test;

RegExp.escape =3D function(str) {
  return String(str).replace(/([.*+?^=3D!:${}()|[\]\/\\])/g, '\\$1');
};

/*-----------------------------------------------------------------------=
---*/

var PeriodicalExecuter =3D Class.create({
  initialize: function(callback, frequency) {
    this.callback =3D callback;
    this.frequency =3D frequency;
    this.currentlyExecuting =3D false;

    this.registerCallback();
  },

  registerCallback: function() {
    this.timer =3D setInterval(this.onTimerEvent.bind(this), =
this.frequency * 1000);
  },

  execute: function() {
    this.callback(this);
  },

  stop: function() {
    if (!this.timer) return;
    clearInterval(this.timer);
    this.timer =3D null;
  },

  onTimerEvent: function() {
    if (!this.currentlyExecuting) {
      try {
        this.currentlyExecuting =3D true;
        this.execute();
      } finally {
        this.currentlyExecuting =3D false;
      }
    }
  }
});
Object.extend(String, {
  interpret: function(value) {
    return value =3D=3D null ? '' : String(value);
  },
  specialChar: {
    '\b': '\\b',
    '\t': '\\t',
    '\n': '\\n',
    '\f': '\\f',
    '\r': '\\r',
    '\\': '\\\\'
  }
});

Object.extend(String.prototype, {
  gsub: function(pattern, replacement) {
    var result =3D '', source =3D this, match;
    replacement =3D arguments.callee.prepareReplacement(replacement);

    while (source.length > 0) {
      if (match =3D source.match(pattern)) {
        result +=3D source.slice(0, match.index);
        result +=3D String.interpret(replacement(match));
        source  =3D source.slice(match.index + match[0].length);
      } else {
        result +=3D source, source =3D '';
      }
    }
    return result;
  },

  sub: function(pattern, replacement, count) {
    replacement =3D this.gsub.prepareReplacement(replacement);
    count =3D Object.isUndefined(count) ? 1 : count;

    return this.gsub(pattern, function(match) {
      if (--count < 0) return match[0];
      return replacement(match);
    });
  },

  scan: function(pattern, iterator) {
    this.gsub(pattern, iterator);
    return String(this);
  },

  truncate: function(length, truncation) {
    length =3D length || 30;
    truncation =3D Object.isUndefined(truncation) ? '...' : truncation;
    return this.length > length ?
      this.slice(0, length - truncation.length) + truncation : =
String(this);
  },

  strip: function() {
    return this.replace(/^\s+/, '').replace(/\s+$/, '');
  },

  stripTags: function() {
    return this.replace(/<\/?[^>]+>/gi, '');
  },

  stripScripts: function() {
    return this.replace(new RegExp(Prototype.ScriptFragment, 'img'), =
'');
  },

  extractScripts: function() {
    var matchAll =3D new RegExp(Prototype.ScriptFragment, 'img');
    var matchOne =3D new RegExp(Prototype.ScriptFragment, 'im');
    return (this.match(matchAll) || []).map(function(scriptTag) {
      return (scriptTag.match(matchOne) || ['', ''])[1];
    });
  },

  evalScripts: function() {
    return this.extractScripts().map(function(script) { return =
eval(script) });
  },

  escapeHTML: function() {
    var self =3D arguments.callee;
    self.text.data =3D this;
    return self.div.innerHTML;
  },

  unescapeHTML: function() {
    var div =3D new Element('div');
    div.innerHTML =3D this.stripTags();
    return div.childNodes[0] ? (div.childNodes.length > 1 ?
      $A(div.childNodes).inject('', function(memo, node) { return =
memo+node.nodeValue }) :
      div.childNodes[0].nodeValue) : '';
  },

  toQueryParams: function(separator) {
    var match =3D this.strip().match(/([^?#]*)(#.*)?$/);
    if (!match) return { };

    return match[1].split(separator || '&').inject({ }, function(hash, =
pair) {
      if ((pair =3D pair.split('=3D'))[0]) {
        var key =3D decodeURIComponent(pair.shift());
        var value =3D pair.length > 1 ? pair.join('=3D') : pair[0];
        if (value !=3D undefined) value =3D decodeURIComponent(value);

        if (key in hash) {
          if (!Object.isArray(hash[key])) hash[key] =3D [hash[key]];
          hash[key].push(value);
        }
        else hash[key] =3D value;
      }
      return hash;
    });
  },

  toArray: function() {
    return this.split('');
  },

  succ: function() {
    return this.slice(0, this.length - 1) +
      String.fromCharCode(this.charCodeAt(this.length - 1) + 1);
  },

  times: function(count) {
    return count < 1 ? '' : new Array(count + 1).join(this);
  },

  camelize: function() {
    var parts =3D this.split('-'), len =3D parts.length;
    if (len =3D=3D 1) return parts[0];

    var camelized =3D this.charAt(0) =3D=3D '-'
      ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1)
      : parts[0];

    for (var i =3D 1; i < len; i++)
      camelized +=3D parts[i].charAt(0).toUpperCase() + =
parts[i].substring(1);

    return camelized;
  },

  capitalize: function() {
    return this.charAt(0).toUpperCase() + =
this.substring(1).toLowerCase();
  },

  underscore: function() {
    return this.gsub(/::/, =
'/').gsub(/([A-Z]+)([A-Z][a-z])/,'#{1}_#{2}').gsub(/([a-z\d])([A-Z])/,'#{=
1}_#{2}').gsub(/-/,'_').toLowerCase();
  },

  dasherize: function() {
    return this.gsub(/_/,'-');
  },

  inspect: function(useDoubleQuotes) {
    var escapedString =3D this.gsub(/[\x00-\x1f\\]/, function(match) {
      var character =3D String.specialChar[match[0]];
      return character ? character : '\\u00' + =
match[0].charCodeAt().toPaddedString(2, 16);
    });
    if (useDoubleQuotes) return '"' + escapedString.replace(/"/g, '\\"') =
+ '"';
    return "'" + escapedString.replace(/'/g, '\\\'') + "'";
  },

  toJSON: function() {
    return this.inspect(true);
  },

  unfilterJSON: function(filter) {
    return this.sub(filter || Prototype.JSONFilter, '#{1}');
  },

  isJSON: function() {
    var str =3D this;
    if (str.blank()) return false;
    str =3D this.replace(/\\./g, '@').replace(/"[^"\\\n\r]*"/g, '');
    return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str);
  },

  evalJSON: function(sanitize) {
    var json =3D this.unfilterJSON();
    try {
      if (!sanitize || json.isJSON()) return eval('(' + json + ')');
    } catch (e) { }
    throw new SyntaxError('Badly formed JSON string: ' + =
this.inspect());
  },

  include: function(pattern) {
    return this.indexOf(pattern) > -1;
  },

  startsWith: function(pattern) {
    return this.indexOf(pattern) =3D=3D=3D 0;
  },

  endsWith: function(pattern) {
    var d =3D this.length - pattern.length;
    return d >=3D 0 && this.lastIndexOf(pattern) =3D=3D=3D d;
  },

  empty: function() {
    return this =3D=3D '';
  },

  blank: function() {
    return /^\s*$/.test(this);
  },

  interpolate: function(object, pattern) {
    return new Template(this, pattern).evaluate(object);
  }
});

if (Prototype.Browser.WebKit || Prototype.Browser.IE) =
Object.extend(String.prototype, {
  escapeHTML: function() {
    return =
this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
  },
  unescapeHTML: function() {
    return =
this.replace(/&amp;/g,'&').replace(/&lt;/g,'<').replace(/&gt;/g,'>');
  }
});

String.prototype.gsub.prepareReplacement =3D function(replacement) {
  if (Object.isFunction(replacement)) return replacement;
  var template =3D new Template(replacement);
  return function(match) { return template.evaluate(match) };
};

String.prototype.parseQuery =3D String.prototype.toQueryParams;

Object.extend(String.prototype.escapeHTML, {
  div:  document.createElement('div'),
  text: document.createTextNode('')
});

with (String.prototype.escapeHTML) div.appendChild(text);

var Template =3D Class.create({
  initialize: function(template, pattern) {
    this.template =3D template.toString();
    this.pattern =3D pattern || Template.Pattern;
  },

  evaluate: function(object) {
    if (Object.isFunction(object.toTemplateReplacements))
      object =3D object.toTemplateReplacements();

    return this.template.gsub(this.pattern, function(match) {
      if (object =3D=3D null) return '';

      var before =3D match[1] || '';
      if (before =3D=3D '\\') return match[2];

      var ctx =3D object, expr =3D match[3];
      var pattern =3D /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/;
      match =3D pattern.exec(expr);
      if (match =3D=3D null) return before;

      while (match !=3D null) {
        var comp =3D match[1].startsWith('[') ? match[2].gsub('\\\\]', =
']') : match[1];
        ctx =3D ctx[comp];
        if (null =3D=3D ctx || '' =3D=3D match[3]) break;
        expr =3D expr.substring('[' =3D=3D match[3] ? match[1].length : =
match[0].length);
        match =3D pattern.exec(expr);
      }

      return before + String.interpret(ctx);
    });
  }
});
Template.Pattern =3D /(^|.|\r|\n)(#\{(.*?)\})/;

var $break =3D { };

var Enumerable =3D {
  each: function(iterator, context) {
    var index =3D 0;
    iterator =3D iterator.bind(context);
    try {
      this._each(function(value) {
        iterator(value, index++);
      });
    } catch (e) {
      if (e !=3D $break) throw e;
    }
    return this;
  },

  eachSlice: function(number, iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var index =3D -number, slices =3D [], array =3D this.toArray();
    while ((index +=3D number) < array.length)
      slices.push(array.slice(index, index+number));
    return slices.collect(iterator, context);
  },

  all: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var result =3D true;
    this.each(function(value, index) {
      result =3D result && !!iterator(value, index);
      if (!result) throw $break;
    });
    return result;
  },

  any: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var result =3D false;
    this.each(function(value, index) {
      if (result =3D !!iterator(value, index))
        throw $break;
    });
    return result;
  },

  collect: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var results =3D [];
    this.each(function(value, index) {
      results.push(iterator(value, index));
    });
    return results;
  },

  detect: function(iterator, context) {
    iterator =3D iterator.bind(context);
    var result;
    this.each(function(value, index) {
      if (iterator(value, index)) {
        result =3D value;
        throw $break;
      }
    });
    return result;
  },

  findAll: function(iterator, context) {
    iterator =3D iterator.bind(context);
    var results =3D [];
    this.each(function(value, index) {
      if (iterator(value, index))
        results.push(value);
    });
    return results;
  },

  grep: function(filter, iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var results =3D [];

    if (Object.isString(filter))
      filter =3D new RegExp(filter);

    this.each(function(value, index) {
      if (filter.match(value))
        results.push(iterator(value, index));
    });
    return results;
  },

  include: function(object) {
    if (Object.isFunction(this.indexOf))
      if (this.indexOf(object) !=3D -1) return true;

    var found =3D false;
    this.each(function(value) {
      if (value =3D=3D object) {
        found =3D true;
        throw $break;
      }
    });
    return found;
  },

  inGroupsOf: function(number, fillWith) {
    fillWith =3D Object.isUndefined(fillWith) ? null : fillWith;
    return this.eachSlice(number, function(slice) {
      while(slice.length < number) slice.push(fillWith);
      return slice;
    });
  },

  inject: function(memo, iterator, context) {
    iterator =3D iterator.bind(context);
    this.each(function(value, index) {
      memo =3D iterator(memo, value, index);
    });
    return memo;
  },

  invoke: function(method) {
    var args =3D $A(arguments).slice(1);
    return this.map(function(value) {
      return value[method].apply(value, args);
    });
  },

  max: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var result;
    this.each(function(value, index) {
      value =3D iterator(value, index);
      if (result =3D=3D null || value >=3D result)
        result =3D value;
    });
    return result;
  },

  min: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var result;
    this.each(function(value, index) {
      value =3D iterator(value, index);
      if (result =3D=3D null || value < result)
        result =3D value;
    });
    return result;
  },

  partition: function(iterator, context) {
    iterator =3D iterator ? iterator.bind(context) : Prototype.K;
    var trues =3D [], falses =3D [];
    this.each(function(value, index) {
      (iterator(value, index) ?
        trues : falses).push(value);
    });
    return [trues, falses];
  },

  pluck: function(property) {
    var results =3D [];
    this.each(function(value) {
      results.push(value[property]);
    });
    return results;
  },

  reject: function(iterator, context) {
    iterator =3D iterator.bind(context);
    var results =3D [];
    this.each(function(value, index) {
      if (!iterator(value, index))
        results.push(value);
    });
    return results;
  },

  sortBy: function(iterator, context) {
    iterator =3D iterator.bind(context);
    return this.map(function(value, index) {
      return {value: value, criteria: iterator(value, index)};
    }).sort(function(left, right) {
      var a =3D left.criteria, b =3D right.criteria;
      return a < b ? -1 : a > b ? 1 : 0;
    }).pluck('value');
  },

  toArray: function() {
    return this.map();
  },

  zip: function() {
    var iterator =3D Prototype.K, args =3D $A(arguments);
    if (Object.isFunction(args.last()))
      iterator =3D args.pop();

    var collections =3D [this].concat(args).map($A);
    return this.map(function(value, index) {
      return iterator(collections.pluck(index));
    });
  },

  size: function() {
    return this.toArray().length;
  },

  inspect: function() {
    return '#<Enumerable:' + this.toArray().inspect() + '>';
  }
};

Object.extend(Enumerable, {
  map:     Enumerable.collect,
  find:    Enumerable.detect,
  select:  Enumerable.findAll,
  filter:  Enumerable.findAll,
  member:  Enumerable.include,
  entries: Enumerable.toArray,
  every:   Enumerable.all,
  some:    Enumerable.any
});
function $A(iterable) {
  if (!iterable) return [];
  if (iterable.toArray) return iterable.toArray();
  var length =3D iterable.length || 0, results =3D new Array(length);
  while (length--) results[length] =3D iterable[length];
  return results;
}

if (Prototype.Browser.WebKit) {
  $A =3D function(iterable) {
    if (!iterable) return [];
    if (!(Object.isFunction(iterable) && iterable =3D=3D '[object =
NodeList]') &&
        iterable.toArray) return iterable.toArray();
    var length =3D iterable.length || 0, results =3D new Array(length);
    while (length--) results[length] =3D iterable[length];
    return results;
  };
}

Array.from =3D $A;

Object.extend(Array.prototype, Enumerable);

if (!Array.prototype._reverse) Array.prototype._reverse =3D =
Array.prototype.reverse;

Object.extend(Array.prototype, {
  _each: function(iterator) {
    for (var i =3D 0, length =3D this.length; i < length; i++)
      iterator(this[i]);
  },

  clear: function() {
    this.length =3D 0;
    return this;
  },

  first: function() {
    return this[0];
  },

  last: function() {
    return this[this.length - 1];
  },

  compact: function() {
    return this.select(function(value) {
      return value !=3D null;
    });
  },

  flatten: function() {
    return this.inject([], function(array, value) {
      return array.concat(Object.isArray(value) ?
        value.flatten() : [value]);
    });
  },

  without: function() {
    var values =3D $A(arguments);
    return this.select(function(value) {
      return !values.include(value);
    });
  },

  reverse: function(inline) {
    return (inline !=3D=3D false ? this : this.toArray())._reverse();
  },

  reduce: function() {
    return this.length > 1 ? this : this[0];
  },

  uniq: function(sorted) {
    return this.inject([], function(array, value, index) {
      if (0 =3D=3D index || (sorted ? array.last() !=3D value : =
!array.include(value)))
        array.push(value);
      return array;
    });
  },

  intersect: function(array) {
    return this.uniq().findAll(function(item) {
      return array.detect(function(value) { return item =3D=3D=3D value =
});
    });
  },

  clone: function() {
    return [].concat(this);
  },

  size: function() {
    return this.length;
  },

  inspect: function() {
    return '[' + this.map(Object.inspect).join(', ') + ']';
  },

  toJSON: function() {
    var results =3D [];
    this.each(function(object) {
      var value =3D Object.toJSON(object);
      if (!Object.isUndefined(value)) results.push(value);
    });
    return '[' + results.join(', ') + ']';
  }
});

// use native browser JS 1.6 implementation if available
if (Object.isFunction(Array.prototype.forEach))
  Array.prototype._each =3D Array.prototype.forEach;

if (!Array.prototype.indexOf) Array.prototype.indexOf =3D function(item, =
i) {
  i || (i =3D 0);
  var length =3D this.length;
  if (i < 0) i =3D length + i;
  for (; i < length; i++)
    if (this[i] =3D=3D=3D item) return i;
  return -1;
};

if (!Array.prototype.lastIndexOf) Array.prototype.lastIndexOf =3D =
function(item, i) {
  i =3D isNaN(i) ? this.length : (i < 0 ? this.length + i : i) + 1;
  var n =3D this.slice(0, i).reverse().indexOf(item);
  return (n < 0) ? n : i - n - 1;
};

Array.prototype.toArray =3D Array.prototype.clone;

function $w(string) {
  if (!Object.isString(string)) return [];
  string =3D string.strip();
  return string ? string.split(/\s+/) : [];
}

if (Prototype.Browser.Opera){
  Array.prototype.concat =3D function() {
    var array =3D [];
    for (var i =3D 0, length =3D this.length; i < length; i++) =
array.push(this[i]);
    for (var i =3D 0, length =3D arguments.length; i < length; i++) {
      if (Object.isArray(arguments[i])) {
        for (var j =3D 0, arrayLength =3D arguments[i].length; j < =
arrayLength; j++)
          array.push(arguments[i][j]);
      } else {
        array.push(arguments[i]);
      }
    }
    return array;
  };
}
Object.extend(Number.prototype, {
  toColorPart: function() {
    return this.toPaddedString(2, 16);
  },

  succ: function() {
    return this + 1;
  },

  times: function(iterator) {
    $R(0, this, true).each(iterator);
    return this;
  },

  toPaddedString: function(length, radix) {
    var string =3D this.toString(radix || 10);
    return '0'.times(length - string.length) + string;
  },

  toJSON: function() {
    return isFinite(this) ? this.toString() : 'null';
  }
});

$w('abs round ceil floor').each(function(method){
  Number.prototype[method] =3D Math[method].methodize();
});
function $H(object) {
  return new Hash(object);
};

var Hash =3D Class.create(Enumerable, (function() {

  function toQueryPair(key, value) {
    if (Object.isUndefined(value)) return key;
    return key + '=3D' + encodeURIComponent(String.interpret(value));
  }

  return {
    initialize: function(object) {
      this._object =3D Object.isHash(object) ? object.toObject() : =
Object.clone(object);
    },

    _each: function(iterator) {
      for (var key in this._object) {
        var value =3D this._object[key], pair =3D [key, value];
        pair.key =3D key;
        pair.value =3D value;
        iterator(pair);
      }
    },

    set: function(key, value) {
      return this._object[key] =3D value;
    },

    get: function(key) {
      return this._object[key];
    },

    unset: function(key) {
      var value =3D this._object[key];
      delete this._object[key];
      return value;
    },

    toObject: function() {
      return Object.clone(this._object);
    },

    keys: function() {
      return this.pluck('key');
    },

    values: function() {
      return this.pluck('value');
    },

    index: function(value) {
      var match =3D this.detect(function(pair) {
        return pair.value =3D=3D=3D value;
      });
      return match && match.key;
    },

    merge: function(object) {
      return this.clone().update(object);
    },

    update: function(object) {
      return new Hash(object).inject(this, function(result, pair) {
        result.set(pair.key, pair.value);
        return result;
      });
    },

    toQueryString: function() {
      return this.map(function(pair) {
        var key =3D encodeURIComponent(pair.key), values =3D pair.value;

        if (values && typeof values =3D=3D 'object') {
          if (Object.isArray(values))
            return values.map(toQueryPair.curry(key)).join('&');
        }
        return toQueryPair(key, values);
      }).join('&');
    },

    inspect: function() {
      return '#<Hash:{' + this.map(function(pair) {
        return pair.map(Object.inspect).join(': ');
      }).join(', ') + '}>';
    },

    toJSON: function() {
      return Object.toJSON(this.toObject());
    },

    clone: function() {
      return new Hash(this);
    }
  }
})());

Hash.prototype.toTemplateReplacements =3D Hash.prototype.toObject;
Hash.from =3D $H;
var ObjectRange =3D Class.create(Enumerable, {
  initialize: function(start, end, exclusive) {
    this.start =3D start;
    this.end =3D end;
    this.exclusive =3D exclusive;
  },

  _each: function(iterator) {
    var value =3D this.start;
    while (this.include(value)) {
      iterator(value);
      value =3D value.succ();
    }
  },

  include: function(value) {
    if (value < this.start)
      return false;
    if (this.exclusive)
      return value < this.end;
    return value <=3D this.end;
  }
});

var $R =3D function(start, end, exclusive) {
  return new ObjectRange(start, end, exclusive);
};

var Ajax =3D {
  getTransport: function() {
    return Try.these(
      function() {return new XMLHttpRequest()},
      function() {return new ActiveXObject('Msxml2.XMLHTTP')},
      function() {return new ActiveXObject('Microsoft.XMLHTTP')}
    ) || false;
  },

  activeRequestCount: 0
};

Ajax.Responders =3D {
  responders: [],

  _each: function(iterator) {
    this.responders._each(iterator);
  },

  register: function(responder) {
    if (!this.include(responder))
      this.responders.push(responder);
  },

  unregister: function(responder) {
    this.responders =3D this.responders.without(responder);
  },

  dispatch: function(callback, request, transport, json) {
    this.each(function(responder) {
      if (Object.isFunction(responder[callback])) {
        try {
          responder[callback].apply(responder, [request, transport, =
json]);
        } catch (e) { }
      }
    });
  }
};

Object.extend(Ajax.Responders, Enumerable);

Ajax.Responders.register({
  onCreate:   function() { Ajax.activeRequestCount++ },
  onComplete: function() { Ajax.activeRequestCount-- }
});

Ajax.Base =3D Class.create({
  initialize: function(options) {
    this.options =3D {
      method:       'post',
      asynchronous: true,
      contentType:  'application/x-www-form-urlencoded',
      encoding:     'UTF-8',
      parameters:   '',
      evalJSON:     true,
      evalJS:       true
    };
    Object.extend(this.options, options || { });

    this.options.method =3D this.options.method.toLowerCase();

    if (Object.isString(this.options.parameters))
      this.options.parameters =3D =
this.options.parameters.toQueryParams();
    else if (Object.isHash(this.options.parameters))
      this.options.parameters =3D this.options.parameters.toObject();
  }
});

Ajax.Request =3D Class.create(Ajax.Base, {
  _complete: false,

  initialize: function($super, url, options) {
    $super(options);
    this.transport =3D Ajax.getTransport();
    this.request(url);
  },

  request: function(url) {
    this.url =3D url;
    this.method =3D this.options.method;
    var params =3D Object.clone(this.options.parameters);

    if (!['get', 'post'].include(this.method)) {
      // simulate other verbs over post
      params['_method'] =3D this.method;
      this.method =3D 'post';
    }

    this.parameters =3D params;

    if (params =3D Object.toQueryString(params)) {
      // when GET, append parameters to URL
      if (this.method =3D=3D 'get')
        this.url +=3D (this.url.include('?') ? '&' : '?') + params;
      else if (/Konqueror|Safari|KHTML/.test(navigator.userAgent))
        params +=3D '&_=3D';
    }

    try {
      var response =3D new Ajax.Response(this);
      if (this.options.onCreate) this.options.onCreate(response);
      Ajax.Responders.dispatch('onCreate', this, response);

      this.transport.open(this.method.toUpperCase(), this.url,
        this.options.asynchronous);

      if (this.options.asynchronous) =
this.respondToReadyState.bind(this).defer(1);

      this.transport.onreadystatechange =3D =
this.onStateChange.bind(this);
      this.setRequestHeaders();

      this.body =3D this.method =3D=3D 'post' ? (this.options.postBody =
|| params) : null;
      this.transport.send(this.body);

      /* Force Firefox to handle ready state 4 for synchronous requests =
*/
      if (!this.options.asynchronous && this.transport.overrideMimeType)
        this.onStateChange();

    }
    catch (e) {
      this.dispatchException(e);
    }
  },

  onStateChange: function() {
    var readyState =3D this.transport.readyState;
    if (readyState > 1 && !((readyState =3D=3D 4) && this._complete))
      this.respondToReadyState(this.transport.readyState);
  },

  setRequestHeaders: function() {
    var headers =3D {
      'X-Requested-With': 'XMLHttpRequest',
      'X-Prototype-Version': Prototype.Version,
      'Accept': 'text/javascript, text/html, application/xml, text/xml, =
*/*'
    };

    if (this.method =3D=3D 'post') {
      headers['Content-type'] =3D this.options.contentType +
        (this.options.encoding ? '; charset=3D' + this.options.encoding =
: '');

      /* Force "Connection: close" for older Mozilla browsers to work
       * around a bug where XMLHttpRequest sends an incorrect
       * Content-length header. See Mozilla Bugzilla #246651.
       */
      if (this.transport.overrideMimeType &&
          (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0,2005])[1] < =
2005)
            headers['Connection'] =3D 'close';
    }

    // user-defined headers
    if (typeof this.options.requestHeaders =3D=3D 'object') {
      var extras =3D this.options.requestHeaders;

      if (Object.isFunction(extras.push))
        for (var i =3D 0, length =3D extras.length; i < length; i +=3D =
2)
          headers[extras[i]] =3D extras[i+1];
      else
        $H(extras).each(function(pair) { headers[pair.key] =3D =
pair.value });
    }

    for (var name in headers)
      this.transport.setRequestHeader(name, headers[name]);
  },

  success: function() {
    var status =3D this.getStatus();
    return !status || (status >=3D 200 && status < 300);
  },

  getStatus: function() {
    try {
      return this.transport.status || 0;
    } catch (e) { return 0 }
  },

  respondToReadyState: function(readyState) {
    var state =3D Ajax.Request.Events[readyState], response =3D new =
Ajax.Response(this);

    if (state =3D=3D 'Complete') {
      try {
        this._complete =3D true;
        (this.options['on' + response.status]
         || this.options['on' + (this.success() ? 'Success' : =
'Failure')]
         || Prototype.emptyFunction)(response, response.headerJSON);
      } catch (e) {
        this.dispatchException(e);
      }

      var contentType =3D response.getHeader('Content-type');
      if (this.options.evalJS =3D=3D 'force'
          || (this.options.evalJS && this.isSameOrigin() && contentType
          && =
contentType.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s=
*$/i)))
        this.evalResponse();
    }

    try {
      (this.options['on' + state] || Prototype.emptyFunction)(response, =
response.headerJSON);
      Ajax.Responders.dispatch('on' + state, this, response, =
response.headerJSON);
    } catch (e) {
      this.dispatchException(e);
    }

    if (state =3D=3D 'Complete') {
      // avoid memory leak in MSIE: clean up
      this.transport.onreadystatechange =3D Prototype.emptyFunction;
    }
  },

  isSameOrigin: function() {
    var m =3D this.url.match(/^\s*https?:\/\/[^\/]*/);
    return !m || (m[0] =3D=3D =
'#{protocol}//#{domain}#{port}'.interpolate({
      protocol: location.protocol,
      domain: document.domain,
      port: location.port ? ':' + location.port : ''
    }));
  },

  getHeader: function(name) {
    try {
      return this.transport.getResponseHeader(name) || null;
    } catch (e) { return null }
  },

  evalResponse: function() {
    try {
      return eval((this.transport.responseText || '').unfilterJSON());
    } catch (e) {
      this.dispatchException(e);
    }
  },

  dispatchException: function(exception) {
    (this.options.onException || Prototype.emptyFunction)(this, =
exception);
    Ajax.Responders.dispatch('onException', this, exception);
  }
});

Ajax.Request.Events =3D
  ['Uninitialized', 'Loading', 'Loaded', 'Interactive', 'Complete'];

Ajax.Response =3D Class.create({
  initialize: function(request){
    this.request =3D request;
    var transport  =3D this.transport  =3D request.transport,
        readyState =3D this.readyState =3D transport.readyState;

    if((readyState > 2 && !Prototype.Browser.IE) || readyState =3D=3D 4) =
{
      this.status       =3D this.getStatus();
      this.statusText   =3D this.getStatusText();
      this.responseText =3D String.interpret(transport.responseText);
      this.headerJSON   =3D this._getHeaderJSON();
    }

    if(readyState =3D=3D 4) {
      var xml =3D transport.responseXML;
      this.responseXML  =3D Object.isUndefined(xml) ? null : xml;
      this.responseJSON =3D this._getResponseJSON();
    }
  },

  status:      0,
  statusText: '',

  getStatus: Ajax.Request.prototype.getStatus,

  getStatusText: function() {
    try {
      return this.transport.statusText || '';
    } catch (e) { return '' }
  },

  getHeader: Ajax.Request.prototype.getHeader,

  getAllHeaders: function() {
    try {
      return this.getAllResponseHeaders();
    } catch (e) { return null }
  },

  getResponseHeader: function(name) {
    return this.transport.getResponseHeader(name);
  },

  getAllResponseHeaders: function() {
    return this.transport.getAllResponseHeaders();
  },

  _getHeaderJSON: function() {
    var json =3D this.getHeader('X-JSON');
    if (!json) return null;
    json =3D decodeURIComponent(escape(json));
    try {
      return json.evalJSON(this.request.options.sanitizeJSON ||
        !this.request.isSameOrigin());
    } catch (e) {
      this.request.dispatchException(e);
    }
  },

  _getResponseJSON: function() {
    var options =3D this.request.options;
    if (!options.evalJSON || (options.evalJSON !=3D 'force' &&
      !(this.getHeader('Content-type') || =
'').include('application/json')) ||
        this.responseText.blank())
          return null;
    try {
      return this.responseText.evalJSON(options.sanitizeJSON ||
        !this.request.isSameOrigin());
    } catch (e) {
      this.request.dispatchException(e);
    }
  }
});

Ajax.Updater =3D Class.create(Ajax.Request, {
  initialize: function($super, container, url, options) {
    this.container =3D {
      success: (container.success || container),
      failure: (container.failure || (container.success ? null : =
container))
    };

    options =3D Object.clone(options);
    var onComplete =3D options.onComplete;
    options.onComplete =3D (function(response, json) {
      this.updateContent(response.responseText);
      if (Object.isFunction(onComplete)) onComplete(response, json);
    }).bind(this);

    $super(url, options);
  },

  updateContent: function(responseText) {
    var receiver =3D this.container[this.success() ? 'success' : =
'failure'],
        options =3D this.options;

    if (!options.evalScripts) responseText =3D =
responseText.stripScripts();

    if (receiver =3D $(receiver)) {
      if (options.insertion) {
        if (Object.isString(options.insertion)) {
          var insertion =3D { }; insertion[options.insertion] =3D =
responseText;
          receiver.insert(insertion);
        }
        else options.insertion(receiver, responseText);
      }
      else receiver.update(responseText);
    }
  }
});

Ajax.PeriodicalUpdater =3D Class.create(Ajax.Base, {
  initialize: function($super, container, url, options) {
    $super(options);
    this.onComplete =3D this.options.onComplete;

    this.frequency =3D (this.options.frequency || 2);
    this.decay =3D (this.options.decay || 1);

    this.updater =3D { };
    this.container =3D container;
    this.url =3D url;

    this.start();
  },

  start: function() {
    this.options.onComplete =3D this.updateComplete.bind(this);
    this.onTimerEvent();
  },

  stop: function() {
    this.updater.options.onComplete =3D undefined;
    clearTimeout(this.timer);
    (this.onComplete || Prototype.emptyFunction).apply(this, arguments);
  },

  updateComplete: function(response) {
    if (this.options.decay) {
      this.decay =3D (response.responseText =3D=3D this.lastText ?
        this.decay * this.options.decay : 1);

      this.lastText =3D response.responseText;
    }
    this.timer =3D this.onTimerEvent.bind(this).delay(this.decay * =
this.frequency);
  },

  onTimerEvent: function() {
    this.updater =3D new Ajax.Updater(this.container, this.url, =
this.options);
  }
});
function $(element) {
  if (arguments.length > 1) {
    for (var i =3D 0, elements =3D [], length =3D arguments.length; i < =
length; i++)
      elements.push($(arguments[i]));
    return elements;
  }
  if (Object.isString(element))
    element =3D document.getElementById(element);
  return Element.extend(element);
}

if (Prototype.BrowserFeatures.XPath) {
  document._getElementsByXPath =3D function(expression, parentElement) {
    var results =3D [];
    var query =3D document.evaluate(expression, $(parentElement) || =
document,
      null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
    for (var i =3D 0, length =3D query.snapshotLength; i < length; i++)
      results.push(Element.extend(query.snapshotItem(i)));
    return results;
  };
}

/*-----------------------------------------------------------------------=
---*/

if (!window.Node) var Node =3D { };

if (!Node.ELEMENT_NODE) {
  // DOM level 2 ECMAScript Language Binding
  Object.extend(Node, {
    ELEMENT_NODE: 1,
    ATTRIBUTE_NODE: 2,
    TEXT_NODE: 3,
    CDATA_SECTION_NODE: 4,
    ENTITY_REFERENCE_NODE: 5,
    ENTITY_NODE: 6,
    PROCESSING_INSTRUCTION_NODE: 7,
    COMMENT_NODE: 8,
    DOCUMENT_NODE: 9,
    DOCUMENT_TYPE_NODE: 10,
    DOCUMENT_FRAGMENT_NODE: 11,
    NOTATION_NODE: 12
  });
}

(function() {
  var element =3D this.Element;
  this.Element =3D function(tagName, attributes) {
    attributes =3D attributes || { };
    tagName =3D tagName.toLowerCase();
    var cache =3D Element.cache;
    if (Prototype.Browser.IE && attributes.name) {
      tagName =3D '<' + tagName + ' name=3D"' + attributes.name + '">';
      delete attributes.name;
      return Element.writeAttribute(document.createElement(tagName), =
attributes);
    }
    if (!cache[tagName]) cache[tagName] =3D =
Element.extend(document.createElement(tagName));
    return Element.writeAttribute(cache[tagName].cloneNode(false), =
attributes);
  };
  Object.extend(this.Element, element || { });
}).call(window);

Element.cache =3D { };

Element.Methods =3D {
  visible: function(element) {
    return $(element).style.display !=3D 'none';
  },

  toggle: function(element) {
    element =3D $(element);
    Element[Element.visible(element) ? 'hide' : 'show'](element);
    return element;
  },

  hide: function(element) {
    $(element).style.display =3D 'none';
    return element;
  },

  show: function(element) {
    $(element).style.display =3D '';
    return element;
  },

  remove: function(element) {
    element =3D $(element);
    element.parentNode.removeChild(element);
    return element;
  },

  update: function(element, content) {
    element =3D $(element);
    if (content && content.toElement) content =3D content.toElement();
    if (Object.isElement(content)) return =
element.update().insert(content);
    content =3D Object.toHTML(content);
    element.innerHTML =3D content.stripScripts();
    content.evalScripts.bind(content).defer();
    return element;
  },

  replace: function(element, content) {
    element =3D $(element);
    if (content && content.toElement) content =3D content.toElement();
    else if (!Object.isElement(content)) {
      content =3D Object.toHTML(content);
      var range =3D element.ownerDocument.createRange();
      range.selectNode(element);
      content.evalScripts.bind(content).defer();
      content =3D =
range.createContextualFragment(content.stripScripts());
    }
    element.parentNode.replaceChild(content, element);
    return element;
  },

  insert: function(element, insertions) {
    element =3D $(element);

    if (Object.isString(insertions) || Object.isNumber(insertions) ||
        Object.isElement(insertions) || (insertions && =
(insertions.toElement || insertions.toHTML)))
          insertions =3D {bottom:insertions};

    var content, insert, tagName, childNodes;

    for (var position in insertions) {
      content  =3D insertions[position];
      position =3D position.toLowerCase();
      insert =3D Element._insertionTranslations[position];

      if (content && content.toElement) content =3D content.toElement();
      if (Object.isElement(content)) {
        insert(element, content);
        continue;
      }

      content =3D Object.toHTML(content);

      tagName =3D ((position =3D=3D 'before' || position =3D=3D 'after')
        ? element.parentNode : element).tagName.toUpperCase();

      childNodes =3D Element._getContentFromAnonymousElement(tagName, =
content.stripScripts());

      if (position =3D=3D 'top' || position =3D=3D 'after') =
childNodes.reverse();
      childNodes.each(insert.curry(element));

      content.evalScripts.bind(content).defer();
    }

    return element;
  },

  wrap: function(element, wrapper, attributes) {
    element =3D $(element);
    if (Object.isElement(wrapper))
      $(wrapper).writeAttribute(attributes || { });
    else if (Object.isString(wrapper)) wrapper =3D new Element(wrapper, =
attributes);
    else wrapper =3D new Element('div', wrapper);
    if (element.parentNode)
      element.parentNode.replaceChild(wrapper, element);
    wrapper.appendChild(element);
    return wrapper;
  },

  inspect: function(element) {
    element =3D $(element);
    var result =3D '<' + element.tagName.toLowerCase();
    $H({'id': 'id', 'className': 'class'}).each(function(pair) {
      var property =3D pair.first(), attribute =3D pair.last();
      var value =3D (element[property] || '').toString();
      if (value) result +=3D ' ' + attribute + '=3D' + =
value.inspect(true);
    });
    return result + '>';
  },

  recursivelyCollect: function(element, property) {
    element =3D $(element);
    var elements =3D [];
    while (element =3D element[property])
      if (element.nodeType =3D=3D 1)
        elements.push(Element.extend(element));
    return elements;
  },

  ancestors: function(element) {
    return $(element).recursivelyCollect('parentNode');
  },

  descendants: function(element) {
    return $(element).select("*");
  },

  firstDescendant: function(element) {
    element =3D $(element).firstChild;
    while (element && element.nodeType !=3D 1) element =3D =
element.nextSibling;
    return $(element);
  },

  immediateDescendants: function(element) {
    if (!(element =3D $(element).firstChild)) return [];
    while (element && element.nodeType !=3D 1) element =3D =
element.nextSibling;
    if (element) return [element].concat($(element).nextSiblings());
    return [];
  },

  previousSiblings: function(element) {
    return $(element).recursivelyCollect('previousSibling');
  },

  nextSiblings: function(element) {
    return $(element).recursivelyCollect('nextSibling');
  },

  siblings: function(element) {
    element =3D $(element);
    return =
element.previousSiblings().reverse().concat(element.nextSiblings());
  },

  match: function(element, selector) {
    if (Object.isString(selector))
      selector =3D new Selector(selector);
    return selector.match($(element));
  },

  up: function(element, expression, index) {
    element =3D $(element);
    if (arguments.length =3D=3D 1) return $(element.parentNode);
    var ancestors =3D element.ancestors();
    return Object.isNumber(expression) ? ancestors[expression] :
      Selector.findElement(ancestors, expression, index);
  },

  down: function(element, expression, index) {
    element =3D $(element);
    if (arguments.length =3D=3D 1) return element.firstDescendant();
    return Object.isNumber(expression) ? =
element.descendants()[expression] :
      element.select(expression)[index || 0];
  },

  previous: function(element, expression, index) {
    element =3D $(element);
    if (arguments.length =3D=3D 1) return =
$(Selector.handlers.previousElementSibling(element));
    var previousSiblings =3D element.previousSiblings();
    return Object.isNumber(expression) ? previousSiblings[expression] :
      Selector.findElement(previousSiblings, expression, index);
  },

  next: function(element, expression, index) {
    element =3D $(element);
    if (arguments.length =3D=3D 1) return =
$(Selector.handlers.nextElementSibling(element));
    var nextSiblings =3D element.nextSiblings();
    return Object.isNumber(expression) ? nextSiblings[expression] :
      Selector.findElement(nextSiblings, expression, index);
  },

  select: function() {
    var args =3D $A(arguments), element =3D $(args.shift());
    return Selector.findChildElements(element, args);
  },

  adjacent: function() {
    var args =3D $A(arguments), element =3D $(args.shift());
    return Selector.findChildElements(element.parentNode, =
args).without(element);
  },

  identify: function(element) {
    element =3D $(element);
    var id =3D element.readAttribute('id'), self =3D arguments.callee;
    if (id) return id;
    do { id =3D 'anonymous_element_' + self.counter++ } while ($(id));
    element.writeAttribute('id', id);
    return id;
  },

  readAttribute: function(element, name) {
    element =3D $(element);
    if (Prototype.Browser.IE) {
      var t =3D Element._attributeTranslations.read;
      if (t.values[name]) return t.values[name](element, name);
      if (t.names[name]) name =3D t.names[name];
      if (name.include(':')) {
        return (!element.attributes || !element.attributes[name]) ? null =
:
         element.attributes[name].value;
      }
    }
    return element.getAttribute(name);
  },

  writeAttribute: function(element, name, value) {
    element =3D $(element);
    var attributes =3D { }, t =3D Element._attributeTranslations.write;

    if (typeof name =3D=3D 'object') attributes =3D name;
    else attributes[name] =3D Object.isUndefined(value) ? true : value;

    for (var attr in attributes) {
      name =3D t.names[attr] || attr;
      value =3D attributes[attr];
      if (t.values[attr]) name =3D t.values[attr](element, value);
      if (value =3D=3D=3D false || value =3D=3D=3D null)
        element.removeAttribute(name);
      else if (value =3D=3D=3D true)
        element.setAttribute(name, name);
      else element.setAttribute(name, value);
    }
    return element;
  },

  getHeight: function(element) {
    return $(element).getDimensions().height;
  },

  getWidth: function(element) {
    return $(element).getDimensions().width;
  },

  classNames: function(element) {
    return new Element.ClassNames(element);
  },

  hasClassName: function(element, className) {
    if (!(element =3D $(element))) return;
    var elementClassName =3D element.className;
    return (elementClassName.length > 0 && (elementClassName =3D=3D =
className ||
      new RegExp("(^|\\s)" + className + =
"(\\s|$)").test(elementClassName)));
  },

  addClassName: function(element, className) {
    if (!(element =3D $(element))) return;
    if (!element.hasClassName(className))
      element.className +=3D (element.className ? ' ' : '') + className;
    return element;
  },

  removeClassName: function(element, className) {
    if (!(element =3D $(element))) return;
    element.className =3D element.className.replace(
      new RegExp("(^|\\s+)" + className + "(\\s+|$)"), ' ').strip();
    return element;
  },

  toggleClassName: function(element, className) {
    if (!(element =3D $(element))) return;
    return element[element.hasClassName(className) ?
      'removeClassName' : 'addClassName'](className);
  },

  // removes whitespace-only text node children
  cleanWhitespace: function(element) {
    element =3D $(element);
    var node =3D element.firstChild;
    while (node) {
      var nextNode =3D node.nextSibling;
      if (node.nodeType =3D=3D 3 && !/\S/.test(node.nodeValue))
        element.removeChild(node);
      node =3D nextNode;
    }
    return element;
  },

  empty: function(element) {
    return $(element).innerHTML.blank();
  },

  descendantOf: function(element, ancestor) {
    element =3D $(element), ancestor =3D $(ancestor);
    var originalAncestor =3D ancestor;

    if (element.compareDocumentPosition)
      return (element.compareDocumentPosition(ancestor) & 8) =3D=3D=3D =
8;

    if (element.sourceIndex && !Prototype.Browser.Opera) {
      var e =3D element.sourceIndex, a =3D ancestor.sourceIndex,
       nextAncestor =3D ancestor.nextSibling;
      if (!nextAncestor) {
        do { ancestor =3D ancestor.parentNode; }
        while (!(nextAncestor =3D ancestor.nextSibling) && =
ancestor.parentNode);
      }
      if (nextAncestor && nextAncestor.sourceIndex)
       return (e > a && e < nextAncestor.sourceIndex);
    }

    while (element =3D element.parentNode)
      if (element =3D=3D originalAncestor) return true;
    return false;
  },

  scrollTo: function(element) {
    element =3D $(element);
    var pos =3D element.cumulativeOffset();
    window.scrollTo(pos[0], pos[1]);
    return element;
  },

  getStyle: function(element, style) {
    element =3D $(element);
    style =3D style =3D=3D 'float' ? 'cssFloat' : style.camelize();
    var value =3D element.style[style];
    if (!value) {
      var css =3D document.defaultView.getComputedStyle(element, null);
      value =3D css ? css[style] : null;
    }
    if (style =3D=3D 'opacity') return value ? parseFloat(value) : 1.0;
    return value =3D=3D 'auto' ? null : value;
  },

  getOpacity: function(element) {
    return $(element).getStyle('opacity');
  },

  setStyle: function(element, styles) {
    element =3D $(element);
    var elementStyle =3D element.style, match;
    if (Object.isString(styles)) {
      element.style.cssText +=3D ';' + styles;
      return styles.include('opacity') ?
        element.setOpacity(styles.match(/opacity:\s*(\d?\.?\d*)/)[1]) : =
element;
    }
    for (var property in styles)
      if (property =3D=3D 'opacity') =
element.setOpacity(styles[property]);
      else
        elementStyle[(property =3D=3D 'float' || property =3D=3D =
'cssFloat') ?
          (Object.isUndefined(elementStyle.styleFloat) ? 'cssFloat' : =
'styleFloat') :
            property] =3D styles[property];

    return element;
  },

  setOpacity: function(element, value) {
    element =3D $(element);
    element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? =
'' :
      (value < 0.00001) ? 0 : value;
    return element;
  },

  getDimensions: function(element) {
    element =3D $(element);
    var display =3D $(element).getStyle('display');
    if (display !=3D 'none' && display !=3D null) // Safari bug
      return {width: element.offsetWidth, height: element.offsetHeight};

    // All *Width and *Height properties give 0 on elements with display =
none,
    // so enable the element temporarily
    var els =3D element.style;
    var originalVisibility =3D els.visibility;
    var originalPosition =3D els.position;
    var originalDisplay =3D els.display;
    els.visibility =3D 'hidden';
    els.position =3D 'absolute';
    els.display =3D 'block';
    var originalWidth =3D element.clientWidth;
    var originalHeight =3D element.clientHeight;
    els.display =3D originalDisplay;
    els.position =3D originalPosition;
    els.visibility =3D originalVisibility;
    return {width: originalWidth, height: originalHeight};
  },

  makePositioned: function(element) {
    element =3D $(element);
    var pos =3D Element.getStyle(element, 'position');
    if (pos =3D=3D 'static' || !pos) {
      element._madePositioned =3D true;
      element.style.position =3D 'relative';
      // Opera returns the offset relative to the positioning context, =
when an
      // element is position relative but top and left have not been =
defined
      if (window.opera) {
        element.style.top =3D 0;
        element.style.left =3D 0;
      }
    }
    return element;
  },

  undoPositioned: function(element) {
    element =3D $(element);
    if (element._madePositioned) {
      element._madePositioned =3D undefined;
      element.style.position =3D
        element.style.top =3D
        element.style.left =3D
        element.style.bottom =3D
        element.style.right =3D '';
    }
    return element;
  },

  makeClipping: function(element) {
    element =3D $(element);
    if (element._overflow) return element;
    element._overflow =3D Element.getStyle(element, 'overflow') || =
'auto';
    if (element._overflow !=3D=3D 'hidden')
      element.style.overflow =3D 'hidden';
    return element;
  },

  undoClipping: function(element) {
    element =3D $(element);
    if (!element._overflow) return element;
    element.style.overflow =3D element._overflow =3D=3D 'auto' ? '' : =
element._overflow;
    element._overflow =3D null;
    return element;
  },

  cumulativeOffset: function(element) {
    var valueT =3D 0, valueL =3D 0;
    do {
      valueT +=3D element.offsetTop  || 0;
      valueL +=3D element.offsetLeft || 0;
      element =3D element.offsetParent;
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  positionedOffset: function(element) {
    var valueT =3D 0, valueL =3D 0;
    do {
      valueT +=3D element.offsetTop  || 0;
      valueL +=3D element.offsetLeft || 0;
      element =3D element.offsetParent;
      if (element) {
        if (element.tagName =3D=3D 'BODY') break;
        var p =3D Element.getStyle(element, 'position');
        if (p !=3D=3D 'static') break;
      }
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  absolutize: function(element) {
    element =3D $(element);
    if (element.getStyle('position') =3D=3D 'absolute') return;
    // Position.prepare(); // To be done manually by Scripty when it =
needs it.

    var offsets =3D element.positionedOffset();
    var top     =3D offsets[1];
    var left    =3D offsets[0];
    var width   =3D element.clientWidth;
    var height  =3D element.clientHeight;

    element._originalLeft   =3D left - parseFloat(element.style.left  || =
0);
    element._originalTop    =3D top  - parseFloat(element.style.top || =
0);
    element._originalWidth  =3D element.style.width;
    element._originalHeight =3D element.style.height;

    element.style.position =3D 'absolute';
    element.style.top    =3D top + 'px';
    element.style.left   =3D left + 'px';
    element.style.width  =3D width + 'px';
    element.style.height =3D height + 'px';
    return element;
  },

  relativize: function(element) {
    element =3D $(element);
    if (element.getStyle('position') =3D=3D 'relative') return;
    // Position.prepare(); // To be done manually by Scripty when it =
needs it.

    element.style.position =3D 'relative';
    var top  =3D parseFloat(element.style.top  || 0) - =
(element._originalTop || 0);
    var left =3D parseFloat(element.style.left || 0) - =
(element._originalLeft || 0);

    element.style.top    =3D top + 'px';
    element.style.left   =3D left + 'px';
    element.style.height =3D element._originalHeight;
    element.style.width  =3D element._originalWidth;
    return element;
  },

  cumulativeScrollOffset: function(element) {
    var valueT =3D 0, valueL =3D 0;
    do {
      valueT +=3D element.scrollTop  || 0;
      valueL +=3D element.scrollLeft || 0;
      element =3D element.parentNode;
    } while (element);
    return Element._returnOffset(valueL, valueT);
  },

  getOffsetParent: function(element) {
    if (element.offsetParent) return $(element.offsetParent);
    if (element =3D=3D document.body) return $(element);

    while ((element =3D element.parentNode) && element !=3D =
document.body)
      if (Element.getStyle(element, 'position') !=3D 'static')
        return $(element);

    return $(document.body);
  },

  viewportOffset: function(forElement) {
    var valueT =3D 0, valueL =3D 0;

    var element =3D forElement;
    do {
      valueT +=3D element.offsetTop  || 0;
      valueL +=3D element.offsetLeft || 0;

      // Safari fix
      if (element.offsetParent =3D=3D document.body &&
        Element.getStyle(element, 'position') =3D=3D 'absolute') break;

    } while (element =3D element.offsetParent);

    element =3D forElement;
    do {
      if (!Prototype.Browser.Opera || element.tagName =3D=3D 'BODY') {
        valueT -=3D element.scrollTop  || 0;
        valueL -=3D element.scrollLeft || 0;
      }
    } while (element =3D element.parentNode);

    return Element._returnOffset(valueL, valueT);
  },

  clonePosition: function(element, source) {
    var options =3D Object.extend({
      setLeft:    true,
      setTop:     true,
      setWidth:   true,
      setHeight:  true,
      offsetTop:  0,
      offsetLeft: 0
    }, arguments[2] || { });

    // find page position of source
    source =3D $(source);
    var p =3D source.viewportOffset();

    // find coordinate system to use
    element =3D $(element);
    var delta =3D [0, 0];
    var parent =3D null;
    // delta [0,0] will do fine with position: fixed elements,
    // position:absolute needs offsetParent deltas
    if (Element.getStyle(element, 'position') =3D=3D 'absolute') {
      parent =3D element.getOffsetParent();
      delta =3D parent.viewportOffset();
    }

    // correct by body offsets (fixes Safari)
    if (parent =3D=3D document.body) {
      delta[0] -=3D document.body.offsetLeft;
      delta[1] -=3D document.body.offsetTop;
    }

    // set position
    if (options.setLeft)   element.style.left  =3D (p[0] - delta[0] + =
options.offsetLeft) + 'px';
    if (options.setTop)    element.style.top   =3D (p[1] - delta[1] + =
options.offsetTop) + 'px';
    if (options.setWidth)  element.style.width =3D source.offsetWidth + =
'px';
    if (options.setHeight) element.style.height =3D source.offsetHeight =
+ 'px';
    return element;
  }
};

Element.Methods.identify.counter =3D 1;

Object.extend(Element.Methods, {
  getElementsBySelector: Element.Methods.select,
  childElements: Element.Methods.immediateDescendants
});

Element._attributeTranslations =3D {
  write: {
    names: {
      className: 'class',
      htmlFor:   'for'
    },
    values: { }
  }
};

if (Prototype.Browser.Opera) {
  Element.Methods.getStyle =3D Element.Methods.getStyle.wrap(
    function(proceed, element, style) {
      switch (style) {
        case 'left': case 'top': case 'right': case 'bottom':
          if (proceed(element, 'position') =3D=3D=3D 'static') return =
null;
        case 'height': case 'width':
          // returns '0px' for hidden elements; we want it to return =
null
          if (!Element.visible(element)) return null;

          // returns the border-box dimensions rather than the =
content-box
          // dimensions, so we subtract padding and borders from the =
value
          var dim =3D parseInt(proceed(element, style), 10);

          if (dim !=3D=3D element['offset' + style.capitalize()])
            return dim + 'px';

          var properties;
          if (style =3D=3D=3D 'height') {
            properties =3D ['border-top-width', 'padding-top',
             'padding-bottom', 'border-bottom-width'];
          }
          else {
            properties =3D ['border-left-width', 'padding-left',
             'padding-right', 'border-right-width'];
          }
          return properties.inject(dim, function(memo, property) {
            var val =3D proceed(element, property);
            return val =3D=3D=3D null ? memo : memo - parseInt(val, 10);
          }) + 'px';
        default: return proceed(element, style);
      }
    }
  );

  Element.Methods.readAttribute =3D Element.Methods.readAttribute.wrap(
    function(proceed, element, attribute) {
      if (attribute =3D=3D=3D 'title') return element.title;
      return proceed(element, attribute);
    }
  );
}

else if (Prototype.Browser.IE) {
  // IE doesn't report offsets correctly for static elements, so we =
change them
  // to "relative" to get the values, then change them back.
  Element.Methods.getOffsetParent =3D =
Element.Methods.getOffsetParent.wrap(
    function(proceed, element) {
      element =3D $(element);
      var position =3D element.getStyle('position');
      if (position !=3D=3D 'static') return proceed(element);
      element.setStyle({ position: 'relative' });
      var value =3D proceed(element);
      element.setStyle({ position: position });
      return value;
    }
  );

  $w('positionedOffset viewportOffset').each(function(method) {
    Element.Methods[method] =3D Element.Methods[method].wrap(
      function(proceed, element) {
        element =3D $(element);
        var position =3D element.getStyle('position');
        if (position !=3D=3D 'static') return proceed(element);
        // Trigger hasLayout on the offset parent so that IE6 reports
        // accurate offsetTop and offsetLeft values for position: fixed.
        var offsetParent =3D element.getOffsetParent();
        if (offsetParent && offsetParent.getStyle('position') =3D=3D=3D =
'fixed')
          offsetParent.setStyle({ zoom: 1 });
        element.setStyle({ position: 'relative' });
        var value =3D proceed(element);
        element.setStyle({ position: position });
        return value;
      }
    );
  });

  Element.Methods.getStyle =3D function(element, style) {
    element =3D $(element);
    style =3D (style =3D=3D 'float' || style =3D=3D 'cssFloat') ? =
'styleFloat' : style.camelize();
    var value =3D element.style[style];
    if (!value && element.currentStyle) value =3D =
element.currentStyle[style];

    if (style =3D=3D 'opacity') {
      if (value =3D (element.getStyle('filter') || =
'').match(/alpha\(opacity=3D(.*)\)/))
        if (value[1]) return parseFloat(value[1]) / 100;
      return 1.0;
    }

    if (value =3D=3D 'auto') {
      if ((style =3D=3D 'width' || style =3D=3D 'height') && =
(element.getStyle('display') !=3D 'none'))
        return element['offset' + style.capitalize()] + 'px';
      return null;
    }
    return value;
  };

  Element.Methods.setOpacity =3D function(element, value) {
    function stripAlpha(filter){
      return filter.replace(/alpha\([^\)]*\)/gi,'');
    }
    element =3D $(element);
    var currentStyle =3D element.currentStyle;
    if ((currentStyle && !currentStyle.hasLayout) ||
      (!currentStyle && element.style.zoom =3D=3D 'normal'))
        element.style.zoom =3D 1;

    var filter =3D element.getStyle('filter'), style =3D element.style;
    if (value =3D=3D 1 || value =3D=3D=3D '') {
      (filter =3D stripAlpha(filter)) ?
        style.filter =3D filter : style.removeAttribute('filter');
      return element;
    } else if (value < 0.00001) value =3D 0;
    style.filter =3D stripAlpha(filter) +
      'alpha(opacity=3D' + (value * 100) + ')';
    return element;
  };

  Element._attributeTranslations =3D {
    read: {
      names: {
        'class': 'className',
        'for':   'htmlFor'
      },
      values: {
        _getAttr: function(element, attribute) {
          return element.getAttribute(attribute, 2);
        },
        _getAttrNode: function(element, attribute) {
          var node =3D element.getAttributeNode(attribute);
          return node ? node.value : "";
        },
        _getEv: function(element, attribute) {
          attribute =3D element.getAttribute(attribute);
          return attribute ? attribute.toString().slice(23, -2) : null;
        },
        _flag: function(element, attribute) {
          return $(element).hasAttribute(attribute) ? attribute : null;
        },
        style: function(element) {
          return element.style.cssText.toLowerCase();
        },
        title: function(element) {
          return element.title;
        }
      }
    }
  };

  Element._attributeTranslations.write =3D {
    names: Object.extend({
      cellpadding: 'cellPadding',
      cellspacing: 'cellSpacing'
    }, Element._attributeTranslations.read.names),
    values: {
      checked: function(element, value) {
        element.checked =3D !!value;
      },

      style: function(element, value) {
        element.style.cssText =3D value ? value : '';
      }
    }
  };

  Element._attributeTranslations.has =3D {};

  $w('colSpan rowSpan vAlign dateTime accessKey tabIndex ' +
      'encType maxLength readOnly longDesc').each(function(attr) {
    Element._attributeTranslations.write.names[attr.toLowerCase()] =3D =
attr;
    Element._attributeTranslations.has[attr.toLowerCase()] =3D attr;
  });

  (function(v) {
    Object.extend(v, {
      href:        v._getAttr,
      src:         v._getAttr,
      type:        v._getAttr,
      action:      v._getAttrNode,
      disabled:    v._flag,
      checked:     v._flag,
      readonly:    v._flag,
      multiple:    v._flag,
      onload:      v._getEv,
      onunload:    v._getEv,
      onclick:     v._getEv,
      ondblclick:  v._getEv,
      onmousedown: v._getEv,
      onmouseup:   v._getEv,
      onmouseover: v._getEv,
      onmousemove: v._getEv,
      onmouseout:  v._getEv,
      onfocus:     v._getEv,
      onblur:      v._getEv,
      onkeypress:  v._getEv,
      onkeydown:   v._getEv,
      onkeyup:     v._getEv,
      onsubmit:    v._getEv,
      onreset:     v._getEv,
      onselect:    v._getEv,
      onchange:    v._getEv
    });
  })(Element._attributeTranslations.read.values);
}

else if (Prototype.Browser.Gecko && =
/rv:1\.8\.0/.test(navigator.userAgent)) {
  Element.Methods.setOpacity =3D function(element, value) {
    element =3D $(element);
    element.style.opacity =3D (value =3D=3D 1) ? 0.999999 :
      (value =3D=3D=3D '') ? '' : (value < 0.00001) ? 0 : value;
    return element;
  };
}

else if (Prototype.Browser.WebKit) {
  Element.Methods.setOpacity =3D function(element, value) {
    element =3D $(element);
    element.style.opacity =3D (value =3D=3D 1 || value =3D=3D=3D '') ? =
'' :
      (value < 0.00001) ? 0 : value;

    if (value =3D=3D 1)
      if(element.tagName =3D=3D 'IMG' && element.width) {
        element.width++; element.width--;
      } else try {
        var n =3D document.createTextNode(' ');
        element.appendChild(n);
        element.removeChild(n);
      } catch (e) { }

    return element;
  };

  // Safari returns margins on body which is incorrect if the child is =
absolutely
  // positioned.  For performance reasons, redefine =
Element#cumulativeOffset for
  // KHTML/WebKit only.
  Element.Methods.cumulativeOffset =3D function(element) {
    var valueT =3D 0, valueL =3D 0;
    do {
      valueT +=3D element.offsetTop  || 0;
      valueL +=3D element.offsetLeft || 0;
      if (element.offsetParent =3D=3D document.body)
        if (Element.getStyle(element, 'position') =3D=3D 'absolute') =
break;

      element =3D element.offsetParent;
    } while (element);

    return Element._returnOffset(valueL, valueT);
  };
}

if (Prototype.Browser.IE || Prototype.Browser.Opera) {
  // IE and Opera are missing .innerHTML support for TABLE-related and =
SELECT elements
  Element.Methods.update =3D function(element, content) {
    element =3D $(element);

    if (content && content.toElement) content =3D content.toElement();
    if (Object.isElement(content)) return =
element.update().insert(content);

    content =3D Object.toHTML(content);
    var tagName =3D element.tagName.toUpperCase();

    if (tagName in Element._insertionTranslations.tags) {
      $A(element.childNodes).each(function(node) { =
element.removeChild(node) });
      Element._getContentFromAnonymousElement(tagName, =
content.stripScripts())
        .each(function(node) { element.appendChild(node) });
    }
    else element.innerHTML =3D content.stripScripts();

    content.evalScripts.bind(content).defer();
    return element;
  };
}

if ('outerHTML' in document.createElement('div')) {
  Element.Methods.replace =3D function(element, content) {
    element =3D $(element);

    if (content && content.toElement) content =3D content.toElement();
    if (Object.isElement(content)) {
      element.parentNode.replaceChild(content, element);
      return element;
    }

    content =3D Object.toHTML(content);
    var parent =3D element.parentNode, tagName =3D =
parent.tagName.toUpperCase();

    if (Element._insertionTranslations.tags[tagName]) {
      var nextSibling =3D element.next();
      var fragments =3D Element._getContentFromAnonymousElement(tagName, =
content.stripScripts());
      parent.removeChild(element);
      if (nextSibling)
        fragments.each(function(node) { parent.insertBefore(node, =
nextSibling) });
      else
        fragments.each(function(node) { parent.appendChild(node) });
    }
    else element.outerHTML =3D content.stripScripts();

    content.evalScripts.bind(content).defer();
    return element;
  };
}

Element._returnOffset =3D function(l, t) {
  var result =3D [l, t];
  result.left =3D l;
  result.top =3D t;
  return result;
};

Element._getContentFromAnonymousElement =3D function(tagName, html) {
  var div =3D new Element('div'), t =3D =
Element._insertionTranslations.tags[tagName];
  if (t) {
    div.innerHTML =3D t[0] + html + t[1];
    t[2].times(function() { div =3D div.firstChild });
  } else div.innerHTML =3D html;
  return $A(div.childNodes);
};

Element._insertionTranslations =3D {
  before: function(element, node) {
    element.parentNode.insertBefore(node, element);
  },
  top: function(element, node) {
    element.insertBefore(node, element.firstChild);
  },
  bottom: function(element, node) {
    element.appendChild(node);
  },
  after: function(element, node) {
    element.parentNode.insertBefore(node, element.nextSibling);
  },
  tags: {
    TABLE:  ['<table>',                '</table>',                   1],
    TBODY:  ['<table><tbody>',         '</tbody></table>',           2],
    TR:     ['<table><tbody><tr>',     '</tr></tbody></table>',      3],
    TD:     ['<table><tbody><tr><td>', '</td></tr></tbody></table>', 4],
    SELECT: ['<select>',               '</select>',                  1]
  }
};

(function() {
  Object.extend(this.tags, {
    THEAD: this.tags.TBODY,
    TFOOT: this.tags.TBODY,
    TH:    this.tags.TD
  });
}).call(Element._insertionTranslations);

Element.Methods.Simulated =3D {
  hasAttribute: function(element, attribute) {
    attribute =3D Element._attributeTranslations.has[attribute] || =
attribute;
    var node =3D $(element).getAttributeNode(attribute);
    return node && node.specified;
  }
};

Element.Methods.ByTag =3D { };

Object.extend(Element, Element.Methods);

if (!Prototype.BrowserFeatures.ElementExtensions &&
    document.createElement('div').__proto__) {
  window.HTMLElement =3D { };
  window.HTMLElement.prototype =3D =
document.createElement('div').__proto__;
  Prototype.BrowserFeatures.ElementExtensions =3D true;
}

Element.extend =3D (function() {
  if (Prototype.BrowserFeatures.SpecificElementExtensions)
    return Prototype.K;

  var Methods =3D { }, ByTag =3D Element.Methods.ByTag;

  var extend =3D Object.extend(function(element) {
    if (!element || element._extendedByPrototype ||
        element.nodeType !=3D 1 || element =3D=3D window) return =
element;

    var methods =3D Object.clone(Methods),
      tagName =3D element.tagName, property, value;

    // extend methods for specific tags
    if (ByTag[tagName]) Object.extend(methods, ByTag[tagName]);

    for (property in methods) {
      value =3D methods[property];
      if (Object.isFunction(value) && !(property in element))
        element[property] =3D value.methodize();
    }

    element._extendedByPrototype =3D Prototype.emptyFunction;
    return element;

  }, {
    refresh: function() {
      // extend methods for all tags (Safari doesn't need this)
      if (!Prototype.BrowserFeatures.ElementExtensions) {
        Object.extend(Methods, Element.Methods);
        Object.extend(Methods, Element.Methods.Simulated);
      }
    }
  });

  extend.refresh();
  return extend;
})();

Element.hasAttribute =3D function(element, attribute) {
  if (element.hasAttribute) return element.hasAttribute(attribute);
  return Element.Methods.Simulated.hasAttribute(element, attribute);
};

Element.addMethods =3D function(methods) {
  var F =3D Prototype.BrowserFeatures, T =3D Element.Methods.ByTag;

  if (!methods) {
    Object.extend(Form, Form.Methods);
    Object.extend(Form.Element, Form.Element.Methods);
    Object.extend(Element.Methods.ByTag, {
      "FORM":     Object.clone(Form.Methods),
      "INPUT":    Object.clone(Form.Element.Methods),
      "SELECT":   Object.clone(Form.Element.Methods),
      "TEXTAREA": Object.clone(Form.Element.Methods)
    });
  }

  if (arguments.length =3D=3D 2) {
    var tagName =3D methods;
    methods =3D arguments[1];
  }

  if (!tagName) Object.extend(Element.Methods, methods || { });
  else {
    if (Object.isArray(tagName)) tagName.each(extend);
    else extend(tagName);
  }

  function extend(tagName) {
    tagName =3D tagName.toUpperCase();
    if (!Element.Methods.ByTag[tagName])
      Element.Methods.ByTag[tagName] =3D { };
    Object.extend(Element.Methods.ByTag[tagName], methods);
  }

  function copy(methods, destination, onlyIfAbsent) {
    onlyIfAbsent =3D onlyIfAbsent || false;
    for (var property in methods) {
      var value =3D methods[property];
      if (!Object.isFunction(value)) continue;
      if (!onlyIfAbsent || !(property in destination))
        destination[property] =3D value.methodize();
    }
  }

  function findDOMClass(tagName) {
    var klass;
    var trans =3D {
      "OPTGROUP": "OptGroup", "TEXTAREA": "TextArea", "P": "Paragraph",
      "FIELDSET": "FieldSet", "UL": "UList", "OL": "OList", "DL": =
"DList",
      "DIR": "Directory", "H1": "Heading", "H2": "Heading", "H3": =
"Heading",
      "H4": "Heading", "H5": "Heading", "H6": "Heading", "Q": "Quote",
      "INS": "Mod", "DEL": "Mod", "A": "Anchor", "IMG": "Image", =
"CAPTION":
      "TableCaption", "COL": "TableCol", "COLGROUP": "TableCol", =
"THEAD":
      "TableSection", "TFOOT": "TableSection", "TBODY": "TableSection", =
"TR":
      "TableRow", "TH": "TableCell", "TD": "TableCell", "FRAMESET":
      "FrameSet", "IFRAME": "IFrame"
    };
    if (trans[tagName]) klass =3D 'HTML' + trans[tagName] + 'Element';
    if (window[klass]) return window[klass];
    klass =3D 'HTML' + tagName + 'Element';
    if (window[klass]) return window[klass];
    klass =3D 'HTML' + tagName.capitalize() + 'Element';
    if (window[klass]) return window[klass];

    window[klass] =3D { };
    window[klass].prototype =3D =
document.createElement(tagName).__proto__;
    return window[klass];
  }

  if (F.ElementExtensions) {
    copy(Element.Methods, HTMLElement.prototype);
    copy(Element.Methods.Simulated, HTMLElement.prototype, true);
  }

  if (F.SpecificElementExtensions) {
    for (var tag in Element.Methods.ByTag) {
      var klass =3D findDOMClass(tag);
      if (Object.isUndefined(klass)) continue;
      copy(T[tag], klass.prototype);
    }
  }

  Object.extend(Element, Element.Methods);
  delete Element.ByTag;

  if (Element.extend.refresh) Element.extend.refresh();
  Element.cache =3D { };
};

document.viewport =3D {
  getDimensions: function() {
    var dimensions =3D { };
    var B =3D Prototype.Browser;
    $w('width height').each(function(d) {
      var D =3D d.capitalize();
      dimensions[d] =3D (B.WebKit && !document.evaluate) ? self['inner' =
+ D] :
        (B.Opera) ? document.body['client' + D] : =
document.documentElement['client' + D];
    });
    return dimensions;
  },

  getWidth: function() {
    return this.getDimensions().width;
  },

  getHeight: function() {
    return this.getDimensions().height;
  },

  getScrollOffsets: function() {
    return Element._returnOffset(
      window.pageXOffset || document.documentElement.scrollLeft || =
document.body.scrollLeft,
      window.pageYOffset || document.documentElement.scrollTop || =
document.body.scrollTop);
  }
};
/* Portions of the Selector class are derived from Jack Slocum=E2=80=99s =
DomQuery,
 * part of YUI-Ext version 0.40, distributed under the terms of an =
MIT-style
 * license.  Please see http://www.yui-ext.com/ for more information. */

var Selector =3D Class.create({
  initialize: function(expression) {
    this.expression =3D expression.strip();
    this.compileMatcher();
  },

  shouldUseXPath: function() {
    if (!Prototype.BrowserFeatures.XPath) return false;

    var e =3D this.expression;

    // Safari 3 chokes on :*-of-type and :empty
    if (Prototype.Browser.WebKit &&
     (e.include("-of-type") || e.include(":empty")))
      return false;

    // XPath can't do namespaced attributes, nor can it read
    // the "checked" property from DOM nodes
    if ((/(\[[\w-]*?:|:checked)/).test(this.expression))
      return false;

    return true;
  },

  compileMatcher: function() {
    if (this.shouldUseXPath())
      return this.compileXPathMatcher();

    var e =3D this.expression, ps =3D Selector.patterns, h =3D =
Selector.handlers,
        c =3D Selector.criteria, le, p, m;

    if (Selector._cache[e]) {
      this.matcher =3D Selector._cache[e];
      return;
    }

    this.matcher =3D ["this.matcher =3D function(root) {",
                    "var r =3D root, h =3D Selector.handlers, c =3D =
false, n;"];

    while (e && le !=3D e && (/\S/).test(e)) {
      le =3D e;
      for (var i in ps) {
        p =3D ps[i];
        if (m =3D e.match(p)) {
          this.matcher.push(Object.isFunction(c[i]) ? c[i](m) :
    	      new Template(c[i]).evaluate(m));
          e =3D e.replace(m[0], '');
          break;
        }
      }
    }

    this.matcher.push("return h.unique(n);\n}");
    eval(this.matcher.join('\n'));
    Selector._cache[this.expression] =3D this.matcher;
  },

  compileXPathMatcher: function() {
    var e =3D this.expression, ps =3D Selector.patterns,
        x =3D Selector.xpath, le, m;

    if (Selector._cache[e]) {
      this.xpath =3D Selector._cache[e]; return;
    }

    this.matcher =3D ['.//*'];
    while (e && le !=3D e && (/\S/).test(e)) {
      le =3D e;
      for (var i in ps) {
        if (m =3D e.match(ps[i])) {
          this.matcher.push(Object.isFunction(x[i]) ? x[i](m) :
            new Template(x[i]).evaluate(m));
          e =3D e.replace(m[0], '');
          break;
        }
      }
    }

    this.xpath =3D this.matcher.join('');
    Selector._cache[this.expression] =3D this.xpath;
  },

  findElements: function(root) {
    root =3D root || document;
    if (this.xpath) return document._getElementsByXPath(this.xpath, =
root);
    return this.matcher(root);
  },

  match: function(element) {
    this.tokens =3D [];

    var e =3D this.expression, ps =3D Selector.patterns, as =3D =
Selector.assertions;
    var le, p, m;

    while (e && le !=3D=3D e && (/\S/).test(e)) {
      le =3D e;
      for (var i in ps) {
        p =3D ps[i];
        if (m =3D e.match(p)) {
          // use the Selector.assertions methods unless the selector
          // is too complex.
          if (as[i]) {
            this.tokens.push([i, Object.clone(m)]);
            e =3D e.replace(m[0], '');
          } else {
            // reluctantly do a document-wide search
            // and look for a match in the array
            return this.findElements(document).include(element);
          }
        }
      }
    }

    var match =3D true, name, matches;
    for (var i =3D 0, token; token =3D this.tokens[i]; i++) {
      name =3D token[0], matches =3D token[1];
      if (!Selector.assertions[name](element, matches)) {
        match =3D false; break;
      }
    }

    return match;
  },

  toString: function() {
    return this.expression;
  },

  inspect: function() {
    return "#<Selector:" + this.expression.inspect() + ">";
  }
});

Object.extend(Selector, {
  _cache: { },

  xpath: {
    descendant:   "//*",
    child:        "/*",
    adjacent:     "/following-sibling::*[1]",
    laterSibling: '/following-sibling::*',
    tagName:      function(m) {
      if (m[1] =3D=3D '*') return '';
      return "[local-name()=3D'" + m[1].toLowerCase() +
             "' or local-name()=3D'" + m[1].toUpperCase() + "']";
    },
    className:    "[contains(concat(' ', @class, ' '), ' #{1} ')]",
    id:           "[@id=3D'#{1}']",
    attrPresence: function(m) {
      m[1] =3D m[1].toLowerCase();
      return new Template("[@#{1}]").evaluate(m);
    },
    attr: function(m) {
      m[1] =3D m[1].toLowerCase();
      m[3] =3D m[5] || m[6];
      return new Template(Selector.xpath.operators[m[2]]).evaluate(m);
    },
    pseudo: function(m) {
      var h =3D Selector.xpath.pseudos[m[1]];
      if (!h) return '';
      if (Object.isFunction(h)) return h(m);
      return new Template(Selector.xpath.pseudos[m[1]]).evaluate(m);
    },
    operators: {
      '=3D':  "[@#{1}=3D'#{3}']",
      '!=3D': "[@#{1}!=3D'#{3}']",
      '^=3D': "[starts-with(@#{1}, '#{3}')]",
      '$=3D': "[substring(@#{1}, (string-length(@#{1}) - =
string-length('#{3}') + 1))=3D'#{3}']",
      '*=3D': "[contains(@#{1}, '#{3}')]",
      '~=3D': "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]",
      '|=3D': "[contains(concat('-', @#{1}, '-'), '-#{3}-')]"
    },
    pseudos: {
      'first-child': '[not(preceding-sibling::*)]',
      'last-child':  '[not(following-sibling::*)]',
      'only-child':  '[not(preceding-sibling::* or =
following-sibling::*)]',
      'empty':       "[count(*) =3D 0 and (count(text()) =3D 0 or =
translate(text(), ' \t\r\n', '') =3D '')]",
      'checked':     "[@checked]",
      'disabled':    "[@disabled]",
      'enabled':     "[not(@disabled)]",
      'not': function(m) {
        var e =3D m[6], p =3D Selector.patterns,
            x =3D Selector.xpath, le, v;

        var exclusion =3D [];
        while (e && le !=3D e && (/\S/).test(e)) {
          le =3D e;
          for (var i in p) {
            if (m =3D e.match(p[i])) {
              v =3D Object.isFunction(x[i]) ? x[i](m) : new =
Template(x[i]).evaluate(m);
              exclusion.push("(" + v.substring(1, v.length - 1) + ")");
              e =3D e.replace(m[0], '');
              break;
            }
          }
        }
        return "[not(" + exclusion.join(" and ") + ")]";
      },
      'nth-child':      function(m) {
        return =
Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", m);
      },
      'nth-last-child': function(m) {
        return =
Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", m);
      },
      'nth-of-type':    function(m) {
        return Selector.xpath.pseudos.nth("position() ", m);
      },
      'nth-last-of-type': function(m) {
        return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", =
m);
      },
      'first-of-type':  function(m) {
        m[6] =3D "1"; return Selector.xpath.pseudos['nth-of-type'](m);
      },
      'last-of-type':   function(m) {
        m[6] =3D "1"; return =
Selector.xpath.pseudos['nth-last-of-type'](m);
      },
      'only-of-type':   function(m) {
        var p =3D Selector.xpath.pseudos; return p['first-of-type'](m) + =
p['last-of-type'](m);
      },
      nth: function(fragment, m) {
        var mm, formula =3D m[6], predicate;
        if (formula =3D=3D 'even') formula =3D '2n+0';
        if (formula =3D=3D 'odd')  formula =3D '2n+1';
        if (mm =3D formula.match(/^(\d+)$/)) // digit only
          return '[' + fragment + "=3D " + mm[1] + ']';
        if (mm =3D formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
          if (mm[1] =3D=3D "-") mm[1] =3D -1;
          var a =3D mm[1] ? Number(mm[1]) : 1;
          var b =3D mm[2] ? Number(mm[2]) : 0;
          predicate =3D "[((#{fragment} - #{b}) mod #{a} =3D 0) and " +
          "((#{fragment} - #{b}) div #{a} >=3D 0)]";
          return new Template(predicate).evaluate({
            fragment: fragment, a: a, b: b });
        }
      }
    }
  },

  criteria: {
    tagName:      'n =3D h.tagName(n, r, "#{1}", c);      c =3D false;',
    className:    'n =3D h.className(n, r, "#{1}", c);    c =3D false;',
    id:           'n =3D h.id(n, r, "#{1}", c);           c =3D false;',
    attrPresence: 'n =3D h.attrPresence(n, r, "#{1}", c); c =3D false;',
    attr: function(m) {
      m[3] =3D (m[5] || m[6]);
      return new Template('n =3D h.attr(n, r, "#{1}", "#{3}", "#{2}", =
c); c =3D false;').evaluate(m);
    },
    pseudo: function(m) {
      if (m[6]) m[6] =3D m[6].replace(/"/g, '\\"');
      return new Template('n =3D h.pseudo(n, "#{1}", "#{6}", r, c); c =
=3D false;').evaluate(m);
    },
    descendant:   'c =3D "descendant";',
    child:        'c =3D "child";',
    adjacent:     'c =3D "adjacent";',
    laterSibling: 'c =3D "laterSibling";'
  },

  patterns: {
    // combinators must be listed first
    // (and descendant needs to be last combinator)
    laterSibling: /^\s*~\s*/,
    child:        /^\s*>\s*/,
    adjacent:     /^\s*\+\s*/,
    descendant:   /^\s/,

    // selectors follow
    tagName:      /^\s*(\*|[\w\-]+)(\b|$)?/,
    id:           /^#([\w\-\*]+)(\b|$)/,
    className:    /^\.([\w\-\*]+)(\b|$)/,
    pseudo:
/^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis=
)abled|not)(\((.*?)\))?(\b|$|(?=3D\s|[:+~>]))/,
    attrPresence: /^\[([\w]+)\]/,
    attr:         =
/\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=3D)\s*((['"])([^\4]*?)\4|([^'"][^=
\]]*?)))?\]/
  },

  // for Selector.match and Element#match
  assertions: {
    tagName: function(element, matches) {
      return matches[1].toUpperCase() =3D=3D =
element.tagName.toUpperCase();
    },

    className: function(element, matches) {
      return Element.hasClassName(element, matches[1]);
    },

    id: function(element, matches) {
      return element.id =3D=3D=3D matches[1];
    },

    attrPresence: function(element, matches) {
      return Element.hasAttribute(element, matches[1]);
    },

    attr: function(element, matches) {
      var nodeValue =3D Element.readAttribute(element, matches[1]);
      return nodeValue && Selector.operators[matches[2]](nodeValue, =
matches[5] || matches[6]);
    }
  },

  handlers: {
    // UTILITY FUNCTIONS
    // joins two collections
    concat: function(a, b) {
      for (var i =3D 0, node; node =3D b[i]; i++)
        a.push(node);
      return a;
    },

    // marks an array of nodes for counting
    mark: function(nodes) {
      var _true =3D Prototype.emptyFunction;
      for (var i =3D 0, node; node =3D nodes[i]; i++)
        node._countedByPrototype =3D _true;
      return nodes;
    },

    unmark: function(nodes) {
      for (var i =3D 0, node; node =3D nodes[i]; i++)
        node._countedByPrototype =3D undefined;
      return nodes;
    },

    // mark each child node with its position (for nth calls)
    // "ofType" flag indicates whether we're indexing for nth-of-type
    // rather than nth-child
    index: function(parentNode, reverse, ofType) {
      parentNode._countedByPrototype =3D Prototype.emptyFunction;
      if (reverse) {
        for (var nodes =3D parentNode.childNodes, i =3D nodes.length - =
1, j =3D 1; i >=3D 0; i--) {
          var node =3D nodes[i];
          if (node.nodeType =3D=3D 1 && (!ofType || =
node._countedByPrototype)) node.nodeIndex =3D j++;
        }
      } else {
        for (var i =3D 0, j =3D 1, nodes =3D parentNode.childNodes; node =
=3D nodes[i]; i++)
          if (node.nodeType =3D=3D 1 && (!ofType || =
node._countedByPrototype)) node.nodeIndex =3D j++;
      }
    },

    // filters out duplicates and extends all nodes
    unique: function(nodes) {
      if (nodes.length =3D=3D 0) return nodes;
      var results =3D [], n;
      for (var i =3D 0, l =3D nodes.length; i < l; i++)
        if (!(n =3D nodes[i])._countedByPrototype) {
          n._countedByPrototype =3D Prototype.emptyFunction;
          results.push(Element.extend(n));
        }
      return Selector.handlers.unmark(results);
    },

    // COMBINATOR FUNCTIONS
    descendant: function(nodes) {
      var h =3D Selector.handlers;
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        h.concat(results, node.getElementsByTagName('*'));
      return results;
    },

    child: function(nodes) {
      var h =3D Selector.handlers;
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {
        for (var j =3D 0, child; child =3D node.childNodes[j]; j++)
          if (child.nodeType =3D=3D 1 && child.tagName !=3D '!') =
results.push(child);
      }
      return results;
    },

    adjacent: function(nodes) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {
        var next =3D this.nextElementSibling(node);
        if (next) results.push(next);
      }
      return results;
    },

    laterSibling: function(nodes) {
      var h =3D Selector.handlers;
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        h.concat(results, Element.nextSiblings(node));
      return results;
    },

    nextElementSibling: function(node) {
      while (node =3D node.nextSibling)
	      if (node.nodeType =3D=3D 1) return node;
      return null;
    },

    previousElementSibling: function(node) {
      while (node =3D node.previousSibling)
        if (node.nodeType =3D=3D 1) return node;
      return null;
    },

    // TOKEN FUNCTIONS
    tagName: function(nodes, root, tagName, combinator) {
      var uTagName =3D tagName.toUpperCase();
      var results =3D [], h =3D Selector.handlers;
      if (nodes) {
        if (combinator) {
          // fastlane for ordinary descendant combinators
          if (combinator =3D=3D "descendant") {
            for (var i =3D 0, node; node =3D nodes[i]; i++)
              h.concat(results, node.getElementsByTagName(tagName));
            return results;
          } else nodes =3D this[combinator](nodes);
          if (tagName =3D=3D "*") return nodes;
        }
        for (var i =3D 0, node; node =3D nodes[i]; i++)
          if (node.tagName.toUpperCase() =3D=3D=3D uTagName) =
results.push(node);
        return results;
      } else return root.getElementsByTagName(tagName);
    },

    id: function(nodes, root, id, combinator) {
      var targetNode =3D $(id), h =3D Selector.handlers;
      if (!targetNode) return [];
      if (!nodes && root =3D=3D document) return [targetNode];
      if (nodes) {
        if (combinator) {
          if (combinator =3D=3D 'child') {
            for (var i =3D 0, node; node =3D nodes[i]; i++)
              if (targetNode.parentNode =3D=3D node) return =
[targetNode];
          } else if (combinator =3D=3D 'descendant') {
            for (var i =3D 0, node; node =3D nodes[i]; i++)
              if (Element.descendantOf(targetNode, node)) return =
[targetNode];
          } else if (combinator =3D=3D 'adjacent') {
            for (var i =3D 0, node; node =3D nodes[i]; i++)
              if (Selector.handlers.previousElementSibling(targetNode) =
=3D=3D node)
                return [targetNode];
          } else nodes =3D h[combinator](nodes);
        }
        for (var i =3D 0, node; node =3D nodes[i]; i++)
          if (node =3D=3D targetNode) return [targetNode];
        return [];
      }
      return (targetNode && Element.descendantOf(targetNode, root)) ? =
[targetNode] : [];
    },

    className: function(nodes, root, className, combinator) {
      if (nodes && combinator) nodes =3D this[combinator](nodes);
      return Selector.handlers.byClassName(nodes, root, className);
    },

    byClassName: function(nodes, root, className) {
      if (!nodes) nodes =3D Selector.handlers.descendant([root]);
      var needle =3D ' ' + className + ' ';
      for (var i =3D 0, results =3D [], node, nodeClassName; node =3D =
nodes[i]; i++) {
        nodeClassName =3D node.className;
        if (nodeClassName.length =3D=3D 0) continue;
        if (nodeClassName =3D=3D className || (' ' + nodeClassName + ' =
').include(needle))
          results.push(node);
      }
      return results;
    },

    attrPresence: function(nodes, root, attr, combinator) {
      if (!nodes) nodes =3D root.getElementsByTagName("*");
      if (nodes && combinator) nodes =3D this[combinator](nodes);
      var results =3D [];
      for (var i =3D 0, node; node =3D nodes[i]; i++)
        if (Element.hasAttribute(node, attr)) results.push(node);
      return results;
    },

    attr: function(nodes, root, attr, value, operator, combinator) {
      if (!nodes) nodes =3D root.getElementsByTagName("*");
      if (nodes && combinator) nodes =3D this[combinator](nodes);
      var handler =3D Selector.operators[operator], results =3D [];
      for (var i =3D 0, node; node =3D nodes[i]; i++) {
        var nodeValue =3D Element.readAttribute(node, attr);
        if (nodeValue =3D=3D=3D null) continue;
        if (handler(nodeValue, value)) results.push(node);
      }
      return results;
    },

    pseudo: function(nodes, name, value, root, combinator) {
      if (nodes && combinator) nodes =3D this[combinator](nodes);
      if (!nodes) nodes =3D root.getElementsByTagName("*");
      return Selector.pseudos[name](nodes, value, root);
    }
  },

  pseudos: {
    'first-child': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {
        if (Selector.handlers.previousElementSibling(node)) continue;
          results.push(node);
      }
      return results;
    },
    'last-child': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {
        if (Selector.handlers.nextElementSibling(node)) continue;
          results.push(node);
      }
      return results;
    },
    'only-child': function(nodes, value, root) {
      var h =3D Selector.handlers;
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        if (!h.previousElementSibling(node) && =
!h.nextElementSibling(node))
          results.push(node);
      return results;
    },
    'nth-child':        function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root);
    },
    'nth-last-child':   function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, true);
    },
    'nth-of-type':      function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, false, true);
    },
    'nth-last-of-type': function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, formula, root, true, true);
    },
    'first-of-type':    function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, "1", root, false, true);
    },
    'last-of-type':     function(nodes, formula, root) {
      return Selector.pseudos.nth(nodes, "1", root, true, true);
    },
    'only-of-type':     function(nodes, formula, root) {
      var p =3D Selector.pseudos;
      return p['last-of-type'](p['first-of-type'](nodes, formula, root), =
formula, root);
    },

    // handles the an+b logic
    getIndices: function(a, b, total) {
      if (a =3D=3D 0) return b > 0 ? [b] : [];
      return $R(1, total).inject([], function(memo, i) {
        if (0 =3D=3D (i - b) % a && (i - b) / a >=3D 0) memo.push(i);
        return memo;
      });
    },

    // handles nth(-last)-child, nth(-last)-of-type, and =
(first|last)-of-type
    nth: function(nodes, formula, root, reverse, ofType) {
      if (nodes.length =3D=3D 0) return [];
      if (formula =3D=3D 'even') formula =3D '2n+0';
      if (formula =3D=3D 'odd')  formula =3D '2n+1';
      var h =3D Selector.handlers, results =3D [], indexed =3D [], m;
      h.mark(nodes);
      for (var i =3D 0, node; node =3D nodes[i]; i++) {
        if (!node.parentNode._countedByPrototype) {
          h.index(node.parentNode, reverse, ofType);
          indexed.push(node.parentNode);
        }
      }
      if (formula.match(/^\d+$/)) { // just a number
        formula =3D Number(formula);
        for (var i =3D 0, node; node =3D nodes[i]; i++)
          if (node.nodeIndex =3D=3D formula) results.push(node);
      } else if (m =3D formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // =
an+b
        if (m[1] =3D=3D "-") m[1] =3D -1;
        var a =3D m[1] ? Number(m[1]) : 1;
        var b =3D m[2] ? Number(m[2]) : 0;
        var indices =3D Selector.pseudos.getIndices(a, b, nodes.length);
        for (var i =3D 0, node, l =3D indices.length; node =3D nodes[i]; =
i++) {
          for (var j =3D 0; j < l; j++)
            if (node.nodeIndex =3D=3D indices[j]) results.push(node);
        }
      }
      h.unmark(nodes);
      h.unmark(indexed);
      return results;
    },

    'empty': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++) {
        // IE treats comments as element nodes
        if (node.tagName =3D=3D '!' || (node.firstChild && =
!node.innerHTML.match(/^\s*$/))) continue;
        results.push(node);
      }
      return results;
    },

    'not': function(nodes, selector, root) {
      var h =3D Selector.handlers, selectorType, m;
      var exclusions =3D new Selector(selector).findElements(root);
      h.mark(exclusions);
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        if (!node._countedByPrototype) results.push(node);
      h.unmark(exclusions);
      return results;
    },

    'enabled': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        if (!node.disabled) results.push(node);
      return results;
    },

    'disabled': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        if (node.disabled) results.push(node);
      return results;
    },

    'checked': function(nodes, value, root) {
      for (var i =3D 0, results =3D [], node; node =3D nodes[i]; i++)
        if (node.checked) results.push(node);
      return results;
    }
  },

  operators: {
    '=3D':  function(nv, v) { return nv =3D=3D v; },
    '!=3D': function(nv, v) { return nv !=3D v; },
    '^=3D': function(nv, v) { return nv.startsWith(v); },
    '$=3D': function(nv, v) { return nv.endsWith(v); },
    '*=3D': function(nv, v) { return nv.include(v); },
    '~=3D': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + =
' '); },
    '|=3D': function(nv, v) { return ('-' + nv.toUpperCase() + =
'-').include('-' + v.toUpperCase() + '-'); }
  },

  split: function(expression) {
    var expressions =3D [];
    expression.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, =
function(m) {
      expressions.push(m[1].strip());
    });
    return expressions;
  },

  matchElements: function(elements, expression) {
    var matches =3D $$(expression), h =3D Selector.handlers;
    h.mark(matches);
    for (var i =3D 0, results =3D [], element; element =3D elements[i]; =
i++)
      if (element._countedByPrototype) results.push(element);
    h.unmark(matches);
    return results;
  },

  findElement: function(elements, expression, index) {
    if (Object.isNumber(expression)) {
      index =3D expression; expression =3D false;
    }
    return Selector.matchElements(elements, expression || '*')[index || =
0];
  },

  findChildElements: function(element, expressions) {
    expressions =3D Selector.split(expressions.join(','));
    var results =3D [], h =3D Selector.handlers;
    for (var i =3D 0, l =3D expressions.length, selector; i < l; i++) {
      selector =3D new Selector(expressions[i].strip());
      h.concat(results, selector.findElements(element));
    }
    return (l > 1) ? h.unique(results) : results;
  }
});

if (Prototype.Browser.IE) {
  Object.extend(Selector.handlers, {
    // IE returns comment nodes on getElementsByTagName("*").
    // Filter them out.
    concat: function(a, b) {
      for (var i =3D 0, node; node =3D b[i]; i++)
        if (node.tagName !=3D=3D "!") a.push(node);
      return a;
    },

    // IE improperly serializes _countedByPrototype in =
(inner|outer)HTML.
    unmark: function(nodes) {
      for (var i =3D 0, node; node =3D nodes[i]; i++)
        node.removeAttribute('_countedByPrototype');
      return nodes;
    }
  });
}

function $$() {
  return Selector.findChildElements(document, $A(arguments));
}
var Form =3D {
  reset: function(form) {
    $(form).reset();
    return form;
  },

  serializeElements: function(elements, options) {
    if (typeof options !=3D 'object') options =3D { hash: !!options };
    else if (Object.isUndefined(options.hash)) options.hash =3D true;
    var key, value, submitted =3D false, submit =3D options.submit;

    var data =3D elements.inject({ }, function(result, element) {
      if (!element.disabled && element.name) {
        key =3D element.name; value =3D $(element).getValue();
        if (value !=3D null && (element.type !=3D 'submit' || =
(!submitted &&
            submit !=3D=3D false && (!submit || key =3D=3D submit) && =
(submitted =3D true)))) {
          if (key in result) {
            // a key is already present; construct an array of values
            if (!Object.isArray(result[key])) result[key] =3D =
[result[key]];
            result[key].push(value);
          }
          else result[key] =3D value;
        }
      }
      return result;
    });

    return options.hash ? data : Object.toQueryString(data);
  }
};

Form.Methods =3D {
  serialize: function(form, options) {
    return Form.serializeElements(Form.getElements(form), options);
  },

  getElements: function(form) {
    return $A($(form).getElementsByTagName('*')).inject([],
      function(elements, child) {
        if (Form.Element.Serializers[child.tagName.toLowerCase()])
          elements.push(Element.extend(child));
        return elements;
      }
    );
  },

  getInputs: function(form, typeName, name) {
    form =3D $(form);
    var inputs =3D form.getElementsByTagName('input');

    if (!typeName && !name) return $A(inputs).map(Element.extend);

    for (var i =3D 0, matchingInputs =3D [], length =3D inputs.length; i =
< length; i++) {
      var input =3D inputs[i];
      if ((typeName && input.type !=3D typeName) || (name && input.name =
!=3D name))
        continue;
      matchingInputs.push(Element.extend(input));
    }

    return matchingInputs;
  },

  disable: function(form) {
    form =3D $(form);
    Form.getElements(form).invoke('disable');
    return form;
  },

  enable: function(form) {
    form =3D $(form);
    Form.getElements(form).invoke('enable');
    return form;
  },

  findFirstElement: function(form) {
    var elements =3D $(form).getElements().findAll(function(element) {
      return 'hidden' !=3D element.type && !element.disabled;
    });
    var firstByIndex =3D elements.findAll(function(element) {
      return element.hasAttribute('tabIndex') && element.tabIndex >=3D =
0;
    }).sortBy(function(element) { return element.tabIndex }).first();

    return firstByIndex ? firstByIndex : elements.find(function(element) =
{
      return ['input', 'select', =
'textarea'].include(element.tagName.toLowerCase());
    });
  },

  focusFirstElement: function(form) {
    form =3D $(form);
    form.findFirstElement().activate();
    return form;
  },

  request: function(form, options) {
    form =3D $(form), options =3D Object.clone(options || { });

    var params =3D options.parameters, action =3D =
form.readAttribute('action') || '';
    if (action.blank()) action =3D window.location.href;
    options.parameters =3D form.serialize(true);

    if (params) {
      if (Object.isString(params)) params =3D params.toQueryParams();
      Object.extend(options.parameters, params);
    }

    if (form.hasAttribute('method') && !options.method)
      options.method =3D form.method;

    return new Ajax.Request(action, options);
  }
};

/*-----------------------------------------------------------------------=
---*/

Form.Element =3D {
  focus: function(element) {
    $(element).focus();
    return element;
  },

  select: function(element) {
    $(element).select();
    return element;
  }
};

Form.Element.Methods =3D {
  serialize: function(element) {
    element =3D $(element);
    if (!element.disabled && element.name) {
      var value =3D element.getValue();
      if (value !=3D undefined) {
        var pair =3D { };
        pair[element.name] =3D value;
        return Object.toQueryString(pair);
      }
    }
    return '';
  },

  getValue: function(element) {
    element =3D $(element);
    var method =3D element.tagName.toLowerCase();
    return Form.Element.Serializers[method](element);
  },

  setValue: function(element, value) {
    element =3D $(element);
    var method =3D element.tagName.toLowerCase();
    Form.Element.Serializers[method](element, value);
    return element;
  },

  clear: function(element) {
    $(element).value =3D '';
    return element;
  },

  present: function(element) {
    return $(element).value !=3D '';
  },

  activate: function(element) {
    element =3D $(element);
    try {
      element.focus();
      if (element.select && (element.tagName.toLowerCase() !=3D 'input' =
||
          !['button', 'reset', 'submit'].include(element.type)))
        element.select();
    } catch (e) { }
    return element;
  },

  disable: function(element) {
    element =3D $(element);
    element.blur();
    element.disabled =3D true;
    return element;
  },

  enable: function(element) {
    element =3D $(element);
    element.disabled =3D false;
    return element;
  }
};

/*-----------------------------------------------------------------------=
---*/

var Field =3D Form.Element;
var $F =3D Form.Element.Methods.getValue;

/*-----------------------------------------------------------------------=
---*/

Form.Element.Serializers =3D {
  input: function(element, value) {
    switch (element.type.toLowerCase()) {
      case 'checkbox':
      case 'radio':
        return Form.Element.Serializers.inputSelector(element, value);
      default:
        return Form.Element.Serializers.textarea(element, value);
    }
  },

  inputSelector: function(element, value) {
    if (Object.isUndefined(value)) return element.checked ? =
element.value : null;
    else element.checked =3D !!value;
  },

  textarea: function(element, value) {
    if (Object.isUndefined(value)) return element.value;
    else element.value =3D value;
  },

  select: function(element, index) {
    if (Object.isUndefined(index))
      return this[element.type =3D=3D 'select-one' ?
        'selectOne' : 'selectMany'](element);
    else {
      var opt, value, single =3D !Object.isArray(index);
      for (var i =3D 0, length =3D element.length; i < length; i++) {
        opt =3D element.options[i];
        value =3D this.optionValue(opt);
        if (single) {
          if (value =3D=3D index) {
            opt.selected =3D true;
            return;
          }
        }
        else opt.selected =3D index.include(value);
      }
    }
  },

  selectOne: function(element) {
    var index =3D element.selectedIndex;
    return index >=3D 0 ? this.optionValue(element.options[index]) : =
null;
  },

  selectMany: function(element) {
    var values, length =3D element.length;
    if (!length) return null;

    for (var i =3D 0, values =3D []; i < length; i++) {
      var opt =3D element.options[i];
      if (opt.selected) values.push(this.optionValue(opt));
    }
    return values;
  },

  optionValue: function(opt) {
    // extend element because hasAttribute may not be native
    return Element.extend(opt).hasAttribute('value') ? opt.value : =
opt.text;
  }
};

/*-----------------------------------------------------------------------=
---*/

Abstract.TimedObserver =3D Class.create(PeriodicalExecuter, {
  initialize: function($super, element, frequency, callback) {
    $super(callback, frequency);
    this.element   =3D $(element);
    this.lastValue =3D this.getValue();
  },

  execute: function() {
    var value =3D this.getValue();
    if (Object.isString(this.lastValue) && Object.isString(value) ?
        this.lastValue !=3D value : String(this.lastValue) !=3D =
String(value)) {
      this.callback(this.element, value);
      this.lastValue =3D value;
    }
  }
});

Form.Element.Observer =3D Class.create(Abstract.TimedObserver, {
  getValue: function() {
    return Form.Element.getValue(this.element);
  }
});

Form.Observer =3D Class.create(Abstract.TimedObserver, {
  getValue: function() {
    return Form.serialize(this.element);
  }
});

/*-----------------------------------------------------------------------=
---*/

Abstract.EventObserver =3D Class.create({
  initialize: function(element, callback) {
    this.element  =3D $(element);
    this.callback =3D callback;

    this.lastValue =3D this.getValue();
    if (this.element.tagName.toLowerCase() =3D=3D 'form')
      this.registerFormCallbacks();
    else
      this.registerCallback(this.element);
  },

  onElementEvent: function() {
    var value =3D this.getValue();
    if (this.lastValue !=3D value) {
      this.callback(this.element, value);
      this.lastValue =3D value;
    }
  },

  registerFormCallbacks: function() {
    Form.getElements(this.element).each(this.registerCallback, this);
  },

  registerCallback: function(element) {
    if (element.type) {
      switch (element.type.toLowerCase()) {
        case 'checkbox':
        case 'radio':
          Event.observe(element, 'click', =
this.onElementEvent.bind(this));
          break;
        default:
          Event.observe(element, 'change', =
this.onElementEvent.bind(this));
          break;
      }
    }
  }
});

Form.Element.EventObserver =3D Class.create(Abstract.EventObserver, {
  getValue: function() {
    return Form.Element.getValue(this.element);
  }
});

Form.EventObserver =3D Class.create(Abstract.EventObserver, {
  getValue: function() {
    return Form.serialize(this.element);
  }
});
if (!window.Event) var Event =3D { };

Object.extend(Event, {
  KEY_BACKSPACE: 8,
  KEY_TAB:       9,
  KEY_RETURN:   13,
  KEY_ESC:      27,
  KEY_LEFT:     37,
  KEY_UP:       38,
  KEY_RIGHT:    39,
  KEY_DOWN:     40,
  KEY_DELETE:   46,
  KEY_HOME:     36,
  KEY_END:      35,
  KEY_PAGEUP:   33,
  KEY_PAGEDOWN: 34,
  KEY_INSERT:   45,

  cache: { },

  relatedTarget: function(event) {
    var element;
    switch(event.type) {
      case 'mouseover': element =3D event.fromElement; break;
      case 'mouseout':  element =3D event.toElement;   break;
      default: return null;
    }
    return Element.extend(element);
  }
});

Event.Methods =3D (function() {
  var isButton;

  if (Prototype.Browser.IE) {
    var buttonMap =3D { 0: 1, 1: 4, 2: 2 };
    isButton =3D function(event, code) {
      return event.button =3D=3D buttonMap[code];
    };

  } else if (Prototype.Browser.WebKit) {
    isButton =3D function(event, code) {
      switch (code) {
        case 0: return event.which =3D=3D 1 && !event.metaKey;
        case 1: return event.which =3D=3D 1 && event.metaKey;
        default: return false;
      }
    };

  } else {
    isButton =3D function(event, code) {
      return event.which ? (event.which =3D=3D=3D code + 1) : =
(event.button =3D=3D=3D code);
    };
  }

  return {
    isLeftClick:   function(event) { return isButton(event, 0) },
    isMiddleClick: function(event) { return isButton(event, 1) },
    isRightClick:  function(event) { return isButton(event, 2) },

    element: function(event) {
      var node =3D Event.extend(event).target;
      return Element.extend(node.nodeType =3D=3D Node.TEXT_NODE ? =
node.parentNode : node);
    },

    findElement: function(event, expression) {
      var element =3D Event.element(event);
      if (!expression) return element;
      var elements =3D [element].concat(element.ancestors());
      return Selector.findElement(elements, expression, 0);
    },

    pointer: function(event) {
      return {
        x: event.pageX || (event.clientX +
          (document.documentElement.scrollLeft || =
document.body.scrollLeft)),
        y: event.pageY || (event.clientY +
          (document.documentElement.scrollTop || =
document.body.scrollTop))
      };
    },

    pointerX: function(event) { return Event.pointer(event).x },
    pointerY: function(event) { return Event.pointer(event).y },

    stop: function(event) {
      Event.extend(event);
      event.preventDefault();
      event.stopPropagation();
      event.stopped =3D true;
    }
  };
})();

Event.extend =3D (function() {
  var methods =3D Object.keys(Event.Methods).inject({ }, function(m, =
name) {
    m[name] =3D Event.Methods[name].methodize();
    return m;
  });

  if (Prototype.Browser.IE) {
    Object.extend(methods, {
      stopPropagation: function() { this.cancelBubble =3D true },
      preventDefault:  function() { this.returnValue =3D false },
      inspect: function() { return "[object Event]" }
    });

    return function(event) {
      if (!event) return false;
      if (event._extendedByPrototype) return event;

      event._extendedByPrototype =3D Prototype.emptyFunction;
      var pointer =3D Event.pointer(event);
      Object.extend(event, {
        target: event.srcElement,
        relatedTarget: Event.relatedTarget(event),
        pageX:  pointer.x,
        pageY:  pointer.y
      });
      return Object.extend(event, methods);
    };

  } else {
    Event.prototype =3D Event.prototype || =
document.createEvent("HTMLEvents").__proto__;
    Object.extend(Event.prototype, methods);
    return Prototype.K;
  }
})();

Object.extend(Event, (function() {
  var cache =3D Event.cache;

  function getEventID(element) {
    if (element._prototypeEventID) return element._prototypeEventID[0];
    arguments.callee.id =3D arguments.callee.id || 1;
    return element._prototypeEventID =3D [++arguments.callee.id];
  }

  function getDOMEventName(eventName) {
    if (eventName && eventName.include(':')) return "dataavailable";
    return eventName;
  }

  function getCacheForID(id) {
    return cache[id] =3D cache[id] || { };
  }

  function getWrappersForEventName(id, eventName) {
    var c =3D getCacheForID(id);
    return c[eventName] =3D c[eventName] || [];
  }

  function createWrapper(element, eventName, handler) {
    var id =3D getEventID(element);
    var c =3D getWrappersForEventName(id, eventName);
    if (c.pluck("handler").include(handler)) return false;

    var wrapper =3D function(event) {
      if (!Event || !Event.extend ||
        (event.eventName && event.eventName !=3D eventName))
          return false;

      Event.extend(event);
      handler.call(element, event);
    };

    wrapper.handler =3D handler;
    c.push(wrapper);
    return wrapper;
  }

  function findWrapper(id, eventName, handler) {
    var c =3D getWrappersForEventName(id, eventName);
    return c.find(function(wrapper) { return wrapper.handler =3D=3D =
handler });
  }

  function destroyWrapper(id, eventName, handler) {
    var c =3D getCacheForID(id);
    if (!c[eventName]) return false;
    c[eventName] =3D c[eventName].without(findWrapper(id, eventName, =
handler));
  }

  function destroyCache() {
    for (var id in cache)
      for (var eventName in cache[id])
        cache[id][eventName] =3D null;
  }

  if (window.attachEvent) {
    window.attachEvent("onunload", destroyCache);
  }

  return {
    observe: function(element, eventName, handler) {
      element =3D $(element);
      var name =3D getDOMEventName(eventName);

      var wrapper =3D createWrapper(element, eventName, handler);
      if (!wrapper) return element;

      if (element.addEventListener) {
        element.addEventListener(name, wrapper, false);
      } else {
        element.attachEvent("on" + name, wrapper);
      }

      return element;
    },

    stopObserving: function(element, eventName, handler) {
      element =3D $(element);
      var id =3D getEventID(element), name =3D =
getDOMEventName(eventName);

      if (!handler && eventName) {
        getWrappersForEventName(id, eventName).each(function(wrapper) {
          element.stopObserving(eventName, wrapper.handler);
        });
        return element;

      } else if (!eventName) {
        Object.keys(getCacheForID(id)).each(function(eventName) {
          element.stopObserving(eventName);
        });
        return element;
      }

      var wrapper =3D findWrapper(id, eventName, handler);
      if (!wrapper) return element;

      if (element.removeEventListener) {
        element.removeEventListener(name, wrapper, false);
      } else {
        element.detachEvent("on" + name, wrapper);
      }

      destroyWrapper(id, eventName, handler);

      return element;
    },

    fire: function(element, eventName, memo) {
      element =3D $(element);
      if (element =3D=3D document && document.createEvent && =
!element.dispatchEvent)
        element =3D document.documentElement;

      var event;
      if (document.createEvent) {
        event =3D document.createEvent("HTMLEvents");
        event.initEvent("dataavailable", true, true);
      } else {
        event =3D document.createEventObject();
        event.eventType =3D "ondataavailable";
      }

      event.eventName =3D eventName;
      event.memo =3D memo || { };

      if (document.createEvent) {
        element.dispatchEvent(event);
      } else {
        element.fireEvent(event.eventType, event);
      }

      return Event.extend(event);
    }
  };
})());

Object.extend(Event, Event.Methods);

Element.addMethods({
  fire:          Event.fire,
  observe:       Event.observe,
  stopObserving: Event.stopObserving
});

Object.extend(document, {
  fire:          Element.Methods.fire.methodize(),
  observe:       Element.Methods.observe.methodize(),
  stopObserving: Element.Methods.stopObserving.methodize(),
  loaded:        false
});

(function() {
  /* Support for the DOMContentLoaded event is based on work by Dan =
Webb,
     Matthias Miller, Dean Edwards and John Resig. */

  var timer;

  function fireContentLoadedEvent() {
    if (document.loaded) return;
    if (timer) window.clearInterval(timer);
    document.fire("dom:loaded");
    document.loaded =3D true;
  }

  if (document.addEventListener) {
    if (Prototype.Browser.WebKit) {
      timer =3D window.setInterval(function() {
        if (/loaded|complete/.test(document.readyState))
          fireContentLoadedEvent();
      }, 0);

      Event.observe(window, "load", fireContentLoadedEvent);

    } else {
      document.addEventListener("DOMContentLoaded",
        fireContentLoadedEvent, false);
    }

  } else {
    document.write("<script id=3D__onDOMContentLoaded defer =
src=3D//:><\/script>");
    $("__onDOMContentLoaded").onreadystatechange =3D function() {
      if (this.readyState =3D=3D "complete") {
        this.onreadystatechange =3D null;
        fireContentLoadedEvent();
      }
    };
  }
})();
/*------------------------------- DEPRECATED =
-------------------------------*/

Hash.toQueryString =3D Object.toQueryString;

var Toggle =3D { display: Element.toggle };

Element.Methods.childOf =3D Element.Methods.descendantOf;

var Insertion =3D {
  Before: function(element, content) {
    return Element.insert(element, {before:content});
  },

  Top: function(element, content) {
    return Element.insert(element, {top:content});
  },

  Bottom: function(element, content) {
    return Element.insert(element, {bottom:content});
  },

  After: function(element, content) {
    return Element.insert(element, {after:content});
  }
};

var $continue =3D new Error('"throw $continue" is deprecated, use =
"return" instead');

// This should be moved to script.aculo.us; notice the deprecated =
methods
// further below, that map to the newer Element methods.
var Position =3D {
  // set to true if needed, warning: firefox performance problems
  // NOT neeeded for page scrolling, only if draggable contained in
  // scrollable elements
  includeScrollOffsets: false,

  // must be called before calling withinIncludingScrolloffset, every =
time the
  // page is scrolled
  prepare: function() {
    this.deltaX =3D  window.pageXOffset
                || document.documentElement.scrollLeft
                || document.body.scrollLeft
                || 0;
    this.deltaY =3D  window.pageYOffset
                || document.documentElement.scrollTop
                || document.body.scrollTop
                || 0;
  },

  // caches x/y coordinate pair to use with overlap
  within: function(element, x, y) {
    if (this.includeScrollOffsets)
      return this.withinIncludingScrolloffsets(element, x, y);
    this.xcomp =3D x;
    this.ycomp =3D y;
    this.offset =3D Element.cumulativeOffset(element);

    return (y >=3D this.offset[1] &&
            y <  this.offset[1] + element.offsetHeight &&
            x >=3D this.offset[0] &&
            x <  this.offset[0] + element.offsetWidth);
  },

  withinIncludingScrolloffsets: function(element, x, y) {
    var offsetcache =3D Element.cumulativeScrollOffset(element);

    this.xcomp =3D x + offsetcache[0] - this.deltaX;
    this.ycomp =3D y + offsetcache[1] - this.deltaY;
    this.offset =3D Element.cumulativeOffset(element);

    return (this.ycomp >=3D this.offset[1] &&
            this.ycomp <  this.offset[1] + element.offsetHeight &&
            this.xcomp >=3D this.offset[0] &&
            this.xcomp <  this.offset[0] + element.offsetWidth);
  },

  // within must be called directly before
  overlap: function(mode, element) {
    if (!mode) return 0;
    if (mode =3D=3D 'vertical')
      return ((this.offset[1] + element.offsetHeight) - this.ycomp) /
        element.offsetHeight;
    if (mode =3D=3D 'horizontal')
      return ((this.offset[0] + element.offsetWidth) - this.xcomp) /
        element.offsetWidth;
  },

  // Deprecation layer -- use newer Element methods now (1.5.2).

  cumulativeOffset: Element.Methods.cumulativeOffset,

  positionedOffset: Element.Methods.positionedOffset,

  absolutize: function(element) {
    Position.prepare();
    return Element.absolutize(element);
  },

  relativize: function(element) {
    Position.prepare();
    return Element.relativize(element);
  },

  realOffset: Element.Methods.cumulativeScrollOffset,

  offsetParent: Element.Methods.getOffsetParent,

  page: Element.Methods.viewportOffset,

  clone: function(source, target, options) {
    options =3D options || { };
    return Element.clonePosition(target, source, options);
  }
};

/*-----------------------------------------------------------------------=
---*/

if (!document.getElementsByClassName) document.getElementsByClassName =
=3D function(instanceMethods){
  function iter(name) {
    return name.blank() ? null : "[contains(concat(' ', @class, ' '), ' =
" + name + " ')]";
  }

  instanceMethods.getElementsByClassName =3D =
Prototype.BrowserFeatures.XPath ?
  function(element, className) {
    className =3D className.toString().strip();
    var cond =3D /\s/.test(className) ? $w(className).map(iter).join('') =
: iter(className);
    return cond ? document._getElementsByXPath('.//*' + cond, element) : =
[];
  } : function(element, className) {
    className =3D className.toString().strip();
    var elements =3D [], classNames =3D (/\s/.test(className) ? =
$w(className) : null);
    if (!classNames && !className) return elements;

    var nodes =3D $(element).getElementsByTagName('*');
    className =3D ' ' + className + ' ';

    for (var i =3D 0, child, cn; child =3D nodes[i]; i++) {
      if (child.className && (cn =3D ' ' + child.className + ' ') && =
(cn.include(className) ||
          (classNames && classNames.all(function(name) {
            return !name.toString().blank() && cn.include(' ' + name + ' =
');
          }))))
        elements.push(Element.extend(child));
    }
    return elements;
  };

  return function(className, parentElement) {
    return $(parentElement || =
document.body).getElementsByClassName(className);
  };
}(Element.Methods);

/*-----------------------------------------------------------------------=
---*/

Element.ClassNames =3D Class.create();
Element.ClassNames.prototype =3D {
  initialize: function(element) {
    this.element =3D $(element);
  },

  _each: function(iterator) {
    this.element.className.split(/\s+/).select(function(name) {
      return name.length > 0;
    })._each(iterator);
  },

  set: function(className) {
    this.element.className =3D className;
  },

  add: function(classNameToAdd) {
    if (this.include(classNameToAdd)) return;
    this.set($A(this).concat(classNameToAdd).join(' '));
  },

  remove: function(classNameToRemove) {
    if (!this.include(classNameToRemove)) return;
    this.set($A(this).without(classNameToRemove).join(' '));
  },

  toString: function() {
    return $A(this).join(' ');
  }
};

Object.extend(Element.ClassNames.prototype, Enumerable);

/*-----------------------------------------------------------------------=
---*/

Element.addMethods();

// -------------------------------------------------------------------
// DHTML Window Widget- By Dynamic Drive, available at: =
http://www.dynamicdrive.com
// v1.0: Script created Feb 15th, 07'
// v1.01: Feb 21th, 07' (see changelog.txt)
// v1.02: March 26th, 07' (see changelog.txt)
// v1.03: May 5th, 07' (see changelog.txt)
// v1.1:  Oct 29th, 07' (see changelog.txt)
// -------------------------------------------------------------------

var dhtmlwindow=3D{
imagefiles:['windowfiles/min.gif', 'windowfiles/close.gif', =
'windowfiles/restore.gif', 'windowfiles/resize.gif'], //Path to 4 images =
used by script, in that order
ajaxbustcache: true, //Bust caching when fetching a file via Ajax?
ajaxloadinghtml: '<b>Loading Page. Please wait...</b>', //HTML to show =
while window fetches Ajax Content?

minimizeorder: 0,
zIndexvalue:100,
tobjects: [], //object to contain references to dhtml window divs, for =
cleanup purposes
lastactivet: {}, //reference to last active DHTML window

init:function(t){
	var domwindow=3Ddocument.createElement("div") //create dhtml window div
	domwindow.id=3Dt
	domwindow.className=3D"dhtmlwindow"
	var domwindowdata=3D''
	domwindowdata=3D'<div class=3D"drag-handle">'
	domwindowdata+=3D'DHTML Window <div class=3D"drag-controls"><img =
src=3D"'+this.imagefiles[0]+'" title=3D"Minimize" /><img =
src=3D"'+this.imagefiles[1]+'" title=3D"Close" /></div>'
	domwindowdata+=3D'</div>'
	domwindowdata+=3D'<div class=3D"drag-contentarea"></div>'
	domwindowdata+=3D'<div class=3D"drag-statusarea"><div =
class=3D"drag-resizearea" style=3D"background: transparent =
url('+this.imagefiles[3]+') top right no-repeat;">&nbsp;</div></div>'
	domwindowdata+=3D'</div>'
	domwindow.innerHTML=3Ddomwindowdata
	document.getElementById("dhtmlwindowholder").appendChild(domwindow)
	//this.zIndexvalue=3D(this.zIndexvalue)? this.zIndexvalue+1 : 100 =
//z-index value for DHTML window: starts at 0, increments whenever a =
window has focus
	var t=3Ddocument.getElementById(t)
	var divs=3Dt.getElementsByTagName("div")
	for (var i=3D0; i<divs.length; i++){ //go through divs inside dhtml =
window and extract all those with class=3D"drag-" prefix
		if (/drag-/.test(divs[i].className))
			t[divs[i].className.replace(/drag-/, "")]=3Ddivs[i] //take out the =
"drag-" prefix for shorter access by name
	}
	//t.style.zIndex=3Dthis.zIndexvalue //set z-index of this dhtml window
	t.handle._parent=3Dt //store back reference to dhtml window
	t.resizearea._parent=3Dt //same
	t.controls._parent=3Dt //same
	t.onclose=3Dfunction(){return true} //custom event handler "onclose"
	t.onmousedown=3Dfunction(){dhtmlwindow.setfocus(this)} //Increase =
z-index of window when focus is on it
	t.handle.onmousedown=3Ddhtmlwindow.setupdrag //set up drag behavior =
when mouse down on handle div
	t.resizearea.onmousedown=3Ddhtmlwindow.setupdrag //set up drag behavior =
when mouse down on resize div
	t.controls.onclick=3Ddhtmlwindow.enablecontrols
	t.show=3Dfunction(){dhtmlwindow.show(this)} //public function for =
showing dhtml window
	t.hide=3Dfunction(){dhtmlwindow.hide(this)} //public function for =
hiding dhtml window
	t.close=3Dfunction(){dhtmlwindow.close(this)} //public function for =
closing dhtml window (also empties DHTML window content)
	t.isClosed=3Dfalse;
	t.setSize=3Dfunction(w, h){dhtmlwindow.setSize(this, w, h)} //public =
function for setting window dimensions
	t.moveTo=3Dfunction(x, y){dhtmlwindow.moveTo(this, x, y)} //public =
function for moving dhtml window (relative to viewpoint)
	t.isResize=3Dfunction(bol){dhtmlwindow.isResize(this, bol)} //public =
function for specifying if window is resizable
	t.isScrolling=3Dfunction(bol){dhtmlwindow.isScrolling(this, bol)} =
//public function for specifying if window content contains scrollbars
	t.load=3Dfunction(contenttype, contentsource, =
title){dhtmlwindow.load(this, contenttype, contentsource, title)} =
//public function for loading content into window
	this.tobjects[this.tobjects.length]=3Dt
	return t //return reference to dhtml window div
},

open:function(t, contenttype, contentsource, title, attr, recalonload){
	var d=3Ddhtmlwindow //reference dhtml window object
	function getValue(Name){
		var config=3Dnew RegExp(Name+"=3D([^,]+)", "i") //get name/value =
config pair (ie: width=3D400px,)
		return (config.test(attr))? parseInt(RegExp.$1) : 0 //return value =
portion (int), or 0 (false) if none found
	}
	if (document.getElementById(t)=3D=3Dnull) //if window doesn't exist =
yet, create it
		t=3Dthis.init(t) //return reference to dhtml window div
	else
		t=3Ddocument.getElementById(t)
	this.setfocus(t)
	t.setSize(getValue(("width")), (getValue("height"))) //Set dimensions =
of window
	var xpos=3DgetValue("center")? "middle" : getValue("left") //Get x =
coord of window
	var ypos=3DgetValue("center")? "middle" : getValue("top") //Get y coord =
of window
	//t.moveTo(xpos, ypos) //Position window
	if (typeof recalonload!=3D"undefined" && recalonload=3D=3D"recal" && =
this.scroll_top=3D=3D0){ //reposition window when page fully loads with =
updated window viewpoints?
		if (window.attachEvent && !window.opera) //In IE, add another 400 =
milisecs on page load (viewpoint properties may return 0 b4 then)
			this.addEvent(window, function(){setTimeout(function(){t.moveTo(xpos, =
ypos)}, 400)}, "load")
		else
			this.addEvent(window, function(){t.moveTo(xpos, ypos)}, "load")
	}
	t.isResize(getValue("resize")) //Set whether window is resizable
	t.isScrolling(getValue("scrolling")) //Set whether window should =
contain scrollbars
	t.style.visibility=3D"visible"
	t.style.display=3D"block"
	t.contentarea.style.display=3D"block"
	t.moveTo(xpos, ypos) //Position window
	t.load(contenttype, contentsource, title)
	if (t.state=3D=3D"minimized" && =
t.controls.firstChild.title=3D=3D"Restore"){ //If window exists and is =
currently minimized?
		t.controls.firstChild.setAttribute("src", dhtmlwindow.imagefiles[0]) =
//Change "restore" icon within window interface to "minimize" icon
		t.controls.firstChild.setAttribute("title", "Minimize")
		t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
	}
	return t
},

setSize:function(t, w, h){ //set window size (min is 150px wide by 100px =
tall)
	t.style.width=3DMath.max(parseInt(w), 150)+"px"
	t.contentarea.style.height=3DMath.max(parseInt(h), 100)+"px"
},

moveTo:function(t, x, y){ //move window. Position includes current =
viewpoint of document
	this.getviewpoint() //Get current viewpoint numbers
	t.style.left=3D(x=3D=3D"middle")? =
this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px" : =
this.scroll_left+parseInt(x)+"px"
	t.style.top=3D(y=3D=3D"middle")? =
this.scroll_top+(this.docheight-t.offsetHeight)/2+"px" : =
this.scroll_top+parseInt(y)+"px"
},

isResize:function(t, bol){ //show or hide resize inteface (part of the =
status bar)
	t.statusarea.style.display=3D(bol)? "block" : "none"
	t.resizeBool=3D(bol)? 1 : 0
},

isScrolling:function(t, bol){ //set whether loaded content contains =
scrollbars
	t.contentarea.style.overflow=3D(bol)? "auto" : "hidden"
},

load:function(t, contenttype, contentsource, title){ //loads content =
into window plus set its title (3 content types: "inline", "iframe", or =
"ajax")
	if (t.isClosed){
		alert("DHTML Window has been closed, so no window to load contents =
into. Open/Create the window again.")
		return
	}
	var contenttype=3Dcontenttype.toLowerCase() //convert string to lower =
case
	if (typeof title!=3D"undefined")
		t.handle.firstChild.nodeValue=3Dtitle
	if (contenttype=3D=3D"inline")
		t.contentarea.innerHTML=3Dcontentsource
	else if (contenttype=3D=3D"div"){
		var inlinedivref=3Ddocument.getElementById(contentsource)
		t.contentarea.innerHTML=3D(inlinedivref.defaultHTML || =
inlinedivref.innerHTML) //Populate window with contents of inline div on =
page
		if (!inlinedivref.defaultHTML)
			inlinedivref.defaultHTML=3Dinlinedivref.innerHTML //save HTML within =
inline DIV
		inlinedivref.innerHTML=3D"" //then, remove HTML within inline DIV (to =
prevent duplicate IDs, NAME attributes etc in contents of DHTML window
		inlinedivref.style.display=3D"none" //hide that div
	}
	else if (contenttype=3D=3D"iframe"){
		t.contentarea.style.overflow=3D"hidden" //disable window scrollbars, =
as iframe already contains scrollbars
		if (!t.contentarea.firstChild || =
t.contentarea.firstChild.tagName!=3D"IFRAME") //If iframe tag doesn't =
exist already, create it first
			t.contentarea.innerHTML=3D'<iframe src=3D"" style=3D"margin:0; =
padding:0; width:100%; height: 100%" =
name=3D"_iframe-'+t.id+'"></iframe>'
		window.frames["_iframe-"+t.id].location.replace(contentsource) //set =
location of iframe window to specified URL
		}
	else if (contenttype=3D=3D"ajax"){
		this.ajax_connect(contentsource, t) //populate window with external =
contents fetched via Ajax
	}
	t.contentarea.datatype=3Dcontenttype //store contenttype of current =
window for future reference
},

setupdrag:function(e){
	var d=3Ddhtmlwindow //reference dhtml window object
	var t=3Dthis._parent //reference dhtml window div
	d.etarget=3Dthis //remember div mouse is currently held down on =
("handle" or "resize" div)
	var e=3Dwindow.event || e
	d.initmousex=3De.clientX //store x position of mouse onmousedown
	d.initmousey=3De.clientY
	d.initx=3DparseInt(t.offsetLeft) //store offset x of window div =
onmousedown
	d.inity=3DparseInt(t.offsetTop)
	d.width=3DparseInt(t.offsetWidth) //store width of window div
	d.contentheight=3DparseInt(t.contentarea.offsetHeight) //store height =
of window div's content div
	if (t.contentarea.datatype=3D=3D"iframe"){ //if content of this window =
div is "iframe"
		t.style.backgroundColor=3D"#F8F8F8" //colorize and hide content div =
(while window is being dragged)
		t.contentarea.style.visibility=3D"hidden"
	}
	document.onmousemove=3Dd.getdistance //get distance travelled by mouse =
as it moves
	document.onmouseup=3Dfunction(){
		if (t.contentarea.datatype=3D=3D"iframe"){ //restore color and =
visibility of content div onmouseup
			t.contentarea.style.backgroundColor=3D"white"
			t.contentarea.style.visibility=3D"visible"
		}
		d.stop()
	}
	return false
},

getdistance:function(e){
	var d=3Ddhtmlwindow
	var etarget=3Dd.etarget
	var e=3Dwindow.event || e
	d.distancex=3De.clientX-d.initmousex //horizontal distance travelled =
relative to starting point
	d.distancey=3De.clientY-d.initmousey
	if (etarget.className=3D=3D"drag-handle") //if target element is =
"handle" div
		d.move(etarget._parent, e)
	else if (etarget.className=3D=3D"drag-resizearea") //if target element =
is "resize" div
		d.resize(etarget._parent, e)
	return false //cancel default dragging behavior
},

getviewpoint:function(){ //get window viewpoint numbers
	var ie=3Ddocument.all && !window.opera
	var domclientWidth=3Ddocument.documentElement && =
parseInt(document.documentElement.clientWidth) || 100000 //Preliminary =
doc width in non IE browsers
	this.standardbody=3D(document.compatMode=3D=3D"CSS1Compat")? =
document.documentElement : document.body //create reference to common =
"body" across doctypes
	this.scroll_top=3D(ie)? this.standardbody.scrollTop : =
window.pageYOffset
	this.scroll_left=3D(ie)? this.standardbody.scrollLeft : =
window.pageXOffset
	this.docwidth=3D(ie)? this.standardbody.clientWidth : =
(/Safari/i.test(navigator.userAgent))? window.innerWidth : =
Math.min(domclientWidth, window.innerWidth-16)
	this.docheight=3D(ie)? this.standardbody.clientHeight: =
window.innerHeight
},

rememberattrs:function(t){ //remember certain attributes of the window =
when it's minimized or closed, such as dimensions, position on page
	this.getviewpoint() //Get current window viewpoint numbers
	t.lastx=3DparseInt((t.style.left || =
t.offsetLeft))-dhtmlwindow.scroll_left //store last known x coord of =
window just before minimizing
	t.lasty=3DparseInt((t.style.top || t.offsetTop))-dhtmlwindow.scroll_top
	t.lastwidth=3DparseInt(t.style.width) //store last known width of =
window just before minimizing/ closing
},

move:function(t, e){
	t.style.left=3Ddhtmlwindow.distancex+dhtmlwindow.initx+"px"
	t.style.top=3Ddhtmlwindow.distancey+dhtmlwindow.inity+"px"
},

resize:function(t, e){
	t.style.width=3DMath.max(dhtmlwindow.width+dhtmlwindow.distancex, =
150)+"px"
	=
t.contentarea.style.height=3DMath.max(dhtmlwindow.contentheight+dhtmlwind=
ow.distancey, 100)+"px"
},

enablecontrols:function(e){
	var d=3Ddhtmlwindow
	var sourceobj=3Dwindow.event? window.event.srcElement : e.target //Get =
element within "handle" div mouse is currently on (the controls)
	if (/Minimize/i.test(sourceobj.getAttribute("title"))) //if this is the =
"minimize" control
		d.minimize(sourceobj, this._parent)
	else if (/Restore/i.test(sourceobj.getAttribute("title"))) //if this is =
the "restore" control
		d.restore(sourceobj, this._parent)
	else if (/Close/i.test(sourceobj.getAttribute("title"))) //if this is =
the "close" control
		d.close(this._parent)
	return false
},

minimize:function(button, t){
	dhtmlwindow.rememberattrs(t)
	button.setAttribute("src", dhtmlwindow.imagefiles[2])
	button.setAttribute("title", "Restore")
	t.state=3D"minimized" //indicate the state of the window as being =
"minimized"
	t.contentarea.style.display=3D"none"
	t.statusarea.style.display=3D"none"
	if (typeof t.minimizeorder=3D=3D"undefined"){ //stack order of minmized =
window on screen relative to any other minimized windows
		dhtmlwindow.minimizeorder++ //increment order
		t.minimizeorder=3Ddhtmlwindow.minimizeorder
	}
	t.style.left=3D"10px" //left coord of minmized window
	t.style.width=3D"200px"
	var windowspacing=3Dt.minimizeorder*10 //spacing (gap) between each =
minmized window(s)
	=
t.style.top=3Ddhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offs=
etHeight*t.minimizeorder)-windowspacing+"px"
},

restore:function(button, t){
	dhtmlwindow.getviewpoint()
	button.setAttribute("src", dhtmlwindow.imagefiles[0])
	button.setAttribute("title", "Minimize")
	t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
	t.style.display=3D"block"
	t.contentarea.style.display=3D"block"
	if (t.resizeBool) //if this window is resizable, enable the resize icon
		t.statusarea.style.display=3D"block"
	t.style.left=3DparseInt(t.lastx)+dhtmlwindow.scroll_left+"px" =
//position window to last known x coord just before minimizing
	t.style.top=3DparseInt(t.lasty)+dhtmlwindow.scroll_top+"px"
	t.style.width=3DparseInt(t.lastwidth)+"px"
},


close:function(t){
	try{
		var closewinbol=3Dt.onclose()
	}
	catch(err){ //In non IE browsers, all errors are caught, so just run =
the below
		var closewinbol=3Dtrue
 }
	finally{ //In IE, not all errors are caught, so check if variable isn't =
defined in IE in those cases
		if (typeof closewinbol=3D=3D"undefined"){
			alert("An error has occured somwhere inside your \"onclose\" event =
handler")
			var closewinbol=3Dtrue
		}
	}
	if (closewinbol){ //if custom event handler function returns true
		if (t.state!=3D"minimized") //if this window isn't currently minimized
			dhtmlwindow.rememberattrs(t) //remember window's dimensions/position =
on the page before closing
		if (window.frames["_iframe-"+t.id]) //if this is an IFRAME DHTML =
window
			window.frames["_iframe-"+t.id].location.replace("about:blank")
		else
			t.contentarea.innerHTML=3D""
		t.style.display=3D"none"
		t.isClosed=3Dtrue //tell script this window is closed (for detection =
in t.show())
	}
	return closewinbol
},


setopacity:function(targetobject, value){ //Sets the opacity of =
targetobject based on the passed in value setting (0 to 1 and in =
between)
	if (!targetobject)
		return
	if (targetobject.filters && targetobject.filters[0]){ //IE syntax
		if (typeof targetobject.filters[0].opacity=3D=3D"number") //IE6
			targetobject.filters[0].opacity=3Dvalue*100
		else //IE 5.5
			targetobject.style.filter=3D"alpha(opacity=3D"+value*100+")"
		}
	else if (typeof targetobject.style.MozOpacity!=3D"undefined") //Old =
Mozilla syntax
		targetobject.style.MozOpacity=3Dvalue
	else if (typeof targetobject.style.opacity!=3D"undefined") //Standard =
opacity syntax
		targetobject.style.opacity=3Dvalue
},

setfocus:function(t){ //Sets focus to the currently active window
	this.zIndexvalue++
	t.style.zIndex=3Dthis.zIndexvalue
	t.isClosed=3Dfalse //tell script this window isn't closed (for =
detection in t.show())
	this.setopacity(this.lastactivet.handle, 0.5) //unfocus last active =
window
	this.setopacity(t.handle, 1) //focus currently active window
	this.lastactivet=3Dt //remember last active window
},


show:function(t){
	if (t.isClosed){
		alert("DHTML Window has been closed, so nothing to show. Open/Create =
the window again.")
		return
	}
	if (t.lastx) //If there exists previously stored information such as =
last x position on window attributes (meaning it's been minimized or =
closed)
		dhtmlwindow.restore(t.controls.firstChild, t) //restore the window =
using that info
	else
		t.style.display=3D"block"
	this.setfocus(t)
	t.state=3D"fullview" //indicate the state of the window as being =
"fullview"
},

hide:function(t){
	t.style.display=3D"none"
},

ajax_connect:function(url, t){
	var page_request =3D false
	var bustcacheparameter=3D""
	if (window.XMLHttpRequest) // if Mozilla, IE7, Safari etc
		page_request =3D new XMLHttpRequest()
	else if (window.ActiveXObject){ // if IE6 or below
		try {
		page_request =3D new ActiveXObject("Msxml2.XMLHTTP")
		}=20
		catch (e){
			try{
			page_request =3D new ActiveXObject("Microsoft.XMLHTTP")
			}
			catch (e){}
		}
	}
	else
		return false
	t.contentarea.innerHTML=3Dthis.ajaxloadinghtml
	=
page_request.onreadystatechange=3Dfunction(){dhtmlwindow.ajax_loadpage(pa=
ge_request, t)}
	if (this.ajaxbustcache) //if bust caching of external page
		bustcacheparameter=3D(url.indexOf("?")!=3D-1)? "&"+new =
Date().getTime() : "?"+new Date().getTime()
	page_request.open('GET', url+bustcacheparameter, true)
	page_request.send(null)
},

ajax_loadpage:function(page_request, t){
	if (page_request.readyState =3D=3D 4 && (page_request.status=3D=3D200 =
|| window.location.href.indexOf("http")=3D=3D-1)){
	t.contentarea.innerHTML=3Dpage_request.responseText
	}
},


stop:function(){
	dhtmlwindow.etarget=3Dnull //clean up
	document.onmousemove=3Dnull
	document.onmouseup=3Dnull
},

addEvent:function(target, functionref, tasktype){ //assign a function to =
execute to an event handler (ie: onunload)
	var tasktype=3D(window.addEventListener)? tasktype : "on"+tasktype
	if (target.addEventListener)
		target.addEventListener(tasktype, functionref, false)
	else if (target.attachEvent)
		target.attachEvent(tasktype, functionref)
},

cleanup:function(){
	for (var i=3D0; i<dhtmlwindow.tobjects.length; i++){
		=
dhtmlwindow.tobjects[i].handle._parent=3Ddhtmlwindow.tobjects[i].resizear=
ea._parent=3Ddhtmlwindow.tobjects[i].controls._parent=3Dnull
	}
	window.onload=3Dnull
}

} //End dhtmlwindow object

document.write('<div id=3D"dhtmlwindowholder"><span =
style=3D"display:none">.</span></div>') //container that holds all dhtml =
window divs on page
window.onunload=3Ddhtmlwindow.cleanup


var ProtoProxy =3D {  // proxy the call to prototype's '$' function.
    tp_GetID: function (nodeName) {=20
      var nodeResult;
        try {
            nodeResult =3D $tp_GetID(nodeName);
            } catch(e){
            try {
                nodeResult =3D $(nodeName)
                } catch(e){}
              }
        return nodeResult;
      },
     =20
    tp_Show: function (nodeName) {
        try {
            var node =3D ProtoProxy.tp_GetID(nodeName);
            node.style.display=3D"block"
        } catch(e) {}
    },
   =20
    tp_Hide: function (nodeName) {
        try {
            var node =3D ProtoProxy.tp_GetID(nodeName);
            node.style.display=3D"none"
        } catch(e) {}
    }
}

var tp_captchaMgr =3D Class.create();
tp_captchaMgr.prototype =3D {
   initialize: function(domain) {
	this.imgCaptcha=3D'tp_imgCaptcha';
	this.code=3D'tp_cc';
	this.domain=3D"";
	if(this.initialize.arguments[0]){this.domain=3Ddomain;}
	this.url=3Dthis.domain+"/apis/scripts/updatecaptcha.ashx";
	this.useXMLHttpRequest=3Dtrue;
	=
if(this.initialize.arguments[1]){if(this.initialize.arguments[1]=3D=3Dfal=
se){this.useXMLHttpRequest=3Dfalse;}}
   },
  =20
   updateCaptcha: function()
	{=20
	//var u=3Dthis.domain+"/apis/scripts/updatecaptcha.ashx";
	//alert(this.url);
	//var myAjax =3D new Ajax.Request(this.url +"&"+Math.random(),{method: =
'get', parameters: "", onComplete: this.replaceCaptcha.bind(this)});
	if (this.useXMLHttpRequest=3D=3Dfalse)
		{
		tp_remoteMgr.addScript("tp_remotemgr.updatecaptcha.",this.url =
+"&rnd=3D"+Math.random()+"&xmlhttp=3Dfalse");
		}
	else
		{
		var myAjax =3D new Ajax.Request(this.url =
+"&rnd=3D"+Math.random()+"&xmlhttp=3Dtrue",{method: 'get', parameters: =
"", onComplete: this.replaceCaptcha.bind(this)});
		}
	},
=09
   updateURL: function(u)
	{=20
	this.url=3Du;
	},

   replaceCaptcha: function(r) =20
	{
	try{=09
		var tp_updatedImage =3D r.responseText.evalJSON();	=09
		var i =3D ProtoProxy.tp_GetID(this.imgCaptcha);
		var c =3D ProtoProxy.tp_GetID(this.code);
		i.src=3Dtp_updatedImage.src;
		c.value=3Dtp_updatedImage.cc;	=09
	}
	catch(e){"error: " + alert(e.message);}
	}
}=09


var tp_remoteManager =3D {};

var ProtoProxy =3D {  // proxy the call to prototype's '$' function.
    tp_GetID: function (nodeName) {=20
      var nodeResult;
        try {
            nodeResult =3D $tp_GetID(nodeName);
            } catch(e){
            try {
                nodeResult =3D $(nodeName)
                } catch(e){}
              }
        return nodeResult;
      },
     =20
    tp_Show: function (nodeName) {
        try {
            var node =3D ProtoProxy.tp_GetID(nodeName);
            node.style.display=3D"block"
        } catch(e) {}
    },
   =20
    tp_Hide: function (nodeName) {
        try {
            var node =3D ProtoProxy.tp_GetID(nodeName);
            node.style.display=3D"none"
        } catch(e) {}
    }
}


tp_remoteManager.Utility =3D function(){
	this.debug=3Dfalse;
	this.proxy =3D '';
	this.loginWin =3D '';
	this.logoutWin =3D '';
	this.captchaWin =3D '';
	this.useXMLHttpRequest=3Dfalse;
	this.regWin =3D '';
	this.host =3D "http://my.kentuckynewera.com";
	this.regWinWidth =3D "400";
	this.regWinHeight =3D "500";
	this.loginWinWidth =3D "275";
	this.loginWinHeight =3D "275";
	this.logoutWinWidth =3D "350";
	this.logoutWinHeight =3D "125";
	this.activeWin =3D "";=09
	this.cssURL=3Dthis.host+"/custom/theport/remotemgrstyle.css";=09
	this.iframeURL=3Dthis.host+"/apis/scripts/ajaxiframe.aspx?";=09
	this.regURL=3D""; =
//this.host+"/community/app/reg/tptwiz/step.aspx?rem=3D1";
	this.loginURL=3D""; //this.host+"/apis/scripts/remotelogin.aspx";
	this.logoutURL=3Dthis.host+"/apis/scripts/remotelogout.aspx";
	this.logoutURL2=3D""; //this.host+"/apis/scripts/remotelogout.aspx";
	this.captchaURL=3Dthis.host+"/apis/scripts/remotecaptcha.aspx";
	try{this.captcha=3Dnew tp_captchaMgr(this.host);}catch(e){}
	this.activeElement =3D "";
	this.iframeSrc=3D"";
	this.iframeTargetURL=3D"";
	this.iframeOnComplete=3D"";
	this.iframeAjaxMethod=3D"";
	this.IFrame=3Dnull;
//	this.createIFrame();
	this.useProxy=3Dfalse;
	this.loginUseDHTML=3Dfalse;
	this.logoutUseDHTML=3Dtrue;
	this.regUseDHTML=3Dfalse;
	this.origDomain=3D'';
	this.page=3D1;
	this.origDomain=3Ddocument.domain;
	this.head=3Ddocument.getElementsByTagName("head").item(0);
	this.activeEditorElement=3D"";
	this.listener=3Dnull;
	this.reloadCall=3D"";
	this.err1=3D"This page must reside in kentuckynewera.com for this =
function to work properly.";
	this.err2=3D"Please enter comment text.";
	this.msg1=3D"Are you sure you want to remove this comment?";
	this.msg2=3D"The comment was successfully removed.";
	this.msg3=3D"This user will be banned and all comments removed.\n\nDo =
you wish to continue?";
	this.msg4=3D"The user was successfully banned.\n\n%num% comments were =
removed.";
	this.msg5=3D"Are you sure you want to mark this comment as featured?";
	this.msg6=3D"Are you sure you want to remove the \"featured\" setting =
from this comment?";
}

=20
tp_remoteManager.Utility.prototype =3D
{

    replace : function (str, from, to)=20
        {
        var i =3D str.indexOf(from);
        if (!from || !str || i =3D=3D -1) return str;
        var newstr =3D str.substring(0, i) + to;
        if (i+from.length < str.length)
        newstr +=3D =
replace(str.substring(i+from.length,str.length),from,to);
        return newstr;
        },=09

	loadHTML: function(d) =20
		{
		try{
			var tp_HTML =3D d.evalJSON();
			el=3DProtoProxy.tp_GetID(this.activeElement);
			el.innerHTML=3Dtp_HTML.html;
			}
		catch(e){alert('error: '+e.description);return false;}
		},
=09
	onload: function(f)
		{
		eval('this.listener =3D this.'+f+'.bindAsEventListener(this);');
		Event.observe(window, "load", this.listener);
		},
=09
	loadHTMLB: function(r) =20
		{
		this.loadHTML(r.responseText);
		},
	=09
	addScript: function(id,url)
		{
		var s =3D document.createElement("SCRIPT");
		s.src =3D encodeURI(url);
		s.id=3Did;
		this.head.appendChild(s);
		},
   =20
    addHidden: function(id,val)
		{
		var h =3D document.createElement("input");
		h.setAttribute('id',id);
        h.setAttribute('value',val);
        h.setAttribute('type','hidden');
		},
	=09
	clearScript: function(id)
		{
		=
if(ProtoProxy.tp_GetID(id)){this.head.removeChild(ProtoProxy.tp_GetID(id)=
);}
		},	=09
	=09
	createIFrame: function()
		{
		  this.IFrame=3Ddocument.createElement('iframe');
          this.IFrame.setAttribute('id','tp_remoteMgr_i');
		  this.IFrame.style.border=3D'0px';
          this.IFrame.style.width=3D'0px';
          this.IFrame.style.height=3D'0px';
          this.m_IFrameObj =3D document.body.appendChild(this.IFrame);			=

		},

	setCSS: function()
		{
		if (this.cssURL.length > 0 && this.cssURL !=3D this.host)
			{
			css=3Ddocument.createElement("link");
			css.setAttribute("rel", "stylesheet");
			css.setAttribute("type", "text/css");
			css.setAttribute("href", this.cssURL);
			document.getElementsByTagName("head").item(0).appendChild(css);
			}
		},
	=09
	callIFrame: function()
		{
		=
this.iframeSrc=3Dthis.iframeURL+'u=3D'+encodeURIComponent(this.iframeTarg=
etURL)+'&f=3D'+this.iframeOnComplete+'&m=3D'+this.iframeAjaxMethod;
		this.IFrame.src=3Dthis.iframeSrc;
		},=09
		=09
	setProxy: function(p)
		{
		this.proxy=3Dp;=20
		this.useProxy=3Dtrue;
		=
try{this.captcha.url=3Dthis.url(this.host+"/apis/scripts/updatecaptcha.as=
hx");}catch(e){}
		},
=09
	url: function(u)
		{
		if(this.useProxy=3D=3Dfalse){return u;}
		else
			{
			if (this.proxy.indexOf('%url%'))
				{
				return this.proxy.gsub('%url%',encodeURIComponent(u));
				}
			else
				{
				return this.proxy + encodeURIComponent(u);
				}=09
			}
		},
	=09
	updateCaptcha: function()
		{	=09
		try{this.captcha.updateCaptcha();}catch(e){alert(e.message);}
		},

	openLogout: function()
		{
		this.closeWindows();=20
		this.activeWin=3D'logoutWin';
		try{
		    if (this.logoutUseDHTML=3D=3Dtrue) {
			    document.domain=3D'kentuckynewera.com';
			    this.logoutWin=3Ddhtmlwindow.open('tp_logoutWindow', 'iframe', =
this.logoutURL, =
'Logout','width=3D'+this.logoutWinWidth+'px,height=3D'+this.logoutWinHeig=
ht+'px,center=3D1,resize=3D0,scrolling=3D0');=20
//			    if (this.logoutURL2!=3D"") {
//			        window.location.href=3Dthis.logoutURL2;
//			        }
			    }
			else {
			    window.location.href=3Dthis.logoutURL2;
			}
		 }catch(e){alert(this.err1);}
		},
	=09
	openLogin: function()
		{
		this.closeWindows();
		this.activeWin=3D'loginWin';
		try{
		    if (this.loginUseDHTML=3D=3Dtrue) {
			    document.domain=3D'kentuckynewera.com';
			    this.loginWin=3Ddhtmlwindow.open('tp_loginWindow', 'iframe', =
this.loginURL, =
'Login','width=3D'+this.loginWinWidth+'px,height=3D'+this.loginWinHeight+=
'px,center=3D1,resize=3D0,scrolling=3D0');=20
			    }
			else {
			    window.location.href=3Dthis.loginURL;
			}
		 }catch(e){alert(this.err1);}
		},
	=09
	openRegistration: function()
		{
		this.closeWindows();
		this.activeWin=3D'regWin';
		try{
		    if (this.regUseDHTML=3D=3Dtrue) {
			    document.domain=3D'kentuckynewera.com';
			    this.regWin=3Ddhtmlwindow.open('tp_regWindow', 'iframe', =
this.regURL, =
'Register','width=3D'+this.regWinWidth+'px,height=3D'+this.regWinHeight+'=
px,center=3D1,,resize=3D0,scrolling=3D1');=20
			    }
			else {
			    window.location.href=3Dthis.regURL;
			}

		 }catch(e){alert(this.err1);}
		},
	=09
	openCaptcha: function()
		{
		try{=20
    		this.closeWindows();
		 }catch(e){alert("error1: " + e.message + " possible cause: " + =
this.err1);}
	=09
		try{
	    	this.activeWin=3D'captchaWin';
		 }catch(e){alert("error2: " + e.message + " possible cause: " + =
this.err1);}

        var h;
        var w;
		try{
			h=3DElement.getHeight('tp_captchaArea')+'px';
			w=3DElement.getWidth('tp_captchaArea')+'px';
		 }catch(e){alert("error3: " + e.message + " possible cause: " + =
this.err1 + " \n h: " + h + " \n w:" + w);
		    h=3D'200px';
		    w=3D'300px';
		    }

		try{
		if(this.captchaWin.isClosed=3D=3Dfalse)
		    {
		    //this.captchaWin.show();
		    ProtoProxy.tp_Show(this.captchaWin);
		    }
		else{
			this.captchaWin=3Ddhtmlwindow.open('tp_captchaWindow', =
'div','tp_captchaArea', =
'Captcha','width=3D'+w+',height=3D'+h+',center=3D1,,resize=3D0,scrolling=3D=
1');=20
			}
		 }catch(e){alert("error4: " + e.message + " possible cause: " + =
this.err1 + " \n h: " + h + " \n w:" + w);}
		 //}catch(e){alert("error3: " + e.message + " possible cause: " + =
this.err1 + " \n h: " + h + "\n w:" + w );}
		},
	=09
	closeWindow: function()
		{
		//try{eval('this.'+this.activeWin+'.hide();')}catch(e){}=20
		try{eval('ProtoProxy.tp_Hide(this.'+this.activeWin+');')}catch(e){}=20
		//try{document.domain=3Dthis.origDomain;}catch(e){}
		},
			=09
	closeLogin: function()
		{=09
		//try{this.loginWin.hide()}catch(e){}=20
		try{ProtoProxy.tp_Hide(this.loginWin)}catch(e){}=20
		},
	=09
	closeLogout: function()
		{
		//try{this.logoutWin.hide();}catch(e){}=20
		try{ProtoProxy.tp_Hide(this.logoutWin);}catch(e){}=20
		},
	=09
	closeAndSwitch: function(n)
		{=20
		//try{this.loginWin.hide();}catch(e){}=20
		try{ProtoProxy.tp_Hide(this.loginWin);}catch(e){}=20
		//try{this.regWin.hide();}catch(e){}=20
		try{ProtoProxy.tp_Hide(this.regWin);}catch(e){}=20
	=09
	=09
		try{
			var un=3DProtoProxy.tp_GetID('tp_userName');
			un.innerHTML=3Dn;
			=
try{if(arguments[1]){ProtoProxy.tp_GetID('tp_userImgURL').src=3Darguments=
[1]}}catch(e){}
			this.switchToLoggedIn();
			}=09
		catch(e){alert(e.description);}
		},
	=09
	switchToNotLoggedIn: function()
		{
		try{
			//ProtoProxy.tp_GetID('tp_userNotLoggedIn').show();
			//ProtoProxy.tp_GetID('tp_userLoggedIn').hide();
			ProtoProxy.tp_Show(ProtoProxy.tp_GetID('tp_userNotLoggedIn'));
			ProtoProxy.tp_Hide(ProtoProxy.tp_GetID('tp_userLoggedIn'));
			}
		catch(e){alert(e.description);}
		},
	=09
	switchToLoggedIn: function()
		{//alert("stop");
		try{			=09
			//ProtoProxy.tp_GetID('tp_userNotLoggedIn').hide();
			//ProtoProxy.tp_GetID('tp_userLoggedIn').show();
			ProtoProxy.tp_Hide(ProtoProxy.tp_GetID('tp_userNotLoggedIn'));
			ProtoProxy.tp_Show(ProtoProxy.tp_GetID('tp_userLoggedIn'));
			}
		catch(e){}
		},
		=09
	closeWindows: function()
		{
		this.closeRegistration();
		this.closeLogin();
		this.closeLogout();
		this.closeWindow();
		this.closeCaptcha();
		},
	=09
	closeCaptcha: function()
		{=20
		=
//try{this.captchaWin.close();}catch(e){alert("closeCaptchaT:"+e.message)=
;}=20
		try{ProtoProxy.tp_Hide(this.captchaWin);}catch(e){}=20
		},
		=09
	closeRegistration: function()
		{
		try{ProtoProxy.tp_Hide(this.regWin);}catch(e){}=20
		},

	logout: function()
		{=20
		var myAjax =3D new Ajax.Request(this.logoutURL,{method: 'get', =
parameters: "", onComplete: this.switchToNotLoggedIn.bind(this)});
		},=09

	paging: function(i,u,f) =20
		{
		var url=3D'';
		var sym=3D'?';
	=09
		if (eval('this.'+u).indexOf('?')>1){sym=3D'&';}
		url=3Deval('this.'+u)+sym+'tp_page=3D'+i;
		if (this.useXMLHttpRequest=3D=3Dfalse)
			{
			this.addScript("tp_remotemgr.paging."+f,url);
			}
		else
			{
			var myAjax =3D new =
Ajax.Request(this.url(url+"&xmlhttp=3Dtrue"),{method: 'get', parameters: =
"", onComplete: eval('this.'+f+'B.bind(this)')});
			}
		},
	=09
	debugAlert: function(s)
		{
		if (this.debug=3D=3Dtrue){alert("debug string:\n\n"+s);}
		},
	=09
  openManager: function(id)
		{
		this.closeWindows();
		this.activeWin=3D'managerWin';
		var e=3DProtoProxy.tp_GetID('tp_a_mgr_'+id);
		var d=3DProtoProxy.tp_GetID('tp_div_mgr_'+id);
		this.activeEditorElement=3D'mgr_'+id;
		var dw=3DElement.getWidth(d);
		var dh=3DElement.getHeight(d);
		var ew=3DElement.getWidth(e);
		var a=3DPosition.page(e);
		var w=3Da[0]+ew+10;
		this.listener =3D this.winContextCheck.bindAsEventListener(this);
		Event.observe(document, "click", this.listener);
		this.managerWin=3Ddhtmlwindow.open('mgr_'+id, 'div', 'tp_div_mgr_'+id, =
'Manager','left=3D'+w+',top=3D'+a[1]+',width=3D'+dw+'px,height=3D'+dh+'px=
,center=3D0,,resize=3D0,scrolling=3D1');=20
		},
	=09
  winContextCheck: function(event)
		{
		=
if(Position.within(ProtoProxy.tp_GetID(this.activeEditorElement),Event.po=
interX(event),Event.pointerY(event))=3D=3Dfalse)
			{
			this.closeItemEditor();
			}
		},
  openItemEditor: function(id)
		{
		this.closeWindows();
		this.activeWin=3D'itemEditorWin';
		var e=3DProtoProxy.tp_GetID('tp_a_itemeditor_'+id);
		var d=3DProtoProxy.tp_GetID('tp_div_itemeditor_'+id);
		this.activeEditorElement=3D'itemeditor_'+id;
		var dw=3DElement.getWidth(d);
		var dh=3DElement.getHeight(d);
		var ew=3DElement.getWidth(e);
		var a=3DPosition.page(e);
		var w=3Da[0]-ew-dw;
		this.listener =3D this.winContextCheck.bindAsEventListener(this);
		Event.observe(document, "click", this.listener);
		this.itemEditorWin=3Ddhtmlwindow.open('itemeditor_'+id, 'div', =
'tp_div_itemeditor_'+id, =
'ItemEditor','left=3D'+w+',top=3D'+a[1]+',width=3D'+dw+'px,height=3D'+dh+=
'px,center=3D0,,resize=3D0,scrolling=3D1');=20
		},
			=09
	closeItemEditor: function()
		{
		try{
			this.closeWindow();
			Event.stopObserving(document, "click", this.listener);
			this.listener =3D null;
			}
		catch(e){}=09
		},
		=09
	winContextCheck: function(event)
		{
		=
if(Position.within(ProtoProxy.tp_GetID(this.activeEditorElement),Event.po=
interX(event),Event.pointerY(event))=3D=3Dfalse)
			{
			this.closeItemEditor();
			}
		},
	=09
	reloadView: function()
		{
		try{eval('this.'+this.reloadCall+'();')}catch(e){}=20
		}		=09
=09
	}
=09

tp_remoteManager.Comments =3D function(){
	var u =3D new tp_remoteManager.Utility();
	u.logoutURL2 =3D =
u.replace(u.logoutURL2,"<$tpReturnURL$>",window.location.href);
=09
//	=
if(u.logoutURL=3D=3D''){u.logoutUseDHTML=3Dtrue;u.logoutURL=3Du.host+"/ap=
is/scripts/remotelogout.aspx";}
//	    else {u.logoutURL =3D =
ThePortUtils.replace(u.logoutURL,"<$tpReturnURL$>",window.location.href);=
}
//	   =20
	=
if(u.loginURL=3D=3D''){u.loginUseDHTML=3Dtrue;u.loginURL=3Du.host+"/apis/=
scripts/remotelogin.aspx";}
	    else {u.loginURL =3D =
u.replace(u.loginURL,"<$tpReturnURL$>",window.location.href);}
	   =20
	=
if(u.regURL=3D=3D''){u.regUseDHTML=3Dtrue;u.regURL=3Du.host+"/community/a=
pp/reg/tptwiz/step.aspx?rem=3D1";}
	    else {u.regURL =3D =
u.replace(u.regURL,"<$tpReturnURL$>",window.location.href);}
	Object.extend(this,u);
	// Default processing will not use XSL transform.
	this.useXSL =3D false;
	this.setCSS();
	this.reloadCall=3D"getRequest";
	this.articleID=3D"";
	this.numResults=3D0;
	this.templateName=3D"";
	this.showPaging=3Dtrue;
	this.showNewCommentArea=3Dtrue;
	this.showLoginRegistrationArea=3Dtrue;
	this.showTotalNumArea=3Dtrue;
	this.isPermalink =3D false;
	this.permalink =3D "";
	this.articleTitle =3D "";
	this.groupID =3D "";
	this.numComments =3D 0;
	this.captchaPopup=3Dfalse;
	this.format=3D0;
	=
this.commentListURL=3D""//this.host+"/apis/scripts/remoteMgrCommentsReque=
st.ashx?eid=3D"+this.articleID+"&isPerm=3D"+this.isPermalink+"&t=3D"+this=
.articleTitle+"&u=3D"+this.permalink+"&g=3D"+this.groupID+"&rnd=3D"+Math.=
random();
	this.commentListElement =3D "tp_CommentsDiv";
	this.postCommentURL=3Dthis.host+"/apis/scripts/postcomment.ashx";
	=
this.removeCommentURL=3Dthis.host+"/apis/scripts/remoteMgrCommentsRemove.=
ashx?id=3D";
	=
this.editNoteURL=3Dthis.host+"/apis/scripts/remoteeditornote.aspx?id=3D";=

	=
this.itemManagerURL=3Dthis.host+"/apis/scripts/manageremoteitem.aspx?id=3D=
";
	=
this.itemStatsURL=3Dthis.host+"/apis/scripts/remoteitemstats.aspx?id=3D";=

	=
this.flagItemURL=3Dthis.host+"/apis/shared/reportabuse.aspx?type=3Dac&id=3D=
";
	this.postLoadItemNumCommmentsHTML=3D"";
	this.postLoadZeroCommmentsHTML=3D"";

}

tp_remoteManager.Comments.prototype =3D
{
	setRequest: function(id,title,permalink, groupID, cmtsElement) =20
		{
		this.articleID=3Did;
		if(arguments[1]){this.articleTitle=3Dtitle;}
		if(arguments[2] && arguments[2].length > =
0){this.permalink=3Dpermalink;}
		if(this.articleID=3D=3Dthis.permalink){this.isPermalink=3D=3Dtrue;}=20
		if(arguments[3] && arguments[3].length > 0){this.groupID=3DgroupID;}
		if(arguments[4] && arguments[4].length > =
0){this.commentListElement=3DcmtsElement;}=09
		},
	=09
	request: function(id,title,permalink, groupID, cmtsElement) =20
		{
		this.setRequest(id,title,permalink, groupID, cmtsElement); =20
		this.getRequest();
		},=20
	=09
	requestOnLoad: function(id,title,permalink, groupID, cmtsElement) =20
		{
		this.setRequest(id,title,permalink, groupID, cmtsElement); =20
		this.onload('onloadHandler');
		},	=09
=09
	onloadHandler: function() =20
		{
		this.getRequest();
		},=09
	=09
	getRequest: function(id,a)
		{
		// Testing -SMS
		//this.host =3D "http://localhost";
		//***********************************
		// Set the flag for XSL on/off
		//***********************************
		var xslFlag;
		if (this.useXSL)
		  xslFlag =3D "1"
		else xslFlag =3D "0"
		//***********************************

		=
this.commentListURL=3Dthis.host+"/apis/scripts/remoteMgrCommentsRequest.a=
shx?eid=3D"+this.articleID+"&isPerm=3D"+this.isPermalink+"&t=3D"+this.art=
icleTitle+"&u=3D"+this.permalink+"&g=3D"+this.groupID+"&rnd=3D"+Math.rand=
om()+"&sp=3D"+this.showPaging+"&stn=3D"+this.showTotalNumArea+"&tpt=3D"+t=
his.templateName+"&rpp=3D"+this.numResults+"&sn=3D"+this.showNewCommentAr=
ea+"&slr=3D"+this.showLoginRegistrationArea+"&xsl=3D"+xslFlag;
//		=
this.commentListURL=3Dthis.host+"/apis/scripts/remoteMgrCommentsRequest.a=
shx?tp_nc=3D1&eid=3D"+this.articleID+"&isPerm=3D"+this.isPermalink+"&t=3D=
"+this.articleTitle+"&u=3D"+this.permalink+"&g=3D"+this.groupID+"&rnd=3D"=
+Math.random()+"&sp=3D"+this.showPaging+"&stn=3D"+this.showTotalNumArea+"=
&tpt=3D"+this.templateName+"&rpp=3D"+this.numResults+"&sn=3D"+this.showNe=
wCommentArea+"&slr=3D"+this.showLoginRegistrationArea+"&xsl=3D"+xslFlag;
		var u=3Dthis.commentListURL;
		if (arguments[0]){u=3Du+"&tp_page=3D"+this.page+"&id=3D"+id+"&a=3D"+a}
			if (this.useXMLHttpRequest=3D=3Dfalse)
			{
			this.addScript("tp_remotemgr.Comments.request",u);
			}
		else
			{
			var myAjax =3D new =
Ajax.Request(this.url(encodeURI(u)+"&xmlhttp=3Dtrue"),{method: 'get', =
parameters: "", onComplete: this.loadB.bind(this)});
			}=09
		},
	=09
	populateNumComments: function(d) =20
		{
		try {
			if (this.postLoadZeroCommmentsHTML.length > 0 && this.numComments =
=3D=3D 0)
				=
{ProtoProxy.tp_GetID('tp_hostNumComments').innerHTML=3Dthis.postLoadZeroC=
ommmentsHTML;ProtoProxy.tp_GetID('tp_hostNumComments1').innerHTML=3Dthis.=
postLoadZeroCommmentsHTML; }
			else
				{
				if(this.postLoadItemNumCommmentsHTML.length > 0)
					{
					var =
t=3Dthis.postLoadItemNumCommmentsHTML.gsub('%num%',this.numComments);
					=
ProtoProxy.tp_GetID('tp_hostNumComments').innerHTML=3Dt;ProtoProxy.tp_Get=
ID('tp_hostNumComments1').innerHTML=3Dt;=20
					}
				else
					{
					=
ProtoProxy.tp_GetID('tp_hostNumComments').innerHTML=3Dthis.numComments;Pr=
otoProxy.tp_GetID('tp_hostNumComments1').innerHTML=3Dthis.numComments;=20
					}
				}		=09
			}
		catch(e){}	=09
		},

	load: function(d) =20
		{ =20
		try {
			this.debugAlert(d);
			var tp_html =3D d.evalJSON();
			if (!tp_html.html){throw("no HTML");}
			this.numComments=3Dtp_html.numComments;
			this.populateNumComments();
			=
ProtoProxy.tp_GetID(this.commentListElement).innerHTML=3Dtp_html.html;
			try{if (tp_html.page){this.page=3Dtp_html.page}}catch(e){}
			try{if =
(tp_html.paging=3D=3D"1"){location.hash=3D"#tp_newCommentAnchor";}}catch(=
e){alert(e.description);}
			//try{if (tp_html.a=3D=3D"r"){alert(this.msg2);}}catch(e){}
			try{if =
(tp_html.a=3D=3D"b"){alert(this.msg4.gsub('%num%',tp_html.numRemoved))}}c=
atch(e){}
			}
		catch(e) {
			var tp_error =3D d.evalJSON();
	 		alert(tp_error.error);
	 		return false; }
	 	this.clearScript("tp_remotemgr.Comments.request");=09
		return true;
		},
	loadXSL: function(d) =20
		{ =20
		try {
		  //debugger;
			this.debugAlert(d);
			var tp_html =3D d;
			if (!tp_html.html){throw("no HTML");}
      // Decode the html		=09
      var data =3D tp_html.html;
      var lsRegExp =3D /\+/g;
      tp_html.html =3D decodeURIComponent(String(data).replace(lsRegExp, =
" "));=20
//			tp_html.html =3D ThePortURLDecoder(tp_html.html);
			this.numComments=3Dtp_html.numComments;
			this.populateNumComments();
			=
ProtoProxy.tp_GetID(this.commentListElement).innerHTML=3Dtp_html.html;
			try{if (tp_html.page){this.page=3Dtp_html.page}}catch(e){}
			try{if =
(tp_html.paging=3D=3D"1"){location.hash=3D"#tp_newCommentAnchor";}}catch(=
e){alert(e.description);}
			//try{if (tp_html.a=3D=3D"r"){alert(this.msg2);}}catch(e){}
			try{if =
(tp_html.a=3D=3D"b"){alert(this.msg4.gsub('%num%',tp_html.numRemoved))}}c=
atch(e){}
			}
		catch(e) {
			var tp_error =3D d.evalJSON();
	 		alert(tp_error.error);
	 		return false; }
	 	this.clearScript("tp_remotemgr.Comments.request");=09
		return true;
		},
		=09
		=09
	loadB: function(r)
		{
		if (this.useXSL)
		    this.loadXSL(r.responseText.evalJSON());
		else this.load(r.responseText);
		}, =20
=09
	prePost: function() =20
		{=20
		if ($F('tp_cmtText').length=3D=3D0)
			{alert(this.err2);}
		else
			{this.openCaptcha();}=09
		},
	=09
	post: function() =20
		{=20
		var postData=3Dthis.getData();
		this.debugAlert("about to post =
to:\n\n"+this.url(this.postCommentURL));
		this.debugAlert("postdata:\n\n"+postData);
		var myAjax =3D new Ajax.Request(this.url(this.postCommentURL),{method: =
'post', postBody: postData, onComplete: =
this.processNewComment.bind(this)});
		},=09
	=09
	remove: function(id) =20
		{=20
		if (confirm(this.msg1)){this.closeWindows();this.getRequest(id,"r");}
		},
	=09
	ban: function(id) =20
		{=20
		if (confirm(this.msg3)){this.closeWindows();this.getRequest(id,"b");}
		},
	=09
	setNote: function(id) =20
		{=20
		this.closeWindows();=20
		this.activeWin=3D'editNoteWin';
		try{
			document.domain=3D'kentuckynewera.com';
			this.editNoteWin=3Ddhtmlwindow.open('tp_editNoteWindow', 'iframe', =
this.editNoteURL+id, =
'editNote','width=3D400px,height=3D300px,center=3D1,resize=3D0,scrolling=3D=
0');=20
		 }catch(e){alert(this.err1);}
		},
	=09
	flagItem: function(id) =20
		{=20
		this.closeWindows();=20
		this.activeWin=3D'flagWin';
		try{
			document.domain=3D'kentuckynewera.com';
			this.flagWin=3Ddhtmlwindow.open('tp_flagWindow', 'iframe', =
this.flagItemURL+id, =
'flagItem','width=3D400px,height=3D300px,center=3D1,resize=3D0,scrolling=3D=
0');=20
		 }catch(e){alert(this.err1);}
		},
    flagItem2: function(id)
		{
		this.closeWindows();
		this.activeWin=3D'flagWin';
		var e=3DProtoProxy.tp_GetID('tp_flag_'+id);
		this.activeEditorElement=3D'flagWin_'+id;
		var a=3DPosition.page(e);
		var ew=3DElement.getWidth(e);
		var w=3Da[0]+ew;
		this.listener =3D this.winContextCheck.bindAsEventListener(this);
		Event.observe(document, "click", this.listener);
		document.domain=3D'kentuckynewera.com';
		this.flagWin=3Ddhtmlwindow.open('flagWin_'+id, 'iframe', =
this.flagItemURL+id, =
'flagItem','left=3D'+w+',top=3D'+a[1]+',width=3D250px,height=3D210px,cent=
er=3D0,resize=3D0,scrolling=3D0');=20
		},	=09

	manageItem: function(id) =20
		{=20
		this.closeWindows();=20
		this.activeWin=3D'manageWin';
		try{
			document.domain=3D'kentuckynewera.com';
			this.manageWin=3Ddhtmlwindow.open('tp_manageWindow', 'iframe', =
this.itemManagerURL+id, =
'manage','width=3D400px,height=3D350px,center=3D1,resize=3D0,scrolling=3D=
0');=20
		 }catch(e){alert(this.err1);}
		},
	=09
	openStats: function(id) =20
		{=20
		this.closeWindows();=20
		this.activeWin=3D'stats';
		try{
			document.domain=3D'kentuckynewera.com';
			this.stats=3Ddhtmlwindow.open('tp_statsWindow', 'iframe', =
this.itemStatsURL+id, =
'stats','width=3D400px,height=3D300px,center=3D1,resize=3D0,scrolling=3D0=
');=20
		 }catch(e){alert(this.err1);}
		},	=09
	=09
	feature: function(id) =20
		{=20
		if (confirm(this.msg5)){this.closeWindows();this.getRequest(id,"f");}
		},=09
	=09
	unfeature: function(id) =20
		{=20
		if (confirm(this.msg6)){this.closeWindows();this.getRequest(id,"u");}
		},				=09
			=20
	processNewComment: function(r) =20
		{ =20
		try{
			var tp_newComment =3D r.responseText.evalJSON();
			if =
(tp_newComment.errorCode=3D=3D"5"||tp_newComment.errorCode=3D=3D"11"){
				this.closeCaptcha();
				this.updateCaptcha();
				this.clearForm();
				alert(tp_newComment.error);
				}
			else=20
			if (tp_newComment.errorCode!=3D"0"){
				if(tp_newComment.errorCode!=3D"1"){this.closeCaptcha();}
				this.updateCaptcha();
				alert(tp_newComment.error);
				}
			else{=09
				this.clearForm();
				this.closeCaptcha();
				this.updateCaptcha();
				try{
					el=3DProtoProxy.tp_GetID('tp_newComment');
					el.innerHTML=3Dtp_newComment.newComment+el.innerHTML;
					location.hash=3D"#tp_newCommentAnchor";
					this.numComments+=3D1;
				=09
					=
try{ProtoProxy.tp_GetID('tp_numComments').innerHTML=3Dthis.numComments;
						=
ProtoProxy.tp_GetID('tp_hostNumComments').innerHTML=3Dthis.numComments;Pr=
otoProxy.tp_GetID('tp_hostNumComments1').innerHTML=3Dthis.numComments;
						}catch (e){}
					}
				catch(e)
					{alert(e.message);alert("No New Comment area");}
				}
			}
		catch(e){alert('error: =
'+e.description);this.debugAlert(r.responseText);return false;}
		},
	=09
	clearForm: function()
		{=20
		var el;
		try{el=3DProtoProxy.tp_GetID('tp_cmtName');el.value=3D""}catch (e){}
		try{el=3DProtoProxy.tp_GetID('tp_cmtEmail');el.value=3D""}catch (e){}
		try{el=3DProtoProxy.tp_GetID('tp_cmtURL');el.value=3D""}catch (e){}
		try{el=3DProtoProxy.tp_GetID('tp_captchaText');el.value=3D""}catch =
(e){}
		try{el=3DProtoProxy.tp_GetID('tp_cmtText');el.value=3D""}catch (e){}
		},
	=09
	getData: function()
		{=20
		var s =3D "";
		var el;
		=
try{el=3DProtoProxy.tp_GetID('tp_articleID');s=3Ds+"&tp_articleID=3D"+enc=
odeURIComponent(el.value);}catch (e){}
	=09
		=
try{s=3Ds+"&tp_articleXRef=3D"+encodeURIComponent(this.articleID);}catch =
(e){}
		=
try{s=3Ds+"&tp_articleTitle=3D"+encodeURIComponent(this.articleTitle);}ca=
tch (e){}
		=
try{s=3Ds+"&tp_articleGroupID=3D"+encodeURIComponent(this.groupID);}catch=
 (e){}
		=
try{s=3Ds+"&tp_articlePermalink=3D"+encodeURIComponent(this.permalink);}c=
atch (e){}
	=09
		=
try{el=3DProtoProxy.tp_GetID('tp_cmtName');s=3Ds+"&tp_cmtName=3D"+encodeU=
RIComponent(el.value);}catch (e){}
 		=
try{el=3DProtoProxy.tp_GetID('tp_cmtEmail');s=3Ds+"&tp_cmtEmail=3D"+encod=
eURIComponent(el.value);}catch (e){}
 		=
try{el=3DProtoProxy.tp_GetID('tp_cmtURL');s=3Ds+"&tp_cmtURL=3D"+encodeURI=
Component(el.value);}catch (e){}
		=
try{el=3DProtoProxy.tp_GetID('tp_captchaText');s=3Ds+"&tp_captchaText=3D"=
+encodeURIComponent(el.value);}catch (e){}
		try{s=3Ds+"&tp_format=3D"+this.format;}catch (e){}
        // =
*************************************************************************=
********************
        // Commented out the line below and added a replace command for =
the "&" symbol. =20
        // =
*************************************************************************=
********************
        // =
try{el=3DProtoProxy.tp_GetID('tp_cmtText');s=3Ds+"&tp_cmtText=3D"+encodeU=
RIComponent(el.value.gsub("<","%lt;").gsub(">","%gt;"));}catch (e){}
		=
try{el=3DProtoProxy.tp_GetID('tp_cmtText');s=3Ds+"&tp_cmtText=3D"+encodeU=
RIComponent(el.value.gsub("<","%lt;").gsub(">","%gt;").gsub("&","%amp;"))=
;}catch (e){}
		=
//try{el=3D$('tp_cmtText');s=3Ds+"&tp_cmtText=3D"+encodeURIComponent(el.v=
alue);}catch (e){}
		=
try{el=3DProtoProxy.tp_GetID('tp_cc');s=3Ds+"&tp_cc=3D"+encodeURIComponen=
t(el.value);}catch (e){}
	  	if (s.charAt(0) =3D=3D "&"){s=3Ds.substring(1,s.length)}

		return s;
		}=20
}=09

=20

------=_NextPart_000_0000_01C8EC1D.78CAEA30--

