View | Details | Raw Unified | Return to bug 5806
Collapse All | Expand All

(-)a/C4/Biblio.pm (-2 / +7 lines)
Lines 361-371 sub _strip_item_fields { Link Here
361
    # delete any item fields from incoming record to avoid
361
    # delete any item fields from incoming record to avoid
362
    # duplication or incorrect data - use AddItem() or ModItem()
362
    # duplication or incorrect data - use AddItem() or ModItem()
363
    # to change items
363
    # to change items
364
if (defined $record)
365
{
364
    foreach my $field ( $record->field($itemtag) ) {
366
    foreach my $field ( $record->field($itemtag) ) {
365
        $record->delete_field($field);
367
        $record->delete_field($field);
366
    }
368
    }
367
}
369
}
368
370
}
369
=head2 ModBiblioframework
371
=head2 ModBiblioframework
370
372
371
   ModBiblioframework($biblionumber,$frameworkcode);
373
   ModBiblioframework($biblionumber,$frameworkcode);
Lines 2730-2736 sub EmbedItemsInMarcBiblio { Link Here
2730
        my $item_marc = C4::Items::GetMarcItem($biblionumber, $itemnumber);
2732
        my $item_marc = C4::Items::GetMarcItem($biblionumber, $itemnumber);
2731
        push @item_fields, $item_marc->field($itemtag);
2733
        push @item_fields, $item_marc->field($itemtag);
2732
    }
2734
    }
2733
    $marc->insert_fields_ordered(@item_fields);
2735
        if (defined $marc)
2736
        {
2737
             $marc->insert_fields_ordered(@item_fields);
2738
        }   
2734
}
2739
}
2735
2740
2736
=head1 INTERNAL FUNCTIONS
2741
=head1 INTERNAL FUNCTIONS
(-)a/C4/Branch.pm (+30 lines)
Lines 101-106 Create a branch selector with the following code. Link Here
101
101
102
=cut
102
=cut
103
103
104
sub scooterGetCatValues
105
{
106
    my $branchcode = @_;
107
        my $dbh = C4::Context->dbh();
108
        my $query = "SELECT categorycode, description FROM categories WHERE categorycode like '" . C4::Branch::mybranch() . ".%'";
109
        my $sth =  my $sth=$dbh->prepare( $query);
110
        $sth->execute;
111
        my $branchcats = $sth->fetchall_arrayref({});
112
        $sth->finish();
113
114
        return( $branchcats, $sth->rows );
115
116
117
}
118
104
sub GetBranches {
119
sub GetBranches {
105
    my ($onlymine)=@_;
120
    my ($onlymine)=@_;
106
    # returns a reference to a hash of references to ALL branches...
121
    # returns a reference to a hash of references to ALL branches...
Lines 141-146 sub GetBranches { Link Here
141
    return ( \%branches );
156
    return ( \%branches );
142
}
157
}
143
158
159
160
sub homeBranchFromItem
161
{
162
my $item = $_[0];
163
164
my $dbh = C4::Context::dbh();
165
my $sql = "SELECT homebranch FROM items WHERE itemnumber = ?";
166
my $sth = $dbh->prepare($sql);
167
$sth->execute($item);
168
my @row = $sth->fetchrow_array();
169
170
return $row[0];    
171
}
172
173
144
sub onlymine {
174
sub onlymine {
145
    return 
175
    return 
146
    C4::Context->preference('IndependantBranches') &&
176
    C4::Context->preference('IndependantBranches') &&
(-)a/C4/Members.pm (-1 / +2 lines)
Lines 1423-1431 to category descriptions. Link Here
1423
1423
1424
#'
1424
#'
1425
sub GetborCatFromCatType {
1425
sub GetborCatFromCatType {
1426
    my ( $category_type, $action ) = @_;
1426
    my ( $category_type, $action,$categorycode ) = @_;
1427
	# FIXME - This API  seems both limited and dangerous. 
1427
	# FIXME - This API  seems both limited and dangerous. 
1428
    my $dbh     = C4::Context->dbh;
1428
    my $dbh     = C4::Context->dbh;
1429
    
1429
    my $request = qq|   SELECT categorycode,description 
1430
    my $request = qq|   SELECT categorycode,description 
1430
            FROM categories 
1431
            FROM categories 
1431
            $action
1432
            $action
(-)a/C4/Search.pm (-2 / +68 lines)
Lines 33-38 use C4::Debug; Link Here
33
use C4::Items;
33
use C4::Items;
34
use YAML;
34
use YAML;
35
use URI::Escape;
35
use URI::Escape;
36
use POSIX;
36
37
37
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
38
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS $DEBUG);
38
39
Lines 1423-1429 sub searchResults { Link Here
1423
    #find branchname
1424
    #find branchname
1424
    #get branch information.....
1425
    #get branch information.....
1425
    my %branches;
1426
    my %branches;
1426
    my $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches"); # FIXME : use C4::Branch::GetBranches
1427
    my $bsth;
1428
              if ( C4::Context->preference("searchMyLibraryOnly")  )
1429
           {
1430
            $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches WHERE branchcode = '". C4::Branch::mybranch() ."' "); # FIXME : use C4::Branch::GetBranches
1431
            }
1432
            else
1433
            {
1434
             $bsth =$dbh->prepare("SELECT branchcode,branchname FROM branches ");                
1435
            }
1427
    $bsth->execute();
1436
    $bsth->execute();
1428
    while ( my $bdata = $bsth->fetchrow_hashref ) {
1437
    while ( my $bdata = $bsth->fetchrow_hashref ) {
1429
        $branches{ $bdata->{'branchcode'} } = $bdata->{'branchname'};
1438
        $branches{ $bdata->{'branchcode'} } = $bdata->{'branchname'};
Lines 2599-2607 $template->param ( MYLOOP => C4::Search::z3950_search_args($searchscalar) ) Link Here
2599
2608
2600
=cut
2609
=cut
2601
2610
2611
2612
2613
2602
sub z3950_search_args {
2614
sub z3950_search_args {
2603
    my $bibrec = shift;
2615
    my $bibrec = shift;
2604
    $bibrec = { title => $bibrec } if !ref $bibrec;
2616
  
2617
 
2618
    if (validate_isbn($bibrec) == 1)
2619
    {
2620
    $bibrec = { isbn => $bibrec } if !ref $bibrec;
2621
}
2622
else {
2623
     $bibrec = { title => $bibrec } if !ref $bibrec;
2624
}
2605
    my $array = [];
2625
    my $array = [];
2606
    for my $field (qw/ lccn isbn issn title author dewey subject /)
2626
    for my $field (qw/ lccn isbn issn title author dewey subject /)
2607
    {
2627
    {
Lines 2641-2646 OR adds a new authority record Link Here
2641
=cut
2661
=cut
2642
2662
2643
2663
2664
=head
2665
BOOL validate_isbn($isbn_number)
2666
2667
This function validates an isbn number by:
2668
2669
1. Checking it is 10 or 13 characters long
2670
2. If it is 10 characters long, checks the lasd character is an 'X' and all other characters are digits
2671
3. If it is 13 characters long, checks it begins with '97' and all other characters are digits
2672
2673
=cut
2674
sub validate_isbn { 
2675
  my $isbn = shift; 
2676
    
2677
    # Handle ISBNs with spaces or hyphens in them 
2678
    $isbn =~ s/\s+//g;
2679
    $isbn =~ s/\-//g;
2680
    
2681
    # Is it the correct length ?
2682
         if (length($isbn) != 10 && length($isbn) != 13)
2683
         { return 0; } 
2684
                     else {   
2685
                         
2686
                         # Is the last char 'x' for ISBN10 ?  
2687
                            my @chars = split('', $isbn); 
2688
                              if (length($isbn) == 10 && uc($chars[9]) eq 'X')
2689
                               {
2690
                                    # Are all but the last characters digits ? 
2691
                                    if (isdigit(substr($isbn,0,length($isbn)-1)) )
2692
                                     { return 1;}
2693
                               }
2694
  
2695
                    # Is it 13 chars long and begin with '97' ?
2696
                   if ( ($chars[0] eq '9' && $chars[1] eq '7') && length($isbn) == 13)
2697
                   {
2698
                       # is it made up of digits? 
2699
                    if (isdigit($isbn))  
2700
                     { return 1;}
2701
         
2702
      
2703
                    }
2704
      
2705
                 } 
2706
     # If this function has not yet successfully returned the return failure
2707
     return 0;
2708
}
2709
2644
sub BiblioAddAuthorities{
2710
sub BiblioAddAuthorities{
2645
  my ( $record, $frameworkcode ) = @_;
2711
  my ( $record, $frameworkcode ) = @_;
2646
  my $dbh=C4::Context->dbh;
2712
  my $dbh=C4::Context->dbh;
(-)a/admin/authorised_values.pl (-1 / +15 lines)
Lines 191-196 exit 0; Link Here
191
sub default_form {
191
sub default_form {
192
	# build categories list
192
	# build categories list
193
	my $sth = $dbh->prepare("select distinct category from authorised_values");
193
	my $sth = $dbh->prepare("select distinct category from authorised_values");
194
	my $ownbranch = C4::Branch->mybranch();
194
	$sth->execute;
195
	$sth->execute;
195
	my @category_list;
196
	my @category_list;
196
	my %categories;     # a hash, to check that some hardcoded categories exist.
197
	my %categories;     # a hash, to check that some hardcoded categories exist.
Lines 219-224 sub default_form { Link Here
219
    my $count = scalar(@$results);
220
    my $count = scalar(@$results);
220
	my @loop_data = ();
221
	my @loop_data = ();
221
	# builds value list
222
	# builds value list
223
	
224
	
225
	
222
	for (my $i=0; $i < $count; $i++){
226
	for (my $i=0; $i < $count; $i++){
223
		my %row_data;  # get a fresh hash for the row data
227
		my %row_data;  # get a fresh hash for the row data
224
		$row_data{category}              = $results->[$i]{'category'};
228
		$row_data{category}              = $results->[$i]{'category'};
Lines 228-235 sub default_form { Link Here
228
		$row_data{imageurl}              = getitemtypeimagelocation( 'intranet', $results->[$i]{'imageurl'} );
232
		$row_data{imageurl}              = getitemtypeimagelocation( 'intranet', $results->[$i]{'imageurl'} );
229
		$row_data{edit}                  = "$script_name?op=add_form&amp;id=".$results->[$i]{'id'}."&amp;offset=$offset";
233
		$row_data{edit}                  = "$script_name?op=add_form&amp;id=".$results->[$i]{'id'}."&amp;offset=$offset";
230
		$row_data{delete}                = "$script_name?op=delete_confirm&amp;searchfield=$searchfield&amp;id=".$results->[$i]{'id'}."&amp;offset=$offset";
234
		$row_data{delete}                = "$script_name?op=delete_confirm&amp;searchfield=$searchfield&amp;id=".$results->[$i]{'id'}."&amp;offset=$offset";
231
		push(@loop_data, \%row_data);
235
 if ( C4::Context->preference("searchMyLibraryOnly")  )
236
           {
237
		   if (substr($row_data{authorised_value},0,4) eq $ownbranch . '.')
238
		   {
239
		     push(@loop_data, \%row_data);
240
	           }
241
            }
242
            else {
243
                     push(@loop_data, \%row_data);		
244
	         }
232
	}
245
	}
246
	
233
247
234
	$template->param( loop     => \@loop_data,
248
	$template->param( loop     => \@loop_data,
235
                          tab_list => $tab_list,
249
                          tab_list => $tab_list,
(-)a/admin/branches.pl (-1 / +13 lines)
Lines 308-313 sub branchinfotable { Link Here
308
308
309
    my ($branchcode,$innertemplate) = @_;
309
    my ($branchcode,$innertemplate) = @_;
310
    my $branchinfo = $branchcode ? GetBranchInfo($branchcode) : GetBranchInfo();
310
    my $branchinfo = $branchcode ? GetBranchInfo($branchcode) : GetBranchInfo();
311
    my $ownbranch = C4::Branch->mybranch();
311
    my @loop_data = ();
312
    my @loop_data = ();
312
    foreach my $branch (@$branchinfo) {
313
    foreach my $branch (@$branchinfo) {
313
        #
314
        #
Lines 367-373 sub branchinfotable { Link Here
367
        $row{'branch_code'} = $branch->{'branchcode'};
368
        $row{'branch_code'} = $branch->{'branchcode'};
368
        $row{'value'}       = $branch->{'branchcode'};
369
        $row{'value'}       = $branch->{'branchcode'};
369
370
370
        push @loop_data, \%row;
371
           if ( C4::Context->preference("searchMyLibraryOnly")  )
372
           {
373
                   if ($branch->{'branchcode'} eq $ownbranch)
374
                   {
375
                     push @loop_data, \%row;
376
                   }
377
           }
378
             else
379
             {
380
               push @loop_data, \%row;
381
             }
382
          
371
    }
383
    }
372
    my @branchcategories = ();
384
    my @branchcategories = ();
373
	for my $ctype ( GetCategoryTypes() ) {
385
	for my $ctype ( GetCategoryTypes() ) {
(-)a/admin/categorie.pl (-2 / +12 lines)
Lines 67-73 my $searchfield=$input->param('description'); Link Here
67
my $script_name="/cgi-bin/koha/admin/categorie.pl";
67
my $script_name="/cgi-bin/koha/admin/categorie.pl";
68
my $categorycode=$input->param('categorycode');
68
my $categorycode=$input->param('categorycode');
69
my $op = $input->param('op');
69
my $op = $input->param('op');
70
71
my ($template, $loggedinuser, $cookie)
70
my ($template, $loggedinuser, $cookie)
72
    = get_template_and_user({template_name => "admin/categorie.tmpl",
71
    = get_template_and_user({template_name => "admin/categorie.tmpl",
73
			     query => $input,
72
			     query => $input,
Lines 194-199 if ($op eq 'add_form') { Link Here
194
} else { # DEFAULT
193
} else { # DEFAULT
195
	$template->param(else => 1);
194
	$template->param(else => 1);
196
	my @loop;
195
	my @loop;
196
	my $ownbranch = C4::Branch->mybranch();
197
	    
197
	my ($count,$results)=StringSearch($searchfield,'web');
198
	my ($count,$results)=StringSearch($searchfield,'web');
198
	for (my $i=0; $i < $count; $i++){
199
	for (my $i=0; $i < $count; $i++){
199
		my %row = (
200
		my %row = (
Lines 214-220 if ($op eq 'add_form') { Link Here
214
            my $brief_prefs = _get_brief_messaging_prefs($results->[$i]{'categorycode'});
215
            my $brief_prefs = _get_brief_messaging_prefs($results->[$i]{'categorycode'});
215
            $row{messaging_prefs} = $brief_prefs if @$brief_prefs;
216
            $row{messaging_prefs} = $brief_prefs if @$brief_prefs;
216
        }
217
        }
217
		push @loop, \%row;
218
            
219
             if ( C4::Context->preference("searchMyLibraryOnly")  )
220
             {
221
		      if (substr($row{'categorycode'},0,4) eq $ownbranch . '.')
222
		      {
223
            	        push @loop, \%row;
224
	              }
225
             }
226
             else { push @loop, \%row; }
227
	
218
	}
228
	}
219
	$template->param(loop => \@loop);
229
	$template->param(loop => \@loop);
220
	# check that I (institution) and C (child) exists. otherwise => warning to the user
230
	# check that I (institution) and C (child) exists. otherwise => warning to the user
(-)a/admin/itemtypes.pl (-3 / +19 lines)
Lines 55-66 use C4::Output; Link Here
55
sub StringSearch {
55
sub StringSearch {
56
    my ( $searchstring, $type ) = @_;
56
    my ( $searchstring, $type ) = @_;
57
    my $dbh = C4::Context->dbh;
57
    my $dbh = C4::Context->dbh;
58
    my $ownbranch = C4::Branch->mybranch();
58
    $searchstring =~ s/\'/\\\'/g;
59
    $searchstring =~ s/\'/\\\'/g;
59
    my @data = split( ' ', $searchstring );
60
    my @data = split( ' ', $searchstring );
60
    my $sth = $dbh->prepare(
61
    my $sth;
61
        "SELECT * FROM itemtypes WHERE (description LIKE ?) ORDER BY itemtype"
62
    
63
    
64
     if ( C4::Context->preference("searchMyLibraryOnly")  )
65
           {
66
            $sth = $dbh->prepare(
67
                   "SELECT * FROM itemtypes WHERE (itemtype LIKE ?) ORDER BY itemtype"
62
	);
68
	);
63
    $sth->execute("$data[0]%");
69
	    
70
    $sth->execute("$ownbranch%");
71
           }
72
           else {
73
                   $sth = $dbh->prepare(
74
                   "SELECT * FROM itemtypes WHERE (description LIKE ?) ORDER BY itemtype"
75
	        );
76
	    
77
               $sth->execute("$data[0]%");
78
               
79
                 }
64
    return $sth->fetchall_arrayref({});		# return ref-to-array of ref-to-hashes
80
    return $sth->fetchall_arrayref({});		# return ref-to-array of ref-to-hashes
65
								# like [ fetchrow_hashref(), fetchrow_hashref() ... ]
81
								# like [ fetchrow_hashref(), fetchrow_hashref() ... ]
66
}
82
}
(-)a/catalogue/detail.pl (-4 / +25 lines)
Lines 37-45 use C4::External::Amazon; Link Here
37
use C4::Search;		# enabled_staff_search_views
37
use C4::Search;		# enabled_staff_search_views
38
use C4::VirtualShelves;
38
use C4::VirtualShelves;
39
use C4::XSLT;
39
use C4::XSLT;
40
40
use Data::Dumper::Simple;
41
# use Smart::Comments;
41
# use Smart::Comments;
42
42
43
43
my $query = CGI->new();
44
my $query = CGI->new();
44
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
45
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
45
    {
46
    {
Lines 158-166 my (@itemloop, %itemfields); Link Here
158
my $norequests = 1;
159
my $norequests = 1;
159
my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw);
160
my $authvalcode_items_itemlost = GetAuthValCode('items.itemlost',$fw);
160
my $authvalcode_items_damaged  = GetAuthValCode('items.damaged', $fw);
161
my $authvalcode_items_damaged  = GetAuthValCode('items.damaged', $fw);
162
my $ownbranch = C4::Branch->mybranch();
163
161
foreach my $item (@items) {
164
foreach my $item (@items) {
162
165
163
    $item->{homebranch}        = GetBranchName($item->{homebranch});
166
    $item->{homebranch}        = GetBranchName($item->{branchcode});
164
167
165
    # can place holds defaults to yes
168
    # can place holds defaults to yes
166
    $norequests = 0 unless ( ( $item->{'notforloan'} > 0 ) || ( $item->{'itemnotforloan'} > 0 ) );
169
    $norequests = 0 unless ( ( $item->{'notforloan'} > 0 ) || ( $item->{'itemnotforloan'} > 0 ) );
Lines 223-229 foreach my $item (@items) { Link Here
223
        $item->{waitingdate} = format_date($wait_hashref->{waitingdate});
226
        $item->{waitingdate} = format_date($wait_hashref->{waitingdate});
224
    }
227
    }
225
228
226
    push @itemloop, $item;
229
230
    if ( C4::Context->preference("searchMyLibraryOnly")  )
231
           {
232
	       if ($item->{holdingbranch} eq C4::Branch->mybranch())
233
	       {
234
                 push @itemloop, $item;
235
                }
236
          } 
237
else { push @itemloop, $item;
238
}
227
}
239
}
228
240
229
$template->param( norequests => $norequests );
241
$template->param( norequests => $norequests );
Lines 281-286 foreach ( keys %{$dat} ) { Link Here
281
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews');
293
# does not work: my %views_enabled = map { $_ => 1 } $template->query(loop => 'EnableViews');
282
# method query not found?!?!
294
# method query not found?!?!
283
295
296
297
298
  
284
$template->param(
299
$template->param(
285
    itemloop        => \@itemloop,
300
    itemloop        => \@itemloop,
286
    biblionumber        => $biblionumber,
301
    biblionumber        => $biblionumber,
Lines 288-295 $template->param( Link Here
288
    subscriptions       => \@subs,
303
    subscriptions       => \@subs,
289
    subscriptionsnumber => $subscriptionsnumber,
304
    subscriptionsnumber => $subscriptionsnumber,
290
    subscriptiontitle   => $dat->{title},
305
    subscriptiontitle   => $dat->{title},
306
   
291
);
307
);
292
308
       
309
 
310
	
311
  
293
# $debug and $template->param(debug_display => 1);
312
# $debug and $template->param(debug_display => 1);
294
313
295
# Lists
314
# Lists
Lines 353-355 if (C4::Context->preference('OPACBaseURL')){ Link Here
353
}
372
}
354
373
355
output_html_with_http_headers $query, $cookie, $template->output;
374
output_html_with_http_headers $query, $cookie, $template->output;
375
376
(-)a/cataloguing/additem.pl (-2 / +33 lines)
Lines 34-41 use C4::Dates; Link Here
34
use List::MoreUtils qw/any/;
34
use List::MoreUtils qw/any/;
35
35
36
use MARC::File::XML;
36
use MARC::File::XML;
37
<<<<<<< HEAD
37
use URI::Escape;
38
use URI::Escape;
38
39
40
=======
41
use Data::Dumper::Simple;
42
>>>>>>> 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
39
my $dbh = C4::Context->dbh;
43
my $dbh = C4::Context->dbh;
40
44
41
sub find_value {
45
sub find_value {
Lines 563-576 my ($holdingbrtagf,$holdingbrtagsubf) = &GetMarcFromKohaField("items.holdingbran Link Here
563
# First, the existing items for display
567
# First, the existing items for display
564
my @item_value_loop;
568
my @item_value_loop;
565
my @header_value_loop;
569
my @header_value_loop;
570
my $itemloc;
571
my $ownbranch = C4::Branch->mybranch();
566
for my $row ( @big_array ) {
572
for my $row ( @big_array ) {
567
    my %row_data;
573
    my %row_data;
568
    my @item_fields = map +{ field => $_ || '' }, @$row{ sort keys(%witness) };
574
    my @item_fields = map +{ field => $_ || '' }, @$row{ sort keys(%witness) };    
569
    $row_data{item_value} = [ @item_fields ];
575
    $row_data{item_value} = [ @item_fields ];
570
    $row_data{itemnumber} = $row->{itemnumber};
576
    $row_data{itemnumber} = $row->{itemnumber};
577
    $itemloc = GetItem( $itemnumber );
578
    $row_data{location} = $itemloc->{location};    
571
    #reporting this_row values
579
    #reporting this_row values
572
    $row_data{'nomod'} = $row->{'nomod'};
580
    $row_data{'nomod'} = $row->{'nomod'};
573
    push(@item_value_loop,\%row_data);
581
582
        if ( C4::Context->preference("searchMyLibraryOnly")  )
583
           {
584
               $itemloc = C4::Branch::homeBranchFromItem($row_data{itemnumber});
585
              
586
             
587
               if ($itemloc eq $ownbranch)
588
               {
589
             push(@item_value_loop,\%row_data);
590
         }
591
           }
592
           else { push(@item_value_loop,\%row_data); }
574
}
593
}
575
foreach my $subfield_code (sort keys(%witness)) {
594
foreach my $subfield_code (sort keys(%witness)) {
576
    my %header_value;
595
    my %header_value;
Lines 588-598 my $onlymine = C4::Context->preference('IndependantBranches') && Link Here
588
               C4::Context->userenv                           && 
607
               C4::Context->userenv                           && 
589
               C4::Context->userenv->{flags}!=1               && 
608
               C4::Context->userenv->{flags}!=1               && 
590
               C4::Context->userenv->{branch};
609
               C4::Context->userenv->{branch};
610
<<<<<<< HEAD
591
my $branch = C4::Context->userenv->{branch};
611
my $branch = C4::Context->userenv->{branch};
592
if ($frameworkcode eq 'FA'){
612
if ($frameworkcode eq 'FA'){
593
    $branch = $input->param('branch');
613
    $branch = $input->param('branch');
594
}    
614
}    
595
my $branches = GetBranchesLoop($branch,$onlymine);  # build once ahead of time, instead of multiple times later.
615
my $branches = GetBranchesLoop($branch,$onlymine);  # build once ahead of time, instead of multiple times later.
616
=======
617
               
618
 
619
        if ( C4::Context->preference("searchMyLibraryOnly")  )
620
           {
621
               $onlymine = 1;
622
            }                 
623
my $branches = GetBranchesLoop(C4::Context->userenv->{branch},$onlymine);  # build once ahead of time, instead of multiple times later.
624
>>>>>>> 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
596
625
597
# We generate form, from actuel record
626
# We generate form, from actuel record
598
@fields = ();
627
@fields = ();
Lines 664-666 foreach my $error (@errors) { Link Here
664
    $template->param($error => 1);
693
    $template->param($error => 1);
665
}
694
}
666
output_html_with_http_headers $input, $cookie, $template->output;
695
output_html_with_http_headers $input, $cookie, $template->output;
696
697
#print Dumper(@loop_data);
(-)a/circ/overdue.pl (+9 lines)
Lines 262-267 if ($noreport) { Link Here
262
    LEFT JOIN biblio      ON (biblio.biblionumber=items.biblionumber )
262
    LEFT JOIN biblio      ON (biblio.biblionumber=items.biblionumber )
263
    WHERE 1=1 "; # placeholder, since it is possible that none of the additional
263
    WHERE 1=1 "; # placeholder, since it is possible that none of the additional
264
                 # conditions will be selected by user
264
                 # conditions will be selected by user
265
    
266
 if (C4::Context->preference("searchMyLibraryOnly"))
267
 {   
268
    $strsth.=" AND issues.branchcode = '" . C4::Branch->mybranch() . "' ";
269
  }  
270
    
265
    $strsth.=" AND date_due               < '" . $todaysdate     . "' " unless ($showall);
271
    $strsth.=" AND date_due               < '" . $todaysdate     . "' " unless ($showall);
266
    $strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ;
272
    $strsth.=" AND (borrowers.firstname like '".$bornamefilter."%' or borrowers.surname like '".$bornamefilter."%' or borrowers.cardnumber like '".$bornamefilter."%')" if($bornamefilter) ;
267
    $strsth.=" AND borrowers.categorycode = '" . $borcatfilter   . "' " if $borcatfilter;
273
    $strsth.=" AND borrowers.categorycode = '" . $borcatfilter   . "' " if $borcatfilter;
Lines 301-306 if ($noreport) { Link Here
301
            push @patron_attr_value_loop, { value => join(', ', sort { lc $a cmp lc $b } @displayvalues) };
307
            push @patron_attr_value_loop, { value => join(', ', sort { lc $a cmp lc $b } @displayvalues) };
302
        }
308
        }
303
309
310
304
        push @overduedata, {
311
        push @overduedata, {
305
            duedate                => format_date($data->{date_due}),
312
            duedate                => format_date($data->{date_due}),
306
            borrowernumber         => $data->{borrowernumber},
313
            borrowernumber         => $data->{borrowernumber},
Lines 404-406 sub build_csv { Link Here
404
411
405
    return join("\n", @lines) . "\n";
412
    return join("\n", @lines) . "\n";
406
}
413
}
414
415
(-)a/index.htm (+131 lines)
Line 0 Link Here
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
  <head>
5
    <title>Scooter Online Library System</title>
6
 
7
    <meta name="MSSmartTagsPreventParsing" content="true" />
8
    <link id="theme" rel="stylesheet" type="text/css" href="style.css" title="theme" />
9
<script type="text/javascript" language="javascript" src="js/addon.js"></script>
10
<script type="text/javascript" language="javascript" src="js/custom.js"></script>
11
  </head>
12
  <body bgcolor="#E0E0E"> 
13
    <!-- top wrapper -->  
14
   
15
      <div id="topSlideshowWrapper"> 
16
        <div id="sliderContainer"> 
17
          <!-- YOUR SLIDESHOW IMAGES HERE (recommended size 920x300) -->  
18
          <div id="slider1"> 
19
            <ul id="slider1Content">
20
              <li class="slider1Image"> 
21
                <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
22
                  <img height=150 src="http://lh3.ggpht.com/_d6vKxl1jKWk/TB3zMhUnzMI/AAAAAAABdS4/nemUV17L-Hs/modern-living-room3.jpg" />  
23
                  <span class="bottom" style="display: inline;"> 
24
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
25
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
26
                  </span> 
27
                </a> 
28
              </li>
29
              <li class="slider1Image"> 
30
               <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
31
                  <img height=150 src="http://lh3.ggpht.com/_d6vKxl1jKWk/TB3zMnU7nHI/AAAAAAABdS0/myp5MJEdwpg/modern-living-room2.jpg" />  
32
                   <span class="bottom" style="display: inline;"> 
33
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
34
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
35
                  </span> 
36
                </a> 
37
              </li>
38
              <li class="slider1Image"> 
39
                  <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
40
                  <img height=150 src="http://lh4.ggpht.com/_d6vKxl1jKWk/TB3zMTbFkvI/AAAAAAABdSw/gGYdOwDX2SQ/modern-living-room1.jpg" />  
41
                   <span class="bottom" style="display: inline;"> 
42
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
43
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
44
                  </span> 
45
                </a> 
46
              </li>
47
              <li class="slider1Image" style="clear:both"></li>
48
            </ul>  
49
            <div id="sliderLeftMask"></div>  
50
            <div id="sliderRightMask"></div> 
51
          </div> 
52
        </div> 
53
      </div> 
54
    </div>  
55
    <!-- end top wrapper -->  
56
    <div id="wrapper"> 
57
      <div id="container"> 
58
        <!--  content -->  
59
        <div id="content"> 
60
          <div style="margin-top:20px;"> 
61
            <div id="main"> 
62
              <h1>Welcome to Scooter</h1>  
63
              <p> 
64
                <p><!--<img SRC="http://www.gonzaga.ie/images/stories/simpleslideshow/jackfitzpatrick.jpg">--> </p>  
65
              <h2>Please choose a library Below</h2>  
66
              <p> 
67
                <p><FORM METHOD="POST" ACTION="http://scooterdev.local/cgi-bin/koha/opac-main.pl"><SELECT NAME = "library">
68
                <option value="AVO">Avondale Community College</option>
69
                <option value="GON">Gonzaga College S.J.</option>
70
                <option value="SPG">Saint Paul's School, Greenhills</option>
71
                       </p> 
72
                <input type="submit" name="submit" value="Choose">
73
                </form>
74
                       </p> 
75
            </div>  
76
            <div id="sidebar" style='float:right'> 
77
              <div class="bloc rounded" style="margin-top:20px;"> 
78
                <h3>Scooter Library system</h3>  
79
                <p>
80
                </p> 
81
                <br/><br/>
82
                Please choose your library or log in below<br/>
83
                <form name=login method=post>Username: <input name=user><br>Password: <input type=password><br>
84
                <input type=submit name = login value = 'LogIn'></form>
85
              </div>  
86
              <div class="bloc rounded" style="margin-top:20px;"> 
87
                <h3>Latest news</h3>  
88
                <p><b>Koha 3.4 Released<br>
89
<em>by Chris Cormack</em></b><br/>
90
<br/>
91
Kia ora tatou
92
<br/><br/>
93
"<i><quote>The Koha development team is happy to announce the release of Koha 3.4.0.</quote></i>"
94
<br/>
95
Koha 3.4.0 is a major feature release that contains major changes to underlying architecture (adoption of Template::Toolkit for templating) and performance enhancements (removal of item data from biblio records).
96
<br/>
97
These changes, in addition to the inclusion of many new features, mean a lot of new strings for translators to translate.
98
<br/>
99
For these reasons we recommend that people who are already running Koha inproduction delay their upgrade until 3.4.1, due May 22, to give the translators time to finish, and for the removing of item data to be streamlined. If you do wish to upgrade please make sure you read the UPGRADE section of the INSTALL document.
100
<br/>
101
The development team would like to thank all the people who have made this release possible. Please take time to read the release notes.
102
103
</div>  
104
          <div class="clear"></div> 
105
        </div>  
106
        <!-- end content -->  
107
        <div class="clear" style="height:40px"></div> 
108
      </div>  
109
      <!-- end container --> 
110
    </div>  
111
    <div id="bottomWrapper"> 
112
      <div id="footer"> 
113
  
114
          
115
          
116
              <a href="#" shape="rect">Who are we</a>
117
           |
118
              <a href="#" shape="rect">What we do</a>
119
           |
120
              <a href="#" shape="rect">Contact</a>
121
           |
122
              <a href="#" shape="rect">Partners</a>
123
           |
124
              <a href="#" shape="rect">Links</a>
125
          
126
       
127
  
128
129
    </div> 
130
  </body>
131
</html>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (+11 lines)
Lines 95-97 Administration: Link Here
95
        -
95
        -
96
            - The CAS Authentication Server can be found at
96
            - The CAS Authentication Server can be found at
97
            - pref: casServerUrl           
97
            - pref: casServerUrl           
98
            
99
    Search My Library Only:
100
        -
101
            - pref: searchMyLibraryOnly
102
              default: 1
103
              choices:
104
                  yes: Use
105
                  no: "Don't use"
106
            - Filter Data based on Library.
107
  
108
            
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (-6 / +8 lines)
Lines 429-435 YAHOO.util.Event.onContentReady("searchheader", function () { Link Here
429
                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
429
                                <input type="checkbox" class="selection" id="bib[% SEARCH_RESULT.biblionumber %]" name="biblionumber" value="[% SEARCH_RESULT.biblionumber %]" style="display:none" />
430
                            </td>
430
                            </td>
431
                            <td>
431
                            <td>
432
                                <p>[% SEARCH_RESULT.result_number %].
432
                                <p><!--[% SEARCH_RESULT.result_number %]-->
433
                                 [% biblionumber = SEARCH_RESULT.biblionumber %]
433
                                 [% biblionumber = SEARCH_RESULT.biblionumber %]
434
434
435
				[% INCLUDE 'biblio-default-view.inc' %]
435
				[% INCLUDE 'biblio-default-view.inc' %]
Lines 505-524 YAHOO.util.Event.onContentReady("searchheader", function () { Link Here
505
505
506
                                    [% IF ( SEARCH_RESULT.availablecount ) %]
506
                                    [% IF ( SEARCH_RESULT.availablecount ) %]
507
                                    [% SEARCH_RESULT.availablecount %] available:
507
                                    [% SEARCH_RESULT.availablecount %] available:
508
                                    <ul>
508
                                    <!-- <ul>
509
                                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
509
                                    [% FOREACH available_items_loo IN SEARCH_RESULT.available_items_loop %]
510
510
511
                                        [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %][% IF ( available_items_loo.imageurl ) %]<li style="list-style: none; list-style-type: none;"><img src="[% available_items_loo.imageurl %]" title="[% available_items_loo.description %]" alt="[% available_items_loo.description %]" />[% ELSE %]<li>[% END %][% ELSE %]<li>[% END %][% END %]
511
                                        [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %][% IF ( available_items_loo.imageurl ) %]<li style="list-style: none; list-style-type: none;"><img src="[% available_items_loo.imageurl %]" title="[% available_items_loo.description %]" alt="[% available_items_loo.description %]" />[% ELSE %]<li>[% END %][% ELSE %]<li>[% END %][% END %]
512
                                        [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
512
                                       [% IF ( available_items_loo.branchname ) %][% available_items_loo.branchname %][% END %]
513
                                        [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
513
                                        [% IF ( available_items_loo.location ) %][% available_items_loo.location %][% END %]
514
                                        [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber %]</a>][% END %]
514
                                        [% IF ( available_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% available_items_loo.itemcallnumber |url %]">[% available_items_loo.itemcallnumber %]</a>][% END %]
515
                                        ([% available_items_loo.count %])</li>
515
                                        ([% available_items_loo.count %])</li>
516
                                    [% END %]</ul>
516
                                        
517
                                        
518
                                    [% END %]</ul> -->
517
                                    [% END %]
519
                                    [% END %]
518
520
519
                                   [% IF ( SEARCH_RESULT.onloancount ) %]
521
                                   [% IF ( SEARCH_RESULT.onloancount ) %]
520
                                   <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
522
                                   <span class="status">[% SEARCH_RESULT.onloancount %] on loan:</span>
521
                                    <ul>
523
                                   <!-- <ul>
522
                                    [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
524
                                    [% FOREACH onloan_items_loo IN SEARCH_RESULT.onloan_items_loop %]
523
                                       [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
525
                                       [% IF ( noItemTypeImages ) %]<li>[% ELSE %][% IF ( item_level_itypes ) %]
524
                                        [% IF ( onloan_items_loo.imageurl ) %]
526
                                        [% IF ( onloan_items_loo.imageurl ) %]
Lines 530-536 YAHOO.util.Event.onContentReady("searchheader", function () { Link Here
530
                                        [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
532
                                        [% IF ( onloan_items_loo.location ) %][% onloan_items_loo.location %][% END %]
531
                                        [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% onloan_items_loo.itemcallnumber |url %]">[% onloan_items_loo.itemcallnumber %]</a>][% END %]
533
                                        [% IF ( onloan_items_loo.itemcallnumber ) %][<a href="/cgi-bin/koha/catalogue/search.pl?idx=callnum&amp;q=[% onloan_items_loo.itemcallnumber |url %]">[% onloan_items_loo.itemcallnumber %]</a>][% END %]
532
                                        ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]</li>
534
                                        ([% onloan_items_loo.count %][% IF ( onloan_items_loo.longoverdue ) %], [% onloan_items_loo.longoverdue %] long overdue[% END %]) date due: [% onloan_items_loo.due_date %]</li>
533
                                    [% END %]</ul>
535
                                    [% END %]</ul> -->
534
                                    [% END %]
536
                                    [% END %]
535
537
536
                                    [% IF ( SEARCH_RESULT.othercount ) %]
538
                                    [% IF ( SEARCH_RESULT.othercount ) %]
(-)a/koha-tmpl/opac-tmpl/prog/en/css/style.css (+449 lines)
Line 0 Link Here
1
2
/* 
3
----------------------------------------------------------------------------------------
4
5
Copyright 2010 - Thierry Ruiz - www.dotemplate.com - All rights reserved.
6
7
THIS TEMPLATE IS FREE AS LONG AS YOU KEEP THE LINK TO WWW.DOTEMPLATE.COM IN THE FOOTER
8
TO REMOVE THE LINK, PLEASE MAKE A 10 DOLLARS DONATION at www.dotemplate.com/#donate
9
10
----------------------------------------------------------------------------------------
11
*/
12
13
14
html {
15
	background: $bottomWrapper.bg.color;
16
	margin:0 0 0 -1px;
17
	padding:0;	
18
	overflow-Y: scroll;
19
}
20
21
22
body {
23
	padding:0;
24
	margin :0;
25
	display:table; 
26
	width:100%;	
27
}
28
29
30
	
31
					
32
#wrapper {
33
	margin:0 auto ;
34
	width:100%;
35
background-color:#ffffff;
36
}
37
38
					body {
39
	background-color:#ffffff;
40
}
41
42
#wrapper {
43
	border-top: 1px solid #ffffff;
44
}
45
	
46
47
48
					
49
#topBannerWrapper {
50
	width:100%;
51
	height:90px;
52
	background-color:#f0ead1;
53
	background-image:url(images/css/topBannerWrapper-bg.jpg);
54
	background-position:center top ;
55
	background-repeat:repeat-x;
56
}
57
58
59
					
60
#topBanner {
61
	width:920px;
62
	margin:0 auto;
63
	height:90px;
64
	background-image:url(images/css/topBanner.jpg);
65
	background-repeat:no-repeat;
66
}
67
68
	
69
70
#hmenuWrapper {
71
	width:100%;
72
	margin:0 auto ;
73
}
74
75
#hmenu {
76
	position:relative;
77
	top:30px;
78
	float:right;
79
}
80
81
					
82
83
#hmenu ul {
84
	list-style:none inside none;
85
	margin:0;
86
	padding:0;
87
	text-transform:uppercase;
88
	font-size:14px;
89
	font-family:Arial,sans-serif;
90
}
91
92
#hmenu ul li {
93
	float:left;
94
}
95
96
#hmenu ul li a {
97
	border:0 none;
98
	color:#660d05;
99
	display:block;
100
	float:left;
101
	font-size:14px;
102
	font-weight:bold;
103
	height:2em;
104
	line-height:2em;
105
	text-align:center;
106
	padding:0 20px;
107
}
108
109
110
#hmenu ul li a:hover {
111
	background-color:#660d05;
112
	color:#FFFFFF; 
113
}
114
115
#hmenu ul li a:link {
116
	text-decoration:none;
117
}
118
119
#hmenu ul li a:visited {
120
	text-decoration:none;
121
}
122
123
#hmenu ul li a:active {
124
	text-decoration:none;
125
}
126
127
128
#hmenu li#current a {
129
	background-color:#660d05;
130
	color:#FFFFFF; 
131
}
132
133
	
134
135
#topSlideshowWrapper {
136
	width:100%;
137
	height:300px;
138
#	background-color:#0e5104;
139
	background-image:url(images/css/topSlideshowWrapper-bg.jpg);
140
	background-position:center top ;
141
	background-repeat:repeat-x;
142
}
143
144
					
145
#sliderContainer {
146
	width: 920px;
147
	margin:0 auto;
148
}
149
150
151
#slider1 {
152
	width:100%;
153
	height: 300px;	
154
	position: relative;
155
    overflow: hidden; /* important */
156
}
157
158
159
#slider1 img { 
160
	padding: 0; 
161
	margin:0;
162
	width:920px;
163
	height:300px;
164
}
165
166
167
#slider1 a img { border:none } 
168
169
170
#slider1Content {
171
	margin:0;
172
	padding:10px;
173
	height:300px;
174
	font-size:0;
175
	width:100%;
176
	position: relative;  
177
}
178
179
180
.slider1Image {
181
	display:none;
182
	float:left;
183
	position:relative;
184
	margin:0;
185
	padding:0;
186
}
187
188
.slider1Image span {
189
	position: absolute;
190
	left:0;
191
	font-family:Tahoma, Arial;
192
	font-size:14px;
193
	padding: 0px;
194
	width:920px;
195
	background-color:#0e5104;  
196
	color: #fff;
197
	display: none;
198
	z-index:20;
199
	filter: alpha(opacity=70);
200
	-moz-opacity: 0.7;	
201
	-khtml-opacity: 0.7;
202
	opacity: 0.7;
203
} 
204
205
206
.slider1Image .bottom {
207
	bottom: 0;
208
	left: 0;
209
	height: 70px;
210
} 
211
212
213
#sliderLeftMask {
214
	height:300px;
215
	position:absolute;
216
	top:0;
217
	left:0px;
218
	width:180px;
219
	z-index:10;
220
	background:url('images/css/sliderLeftMask.png') no-repeat scroll center center transparent;
221
}
222
223
224
225
#sliderRightMask {
226
	height:300px;
227
	position:absolute;
228
	top:0;
229
	left:740px;
230
	width:180px;
231
	z-index:10;
232
	background:url('images/css/sliderRightMask.png') no-repeat scroll center center transparent;
233
}
234
235
	
236
	
237
238
					
239
240
241
#container {
242
	margin:10px auto;
243
	width:920px;
244
	min-height:570px;
245
background-color:#ffffff;
246
}
247
248
249
250
251
#content {
252
	width:920px;
253
	margin:10px auto ;
254
	text-align:left;
255
background-color:#ffffff;
256
}
257
258
#content p {
259
	text-align:justify;
260
}
261
	
262
	
263
					
264
265
266
#main {
267
	width:610px;
268
	float:left;
269
	margin-right:40px ;
270
        background-color:#ffffff;
271
}
272
273
#sidebar {
274
	float:right;
275
	width:270px;
276
}
277
278
.bloc h3 {
279
	margin-top:10px;
280
}
281
282
.bloc {
283
	padding:15px;
284
	background-color:#EEEEEE;
285
}
286
287
288
289
#content a:link, #content a:visited {
290
	color:#505050;
291
	font-weight:bold;
292
}
293
294
295
#content p {
296
	margin-top:10px;
297
	text-align:justify;
298
}
299
300
301
.padd15 {
302
	padding:15px;
303
}
304
305
.padd20 {
306
	padding:20px;
307
}
308
309
310
body {
311
	color:#444444;
312
	font-family: 'Trebuchet MS', sans-serif;
313
	font-size: 13px;
314
	font-style: normal;
315
	font-weight: normal;
316
	text-transform: normal;
317
}
318
319
p {
320
	letter-spacing: normal;
321
	line-height: 1.7em;
322
}
323
324
325
h1 {
326
	color:#000000;
327
	margin:20px 0 10px 0;
328
	clear:both;
329
}
330
331
332
h2 {
333
	color:#000000;
334
	margin:20px 0 10px 0;
335
	clear:both;
336
}
337
338
339
h3 {
340
	color:#000000;
341
	margin:10px 0 5px 0;
342
	clear:both;
343
}
344
345
346
a:link, a:visited {
347
	color:#505050;
348
	text-decoration:none;
349
}
350
351
352
a:hover {
353
	text-decoration:underline;
354
}
355
356
	
357
					
358
#bottomWrapper {
359
	background-color:#000000;
360
	background-image:url(images/css/bottomWrapper-bg.png);
361
	background-position:center top ;
362
	background-repeat:repeat-x;
363
	text-align:center;
364
	color:#70806D;
365
	text-align:center;	
366
	width:100%;
367
	clear:both;	
368
}
369
370
371
#bottomWrapper a:link, #bottomWrapper a:visited {
372
	color:#e7ded9;
373
}
374
375
376
377
#bottomWrapper a:hover{
378
	color:#cdb380;
379
	text-decoration:none;
380
}
381
382
383
#footer {
384
	#min-height:260px;
385
	width:920px;
386
	margin:0 auto;
387
	background-color:#000000;
388
	background-image:url(images/css/footer-bg.png);
389
	background-position:center top ;
390
	background-repeat:no-repeat;
391
}
392
393
394
395
396
.footer-last {
397
	margin-right:0 !important;
398
	clear:right;
399
}
400
401
.footer-one-third {
402
	float:left;
403
	margin:20px 100px 20px 0;
404
	width:240px;
405
	position:relative;
406
	text-align:left;
407
	overflow:hidden;
408
}
409
410
.footer-one-third h3 {
411
	margin-top:10px;
412
}
413
414
.footer-one-third ul{
415
	border-top:1px solid #0a0a0a;
416
	padding:0 ;
417
}
418
419
.footer-one-third ul, .footer-one-third li {
420
	list-style: none ;
421
	margin-left:0 ;
422
}
423
424
.footer-one-third li {
425
	border-bottom:1px solid #0a0a0a;
426
	padding: 5px 0 ;
427
}
428
429
430
431
#bottom-links {
432
	height:60px;
433
	background:#000000 url('images/css/bottomLinks-bg.png') center top repeat-x;
434
}
435
	
436
437
a img {
438
	border:none;
439
} 
440
441
442
.clear {
443
	clear: both;
444
	display: block;
445
	overflow: hidden;
446
	visibility: hidden;
447
	width: 0;
448
	height: 0;
449
}
(-)a/koha-tmpl/opac-tmpl/prog/en/js/addon.js (+563 lines)
Line 0 Link Here
1
/*!
2
 * jQuery JavaScript Library v1.4.2
3
 * http://jquery.com/
4
 *
5
 * Copyright 2010, John Resig
6
 * Dual licensed under the MIT or GPL Version 2 licenses.
7
 * http://jquery.org/license
8
 *
9
 * Includes Sizzle.js
10
 * http://sizzlejs.com/
11
 * Copyright 2010, The Dojo Foundation
12
 * Released under the MIT, BSD, and GPL Licenses.
13
 *
14
 * Date: Sat Feb 13 22:33:48 2010 -0500
15
 */
16
(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<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
17
e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
18
j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
19
"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
20
true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
21
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))&&
22
(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,
23
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===
24
"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,
25
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<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
26
c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
27
L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
28
"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
29
a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
30
d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
31
a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
32
!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
33
true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
34
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,
35
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=
36
false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";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=
37
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,
38
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];
39
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,
40
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===
41
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,
42
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<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var j=" "+e.className+" ",
43
i=e.className,o=0,k=b.length;o<k;o++)if(j.indexOf(" "+b[o]+" ")<0)i+=" "+b[o];e.className=c.trim(i)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(k){var n=c(this);n.removeClass(a.call(this,k,n.attr("class")))});if(a&&typeof a==="string"||a===w)for(var b=(a||"").split(ca),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var j=(" "+e.className+" ").replace(Aa," "),i=0,o=b.length;i<o;i++)j=j.replace(" "+b[i]+" ",
44
" ");e.className=c.trim(j)}else e.className=""}return this},toggleClass:function(a,b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var j=c(this);j.toggleClass(a.call(this,e,j.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,j=0,i=c(this),o=b,k=a.split(ca);e=k[j++];){o=f?o:!i.hasClass(e);i[o?"addClass":"removeClass"](e)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=
45
this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Aa," ").indexOf(a)>-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<d;j++){var i=
46
e[j];if(i.selected){a=c(i).val();if(b)return a;f.push(a)}}return f}if(Ba.test(b.type)&&!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return w}var o=c.isFunction(a);return this.each(function(k){var n=c(this),r=a;if(this.nodeType===1){if(o)r=a.call(this,k,n.val());if(typeof r==="number")r+="";if(c.isArray(r)&&Ba.test(this.type))this.checked=c.inArray(n.val(),r)>=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected=
47
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");
48
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,
49
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(".");
50
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),
51
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<r.length;B++){u=r[B];if(d.guid===u.guid){if(i||k.test(u.namespace)){f==null&&r.splice(B--,1);n.remove&&n.remove.call(a,u)}if(f!=
52
null)break}}if(r.length===0||f!=null&&r.length===1){if(!n.teardown||n.teardown.call(a,o)===false)Ca(a,e,z.handle);delete C[e]}}else for(var B=0;B<r.length;B++){u=r[B];if(i||k.test(u.namespace)){c.event.remove(a,n,u.handler,B);r.splice(B--,1)}}}if(c.isEmptyObject(C)){if(b=z.handle)b.elem=null;delete z.events;delete z.handle;c.isEmptyObject(z)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=
53
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()&&
54
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;
55
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<j;e++){var i=d[e];if(b||f.test(i.namespace)){a.handler=i.handler;a.data=i.data;a.handleObj=i;i=i.handler.apply(this,arguments);if(i!==w){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
56
fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||s;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=s.documentElement;d=s.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
57
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==w)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:oa}))},remove:function(a){var b=true,d=a.origType.replace(O,"");c.each(c.data(this,
58
"events").live||[],function(){if(d===this.origType.replace(O,""))return b=false});b&&c.event.remove(this,a.origType,oa)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ca=s.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
59
a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,
60
isImmediatePropagationStopped:Y};var Da=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ea=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ea:Da,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ea:Da)}}});if(!c.support.submitBubbles)c.event.special.submit=
61
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return na("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return na("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};
62
if(!c.support.changeBubbles){var da=/textarea|input|select/i,ea,Fa=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-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",
63
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,
64
"_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,
65
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;j<o;j++)c.event.add(this[j],d,i,f)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&
66
!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=0;for(var f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},
67
toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,b[d++]);return this.click(c.proxy(a,function(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Ga={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,j){var i,o=0,k,n,r=j||this.selector,
68
u=j?this:c(this.context);if(c.isFunction(f)){e=f;f=w}for(d=(d||"").split(" ");(i=d[o++])!=null;){j=O.exec(i);k="";if(j){k=j[0];i=i.replace(O,"")}if(i==="hover")d.push("mouseenter"+k,"mouseleave"+k);else{n=i;if(i==="focus"||i==="blur"){d.push(Ga[i]+k);i+=k}else i=(Ga[i]||i)+k;b==="live"?u.each(function(){c.event.add(this,pa(i,r),{data:f,selector:r,handler:e,origType:i,origHandler:e,preType:n})}):u.unbind(pa(i,r),e)}}return this}});c.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),
69
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});A.attachEvent&&!A.addEventListener&&A.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(g){for(var h="",l,m=0;g[m];m++){l=g[m];if(l.nodeType===3||l.nodeType===4)h+=l.nodeValue;else if(l.nodeType!==8)h+=a(l.childNodes)}return h}function b(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];
70
if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1&&!p){t.sizcache=l;t.sizset=q}if(t.nodeName.toLowerCase()===h){y=t;break}t=t[g]}m[q]=y}}}function d(g,h,l,m,q,p){q=0;for(var v=m.length;q<v;q++){var t=m[q];if(t){t=t[g];for(var y=false;t;){if(t.sizcache===l){y=m[t.sizset];break}if(t.nodeType===1){if(!p){t.sizcache=l;t.sizset=q}if(typeof h!=="string"){if(t===h){y=true;break}}else if(k.filter(h,[t]).length>0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
71
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();
72
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||
73
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<g.length;h++)g[h]===g[h-1]&&g.splice(h--,1)}return g};k.matches=function(g,h){return k(g,null,null,h)};k.find=function(g,h,l){var m,q;if(!g)return[];
74
for(var p=0,v=n.order.length;p<v;p++){var t=n.order[p];if(q=n.leftMatch[t].exec(g)){var y=q[1];q.splice(1,1);if(y.substr(y.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[t](q,h,l);if(m!=null){g=g.replace(n.match[t],"");break}}}}m||(m=h.getElementsByTagName("*"));return{set:m,expr:g}};k.filter=function(g,h,l,m){for(var q=g,p=[],v=h,t,y,S=h&&h[0]&&x(h[0]);g&&h.length;){for(var H in n.filter)if((t=n.leftMatch[H].exec(g))!=null&&t[2]){var M=n.filter[H],I,D;D=t[1];y=false;t.splice(1,1);if(D.substr(D.length-
75
1)!=="\\"){if(v===p)p=[];if(n.preFilter[H])if(t=n.preFilter[H](t,v,l,p,m,S)){if(t===true)continue}else y=I=true;if(t)for(var U=0;(D=v[U])!=null;U++)if(D){I=M(D,t,U,v);var Ha=m^!!I;if(l&&I!=null)if(Ha)y=true;else v[U]=false;else if(Ha){p.push(D);y=true}}if(I!==w){l||(v=p);g=g.replace(n.match[H],"");if(!y)return[];break}}}if(g===q)if(y==null)k.error(g);else break;q=g}return v};k.error=function(g){throw"Syntax error, unrecognized expression: "+g;};var n=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,
76
CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(g){return g.getAttribute("href")}},
77
relative:{"+":function(g,h){var l=typeof h==="string",m=l&&!/\W/.test(h);l=l&&!m;if(m)h=h.toLowerCase();m=0;for(var q=g.length,p;m<q;m++)if(p=g[m]){for(;(p=p.previousSibling)&&p.nodeType!==1;);g[m]=l||p&&p.nodeName.toLowerCase()===h?p||false:p===h}l&&k.filter(h,g,true)},">":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m<q;m++){var p=g[m];if(p){l=p.parentNode;g[m]=l.nodeName.toLowerCase()===h?l:false}}}else{m=0;for(q=g.length;m<q;m++)if(p=g[m])g[m]=
78
l?p.parentNode:p.parentNode===h;l&&k.filter(h,g,true)}},"":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("parentNode",h,m,g,p,l)},"~":function(g,h,l){var m=e++,q=d;if(typeof h==="string"&&!/\W/.test(h)){var p=h=h.toLowerCase();q=b}q("previousSibling",h,m,g,p,l)}},find:{ID:function(g,h,l){if(typeof h.getElementById!=="undefined"&&!l)return(g=h.getElementById(g[1]))?[g]:[]},NAME:function(g,h){if(typeof h.getElementsByName!=="undefined"){var l=[];
79
h=h.getElementsByName(g[1]);for(var m=0,q=h.length;m<q;m++)h[m].getAttribute("name")===g[1]&&l.push(h[m]);return l.length===0?null:l}},TAG:function(g,h){return h.getElementsByTagName(g[1])}},preFilter:{CLASS:function(g,h,l,m,q,p){g=" "+g[1].replace(/\\/g,"")+" ";if(p)return g;p=0;for(var v;(v=h[p])!=null;p++)if(v)if(q^(v.className&&(" "+v.className+" ").replace(/[\t\n]/g," ").indexOf(g)>=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()},
80
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,
81
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)},
82
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)}},
83
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 h<l[3]-0},gt:function(g,h,l){return h>l[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=
84
h[3];l=0;for(m=h.length;l<m;l++)if(h[l]===g)return false;return true}else k.error("Syntax error, unrecognized expression: "+q)},CHILD:function(g,h){var l=h[1],m=g;switch(l){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(l==="first")return true;m=g;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":l=h[2];var q=h[3];if(l===1&&q===0)return true;h=h[0];var p=g.parentNode;if(p&&(p.sizcache!==h||!g.nodeIndex)){var v=0;for(m=p.firstChild;m;m=
85
m.nextSibling)if(m.nodeType===1)m.nodeIndex=++v;p.sizcache=h}g=g.nodeIndex-q;return l===0?g===0:g%l===0&&g/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===
86
"="?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,
87
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<m;l++)h.push(g[l]);else for(l=0;g[l];l++)h.push(g[l]);return h}}var B;if(s.documentElement.compareDocumentPosition)B=function(g,h){if(!g.compareDocumentPosition||
88
!h.compareDocumentPosition){if(g==h)i=true;return g.compareDocumentPosition?-1:1}g=g.compareDocumentPosition(h)&4?-1:g===h?0:1;if(g===0)i=true;return g};else if("sourceIndex"in s.documentElement)B=function(g,h){if(!g.sourceIndex||!h.sourceIndex){if(g==h)i=true;return g.sourceIndex?-1:1}g=g.sourceIndex-h.sourceIndex;if(g===0)i=true;return g};else if(s.createRange)B=function(g,h){if(!g.ownerDocument||!h.ownerDocument){if(g==h)i=true;return g.ownerDocument?-1:1}var l=g.ownerDocument.createRange(),m=
89
h.ownerDocument.createRange();l.setStart(g,0);l.setEnd(g,0);m.setStart(h,0);m.setEnd(h,0);g=l.compareBoundaryPoints(Range.START_TO_END,m);if(g===0)i=true;return g};(function(){var g=s.createElement("div"),h="script"+(new Date).getTime();g.innerHTML="<a name='"+h+"'/>";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"&&
90
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="<a href='#'></a>";
91
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="<p class='TEST'></p>";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}}();
92
(function(){var g=s.createElement("div");g.innerHTML="<div class='test e'></div><div class='test'></div>";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)}:
93
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<p;q++)k(g,h[q],l);return k.filter(m,l)};c.find=k;c.expr=k.selectors;c.expr[":"]=c.expr.filters;c.unique=k.uniqueSort;c.text=a;c.isXMLDoc=x;c.contains=E})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,
94
gb=/,/;R=Array.prototype.slice;var Ia=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,j){return!!b.call(e,j,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Ua.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;
95
c.find(a,this[f],b);if(f>0)for(var j=d;j<b.length;j++)for(var i=0;i<d;i++)if(b[i]===b[j]){b.splice(j--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Ia(this,a,false),"not",a)},filter:function(a){return this.pushStack(Ia(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j=
96
{},i;if(f&&a.length){e=0;for(var o=a.length;e<o;e++){i=a[e];j[i]||(j[i]=c.expr.match.POS.test(i)?c(i,b||this.context):i)}for(;f&&f.ownerDocument&&f!==b;){for(i in j){e=j[i];if(e.jquery?e.index(f)>-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===
97
"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",
98
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")?
99
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===
100
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=/<tbody/i,jb=/<|&#?\w+;/,ta=/<script|<object|<embed|<option|<style/i,ua=/checked\s*(?:[^=]|=\s*.checked.)/i,Ma=function(a,b,d){return hb.test(d)?
101
a:b+"></"+d+">"},F={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_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<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=
102
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},
103
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)})},
104
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,
105
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);
106
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,
107
""):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;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(f){this.empty().append(a)}}else c.isFunction(a)?this.each(function(e){var j=c(this),i=j.html();j.empty().append(function(){return a.call(this,e,i)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&
108
this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),f=d.html();d.replaceWith(a.call(this,b,f))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){function f(u){return c.nodeName(u,"table")?u.getElementsByTagName("tbody")[0]||
109
u.appendChild(u.ownerDocument.createElement("tbody")):u}var e,j,i=a[0],o=[],k;if(!c.support.checkClone&&arguments.length===3&&typeof i==="string"&&ua.test(i))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(i))return this.each(function(u){var z=c(this);a[0]=i.call(this,u,b?z.html():w);z.domManip(a,b,d)});if(this[0]){e=i&&i.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:sa(a,this,o);k=e.fragment;if(j=k.childNodes.length===
110
1?(k=k.firstChild):k.firstChild){b=b&&c.nodeName(j,"tr");for(var n=0,r=this.length;n<r;n++)d.call(b?f(this[n],j):this[n],n>0||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]);
111
return this}else{e=0;for(var j=d.length;e<j;e++){var i=(e>0?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)||["",
112
""])[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]==="<table>"&&!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=
113
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]?
114
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=
115
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=
116
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,
117
"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=
118
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=
119
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=/<script(.|\s)*?\/script>/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!==
120
"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("<div />").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this},
121
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(" "),
122
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,
123
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&&
124
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)?
125
"&":"?")+(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===
126
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=
127
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",
128
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||
129
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);
130
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===
131
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===
132
"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;
133
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<b;a++){var d=c.data(this[a],"olddisplay");
134
this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var f;if(la[d])f=la[d];else{var e=c("<"+d+" />").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<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},hide:function(a,b){if(a||a===0)return this.animate(K("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],
135
"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");c(this)[f?"show":"hide"]()}):this.animate(K("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},
136
animate:function(a,b,d,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var j=c.extend({},e),i,o=this.nodeType===1&&c(this).is(":hidden"),k=this;for(i in a){var n=i.replace(ia,ja);if(i!==n){a[n]=a[i];delete a[i];i=n}if(a[i]==="hide"&&o||a[i]==="show"&&!o)return j.complete.call(this);if((i==="height"||i==="width")&&this.style){j.display=c.css(this,"display");j.overflow=this.style.overflow}if(c.isArray(a[i])){(j.specialEasing=
137
j.specialEasing||{})[i]=a[i][1];a[i]=a[i][0]}}if(j.overflow!=null)this.style.overflow="hidden";j.curAnim=c.extend({},a);c.each(a,function(r,u){var z=new c.fx(k,j,r);if(Ab.test(u))z[u==="toggle"?o?"show":"hide":u](a);else{var C=Bb.exec(u),B=z.cur(true)||0;if(C){u=parseFloat(C[2]);var E=C[3]||"px";if(E!=="px"){k.style[r]=(u||1)+E;B=(u||1)/z.cur(true)*B;k.style[r]=B+E}if(C[1])u=(C[1]==="-="?-1:1)*u+B;z.custom(B,u,E)}else z.custom(B,u,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);
138
this.each(function(){for(var f=d.length-1;f>=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===
139
"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]||
140
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;
141
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=
142
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,
143
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.length;b++)a[b]()||a.splice(b--,1);a.length||
144
c.fx.stop()},stop:function(){clearInterval(W);W=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in s.documentElement?
145
function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=
146
this[0];if(a)return this.each(function(r){c.offset.setOffset(this,a,r)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b,e=b.ownerDocument,j,i=e.documentElement,o=e.body;f=(e=e.defaultView)?e.getComputedStyle(b,null):b.currentStyle;for(var k=b.offsetTop,n=b.offsetLeft;(b=b.parentNode)&&b!==o&&b!==i;){if(c.offset.supportsFixedPosition&&f.position==="fixed")break;j=e?e.getComputedStyle(b,null):b.currentStyle;
147
k-=b.scrollTop;n-=b.scrollLeft;if(b===d){k+=b.offsetTop;n+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&j.overflow!=="visible"){k+=parseFloat(j.borderTopWidth)||0;n+=parseFloat(j.borderLeftWidth)||0}f=j}if(f.position==="relative"||f.position==="static"){k+=o.offsetTop;n+=o.offsetLeft}if(c.offset.supportsFixedPosition&&
148
f.position==="fixed"){k+=Math.max(i.scrollTop,o.scrollTop);n+=Math.max(i.scrollLeft,o.scrollLeft)}return{top:k,left:n}};c.offset={initialize:function(){var a=s.body,b=s.createElement("div"),d,f,e,j=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});b.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";
149
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);
150
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,
151
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-
152
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":
153
"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
154
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);
155
156
157
/* ------------------------------------------------------------------------
158
	s3Slider
159
	
160
	Developped By: Boban Karišik -> http://www.serie3.info/
161
        CSS Help: Mészáros Róbert -> http://www.perspectived.com/
162
	Version: 1.0
163
	
164
	Copyright: Feel free to redistribute the script/modify it, as
165
			   long as you leave my infos at the top.
166
------------------------------------------------------------------------- */
167
168
169
(function($){  
170
171
    $.fn.s3Slider = function(vars) {       
172
        
173
        var element     = this;
174
        var timeOut     = (vars.timeOut != undefined) ? vars.timeOut : 4000;
175
        var current     = null;
176
        var timeOutFn   = null;
177
        var faderStat   = true;
178
        var mOver       = false;
179
        var items       = $("#" + element[0].id + "Content ." + element[0].id + "Image");
180
        var itemsSpan   = $("#" + element[0].id + "Content ." + element[0].id + "Image span");
181
            
182
        items.each(function(i) {
183
    
184
            $(items[i]).mouseover(function() {
185
               mOver = true;
186
            });
187
            
188
            $(items[i]).mouseout(function() {
189
                mOver   = false;
190
                fadeElement(true);
191
            });
192
            
193
        });
194
        
195
        var fadeElement = function(isMouseOut) {
196
            var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut;
197
            thisTimeOut = (faderStat) ? 10 : thisTimeOut;
198
            if(items.length > 0) {
199
                timeOutFn = setTimeout(makeSlider, thisTimeOut);
200
            } else {
201
                console.log("Poof..");
202
            }
203
        }
204
        
205
        var makeSlider = function() {
206
            current = (current != null) ? current : items[(items.length-1)];
207
            var currNo      = jQuery.inArray(current, items) + 1
208
            currNo = (currNo == items.length) ? 0 : (currNo - 1);
209
            var newMargin   = $(element).width() * currNo;
210
            if(faderStat == true) {
211
                if(!mOver) {
212
                    $(items[currNo]).fadeIn((timeOut/6), function() {
213
                        if($(itemsSpan[currNo]).css('bottom') == 0) {
214
                            $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
215
                                faderStat = false;
216
                                current = items[currNo];
217
                                if(!mOver) {
218
                                    fadeElement(false);
219
                                }
220
                            });
221
                        } else {
222
                            $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
223
                                faderStat = false;
224
                                current = items[currNo];
225
                                if(!mOver) {
226
                                    fadeElement(false);
227
                                }
228
                            });
229
                        }
230
                    });
231
                }
232
            } else {
233
                if(!mOver) {
234
                    if($(itemsSpan[currNo]).css('bottom') == 0) {
235
                        $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
236
                            $(items[currNo]).fadeOut((timeOut/6), function() {
237
                                faderStat = true;
238
                                current = items[(currNo+1)];
239
                                if(!mOver) {
240
                                    fadeElement(false);
241
                                }
242
                            });
243
                        });
244
                    } else {
245
                        $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
246
                        $(items[currNo]).fadeOut((timeOut/6), function() {
247
                                faderStat = true;
248
                                current = items[(currNo+1)];
249
                                if(!mOver) {
250
                                    fadeElement(false);
251
                                }
252
                            });
253
                        });
254
                    }
255
                }
256
            }
257
        }
258
        
259
        makeSlider();
260
261
    };  
262
263
})(jQuery);  
264
265
/*
266
 * jQuery Cycle Plugin (with Transition Definitions)
267
 * Examples and documentation at: http://jquery.malsup.com/cycle/
268
 * Copyright (c) 2007-2010 M. Alsup
269
 * Version: 2.85 (30-MAR-2010)
270
 * Dual licensed under the MIT and GPL licenses:
271
 * http://www.opensource.org/licenses/mit-license.php
272
 * http://www.gnu.org/licenses/gpl.html
273
 * Requires: jQuery v1.2.6 or later
274
 */
275
(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;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=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;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?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)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(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;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=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='<a href="#">'+(i+1)+"</a>";}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.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=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);
276
/*
277
 * jQuery Cycle Plugin Transition Definitions
278
 * This script is a plugin for the jQuery Cycle Plugin
279
 * Examples and documentation at: http://malsup.com/jquery/cycle/
280
 * Copyright (c) 2007-2008 M. Alsup
281
 * Version:	 2.72
282
 * Dual licensed under the MIT and GPL licenses:
283
 * http://www.opensource.org/licenses/mit-license.php
284
 * http://www.gnu.org/licenses/gpl.html
285
 */
286
(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<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);
287
288
/*!
289
 * jQuery corner plugin: simple corner rounding
290
 * Examples and documentation at: http://jquery.malsup.com/corner/
291
 * version 2.09 (11-MAR-2010)
292
 * Requires jQuery v1.3.2 or later
293
 * Dual licensed under the MIT and GPL licenses:
294
 * http://www.opensource.org/licenses/mit-license.php
295
 * http://www.gnu.org/licenses/gpl.html
296
 * Authors: Dave Methvin and Mike Alsup
297
 */
298
299
/**
300
 *  corner() takes a single string argument:  $('#myDiv').corner("effect corners width")
301
 *
302
 *  effect:  name of the effect to apply, such as round, bevel, notch, bite, etc (default is round). 
303
 *  corners: one or more of: top, bottom, tr, tl, br, or bl.  (default is all corners)
304
 *  width:   width of the effect; in the case of rounded corners this is the radius. 
305
 *           specify this value using the px suffix such as 10px (yes, it must be pixels).
306
 */
307
;(function($) { 
308
309
var style = document.createElement('div').style;
310
var moz = style['MozBorderRadius'] !== undefined;
311
var webkit = style['WebkitBorderRadius'] !== undefined;
312
var radius = style['borderRadius'] !== undefined || style['BorderRadius'] !== undefined;
313
var mode = document.documentMode || 0;
314
var noBottomFold = $.browser.msie && (($.browser.version < 8 && !mode) || mode < 8);
315
316
var expr = $.browser.msie && (function() {
317
    var div = document.createElement('div');
318
    try { div.style.setExpression('width','0+0'); div.style.removeExpression('width'); }
319
    catch(e) { return false; }
320
    return true;
321
})();
322
    
323
function sz(el, p) { 
324
    return parseInt($.css(el,p))||0; 
325
};
326
function hex2(s) {
327
    var s = parseInt(s).toString(16);
328
    return ( s.length < 2 ) ? '0'+s : s;
329
};
330
function gpc(node) {
331
    while(node) {
332
        var v = $.css(node,'backgroundColor');
333
        if (v && v != 'transparent' && v != 'rgba(0, 0, 0, 0)') {
334
	        if (v.indexOf('rgb') >= 0) { 
335
	            var rgb = v.match(/\d+/g); 
336
	            return '#'+ hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]);
337
	        }
338
            return v;
339
		}
340
		node = node.parentNode; // keep walking if transparent
341
    }
342
    return '#ffffff';
343
};
344
345
function getWidth(fx, i, width) {
346
    switch(fx) {
347
    case 'round':  return Math.round(width*(1-Math.cos(Math.asin(i/width))));
348
    case 'cool':   return Math.round(width*(1+Math.cos(Math.asin(i/width))));
349
    case 'sharp':  return Math.round(width*(1-Math.cos(Math.acos(i/width))));
350
    case 'bite':   return Math.round(width*(Math.cos(Math.asin((width-i-1)/width))));
351
    case 'slide':  return Math.round(width*(Math.atan2(i,width/i)));
352
    case 'jut':    return Math.round(width*(Math.atan2(width,(width-i-1))));
353
    case 'curl':   return Math.round(width*(Math.atan(i)));
354
    case 'tear':   return Math.round(width*(Math.cos(i)));
355
    case 'wicked': return Math.round(width*(Math.tan(i)));
356
    case 'long':   return Math.round(width*(Math.sqrt(i)));
357
    case 'sculpt': return Math.round(width*(Math.log((width-i-1),width)));
358
	case 'dogfold':
359
    case 'dog':    return (i&1) ? (i+1) : width;
360
    case 'dog2':   return (i&2) ? (i+1) : width;
361
    case 'dog3':   return (i&3) ? (i+1) : width;
362
    case 'fray':   return (i%2)*width;
363
    case 'notch':  return width; 
364
	case 'bevelfold':
365
    case 'bevel':  return i+1;
366
    }
367
};
368
369
$.fn.corner = function(options) {
370
    // in 1.3+ we can fix mistakes with the ready state
371
	if (this.length == 0) {
372
        if (!$.isReady && this.selector) {
373
            var s = this.selector, c = this.context;
374
            $(function() {
375
                $(s,c).corner(options);
376
            });
377
        }
378
        return this;
379
	}
380
381
    return this.each(function(index){
382
		var $this = $(this);
383
		// meta values override options
384
		var o = [$this.attr($.fn.corner.defaults.metaAttr) || '', options || ''].join(' ').toLowerCase();
385
		var keep = /keep/.test(o);                       // keep borders?
386
		var cc = ((o.match(/cc:(#[0-9a-f]+)/)||[])[1]);  // corner color
387
		var sc = ((o.match(/sc:(#[0-9a-f]+)/)||[])[1]);  // strip color
388
		var width = parseInt((o.match(/(\d+)px/)||[])[1]) || 10; // corner width
389
		var re = /round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/;
390
		var fx = ((o.match(re)||['round'])[0]);
391
		var fold = /dogfold|bevelfold/.test(o);
392
		var edges = { T:0, B:1 };
393
		var opts = {
394
			TL:  /top|tl|left/.test(o),       TR:  /top|tr|right/.test(o),
395
			BL:  /bottom|bl|left/.test(o),    BR:  /bottom|br|right/.test(o)
396
		};
397
		if ( !opts.TL && !opts.TR && !opts.BL && !opts.BR )
398
			opts = { TL:1, TR:1, BL:1, BR:1 };
399
			
400
		// support native rounding
401
		if ($.fn.corner.defaults.useNative && fx == 'round' && (radius || moz || webkit) && !cc && !sc) {
402
			if (opts.TL)
403
				$this.css(radius ? 'border-top-left-radius' : moz ? '-moz-border-radius-topleft' : '-webkit-border-top-left-radius', width + 'px');
404
			if (opts.TR)
405
				$this.css(radius ? 'border-top-right-radius' : moz ? '-moz-border-radius-topright' : '-webkit-border-top-right-radius', width + 'px');
406
			if (opts.BL)
407
				$this.css(radius ? 'border-bottom-left-radius' : moz ? '-moz-border-radius-bottomleft' : '-webkit-border-bottom-left-radius', width + 'px');
408
			if (opts.BR)
409
				$this.css(radius ? 'border-bottom-right-radius' : moz ? '-moz-border-radius-bottomright' : '-webkit-border-bottom-right-radius', width + 'px');
410
			return;
411
		}
412
			
413
		var strip = document.createElement('div');
414
		$(strip).css({
415
			overflow: 'hidden',
416
			height: '1px',
417
			minHeight: '1px',
418
			fontSize: '1px',
419
			backgroundColor: sc || 'transparent',
420
			borderStyle: 'solid'
421
		});
422
	
423
        var pad = {
424
            T: parseInt($.css(this,'paddingTop'))||0,     R: parseInt($.css(this,'paddingRight'))||0,
425
            B: parseInt($.css(this,'paddingBottom'))||0,  L: parseInt($.css(this,'paddingLeft'))||0
426
        };
427
428
        if (typeof this.style.zoom != undefined) this.style.zoom = 1; // force 'hasLayout' in IE
429
        if (!keep) this.style.border = 'none';
430
        strip.style.borderColor = cc || gpc(this.parentNode);
431
        var cssHeight = $(this).outerHeight();
432
433
        for (var j in edges) {
434
            var bot = edges[j];
435
            // only add stips if needed
436
            if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) {
437
                strip.style.borderStyle = 'none '+(opts[j+'R']?'solid':'none')+' none '+(opts[j+'L']?'solid':'none');
438
                var d = document.createElement('div');
439
                $(d).addClass('jquery-corner');
440
                var ds = d.style;
441
442
                bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild);
443
444
                if (bot && cssHeight != 'auto') {
445
                    if ($.css(this,'position') == 'static')
446
                        this.style.position = 'relative';
447
                    ds.position = 'absolute';
448
                    ds.bottom = ds.left = ds.padding = ds.margin = '0';
449
                    if (expr)
450
                        ds.setExpression('width', 'this.parentNode.offsetWidth');
451
                    else
452
                        ds.width = '100%';
453
                }
454
                else if (!bot && $.browser.msie) {
455
                    if ($.css(this,'position') == 'static')
456
                        this.style.position = 'relative';
457
                    ds.position = 'absolute';
458
                    ds.top = ds.left = ds.right = ds.padding = ds.margin = '0';
459
                    
460
                    // fix ie6 problem when blocked element has a border width
461
                    if (expr) {
462
                        var bw = sz(this,'borderLeftWidth') + sz(this,'borderRightWidth');
463
                        ds.setExpression('width', 'this.parentNode.offsetWidth - '+bw+'+ "px"');
464
                    }
465
                    else
466
                        ds.width = '100%';
467
                }
468
                else {
469
                	ds.position = 'relative';
470
                    ds.margin = !bot ? '-'+pad.T+'px -'+pad.R+'px '+(pad.T-width)+'px -'+pad.L+'px' : 
471
                                        (pad.B-width)+'px -'+pad.R+'px -'+pad.B+'px -'+pad.L+'px';                
472
                }
473
474
                for (var i=0; i < width; i++) {
475
                    var w = Math.max(0,getWidth(fx,i, width));
476
                    var e = strip.cloneNode(false);
477
                    e.style.borderWidth = '0 '+(opts[j+'R']?w:0)+'px 0 '+(opts[j+'L']?w:0)+'px';
478
                    bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild);
479
                }
480
				
481
				if (fold && $.support.boxModel) {
482
					if (bot && noBottomFold) continue;
483
					for (var c in opts) {
484
						if (!opts[c]) continue;
485
						if (bot && (c == 'TL' || c == 'TR')) continue;
486
						if (!bot && (c == 'BL' || c == 'BR')) continue;
487
						
488
						var common = { position: 'absolute', border: 'none', margin: 0, padding: 0, overflow: 'hidden', backgroundColor: strip.style.borderColor };
489
						var $horz = $('<div/>').css(common).css({ width: width + 'px', height: '1px' });
490
						switch(c) {
491
						case 'TL': $horz.css({ bottom: 0, left: 0 }); break;
492
						case 'TR': $horz.css({ bottom: 0, right: 0 }); break;
493
						case 'BL': $horz.css({ top: 0, left: 0 }); break;
494
						case 'BR': $horz.css({ top: 0, right: 0 }); break;
495
						}
496
						d.appendChild($horz[0]);
497
						
498
						var $vert = $('<div/>').css(common).css({ top: 0, bottom: 0, width: '1px', height: width + 'px' });
499
						switch(c) {
500
						case 'TL': $vert.css({ left: width }); break;
501
						case 'TR': $vert.css({ right: width }); break;
502
						case 'BL': $vert.css({ left: width }); break;
503
						case 'BR': $vert.css({ right: width }); break;
504
						}
505
						d.appendChild($vert[0]);
506
					}
507
				}
508
            }
509
        }
510
    });
511
};
512
513
$.fn.uncorner = function() { 
514
	if (radius || moz || webkit)
515
		this.css(radius ? 'border-radius' : moz ? '-moz-border-radius' : '-webkit-border-radius', 0);
516
	$('div.jquery-corner', this).remove();
517
	return this;
518
};
519
520
// expose options
521
$.fn.corner.defaults = {
522
	useNative: true, // true if plugin should attempt to use native browser support for border radius rounding
523
	metaAttr:  'data-corner' // name of meta attribute to use for options
524
};
525
    
526
})(jQuery);
527
528
/*
529
 * Copyright (c) 2009 Simo Kinnunen.
530
 * Licensed under the MIT license.
531
 *
532
 * @version 1.09
533
 */
534
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;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{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;}}</style>").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<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());
535
536
/* 
537
 * vegur font
538
 * Copyright (C) 2004-2008 dot colon. All rights reserved.
539
 */
540
Cufon.registerFont({"w":184,"face":{"font-family":"Vegur","font-weight":300,"font-stretch":"normal","units-per-em":"360","panose-1":"0 0 0 0 0 0 0 0 0 0","ascent":"277","descent":"-83","x-height":"4","bbox":"-15 -270 307 90","underline-thickness":"18","underline-position":"-18","unicode-range":"U+0020-U+201D"},"glyphs":{" ":{"w":85},"A":{"d":"180,0r-29,-86r-98,0r-29,86r-15,0r86,-244r15,0r85,244r-15,0xm58,-99r89,0r-45,-127","w":207,"k":{"y":9,"Y":28,"w":10,"W":22,"V":24,"v":12,"T":27}},"a":{"d":"36,-168v44,-19,103,-8,103,48r0,120r-13,0v-1,-10,1,-25,-2,-33v-19,55,-107,45,-107,-18v0,-50,57,-67,108,-56v8,-57,-44,-69,-88,-49xm75,-8v36,1,55,-39,50,-87v-41,-9,-92,1,-92,42v0,28,18,45,42,45","w":167},"@":{"d":"179,-209v58,0,103,53,103,103v0,53,-29,88,-66,88v-15,0,-26,-10,-32,-29v-21,46,-87,43,-89,-16v-2,-66,52,-106,116,-87v-2,35,-32,121,9,121v27,0,49,-27,49,-71v0,-54,-38,-98,-97,-98v-75,0,-133,56,-133,127v0,94,99,132,172,87r1,10v-76,49,-185,4,-185,-90v0,-89,68,-145,152,-145xm140,-26v46,0,51,-71,58,-116v-53,-11,-92,23,-91,75v0,27,16,41,33,41","w":316},"`":{"d":"15,-253v7,1,17,-2,19,4v7,14,16,29,24,42r-14,0v-8,-12,-21,-31,-29,-46","w":88},"B":{"d":"113,-129v30,11,54,29,54,60v0,61,-70,81,-136,67r0,-240v59,-12,130,3,130,54v0,30,-24,52,-48,59xm45,-131v52,3,95,-3,100,-54v4,-41,-53,-55,-100,-45r0,99xm151,-67v0,-43,-51,-57,-106,-52r0,105v52,11,106,-7,106,-53","w":185},"b":{"d":"45,-139v38,-66,137,-39,137,49v0,89,-101,126,-137,57r-1,33r-13,0r0,-259r14,0r0,120xm104,-164v-48,0,-59,42,-59,95v0,36,27,60,59,60v35,0,62,-29,62,-78v0,-46,-22,-77,-62,-77","w":199},"C":{"d":"16,-121v0,-101,94,-151,180,-116r-2,13v-80,-32,-162,8,-162,102v0,95,79,135,158,101r2,13v-86,34,-176,-6,-176,-113","w":208},"c":{"d":"33,-89v0,70,57,96,115,70r2,13v-62,27,-133,-3,-133,-79v0,-80,75,-108,135,-81r-2,12v-50,-24,-117,-5,-117,65","w":164},"D":{"d":"31,-242v103,-19,195,21,192,113v-4,99,-86,146,-192,128r0,-241xm45,-230r0,217v91,14,159,-28,162,-113v3,-80,-71,-120,-162,-104","w":238},"d":{"d":"154,-33v-39,67,-137,37,-137,-50v0,-89,101,-125,137,-56r0,-120r14,0r0,259r-13,0xm95,-9v48,0,59,-41,59,-94v0,-36,-27,-61,-59,-61v-35,0,-62,29,-62,78v0,46,22,77,62,77","w":199},"#":{"d":"168,-147r-37,0r-9,57r38,0r0,11r-40,0r-11,66r-11,0r10,-66r-42,0r-11,66r-11,0r10,-66r-35,0r0,-11r37,0r10,-57r-39,0r0,-11r40,0r11,-66r12,0r-11,66r42,0r11,-66r12,0r-11,66r35,0r0,11xm110,-90r10,-57r-43,0r-9,57r42,0","w":187},"\"":{"d":"36,-180r-12,0r-1,-66v-1,-9,8,-7,16,-7xm67,-180r-11,0r-2,-66v0,-8,9,-7,17,-7","w":90},"!":{"d":"54,-8v0,17,-23,14,-23,0v0,-6,5,-11,11,-11v6,0,12,5,12,11xm49,-50r-13,0r-2,-194r17,0","w":84},"E":{"d":"45,-13r109,0r0,13r-123,0r0,-244r120,0r0,13r-106,0r0,99r94,0r0,12r-94,0r0,107","w":174},"e":{"d":"97,-177v46,0,66,43,60,91r-125,0v-3,67,55,92,110,68r1,12v-60,25,-127,3,-126,-79v0,-49,32,-92,80,-92xm33,-98r111,0v0,-39,-16,-67,-50,-67v-36,0,-59,32,-61,67","w":176},"F":{"d":"45,0r-14,0r0,-244r120,0r0,13r-106,0r0,102r94,0r0,13r-94,0r0,116","w":160},"f":{"d":"41,-173v-5,-65,31,-105,82,-85r-2,12v-43,-17,-72,16,-65,73r46,0r0,13r-46,0r0,160r-15,0r0,-160r-28,0r0,-13r28,0","w":112},"G":{"d":"16,-120v0,-105,96,-151,179,-116r-2,14v-75,-35,-161,4,-161,100v0,94,76,130,156,102r0,-83r-61,0r0,-13r75,0r0,106v-90,32,-186,2,-186,-110","w":224},"g":{"d":"167,-173r0,149v2,98,-70,114,-136,86r2,-13v62,34,135,2,119,-85v-37,69,-135,36,-135,-49v0,-89,101,-121,136,-54r1,-34r13,0xm94,-164v-35,0,-61,30,-61,77v0,46,23,76,62,76v46,0,58,-40,58,-92v0,-36,-27,-61,-59,-61","w":198},"H":{"d":"193,-244r15,0r0,244r-15,0r0,-120r-148,0r0,120r-14,0r0,-244r14,0r0,112r148,0r0,-112","w":238},"h":{"d":"45,-259r1,121v13,-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,-259r14,0","w":188},"I":{"d":"45,0r-14,0r0,-244r14,0r0,244","w":76},"i":{"d":"31,0r0,-173r14,0r0,173r-14,0xm38,-220v-6,0,-11,-5,-11,-11v0,-6,5,-11,11,-11v6,0,11,5,11,11v0,6,-5,11,-11,11","w":76},"J":{"d":"103,-78v1,70,-46,93,-101,77r2,-13v46,14,85,0,84,-63r0,-167r15,0r0,166","w":131},"j":{"d":"50,-173v-7,95,29,240,-63,247r-2,-13v31,-6,50,-22,50,-73r0,-161r15,0xm42,-220v-6,0,-10,-5,-10,-11v0,-6,4,-11,10,-11v6,0,11,5,11,11v0,6,-5,11,-11,11","w":80},"K":{"d":"185,-244r-104,117r112,127r-20,0r-102,-117r-26,30r0,87r-14,0r0,-244r14,0v2,45,-4,98,2,139r120,-139r18,0","w":189},"k":{"d":"156,-173r-71,71r80,102r-18,0r-72,-91r-30,31r0,60r-14,0r0,-259r14,0r1,183v17,-20,91,-97,91,-97r19,0","w":164},"L":{"d":"31,-244r14,0r0,231r113,0r0,13r-127,0r0,-244","w":167},"l":{"d":"45,0r-14,0r0,-259r14,0r0,259","w":76},"M":{"d":"232,-244r18,0r8,244r-14,0r-7,-225r-87,218r-14,0r-87,-218r-6,225r-13,0r9,-244r18,0r87,220","w":289},"m":{"d":"103,-176v28,0,39,24,49,44v23,-66,109,-58,109,19r0,113r-15,0v-6,-59,22,-163,-40,-163v-64,1,-53,95,-53,163r-14,0v-5,-60,21,-162,-41,-163v-64,0,-53,95,-53,163r-14,0r0,-173r13,0v1,11,-1,26,2,35v12,-24,30,-38,57,-38","w":288},"N":{"d":"213,-244r0,244r-19,0r-152,-230r1,230r-13,0r0,-244r20,0r151,230r-1,-230r13,0","w":243},"O":{"d":"126,4v-66,0,-110,-60,-110,-126v0,-66,44,-126,110,-126v66,0,111,60,111,126v0,66,-45,126,-111,126xm126,-9v58,0,95,-54,95,-113v0,-59,-37,-113,-95,-113v-58,0,-94,54,-94,113v0,59,36,113,94,113","w":252},"o":{"d":"17,-86v0,-55,34,-90,79,-90v45,0,79,35,79,90v0,55,-34,90,-79,90v-45,0,-79,-35,-79,-90xm33,-86v0,46,24,77,63,77v39,0,63,-31,63,-77v0,-46,-24,-78,-63,-78v-39,0,-63,32,-63,78","w":191},"P":{"d":"45,-231r0,114v53,9,103,-10,103,-60v0,-50,-51,-62,-103,-54xm31,0r0,-241v62,-15,136,3,133,60v-3,62,-57,86,-119,77r0,104r-14,0","w":177,"k":{"q":8,"o":8,"J":22,"g":8,"e":8,"d":8,"c":8,"a":9}},"p":{"d":"45,-139v38,-66,137,-39,137,49v0,89,-101,126,-137,57r0,104r-14,0r0,-244r13,0xm104,-164v-48,0,-59,42,-59,95v0,36,27,60,59,60v35,0,62,-29,62,-78v0,-46,-22,-77,-62,-77","w":199},"q":{"d":"154,-33v-39,67,-137,37,-137,-50v0,-89,101,-125,137,-56r1,-34r13,0r0,244r-14,0r0,-104xm95,-9v48,0,59,-41,59,-94v0,-36,-27,-61,-59,-61v-35,0,-62,29,-62,78v0,46,22,77,62,77","w":199},"Q":{"d":"237,-122v0,53,-29,102,-75,119r13,51r-14,4r-12,-51v-79,17,-133,-50,-133,-123v0,-66,44,-126,110,-126v66,0,111,60,111,126xm126,-9v58,0,95,-54,95,-113v0,-59,-37,-113,-95,-113v-58,0,-94,54,-94,113v0,59,36,113,94,113","w":252},"R":{"d":"45,-123v56,4,105,-5,105,-57v0,-48,-56,-61,-105,-49r0,106xm155,0v-15,-44,-9,-112,-66,-111r-44,0r0,111r-14,0r0,-240v61,-16,135,-1,135,56v0,36,-28,57,-52,66v46,10,40,76,58,118r-17,0","w":183},"r":{"d":"93,-177r-1,17v-58,5,-46,93,-47,160r-14,0r0,-174r13,0v1,14,-1,33,2,45v9,-28,26,-46,47,-48","w":97,"k":{"y":-4,"v":-4,"t":-8}},"s":{"d":"104,-42v7,-38,-87,-43,-78,-89v-3,-44,56,-54,87,-37r-1,12v-22,-13,-71,-12,-71,22v0,46,90,48,79,88v3,49,-65,61,-102,40r1,-12v30,15,86,14,85,-24","w":140},"S":{"d":"137,-60v0,-62,-109,-60,-109,-126v0,-59,72,-74,116,-53r-2,13v-33,-18,-102,-9,-98,37v-8,63,118,61,109,125v5,60,-79,82,-135,59r2,-14v43,19,117,13,117,-41","w":176},"T":{"d":"165,-244r0,13r-72,0r0,231r-15,0r0,-231r-73,0r0,-13r160,0","w":170,"k":{"n":28,"z":28,"y":19,"x":26,"w":21,"v":23,"u":28,"s":28,"r":28,"q":26,"o":26,"m":28,"J":31,"g":26,"e":26,"d":26,"c":26,"a":29,"A":27}},"t":{"d":"88,-173r0,13r-40,0r0,119v0,34,22,37,45,28r1,12v-27,11,-60,5,-60,-35r0,-124r-26,0r0,-13r26,0r0,-36r14,0r0,36r40,0","w":109},"U":{"d":"185,-82v0,55,-34,86,-79,86v-45,0,-78,-34,-78,-81r0,-167r14,0r0,163v0,46,28,72,65,72v95,0,56,-145,64,-235r14,0r0,162","w":211},"u":{"d":"143,-35v-14,26,-37,39,-62,39v-77,-1,-47,-106,-53,-177r14,0v6,62,-23,164,44,164v32,0,57,-28,57,-62r0,-102r15,0r0,173r-14,0","w":188},"v":{"d":"146,-173r14,0r-69,173r-15,0r-69,-173r15,0r62,157","w":165},"V":{"d":"91,0r-85,-244r15,0r78,226r78,-226r15,0r-86,244r-15,0","w":195,"k":{"z":17,"s":22,"q":14,"o":14,"J":22,"e":14,"d":14,"c":14,"a":19,"A":24}},"W":{"d":"293,-244r14,0r-75,244r-14,0r-61,-224r-61,224r-15,0r-74,-244r15,0r67,225r61,-225r15,0r61,225","w":312,"k":{"z":15,"s":21,"q":12,"o":12,"J":21,"g":12,"e":12,"d":12,"c":12,"a":17,"A":22}},"w":{"d":"242,-173r14,0r-60,173r-15,0r-49,-154r-48,154r-16,0r-60,-173r16,0r53,155r49,-155r15,0r49,155","w":263},"x":{"d":"147,-173r-60,84r65,89r-18,0r-56,-77r-56,77r-16,0r64,-89r-61,-84r18,0v19,23,32,52,53,73r51,-73r16,0","w":159},"X":{"d":"167,-244r-72,119r77,125r-17,0r-68,-113r-66,113r-16,0r76,-125r-73,-119r16,0r65,107r63,-107r15,0","w":174},"Y":{"d":"163,-244r16,0r-79,137r0,107r-14,0r0,-105r-80,-139r17,0r71,125","w":183,"k":{"n":27,"z":27,"u":27,"s":28,"r":27,"q":24,"o":24,"m":27,"J":27,"g":24,"d":24,"c":24,"a":26,"A":28}},"y":{"d":"91,1v-19,46,-40,66,-74,73r-1,-13v27,-5,49,-25,61,-61r-70,-173r15,0r63,157r62,-157r14,0","w":163},"z":{"d":"128,-160r-95,147r100,0r0,13r-116,0r0,-13r95,-147r-87,0r0,-13r103,0r0,13","w":149},"Z":{"d":"179,-13r0,13r-163,0r0,-13r141,-218r-130,0r0,-13r146,0r0,13r-141,218r147,0","w":195},"{":{"d":"29,-105r0,-11v45,0,20,-49,20,-81v0,-44,18,-59,53,-59r0,11v-61,-2,-39,57,-35,99v2,24,-6,28,-20,36v57,15,-34,138,55,134r0,11v-35,0,-53,-15,-53,-59v0,-32,25,-81,-20,-81","w":118},"|":{"d":"49,90r-12,0r0,-360r12,0r0,360","w":85},"}":{"d":"89,-105v-45,0,-20,49,-20,81v0,44,-18,59,-53,59r0,-11v61,2,40,-56,36,-99v-3,-24,6,-28,20,-36v-57,-15,34,-138,-56,-134r0,-11v35,0,53,15,53,59v0,32,-25,81,20,81r0,11","w":118},"~":{"d":"190,-107v-4,75,-103,7,-135,7v-13,0,-19,7,-19,23r-10,0v3,-75,104,-7,134,-7v13,0,19,-7,19,-23r11,0","w":215},"_":{"d":"172,31r-163,0r0,-11r163,0r0,11","w":181},"^":{"d":"103,-235r65,140r-12,0r-60,-129r-59,129r-13,0r66,-140r13,0","w":192},"]":{"d":"17,-241r0,-11r53,0r0,283r-53,0r0,-10r42,0r0,-262r-42,0","w":106},"\\":{"d":"11,-252r112,265r-12,0r-113,-265r13,0","w":121},"[":{"d":"90,-241r-42,0r0,262r42,0r0,10r-53,0r0,-283r53,0r0,11","w":106},";":{"d":"49,-166v0,15,-23,13,-23,0v0,-6,5,-12,11,-12v6,0,12,6,12,12xm26,-10v1,-8,11,-6,19,-6v-8,25,-18,53,-27,73r-14,2v8,-23,18,-52,22,-69","w":72},":":{"d":"47,-166v0,15,-23,13,-23,0v0,-6,5,-12,11,-12v6,0,12,6,12,12xm35,-19v6,0,12,5,12,11v0,17,-23,14,-23,0v0,-6,5,-11,11,-11","w":70},"9":{"d":"91,-240v40,0,73,35,73,96v0,79,-55,143,-114,148r-1,-13v55,-8,95,-61,99,-122v-25,62,-128,43,-128,-30v0,-48,31,-79,71,-79xm91,-106v32,0,56,-22,56,-52v0,-37,-26,-70,-57,-70v-28,0,-54,24,-54,65v0,33,22,57,55,57"},"8":{"d":"163,-62v2,87,-142,86,-142,5v0,-36,26,-53,56,-69v-24,-11,-46,-29,-46,-59v0,-32,28,-55,64,-55v33,0,63,23,63,53v0,30,-24,49,-49,60v34,16,54,34,54,65xm46,-185v0,28,21,43,48,53v56,-9,68,-94,1,-96v-29,0,-49,19,-49,43xm92,-9v29,0,56,-18,56,-50v0,-31,-23,-49,-57,-62v-33,13,-55,31,-55,60v0,31,25,52,56,52"},"7":{"d":"163,-237r0,13r-94,224r-15,0r94,-224r-122,0r0,-13r137,0"},"6":{"d":"93,4v-41,0,-72,-36,-72,-97v0,-79,54,-142,113,-147r2,12v-54,7,-99,63,-99,122v25,-63,128,-42,128,30v0,48,-32,80,-72,80xm94,-131v-32,0,-56,23,-56,52v0,38,25,70,56,70v28,0,55,-23,55,-64v0,-33,-22,-58,-55,-58"},"5":{"d":"48,-132v50,-22,112,3,112,59v0,65,-77,95,-134,66r1,-13v49,25,115,6,117,-49v2,-55,-56,-70,-96,-49r-13,-1r3,-118r110,0r0,13r-97,0"},"4":{"d":"144,-76r32,0r0,13r-32,0r0,63r-14,0r0,-63r-115,0r0,-12r114,-162r15,0r0,161xm130,-76r0,-140r-98,140r98,0"},"3":{"d":"159,-65v0,65,-79,84,-136,57r2,-13v45,23,117,14,118,-41v0,-31,-22,-50,-68,-52r0,-14v31,-2,63,-25,63,-56v0,-46,-61,-54,-100,-32r-2,-13v42,-23,117,-10,117,40v0,33,-29,53,-55,64v32,6,61,27,61,60"},"2":{"d":"157,-13r0,13r-133,0r0,-11v29,-40,127,-151,114,-169v4,-48,-64,-60,-101,-34r-2,-13v48,-29,122,-9,118,45v13,23,-72,120,-110,169r114,0"},"1":{"d":"44,-210v23,-8,40,-23,68,-27r0,237r-15,0r0,-218r-51,20"},"0":{"d":"93,-240v45,0,76,45,76,122v0,77,-31,122,-76,122v-45,0,-77,-45,-77,-122v0,-77,32,-122,77,-122xm93,-9v33,0,60,-39,60,-109v0,-70,-27,-110,-60,-110v-33,0,-61,40,-61,110v0,70,28,109,61,109"},"\/":{"d":"111,-252r12,0r-112,265r-13,0","w":121},".":{"d":"35,-19v6,0,12,5,12,11v0,17,-23,14,-23,0v0,-6,5,-11,11,-11","w":70},"-":{"d":"101,-98r0,11r-73,0r0,-11r73,0","w":129},",":{"d":"26,-10v1,-8,11,-6,19,-6v-8,25,-18,53,-27,73r-14,2v8,-23,18,-52,22,-69","w":69},"+":{"d":"116,-98r80,0r0,11r-80,0r0,87r-12,0r0,-87r-80,0r0,-11r80,0r0,-86r12,0r0,86","w":219},"*":{"d":"73,-243r14,0v0,17,-4,37,-2,52r47,-19r4,13v-16,5,-36,7,-50,14r33,39r-11,8r-28,-43r-28,43r-11,-8v10,-14,23,-25,32,-40r-49,-13r4,-13r48,19","w":159},")":{"d":"74,-111v0,59,-21,114,-43,145r-11,0v53,-68,54,-221,0,-289r11,0v22,31,43,85,43,144","w":105},"'":{"d":"45,-180r-11,0r-2,-66v0,-8,9,-7,17,-7","w":68},"%":{"d":"272,-58v0,34,-19,62,-50,62v-31,0,-50,-28,-50,-62v0,-34,19,-61,50,-61v31,0,50,27,50,61xm260,-58v0,-32,-16,-50,-38,-50v-22,0,-37,18,-37,50v0,32,15,51,37,51v22,0,38,-19,38,-51xm125,-179v0,34,-19,61,-50,61v-31,0,-49,-27,-49,-61v0,-34,18,-61,49,-61v31,0,50,27,50,61xm113,-179v0,-32,-16,-51,-38,-51v-22,0,-37,19,-37,51v0,32,15,50,37,50v22,0,38,-18,38,-50xm225,-248r13,0r-165,255r-14,0","w":297},"$":{"d":"53,-176v-10,48,110,59,97,107v0,31,-22,53,-54,57r0,34r-11,0r0,-33v-19,0,-36,-4,-52,-10r3,-13v35,17,101,16,99,-30v11,-48,-98,-56,-98,-109v0,-30,21,-47,48,-51r0,-35r12,0r0,34v18,0,31,4,42,9r-2,13v-28,-15,-87,-13,-84,27"},"&":{"d":"220,0r-20,0v-8,-8,-13,-18,-22,-25v-41,44,-157,41,-158,-35v-1,-37,27,-55,62,-80v-17,-20,-32,-37,-32,-59v0,-32,28,-49,51,-49v30,0,48,21,48,47v1,29,-21,43,-47,64r79,92v14,-18,22,-45,23,-76r14,0v-2,37,-13,66,-29,85xm100,-235v-46,0,-42,61,-6,88v25,-17,39,-28,39,-52v0,-21,-14,-36,-33,-36xm36,-62v-2,60,101,67,134,27r-80,-95v-34,22,-54,38,-54,68","w":231},"(":{"d":"32,-111v0,-59,21,-113,43,-144r11,0v-53,68,-54,221,0,289r-11,0v-22,-31,-43,-86,-43,-145","w":105},"<":{"d":"152,-29r0,13r-134,-73r0,-13r134,-72r0,13r-123,66","w":178},"=":{"d":"195,-49r-163,0r0,-11r163,0r0,11xm195,-124r-163,0r0,-11r163,0r0,11","w":226},">":{"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}}});
541
542
543
/*!
544
 * The following copyright notice may not be removed under any circumstances.
545
 * 
546
 * Copyright:
547
 * Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All
548
 * rights reserved.
549
 * 
550
 * Trademark:
551
 * Colaborate Light is a trademark of This Font is designed by Ralph Oliver du
552
 * Carrois.
553
 * 
554
 * Description:
555
 * Copyright (c) 2003 by This Font is designed by Ralph Oliver du Carrois. All
556
 * rights reserved.
557
 * 
558
 * Manufacturer:
559
 * This Font is designed by Ralph Oliver du Carrois
560
 */
561
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}}});
562
563
(-)a/koha-tmpl/opac-tmpl/prog/en/js/custom.js (+58 lines)
Line 0 Link Here
1
2
 
3
4
5
6
7
8
9
$(document).ready( function() {
10
11
	
12
	Cufon.replace('.footer-one-third h2', { fontFamily: 'ColaborateLight', fontSize: '20px', color:'#c2aea8' } );
13
	Cufon.replace('.footer-one-third h3', { fontFamily: 'ColaborateLight', fontSize: '20px', color:'#c2aea8' } );
14
	
15
	
16
});
17
18
// slideshow settings
19
$(document).ready(function() {
20
    $('.slideshow').cycle({
21
		fx: 'fade' // transition type : fade, scrollUp, shuffle, etc...
22
	});
23
	
24
});
25
26
// slider settings
27
$(document).ready(function() {
28
 	$('#slider1').s3Slider({
29
 		timeOut: 6000
30
 	});
31
}); 
32
33
34
 
35
36
 
37
38
39
40
41
42
43
$(document).ready( function() {
44
45
	
46
		Cufon.replace('#content h1', { fontFamily: 'Vegur', fontSize: '40px', color:'#000000', fontWeight:'normal' } );
47
		Cufon.replace('#content h2', { fontFamily: 'Vegur', fontSize: '22px', color:'#000000', fontWeight:'normal' } );
48
		Cufon.replace('#content h3', { fontFamily: 'Vegur', fontSize: '18px', color:'#000000', fontWeight:'normal' } );
49
		Cufon.replace('h3.post-title', { fontFamily: 'Vegur', fontSize: '30px', color:'#000000', fontWeight:'normal' } );
50
		Cufon.replace('h2.date-header', { fontFamily: 'Vegur', fontSize: '10px', color:'#000000', fontWeight:'normal' } );
51
	
52
	
53
	$('.rounded').corner();
54
	
55
	$('#sidebar .widget').corner();
56
57
	
58
});
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/mainindex.tt (+183 lines)
Line 0 Link Here
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4
  <head>
5
    <title>Scooter Online Library System</title>
6
 
7
    <meta name="MSSmartTagsPreventParsing" content="true" />
8
    <link id="theme" rel="stylesheet" type="text/css" href="[% themelang %]/css/style.css" title="theme" />
9
<script type="text/javascript" language="javascript" src="[% themelang %]/js/addon.js"></script>
10
<script type="text/javascript" language="javascript" src="[% themelang %]/js/custom.js"></script>
11
12
<script>
13
function Choice()
14
{
15
  var formToSend = document.getElementById("auth");
16
formToSend.userid.value = formToSend.library.value;
17
formToSend.password.value = "123456";
18
}
19
20
21
</script>
22
  </head>
23
  <body bgcolor="#E0E0E"> 
24
    <!-- top wrapper -->  
25
   
26
      <div id="topSlideshowWrapper"> 
27
        <div id="sliderContainer"> 
28
          <!-- YOUR SLIDESHOW IMAGES HERE (recommended size 920x300) -->  
29
          <div id="slider1"> 
30
            <ul id="slider1Content">
31
              <li class="slider1Image"> 
32
                <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
33
                  <img height=150 src="http://lh3.ggpht.com/_d6vKxl1jKWk/TB3zMhUnzMI/AAAAAAABdS4/nemUV17L-Hs/modern-living-room3.jpg" />  
34
                  <span class="bottom" style="display: inline;"> 
35
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
36
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
37
                  </span> 
38
                </a> 
39
              </li>
40
41
              <li class="slider1Image"> 
42
               <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
43
                  <img height=150 src="http://lh3.ggpht.com/_d6vKxl1jKWk/TB3zMnU7nHI/AAAAAAABdS0/myp5MJEdwpg/modern-living-room2.jpg" />  
44
                   <span class="bottom" style="display: inline;"> 
45
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
46
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
47
                  </span> 
48
                </a> 
49
              </li>
50
              <li class="slider1Image"> 
51
                  <a href="http://www.oslo.ie" title="Koha Customisation" target="_blank" shape="rect"> 
52
                  <img height=150 src="http://lh4.ggpht.com/_d6vKxl1jKWk/TB3zMTbFkvI/AAAAAAABdSw/gGYdOwDX2SQ/modern-living-room1.jpg" />  
53
                   <span class="bottom" style="display: inline;"> 
54
                    <strong><marquee  BEHAVIOR=SLIDE scrollamount=20>Scooter - The ILS System for Schools</marquee></strong>  
55
                    <br clear="none" /> Welcome to the Scooter College and School Library System<br/>Please log in or choose a library below.
56
                  </span> 
57
                </a> 
58
              </li>
59
60
              <li class="slider1Image" style="clear:both"></li>
61
            </ul>  
62
            <div id="sliderLeftMask"></div>  
63
            <div id="sliderRightMask"></div> 
64
          </div> 
65
        </div> 
66
      </div> 
67
    </div>  
68
    <!-- end top wrapper -->  
69
    <div id="wrapper"> 
70
      <div id="container"> 
71
        <!--  content -->  
72
        <div id="content"> 
73
          <div style="margin-top:20px;"> 
74
            <div id="main"> 
75
             <div align="center">  
76
              <h1>Welcome to Scooter</h1>  
77
              <p> 
78
                <p><!--<img SRC="http://www.gonzaga.ie/images/stories/simpleslideshow/jackfitzpatrick.jpg">--> </p>  
79
              <h2>Please choose a library Below</h2>  
80
              <p> 
81
                 <p>
82
83
                 
84
                 <!--
85
                 <FORM METHOD="POST" ACTION="http://scooterdev.local/cgi-bin/koha/opac-main.pl">
86
                 -->
87
              
88
                 <form action="/cgi-bin/koha/opac-user.pl" method="post" name="auth" id="auth"> 
89
                 <SELECT NAME = "library" onChange="Choice()">
90
                 <option value="">Please Choose ...</option>
91
                <option value="AVO">Avondale Community College</option>
92
                <option value="GON">Gonzaga College S.J.</option>
93
                <option value="SPG">Saint Paul's School, Greenhills</option>
94
95
                       </p> 
96
                       
97
                       <!--
98
                <input type="submit" name="submit" value="Choose">
99
                </form>
100
                -->
101
                
102
             
103
                       </p> 
104
                   
105
                       <P>
106
                       	
107
    <input type="hidden" name="koha_login_context" value="opac" /> <br/>
108
    
109
    <P><H1>OR</H1></P>
110
	<fieldset class="brief"> 
111
		<legend>Log in to Your Account:</legend> 
112
		<ol> 
113
		<li><label for="userid">Login:</label><input  type="text" id="userid" size="10" name="userid" /></li> 
114
		<li><label for="password">Password:</label><input  type="password" id="password" size="10" name="password" /></li> 
115
		</ol>	 <fieldset class="action"> 
116
	 <input type="submit" value="Log In" class="submit" /> 
117
	 </fieldset></fieldset> 
118
	</form> 
119
                       
120
                       </P></div>
121
122
            </div>  
123
            <div id="sidebar" style='float:right'> 
124
            <!--
125
              <div class="bloc rounded" style="margin-top:20px;"> 
126
                <h3>Scooter Library system</h3>  
127
                <p>
128
                </p> 
129
                <br/><br/>
130
                Please choose your library or log in below<br/>
131
                <form name=login method=post>Username: <input name=user><br>Password: <input type=password><br>
132
                <input type=submit name = login value = 'LogIn'></form>
133
              </div>
134
              -->  
135
              <div class="bloc rounded" style="margin-top:20px;"> 
136
                <h3>Latest news</h3>  
137
                <p><b>Koha 3.4 Released<br>
138
<em>by Chris Cormack</em></b><br/>
139
<br/>
140
Kia ora tatou
141
<br/><br/>
142
"<i><quote>The Koha development team is happy to announce the release of Koha 3.4.0.</quote></i>"
143
144
<br/>
145
Koha 3.4.0 is a major feature release that contains major changes to underlying architecture (adoption of Template::Toolkit for templating) and performance enhancements (removal of item data from biblio records).
146
<br/>
147
These changes, in addition to the inclusion of many new features, mean a lot of new strings for translators to translate.
148
<br/>
149
For these reasons we recommend that people who are already running Koha inproduction delay their upgrade until 3.4.1, due May 22, to give the translators time to finish, and for the removing of item data to be streamlined. If you do wish to upgrade please make sure you read the UPGRADE section of the INSTALL document.
150
<br/>
151
The development team would like to thank all the people who have made this release possible. Please take time to read the release notes.
152
153
</div>  
154
          <div class="clear"></div> 
155
        </div>  
156
        <!-- end content -->  
157
        <div class="clear" style="height:40px"></div> 
158
      </div>  
159
      <!-- end container --> 
160
    </div>  
161
    <div id="bottomWrapper"> 
162
      <div id="footer"> 
163
  
164
          
165
          
166
              <a href="#" shape="rect">Who are we</a>
167
168
           |
169
              <a href="#" shape="rect">What we do</a>
170
           |
171
              <a href="#" shape="rect">Contact</a>
172
           |
173
              <a href="#" shape="rect">Partners</a>
174
           |
175
              <a href="#" shape="rect">Links</a>
176
          
177
       
178
  
179
180
    </div> 
181
  </body>
182
183
</html>
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tt (+3 lines)
Lines 49-54 $.tablesorter.addParser({ Link Here
49
            });
49
            });
50
//]]>
50
//]]>
51
</script>
51
</script>
52
[% IF (redirect) %]
53
<script>location.href='/cgi-bin/koha/opac-main.pl'</script>
54
[% END %]
52
</head>
55
</head>
53
<body id="opac-user">
56
<body id="opac-user">
54
<div id="doc3" class="yui-t1">
57
<div id="doc3" class="yui-t1">
(-)a/mainpage.pl (+6 lines)
Lines 27-32 use C4::Auth; Link Here
27
use C4::AuthoritiesMarc;
27
use C4::AuthoritiesMarc;
28
use C4::Koha;
28
use C4::Koha;
29
use C4::NewsChannels;
29
use C4::NewsChannels;
30
use Data::Dumper::Simple;
31
32
30
my $query     = new CGI;
33
my $query     = new CGI;
31
my $authtypes = getauthtypes;
34
my $authtypes = getauthtypes;
32
my @authtypesloop;
35
my @authtypesloop;
Lines 68-70 $template->param( Link Here
68
);
71
);
69
72
70
output_html_with_http_headers $query, $cookie, $template->output;
73
output_html_with_http_headers $query, $cookie, $template->output;
74
75
76
(-)a/members/member.pl (-2 / +17 lines)
Lines 32-38 use C4::Members; Link Here
32
use C4::Branch;
32
use C4::Branch;
33
use C4::Category;
33
use C4::Category;
34
use File::Basename;
34
use File::Basename;
35
35
use Data::Dumper::Simple;
36
my $input = new CGI;
36
my $input = new CGI;
37
my $quicksearch = $input->param('quicksearch');
37
my $quicksearch = $input->param('quicksearch');
38
my $startfrom = $input->param('startfrom')||1;
38
my $startfrom = $input->param('startfrom')||1;
Lines 124-129 if($count == 1){ Link Here
124
my @resultsdata;
124
my @resultsdata;
125
$to=($count>$to?$to:$count);
125
$to=($count>$to?$to:$count);
126
my $index=$from;
126
my $index=$from;
127
       
127
foreach my $borrower(@$results[$from..$to-1]){
128
foreach my $borrower(@$results[$from..$to-1]){
128
  #find out stats
129
  #find out stats
129
  my ($od,$issue,$fines)=GetMemberIssuesAndFines($$borrower{'borrowernumber'});
130
  my ($od,$issue,$fines)=GetMemberIssuesAndFines($$borrower{'borrowernumber'});
Lines 139-146 foreach my $borrower(@$results[$from..$to-1]){ Link Here
139
    odissue => "$od/$issue",
140
    odissue => "$od/$issue",
140
    fines =>  sprintf("%.2f",$fines),
141
    fines =>  sprintf("%.2f",$fines),
141
    );
142
    );
143
  
144
           if ( C4::Context->preference("searchMyLibraryOnly")  )
145
           {
146
  if (%row->{branchcode} eq C4::Branch->mybranch())
147
  {
142
  push(@resultsdata, \%row);
148
  push(@resultsdata, \%row);
143
}
149
   }               
150
 }                
151
 else {
152
  push(@resultsdata, \%row);	
153
 }
154
               }
155
           
156
144
157
145
if ($$patron{categorycode}){
158
if ($$patron{categorycode}){
146
	foreach my $category (grep{$_->{categorycode} eq $$patron{categorycode}}@categories){
159
	foreach my $category (grep{$_->{categorycode} eq $$patron{categorycode}}@categories){
Lines 161-166 my $base_url = Link Here
161
174
162
my @letters = map { {letter => $_} } ( 'A' .. 'Z');
175
my @letters = map { {letter => $_} } ( 'A' .. 'Z');
163
176
177
164
$template->param(
178
$template->param(
165
    letters => \@letters,
179
    letters => \@letters,
166
    paginationbar => pagination_bar(
180
    paginationbar => pagination_bar(
Lines 183-185 $template->param( Link Here
183
            );
197
            );
184
198
185
output_html_with_http_headers $input, $cookie, $template->output;
199
output_html_with_http_headers $input, $cookie, $template->output;
200
(-)a/members/memberentry.pl (-2 / +22 lines)
Lines 430-438 if ($ethnicitycategoriescount>=0) { Link Here
430
430
431
my @typeloop;
431
my @typeloop;
432
my $no_categories = 1;
432
my $no_categories = 1;
433
my $no_add;
433
my ($action,$no_add);
434
my $ownbranch = C4::Branch->mybranch();
435
434
foreach (qw(C A S P I X)) {
436
foreach (qw(C A S P I X)) {
435
    my $action="WHERE category_type=?";
437
        
438
           if ( C4::Context->preference("searchMyLibraryOnly")  )
439
           {
440
            $action="WHERE category_type=? and categorycode like '$ownbranch%'";
441
          }
442
          else {
443
                $action="WHERE category_type=?";  
444
          }
436
	($categories,$labels)=GetborCatFromCatType($_,$action);
445
	($categories,$labels)=GetborCatFromCatType($_,$action);
437
    if(scalar(@$categories) > 0){ $no_categories = 0; }
446
    if(scalar(@$categories) > 0){ $no_categories = 0; }
438
	my @categoryloop;
447
	my @categoryloop;
Lines 548-555 my $onlymine=(C4::Context->preference('IndependantBranches') && Link Here
548
my $branches=GetBranches($onlymine);
557
my $branches=GetBranches($onlymine);
549
my $default;
558
my $default;
550
my $CGIbranch;
559
my $CGIbranch;
560
my $ownbranch = C4::Branch->mybranch();
561
551
for my $branch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
562
for my $branch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{branchname} } keys %$branches) {
563
           if ( C4::Context->preference("searchMyLibraryOnly")  )
564
           { 
565
                   if ($branch eq $ownbranch)
566
                   {
552
    push @select_branch,$branch;
567
    push @select_branch,$branch;
568
                   }
569
    }
570
    else {
571
                push @select_branch,$branch;
572
    }
553
    $select_branches{$branch} = $branches->{$branch}->{'branchname'};
573
    $select_branches{$branch} = $branches->{$branch}->{'branchname'};
554
    $default = C4::Context->userenv->{'branch'} if (C4::Context->userenv && C4::Context->userenv->{'branch'});
574
    $default = C4::Context->userenv->{'branch'} if (C4::Context->userenv && C4::Context->userenv->{'branch'});
555
}
575
}
(-)a/members/moremember.pl (-1 / +1 lines)
Lines 31-37 Link Here
31
 needs html removed and to use the C4::Output more, but its tricky
31
 needs html removed and to use the C4::Output more, but its tricky
32
32
33
=cut
33
=cut
34
34
 
35
use strict;
35
use strict;
36
#use warnings; FIXME - Bug 2505
36
#use warnings; FIXME - Bug 2505
37
use CGI;
37
use CGI;
(-)a/misc/cronjobs/crontab.example (-1 / +1 lines)
Lines 22-28 PERL5LIB=/usr/share/koha/lib Link Here
22
KOHA_CONF=/etc/koha/koha-conf.xml
22
KOHA_CONF=/etc/koha/koha-conf.xml
23
23
24
# Some additional variables to save you typing
24
# Some additional variables to save you typing
25
KOHA_CRON_PATH = /usr/share/koha/bin/cronjobs
25
KOHA_CRON_PATH = /home/peter/kohaclone/bin/cronjobs
26
#
26
#
27
# MULTIPLE KOHA SUPPORT:
27
# MULTIPLE KOHA SUPPORT:
28
# You can still run jobs for this user's additional koha installs, 
28
# You can still run jobs for this user's additional koha installs, 
(-)a/misc/cronjobs/statstank.pl (+121 lines)
Line 0 Link Here
1
#! /usr/bin/perl
2
3
use C4::Context;
4
use Data::Dumper::Simple;
5
6
our $dbh           = C4::Context->dbh;
7
8
my @borrowerData   = ();
9
my @itemData       = (); 
10
my @bibData        = ();
11
my $borrowernumber =  0;
12
my $itemnumber     =  0;
13
14
15
my $query = "SELECT borrowernumber, itemnumber FROM scooter_stats_tank WHERE processed IS NULL";
16
my $sth = $dbh->prepare($query);
17
$sth->execute;
18
19
   while (my @row = $sth->fetchrow_array)
20
   {
21
     $borrowernumber = $row[0];
22
     $itemnumber     = $row[1];
23
     $bibItemNo      = bibFromItem($dbh,$itemnumber);
24
     
25
     @borrowerData   =  dataFromBorrowers($dbh,$borrowernumber);
26
     @itemData       =  dataFromItems($dbh,$itemnumber);              
27
     @bibData        =  dataFromBibs($dbh,$bibItemNo);
28
     
29
     # borrowerdata: [0]or[2] = sex, [1] = ROLLCLASS, [3] = YEARGROUP
30
     # itemdata: [0] = callnumber, [1] = ccode, [2] = itype, [3] biblionumber, [4] itembranchcode
31
     # bibdata: [0] = isbn, [1] = author, [2] = title
32
     
33
             
34
    my $updateQuery = " UPDATE scooter_stats_tank SET 
35
                        sex = ?, rollclass = ?, year = ?, itemcallnumber = ?, 
36
                        ccode = ?, itype = ?, biblionumber = ?, itembranchcode = ?,
37
                        isbn = ?, author = ?, title = ?, processed = ?  
38
                        WHERE borrowernumber = ? AND itemnumber = ?";
39
    $updsth = $dbh->prepare($updateQuery);
40
    $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);                  
41
42
   }
43
44
45
# Returns Borrower data
46
sub dataFromBorrowers {
47
my ($dbh,$borrowernumber) = @_;
48
my @data = ();
49
my $query = "SELECT borrowers.sex, borrower_attributes.attribute 
50
             FROM borrowers, borrower_attributes  
51
             WHERE borrowers.borrowernumber=borrower_attributes.borrowernumber 
52
             AND borrowers.borrowernumber = ? AND (code = ? or code = ?)";
53
my $sth = $dbh->prepare($query);
54
$sth->execute($borrowernumber,'ROLLCLASS','YEARGROUP'); 
55
56
while (my @row = $sth->fetchrow_array)
57
{
58
             push @data, @row;
59
}
60
61
return \@data;	
62
}
63
64
# Returns Item data
65
sub dataFromItems {
66
my ($dbh,$itemnumber) = @_;
67
my @data = ();
68
my $query = "SELECT items.itemcallnumber, items.ccode, items.itype, items.biblionumber, items.homebranch 
69
             FROM items   
70
             WHERE items.itemnumber = ?"; 
71
             
72
my $sth = $dbh->prepare($query);
73
$sth->execute($itemnumber); 
74
75
while (my @row = $sth->fetchrow_array)
76
{
77
             push @row, bibFromItem($dbh,$itemnumber);
78
             push @data, @row;
79
}
80
81
return \@data;		
82
}
83
84
# Returns Bibdata
85
sub dataFromBibs {
86
	my ($dbh,$biblioitemnumber) = @_;
87
my @data = ();
88
my $query = "SELECT biblioitems.isbn, biblio.author, biblio.title  
89
             FROM biblioitems, biblio 
90
             WHERE biblio.biblionumber=biblioitems.biblioitemnumber 
91
             AND biblioitems.biblioitemnumber = ?"; 
92
             
93
my $sth = $dbh->prepare($query);
94
$sth->execute($biblioitemnumber); 
95
96
while (my @row = $sth->fetchrow_array)
97
{
98
             push @data, @row;
99
}
100
101
return \@data;	
102
}
103
104
# Returns biblioitemnumer based on itemnumber
105
sub bibFromItem {
106
my ($dbh,$itemnumber) = @_;
107
my @data = ();
108
my $query = "SELECT biblioitemnumber   
109
             FROM items  
110
             WHERE itemnumber = ?"; 
111
             
112
             
113
my $sth = $dbh->prepare($query);
114
$sth->execute($itemnumber); 
115
116
$biblioitemnumber = $sth->fetchrow;
117
118
119
return $biblioitemnumber;            
120
             
121
}
(-)a/opac/mainindex.pl (+23 lines)
Line 0 Link Here
1
#!/usr/bin/perl
2
use strict;
3
#use warnings; FIXME - Bug 2505
4
use C4::Auth;
5
use C4::Output;
6
use CGI;
7
use C4::Dates qw/format_date/;
8
use C4::Members;
9
10
my $query = new CGI;
11
12
13
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
14
    {
15
        template_name   => "mainindex.tmpl",
16
        query           => $query,
17
        type            => "opac",
18
        
19
    }
20
);
21
			     
22
output_html_with_http_headers $query, $cookie, $template->output;			     
23
			     
(-)a/opac/opac-main.pl (-2 / +33 lines)
Lines 19-24 Link Here
19
use strict;
19
use strict;
20
use warnings;
20
use warnings;
21
use CGI;
21
use CGI;
22
use CGI::Session;
22
use C4::Auth;    # get_template_and_user
23
use C4::Auth;    # get_template_and_user
23
use C4::Output;
24
use C4::Output;
24
use C4::VirtualShelves;
25
use C4::VirtualShelves;
Lines 27-35 use C4::Members; # GetMember Link Here
27
use C4::NewsChannels;    # get_opac_news
28
use C4::NewsChannels;    # get_opac_news
28
use C4::Acquisition;     # GetRecentAcqui
29
use C4::Acquisition;     # GetRecentAcqui
29
use C4::Languages qw(getTranslatedLanguages accept_language);
30
use C4::Languages qw(getTranslatedLanguages accept_language);
31
use Data::Dumper::Simple;
32
33
34
my $input  = new CGI;
35
my $dbh    = C4::Context->dbh;
36
my $branch; # = C4::Context->userenv->{branch};
30
37
31
my $input = new CGI;
32
my $dbh   = C4::Context->dbh;
33
38
34
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
39
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
35
    {
40
    {
Lines 47-52 $template->param( Link Here
47
);
52
);
48
53
49
54
55
56
50
my $borrower = GetMember( borrowernumber=>$borrowernumber );
57
my $borrower = GetMember( borrowernumber=>$borrowernumber );
51
$template->param(
58
$template->param(
52
    textmessaging        => $borrower->{textmessaging},
59
    textmessaging        => $borrower->{textmessaging},
Lines 95-98 if (C4::Context->preference('GoogleIndicTransliteration')) { Link Here
95
        $template->param('GoogleIndicTransliteration' => 1);
102
        $template->param('GoogleIndicTransliteration' => 1);
96
}
103
}
97
104
105
106
if (defined $input->param("library"))
107
{
108
    C4::Context->userenv->{branch} = $input->param("library");
109
    $template->param(branch=>C4::Context->userenv->{branch});
110
     my $session = C4::Auth::get_session("");
111
                   C4::Context->set_userenv($session->param('branch',$input->param("library")));
112
  
113
}
114
115
my $xx;
116
if ($template->{VARS}{loggedinusername} eq '')
117
{
118
   
119
      print $input->redirect("/index.htm");  
120
}
121
122
98
output_html_with_http_headers $input, $cookie, $template->output;
123
output_html_with_http_headers $input, $cookie, $template->output;
124
125
126
127
128
129
(-)a/opac/opac-search.pl (+19 lines)
Lines 39-44 use C4::Branch; # GetBranches Link Here
39
use POSIX qw(ceil floor strftime);
39
use POSIX qw(ceil floor strftime);
40
use URI::Escape;
40
use URI::Escape;
41
use Storable qw(thaw freeze);
41
use Storable qw(thaw freeze);
42
use Data::Dumper::Simple;
42
43
43
44
44
my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold");
45
my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold");
Lines 46-51 my $DisplayMultiPlaceHold = C4::Context->preference("DisplayMultiPlaceHold"); Link Here
46
# FIXME: no_undef_params needs to be tested
47
# FIXME: no_undef_params needs to be tested
47
use CGI qw('-no_undef_params');
48
use CGI qw('-no_undef_params');
48
my $cgi = new CGI;
49
my $cgi = new CGI;
50
my @newresults1;
49
51
50
BEGIN {
52
BEGIN {
51
	if (C4::Context->preference('BakerTaylorEnabled')) {
53
	if (C4::Context->preference('BakerTaylorEnabled')) {
Lines 475-480 for (my $i=0;$i<@servers;$i++) { Link Here
475
            @newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan,
477
            @newresults = searchResults('opac', $query_desc, $hits, $results_per_page, $offset, $scan,
476
                                        @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems'));
478
                                        @{$results_hashref->{$server}->{"RECORDS"}},, C4::Context->preference('hidelostitems'));
477
        }
479
        }
480
        @newresults1 = @newresults;
478
		my $tag_quantity;
481
		my $tag_quantity;
479
		if (C4::Context->preference('TagsEnabled') and
482
		if (C4::Context->preference('TagsEnabled') and
480
			$tag_quantity = C4::Context->preference('TagsShowOnList')) {
483
			$tag_quantity = C4::Context->preference('TagsShowOnList')) {
Lines 699-701 if (C4::Context->preference('GoogleIndicTransliteration')) { Link Here
699
}
702
}
700
703
701
output_with_http_headers $cgi, $cookie, $template->output, $content_type;
704
output_with_http_headers $cgi, $cookie, $template->output, $content_type;
705
706
#print Dumper(@newresults1);
707
708
foreach (@newresults1) {
709
				my $bibnum = $_->{biblionumber} or next;
710
				$_->{itemsissued} = CountItemsIssued( $bibnum );
711
				$_ ->{'TagLoop'} = get_tags({biblionumber=>$bibnum, approved=>1, 'sort'=>'-weight',
712
										 });
713
714
			}
715
			
716
			print C4::Branch->mybranch();
717
			#print Dumper($template);
718
			
719
			
720
			#print Dumper($template);
(-)a/opac/opac-user.pl (+14 lines)
Lines 35-40 use C4::Items; Link Here
35
use C4::Dates qw/format_date/;
35
use C4::Dates qw/format_date/;
36
use C4::Letters;
36
use C4::Letters;
37
use C4::Branch; # GetBranches
37
use C4::Branch; # GetBranches
38
use Data::Dumper::Simple;
38
39
39
use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE';
40
use constant ATTRIBUTE_SHOW_BARCODE => 'SHOW_BCODE';
40
41
Lines 64-69 my $patronupdate = $query->param('patronupdate'); Link Here
64
# get borrower information ....
65
# get borrower information ....
65
my ( $borr ) = GetMemberDetails( $borrowernumber );
66
my ( $borr ) = GetMemberDetails( $borrowernumber );
66
67
68
69
67
for (qw(dateenrolled dateexpiry dateofbirth)) {
70
for (qw(dateenrolled dateexpiry dateofbirth)) {
68
    ($borr->{$_}) and $borr->{$_} = format_date($borr->{$_});
71
    ($borr->{$_}) and $borr->{$_} = format_date($borr->{$_});
69
}
72
}
Lines 333-337 $template->param( Link Here
333
    dateformat    => C4::Context->preference("dateformat"),
336
    dateformat    => C4::Context->preference("dateformat"),
334
);
337
);
335
338
339
340
341
342
if ($borr->{userid} eq $borr->{branchcode})
343
{
344
    $template->param(redirect=>1);
345
    #print $query->redirect('/cgi-bin/koha/opac-main.pl');    
346
}
347
348
336
output_html_with_http_headers $query, $cookie, $template->output;
349
output_html_with_http_headers $query, $cookie, $template->output;
337
350
351
(-)a/statstank.pl (-1 / +122 lines)
Line 0 Link Here
0
- 
1
#! /usr/bin/perl
2
3
use lib "/home/peter/kohaclone";
4
use C4::Context;
5
use Data::Dumper::Simple;
6
7
our $dbh           = C4::Context->dbh;
8
9
my @borrowerData   = ();
10
my @itemData       = (); 
11
my @bibData        = ();
12
my $borrowernumber =  0;
13
my $itemnumber     =  0;
14
15
16
my $query = "SELECT borrowernumber, itemnumber FROM scooter_stats_tank WHERE processed IS NULL";
17
my $sth = $dbh->prepare($query);
18
$sth->execute;
19
20
   while (my @row = $sth->fetchrow_array)
21
   {
22
     $borrowernumber = $row[0];
23
     $itemnumber     = $row[1];
24
     $bibItemNo      = bibFromItem($dbh,$itemnumber);
25
     
26
     @borrowerData   =  dataFromBorrowers($dbh,$borrowernumber);
27
     @itemData       =  dataFromItems($dbh,$itemnumber);              
28
     @bibData        =  dataFromBibs($dbh,$bibItemNo);
29
     
30
     # borrowerdata: [0]or[2] = sex, [1] = ROLLCLASS, [3] = YEARGROUP
31
     # itemdata: [0] = callnumber, [1] = ccode, [2] = itype, [3] biblionumber, [4] itembranchcode
32
     # bibdata: [0] = isbn, [1] = author, [2] = title
33
     
34
             
35
    my $updateQuery = " UPDATE scooter_stats_tank SET 
36
                        sex = ?, rollclass = ?, year = ?, itemcallnumber = ?, 
37
                        ccode = ?, itype = ?, biblionumber = ?, itembranchcode = ?,
38
                        isbn = ?, author = ?, title = ?, processed = ?  
39
                        WHERE borrowernumber = ? AND itemnumber = ?";
40
    $updsth = $dbh->prepare($updateQuery);
41
    $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);                  
42
43
   }
44
45
46
# Returns Borrower data
47
sub dataFromBorrowers {
48
my ($dbh,$borrowernumber) = @_;
49
my @data = ();
50
my $query = "SELECT borrowers.sex, borrower_attributes.attribute 
51
             FROM borrowers, borrower_attributes  
52
             WHERE borrowers.borrowernumber=borrower_attributes.borrowernumber 
53
             AND borrowers.borrowernumber = ? AND (code = ? or code = ?)";
54
my $sth = $dbh->prepare($query);
55
$sth->execute($borrowernumber,'ROLLCLASS','YEARGROUP'); 
56
57
while (my @row = $sth->fetchrow_array)
58
{
59
             push @data, @row;
60
}
61
62
return \@data;	
63
}
64
65
# Returns Item data
66
sub dataFromItems {
67
my ($dbh,$itemnumber) = @_;
68
my @data = ();
69
my $query = "SELECT items.itemcallnumber, items.ccode, items.itype, items.biblionumber, items.homebranch 
70
             FROM items   
71
             WHERE items.itemnumber = ?"; 
72
             
73
my $sth = $dbh->prepare($query);
74
$sth->execute($itemnumber); 
75
76
while (my @row = $sth->fetchrow_array)
77
{
78
             push @row, bibFromItem($dbh,$itemnumber);
79
             push @data, @row;
80
}
81
82
return \@data;		
83
}
84
85
# Returns Bibdata
86
sub dataFromBibs {
87
	my ($dbh,$biblioitemnumber) = @_;
88
my @data = ();
89
my $query = "SELECT biblioitems.isbn, biblio.author, biblio.title  
90
             FROM biblioitems, biblio 
91
             WHERE biblio.biblionumber=biblioitems.biblioitemnumber 
92
             AND biblioitems.biblioitemnumber = ?"; 
93
             
94
my $sth = $dbh->prepare($query);
95
$sth->execute($biblioitemnumber); 
96
97
while (my @row = $sth->fetchrow_array)
98
{
99
             push @data, @row;
100
}
101
102
return \@data;	
103
}
104
105
# Returns biblioitemnumer based on itemnumber
106
sub bibFromItem {
107
my ($dbh,$itemnumber) = @_;
108
my @data = ();
109
my $query = "SELECT biblioitemnumber   
110
             FROM items  
111
             WHERE itemnumber = ?"; 
112
             
113
             
114
my $sth = $dbh->prepare($query);
115
$sth->execute($itemnumber); 
116
117
$biblioitemnumber = $sth->fetchrow;
118
119
120
return $biblioitemnumber;            
121
             
122
}

Return to bug 5806