From 2f1565f933ef6633c7a8c69a341fa94500f8b9a8 Mon Sep 17 00:00:00 2001 From: Peter Lorimer Date: Mon, 29 Aug 2011 16:25:43 +0100 Subject: [PATCH] Bug# 5086 Pre - Relaease Content-Type: text/plain; charset="utf-8" --- C4/Biblio.pm | 9 +- C4/Branch.pm | 30 + C4/Members.pm | 3 +- C4/Search.pm | 70 +++- admin/authorised_values.pl | 16 +- admin/branches.pl | 14 +- admin/categorie.pl | 14 +- admin/itemtypes.pl | 22 +- catalogue/detail.pl | 29 +- cataloguing/additem.pl | 35 ++- circ/overdue.pl | 9 + index.htm | 131 +++++ .../prog/en/modules/admin/preferences/admin.pref | 11 + .../prog/en/modules/catalogue/results.tt | 14 +- koha-tmpl/opac-tmpl/prog/en/css/style.css | 449 ++++++++++++++++ koha-tmpl/opac-tmpl/prog/en/js/addon.js | 563 ++++++++++++++++++++ koha-tmpl/opac-tmpl/prog/en/js/custom.js | 58 ++ koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt | 183 +++++++ koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt | 3 + mainpage.pl | 6 + members/member.pl | 19 +- members/memberentry.pl | 24 +- members/moremember.pl | 2 +- misc/cronjobs/crontab.example | 2 +- misc/cronjobs/statstank.pl | 121 +++++ opac/mainindex.pl | 23 + opac/opac-main.pl | 35 ++- opac/opac-search.pl | 19 + opac/opac-user.pl | 14 + statstank.pl | 122 +++++ 30 files changed, 2018 insertions(+), 32 deletions(-) create mode 100755 index.htm create mode 100644 koha-tmpl/opac-tmpl/prog/en/css/style.css create mode 100644 koha-tmpl/opac-tmpl/prog/en/js/addon.js create mode 100644 koha-tmpl/opac-tmpl/prog/en/js/custom.js create mode 100644 koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt create mode 100755 misc/cronjobs/statstank.pl create mode 100755 opac/mainindex.pl create mode 100755 statstank.pl diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 96baaef..cdc629c 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -361,11 +361,13 @@ sub _strip_item_fields { # delete any item fields from incoming record to avoid # duplication or incorrect data - use AddItem() or ModItem() # to change items +if (defined $record) +{ foreach my $field ( $record->field($itemtag) ) { $record->delete_field($field); } } - +} =head2 ModBiblioframework ModBiblioframework($biblionumber,$frameworkcode); @@ -2730,7 +2732,10 @@ sub EmbedItemsInMarcBiblio { my $item_marc = C4::Items::GetMarcItem($biblionumber, $itemnumber); push @item_fields, $item_marc->field($itemtag); } - $marc->insert_fields_ordered(@item_fields); + if (defined $marc) + { + $marc->insert_fields_ordered(@item_fields); + } } =head1 INTERNAL FUNCTIONS diff --git a/C4/Branch.pm b/C4/Branch.pm index abcdbd6..b0f575c 100644 --- a/C4/Branch.pm +++ b/C4/Branch.pm @@ -101,6 +101,21 @@ Create a branch selector with the following code. =cut +sub scooterGetCatValues +{ + my $branchcode = @_; + my $dbh = C4::Context->dbh(); + my $query = "SELECT categorycode, description FROM categories WHERE categorycode like '" . C4::Branch::mybranch() . ".%'"; + my $sth = my $sth=$dbh->prepare( $query); + $sth->execute; + my $branchcats = $sth->fetchall_arrayref({}); + $sth->finish(); + + return( $branchcats, $sth->rows ); + + +} + sub GetBranches { my ($onlymine)=@_; # returns a reference to a hash of references to ALL branches... @@ -141,6 +156,21 @@ sub GetBranches { return ( \%branches ); } + +sub homeBranchFromItem +{ +my $item = $_[0]; + +my $dbh = C4::Context::dbh(); +my $sql = "SELECT homebranch FROM items WHERE itemnumber = ?"; +my $sth = $dbh->prepare($sql); +$sth->execute($item); +my @row = $sth->fetchrow_array(); + +return $row[0]; +} + + sub onlymine { return C4::Context->preference('IndependantBranches') && diff --git a/C4/Members.pm b/C4/Members.pm index dcc168b..49d2366 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -1423,9 +1423,10 @@ to category descriptions. #' sub GetborCatFromCatType { - my ( $category_type, $action ) = @_; + my ( $category_type, $action,$categorycode ) = @_; # FIXME - This API seems both limited and dangerous. my $dbh = C4::Context->dbh; + my $request = qq| SELECT categorycode,description FROM categories $action diff --git a/C4/Search.pm b/C4/Search.pm index c3cff65..568d0df 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -33,6 +33,7 @@ use C4::Debug; use C4::Items; use YAML; use URI::Escape; +use POSIX; use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG); @@ -1423,7 +1424,15 @@ sub searchResults { #find branchname #get branch information..... my %branches; - my $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches"); # FIXME : use C4::Branch::GetBranches + my $bsth; + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches WHERE branchcode = '". C4::Branch::mybranch() ."' "); # FIXME : use C4::Branch::GetBranches + } + else + { + $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches "); + } $bsth->execute(); while ( my $bdata = $bsth->fetchrow_hashref ) { $branches{ $bdata->{'branchcode'} } = $bdata->{'branchname'}; @@ -2599,9 +2608,20 @@ $template->param ( MYLOOP => C4::Search::z3950_search_args($searchscalar) ) =cut + + + sub z3950_search_args { my $bibrec = shift; - $bibrec = { title => $bibrec } if !ref $bibrec; + + + if (validate_isbn($bibrec) == 1) + { + $bibrec = { isbn => $bibrec } if !ref $bibrec; +} +else { + $bibrec = { title => $bibrec } if !ref $bibrec; +} my $array = []; for my $field (qw/ lccn isbn issn title author dewey subject /) { @@ -2641,6 +2661,52 @@ OR adds a new authority record =cut +=head +BOOL validate_isbn($isbn_number) + +This function validates an isbn number by: + +1. Checking it is 10 or 13 characters long +2. If it is 10 characters long, checks the lasd character is an 'X' and all other characters are digits +3. If it is 13 characters long, checks it begins with '97' and all other characters are digits + +=cut +sub validate_isbn { + my $isbn = shift; + + # Handle ISBNs with spaces or hyphens in them + $isbn =~ s/\s+//g; + $isbn =~ s/\-//g; + + # Is it the correct length ? + if (length($isbn) != 10 && length($isbn) != 13) + { return 0; } + else { + + # Is the last char 'x' for ISBN10 ? + my @chars = split('', $isbn); + if (length($isbn) == 10 && uc($chars[9]) eq 'X') + { + # Are all but the last characters digits ? + if (isdigit(substr($isbn,0,length($isbn)-1)) ) + { return 1;} + } + + # Is it 13 chars long and begin with '97' ? + if ( ($chars[0] eq '9' && $chars[1] eq '7') && length($isbn) == 13) + { + # is it made up of digits? + if (isdigit($isbn)) + { return 1;} + + + } + + } + # If this function has not yet successfully returned the return failure + return 0; +} + sub BiblioAddAuthorities{ my ( $record, $frameworkcode ) = @_; my $dbh=C4::Context->dbh; diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index c26f3a9..c7c7387 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -191,6 +191,7 @@ exit 0; sub default_form { # build categories list my $sth = $dbh->prepare("select distinct category from authorised_values"); + my $ownbranch = C4::Branch->mybranch(); $sth->execute; my @category_list; my %categories; # a hash, to check that some hardcoded categories exist. @@ -219,6 +220,9 @@ sub default_form { my $count = scalar(@$results); my @loop_data = (); # builds value list + + + for (my $i=0; $i < $count; $i++){ my %row_data; # get a fresh hash for the row data $row_data{category} = $results->[$i]{'category'}; @@ -228,8 +232,18 @@ sub default_form { $row_data{imageurl} = getitemtypeimagelocation( 'intranet', $results->[$i]{'imageurl'} ); $row_data{edit} = "$script_name?op=add_form&id=".$results->[$i]{'id'}."&offset=$offset"; $row_data{delete} = "$script_name?op=delete_confirm&searchfield=$searchfield&id=".$results->[$i]{'id'}."&offset=$offset"; - push(@loop_data, \%row_data); + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if (substr($row_data{authorised_value},0,4) eq $ownbranch . '.') + { + push(@loop_data, \%row_data); + } + } + else { + push(@loop_data, \%row_data); + } } + $template->param( loop => \@loop_data, tab_list => $tab_list, diff --git a/admin/branches.pl b/admin/branches.pl index d6388f5..ed8c1fd 100755 --- a/admin/branches.pl +++ b/admin/branches.pl @@ -308,6 +308,7 @@ sub branchinfotable { my ($branchcode,$innertemplate) = @_; my $branchinfo = $branchcode ? GetBranchInfo($branchcode) : GetBranchInfo(); + my $ownbranch = C4::Branch->mybranch(); my @loop_data = (); foreach my $branch (@$branchinfo) { # @@ -367,7 +368,18 @@ sub branchinfotable { $row{'branch_code'} = $branch->{'branchcode'}; $row{'value'} = $branch->{'branchcode'}; - push @loop_data, \%row; + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if ($branch->{'branchcode'} eq $ownbranch) + { + push @loop_data, \%row; + } + } + else + { + push @loop_data, \%row; + } + } my @branchcategories = (); for my $ctype ( GetCategoryTypes() ) { diff --git a/admin/categorie.pl b/admin/categorie.pl index 576d7ca..2178f90 100755 --- a/admin/categorie.pl +++ b/admin/categorie.pl @@ -67,7 +67,6 @@ my $searchfield=$input->param('description'); my $script_name="/cgi-bin/koha/admin/categorie.pl"; my $categorycode=$input->param('categorycode'); my $op = $input->param('op'); - my ($template, $loggedinuser, $cookie) = get_template_and_user({template_name => "admin/categorie.tmpl", query => $input, @@ -194,6 +193,8 @@ if ($op eq 'add_form') { } else { # DEFAULT $template->param(else => 1); my @loop; + my $ownbranch = C4::Branch->mybranch(); + my ($count,$results)=StringSearch($searchfield,'web'); for (my $i=0; $i < $count; $i++){ my %row = ( @@ -214,7 +215,16 @@ if ($op eq 'add_form') { my $brief_prefs = _get_brief_messaging_prefs($results->[$i]{'categorycode'}); $row{messaging_prefs} = $brief_prefs if @$brief_prefs; } - push @loop, \%row; + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if (substr($row{'categorycode'},0,4) eq $ownbranch . '.') + { + push @loop, \%row; + } + } + else { push @loop, \%row; } + } $template->param(loop => \@loop); # check that I (institution) and C (child) exists. otherwise => warning to the user diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index 3219da3..cd8df81 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -55,12 +55,28 @@ use C4::Output; sub StringSearch { my ( $searchstring, $type ) = @_; my $dbh = C4::Context->dbh; + my $ownbranch = C4::Branch->mybranch(); $searchstring =~ s/\'/\\\'/g; my @data = split( ' ', $searchstring ); - my $sth = $dbh->prepare( - "SELECT * FROM itemtypes WHERE (description LIKE ?) ORDER BY itemtype" + my $sth; + + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + $sth = $dbh->prepare( + "SELECT * FROM itemtypes WHERE (itemtype LIKE ?) ORDER BY itemtype" ); - $sth->execute("$data[0]%"); + + $sth->execute("$ownbranch%"); + } + else { + $sth = $dbh->prepare( + "SELECT * FROM itemtypes WHERE (description LIKE ?) ORDER BY itemtype" + ); + + $sth->execute("$data[0]%"); + + } return $sth->fetchall_arrayref({}); # return ref-to-array of ref-to-hashes # like [ fetchrow_hashref(), fetchrow_hashref() ... ] } diff --git a/catalogue/detail.pl b/catalogue/detail.pl index 8738737..1b1612a 100755 --- a/catalogue/detail.pl +++ b/catalogue/detail.pl @@ -37,9 +37,10 @@ use C4::External::Amazon; use C4::Search; # enabled_staff_search_views use C4::VirtualShelves; use C4::XSLT; - +use Data::Dumper::Simple; # use Smart::Comments; + my $query = CGI->new(); my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { @@ -158,9 +159,11 @@ my (@itemloop, %itemfields); my $norequests = 1; my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw); my $authvalcode_items_damaged = GetAuthValCode('items.damaged', $fw); +my $ownbranch = C4::Branch->mybranch(); + foreach my $item (@items) { - $item->{homebranch} = GetBranchName($item->{homebranch}); + $item->{homebranch} = GetBranchName($item->{branchcode}); # can place holds defaults to yes $norequests = 0 unless ( ( $item->{'notforloan'} > 0 ) || ( $item->{'itemnotforloan'} > 0 ) ); @@ -223,7 +226,16 @@ foreach my $item (@items) { $item->{waitingdate} = format_date($wait_hashref->{waitingdate}); } - push @itemloop, $item; + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if ($item->{holdingbranch} eq C4::Branch->mybranch()) + { + push @itemloop, $item; + } + } +else { push @itemloop, $item; +} } $template->param( norequests => $norequests ); @@ -281,6 +293,9 @@ foreach ( keys %{$dat} ) { # does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews'); # method query not found?!?! + + + $template->param( itemloop => \@itemloop, biblionumber => $biblionumber, @@ -288,8 +303,12 @@ $template->param( subscriptions => \@subs, subscriptionsnumber => $subscriptionsnumber, subscriptiontitle => $dat->{title}, + ); - + + + + # $debug and $template->param(debug_display => 1); # Lists @@ -353,3 +372,5 @@ if (C4::Context->preference('OPACBaseURL')){ } output_html_with_http_headers $query, $cookie, $template->output; + + diff --git a/cataloguing/additem.pl b/cataloguing/additem.pl index 275e236..d41b4ea 100755 --- a/cataloguing/additem.pl +++ b/cataloguing/additem.pl @@ -34,8 +34,12 @@ use C4::Dates; use List::MoreUtils qw/any/; use MARC::File::XML; +<<<<<<< HEAD use URI::Escape; +======= +use Data::Dumper::Simple; +>>>>>>> Bug 5806: Consortium filter - added Branch filtering on intranet so that once a librarian chooses a branch, details of any other branch will be hidden until another branch is selected. This is a system pref called searchMyLibraryOnly that can be toggled on or off my $dbh = C4::Context->dbh; sub find_value { @@ -563,14 +567,29 @@ my ($holdingbrtagf,$holdingbrtagsubf) = &GetMarcFromKohaField("items.holdingbran # First, the existing items for display my @item_value_loop; my @header_value_loop; +my $itemloc; +my $ownbranch = C4::Branch->mybranch(); for my $row ( @big_array ) { my %row_data; - my @item_fields = map +{ field => $_ || '' }, @$row{ sort keys(%witness) }; + my @item_fields = map +{ field => $_ || '' }, @$row{ sort keys(%witness) }; $row_data{item_value} = [ @item_fields ]; $row_data{itemnumber} = $row->{itemnumber}; + $itemloc = GetItem( $itemnumber ); + $row_data{location} = $itemloc->{location}; #reporting this_row values $row_data{'nomod'} = $row->{'nomod'}; - push(@item_value_loop,\%row_data); + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + $itemloc = C4::Branch::homeBranchFromItem($row_data{itemnumber}); + + + if ($itemloc eq $ownbranch) + { + push(@item_value_loop,\%row_data); + } + } + else { push(@item_value_loop,\%row_data); } } foreach my $subfield_code (sort keys(%witness)) { my %header_value; @@ -588,11 +607,21 @@ my $onlymine = C4::Context->preference('IndependantBranches') && C4::Context->userenv && C4::Context->userenv->{flags}!=1 && C4::Context->userenv->{branch}; +<<<<<<< HEAD my $branch = C4::Context->userenv->{branch}; if ($frameworkcode eq 'FA'){ $branch = $input->param('branch'); } my $branches = GetBranchesLoop($branch,$onlymine); # build once ahead of time, instead of multiple times later. +======= + + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + $onlymine = 1; + } +my $branches = GetBranchesLoop(C4::Context->userenv->{branch},$onlymine); # build once ahead of time, instead of multiple times later. +>>>>>>> Bug 5806: Consortium filter - added Branch filtering on intranet so that once a librarian chooses a branch, details of any other branch will be hidden until another branch is selected. This is a system pref called searchMyLibraryOnly that can be toggled on or off # We generate form, from actuel record @fields = (); @@ -664,3 +693,5 @@ foreach my $error (@errors) { $template->param($error => 1); } output_html_with_http_headers $input, $cookie, $template->output; + +#print Dumper(@loop_data); diff --git a/circ/overdue.pl b/circ/overdue.pl index 18851a6..6e6aa4f 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -262,6 +262,12 @@ if ($noreport) { LEFT JOIN biblio ON (biblio.biblionumber=items.biblionumber ) WHERE 1=1 "; # placeholder, since it is possible that none of the additional # conditions will be selected by user + + if (C4::Context->preference("searchMyLibraryOnly")) + { + $strsth.=" AND issues.branchcode = '" . C4::Branch->mybranch() . "' "; + } + $strsth.=" AND date_due < '" . $todaysdate . "' " unless ($showall); $strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ; $strsth.=" AND borrowers.categorycode = '" . $borcatfilter . "' " if $borcatfilter; @@ -301,6 +307,7 @@ if ($noreport) { push @patron_attr_value_loop, { value => join(', ', sort { lc $a cmp lc $b } @displayvalues) }; } + push @overduedata, { duedate => format_date($data->{date_due}), borrowernumber => $data->{borrowernumber}, @@ -404,3 +411,5 @@ sub build_csv { return join("\n", @lines) . "\n"; } + + diff --git a/index.htm b/index.htm new file mode 100755 index 0000000..30a4b1e --- /dev/null +++ b/index.htm @@ -0,0 +1,131 @@ + + + + + Scooter Online Library System + + + + + + + + + +
+ +
+ + +
+
+ +
+
+
+

Welcome to Scooter

+

+

+

Please choose a library Below

+

+

+
+

+
+ + +
+
+ +
+
+ + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref index f026c7e..dea5eb2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref @@ -95,3 +95,14 @@ Administration: - - The CAS Authentication Server can be found at - pref: casServerUrl + + Search My Library Only: + - + - pref: searchMyLibraryOnly + default: 1 + choices: + yes: Use + no: "Don't use" + - Filter Data based on Library. + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt index e1f84b8..d9d4d96 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt @@ -429,7 +429,7 @@ YAHOO.util.Event.onContentReady("searchheader", function () { -

[% SEARCH_RESULT.result_number %]. +

[% biblionumber = SEARCH_RESULT.biblionumber %] [% INCLUDE 'biblio-default-view.inc' %] @@ -505,20 +505,22 @@ YAHOO.util.Event.onContentReady("searchheader", function () { [% IF ( SEARCH_RESULT.availablecount ) %] [% SEARCH_RESULT.availablecount %] available: -

    + [% END %] [% IF ( SEARCH_RESULT.onloancount ) %] [% SEARCH_RESULT.onloancount %] on loan: -
      + [% END %] [% IF ( SEARCH_RESULT.othercount ) %] diff --git a/koha-tmpl/opac-tmpl/prog/en/css/style.css b/koha-tmpl/opac-tmpl/prog/en/css/style.css new file mode 100644 index 0000000..e9478cc --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/css/style.css @@ -0,0 +1,449 @@ + +/* +---------------------------------------------------------------------------------------- + +Copyright 2010 - Thierry Ruiz - www.dotemplate.com - All rights reserved. + +THIS TEMPLATE IS FREE AS LONG AS YOU KEEP THE LINK TO WWW.DOTEMPLATE.COM IN THE FOOTER +TO REMOVE THE LINK, PLEASE MAKE A 10 DOLLARS DONATION at www.dotemplate.com/#donate + +---------------------------------------------------------------------------------------- +*/ + + +html { + background: $bottomWrapper.bg.color; + margin:0 0 0 -1px; + padding:0; + overflow-Y: scroll; +} + + +body { + padding:0; + margin :0; + display:table; + width:100%; +} + + + + +#wrapper { + margin:0 auto ; + width:100%; +background-color:#ffffff; +} + + body { + background-color:#ffffff; +} + +#wrapper { + border-top: 1px solid #ffffff; +} + + + + +#topBannerWrapper { + width:100%; + height:90px; + background-color:#f0ead1; + background-image:url(images/css/topBannerWrapper-bg.jpg); + background-position:center top ; + background-repeat:repeat-x; +} + + + +#topBanner { + width:920px; + margin:0 auto; + height:90px; + background-image:url(images/css/topBanner.jpg); + background-repeat:no-repeat; +} + + + +#hmenuWrapper { + width:100%; + margin:0 auto ; +} + +#hmenu { + position:relative; + top:30px; + float:right; +} + + + +#hmenu ul { + list-style:none inside none; + margin:0; + padding:0; + text-transform:uppercase; + font-size:14px; + font-family:Arial,sans-serif; +} + +#hmenu ul li { + float:left; +} + +#hmenu ul li a { + border:0 none; + color:#660d05; + display:block; + float:left; + font-size:14px; + font-weight:bold; + height:2em; + line-height:2em; + text-align:center; + padding:0 20px; +} + + +#hmenu ul li a:hover { + background-color:#660d05; + color:#FFFFFF; +} + +#hmenu ul li a:link { + text-decoration:none; +} + +#hmenu ul li a:visited { + text-decoration:none; +} + +#hmenu ul li a:active { + text-decoration:none; +} + + +#hmenu li#current a { + background-color:#660d05; + color:#FFFFFF; +} + + + +#topSlideshowWrapper { + width:100%; + height:300px; +# background-color:#0e5104; + background-image:url(images/css/topSlideshowWrapper-bg.jpg); + background-position:center top ; + background-repeat:repeat-x; +} + + +#sliderContainer { + width: 920px; + margin:0 auto; +} + + +#slider1 { + width:100%; + height: 300px; + position: relative; + overflow: hidden; /* important */ +} + + +#slider1 img { + padding: 0; + margin:0; + width:920px; + height:300px; +} + + +#slider1 a img { border:none } + + +#slider1Content { + margin:0; + padding:10px; + height:300px; + font-size:0; + width:100%; + position: relative; +} + + +.slider1Image { + display:none; + float:left; + position:relative; + margin:0; + padding:0; +} + +.slider1Image span { + position: absolute; + left:0; + font-family:Tahoma, Arial; + font-size:14px; + padding: 0px; + width:920px; + background-color:#0e5104; + color: #fff; + display: none; + z-index:20; + filter: alpha(opacity=70); + -moz-opacity: 0.7; + -khtml-opacity: 0.7; + opacity: 0.7; +} + + +.slider1Image .bottom { + bottom: 0; + left: 0; + height: 70px; +} + + +#sliderLeftMask { + height:300px; + position:absolute; + top:0; + left:0px; + width:180px; + z-index:10; + background:url('images/css/sliderLeftMask.png') no-repeat scroll center center transparent; +} + + + +#sliderRightMask { + height:300px; + position:absolute; + top:0; + left:740px; + width:180px; + z-index:10; + background:url('images/css/sliderRightMask.png') no-repeat scroll center center transparent; +} + + + + + + + +#container { + margin:10px auto; + width:920px; + min-height:570px; +background-color:#ffffff; +} + + + + +#content { + width:920px; + margin:10px auto ; + text-align:left; +background-color:#ffffff; +} + +#content p { + text-align:justify; +} + + + + + +#main { + width:610px; + float:left; + margin-right:40px ; + background-color:#ffffff; +} + +#sidebar { + float:right; + width:270px; +} + +.bloc h3 { + margin-top:10px; +} + +.bloc { + padding:15px; + background-color:#EEEEEE; +} + + + +#content a:link, #content a:visited { + color:#505050; + font-weight:bold; +} + + +#content p { + margin-top:10px; + text-align:justify; +} + + +.padd15 { + padding:15px; +} + +.padd20 { + padding:20px; +} + + +body { + color:#444444; + font-family: 'Trebuchet MS', sans-serif; + font-size: 13px; + font-style: normal; + font-weight: normal; + text-transform: normal; +} + +p { + letter-spacing: normal; + line-height: 1.7em; +} + + +h1 { + color:#000000; + margin:20px 0 10px 0; + clear:both; +} + + +h2 { + color:#000000; + margin:20px 0 10px 0; + clear:both; +} + + +h3 { + color:#000000; + margin:10px 0 5px 0; + clear:both; +} + + +a:link, a:visited { + color:#505050; + text-decoration:none; +} + + +a:hover { + text-decoration:underline; +} + + + +#bottomWrapper { + background-color:#000000; + background-image:url(images/css/bottomWrapper-bg.png); + background-position:center top ; + background-repeat:repeat-x; + text-align:center; + color:#70806D; + text-align:center; + width:100%; + clear:both; +} + + +#bottomWrapper a:link, #bottomWrapper a:visited { + color:#e7ded9; +} + + + +#bottomWrapper a:hover{ + color:#cdb380; + text-decoration:none; +} + + +#footer { + #min-height:260px; + width:920px; + margin:0 auto; + background-color:#000000; + background-image:url(images/css/footer-bg.png); + background-position:center top ; + background-repeat:no-repeat; +} + + + + +.footer-last { + margin-right:0 !important; + clear:right; +} + +.footer-one-third { + float:left; + margin:20px 100px 20px 0; + width:240px; + position:relative; + text-align:left; + overflow:hidden; +} + +.footer-one-third h3 { + margin-top:10px; +} + +.footer-one-third ul{ + border-top:1px solid #0a0a0a; + padding:0 ; +} + +.footer-one-third ul, .footer-one-third li { + list-style: none ; + margin-left:0 ; +} + +.footer-one-third li { + border-bottom:1px solid #0a0a0a; + padding: 5px 0 ; +} + + + +#bottom-links { + height:60px; + background:#000000 url('images/css/bottomLinks-bg.png') center top repeat-x; +} + + +a img { + border:none; +} + + +.clear { + clear: both; + display: block; + overflow: hidden; + visibility: hidden; + width: 0; + height: 0; +} diff --git a/koha-tmpl/opac-tmpl/prog/en/js/addon.js b/koha-tmpl/opac-tmpl/prog/en/js/addon.js new file mode 100644 index 0000000..851dcf1 --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/js/addon.js @@ -0,0 +1,563 @@ +/*! + * jQuery JavaScript Library v1.4.2 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Sat Feb 13 22:33:48 2010 -0500 + */ +(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, +Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& +(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, +a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== +"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, +function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
      a"; +var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, +parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= +false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= +s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, +applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; +else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, +a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== +w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, +cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= +c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); +a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, +function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); +k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), +C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= +e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& +f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; +if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", +e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, +"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, +d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, +e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); +t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| +g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, +CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, +g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, +text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, +setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= +h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== +"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, +h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& +q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; +if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

      ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); +(function(){var g=s.createElement("div");g.innerHTML="
      ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: +function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= +{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== +"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", +d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? +a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== +1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
      ","
      "],thead:[1,"","
      "],tr:[2,"","
      "],td:[3,"","
      "],col:[2,"","
      "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
      ","
      "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= +c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, +wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, +prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, +this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); +return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, +""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); +return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", +""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= +c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? +c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= +function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= +Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, +"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= +a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= +a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== +"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
      ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, +serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), +function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, +global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& +e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? +"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== +false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= +false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", +c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| +d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); +g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== +1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== +"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; +if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== +"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| +c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; +this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= +this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, +e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
      "; +a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); +c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, +d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- +f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": +"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in +e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); + + +/* ------------------------------------------------------------------------ + s3Slider + + Developped By: Boban Karišik -> http://www.serie3.info/ + CSS Help: Mészáros Róbert -> http://www.perspectived.com/ + Version: 1.0 + + Copyright: Feel free to redistribute the script/modify it, as + long as you leave my infos at the top. +------------------------------------------------------------------------- */ + + +(function($){ + + $.fn.s3Slider = function(vars) { + + var element = this; + var timeOut = (vars.timeOut != undefined) ? vars.timeOut : 4000; + var current = null; + var timeOutFn = null; + var faderStat = true; + var mOver = false; + var items = $("#" + element[0].id + "Content ." + element[0].id + "Image"); + var itemsSpan = $("#" + element[0].id + "Content ." + element[0].id + "Image span"); + + items.each(function(i) { + + $(items[i]).mouseover(function() { + mOver = true; + }); + + $(items[i]).mouseout(function() { + mOver = false; + fadeElement(true); + }); + + }); + + var fadeElement = function(isMouseOut) { + var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut; + thisTimeOut = (faderStat) ? 10 : thisTimeOut; + if(items.length > 0) { + timeOutFn = setTimeout(makeSlider, thisTimeOut); + } else { + console.log("Poof.."); + } + } + + var makeSlider = function() { + current = (current != null) ? current : items[(items.length-1)]; + var currNo = jQuery.inArray(current, items) + 1 + currNo = (currNo == items.length) ? 0 : (currNo - 1); + var newMargin = $(element).width() * currNo; + if(faderStat == true) { + if(!mOver) { + $(items[currNo]).fadeIn((timeOut/6), function() { + if($(itemsSpan[currNo]).css('bottom') == 0) { + $(itemsSpan[currNo]).slideUp((timeOut/6), function() { + faderStat = false; + current = items[currNo]; + if(!mOver) { + fadeElement(false); + } + }); + } else { + $(itemsSpan[currNo]).slideDown((timeOut/6), function() { + faderStat = false; + current = items[currNo]; + if(!mOver) { + fadeElement(false); + } + }); + } + }); + } + } else { + if(!mOver) { + if($(itemsSpan[currNo]).css('bottom') == 0) { + $(itemsSpan[currNo]).slideDown((timeOut/6), function() { + $(items[currNo]).fadeOut((timeOut/6), function() { + faderStat = true; + current = items[(currNo+1)]; + if(!mOver) { + fadeElement(false); + } + }); + }); + } else { + $(itemsSpan[currNo]).slideUp((timeOut/6), function() { + $(items[currNo]).fadeOut((timeOut/6), function() { + faderStat = true; + current = items[(currNo+1)]; + if(!mOver) { + fadeElement(false); + } + }); + }); + } + } + } + } + + makeSlider(); + + }; + +})(jQuery); + +/* + * jQuery Cycle Plugin (with Transition Definitions) + * Examples and documentation at: http://jquery.malsup.com/cycle/ + * Copyright (c) 2007-2010 M. Alsup + * Version: 2.85 (30-MAR-2010) + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + * Requires: jQuery v1.2.6 or later + */ +(function($){var ver="2.85";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(opts2.currSlide,opts2.nextSlide,opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts2.rev);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;if(arg2===true){options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,1);}return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;jmaxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)=(els.length-1)?0:opts.startingSlide+1;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a=''+(i+1)+"";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlidel?c-l:opts.slideCount-l;}else{hops=c=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null};})(jQuery); +/* + * jQuery Cycle Plugin Transition Definitions + * This script is a plugin for the jQuery Cycle Plugin + * Examples and documentation at: http://malsup.com/jquery/cycle/ + * Copyright (c) 2007-2008 M. Alsup + * Version: 2.72 + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i= 0) { + var rgb = v.match(/\d+/g); + return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]); + } + return v; + } + node = node.parentNode; // keep walking if transparent + } + return '#ffffff'; +}; + +function getWidth(fx, i, width) { + switch(fx) { + case 'round': return Math.round(width*(1-Math.cos(Math.asin(i/width)))); + case 'cool': return Math.round(width*(1+Math.cos(Math.asin(i/width)))); + case 'sharp': return Math.round(width*(1-Math.cos(Math.acos(i/width)))); + case 'bite': return Math.round(width*(Math.cos(Math.asin((width-i-1)/width)))); + case 'slide': return Math.round(width*(Math.atan2(i,width/i))); + case 'jut': return Math.round(width*(Math.atan2(width,(width-i-1)))); + case 'curl': return Math.round(width*(Math.atan(i))); + case 'tear': return Math.round(width*(Math.cos(i))); + case 'wicked': return Math.round(width*(Math.tan(i))); + case 'long': return Math.round(width*(Math.sqrt(i))); + case 'sculpt': return Math.round(width*(Math.log((width-i-1),width))); + case 'dogfold': + case 'dog': return (i&1) ? (i+1) : width; + case 'dog2': return (i&2) ? (i+1) : width; + case 'dog3': return (i&3) ? (i+1) : width; + case 'fray': return (i%2)*width; + case 'notch': return width; + case 'bevelfold': + case 'bevel': return i+1; + } +}; + +$.fn.corner = function(options) { + // in 1.3+ we can fix mistakes with the ready state + if (this.length == 0) { + if (!$.isReady && this.selector) { + var s = this.selector, c = this.context; + $(function() { + $(s,c).corner(options); + }); + } + return this; + } + + return this.each(function(index){ + var $this = $(this); + // meta values override options + var o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase(); + var keep = /keep/.test(o); // keep borders? + var cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]); // corner color + var sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]); // strip color + var width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10; // corner width + var re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/; + var fx = ((o.match(re)||['round'])[0]); + var fold = /dogfold|bevelfold/.test(o); + var edges = { T:0, B:1 }; + var opts = { + TL: /top|tl|left/.test(o), TR: /top|tr|right/.test(o), + BL: /bottom|bl|left/.test(o), BR: /bottom|br|right/.test(o) + }; + if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR ) + opts = { TL:1, TR:1, BL:1, BR:1 }; + + // support native rounding + if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) { + if (opts.TL) + $this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px'); + if (opts.TR) + $this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px'); + if (opts.BL) + $this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px'); + if (opts.BR) + $this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px'); + return; + } + + var strip = document.createElement('div'); + $(strip).css({ + overflow: 'hidden', + height: '1px', + minHeight: '1px', + fontSize: '1px', + backgroundColor: sc || 'transparent', + borderStyle: 'solid' + }); + + var pad = { + T: parseInt($.css(this,'paddingTop'))||0, R: parseInt($.css(this,'paddingRight'))||0, + B: parseInt($.css(this,'paddingBottom'))||0, L: parseInt($.css(this,'paddingLeft'))||0 + }; + + if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE + if (!keep) this.style.border = 'none'; + strip.style.borderColor = cc || gpc(this.parentNode); + var cssHeight = $(this).outerHeight(); + + for (var j in edges) { + var bot = edges[j]; + // only add stips if needed + if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) { + strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none'); + var d = document.createElement('div'); + $(d).addClass('jquery-corner'); + var ds = d.style; + + bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild); + + if (bot && cssHeight != 'auto') { + if ($.css(this,'position') == 'static') + this.style.position = 'relative'; + ds.position = 'absolute'; + ds.bottom = ds.left = ds.padding = ds.margin = '0'; + if (expr) + ds.setExpression('width', 'this.parentNode.offsetWidth'); + else + ds.width = '100%'; + } + else if (!bot && $.browser.msie) { + if ($.css(this,'position') == 'static') + this.style.position = 'relative'; + ds.position = 'absolute'; + ds.top = ds.left = ds.right = ds.padding = ds.margin = '0'; + + // fix ie6 problem when blocked element has a border width + if (expr) { + var bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth'); + ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"'); + } + else + ds.width = '100%'; + } + else { + ds.position = 'relative'; + ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' : + (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px'; + } + + for (var i=0; i < width; i++) { + var w = Math.max(0,getWidth(fx,i, width)); + var e = strip.cloneNode(false); + e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px'; + bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild); + } + + if (fold && $.support.boxModel) { + if (bot && noBottomFold) continue; + for (var c in opts) { + if (!opts[c]) continue; + if (bot && (c == 'TL' || c == 'TR')) continue; + if (!bot && (c == 'BL' || c == 'BR')) continue; + + var common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor }; + var $horz = $('
      ').css(common).css({ width: width + 'px', height: '1px' }); + switch(c) { + case 'TL': $horz.css({ bottom: 0, left: 0 }); break; + case 'TR': $horz.css({ bottom: 0, right: 0 }); break; + case 'BL': $horz.css({ top: 0, left: 0 }); break; + case 'BR': $horz.css({ top: 0, right: 0 }); break; + } + d.appendChild($horz[0]); + + var $vert = $('
      ').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' }); + switch(c) { + case 'TL': $vert.css({ left: width }); break; + case 'TR': $vert.css({ right: width }); break; + case 'BL': $vert.css({ left: width }); break; + case 'BR': $vert.css({ right: width }); break; + } + d.appendChild($vert[0]); + } + } + } + } + }); +}; + +$.fn.uncorner = function() { + if (radius || moz || webkit) + this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0); + $('div.jquery-corner', this).remove(); + return this; +}; + +// expose options +$.fn.corner.defaults = { + useNative: true, // true if plugin should attempt to use native browser support for border radius rounding + metaAttr: 'data-corner' // name of meta attribute to use for options +}; + +})(jQuery); + +/* + * Copyright (c) 2009 Simo Kinnunen. + * Licensed under the MIT license. + * + * @version 1.09 + */ +var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E0){E=" "+E}}else{if(B400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||JD){D=J}K.push(J)}if(ID){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?ML:(M<=I&&L<=I)?M>L:MO){O=K}if(I>N){N=I}if(Kcufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m":{"d":"150,-95r-124,-66r0,-13r134,72r0,13r-134,73r0,-13","w":178},"?":{"d":"46,-50v-9,-65,52,-101,56,-151v3,-35,-54,-47,-84,-26r-1,-13v39,-21,101,-9,101,38v0,40,-71,93,-58,152r-14,0xm53,4v17,0,14,-23,0,-23v-6,0,-11,5,-11,11v0,6,5,12,11,12","w":138},"\u2019":{"d":"42,-248v2,-8,12,-4,20,-5v-8,25,-18,52,-27,72r-14,3v8,-23,17,-53,21,-70","w":85},"\u2018":{"d":"43,-184v-2,8,-11,6,-20,6v8,-25,18,-53,27,-73r14,-2v-8,23,-17,52,-21,69","w":85},"\u201c":{"d":"78,-184v-2,8,-11,6,-20,6v8,-25,18,-53,27,-73r14,-2v-8,23,-17,52,-21,69xm43,-184v-2,8,-11,6,-20,6v8,-25,18,-53,27,-73r14,-2v-8,23,-17,52,-21,69","w":120},"\u201d":{"d":"42,-248v2,-8,12,-4,20,-5v-8,25,-18,52,-27,72r-14,3v8,-23,17,-53,21,-70xm77,-248v2,-8,12,-4,20,-5v-8,25,-18,52,-27,72r-14,3v8,-23,17,-53,21,-70","w":120},"n":{"d":"44,-174v1,11,-1,27,2,36v13,-25,36,-39,62,-39v76,1,48,106,53,177r-14,0v-6,-62,24,-164,-44,-164v-33,0,-58,28,-58,62r0,102r-14,0r0,-174r13,0","w":188},"\u00a0":{"w":85}}});Cufon.registerFont({"w":200,"face":{"font-family":"Vegur","font-weight":700,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"277","descent":"-83","bbox":"-22 -270 330 90","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+201D"},"glyphs":{" ":{"w":70},"`":{"d":"8,-253v17,2,39,-6,46,7v8,14,23,39,35,57r-37,1v-13,-16,-33,-46,-44,-65","w":112},"@":{"d":"184,-215v65,0,109,46,109,103v0,61,-33,94,-75,94v-23,0,-38,-8,-43,-25v-18,45,-90,31,-90,-24v0,-75,78,-105,142,-78r-11,72v-3,22,3,29,16,29v18,0,32,-26,32,-58v0,-51,-30,-86,-93,-86v-62,0,-122,46,-122,115v0,90,94,120,166,79r3,25v-86,47,-197,10,-198,-95v0,-92,77,-151,164,-151xm147,-50v24,7,33,-40,35,-69v-30,-8,-54,10,-54,46v0,15,9,23,19,23","w":323},"a":{"d":"30,-168v53,-23,134,-12,134,51r0,117r-47,0v-1,-7,1,-17,-2,-22v-22,43,-104,29,-104,-33v0,-47,54,-65,105,-57v2,-38,-51,-34,-81,-20xm85,-33v20,1,32,-16,31,-50v-23,-5,-55,-1,-55,25v0,14,9,25,24,25","w":185},"B":{"d":"191,-75v3,74,-90,86,-167,72r0,-237v71,-14,160,-6,160,55v0,26,-18,46,-41,54v31,9,48,28,48,56xm72,-144v32,2,60,-1,60,-31v0,-28,-27,-36,-60,-31r0,62xm139,-70v0,-33,-30,-40,-67,-37r0,69v34,4,67,0,67,-32","w":205},"!":{"d":"81,-25v0,16,-13,29,-29,29v-16,0,-28,-13,-28,-29v0,-16,12,-28,28,-28v16,0,29,12,29,28xm72,-71r-40,0r-3,-173r46,0","w":104},"\"":{"d":"53,-152r-35,0r-2,-88v-1,-16,28,-13,45,-13xm123,-152r-35,0r-2,-88v-1,-16,28,-13,46,-13","w":144},"#":{"d":"182,-138r-37,0r-6,39r33,0r0,27r-37,0r-10,59r-30,0r10,-59r-31,0r-9,59r-30,0r9,-59r-32,0r0,-27r37,0r6,-39r-33,0r0,-27r37,0r10,-59r30,0r-10,59r31,0r10,-59r29,0r-9,59r32,0r0,27xm109,-99r7,-39r-31,0r-6,39r30,0","w":194},"$":{"d":"111,-143v83,14,79,120,2,131r0,37r-35,0r0,-36v-18,-1,-37,-6,-51,-14r5,-37v21,9,43,14,61,14v19,0,30,-9,30,-24v0,-15,-11,-24,-34,-28v-72,-12,-77,-106,-9,-121r0,-41r36,0r0,38v19,1,36,7,47,13r-5,38v-18,-13,-72,-23,-78,5v0,13,8,21,31,25"},"%":{"d":"227,-119v34,0,61,25,61,61v0,36,-27,62,-61,62v-34,0,-61,-26,-61,-62v0,-36,27,-61,61,-61xm227,-32v11,0,20,-9,20,-26v0,-17,-9,-26,-20,-26v-11,0,-21,9,-21,26v0,17,10,26,21,26xm79,-240v34,0,61,25,61,61v0,36,-27,61,-61,61v-34,0,-61,-25,-61,-61v0,-36,27,-61,61,-61xm79,-153v11,0,21,-9,21,-26v0,-17,-10,-26,-21,-26v-11,0,-20,9,-20,26v0,17,9,26,20,26xm218,-248r35,0r-165,255r-35,0","w":306},"&":{"d":"253,0r-65,0v-5,-5,-7,-12,-13,-16v-50,38,-162,21,-162,-51v0,-33,22,-55,58,-74v-13,-12,-27,-29,-27,-53v0,-33,31,-54,69,-54v39,0,67,26,67,55v1,27,-18,43,-43,60r46,53v6,-9,11,-25,12,-42r48,0v-1,33,-13,57,-30,76xm112,-210v-27,2,-18,38,-1,45v19,-5,28,-44,1,-45xm65,-70v0,37,62,44,84,22r-52,-63v-18,9,-32,20,-32,41","w":261},"'":{"d":"53,-152r-35,0r-2,-88v-1,-16,28,-13,45,-13","w":74},"(":{"d":"99,-255v-42,97,-42,191,0,289r-35,0v-20,-33,-39,-88,-39,-145v0,-57,19,-111,39,-144r35,0","w":111},")":{"d":"13,34v42,-98,42,-192,0,-289r35,0v20,33,39,87,39,144v0,57,-19,112,-39,145r-35,0","w":111},"*":{"d":"73,-243r39,0v-1,18,-10,43,-6,57r50,-24r12,36v-18,5,-39,6,-55,12r39,41r-32,23v-10,-16,-17,-35,-28,-50r-27,50r-32,-23v13,-14,27,-27,39,-42r-55,-11r12,-36v18,8,33,18,52,24","w":185},"+":{"d":"127,-110r71,0r0,35r-71,0r0,75r-40,0r0,-75r-71,0r0,-35r71,0r0,-74r40,0r0,74","w":213},",":{"d":"22,-27v5,-21,30,-18,55,-18v-10,30,-23,67,-37,100r-43,4v11,-34,21,-67,25,-86","w":93},"-":{"d":"120,-110r0,35r-99,0r0,-35r99,0","w":141},".":{"d":"45,-53v16,0,28,12,28,28v0,16,-12,29,-28,29v-16,0,-28,-13,-28,-29v0,-16,12,-28,28,-28","w":90},"\/":{"d":"111,-252r44,0r-113,265r-44,0","w":153},"0":{"d":"100,-240v57,0,94,47,94,122v0,75,-37,122,-94,122v-57,0,-93,-47,-93,-122v0,-75,36,-122,93,-122xm100,-35v29,0,42,-26,42,-83v0,-57,-13,-84,-42,-84v-29,0,-41,27,-41,84v0,57,12,83,41,83"},"1":{"d":"36,-202v35,-11,57,-36,104,-35r0,237r-48,0r0,-182r-51,17"},"2":{"d":"181,-176v7,47,-64,100,-99,137r100,0r0,39r-161,0r0,-38v31,-32,122,-116,108,-133v0,-37,-56,-37,-89,-20r-5,-38v58,-25,149,-9,146,53"},"3":{"d":"181,-69v0,70,-104,90,-165,59r5,-39v33,17,108,26,108,-17v0,-21,-20,-32,-54,-34r0,-37v57,6,62,-66,8,-65v-14,0,-32,4,-47,10r-5,-38v54,-20,143,-11,143,46v0,33,-27,51,-54,57v35,5,61,25,61,58"},"4":{"d":"164,-237r0,150r35,0r0,38r-35,0r0,49r-48,0r0,-49r-112,0r0,-39r89,-149r71,0xm116,-87r1,-109v-9,22,-32,55,-63,109r62,0"},"5":{"d":"74,-145v52,-22,111,12,111,66v0,82,-101,99,-166,69r5,-38v41,19,106,23,109,-27v2,-31,-38,-48,-63,-29r-43,-1r5,-132r142,0r0,39r-98,0"},"6":{"d":"98,4v-45,0,-83,-31,-83,-96v0,-83,62,-144,139,-148r5,38v-45,3,-82,32,-90,70v42,-38,117,-2,117,55v0,54,-42,81,-88,81xm134,-72v6,-47,-63,-51,-67,-11v-4,56,66,64,67,11"},"7":{"d":"186,-237r0,39r-96,198r-49,0r97,-198r-116,0r0,-39r164,0"},"8":{"d":"185,-66v0,48,-42,70,-85,70v-48,0,-85,-25,-85,-67v-1,-30,23,-46,51,-59v-67,-28,-45,-118,37,-118v85,0,102,89,35,115v32,15,47,35,47,59xm102,-203v-37,5,-33,48,1,60v31,-7,39,-59,-1,-60xm100,-35v21,0,34,-13,34,-31v0,-18,-9,-29,-34,-40v-44,7,-45,71,0,71"},"9":{"d":"103,-240v45,0,82,31,82,96v0,83,-62,144,-139,148r-5,-38v45,-3,83,-32,91,-70v-41,40,-117,3,-117,-54v0,-54,42,-82,88,-82xm67,-164v-6,47,63,53,67,12v4,-57,-66,-66,-67,-12"},":":{"d":"45,-53v16,0,28,12,28,28v0,16,-12,29,-28,29v-16,0,-28,-13,-28,-29v0,-16,12,-28,28,-28xm45,-121v-16,0,-28,-12,-28,-28v0,-16,12,-29,28,-29v16,0,28,13,28,29v0,16,-12,28,-28,28","w":90},"<":{"d":"50,-96v31,19,67,32,100,49r0,45r-139,-70r0,-46r139,-70r0,45","w":169},";":{"d":"22,-27v5,-21,30,-18,55,-18v-10,30,-23,67,-37,100r-43,4v11,-34,21,-67,25,-86xm52,-121v-16,0,-28,-12,-28,-28v0,-16,12,-29,28,-29v16,0,29,13,29,29v0,16,-13,28,-29,28","w":97},"[":{"d":"115,-217r-45,0r0,213r45,0r0,35r-85,0r0,-283r85,0r0,35","w":125},"\\":{"d":"42,-252r113,265r-44,0r-113,-265r44,0","w":153},"]":{"d":"10,-217r0,-35r86,0r0,283r-86,0r0,-35r45,0r0,-213r-45,0","w":125},"^":{"d":"125,-243r63,141r-44,0r-42,-98r-42,98r-43,0r63,-141r45,0","w":204},"_":{"d":"199,51r-190,0r0,-35r190,0r0,35","w":208},"~":{"d":"194,-53v-19,8,-115,-47,-123,-41v-9,0,-17,9,-17,33r-36,0v0,-43,22,-68,60,-68v19,-8,115,47,123,41v9,0,17,-9,17,-33r35,0v0,44,-21,68,-59,68","w":271},"}":{"d":"35,-70v-3,-24,14,-35,35,-41v-42,-3,-37,-45,-30,-82v2,-17,-9,-27,-31,-27r0,-36v45,0,77,17,72,58v-4,30,-15,75,24,70r0,35v-39,-5,-28,40,-24,70v5,41,-27,58,-72,58r0,-36v43,2,30,-38,26,-69","w":127},"|":{"d":"70,90r-40,0r0,-360r40,0r0,360","w":99},"{":{"d":"57,-111v20,6,38,16,35,41v-4,31,-17,71,26,69r0,36v-45,0,-77,-17,-72,-58v4,-30,15,-75,-24,-70r0,-35v39,5,28,-40,24,-70v-5,-41,27,-58,72,-58r0,36v-43,-2,-29,38,-26,69v3,23,-12,37,-35,40","w":127},"z":{"d":"21,-176r131,0r0,37r-83,102r85,0r0,37r-143,0r0,-36r83,-103r-73,0r0,-37","w":164},"y":{"d":"122,-13v-25,65,-54,83,-99,87r-5,-37v29,-3,42,-14,50,-36r-68,-177r51,0r43,134v11,-48,28,-89,42,-134r49,0","w":183},"Z":{"d":"63,-38v39,4,86,0,128,1r0,37r-182,0r0,-40r121,-167r-110,0r0,-37r164,0r0,40","w":198},"=":{"d":"215,-113r-190,0r0,-35r190,0r0,35xm215,-36r-190,0r0,-35r190,0r0,35","w":239},">":{"d":"19,-47r101,-49r-101,-47r0,-45r139,70r0,46r-139,70r0,-45","w":169},"?":{"d":"94,-25v0,-16,-13,-28,-29,-28v-16,0,-28,12,-28,28v0,16,12,29,28,29v16,0,29,-13,29,-29xm41,-71v-11,-45,53,-76,53,-113v0,-30,-56,-30,-80,-14r-5,-37v50,-26,141,-13,137,48v10,37,-59,70,-58,116r-47,0","w":159},"\u201d":{"d":"39,-236v5,-22,31,-16,55,-17v-10,30,-23,66,-37,99r-43,5v11,-34,21,-68,25,-87xm116,-236v5,-22,32,-17,56,-17v-10,30,-24,66,-38,99r-43,5v11,-34,20,-68,25,-87","w":187},"\u2019":{"d":"39,-236v5,-22,31,-16,55,-17v-10,30,-23,66,-37,99r-43,5v11,-34,21,-68,25,-87","w":110},"\u201c":{"d":"149,-167v-5,22,-31,18,-56,18v10,-30,24,-67,38,-100r43,-4v-11,34,-21,67,-25,86xm72,-167v-5,22,-31,18,-56,18v10,-30,24,-67,38,-100r42,-4v-11,34,-20,67,-24,86","w":187},"\u2018":{"d":"72,-167v-5,22,-31,18,-56,18v10,-30,24,-67,38,-100r42,-4v-11,34,-20,67,-24,86","w":110},"q":{"d":"145,-21v-47,52,-133,17,-133,-64v0,-80,82,-124,133,-70r1,-21r47,0r0,247r-48,0r0,-92xm105,-33v29,0,40,-25,40,-59v0,-31,-15,-50,-40,-50v-28,0,-43,22,-43,55v0,33,14,54,43,54","w":217},"Q":{"d":"261,-122v0,53,-30,96,-74,115r14,51r-47,12r-13,-53v-76,6,-131,-53,-131,-125v0,-71,52,-125,125,-125v73,0,126,54,126,125xm135,-35v41,0,73,-30,73,-87v0,-57,-32,-87,-73,-87v-41,0,-72,30,-72,87v0,57,31,87,72,87","w":270},"S":{"d":"26,-176v0,-71,90,-83,145,-63r-5,38v-25,-10,-90,-17,-90,20v0,21,15,29,38,35v40,12,66,29,66,71v0,75,-97,93,-164,69r5,-39v39,13,108,21,108,-22v0,-20,-13,-30,-36,-36v-37,-10,-67,-29,-67,-73","w":196},"R":{"d":"72,-136v35,2,63,-3,63,-36v0,-33,-30,-39,-63,-34r0,70xm143,0v-16,-42,-3,-112,-71,-99r0,99r-48,0r0,-240v25,-4,54,-6,74,-6v107,0,115,103,45,124v38,14,36,79,53,122r-53,0"},"r":{"d":"128,-179r-1,47v-41,5,-54,11,-55,66r0,66r-48,0r0,-176r47,0v1,10,-1,24,2,32v10,-19,32,-34,55,-35","w":128,"k":{"v":-8,"t":-4,"y":-8}},"s":{"d":"67,-67v-30,-8,-48,-22,-48,-55v0,-50,65,-69,111,-49r-5,36v-14,-7,-54,-14,-56,8v0,9,5,16,17,19v37,10,52,23,52,53v0,56,-77,71,-127,49r5,-36v22,10,72,17,72,-7v0,-9,-8,-14,-21,-18","w":149},"T":{"d":"207,-244r0,38r-77,0r0,206r-48,0r0,-206r-77,0r0,-38r202,0","w":212,"k":{"A":30,"c":33,"d":33,"e":33,"g":33,"J":35,"m":35,"n":35,"o":33,"x":26,"w":25,"v":26,"u":35,"s":35,"r":35,"q":33,"y":22,"z":32,"a":31}},"t":{"d":"131,-176r0,37r-45,0v3,44,-18,124,44,103r5,35v-43,12,-97,6,-97,-50r0,-88r-30,0r0,-37r30,0r0,-40r48,0r0,40r45,0","w":145},"u":{"d":"96,-35v54,0,33,-88,37,-141r48,0r0,176r-47,0v-1,-7,1,-17,-2,-22v-30,45,-111,30,-111,-41r0,-113r48,0r0,106v0,24,8,35,27,35","w":205},"U":{"d":"210,-84v0,58,-42,88,-94,88v-52,0,-93,-30,-93,-81r0,-167r48,0r0,163v0,31,22,46,46,46v25,0,48,-13,48,-46r0,-163r45,0r0,160","w":231},"V":{"d":"168,-244r49,0r-85,244r-49,0r-84,-244r51,0r32,100v9,24,16,61,28,98v19,-81,37,-127,58,-198","w":213,"k":{"A":27,"c":15,"d":15,"e":15,"g":15,"J":22,"o":15,"s":20,"q":15,"z":13,"a":19}},"v":{"d":"136,-176r49,0r-68,176r-50,0r-67,-176r51,0r43,134v11,-48,28,-89,42,-134","w":183},"W":{"d":"282,-244r48,0r-73,244r-49,0v-16,-70,-33,-113,-43,-196v-11,82,-27,126,-44,196r-48,0r-73,-244r50,0v16,68,37,119,47,198r16,-81r29,-117r48,0v16,68,35,118,44,197v13,-69,31,-133,48,-197","w":327,"k":{"A":24,"c":13,"d":13,"e":13,"g":13,"J":21,"o":13,"s":18,"q":13,"z":11,"a":17}},"w":{"d":"232,-176r49,0r-60,176r-50,0v-11,-45,-25,-82,-30,-134v-7,50,-19,90,-30,134r-50,0r-60,-176r52,0v11,42,29,93,34,137v5,-42,20,-95,31,-137r49,0r32,137v4,-45,23,-95,33,-137","w":280},"x":{"d":"116,-92r65,92r-59,0v-13,-18,-20,-41,-35,-57r-33,57r-55,0r63,-90r-62,-86r59,0v11,17,19,36,31,52r31,-52r56,0","w":181},"X":{"d":"195,-244r-70,118r76,126r-57,0r-47,-85r-45,85r-53,0r73,-123r-72,-121r57,0r43,78r42,-78r53,0","w":197},"Y":{"d":"153,-244r52,0r-78,139r0,105r-49,0r0,-101r-79,-143r55,0r50,99","w":201,"k":{"A":32,"c":28,"d":28,"e":28,"g":28,"J":26,"m":22,"n":22,"o":28,"u":22,"s":31,"q":28,"a":31}},"P":{"d":"72,-206r0,80v36,2,63,-5,64,-41v0,-35,-29,-44,-64,-39xm24,0r0,-240v78,-17,167,-2,164,68v-2,65,-53,92,-116,85r0,87r-48,0","w":192,"k":{"c":4,"d":4,"e":4,"g":4,"J":27,"o":4,"q":4,"a":10}},"p":{"d":"72,-155v47,-51,134,-16,134,64v0,81,-84,126,-134,70r0,92r-48,0r0,-247r47,0xm112,-142v-29,0,-40,24,-40,58v0,31,15,51,40,51v28,0,43,-22,43,-55v0,-33,-14,-54,-43,-54","w":217},"N":{"d":"235,-244r0,244r-68,0v-35,-69,-69,-119,-100,-197r1,197r-45,0r0,-244r68,0v35,70,68,118,100,197r-1,-197r45,0","w":257},"O":{"d":"135,-247v73,0,126,54,126,125v0,71,-53,126,-126,126v-73,0,-125,-55,-125,-126v0,-71,52,-125,125,-125xm135,-35v41,0,73,-30,73,-87v0,-57,-32,-87,-73,-87v-41,0,-72,30,-72,87v0,57,31,87,72,87","w":270},"o":{"d":"101,-179v56,0,90,40,90,91v0,51,-34,92,-90,92v-56,0,-89,-41,-89,-92v0,-51,33,-91,89,-91xm101,-33v27,0,39,-24,39,-55v0,-31,-12,-54,-39,-54v-27,0,-39,23,-39,54v0,31,12,55,39,55","w":202},"n":{"d":"109,-141v-54,0,-33,88,-37,141r-48,0r0,-176r47,0v1,7,-1,18,2,23v30,-46,112,-30,112,41r0,112r-49,0r0,-105v0,-24,-8,-36,-27,-36","w":205},"M":{"d":"215,-235r59,0r9,235r-49,0r-2,-118v-1,-22,2,-40,1,-57v-12,58,-39,114,-57,168r-51,0v-17,-53,-44,-112,-56,-167r-1,174r-45,0r8,-235r59,0v20,62,48,119,62,187v18,-65,41,-126,63,-187","w":306},"m":{"d":"72,-153v20,-34,87,-35,101,6v28,-52,109,-40,109,33r0,114r-49,0r0,-107v0,-22,-8,-34,-26,-34v-42,-2,-28,94,-30,141r-48,0r0,-107v0,-22,-8,-34,-26,-34v-41,-2,-30,93,-31,141r-48,0r0,-176r47,0","w":302},"L":{"d":"24,-244r48,0r0,207r110,0r0,37r-158,0r0,-244","w":184},"l":{"d":"72,0r-48,0r0,-259r48,0r0,259","w":95},"k":{"d":"190,-176r-74,74r79,102r-61,0v-18,-21,-32,-48,-52,-67v-16,9,-8,43,-10,67r-48,0r0,-259r48,0r1,151v17,-24,35,-45,53,-68r64,0","w":187},"K":{"d":"215,-244r-104,114r111,130r-66,0r-77,-96r-7,9r0,87r-48,0r0,-244r48,0r1,100r81,-100r61,0","w":214},"J":{"d":"119,-86v2,78,-59,101,-125,85r5,-38v39,12,72,-2,72,-45r0,-160r48,0r0,158","w":137},"j":{"d":"53,-191v-15,0,-28,-13,-28,-28v0,-15,13,-27,28,-27v15,0,28,12,28,27v0,15,-13,28,-28,28xm77,-14v0,64,-41,84,-94,88r-5,-37v31,-4,51,-15,51,-49r0,-164r48,0r0,162","w":100},"i":{"d":"24,0r0,-176r48,0r0,176r-48,0xm48,-191v-15,0,-28,-13,-28,-28v0,-15,13,-27,28,-27v15,0,28,12,28,27v0,15,-13,28,-28,28","w":95},"I":{"d":"72,0r-48,0r0,-244r48,0r0,244","w":95},"H":{"d":"183,-244r48,0r0,244r-48,0r0,-107r-111,0r0,107r-48,0r0,-244r48,0r0,99r111,0r0,-99","w":254},"h":{"d":"109,-141v-54,0,-33,88,-37,141r-48,0r0,-259r48,0r1,106v30,-46,112,-30,112,41r0,112r-49,0r0,-105v0,-24,-8,-36,-27,-36","w":205},"g":{"d":"193,-176r0,150v4,90,-89,119,-167,88r5,-37v49,24,120,16,113,-48v-47,51,-132,16,-132,-63v0,-79,83,-123,132,-69r1,-21r48,0xm104,-142v-27,0,-42,20,-42,53v0,33,15,53,43,53v28,0,39,-23,39,-56v0,-31,-15,-50,-40,-50","w":216},"G":{"d":"211,-198v-68,-25,-149,-10,-149,76v0,74,53,99,113,82r0,-54r-44,0r0,-38r92,0r0,121v-98,34,-213,14,-213,-107v0,-111,113,-153,206,-118","w":242},"F":{"d":"72,0r-48,0r0,-244r142,0r0,38r-94,0r0,65r82,0r0,38r-82,0r0,103","w":169},"f":{"d":"37,-176v-3,-67,52,-100,113,-82r-5,36v-31,-12,-64,3,-59,46r43,0r0,37r-43,0r0,139r-49,0r0,-139r-29,0r0,-37r29,0","w":135},"E":{"d":"72,-39r97,0r0,39r-145,0r0,-244r142,0r0,38r-94,0r0,61r82,0r0,38r-82,0r0,68","w":179},"e":{"d":"103,-179v54,0,80,50,70,105r-114,0v1,47,63,48,99,30r5,36v-62,29,-151,7,-151,-75v0,-58,36,-96,91,-96xm98,-142v-19,0,-33,15,-37,35r68,0v-1,-18,-10,-35,-31,-35","w":187},"d":{"d":"145,-21v-47,52,-133,17,-133,-64v0,-80,82,-124,133,-70r0,-104r48,0r0,259r-47,0xm105,-33v29,0,40,-25,40,-59v0,-31,-15,-50,-40,-50v-28,0,-43,22,-43,55v0,33,14,54,43,54","w":217},"D":{"d":"24,-240v105,-19,223,3,223,108v0,117,-108,149,-223,129r0,-237xm72,-205r0,167v70,7,121,-11,123,-87v2,-66,-54,-90,-123,-80","w":256},"C":{"d":"10,-120v0,-108,115,-151,207,-116r-5,38v-68,-24,-150,-12,-150,76v0,86,81,102,147,75r5,39v-91,32,-204,3,-204,-112","w":225},"c":{"d":"63,-87v0,56,54,63,92,45r5,36v-64,26,-148,3,-148,-77v0,-85,84,-112,150,-86r-5,36v-40,-18,-94,-10,-94,46","w":170},"b":{"d":"72,-155v47,-51,134,-16,134,64v0,81,-84,126,-134,70r-1,21r-47,0r0,-259r48,0r0,104xm112,-142v-29,0,-40,24,-40,58v0,31,15,51,40,51v28,0,43,-22,43,-55v0,-33,-14,-54,-43,-54","w":217},"A":{"d":"172,0r-23,-72r-73,0r-23,72r-48,0r84,-244r50,0r84,244r-51,0xm113,-199r-26,89r51,0v-8,-24,-15,-48,-25,-89","w":227,"k":{"Y":32,"w":14,"W":24,"v":16,"V":27,"T":30,"y":9}},"\u00a0":{"w":70}}}); + + +/*! + * The following copyright notice may not be removed under any circumstances. + * + * Copyright: + * Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All + * rights reserved. + * + * Trademark: + * Colaborate Light is a trademark of This Font is designed by Ralph Oliver du + * Carrois. + * + * Description: + * Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All + * rights reserved. + * + * Manufacturer: + * This Font is designed by Ralph Oliver du Carrois + */ +Cufon.registerFont({"w":488,"face":{"font-family":"ColaborateLight","font-weight":400,"font-stretch":"normal","units-per-em":"1000","panose-1":"2 0 5 3 4 0 0 2 0 4","ascent":"800","descent":"-200","x-height":"11","bbox":"-26 -746 1001 209","underline-thickness":"50","underline-position":"-50","stemh":"54","stemv":"65","unicode-range":"U+0020-U+2122"},"glyphs":{" ":{"w":244},"\u00d7":{"d":"440,-74r-44,44r-151,-152r-152,152r-44,-44r152,-152r-152,-151r44,-44r152,152r151,-152r44,44r-152,151"},"!":{"d":"155,-170r-66,0r0,-477r66,0r0,477xm162,0r-80,0r0,-84r80,0r0,84","w":244},"\"":{"d":"282,-647r-8,217r-50,0r-8,-217r66,0xm145,-647r-8,217r-51,0r-8,-217r67,0","w":360},"#":{"d":"475,-396r-106,0r-27,153r94,0r0,52r-103,0r-33,191r-61,0r33,-191r-111,0r-33,191r-61,0r33,-191r-87,0r0,-52r97,0r26,-153r-84,0r0,-52r94,0r35,-199r61,0r-35,199r111,0r35,-199r61,0r-35,199r96,0r0,52xm308,-396r-111,0r-26,153r110,0"},"$":{"d":"437,-168v0,119,-74,168,-167,181r0,85r-59,0r0,-81v-58,0,-110,-14,-166,-29r25,-64v50,19,87,35,141,36r0,-267v-82,-31,-167,-67,-167,-182v0,-107,73,-156,167,-167r0,-90r59,0r0,88v43,2,93,10,140,26r-25,64v-33,-14,-63,-29,-115,-32r0,238v82,31,167,71,167,194xm212,-385r0,-212v-58,10,-94,44,-94,108v0,57,42,83,94,104xm363,-166v0,-64,-42,-94,-93,-117r0,235v48,-13,93,-46,93,-118"},"%":{"d":"684,-167v0,89,-17,178,-128,178v-110,0,-125,-89,-125,-178v0,-85,24,-171,126,-171v110,0,127,82,127,171xm583,-629r-363,629r-63,0r362,-629r64,0xm307,-487v0,89,-17,178,-128,178v-110,0,-125,-89,-125,-178v0,-85,24,-171,126,-171v110,0,127,82,127,171xm635,-167v0,-73,-6,-134,-78,-134v-68,0,-76,73,-76,134v0,74,7,141,75,141v72,0,79,-66,79,-141xm258,-487v0,-73,-6,-134,-78,-134v-68,0,-76,73,-76,134v0,74,7,141,75,141v72,0,79,-66,79,-141","w":738},"&":{"d":"442,0r-58,0r-14,-54v-26,38,-70,68,-125,68v-110,0,-199,-58,-199,-187v0,-76,30,-144,119,-187v-34,-26,-99,-60,-99,-135v0,-91,41,-166,159,-166v100,0,159,48,159,157v0,80,-58,125,-150,164v-72,31,-120,70,-120,165v0,62,35,138,135,138v46,0,90,-36,116,-78r0,-122r-103,0r0,-49r168,0r0,146v0,54,10,112,12,140xm317,-505v0,-62,-20,-105,-94,-105v-66,0,-89,47,-89,114v0,56,54,88,81,109v48,-20,102,-50,102,-118"},"'":{"d":"155,-647r-8,217r-50,0r-8,-217r66,0","w":244},"(":{"d":"223,128r-60,0v-85,-147,-106,-232,-106,-382v0,-183,31,-267,101,-393r60,0v-71,131,-91,224,-91,393v0,139,15,234,96,382","w":275},")":{"d":"219,-254v0,150,-21,235,-106,382r-60,0v81,-148,96,-243,96,-382v0,-169,-20,-262,-91,-393r60,0v70,126,101,210,101,393","w":275},"*":{"d":"377,-494r-143,35r-1,6r93,119r-45,32r-80,-124r-7,0r-83,124r-45,-33r94,-118r-3,-6r-144,-36r19,-55r138,52r6,-5r-7,-145r56,0r-8,147r6,4r137,-52","w":390},"+":{"d":"452,-187r-177,0r0,187r-63,0r0,-187r-176,0r0,-55r176,0r0,-182r63,0r0,182r177,0r0,55"},",":{"d":"161,-75r-81,178r-52,0r56,-178r77,0","w":244},"-":{"d":"298,-214r-269,0r0,-58r269,0r0,58","w":327},".":{"d":"161,0r-78,0r0,-83r78,0r0,83","w":244,"k":{"y":62,"w":86,"v":62,"Y":62,"W":62,"V":62}},"\/":{"d":"264,-658r-213,668r-62,0r214,-668r61,0","w":254},"0":{"d":"450,-308v0,163,-23,323,-208,323v-183,0,-205,-162,-205,-323v0,-155,36,-311,206,-311v183,0,207,149,207,311xm375,-308v0,-139,-8,-255,-132,-255v-118,0,-131,137,-131,255v0,141,9,267,130,267v129,0,133,-133,133,-267"},"1":{"d":"325,1r-73,0r0,-528r-115,99r-25,-59r144,-120r69,0r0,608"},"2":{"d":"437,0r-375,0r-24,-61v92,-86,311,-253,311,-375v0,-93,-45,-128,-125,-128v-52,0,-90,18,-147,46r-25,-63v74,-30,119,-39,174,-39v110,0,197,49,197,180v0,143,-195,295,-291,382r305,0r0,58"},"3":{"d":"413,-158v0,132,-106,173,-214,173v-68,0,-106,-4,-164,-24r25,-63v38,14,76,31,142,31v71,0,136,-33,136,-118v0,-112,-81,-133,-191,-133r0,-54v102,0,176,-17,176,-114v0,-82,-49,-104,-112,-104v-48,0,-95,22,-140,44r-25,-63v44,-22,116,-37,166,-37v114,0,186,50,186,158v0,92,-63,133,-134,142v70,11,149,52,149,162"},"4":{"d":"467,-168r-96,0r0,168r-73,0r0,-168r-242,0r-26,-60r269,-379r72,0r0,383r96,0r0,56xm298,-224r0,-296r-208,296r208,0"},"5":{"d":"438,-191v0,131,-87,206,-217,206v-61,0,-112,-4,-167,-22r24,-63v45,18,96,29,144,29v98,0,143,-59,143,-152v0,-92,-46,-139,-116,-139v-51,0,-92,22,-125,39r-55,-22r0,-292r344,0r0,56r-271,0r0,184v31,-8,59,-21,109,-21v121,0,187,73,187,197"},"6":{"d":"443,-192v0,112,-77,207,-192,207v-173,0,-206,-150,-206,-298v0,-160,72,-337,241,-337v37,0,85,6,126,17r-24,63v-33,-13,-59,-24,-97,-24v-114,0,-178,113,-178,266v28,-59,84,-100,142,-100v124,0,188,82,188,206xm368,-192v0,-81,-24,-151,-115,-151v-81,0,-117,64,-131,100v0,155,46,202,130,202v69,0,116,-57,116,-151"},"7":{"d":"425,-552r-228,552r-81,0r243,-550r-315,0r0,-57r355,0"},"8":{"d":"451,-148v0,137,-114,163,-210,163v-94,0,-204,-30,-204,-163v0,-89,58,-146,146,-172v-28,-13,-125,-48,-125,-143v0,-104,71,-157,188,-157v120,0,190,43,190,156v0,93,-97,137,-133,145v95,30,148,83,148,171xm364,-462v0,-74,-41,-103,-118,-103v-74,0,-117,30,-117,104v0,65,68,102,113,116v49,-11,122,-53,122,-117xm378,-149v0,-87,-74,-124,-134,-143v-62,19,-135,52,-135,143v0,72,51,109,132,109v79,0,137,-33,137,-109"},"9":{"d":"442,-322v0,160,-72,337,-241,337v-37,0,-85,-6,-126,-17r25,-63v33,13,58,24,96,24v114,0,178,-113,178,-266v-28,59,-84,100,-142,100v-124,0,-187,-82,-187,-206v0,-112,78,-207,191,-207v174,0,206,150,206,298xm365,-362v0,-155,-46,-202,-130,-202v-69,0,-116,57,-116,151v0,81,24,151,115,151v81,0,117,-64,131,-100"},":":{"d":"161,-369r-78,0r0,-83r78,0r0,83xm161,0r-78,0r0,-83r78,0r0,83","w":244},";":{"d":"158,-369r-78,0r0,-83r78,0r0,83xm161,-75r-81,178r-52,0r52,-178r81,0","w":244},"<":{"d":"452,-21r-417,-168r0,-79r417,-169r0,70r-350,139r350,138r0,69"},"=":{"d":"452,-270r-417,0r0,-58r417,0r0,58xm452,-97r-417,0r0,-58r417,0r0,58"},">":{"d":"452,-189r-417,168r0,-69r350,-140r-350,-137r0,-70r417,169r0,79"},"?":{"d":"380,-503v0,119,-162,141,-162,247r0,92r-69,0r0,-97v0,-136,159,-147,159,-242v0,-70,-33,-97,-107,-97v-37,0,-96,17,-132,35r-18,-62v43,-15,102,-30,150,-30v92,0,179,28,179,154xm224,0r-80,0r0,-84r80,0r0,84","w":410},"@":{"d":"759,-382v0,183,-134,257,-297,257v-124,0,-213,-68,-213,-195v0,-104,71,-192,195,-192v40,0,71,9,86,15r0,193r35,-5r20,52r-114,14r0,-213v-6,-2,-18,-5,-29,-5v-70,0,-126,44,-126,139v0,109,72,147,148,147v133,0,227,-52,227,-206v0,-164,-118,-226,-241,-226v-149,0,-301,78,-301,287v0,212,153,286,300,286v79,0,131,-9,212,-36r24,55v-82,25,-165,32,-239,32v-219,0,-364,-121,-364,-337v0,-221,160,-338,368,-338v146,0,309,84,309,276","w":841},"A":{"d":"600,0r-82,0r-69,-193r-266,0r-73,193r-77,0r263,-647r60,0xm430,-248r-108,-307r-118,307r226,0","w":632,"k":{"y":52,"w":52,"v":52,"u":12,"t":12,"q":12,"o":12,"e":12,"d":12,"c":12,"a":12,"Y":52,"W":52,"V":52,"T":52,"Q":12,"O":12,"G":12,"C":12,"A":-1,"@":24,"&":24}},"B":{"d":"522,-184v0,148,-97,184,-215,184r-209,0r0,-647r176,0v126,0,218,30,218,169v0,68,-43,118,-103,139v80,16,133,66,133,155xm417,-477v0,-90,-45,-113,-143,-113r-103,0r0,229r117,0v71,0,129,-34,129,-116xm446,-184v0,-101,-71,-121,-156,-121r-119,0r0,248r130,0v85,0,145,-20,145,-127","w":580,"k":{"V":8}},"C":{"d":"503,-12v-57,20,-107,29,-170,29v-198,0,-270,-143,-270,-340v0,-180,65,-335,276,-335v56,0,108,8,157,24r-25,64v-42,-18,-84,-31,-132,-31v-157,0,-200,127,-200,277v0,159,45,284,194,284v50,0,93,-15,145,-36","w":543},"D":{"d":"565,-326v0,235,-90,326,-309,326r-158,0r0,-647r158,0v224,0,309,88,309,321xm489,-325v0,-202,-65,-265,-233,-265r-85,0r0,533r94,0v152,0,224,-81,224,-268","w":628,"k":{"V":8,"J":20}},"E":{"d":"465,0r-367,0r0,-647r358,0r0,57r-285,0r0,227r264,0r0,57r-264,0r0,249r294,0r0,57","w":536},"F":{"d":"456,-589r-285,0r0,230r273,0r0,56r-273,0r0,303r-73,0r0,-647r358,0r0,58","w":512},"G":{"d":"533,-39v-67,34,-117,56,-198,56v-216,0,-272,-166,-272,-341v0,-199,79,-334,281,-334v45,0,103,12,149,24r-25,64v-39,-17,-79,-31,-123,-31v-140,0,-206,89,-206,277v0,156,39,284,199,284v48,0,91,-19,129,-40r0,-182r-143,0r0,-58r209,0r0,281","w":596},"H":{"d":"549,0r-73,0r0,-305r-305,0r0,305r-73,0r0,-647r73,0r0,284r305,0r0,-284r73,0r0,647","w":647},"I":{"d":"159,0r-73,0r0,-647r73,0r0,647","w":245},"J":{"d":"300,-204v0,212,-152,242,-262,268r-20,-64v90,-18,209,-24,209,-194r0,-453r73,0r0,443","w":398},"K":{"d":"573,0r-96,0r-306,-312r0,312r-73,0r0,-647r73,0r0,294r287,-294r80,0r-298,307","w":589,"k":{"y":52,"w":52,"v":52,"u":24,"q":24,"o":24,"e":24,"d":24,"c":24,"a":24,"U":12,"Q":24,"O":24,"G":24,"C":24,"@":24,"&":12}},"L":{"d":"467,0r-369,0r0,-647r73,0r0,587r296,0r0,60","w":475,"k":{"Y":96,"W":64,"V":72,"T":64,"O":20}},"M":{"d":"740,0r-71,0r0,-568r-221,568r-60,0r-223,-568r0,568r-67,0r0,-647r112,0r211,545r213,-545r106,0r0,647","w":838},"N":{"d":"576,0r-106,0r-305,-561r0,561r-67,0r0,-647r104,0r303,561r0,-561r71,0r0,647","w":674},"O":{"d":"617,-321v0,192,-70,338,-275,338v-215,0,-279,-145,-279,-338v0,-191,73,-337,280,-337v210,0,274,143,274,337xm541,-321v0,-172,-46,-280,-199,-280v-154,0,-203,109,-203,280v0,171,49,281,203,281v156,0,199,-115,199,-281","w":680,"k":{"Z":12,"Y":24,"X":24,"W":24,"V":24,"J":20,"A":12}},"P":{"d":"501,-463v0,134,-75,190,-205,190r-125,0r0,273r-73,0r0,-647r187,0v132,0,216,48,216,184xm426,-463v0,-104,-56,-127,-143,-127r-112,0r0,260r117,0v88,0,138,-29,138,-133","w":555,"k":{"J":80,"A":48}},"Q":{"d":"617,-321v0,192,-70,338,-275,338v-215,0,-279,-145,-279,-338v0,-191,72,-337,280,-337v210,0,274,143,274,337xm556,57r-26,57r-213,-31r27,-44xm541,-321v0,-172,-46,-280,-199,-280v-154,0,-203,109,-203,280v0,171,49,281,203,281v156,0,199,-115,199,-281","w":680},"R":{"d":"542,0r-90,0r-213,-289r-68,0r0,289r-73,0r0,-647r202,0v103,0,206,39,206,174v0,94,-43,176,-182,182xm431,-473v0,-76,-45,-117,-126,-117r-134,0r0,244r135,0v94,0,125,-55,125,-127","w":587},"S":{"d":"478,-168v0,144,-109,185,-236,185v-56,0,-119,-14,-174,-29r25,-64v48,18,97,36,150,36v77,0,160,-26,160,-126v0,-87,-80,-112,-163,-142v-86,-31,-172,-68,-172,-181v0,-122,109,-169,228,-169v44,0,107,8,160,26r-25,64v-37,-16,-74,-33,-136,-33v-92,0,-152,36,-152,112v0,64,59,89,127,114v96,34,208,68,208,207","w":549},"T":{"d":"482,-589r-192,0r0,589r-73,0r0,-589r-191,0r0,-58r456,0r0,58","w":508,"k":{"z":86,"y":86,"x":86,"w":86,"v":86,"u":86,"s":86,"r":86,"q":86,"p":86,"o":86,"n":86,"m":86,"j":24,"i":24,"g":86,"e":86,"d":86,"c":86,"a":86,"Q":24,"O":24,"J":52,"G":24,"C":24,"A":52,"@":24,";":86,":":86,".":86,",":86}},"U":{"d":"580,-237v0,172,-75,254,-234,254v-176,0,-248,-83,-248,-256r0,-408r73,0r0,398v0,165,56,209,175,209v111,0,161,-55,161,-209r0,-398r73,0r0,410","w":678},"V":{"d":"575,-647r-236,647r-64,0r-245,-647r81,0r198,548r188,-548r78,0","w":604,"k":{"z":24,"y":24,"x":24,"w":24,"v":24,"u":52,"s":52,"r":52,"q":52,"p":24,"o":52,"n":52,"m":52,"j":24,"i":24,"g":52,"e":52,"d":52,"c":52,"a":52,"Q":24,"O":24,"J":52,"G":24,"C":24,"A":86,";":24,":":24,".":52,",":52}},"W":{"d":"843,-647r-172,647r-85,0r-146,-514r-154,514r-87,0r-163,-647r77,0r138,550r152,-523r85,0r143,524r142,-551r70,0","w":879,"k":{"z":24,"y":24,"x":24,"w":12,"v":12,"u":24,"s":24,"r":24,"q":24,"p":24,"o":24,"n":24,"m":24,"j":8,"i":8,"g":24,"e":24,"d":24,"c":24,"a":24,"Q":24,"O":24,"J":52,"G":24,"C":24,"A":86,";":52,":":52,".":52,",":52}},"X":{"d":"541,0r-89,0r-165,-278r-176,278r-79,0r216,-334r-189,-313r85,0r148,249r156,-249r79,0r-198,307","w":579,"k":{"y":24,"w":24,"v":24,"Q":24,"O":24,"G":24,"C":24}},"Y":{"d":"546,-647r-225,356r0,291r-73,0r0,-287r-232,-360r83,0r189,292r181,-292r77,0","w":562,"k":{"s":24,"q":24,"o":24,"g":24,"e":24,"d":24,"c":24,"a":24,"O":24,"J":52,"G":24,"C":24,"A":52,".":52,",":52}},"Z":{"d":"494,-585r-370,527r362,0r0,58r-418,0r-23,-62r369,-527r-332,0r0,-58r388,0","w":539,"k":{"O":12}},"[":{"d":"226,127r-142,0r0,-803r142,0r0,50r-79,0r0,700r79,0r0,53","w":272},"\\":{"d":"264,10r-62,0r-213,-668r62,0","w":254},"]":{"d":"192,126r-142,0r0,-53r79,0r0,-701r-79,0r0,-49r142,0r0,803","w":272},"^":{"d":"454,-269r-69,0r-142,-299r-142,299r-66,0r181,-378r53,0"},"_":{"d":"501,102r-502,0r0,-51r502,0r0,51","w":500},"`":{"d":"189,-530r-52,0r-118,-117r74,0","w":208},"a":{"d":"416,0r-58,0v-1,-7,-16,-44,-17,-54v-23,33,-70,65,-128,65v-92,0,-166,-39,-166,-131v0,-93,51,-158,245,-158r44,0r0,-35v0,-61,-21,-104,-91,-104v-63,0,-113,19,-156,40r-23,-56v53,-20,111,-35,180,-35v94,0,156,47,156,147r0,181v0,36,8,84,14,140xm337,-101r0,-128r-31,0v-144,0,-190,33,-190,107v0,51,38,82,104,82v53,0,96,-24,117,-61","w":479},"b":{"d":"444,-231v0,131,-57,242,-193,242v-56,0,-98,-33,-119,-65r-14,54r-57,0v6,-57,9,-82,9,-140r0,-517r65,0r0,268v21,-35,73,-79,133,-79v129,0,176,110,176,237xm376,-229v0,-137,-52,-188,-120,-188v-75,0,-109,68,-123,98r0,209v27,47,65,70,112,70v89,0,131,-68,131,-189","w":491},"c":{"d":"395,-19v-35,17,-111,30,-146,30v-140,0,-202,-96,-202,-236v0,-148,61,-243,205,-243v41,0,108,17,141,30r-23,55v-34,-17,-85,-34,-119,-34v-101,0,-136,75,-136,192v0,107,35,185,135,185v31,0,83,-14,122,-34","w":433},"d":{"d":"431,0r-57,0r-15,-54v-21,32,-63,65,-119,65v-144,0,-193,-111,-193,-242v0,-128,63,-237,183,-237v61,0,105,42,126,77r0,-266r65,0r0,517v0,58,4,83,10,140xm358,-110r0,-209v-15,-32,-46,-98,-119,-98v-67,0,-124,54,-124,188v0,121,38,189,131,189v47,0,85,-23,112,-70","w":491},"e":{"d":"432,-206r-315,0v3,97,38,167,133,167v50,0,95,-14,142,-39r20,54v-53,25,-113,35,-170,35v-138,0,-195,-108,-195,-235v0,-106,42,-244,191,-244v151,0,194,107,194,262xm367,-257v-2,-109,-42,-160,-128,-160v-71,0,-118,55,-123,160r251,0","w":481},"f":{"d":"279,-614v-82,5,-130,42,-130,103r0,54r104,0r0,51r-104,0r0,406r-65,0r0,-406r-69,0r0,-51r69,0r0,-48v0,-106,98,-159,178,-165","w":279},"g":{"d":"463,68v0,91,-99,130,-210,130v-160,0,-214,-49,-214,-126v0,-51,54,-86,90,-95v-35,-15,-61,-40,-61,-77v0,-33,22,-55,44,-74v-14,-16,-50,-53,-50,-125v0,-53,34,-169,183,-169v34,0,57,5,76,12v37,-3,93,-9,141,-11r-20,50r-65,0v24,19,54,63,54,116v0,85,-52,175,-184,175v-26,0,-77,-10,-96,-21v-12,16,-24,25,-24,43v0,23,20,41,136,51v167,14,200,57,200,121xm363,-300v0,-74,-39,-117,-116,-117v-80,0,-117,53,-117,120v0,70,38,120,118,120v86,0,115,-64,115,-123xm395,68v0,-40,-57,-57,-215,-72v-48,11,-73,48,-73,75v0,46,47,77,146,77v101,0,142,-30,142,-80","w":496},"h":{"d":"419,0r-65,0r0,-280v0,-78,-14,-137,-100,-137v-63,0,-106,59,-119,97r0,320r-65,0r0,-657r65,0r0,268v19,-33,65,-79,129,-79v123,0,155,82,155,175r0,293","w":489},"i":{"d":"140,-569r-72,0r0,-78r72,0r0,78xm137,0r-65,0r0,-457r65,0r0,457","w":208},"j":{"d":"136,-569r-73,0r0,-78r73,0r0,78xm132,-6v0,92,-47,139,-137,165r-21,-56v70,-15,93,-41,93,-100r0,-460r65,0r0,451","w":204},"k":{"d":"426,0r-79,0r-212,-239r0,239r-65,0r0,-657r65,0r0,388r194,-188r73,0r-207,198","w":441,"k":{"o":24}},"l":{"d":"135,0r-65,0r0,-657r65,0r0,657","w":205},"m":{"d":"700,0r-65,0r0,-290v0,-68,-16,-127,-100,-127v-58,0,-103,55,-120,102r0,315r-65,0r0,-290v0,-83,-32,-127,-99,-127v-56,0,-101,56,-116,96r0,321r-65,0r0,-352v0,-38,-6,-71,-9,-105r57,0r15,68v19,-28,67,-79,128,-79v82,0,116,38,140,91v26,-42,75,-91,141,-91v105,0,158,54,158,176r0,292","w":770},"n":{"d":"419,0r-65,0r0,-284v0,-70,-12,-133,-101,-133v-60,0,-102,55,-118,97r0,320r-65,0r0,-360v0,-38,-6,-61,-9,-97r57,0r14,68v18,-21,58,-79,130,-79v122,0,157,75,157,180r0,288","w":489},"o":{"d":"450,-231v0,132,-49,242,-201,242v-152,0,-202,-109,-202,-242v0,-126,50,-237,202,-237v153,0,201,105,201,237xm382,-231v0,-112,-31,-186,-133,-186v-96,0,-134,74,-134,186v0,109,31,191,134,191v104,0,133,-79,133,-191","w":497,"k":{"v":24}},"p":{"d":"444,-226v0,128,-57,237,-184,237v-59,0,-100,-29,-125,-63r0,232r-65,0r0,-500v0,-50,-3,-88,-9,-137r57,0r16,69v22,-35,70,-80,127,-80v139,0,183,112,183,242xm376,-228v0,-118,-35,-189,-128,-189v-55,0,-98,52,-114,97r0,211v23,31,51,69,122,69v69,0,120,-54,120,-188","w":491},"q":{"d":"431,-457v-6,49,-10,87,-10,137r0,500r-65,0r0,-232v-25,34,-66,63,-125,63v-130,0,-184,-109,-184,-237v0,-130,53,-242,187,-242v57,0,101,45,123,80r17,-69r57,0xm357,-109r0,-211v-16,-45,-58,-97,-113,-97v-87,0,-129,71,-129,189v0,134,52,188,121,188v71,0,98,-38,121,-69","w":491},"r":{"d":"330,-446r-23,55v-16,-14,-45,-26,-72,-26v-55,0,-86,91,-100,120r0,297r-65,0r0,-355v0,-45,-7,-79,-9,-102r57,0r14,93v17,-33,61,-104,116,-104v38,0,66,12,82,22","w":343,"k":{".":52}},"s":{"d":"370,-123v0,94,-82,134,-170,134v-53,0,-114,-10,-157,-29r23,-55v56,23,81,33,136,33v65,0,99,-30,99,-82v0,-50,-51,-65,-107,-83v-70,-23,-149,-50,-149,-134v0,-97,84,-129,168,-129v45,0,80,8,142,31r-23,55v-46,-21,-66,-35,-118,-35v-57,0,-100,20,-100,75v0,40,45,55,97,71v72,22,159,47,159,148","w":415},"t":{"d":"272,0r-21,59v-111,-22,-167,-83,-167,-170r0,-295r-69,0r0,-51r69,0r0,-117r65,0r0,117r105,0r0,51r-105,0r0,296v0,70,41,98,123,110","w":254},"u":{"d":"422,0r-57,0r-15,-68v-18,21,-54,79,-126,79v-117,0,-154,-75,-154,-180r0,-288r65,0r0,284v0,70,12,133,98,133v60,0,98,-55,114,-97r0,-320r65,0r0,360v0,38,7,61,10,97","w":483},"v":{"d":"450,-457r-176,457r-57,0r-177,-457r70,0r138,372r135,-372r67,0","w":489,"k":{"s":12,"q":12,"o":12,"g":12,"e":12,"d":12,"c":12,"a":12,"Y":24,"T":24,"J":24,"A":24,".":52,",":52}},"w":{"d":"674,-457r-156,457r-65,0r-98,-322r-106,322r-67,0r-144,-457r69,0r114,374r107,-330r60,0r100,328r121,-372r65,0","w":712,"k":{"s":12,"q":12,"o":12,"g":12,"e":12,"d":12,"c":12,"a":12,"Y":24,"T":24,"J":24,"A":24,".":86,",":86}},"x":{"d":"425,0r-79,0r-121,-186r-129,186r-71,0r164,-231r-153,-226r78,0r115,175r119,-175r69,0r-155,219","w":450},"y":{"d":"446,-457r-191,530v-26,71,-57,107,-139,136r-21,-57v55,-15,78,-38,88,-65r40,-106r-183,-438r70,0r146,363r124,-363r66,0","w":486,"k":{"s":12,"q":12,"o":12,"g":12,"e":12,"d":12,"c":12,"a":12,"T":24,"J":24,"A":24,".":52,",":52}},"z":{"d":"373,-402r-262,351r250,0r0,51r-301,0r-23,-55r263,-351r-239,0r0,-51r289,0","w":410},"{":{"d":"303,118v-275,-7,-99,-345,-255,-356r0,-55v152,-5,-24,-345,255,-354r0,54v-201,0,-56,267,-193,329v140,51,-4,328,193,328r0,54","w":357},"|":{"d":"151,166r-59,0r0,-868r59,0r0,868","w":244},"}":{"d":"309,-238v-156,11,20,349,-255,356r0,-54v197,0,53,-277,193,-328v-137,-62,8,-329,-193,-329r0,-54v279,9,103,349,255,354r0,55","w":357},"~":{"d":"462,-256v0,66,-54,105,-119,105v-80,0,-144,-78,-194,-78v-44,0,-67,21,-67,72r-56,-28v0,-67,49,-105,116,-105v79,0,142,77,194,77v44,0,70,-24,70,-71"},"\u2122":{"d":"796,-292r-45,0r0,-308r-133,308r-36,0r-133,-308r0,308r-43,0r0,-355r69,0r127,295r128,-295r66,0r0,355xm356,-611r-114,0r0,320r-47,0r0,-320r-112,0r0,-36r273,0r0,36","w":902},"\u2026":{"d":"648,0r-78,0r0,-83r78,0r0,83xm404,0r-77,0r0,-83r77,0r0,83xm161,0r-78,0r0,-83r78,0r0,83","w":731},"\u2013":{"d":"501,-210r-502,0r0,-58r502,0r0,58","w":500},"\u2014":{"d":"1001,-207r-1002,0r0,-61r1002,0r0,61","w":1000},"\u201c":{"d":"324,-648r-85,188r-64,0r98,-188r51,0xm189,-648r-85,188r-64,0r99,-188r50,0","w":364},"\u201d":{"d":"324,-647r-99,188r-51,0r85,-188r65,0xm189,-647r-98,188r-51,0r85,-188r64,0","w":364},"\u2018":{"d":"194,-648r-85,188r-64,0r99,-188r50,0","w":244},"\u2019":{"d":"197,-647r-97,188r-52,0r84,-188r65,0","w":244},"\u00a0":{"w":244}}}); + + diff --git a/koha-tmpl/opac-tmpl/prog/en/js/custom.js b/koha-tmpl/opac-tmpl/prog/en/js/custom.js new file mode 100644 index 0000000..e80c90d --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/js/custom.js @@ -0,0 +1,58 @@ + + + + + + + + +$(document).ready( function() { + + + Cufon.replace('.footer-one-third h2', { fontFamily: 'ColaborateLight', fontSize: '20px', color:'#c2aea8' } ); + Cufon.replace('.footer-one-third h3', { fontFamily: 'ColaborateLight', fontSize: '20px', color:'#c2aea8' } ); + + +}); + +// slideshow settings +$(document).ready(function() { + $('.slideshow').cycle({ + fx: 'fade' // transition type : fade, scrollUp, shuffle, etc... + }); + +}); + +// slider settings +$(document).ready(function() { + $('#slider1').s3Slider({ + timeOut: 6000 + }); +}); + + + + + + + + + + + +$(document).ready( function() { + + + Cufon.replace('#content h1', { fontFamily: 'Vegur', fontSize: '40px', color:'#000000', fontWeight:'normal' } ); + Cufon.replace('#content h2', { fontFamily: 'Vegur', fontSize: '22px', color:'#000000', fontWeight:'normal' } ); + Cufon.replace('#content h3', { fontFamily: 'Vegur', fontSize: '18px', color:'#000000', fontWeight:'normal' } ); + Cufon.replace('h3.post-title', { fontFamily: 'Vegur', fontSize: '30px', color:'#000000', fontWeight:'normal' } ); + Cufon.replace('h2.date-header', { fontFamily: 'Vegur', fontSize: '10px', color:'#000000', fontWeight:'normal' } ); + + + $('.rounded').corner(); + + $('#sidebar .widget').corner(); + + +}); diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt b/koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt new file mode 100644 index 0000000..23253a4 --- /dev/null +++ b/koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt @@ -0,0 +1,183 @@ + + + + + Scooter Online Library System + + + + + + + + + + + + +
      + +
      +
      + +
      +
      +
      +
      +

      Welcome to Scooter

      +

      +

      +

      Please choose a library Below

      +

      +

      + + + + +

      +
      + +

      OR

      +
      + Log in to Your Account: +
        +
      1. +
      2. +
      + +
      +
      + +

      + +
      + + +
      +
      + +
      +
      + + + + diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt index 9d7a2a7..4a7054b 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt @@ -49,6 +49,9 @@ $.tablesorter.addParser({ }); //]]> +[% IF (redirect) %] + +[% END %]
      diff --git a/mainpage.pl b/mainpage.pl index 25ee475..c5cbf3f 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -27,6 +27,9 @@ use C4::Auth; use C4::AuthoritiesMarc; use C4::Koha; use C4::NewsChannels; +use Data::Dumper::Simple; + + my $query = new CGI; my $authtypes = getauthtypes; my @authtypesloop; @@ -68,3 +71,6 @@ $template->param( ); output_html_with_http_headers $query, $cookie, $template->output; + + + diff --git a/members/member.pl b/members/member.pl index 724c996..b839386 100755 --- a/members/member.pl +++ b/members/member.pl @@ -32,7 +32,7 @@ use C4::Members; use C4::Branch; use C4::Category; use File::Basename; - +use Data::Dumper::Simple; my $input = new CGI; my $quicksearch = $input->param('quicksearch'); my $startfrom = $input->param('startfrom')||1; @@ -124,6 +124,7 @@ if($count == 1){ my @resultsdata; $to=($count>$to?$to:$count); my $index=$from; + foreach my $borrower(@$results[$from..$to-1]){ #find out stats my ($od,$issue,$fines)=GetMemberIssuesAndFines($$borrower{'borrowernumber'}); @@ -139,8 +140,20 @@ foreach my $borrower(@$results[$from..$to-1]){ odissue => "$od/$issue", fines => sprintf("%.2f",$fines), ); + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if (%row->{branchcode} eq C4::Branch->mybranch()) + { push(@resultsdata, \%row); -} + } + } + else { + push(@resultsdata, \%row); + } + } + + if ($$patron{categorycode}){ foreach my $category (grep{$_->{categorycode} eq $$patron{categorycode}}@categories){ @@ -161,6 +174,7 @@ my $base_url = my @letters = map { {letter => $_} } ( 'A' .. 'Z'); + $template->param( letters => \@letters, paginationbar => pagination_bar( @@ -183,3 +197,4 @@ $template->param( ); output_html_with_http_headers $input, $cookie, $template->output; + diff --git a/members/memberentry.pl b/members/memberentry.pl index f01261e..51d26d0 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -430,9 +430,18 @@ if ($ethnicitycategoriescount>=0) { my @typeloop; my $no_categories = 1; -my $no_add; +my ($action,$no_add); +my $ownbranch = C4::Branch->mybranch(); + foreach (qw(C A S P I X)) { - my $action="WHERE category_type=?"; + + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + $action="WHERE category_type=? and categorycode like '$ownbranch%'"; + } + else { + $action="WHERE category_type=?"; + } ($categories,$labels)=GetborCatFromCatType($_,$action); if(scalar(@$categories) > 0){ $no_categories = 0; } my @categoryloop; @@ -548,8 +557,19 @@ my $onlymine=(C4::Context->preference('IndependantBranches') && my $branches=GetBranches($onlymine); my $default; my $CGIbranch; +my $ownbranch = C4::Branch->mybranch(); + for my $branch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) { + if ( C4::Context->preference("searchMyLibraryOnly") ) + { + if ($branch eq $ownbranch) + { push @select_branch,$branch; + } + } + else { + push @select_branch,$branch; + } $select_branches{$branch} = $branches->{$branch}->{'branchname'}; $default = C4::Context->userenv->{'branch'} if (C4::Context->userenv && C4::Context->userenv->{'branch'}); } diff --git a/members/moremember.pl b/members/moremember.pl index bfaa402..ae889e8 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -31,7 +31,7 @@ needs html removed and to use the C4::Output more, but its tricky =cut - + use strict; #use warnings; FIXME - Bug 2505 use CGI; diff --git a/misc/cronjobs/crontab.example b/misc/cronjobs/crontab.example index 3c5030d..72d5882 100644 --- a/misc/cronjobs/crontab.example +++ b/misc/cronjobs/crontab.example @@ -22,7 +22,7 @@ PERL5LIB=/usr/share/koha/lib KOHA_CONF=/etc/koha/koha-conf.xml # Some additional variables to save you typing -KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs +KOHA_CRON_PATH = /home/peter/kohaclone/bin/cronjobs # # MULTIPLE KOHA SUPPORT: # You can still run jobs for this user's additional koha installs, diff --git a/misc/cronjobs/statstank.pl b/misc/cronjobs/statstank.pl new file mode 100755 index 0000000..3a66388 --- /dev/null +++ b/misc/cronjobs/statstank.pl @@ -0,0 +1,121 @@ +#! /usr/bin/perl + +use C4::Context; +use Data::Dumper::Simple; + +our $dbh = C4::Context->dbh; + +my @borrowerData = (); +my @itemData = (); +my @bibData = (); +my $borrowernumber = 0; +my $itemnumber = 0; + + +my $query = "SELECT borrowernumber, itemnumber FROM scooter_stats_tank WHERE processed IS NULL"; +my $sth = $dbh->prepare($query); +$sth->execute; + + while (my @row = $sth->fetchrow_array) + { + $borrowernumber = $row[0]; + $itemnumber = $row[1]; + $bibItemNo = bibFromItem($dbh,$itemnumber); + + @borrowerData = dataFromBorrowers($dbh,$borrowernumber); + @itemData = dataFromItems($dbh,$itemnumber); + @bibData = dataFromBibs($dbh,$bibItemNo); + + # borrowerdata: [0]or[2] = sex, [1] = ROLLCLASS, [3] = YEARGROUP + # itemdata: [0] = callnumber, [1] = ccode, [2] = itype, [3] biblionumber, [4] itembranchcode + # bibdata: [0] = isbn, [1] = author, [2] = title + + + my $updateQuery = " UPDATE scooter_stats_tank SET + sex = ?, rollclass = ?, year = ?, itemcallnumber = ?, + ccode = ?, itype = ?, biblionumber = ?, itembranchcode = ?, + isbn = ?, author = ?, title = ?, processed = ? + WHERE borrowernumber = ? AND itemnumber = ?"; + $updsth = $dbh->prepare($updateQuery); + $updsth->execute($borrowerData[0][0],$borrowerData[0][1],$borrowerData[0][3],$itemData[0][0],$itemData[0][1],$itemData[0][2],$itemData[0][3],$itemData[0][4],$bibData[0][0],$bibData[0][1],$bibData[0][2],1,$borrowernumber,$itemnumber); + + } + + +# Returns Borrower data +sub dataFromBorrowers { +my ($dbh,$borrowernumber) = @_; +my @data = (); +my $query = "SELECT borrowers.sex, borrower_attributes.attribute + FROM borrowers, borrower_attributes + WHERE borrowers.borrowernumber=borrower_attributes.borrowernumber + AND borrowers.borrowernumber = ? AND (code = ? or code = ?)"; +my $sth = $dbh->prepare($query); +$sth->execute($borrowernumber,'ROLLCLASS','YEARGROUP'); + +while (my @row = $sth->fetchrow_array) +{ + push @data, @row; +} + +return \@data; +} + +# Returns Item data +sub dataFromItems { +my ($dbh,$itemnumber) = @_; +my @data = (); +my $query = "SELECT items.itemcallnumber, items.ccode, items.itype, items.biblionumber, items.homebranch + FROM items + WHERE items.itemnumber = ?"; + +my $sth = $dbh->prepare($query); +$sth->execute($itemnumber); + +while (my @row = $sth->fetchrow_array) +{ + push @row, bibFromItem($dbh,$itemnumber); + push @data, @row; +} + +return \@data; +} + +# Returns Bibdata +sub dataFromBibs { + my ($dbh,$biblioitemnumber) = @_; +my @data = (); +my $query = "SELECT biblioitems.isbn, biblio.author, biblio.title + FROM biblioitems, biblio + WHERE biblio.biblionumber=biblioitems.biblioitemnumber + AND biblioitems.biblioitemnumber = ?"; + +my $sth = $dbh->prepare($query); +$sth->execute($biblioitemnumber); + +while (my @row = $sth->fetchrow_array) +{ + push @data, @row; +} + +return \@data; +} + +# Returns biblioitemnumer based on itemnumber +sub bibFromItem { +my ($dbh,$itemnumber) = @_; +my @data = (); +my $query = "SELECT biblioitemnumber + FROM items + WHERE itemnumber = ?"; + + +my $sth = $dbh->prepare($query); +$sth->execute($itemnumber); + +$biblioitemnumber = $sth->fetchrow; + + +return $biblioitemnumber; + +} \ No newline at end of file diff --git a/opac/mainindex.pl b/opac/mainindex.pl new file mode 100755 index 0000000..9d18e77 --- /dev/null +++ b/opac/mainindex.pl @@ -0,0 +1,23 @@ +#!/usr/bin/perl +use strict; +#use warnings; FIXME - Bug 2505 +use C4::Auth; +use C4::Output; +use CGI; +use C4::Dates qw/format_date/; +use C4::Members; + +my $query = new CGI; + + +my ( $template, $loggedinuser, $cookie ) = get_template_and_user( + { + template_name => "mainindex.tmpl", + query => $query, + type => "opac", + + } +); + +output_html_with_http_headers $query, $cookie, $template->output; + \ No newline at end of file diff --git a/opac/opac-main.pl b/opac/opac-main.pl index 177d812..aeba92b 100755 --- a/opac/opac-main.pl +++ b/opac/opac-main.pl @@ -19,6 +19,7 @@ use strict; use warnings; use CGI; +use CGI::Session; use C4::Auth; # get_template_and_user use C4::Output; use C4::VirtualShelves; @@ -27,9 +28,13 @@ use C4::Members; # GetMember use C4::NewsChannels; # get_opac_news use C4::Acquisition; # GetRecentAcqui use C4::Languages qw(getTranslatedLanguages accept_language); +use Data::Dumper::Simple; + + +my $input = new CGI; +my $dbh = C4::Context->dbh; +my $branch; # = C4::Context->userenv->{branch}; -my $input = new CGI; -my $dbh = C4::Context->dbh; my ( $template, $borrowernumber, $cookie ) = get_template_and_user( { @@ -47,6 +52,8 @@ $template->param( ); + + my $borrower = GetMember( borrowernumber=>$borrowernumber ); $template->param( textmessaging => $borrower->{textmessaging}, @@ -95,4 +102,28 @@ if (C4::Context->preference('GoogleIndicTransliteration')) { $template->param('GoogleIndicTransliteration' => 1); } + +if (defined $input->param("library")) +{ + C4::Context->userenv->{branch} = $input->param("library"); + $template->param(branch=>C4::Context->userenv->{branch}); + my $session = C4::Auth::get_session(""); + C4::Context->set_userenv($session->param('branch',$input->param("library"))); + +} + +my $xx; +if ($template->{VARS}{loggedinusername} eq '') +{ + + print $input->redirect("/index.htm"); +} + + output_html_with_http_headers $input, $cookie, $template->output; + + + + + + diff --git a/opac/opac-search.pl b/opac/opac-search.pl index 81b7ce6..67fa262 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -39,6 +39,7 @@ use C4::Branch; # GetBranches use POSIX qw(ceil floor strftime); use URI::Escape; use Storable qw(thaw freeze); +use Data::Dumper::Simple; my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); @@ -46,6 +47,7 @@ my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); # FIXME: no_undef_params needs to be tested use CGI qw('-no_undef_params'); my $cgi = new CGI; +my @newresults1; BEGIN { if (C4::Context->preference('BakerTaylorEnabled')) { @@ -475,6 +477,7 @@ for (my $i=0;$i<@servers;$i++) { @newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan, @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems')); } + @newresults1 = @newresults; my $tag_quantity; if (C4::Context->preference('TagsEnabled') and $tag_quantity = C4::Context->preference('TagsShowOnList')) { @@ -699,3 +702,19 @@ if (C4::Context->preference('GoogleIndicTransliteration')) { } output_with_http_headers $cgi, $cookie, $template->output, $content_type; + +#print Dumper(@newresults1); + +foreach (@newresults1) { + my $bibnum = $_->{biblionumber} or next; + $_->{itemsissued} = CountItemsIssued( $bibnum ); + $_ ->{'TagLoop'} = get_tags({biblionumber=>$bibnum, approved=>1, 'sort'=>'-weight', + }); + + } + + print C4::Branch->mybranch(); + #print Dumper($template); + + + #print Dumper($template); \ No newline at end of file diff --git a/opac/opac-user.pl b/opac/opac-user.pl index e99e557..12d6b42 100755 --- a/opac/opac-user.pl +++ b/opac/opac-user.pl @@ -35,6 +35,7 @@ use C4::Items; use C4::Dates qw/format_date/; use C4::Letters; use C4::Branch; # GetBranches +use Data::Dumper::Simple; use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE'; @@ -64,6 +65,8 @@ my $patronupdate = $query->param('patronupdate'); # get borrower information .... my ( $borr ) = GetMemberDetails( $borrowernumber ); + + for (qw(dateenrolled dateexpiry dateofbirth)) { ($borr->{$_}) and $borr->{$_} = format_date($borr->{$_}); } @@ -333,5 +336,16 @@ $template->param( dateformat => C4::Context->preference("dateformat"), ); + + + +if ($borr->{userid} eq $borr->{branchcode}) +{ + $template->param(redirect=>1); + #print $query->redirect('/cgi-bin/koha/opac-main.pl'); +} + + output_html_with_http_headers $query, $cookie, $template->output; + diff --git a/statstank.pl b/statstank.pl new file mode 100755 index 0000000..e289233 --- /dev/null +++ b/statstank.pl @@ -0,0 +1,122 @@ +#! /usr/bin/perl + +use lib "/home/peter/kohaclone"; +use C4::Context; +use Data::Dumper::Simple; + +our $dbh = C4::Context->dbh; + +my @borrowerData = (); +my @itemData = (); +my @bibData = (); +my $borrowernumber = 0; +my $itemnumber = 0; + + +my $query = "SELECT borrowernumber, itemnumber FROM scooter_stats_tank WHERE processed IS NULL"; +my $sth = $dbh->prepare($query); +$sth->execute; + + while (my @row = $sth->fetchrow_array) + { + $borrowernumber = $row[0]; + $itemnumber = $row[1]; + $bibItemNo = bibFromItem($dbh,$itemnumber); + + @borrowerData = dataFromBorrowers($dbh,$borrowernumber); + @itemData = dataFromItems($dbh,$itemnumber); + @bibData = dataFromBibs($dbh,$bibItemNo); + + # borrowerdata: [0]or[2] = sex, [1] = ROLLCLASS, [3] = YEARGROUP + # itemdata: [0] = callnumber, [1] = ccode, [2] = itype, [3] biblionumber, [4] itembranchcode + # bibdata: [0] = isbn, [1] = author, [2] = title + + + my $updateQuery = " UPDATE scooter_stats_tank SET + sex = ?, rollclass = ?, year = ?, itemcallnumber = ?, + ccode = ?, itype = ?, biblionumber = ?, itembranchcode = ?, + isbn = ?, author = ?, title = ?, processed = ? + WHERE borrowernumber = ? AND itemnumber = ?"; + $updsth = $dbh->prepare($updateQuery); + $updsth->execute($borrowerData[0][0],$borrowerData[0][1],$borrowerData[0][3],$itemData[0][0],$itemData[0][1],$itemData[0][2],$itemData[0][3],$itemData[0][4],$bibData[0][0],$bibData[0][1],$bibData[0][2],1,$borrowernumber,$itemnumber); + + } + + +# Returns Borrower data +sub dataFromBorrowers { +my ($dbh,$borrowernumber) = @_; +my @data = (); +my $query = "SELECT borrowers.sex, borrower_attributes.attribute + FROM borrowers, borrower_attributes + WHERE borrowers.borrowernumber=borrower_attributes.borrowernumber + AND borrowers.borrowernumber = ? AND (code = ? or code = ?)"; +my $sth = $dbh->prepare($query); +$sth->execute($borrowernumber,'ROLLCLASS','YEARGROUP'); + +while (my @row = $sth->fetchrow_array) +{ + push @data, @row; +} + +return \@data; +} + +# Returns Item data +sub dataFromItems { +my ($dbh,$itemnumber) = @_; +my @data = (); +my $query = "SELECT items.itemcallnumber, items.ccode, items.itype, items.biblionumber, items.homebranch + FROM items + WHERE items.itemnumber = ?"; + +my $sth = $dbh->prepare($query); +$sth->execute($itemnumber); + +while (my @row = $sth->fetchrow_array) +{ + push @row, bibFromItem($dbh,$itemnumber); + push @data, @row; +} + +return \@data; +} + +# Returns Bibdata +sub dataFromBibs { + my ($dbh,$biblioitemnumber) = @_; +my @data = (); +my $query = "SELECT biblioitems.isbn, biblio.author, biblio.title + FROM biblioitems, biblio + WHERE biblio.biblionumber=biblioitems.biblioitemnumber + AND biblioitems.biblioitemnumber = ?"; + +my $sth = $dbh->prepare($query); +$sth->execute($biblioitemnumber); + +while (my @row = $sth->fetchrow_array) +{ + push @data, @row; +} + +return \@data; +} + +# Returns biblioitemnumer based on itemnumber +sub bibFromItem { +my ($dbh,$itemnumber) = @_; +my @data = (); +my $query = "SELECT biblioitemnumber + FROM items + WHERE itemnumber = ?"; + + +my $sth = $dbh->prepare($query); +$sth->execute($itemnumber); + +$biblioitemnumber = $sth->fetchrow; + + +return $biblioitemnumber; + +} \ No newline at end of file -- 1.7.4.1