Subversion Repositories bccarousel

Compare Revisions

Ignore whitespace Rev HEAD → Rev 1

/trunk/extension/bccarousel/ezinfo.php New file
0,0 → 1,15
<?php
class bccarouselInfo
{
function info()
{
return array(
'Name' => "<a href="http://projects.ez.no/bccarousel">BC Carousel</a>",
'Version' => "1.0.0",
'Copyright' => "Copyright (C) 2008 - 2009 <a href='http://brookinsconsulting.com/'>Brookins Consulting</a>",
'Author' => "Brookins Consulting",
'License' => "GNU General Public License v2.0 (or later)"
);
}
}
?>
trunk/extension/bccarousel/ezinfo.php Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/settings/design.ini.append.php New file
0,0 → 1,20
<? /*
 
[ExtensionSettings]
DesignExtensions[]=bccarousel
 
[JavaScriptSettings]
# List of JavaScript files to include in pagelayout
JavaScriptList[]=carousel/jquery.min.js
JavaScriptList[]=carousel/carousel_simple.js
JavaScriptList[]=carousel/jcarousel.js
 
# JavaScriptList[]=carousel/dlite.min.js
# JavaScriptList[]=calendar/jquery.js
# JavaScriptList[]=carousel/carousel.js
# JavaScriptList[]=carousel/carousel_simple.js
# JavaScriptList[]=jquery.min.js
# JavaScriptList[]=jcarousel.js
 
 
*/ ?>
trunk/extension/bccarousel/settings/design.ini.append.php Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/settings/content.ini.append.php New file
0,0 → 1,27
<? /*
 
[object]
AvailableClasses[]=carousel
AvailableClasses[]=carousel_single
AvailableClasses[]=carousel_single_kids
AvailableClasses[]=carousel_prayer
AvailableClasses[]=carousel_list
ClassDescription[carousel]=Sides: Carousel (Three items wide)
ClassDescription[carousel_single]=Sides: Carousel (One item at a time)
ClassDescription[carousel_single_kids]=Sides: Carousel Kids (One item at a time)
ClassDescription[carousel_prayer]=Sides: Carousel Prayer (Three items wide)
ClassDescription[carousel_list]=Sides: Carousel List (Flat List)
 
[embed]
AvailableClasses[]=carousel
AvailableClasses[]=carousel_single
AvailableClasses[]=carousel_single_kids
AvailableClasses[]=carousel_prayer
AvailableClasses[]=carousel_list
ClassDescription[carousel]=Sides: Carousel (Three items wide)
ClassDescription[carousel_single]=Sides: Carousel (One item at a time)
ClassDescription[carousel_single_kids]=Sides: Carousel Kids (One item at a time)
ClassDescription[carousel_prayer]=Sides: Carousel Prayer (Three items wide)
ClassDescription[carousel_list]=Sides: Carousel List (Flat List)
 
*/ ?>
trunk/extension/bccarousel/settings/content.ini.append.php Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/settings/override.ini.append.php New file
0,0 → 1,50
<?php /* #?ini charset="utf-8"?
 
[carousel_folder_embed]
Source=content/view/embed.tpl
MatchFile=embed/carousel/carousel.tpl
Subdir=templates
Match[classification]=folder
 
[carousel_prayer]
Source=content/view/embed.tpl
MatchFile=embed/carousel/carousel_prayer.tpl
Subdir=templates
# Match[class_identifier]=folder
Match[object]=-170
 
[carousel_prayer_full]
Source=node/view/full.tpl
MatchFile=full/carousel_prayer.tpl
Subdir=templates
# Match[class_identifier]=folder
Match[object]=170
 
[carousel_single_kids]
Source=content/view/embed.tpl
MatchFile=embed/carousel/carousel_single_kids.tpl
Subdir=templates
Match[classification]=carousel_single_kids
 
[carousel_single]
Source=content/view/embed.tpl
MatchFile=embed/carousel/carousel_single.tpl
Subdir=templates
Match[classification]=carousel_single
 
[carousel_list]
Source=content/view/embed.tpl
Subdir=templates
MatchFile=embed/carousel/carousel_list.tpl
# MatchFile=embed/vertically_listed_sub_items.tpl
# Match[class_identifier]=carousel
Match[class_identifier]=carousel_list
Match[object]=170
 
[carousel]
Source=content/view/embed.tpl
MatchFile=embed/carousel/carousel.tpl
Subdir=templates
Match[classification]=carousel
 
*/ ?>
/trunk/extension/bccarousel/settings/contentstructuremenu.ini.append.php New file
0,0 → 1,7
<?php /* #?ini charset="utf-8"?
 
[TreeMenu]
ShowClasses[]=carousel
ShowClasses[]=carousel_list
 
*/ ?>
/trunk/extension/bccarousel/settings/bccarousel.ini.append.php --- trunk/extension/bccarousel/settings/image.ini.append.php (revision 0) +++ trunk/extension/bccarousel/settings/image.ini.append.php (revision 1) @@ -0,0 +1,23 @@ + \ No newline at end of file
/trunk/extension/bccarousel/settings/menu.ini.append.php New file
0,0 → 1,12
<?php /* #?ini charset="utf-8"?
 
[MenuContentSettings]
# TopIdentifierList[]
TopIdentifierList[]=carousel
TopIdentifierList[]=carousel_list
 
# LeftIdentifierList[]
LeftIdentifierList[]=carousel
LeftIdentifierList[]=carousel_list
 
*/ ?>
/trunk/extension/bccarousel/settings/wrap_operator.ini.append.php New file
0,0 → 1,14
<? /* #?ini charset="utf-8"?
 
# Names of system functions that are callable through wrap_php_func
# [PHPFunctions]
# PermittedFunctionList[]=str_replace
# PermittedFunctionList[]=file_get_contents
 
# Names of callable user defined functions for wrap_user_func.
# Note that they must be defined in separate files under userfunctions directory.
[UserFunctions]
PermittedFunctionList[]=getLeadingSentences
PermittedFunctionList[]=getShortString
 
*/ ?>
/trunk/extension/bccarousel/doc/LICENSE New file
0,0 → 1,340
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
 
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
 
Preamble
 
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
 
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
 
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
 
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
 
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
 
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
 
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
 
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
 
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
 
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
 
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
 
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
 
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
 
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
 
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
 
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
 
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
 
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
 
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
 
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
 
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
 
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
 
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
 
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
 
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
 
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
 
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
 
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
 
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
 
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
 
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
 
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
 
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
 
NO WARRANTY
 
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
 
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
 
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
 
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
 
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
 
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 19yy <name of author>
 
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 
Also add information on how to contact you by electronic and paper mail.
 
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
 
Gnomovision version 69, Copyright (C) 19yy name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
 
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
 
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
 
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
 
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
 
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
trunk/extension/bccarousel/doc/LICENSE Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/doc/INSTALL --- trunk/extension/bccarousel/doc/COPYRIGHT (revision 0) +++ trunk/extension/bccarousel/doc/COPYRIGHT (revision 1) @@ -0,0 +1 @@ +Copyright © 2001-2007, Brookins Consulting, Austin, Texas (United States of America) \ No newline at end of file
/trunk/extension/bccarousel/doc/changelogs/1.0/CHANGELOG-1.0.0 New file
0,0 → 1,3
Changes for 1.0.0
 
- First public relase.
trunk/extension/bccarousel/doc/changelogs/1.0/CHANGELOG-1.0.0 Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/design/standard/override/templates/full/carousel_prayer.tpl Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/.carousel.tpl.swp Property changes : Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/carousel_list.tpl New file
0,0 → 1,38
{**
* File containing the carousel_list template
*
* @package bccarousel
* @version //autogentag//
* @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved.
* @license GPL v2 (or later)
*}{def $children = array()
$limit = 3
$offset = 0
}
{if is_set( $object_parameters.limit )}{set $limit = $object_parameters.limit}{/if}
{if is_set( $object_parameters.offset )}{set $offset = $object_parameters.offset}{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
<div id="blogroll">
<h1>{$object.name|wash()}</h1>
{if $children|count()}
{if and(eq($object.class_identifier, 'feature_list'), $object.data_map.show_images.content|eq( '1' ))}
{def $childcount = 1}
{foreach $children as $child}
{if and(gt($childcount, 1), $object.data_map.show_images.content|eq( '1' ))}<hr />{/if}
{node_view_gui view=line content_node=$child}
{set $childcount = $childcount|inc()}
{/foreach}
{else}
<ul class="class-feature-scroller-list">
{foreach $children as $child}
{node_view_gui view=line content_node=$child}
{/foreach}
</ul>
{/if}
{/if}
</div><!--end blogroll-->
/trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/carousel_single_kids.tpl New file
0,0 → 1,258
<style type="text/css">
{literal}
.feature_scroller_single {
// margin-bottom:60px;
}
.carouselContainer_single {
margin:0px;
padding:0px;
width: 208px !important;
max-width: 208px;
overflow: hidden;
}
.carouselInner_single {
margin:0px;
padding:0px;
width: 100%;
height: 100%;
visibility: hidden;
}
.bc_carousel_single {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
// text-align: center;
width: 208px !important;
max-width: 208px;
vertical-align: top;
}
.bc_carousel_single img {
display: block;
margin: 0px auto;
padding-right:7px;
}
h2.carousel_header_single {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title_single {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 11px;
// padding: 2px 8px;
text-align:left;
}
.prevBtn_single, .nextBtn_single {
cursor: pointer;
position: absolute;
margin-top: 140px;
}
.prevBtn_single {
}
.nextBtn_single {
// margin-left: 174px;
margin-left: 194px;
}
{/literal}
</style>
 
<div class="feature_scroller_single">
 
<div class="header"><h1>{$object.name|wash()}</h1></div>
<div class="inner1"><div class="inner2">
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
 
{def $children = array()
$limit = 0
$offset = 0}
 
{if is_set( $object_parameters.limit )}
{set $limit = $object_parameters.limit}
{/if}
 
{if is_set( $object_parameters.offset )}
{set $offset = $object_parameters.offset}
{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
 
{if $children|count()|gt( 0 )}
<script language="Javascript" type="text/javascript">
{literal}
// helper function, modify to handle disabling prev/next buttons
 
function preloadArrowImages() {
var img= new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-disabled.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-disabled.png";
}
preloadArrowImages();
{/literal}
{*{literal}
DOMReady(function() {
{/literal}
Carousel.init({$childrenCount}, 1, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}12000{/if}, disablePrevOrNext, 20, 50);
{literal}
addEvent(elm("prevBtn"), "click", function() { Carousel.auto_play = false; Carousel.showPrevious(); });
addEvent(elm("nextBtn"), "click", function() { Carousel.auto_play = false; Carousel.showNext(); });
addEvent(elm("prevBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn-over.png'; });
addEvent(elm("prevBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; });
addEvent(elm("nextBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn-over.png'; });
addEvent(elm("nextBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; });
});
{/literal}*}
</script>
{if gt($childrenCount,1)}<img id="prevBtn" class="prevBtn_single" src={"carousel/prevbtn.png"|ezimage()} /><img id="nextBtn" class="nextBtn_single" src={"carousel/nextbtn.png"|ezimage()} />
<div id="carouselContainer" class="carouselContainer_single">{/if}
<div id="carouselInner" class="carouselInner_single" style="vertical-align: top;">
 
{def $child=0
$child_image_url=0
$child_item_link=0
$child_item_link_text=0
$child_item_name=0
$child_item_url=0
$child_item_description=0
}
{def $maximum_height_filters=ezini( 'scroller_image', 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
{set $child_item_description=''}
{set $child_item_link=''}
{set $child_item_link_text=''}
{def $child_item_link_open=''}
{def $child_item_link_close=''}
{for 0 to sum($childrenCount,-1) as $counter}<div style="display: none;">
{set $child=$children.$counter}
{if $child.class_identifier|eq( 'a_featured_item' )}
{if $child.data_map.promo_pic.has_content}
{set $child_image_url=$child.data_map.promo_pic.value.scroller_image.url}
{elseif $child.data_map.picurl.has_content}
{set $child_image_url=$child.data_map.picurl.content}
{elseif $child.data_map.isbn.has_content}
{set $child_image_url=concat(ezini('SiteVariables','ItemPictureURLPre','content.ini'), $child.data_map.isbn.value, ezini('SiteVariables','ItemPictureURLPost','content.ini'))}
{else}
{set $child_image_url=''}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{set $child_item_link_text=$child.data_map.item_url.data_text}
{elseif $child.data_map.isbn.has_content}
{set $child_item_link=concat(ezini('SiteVariables','ISBNURLPre','content.ini'), $child.data_map.isbn.content, ezini('SiteVariables','ISBNURLPost','content.ini'))}
{else}
{set $child_item_link = ''}
{set $child_item_link_text = ''}
{/if}
{set $child_item_name=$child.data_map.name.value}
{set $child_item_description=$child.data_map.description.value}
{elseif $child.class_identifier|eq( 'one_url_link' )}
{if is_unset($user_is_external)}
{def $user_ip = server( 'remote_addr' )}
{def $proxy_ip_list = ezini( 'SiteVariables', 'ProxyIPList', 'content.ini' )}
{def $user_is_external = true}
{foreach $proxy_ip_list as $proxy_ip}
{if $user_ip|begins_with($proxy_ip)}
{set $user_is_external = false}
{break}
{/if}
{/foreach}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{set $child_item_link_text=$child.data_map.item_url.data_text}
{if is_unset($url_proxy)}
{def $url_proxy=ezini('SiteVariables','ProxySite','content.ini')|trim("'")}{*Get Proxy URL from ini settings and trim quotes*}
{/if}
{if $child.data_map.use_proxy.content}
{set $child_item_link=concat($url_proxy,$child_item_link)}
{elseif $user_is_external}
{if $child.data_map.internal_only.content}
{set $no_link = true}
{elseif $child.data_map.external_url.has_content}
{set $child_item_link=$child.data_map.external_url.content}
{set $child_item_link_text = ''}
{/if}
{/if}
{else}
{set $child_item_link = ''}
{set $child_item_link_text = ''}
{/if}
{if is_set($child.data_map.picture.value.scroller_image.url)}{set $child_image_url=$child.data_map.picture.value.scroller_image.url}{/if}
{set $child_item_name=$child.data_map.name.value}
{set $child_item_description=$child.data_map.description.value}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
</div><div class="bc_carousel_single">{$child_item_link_open}{if ne($child_image_url, '')}<img class="image" alt="" src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} align="left" />{/if}<span id="carouselInnerTitle" class="carousel_title_single">{$child_item_name}{$child_item_link_close}
<br />
{if $child_item_description|ne('')}
{* Truncate output to a maximum of $counter characters, and make sure it ends with a whole word *}
{def $counter=200}
{def $text = $child_item_description|wash()}
{while and(ne( $text|extract($counter,1) , " "), gt($counter, 0))}
{set $counter =dec( $counter )}
{/while}
<p id="carouselInnerDescription" class="carousel_description_single">
{concat($text|extract( 0, $counter ), '...')}
&nbsp;<a href="{$child_item_link}">{$child_item_link_text}</a></p>
{/if}
</span></div>
{* $child.data_map.description|attribute(show,1) *}
{*Very important to have no spaces; otherwise the margins are off *}{/for}
<script language="Javascript" type="text/javascript">
carousel_unique_namespace('carouselContainer', 'carouselInner', 'prevBtn', 'nextBtn');
setTimeout("carousel_init("+carousel_unique_id+", {$childrenCount}, 1, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if})", carousel_unique_id);
 
</script>
{else}
<p>Sorry, no featured items available</p>
{/if}
 
 
</div>
</div>
{*
<table>
<tr>
<td class="prev">
<a href="#"><img src={"images/kids/prev_yellow.gif"|ezdesign} id="prevBtn" class="prevBtn_single" alt="Previous" /></a>
<a href="#"><< Previous</a>
{if gt($childrenCount,1)}<img id="prevBtn" class="prevBtn_single" src={"carousel/prevbtn.png"|ezimage()} />{/if}
</td>
<td class="next">
<a href="#">Next >></a>
<a href="#"><img valign="absmiddle" id="nextBtn" class="nextBtn_single" src={"images/kids/next_yellow.gif"|ezdesign} alt="Next" /></a>
{if gt($childrenCount,1)}<img id="nextBtn" class="nextBtn_single" src={"carousel/nextbtn.png"|ezimage()} />{/if}
</td>
</tr>
</table>
*}
 
</div></div><!--end inner1-->
 
<div class="footer"></div>
 
</div><!--end blogroll-->
/trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/carousel.tpl New file
0,0 → 1,369
{**
* File containing the carousel template
*
* @package bccarousel
* @version //autogentag//
* @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved.
* @license GPL v2 (or later)
*}<style type="text/css">
{literal}
.carouselContainer {
margin:0px;
padding:0px;
width: 540px !important;
max-width: 540px;
overflow: hidden;
}
.carouselInner {
margin:0px;
padding:0px;
visibility: hidden;
width: 100%;
height: 100%;
}
.bc_carousel {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
text-align: center;
width: 180px !important;
max-width: 180px;
vertical-align: top;
}
.bc_carousel img {
display: block;
margin: 0px auto;
}
h2.carousel_header {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em; // 11px;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.prevBtn, .nextBtn {
cursor: pointer;
margin-top: 50px;
z-index: 1000;
position: absolute;
}
.nextBtn {
margin-left: 514px;
}
.jcarousel-container {
position: relative;
}
 
.jcarousel-clip {
z-index: 2;
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
 
.jcarousel-list {
z-index: 1;
overflow: hidden;
position: relative;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
 
.jcarousel-list li,
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite loops. */
width: 142px;
height: 207px;
}
.jcarousel-next {
z-index: 3;
display: none;
}
 
.jcarousel-prev {
z-index: 3;
display: none;
}
.jcarousel-skin-3wide .jcarousel-container {
}
 
.jcarousel-skin-3wide .jcarousel-container-horizontal {
// width: 450px;
padding: 20px 40px;
}
 
.jcarousel-skin-3wide .jcarousel-container-vertical {
width: 75px;
height: 245px;
padding: 20px 20px;
}
 
.jcarousel-skin-3wide .jcarousel-clip-horizontal {
// width: 450px;
// height: 300px;
}
 
.jcarousel-skin-3wide .jcarousel-clip-vertical {
width: 142px;
height: 197px;
}
 
.jcarousel-skin-3wide .jcarousel-item {
width: 142px;
height: 225px;
}
 
.jcarousel-skin-3wide .jcarousel-item-horizontal {
margin-right: 10px;
}
 
.jcarousel-skin-3wide .jcarousel-item-vertical {
margin-bottom: 10px;
}
 
.jcarousel-skin-3wide .jcarousel-item-placeholder {
background: #fff;
color: #000;
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal {
position: absolute;
top: 93px;
right: 5px;
width: 27px;
height: 24px;
cursor: pointer;
{/literal}
background: transparent url({"carousel/nextbtn.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal:hover {
{/literal}
background: transparent url({"carousel/nextbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal:active {
{/literal}
background: transparent url({"carousel/nextbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal,
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal:hover,
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal:active {
cursor: default;
{/literal}
background: transparent url({"carousel/nextbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal {
position: absolute;
top: 93px;
left: 5px;
width: 27px;
height: 24px;
cursor: pointer;
{/literal}
background: transparent url({"carousel/prevbtn.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal:hover {
{/literal}
background: transparent url({"carousel/prevbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal:active {
{/literal}
background: transparent url({"carousel/prevbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal,
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal:hover,
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal:active {
cursor: default;
{/literal}
background: transparent url({"carousel/prevbtn-over.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-next-vertical {
position: absolute;
bottom: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
{/literal}
background: transparent url({"carousel/next-vertical.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-next-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-3wide .jcarousel-next-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical,
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical:hover,
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
{/literal}
background: transparent url({"carousel/prev-vertical.png"|ezimage('no')}) no-repeat 0 0;
{literal}
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical,
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical:hover,
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
.jcarousel-skin-3wide li img {
width: 142px;
height: 187px;
}
.jcarousel-skin-3wide li h3 {
position: absolute;
margin-top: 197px;
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.jcarousel-skin-3wide ul li {
background-image: none;
}
{/literal}
</style>
<div class="carousel_wrapper" id="carousel_wrapper{$object.main_node_id}">
<h1>{$object.name|wash()}</h1>
{* if $object.data_map.summary.has_content}<p>{$object.data_map.summary.value}</p>{/if *}
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
{def $children = array()
$limit = 0
$offset = 0}
{if is_set( $object_parameters.limit )}
{set $limit = $object_parameters.limit}
{/if}
{if is_set( $object_parameters.offset )}
{set $offset = $object_parameters.offset}
{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
{* $children|attribute(show,1) *}
 
{if $children|count()|gt( 0 )}
{def $child=0
$child_image=''
$child_image_url=''
$child_item_link=''
$child_item_name=''
$child_item_url=''
$child_item_link=''
$child_item_link_open=''
$child_item_link_close=''
$child_item_image_class='carousel'
$child_item_ul_class_name=concat('carousel3wide',$object.main_node_id)
}
{def $maximum_height_filters=ezini( $child_item_image_class, 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
{* def $child_item_link=''}{def $child_item_link_open=''}{def $child_item_link_close='' *}
 
<ul id="{$child_item_ul_class_name}{* $object.main_node_id *}" class="jcarousel-skin-3wide">
{for 0 to sum($childrenCount,-1) as $counter}{set $child=$children.$counter}{if $child.class_identifier|eq( 'article' )}
{set $child_item_name=$child.name}
{set $child_item_name=$child.name}
{if is_set( $child.url )}
{set $child_item_link=$child.url}
{* elseif $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content *}
{else}
{set $child_item_link = ''}
{/if}
{if $child.data_map.image.has_content}
{set $child_image=$child.data_map.image.value.$child_item_image_class}
{set $child_image_url=$child_image.url}
{set $child_image_url=concat('/ezpublish/', $child_image.url)}
{* elseif $child.data_map.picurl.has_content}
{set $child_image_url=$child.data_map.picurl.content *}
{else}
{set $child_image_url=''}
{/if}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
 
<li>{if $object.data_map.show_titles.value|eq('1')}<h3>{$child_item_link_open}{$child_item_name}{$child_item_link_close}</h3>{/if}{$child_item_link_open}{if ne($child_image_url, '')}<img alt="{$child.name}" src="{$child_image_url}" {if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}</li>
{/for}
 
</ul>
<script language="Javascript" type="text/javascript">
jQuery(document).ready(function() {literal}{{/literal}
jQuery("#{$child_item_ul_class_name}{* $object.main_node_id *}").jcarousel();
{literal}}{/literal});
/*carousel_unique_namespace('carouselContainer{$object.main_node_id}', 'carouselInner', 'prevBtn', 'nextBtn');
setTimeout("carousel_init("+carousel_unique_id+", {$childrenCount}, 3, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if})", carousel_unique_id);*/
</script>
{else}
<p>Sorry, no items are currently available.</p>
{/if}
 
{* DUPLICATED! *}
 
</div><!--end carousel_wrapper{$object.main_node_id}-->
/trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/carousel_single.tpl New file
0,0 → 1,359
{**
* File containing the feature_scroller_singleh template
*
* @package bccarousel
* @version //autogentag//
* @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved.
* @license GPL v2 (or later)
*}
<style type="text/css">
{literal}
.carouselContainer_single {
margin:0px;
padding:0px;
width: 208px !important;
max-width: 208px;
overflow: hidden;
}
.carouselInner_single {
margin:0px;
padding:0px;
width: 100%;
height: 100%;
visibility: hidden;
}
.bc_carousel_single {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
text-align: center;
width: 208px !important;
max-width: 208px;
vertical-align: top;
}
.bc_carousel_single img {
display: block;
margin: 0px auto;
}
h2.carousel_header_single {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title_single {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em; // 11px;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.prevBtn_single, .nextBtn_single {
cursor: pointer;
position: absolute;
margin-top: 50px;
}
.prevBtn_single {
}
.nextBtn_single {
margin-left: 174px;
}
.jcarousel-container {
position: relative;
}
 
.jcarousel-clip {
z-index: 2;
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
 
.jcarousel-list {
z-index: 1;
overflow: hidden;
position: relative;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
 
.jcarousel-list li,
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite loops. */
width: 142px;
height: 207px;
}
.jcarousel-next {
z-index: 3;
display: none;
}
 
.jcarousel-prev {
z-index: 3;
display: none;
}
.jcarousel-skin-single .jcarousel-container {
margin-left: -12px;
}
 
.jcarousel-skin-single .jcarousel-container-horizontal {
// width: 143px;
width: 167px;
padding: 20px 40px;
}
 
.jcarousel-skin-single .jcarousel-container-vertical {
width: 75px;
height: 245px;
padding: 20px 20px;
}
 
.jcarousel-skin-single .jcarousel-clip-horizontal {
// width: 142px;
width:166px;
height: 300px;
}
 
.jcarousel-skin-single .jcarousel-clip-vertical {
// width: 142px;
width:166px;
height: 197px;
}
 
.jcarousel-skin-single .jcarousel-item {
width: 142px;
height: 225px;
}
 
.jcarousel-skin-single .jcarousel-item-horizontal {
margin-right: 10px;
}
 
.jcarousel-skin-single .jcarousel-item-vertical {
margin-bottom: 10px;
}
 
.jcarousel-skin-single .jcarousel-item-placeholder {
background: #fff;
color: #000;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal {
position: absolute;
top: 93px;
right: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url({/literal}{"carousel/nextbtn.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal:hover {
background: transparent url({/literal}{"carousel/nextbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal:active {
background: transparent url({/literal}{"carousel/nextbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-disabled-horizontal,
.jcarousel-skin-single .jcarousel-next-disabled-horizontal:hover,
.jcarousel-skin-single .jcarousel-next-disabled-horizontal:active {
cursor: default;
background: transparent url({/literal}{"carousel/nextbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal {
position: absolute;
top: 93px;
left: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url({/literal}{"carousel/prevbtn.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal:hover {
background: transparent url({/literal}{"carousel/prevbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal:active {
background: transparent url({/literal}{"carousel/prevbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal,
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal:hover,
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal:active {
cursor: default;
background: transparent url({/literal}{"carousel/prevbtn-over.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-vertical {
position: absolute;
bottom: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url({/literal}{"carousel/next-vertical.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-single .jcarousel-next-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-single .jcarousel-next-disabled-vertical,
.jcarousel-skin-single .jcarousel-next-disabled-vertical:hover,
.jcarousel-skin-single .jcarousel-next-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url({/literal}{"carousel/prev-vertical.png"|ezimage('no')}{literal}) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-single .jcarousel-prev-disabled-vertical,
.jcarousel-skin-single .jcarousel-prev-disabled-vertical:hover,
.jcarousel-skin-single .jcarousel-prev-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
.jcarousel-skin-single li img {
width: 142px;
height: 187px;
}
.jcarousel-skin-single li h3 {
position: absolute;
margin-top: 197px;
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.jcarousel-skin-single ul li {
background-image: none;
}
{/literal}
</style>
<div class="carousel_single_wrapper">
<h1>{$object.name|wash()}</h1>
{* if $object.data_map.summary.has_content}<p>{$object.data_map.summary.value}</p>{/if *}
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
{def $children = array()
$limit = 0
$offset = 0}
{if is_set( $object_parameters.limit )}{set $limit = $object_parameters.limit}{/if}
{if is_set( $object_parameters.offset )}{set $offset = $object_parameters.offset}{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
{if $children|count()|gt( 0 )}
<script language="Javascript" type="text/javascript">{* // helper function, modify to handle disabling prev/next buttons *}{*
/*
function preloadArrowImages() {
var img= new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-disabled.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-disabled.png";
}
preloadArrowImages();
*/
*}{literal}
jQuery(document).ready(function() {
{/literal}
jQuery("#carouselSingle{$object.main_node_id}").jcarousel({literal}{scroll:1}{/literal});
{literal}
});
{/literal}
</script>
{def $child=0
$child_image=''
$child_image_url=''
$child_item_name=''
$child_item_url=''
$child_item_link=0
$child_item_link_open=''
$child_item_link_close=''
$child_item_image_class='carousel_single'
$child_item_class_name=concat( 'carouselSingle', $object.main_node_id )
}
{def $maximum_height_filters=ezini( $child_item_image_class, 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
 
{* def $child_item_link=''}{def $child_item_link_open=''}{def $child_item_link_close='' *}
{* if $children|count()|gt( 0 ) *}
 
{if gt($childrenCount,1)}
<ul id="carouselSingle{$object.main_node_id}" class="jcarousel-skin-single">
{for 0 to sum($childrenCount,-1) as $counter}
{set $child=$children.$counter}
{if $child.class_identifier|eq( 'article' )}
{set $child_item_name=$child.name}
{set $child_item_link=$child.url}
{if $child.data_map.image.has_content}
{set $child_image=$child.data_map.image.value.$child_item_image_class}
{set $child_image_url=concat( '/ezpublish/', $child_image.url )}
{else}
{set $child_image_url=''}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
 
<li>{$child_item_link_open}{if ne($child_image_url, '')}<img src="{$child_image_url}"{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}{if $object.data_map.show_titles.value|eq('1')}<div class="carousel_title_single">{$child_item_link_open}{$child_item_name}{$child_item_link_close}</div>{/if}</li>
 
{/if}
{/for}
 
</ul>
{/if}
{* if gt($childrenCount,1)}</div><!--end feature_scroller_single-->{/if *}
{else}
<p>Sorry, no items are currently available</p>
{/if}
</div><!--end blogroll-->
{* <!--end carouselInner--> </div>
</div><!--end carouselContainer_single-->
</div><!--end feature_scroller_single--> *}
/trunk/extension/bccarousel/design/standard/override/templates/embed/carousel/carousel_prayer.tpl --- trunk/extension/bccarousel/design/standard/images/carousel/carousel.html (revision 0) +++ trunk/extension/bccarousel/design/standard/images/carousel/carousel.html (revision 1) @@ -0,0 +1,111 @@ + + + + + + + + +Carousel Demo + + +
+
+
+
\ No newline at end of file
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn.gif Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn.gif Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prev-horizontal.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prev-horizontal.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/nextbtn.gif Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/nextbtn.gif Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/carousel.js New file
0,0 → 1,168
Slide = function(ele, options) {
this.ele = ele;
// merge options
for (var prop in options) {
this.options[prop] = options[prop];
}
this.dist_travelled = 0;
if (this.options.dir == 'right') {
this.axis = 'x';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'up') {
this.axis = 'y';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'down') {
this.axis = 'y'
this.dist = this.options.dist;
this.step = this.options.step;
} else {
this.axis = 'x';
this.dist = this.options.dist;
this.step = this.options.step;
}
bc_namespace_slide = this;
this.interval = setInterval('bc_namespace_slide.doSlide()', this.options.delay);
}
// dir = direction, dist = distance
Slide.prototype.options = {
dir: 'left', // left right up down
dist: 100,
step: 2,
delay: 100,
onfinish: false
}
 
Slide.prototype.doSlide = function() {
clearInterval(this.interval);
// if we've travelled as much as we're supposed to, finish up
if (this.dist_travelled>=this.options.dist) {
if (this.dist_travelled>this.options.dist ) {
var adjust = this.dist_travelled - this.options.dist;
if (this.dist < 0) {
this.modifyMargin(adjust);
} else {
this.modifyMargin(-(adjust));
}
}
if (this.options.onfinish) {
this.options.onfinish(this.ele);
}
} else {
if (!this.ele.style.marginLeft) {
this.ele.style.marginLeft = "0px";
}
if (!this.ele.style.marginTop) {
this.ele.style.marginTop = "0px";
}
this.modifyMargin(this.step);
this.dist_travelled += this.options.step;
bc_namespace_slide = this;
this.interval = setInterval('bc_namespace_slide.doSlide()', this.options.delay);
}
}
 
Slide.prototype.modifyMargin = function(amt) {
if (this.axis == 'x') {
this.ele.style.marginLeft = (parseInt(this.ele.style.marginLeft) + amt)+"px";
} else {
this.ele.style.marginTop = (parseInt(this.ele.style.marginTop) + amt) + "px";
}
}
 
Carousel = function () {
return {
is_running: false,
auto_play: false,
current_item_cb: false, // called when an animation is finished, use to set the states of your prev/next buttons
current_direction: '', // set when an animation is running, previous or next
init: function(item_count, items_to_show, auto_play, auto_play_delay, current_item_cb, slide_step, slide_speed) {
if (typeof(items_to_show) == "undefined") {
this.items_to_show = 1;
} else {
this.items_to_show = items_to_show;
}
if (typeof(auto_play) != "undefined" && auto_play) {
this.auto_play = auto_play;
this.auto_play_delay = auto_play_delay;
bc_carousel_namespace = this;
this.auto_play_interval = setInterval('bc_carousel_namespace.showNext()', auto_play_delay);
}
if (typeof(current_item_cb) != "undefined") {
this.current_item_cb = current_item_cb;
}
if (typeof(slide_speed) == "undefined" || !slide_speed) {
this.slide_speed = 100;
} else {
this.slide_speed = slide_speed;
}
if (typeof(slide_step) == "undefined" || !slide_step) {
this.slide_step = 20;
} else {
this.slide_step = slide_step;
}
this.item_count = item_count;
this.container_width = Math.floor(parseInt(document.getElementById('carouselContainer').offsetWidth) / items_to_show);
// adjust the carousel inner width a bit to make all the elements show up
document.getElementById('carouselInner').style.width = (parseInt(document.getElementById('carouselContainer').offsetWidth) * (item_count+1)) + "px";
document.getElementById('carouselInner').style.visibility = "visible";
this.current_focus = 1;
this.current_element = document.getElementById('carousel_1');
if (Carousel.current_item_cb) {
Carousel.current_item_cb();
}
},
showPrevious: function() {
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
bc_carousel_namespace = this;
this.auto_play_interval = setInterval('bc_carousel_namespace.showNext()', this.auto_play_delay);
}
if (this.is_running || this.current_focus <= 1) {
return;
}
var inner = document.getElementById('carouselInner');
this.current_direction = 'previous';
this.is_running = true;
new Slide(inner, {dir: 'left', dist: this.container_width, step: this.slide_step, delay: this.slide_speed, onfinish: Carousel.animOnFinish});
},
showNext: function() {
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
bc_carousel_namespace = this;
this.auto_play_interval = setInterval('bc_carousel_namespace.showNext()', this.auto_play_delay);
}
this.last_auto_play = this.auto_play;
if (this.is_running || this.current_focus >= this.item_count) {
this.auto_play = false;
return;
}
var inner = document.getElementById('carouselInner');
this.current_direction = 'next';
this.is_running = true;
new Slide(inner, {dir: 'right', dist: this.container_width, step: this.slide_step, delay:this.slide_speed, onfinish: Carousel.animOnFinish});
},
animOnFinish: function(ele) {
Carousel.is_running = false;
if (Carousel.current_direction == 'next') {
Carousel.current_focus++;
} else {
Carousel.current_focus--;
}
if (Carousel.current_item_cb) {
Carousel.current_item_cb();
}
}
}
}()
trunk/extension/bccarousel/design/standard/images/carousel/carousel.js Property changes : Added: svn:executable + *
/trunk/extension/bccarousel/design/standard/images/carousel/next-horizontal.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/next-horizontal.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-over.gif Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-over.gif Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/dlite.min.js New file
0,0 → 1,0
var dLite=function(){var E=/*@cc_on!@*/false;var B=0;var H=false;var A=null;var G=[];var C={};var D=function(){for(var J=0,I=G.length;J<I;J++){try{G[J]();}catch(K){}}G=[];};var F=function(){if(H){return ;}H=true;D();};return{init:function(){window.elm=window.elm||this.elm;window.elmsByClass=window.elmsByClass||this.elmsByClass;window.addClass=window.addClass||this.addClass;window.removeClass=window.removeClass||this.removeClass;window.addEvent=window.addEvent||this.addEvent;window.removeEvent=window.removeEvent||this.removeEvent;window.stopDefault=window.stopDefault||this.stopDefault;window.cancelBubbling=window.cancelBubbling||this.cancelBubbling;window.DOMReady=window.DOMReady||this.DOMReady;if(document.addEventListener){document.addEventListener("DOMContentLoaded",F,false);}if(E){if(document.getElementById){document.write('<script id="ieScriptLoad" defer src="//:"><\/script>');document.getElementById("ieScriptLoad").onreadystatechange=function(){if(this.readyState==="complete"){F.call(this);}};}}if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){A=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){F.call(this);clearInterval(A);}},10);}window.onload=F;},elm:function(I){return document.getElementById(I);},elmsByClass:function(J,I,K){if(document.getElementsByClassName){this.elmsByClass=function(Q,T,P){P=P||document;var L=P.getElementsByClassName(Q),S=(T)?new RegExp("\\b"+T+"\\b","i"):null,M=[],O;for(var N=0,R=L.length;N<R;N+=1){O=L[N];if(!S||S.test(O.nodeName)){M.push(O);}}return M;};}else{if(document.evaluate){this.elmsByClass=function(U,X,T){X=X||"*";T=T||document;var N=U.split(" "),V="",R="http://www.w3.org/1999/xhtml",W=(document.documentElement.namespaceURI===R)?R:null,O=[],L,M;for(var P=0,Q=N.length;P<Q;P+=1){V+="[contains(concat(' ', @class, ' '), ' "+N[P]+" ')]";}try{L=document.evaluate(".//"+X+V,T,W,0,null);}catch(S){L=document.evaluate(".//"+X+V,T,null,0,null);}while((M=L.iterateNext())){O.push(M);}return O;};}else{this.elmsByClass=function(W,Z,V){Z=Z||"*";V=V||document;var P=W.split(" "),Y=[],L=(Z==="*"&&V.all)?V.all:V.getElementsByTagName(Z),U,R=[],T;for(var Q=0,M=P.length;Q<M;Q+=1){Y.push(new RegExp("(^|\\s)"+P[Q]+"(\\s|$)"));}for(var O=0,X=L.length;O<X;O+=1){U=L[O];T=false;for(var N=0,S=Y.length;N<S;N+=1){T=Y[N].test(U.className);if(!T){break;}}if(T){R.push(U);}}return R;};}}return this.elmsByClass(J,I,K);},addClass:function(K,J){var I=K.className;if(!new RegExp(("(^|\\s)"+J+"(\\s|$)"),"i").test(I)){K.className=I+(I.length?" ":"")+J;}},removeClass:function(K,J){var I=new RegExp(("(^|\\s)"+J+"(\\s|$)"),"i");K.className=K.className.replace(I,function(L){var M="";if(new RegExp("^\\s+.*\\s+$").test(L)){M=L.replace(/(\s+).+/,"$1");}return M;}).replace(/^\s+|\s+$/g,"");},addEvent:function(K,I,J){if(document.addEventListener){this.addEvent=function(N,L,M){N.addEventListener(L,M,false);};}else{this.addEvent=function(P,L,N){if(!P.uniqueHandlerId){P.uniqueHandlerId=B++;}var O=false;if(N.attachedElements&&N.attachedElements[L+P.uniqueHandlerId]){O=true;}if(!O){if(!P.events){P.events={};}if(!P.events[L]){P.events[L]=[];var M=P["on"+L];if(M){P.events[L].push(M);}}P.events[L].push(N);P["on"+L]=dLite.handleEvent;if(!N.attachedElements){N.attachedElements={};}N.attachedElements[L+P.uniqueHandlerId]=true;}};}return this.addEvent(K,I,J);},handleEvent:function(I){var M=I||event;var N=M.target||M.srcElement||document;while(N.nodeType!==1&&N.parentNode){N=N.parentNode;}M.eventTarget=N;var J=this.events[M.type].slice(0);var L=J.length-1;if(L!==-1){for(var K=0;K<L;K++){J[K].call(this,M);}return J[K].call(this,M);}},removeEvent:function(K,I,J){if(document.addEventListener){this.removeEvent=function(N,L,M){N.removeEventListener(L,M,false);};}else{this.removeEvent=function(P,L,O){if(P.events){var M=P.events[L];if(M){for(var N=0;N<M.length;N++){if(M[N]===O){delete M[N];M.splice(N,1);}}}O.attachedElements[L+P.uniqueHandlerId]=null;}};}return this.removeEvent(K,I,J);},stopDefault:function(I){I.returnValue=false;if(I.preventDefault){I.preventDefault();}},cancelBubbling:function(I){I.cancelBubble=true;if(I.stopPropagation){I.stopPropagation();}},DOMReady:function(){for(var J=0,I=arguments.length,K;J<I;J++){K=arguments[J];if(!K.DOMReady&&!C[K]){if(typeof K==="string"){C[K]=true;K=new Function(K);}K.DOMReady=true;G.push(K);}}if(H){D();}}};}();dLite.init();
/trunk/extension/bccarousel/design/standard/images/carousel/book1.jpeg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/book1.jpeg Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-over.gif Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-over.gif Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/book2.jpeg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/book2.jpeg Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/carousel3img.html New file
0,0 → 1,111
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
#carouselContainer {
margin:0px;
padding:0px;
width: 540px !important;
max-width: 540px;
overflow: hidden;
}
#carouselInner {
margin:0px;
padding:0px;
visibility: hidden;
width: 100%;
height: 100%;
}
.bc_carousel {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
text-align: center;
width: 180px !important;
max-width: 180px;
vertical-align: top;
}
.bc_carousel img {
display: block;
margin: 0px auto;
}
h2.carousel_header {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 11px;
padding: 2px 8px;
}
#prevBtn, #nextBtn {
cursor: pointer;
margin-top: 50px;
z-index: 1000;
position: absolute;
}
#nextBtn {
margin-left: 514px;
}
</style>
<script type="text/javascript" src="dlite.min.js"></script>
<script type="text/javascript" src="carousel.js"></script>
<script language="Javascript" type="text/javascript">
 
// helper function, modify to handle disabling prev/next buttons
 
function preloadArrowImages() {
var img= new Image();
img.src="nextbtn-over.png";
img = new Image();
img.src="nextbtn-disabled.png";
img = new Image();
img.src="prevbtn-over.png";
img = new Image();
img.src="prevbtn-disabled.png";
}
preloadArrowImages();
function disablePrevOrNext() {
if (Carousel.current_focus == 1) {
elm("prevBtn").disabled=true;
elm("prevBtn").style.cursor="default";
elm("prevBtn").src= 'prevbtn-disabled.png';
} else if (Carousel.current_focus == Carousel.item_count) {
elm("nextBtn").disabled=true;
elm("nextBtn").style.cursor="default";
elm("nextBtn").src= 'nextbtn-disabled.png';
} else {
if (elm("prevBtn").disabled) { elm("prevBtn").src='prevbtn.png'; elm("prevBtn").disabled = false;
elm("prevBtn").style.cursor="pointer";}
if (elm("nextBtn").disabled) { elm("nextBtn").src='nextbtn.png'; elm("nextBtn").disabled = false;
elm("nextBtn").style.cursor="pointer";}
}
}
 
DOMReady(function() {
Carousel.init(5, 3, true, 3000, disablePrevOrNext, 20, 50);
addEvent(elm("prevBtn"), "click", function() { Carousel.auto_play = false; Carousel.showPrevious(); });
addEvent(elm("nextBtn"), "click", function() { Carousel.auto_play = false; Carousel.showNext(); });
addEvent(elm("prevBtn"), "mouseover", function() { if (!this.disabled) this.src='prevbtn-over.png'; });
addEvent(elm("prevBtn"), "mouseout", function() { if (!this.disabled) this.src='prevbtn.png'; });
addEvent(elm("nextBtn"), "mouseover", function() { if (!this.disabled) this.src='nextbtn-over.png'; });
addEvent(elm("nextBtn"), "mouseout", function() { if (!this.disabled) this.src='nextbtn.png'; });
});
</script>
<title>Carousel Demo</title></head>
<body>
<h2 class="carousel_header">Featured Item</h2>
<img id="prevBtn" src="prevbtn.png" /><img id="nextBtn" src="nextbtn.png" />
<div id="carouselContainer">
<div id="carouselInner" style="vertical-align: top;"><div class='bc_carousel' id="carousel_1"><img src="book1.jpeg" /><div class="carousel_title">C++ For Dummies</div></div><div class='bc_carousel' id="carousel_2"><img src="book2.jpeg" /></div><div class='bc_carousel' id="carousel_3"><img src="book3.jpeg" /><div class="carousel_title">A really great read, testing long text, and some more.</div></div><div class='bc_carousel' id="carousel_4"><img src="book4.jpeg" /></div><div class='bc_carousel' id="carousel_5"><img src="book5.jpeg" /><div class="carousel_title">C++ Programming</div></div>
</div>
</div>
</body>
</html>
/trunk/extension/bccarousel/design/standard/images/carousel/book3.jpeg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/book3.jpeg Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/book4.jpeg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/book4.jpeg Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/book5.jpeg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/book5.jpeg Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/nextbtn.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/nextbtn.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prev-vertical.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prev-vertical.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-restart.gif Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-restart.gif Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/next-vertical.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/next-vertical.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-disabled.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-disabled.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-disabled.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-disabled.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-over.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/prevbtn-over.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-over.png Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/design/standard/images/carousel/nextbtn-over.png Property changes : Added: svn:executable + * Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/design/standard/javascript/carousel/carousel_simple.js New file
0,0 → 1,362
function Slide(carousel_unique_id, ele, options) {
this.ele = ele;
this.carousel_unique_id = carousel_unique_id;
// merge options
this.options = options;
//for (var prop in this.options) {
// this.options[prop] = this.options[prop];
//}
this.dist_travelled = 0;
if (this.options.dir == 'right') {
this.axis = 'x';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'up') {
this.axis = 'y';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'down') {
this.axis = 'y'
this.dist = this.options.dist;
this.step = this.options.step;
} else {
this.axis = 'x';
this.dist = this.options.dist;
this.step = this.options.step;
}
 
this.interval = setInterval('thisSlide['+this.carousel_unique_id+'].doSlide()', this.options.delay);
this.doSlide = function() {
clearInterval(this.interval);
 
// if we've travelled as much as we're supposed to, finish up
if (this.dist_travelled>=this.options.dist) {
if (this.dist_travelled>this.options.dist ) {
this.adjust = this.dist_travelled - this.options.dist;
if (this.dist < 0) {
this.modifyMargin(this.adjust);
} else {
this.modifyMargin(-(this.adjust));
}
}
thisCarousel[this.carousel_unique_id].animOnFinish();
}
else {
if (!this.ele.style.marginLeft) {
this.ele.style.marginLeft = "0px";
}
if (!this.ele.style.marginTop) {
this.ele.style.marginTop = "0px";
}
this.modifyMargin(this.step);
this.dist_travelled += this.options.step;
this.interval = setInterval('thisSlide['+this.carousel_unique_id+'].doSlide()', this.options.delay);
}
};
 
this.modifyMargin = function(amt) {
 
if (this.axis == 'x') {
this.ele.style.marginLeft = (parseInt(this.ele.style.marginLeft) + amt)+"px";
} else {
this.ele.style.marginTop = (parseInt(this.ele.style.marginTop) + amt) + "px";
}
};
}
// dir = direction, dist = distance
//Slide.prototype.options = {
// dir: 'left', // left right up down
// dist: 100,
// step: 2,
// delay: 100
//}
 
 
 
var carousel_unique_id;
thisCarousel = new Array();
thisSlide = new Array();
 
function carousel_unique_namespace(scroller_container_id, scroller_inner_id, prev_btn, next_btn) {
 
if (typeof(carousel_unique_id) == "undefined") {
carousel_unique_id = 0;
}
else {
carousel_unique_id++;
}
 
this.scroller_inner_id = scroller_inner_id + '_' + carousel_unique_id;
document.getElementById(scroller_inner_id).id = this.scroller_inner_id;
this.scroller_container_id = scroller_container_id + '_' + carousel_unique_id;
document.getElementById(scroller_container_id).id = this.scroller_container_id;
this.prev_btn = prev_btn + '_' + carousel_unique_id;
document.getElementById(prev_btn).id = this.prev_btn;
this.next_btn = next_btn + '_' + carousel_unique_id;
document.getElementById(next_btn).id = this.next_btn;
}
 
function carousel_init(carousel_unique_id, childrenCount, items_to_show, autoscroll, autoscroll_hold_time) {
thisCarousel[carousel_unique_id] = new Carousel;
thisCarousel[carousel_unique_id].init('carouselContainer_' + carousel_unique_id, 'carouselInner_' + carousel_unique_id, 'prevBtn_' + carousel_unique_id, 'nextBtn_' + carousel_unique_id, childrenCount, items_to_show, autoscroll, autoscroll_hold_time, 20, 50, thisCarousel[carousel_unique_id], carousel_unique_id);
}
 
 
function Carousel() {
 
this.init = function(scroller_container_id, scroller_inner_id, prev_btn, next_btn, item_count, items_to_show, auto_play, auto_play_delay, slide_step, slide_speed, carousel_id, carousel_unique_id) {
this.carousel_unique_id = carousel_unique_id;
this.scroller_container_id = scroller_container_id;
this.scroller_inner_id = scroller_inner_id;
this.prev_btn = prev_btn;
this.next_btn = next_btn;
this.is_running = false;
this.current_direction = ''; // set when an animation is running, previous or next
addEvent(document.getElementById(this.prev_btn), "click", function() { carousel_id.auto_play = false; carousel_id.showPrevious(); });
addEvent(document.getElementById(this.next_btn), "click", function() { carousel_id.auto_play = false; carousel_id.showNext(true); });
addEvent(document.getElementById(this.prev_btn), "mouseover", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn-over.png'; });
addEvent(document.getElementById(this.prev_btn), "mouseout", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; });
addEvent(document.getElementById(this.next_btn), "mouseover", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn-over.png'; });
addEvent(document.getElementById(this.next_btn), "mouseout", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; });
 
if (typeof(items_to_show) == "undefined") {
this.items_to_show = 1;
} else {
this.items_to_show = items_to_show;
}
 
this.auto_play = auto_play;
this.auto_play_delay = auto_play_delay;
this.auto_play_interval = setInterval("thisCarousel["+this.carousel_unique_id+"].showNext(false)", this.auto_play_delay);
 
if (typeof(slide_speed) == "undefined" || !slide_speed) {
this.slide_speed = 100;
} else {
this.slide_speed = slide_speed;
}
if (typeof(slide_step) == "undefined" || !slide_step) {
this.slide_step = 20;
} else {
this.slide_step = slide_step;
}
this.item_count = item_count;
this.container_width = Math.floor(parseInt(document.getElementById(this.scroller_container_id).offsetWidth) / this.items_to_show);
 
// adjust the carousel inner width a bit to make all the elements show up
document.getElementById(this.scroller_inner_id).style.width = (parseInt(document.getElementById(this.scroller_container_id).offsetWidth) * (this.item_count+1)) + "px";
document.getElementById(this.scroller_inner_id).style.visibility = "visible";
this.current_focus = 1;
this.disablePrevOrNext();
this.colour_value_r = 21;
this.colour_value_g = 108;
this.colour_value_b = 153;
this.current_opacity = 100;
};
this.showPrevious = function() {
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext(false)', this.auto_play_delay);
}
if (this.is_running || this.current_focus <= 1) {
return;
}
this.inner = document.getElementById(this.scroller_inner_id);
this.current_direction = 'previous';
this.is_running = true;
thisSlide[this.carousel_unique_id] = new Slide(this.carousel_unique_id, this.inner, {dir: 'left', dist: this.container_width, step: this.slide_step, delay: this.slide_speed});
};
 
this.restartBeginning = function(div_to_fade) {
// Text color fade modified from http://www.albeesonline.com/blog/2008/09/25/javascript-fading-effect/
// Image fade modified from Doug Plant at http://www.mugo.ca
if (this.item_count <= this.items_to_show) {
return;
}
clearTimeout(this.restart);
var inner = document.getElementById(div_to_fade);
this.carousel_a_tags = this.inner.getElementsByTagName("a");
this.carousel_a_num = this.carousel_a_tags.length;
this.carousel_img_tags = this.inner.getElementsByTagName("img");
this.carousel_img_num = this.carousel_img_tags.length;
this.carousel_span_tags = this.inner.getElementsByTagName("span");
this.carousel_span_num = this.carousel_span_tags.length;
this.carousel_p_tags = this.inner.getElementsByTagName("p");
this.carousel_p_num = this.carousel_p_tags.length;
this.carousel_div_tags = this.inner.getElementsByTagName("div");
this.carousel_div_num = this.carousel_div_tags.length;
if(((this.colour_value_r + this.colour_value_g + this.colour_value_b) < 765) || this.current_opacity > 0) {
this.colour_value_r = Math.min(255, this.colour_value_r + 10);
this.colour_value_g = Math.min(255, this.colour_value_g + 10);
this.colour_value_b = Math.min(255, this.colour_value_b + 10);
this.current_opacity = Math.max(0, this.current_opacity - 5);
for(i=0;i<this.carousel_a_num;i++) {
this.carousel_a_tags[i].style.color="rgb("+this.colour_value_r+","+this.colour_value_g+","+this.colour_value_b+")";
}
for(i=0;i<this.carousel_img_num;i++) {
this.carousel_img_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_img_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
for(i=0;i<this.carousel_span_num;i++) {
this.carousel_span_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_span_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
for(i=0;i<this.carousel_p_num;i++) {
this.carousel_p_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_p_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
 
for(i=0;i<this.carousel_div_num;i++) {
this.carousel_div_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_div_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
this.car_timeout = setTimeout("thisCarousel["+this.carousel_unique_id+"].restartBeginning('" + div_to_fade + "', " + this.manual+ ")",50);
}
else {
if (typeof(this.car_timeout) != "undefined") {
clearTimeout(this.car_timeout);
setTimeout("thisCarousel["+this.carousel_unique_id+"].restoreBeginning("+this.manual+")", 1000);
}
}
};
this.restoreBeginning = function() {
document.getElementById(this.scroller_inner_id).style.marginLeft = '0px';
for(i=0;i<this.carousel_a_num;i++) {
this.carousel_a_tags[i].style.color="rgb(21, 108, 153)";
}
for(i=0;i<this.carousel_img_num;i++) {
this.carousel_img_tags[i].style.opacity = 100;
this.carousel_img_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_span_num;i++) {
this.carousel_span_tags[i].style.opacity = 100;
this.carousel_span_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_p_num;i++) {
this.carousel_p_tags[i].style.opacity = 100;
this.carousel_p_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_div_num;i++) {
this.carousel_div_tags[i].style.opacity = 100;
this.carousel_div_tags[i].style.filter = "alpha(opacity=100)";
}
this.colour_value_r = 21;
this.colour_value_g = 108;
this.colour_value_b = 153;
this.current_opacity = 100;
this.animOnFinish(1);
if (!this.manual) {
this.auto_play = true;
clearInterval(this.auto_play_interval);
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext(false)', this.auto_play_delay);
//setTimeout("thisCarousel["+this.carousel_unique_id+"].showNext("+this.manual+")", this.auto_play_delay);
}
};
this.showNext = function(manual) {
if (typeof(manual) == "undefined") {
manual = false;
}
this.manual = manual;
 
if (this.current_focus >= (this.item_count - this.items_to_show + 1)) {
document.getElementById(this.prev_btn).style.display='none';
document.getElementById(this.next_btn).style.display='none';
this.restartBeginning(this.scroller_inner_id);
}
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext('+this.manual+')', this.auto_play_delay);
}
if (this.is_running || this.current_focus >= (this.item_count - this.items_to_show + 1) ) {
if (this.current_focus >= (this.item_count - this.items_to_show)) {
this.auto_play = false;
}
return;
}
this.inner = document.getElementById(this.scroller_inner_id);
this.current_direction = 'next';
this.is_running = true;
thisSlide[this.carousel_unique_id] = '';
thisSlide[this.carousel_unique_id] = new Slide(this.carousel_unique_id, this.inner, {dir: 'right', dist: this.container_width, step: this.slide_step, delay:this.slide_speed});
};
this.animOnFinish = function(new_focus) {
this.is_running = false;
if (1 == new_focus) {
this.current_focus = new_focus;
}
else if (this.current_direction == 'next') {
this.current_focus++;
} else {
this.current_focus--;
}
 
this.disablePrevOrNext();
 
if (!this.manual && this.current_focus >= (this.item_count - this.items_to_show + 1)) {
this.restart = setTimeout("thisCarousel["+this.carousel_unique_id+"].restartBeginning('"+this.scroller_inner_id+"', "+this.manual+")", this.auto_play_delay);
}
};
this.disablePrevOrNext = function() {
this.previous_disabled = false;
this.next_disabled = false;
if (this.current_focus == 1) {
//document.getElementById(this.prev_btn).disabled=true;
document.getElementById(this.prev_btn).style.cursor="default";
document.getElementById(this.prev_btn).style.display="none";
document.getElementById(this.prev_btn).style.color = 'black';
// document.getElementById(this.prev_btn).src= '/extension/stdl/design/stdl/images/carousel/prevbtn-restart.gif';
this.previous_disabled = true;
}
else {
document.getElementById(this.prev_btn).style.color = 'red';
}
// Don't want to show any blank spaces
if (this.current_focus >= (this.item_count - this.items_to_show + 1) ) {
document.getElementById(this.next_btn).src= '/extension/stdl/design/stdl/images/carousel/prevbtn-restart.gif';
document.getElementById(this.next_btn).style.color = 'black';
//document.getElementById(this.next_btn).style.cursor="default";
//document.getElementById(this.next_btn).style.display="none";
document.getElementById(this.next_btn).style.cursor="pointer";
this.next_disabled = true;
}
else {
document.getElementById(this.next_btn).style.color = 'red';
document.getElementById(this.next_btn).src= '/extension/stdl/design/stdl/images/carousel/nextbtn.png';
}
if (!this.previous_disabled) {
document.getElementById(this.prev_btn).src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; document.getElementById(this.prev_btn).style.display = '';
document.getElementById(this.prev_btn).style.cursor="pointer";
}
if (!this.next_disabled) {
document.getElementById(this.next_btn).src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; document.getElementById(this.next_btn).style.display = '';
document.getElementById(this.next_btn).style.cursor="pointer";
}
}
}
/trunk/extension/bccarousel/design/standard/javascript/carousel/jcarousel.js New file
0,0 → 1,877
/**
* jCarousel - Riding carousels with jQuery
* http://sorgalla.com/jcarousel/
*
* Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
* Dual licensed under the MIT (MIT-LICENSE.txt)
* and GPL (GPL-LICENSE.txt) licenses.
*
* Built on top of the jQuery library
* http://jquery.com
*
* Inspired by the "Carousel Component" by Bill Scott
* http://billwscott.com/carousel/
*/
 
(function($) {
/**
* Creates a carousel for all matched elements.
*
* @example $("#mycarousel").jcarousel();
* @before <ul id="mycarousel" class="jcarousel-skin-name"><li>First item</li><li>Second item</li></ul>
* @result
*
* <div class="jcarousel-skin-name">
* <div class="jcarousel-container">
* <div disabled="disabled" class="jcarousel-prev jcarousel-prev-disabled"></div>
* <div class="jcarousel-next"></div>
* <div class="jcarousel-clip">
* <ul class="jcarousel-list">
* <li class="jcarousel-item-1">First item</li>
* <li class="jcarousel-item-2">Second item</li>
* </ul>
* </div>
* </div>
* </div>
*
* @name jcarousel
* @type jQuery
* @param Hash o A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
$.fn.jcarousel = function(o) {
return this.each(function() {
new $jc(this, o);
});
};
 
// Default configuration properties.
var defaults = {
vertical: false,
start: 1,
offset: 1,
size: null,
scroll: 3,
visible: null,
animation: 'normal',
easing: 'swing',
auto: 0,
wrap: null,
initCallback: null,
reloadCallback: null,
itemLoadCallback: null,
itemFirstInCallback: null,
itemFirstOutCallback: null,
itemLastInCallback: null,
itemLastOutCallback: null,
itemVisibleInCallback: null,
itemVisibleOutCallback: null,
buttonNextHTML: '<div></div>',
buttonPrevHTML: '<div></div>',
buttonNextEvent: 'click',
buttonPrevEvent: 'click',
buttonNextCallback: null,
buttonPrevCallback: null
};
 
/**
* The jCarousel object.
*
* @constructor
* @name $.jcarousel
* @param Object e The element to create the carousel for.
* @param Hash o A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
$.jcarousel = function(e, o) {
this.options = $.extend({}, defaults, o || {});
 
this.locked = false;
 
this.container = null;
this.clip = null;
this.list = null;
this.buttonNext = null;
this.buttonPrev = null;
 
this.wh = !this.options.vertical ? 'width' : 'height';
this.lt = !this.options.vertical ? 'left' : 'top';
 
// Extract skin class
var skin = '', split = e.className.split(' ');
 
for (var i = 0; i < split.length; i++) {
if (split[i].indexOf('jcarousel-skin') != -1) {
$(e).removeClass(split[i]);
var skin = split[i];
break;
}
}
 
if (e.nodeName == 'UL' || e.nodeName == 'OL') {
this.list = $(e);
this.container = this.list.parent();
 
if (this.container.hasClass('jcarousel-clip')) {
if (!this.container.parent().hasClass('jcarousel-container'))
this.container = this.container.wrap('<div></div>');
 
this.container = this.container.parent();
} else if (!this.container.hasClass('jcarousel-container'))
this.container = this.list.wrap('<div></div>').parent();
} else {
this.container = $(e);
this.list = $(e).find('>ul,>ol,div>ul,div>ol');
}
 
if (skin != '' && this.container.parent()[0].className.indexOf('jcarousel-skin') == -1)
this.container.wrap('<div class=" '+ skin + '"></div>');
 
this.clip = this.list.parent();
 
if (!this.clip.length || !this.clip.hasClass('jcarousel-clip'))
this.clip = this.list.wrap('<div></div>').parent();
 
this.buttonPrev = $('.jcarousel-prev', this.container);
 
if (this.buttonPrev.size() == 0 && this.options.buttonPrevHTML != null)
this.buttonPrev = this.clip.before(this.options.buttonPrevHTML).prev();
 
this.buttonPrev.addClass(this.className('jcarousel-prev'));
 
this.buttonNext = $('.jcarousel-next', this.container);
 
if (this.buttonNext.size() == 0 && this.options.buttonNextHTML != null)
this.buttonNext = this.clip.before(this.options.buttonNextHTML).prev();
 
this.buttonNext.addClass(this.className('jcarousel-next'));
 
this.clip.addClass(this.className('jcarousel-clip'));
this.list.addClass(this.className('jcarousel-list'));
this.container.addClass(this.className('jcarousel-container'));
 
var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
var li = this.list.children('li');
 
var self = this;
 
if (li.size() > 0) {
var wh = 0, i = this.options.offset;
li.each(function() {
self.format(this, i++);
wh += self.dimension(this, di);
});
 
this.list.css(this.wh, wh + 'px');
 
// Only set if not explicitly passed as option
if (!o || o.size === undefined)
this.options.size = li.size();
}
 
// For whatever reason, .show() does not work in Safari...
this.container.css('display', 'block');
this.buttonNext.css('display', 'block');
this.buttonPrev.css('display', 'block');
 
this.funcNext = function() { self.next(); };
this.funcPrev = function() { self.prev(); };
this.funcResize = function() { self.reload(); };
 
if (this.options.initCallback != null)
this.options.initCallback(this, 'init');
 
if ($.browser.safari) {
this.buttons(false, false);
$(window).bind('load', function() { self.setup(); });
} else
this.setup();
};
 
// Create shortcut for internal use
var $jc = $.jcarousel;
 
$jc.fn = $jc.prototype = {
jcarousel: '0.2.3'
};
 
$jc.fn.extend = $jc.extend = $.extend;
 
$jc.fn.extend({
/**
* Setups the carousel.
*
* @name setup
* @type undefined
* @cat Plugins/jCarousel
*/
setup: function() {
this.first = null;
this.last = null;
this.prevFirst = null;
this.prevLast = null;
this.animating = false;
this.timer = null;
this.tail = null;
this.inTail = false;
 
if (this.locked)
return;
 
this.list.css(this.lt, this.pos(this.options.offset) + 'px');
var p = this.pos(this.options.start);
this.prevFirst = this.prevLast = null;
this.animate(p, false);
 
$(window).unbind('resize', this.funcResize).bind('resize', this.funcResize);
},
 
/**
* Clears the list and resets the carousel.
*
* @name reset
* @type undefined
* @cat Plugins/jCarousel
*/
reset: function() {
this.list.empty();
 
this.list.css(this.lt, '0px');
this.list.css(this.wh, '10px');
 
if (this.options.initCallback != null)
this.options.initCallback(this, 'reset');
 
this.setup();
},
 
/**
* Reloads the carousel and adjusts positions.
*
* @name reload
* @type undefined
* @cat Plugins/jCarousel
*/
reload: function() {
if (this.tail != null && this.inTail)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + this.tail);
 
this.tail = null;
this.inTail = false;
 
if (this.options.reloadCallback != null)
this.options.reloadCallback(this);
 
if (this.options.visible != null) {
var self = this;
var di = Math.ceil(this.clipping() / this.options.visible), wh = 0, lt = 0;
$('li', this.list).each(function(i) {
wh += self.dimension(this, di);
if (i + 1 < self.first)
lt = wh;
});
 
this.list.css(this.wh, wh + 'px');
this.list.css(this.lt, -lt + 'px');
}
 
this.scroll(this.first, false);
},
 
/**
* Locks the carousel.
*
* @name lock
* @type undefined
* @cat Plugins/jCarousel
*/
lock: function() {
this.locked = true;
this.buttons();
},
 
/**
* Unlocks the carousel.
*
* @name unlock
* @type undefined
* @cat Plugins/jCarousel
*/
unlock: function() {
this.locked = false;
this.buttons();
},
 
/**
* Sets the size of the carousel.
*
* @name size
* @type undefined
* @param Number s The size of the carousel.
* @cat Plugins/jCarousel
*/
size: function(s) {
if (s != undefined) {
this.options.size = s;
if (!this.locked)
this.buttons();
}
 
return this.options.size;
},
 
/**
* Checks whether a list element exists for the given index (or index range).
*
* @name get
* @type bool
* @param Number i The index of the (first) element.
* @param Number i2 The index of the last element.
* @cat Plugins/jCarousel
*/
has: function(i, i2) {
if (i2 == undefined || !i2)
i2 = i;
 
if (this.options.size !== null && i2 > this.options.size)
i2 = this.options.size;
 
for (var j = i; j <= i2; j++) {
var e = this.get(j);
if (!e.length || e.hasClass('jcarousel-item-placeholder'))
return false;
}
 
return true;
},
 
/**
* Returns a jQuery object with list element for the given index.
*
* @name get
* @type jQuery
* @param Number i The index of the element.
* @cat Plugins/jCarousel
*/
get: function(i) {
return $('.jcarousel-item-' + i, this.list);
},
 
/**
* Adds an element for the given index to the list.
* If the element already exists, it updates the inner html.
* Returns the created element as jQuery object.
*
* @name add
* @type jQuery
* @param Number i The index of the element.
* @param String s The innerHTML of the element.
* @cat Plugins/jCarousel
*/
add: function(i, s) {
var e = this.get(i), old = 0, add = 0;
 
if (e.length == 0) {
var c, e = this.create(i), j = $jc.intval(i);
while (c = this.get(--j)) {
if (j <= 0 || c.length) {
j <= 0 ? this.list.prepend(e) : c.after(e);
break;
}
}
} else
old = this.dimension(e);
 
e.removeClass(this.className('jcarousel-item-placeholder'));
typeof s == 'string' ? e.html(s) : e.empty().append(s);
 
var di = this.options.visible != null ? Math.ceil(this.clipping() / this.options.visible) : null;
var wh = this.dimension(e, di) - old;
 
if (i > 0 && i < this.first)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - wh + 'px');
 
this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) + wh + 'px');
 
return e;
},
 
/**
* Removes an element for the given index from the list.
*
* @name remove
* @type undefined
* @param Number i The index of the element.
* @cat Plugins/jCarousel
*/
remove: function(i) {
var e = this.get(i);
 
// Check if item exists and is not currently visible
if (!e.length || (i >= this.first && i <= this.last))
return;
 
var d = this.dimension(e);
 
if (i < this.first)
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) + d + 'px');
 
e.remove();
 
this.list.css(this.wh, $jc.intval(this.list.css(this.wh)) - d + 'px');
},
 
/**
* Moves the carousel forwards.
*
* @name next
* @type undefined
* @cat Plugins/jCarousel
*/
next: function() {
this.stopAuto();
 
if (this.tail != null && !this.inTail)
this.scrollTail(false);
else
this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'last') && this.options.size != null && this.last == this.options.size) ? 1 : this.first + this.options.scroll);
},
 
/**
* Moves the carousel backwards.
*
* @name prev
* @type undefined
* @cat Plugins/jCarousel
*/
prev: function() {
this.stopAuto();
 
if (this.tail != null && this.inTail)
this.scrollTail(true);
else
this.scroll(((this.options.wrap == 'both' || this.options.wrap == 'first') && this.options.size != null && this.first == 1) ? this.options.size : this.first - this.options.scroll);
},
 
/**
* Scrolls the tail of the carousel.
*
* @name scrollTail
* @type undefined
* @param Bool b Whether scroll the tail back or forward.
* @cat Plugins/jCarousel
*/
scrollTail: function(b) {
if (this.locked || this.animating || !this.tail)
return;
 
var pos = $jc.intval(this.list.css(this.lt));
 
!b ? pos -= this.tail : pos += this.tail;
this.inTail = !b;
 
// Save for callbacks
this.prevFirst = this.first;
this.prevLast = this.last;
 
this.animate(pos);
},
 
/**
* Scrolls the carousel to a certain position.
*
* @name scroll
* @type undefined
* @param Number i The index of the element to scoll to.
* @param Bool a Flag indicating whether to perform animation.
* @cat Plugins/jCarousel
*/
scroll: function(i, a) {
if (this.locked || this.animating)
return;
 
this.animate(this.pos(i), a);
},
 
/**
* Prepares the carousel and return the position for a certian index.
*
* @name pos
* @type Number
* @param Number i The index of the element to scoll to.
* @cat Plugins/jCarousel
*/
pos: function(i) {
if (this.locked || this.animating)
return;
 
if (this.options.wrap != 'circular')
i = i < 1 ? 1 : (this.options.size && i > this.options.size ? this.options.size : i);
 
var back = this.first > i;
var pos = $jc.intval(this.list.css(this.lt));
 
// Create placeholders, new list width/height
// and new list position
var f = this.options.wrap != 'circular' && this.first <= 1 ? 1 : this.first;
var c = back ? this.get(f) : this.get(this.last);
var j = back ? f : f - 1;
var e = null, l = 0, p = false, d = 0;
 
while (back ? --j >= i : ++j < i) {
e = this.get(j);
p = !e.length;
if (e.length == 0) {
e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
c[back ? 'before' : 'after' ](e);
}
 
c = e;
d = this.dimension(e);
 
if (p)
l += d;
 
if (this.first != null && (this.options.wrap == 'circular' || (j >= 1 && (this.options.size == null || j <= this.options.size))))
pos = back ? pos + d : pos - d;
}
 
// Calculate visible items
var clipping = this.clipping();
var cache = [];
var visible = 0, j = i, v = 0;
var c = this.get(i - 1);
 
while (++visible) {
e = this.get(j);
p = !e.length;
if (e.length == 0) {
e = this.create(j).addClass(this.className('jcarousel-item-placeholder'));
// This should only happen on a next scroll
c.length == 0 ? this.list.prepend(e) : c[back ? 'before' : 'after' ](e);
}
 
c = e;
var d = this.dimension(e);
if (d == 0) {
alert('jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...');
return 0;
}
 
if (this.options.wrap != 'circular' && this.options.size !== null && j > this.options.size)
cache.push(e);
else if (p)
l += d;
 
v += d;
 
if (v >= clipping)
break;
 
j++;
}
 
// Remove out-of-range placeholders
for (var x = 0; x < cache.length; x++)
cache[x].remove();
 
// Resize list
if (l > 0) {
this.list.css(this.wh, this.dimension(this.list) + l + 'px');
 
if (back) {
pos -= l;
this.list.css(this.lt, $jc.intval(this.list.css(this.lt)) - l + 'px');
}
}
 
// Calculate first and last item
var last = i + visible - 1;
if (this.options.wrap != 'circular' && this.options.size && last > this.options.size)
last = this.options.size;
 
if (j > last) {
visible = 0, j = last, v = 0;
while (++visible) {
var e = this.get(j--);
if (!e.length)
break;
v += this.dimension(e);
if (v >= clipping)
break;
}
}
 
var first = last - visible + 1;
if (this.options.wrap != 'circular' && first < 1)
first = 1;
 
if (this.inTail && back) {
pos += this.tail;
this.inTail = false;
}
 
this.tail = null;
if (this.options.wrap != 'circular' && last == this.options.size && (last - visible + 1) >= 1) {
var m = $jc.margin(this.get(last), !this.options.vertical ? 'marginRight' : 'marginBottom');
if ((v - m) > clipping)
this.tail = v - clipping - m;
}
 
// Adjust position
while (i-- > first)
pos += this.dimension(this.get(i));
 
// Save visible item range
this.prevFirst = this.first;
this.prevLast = this.last;
this.first = first;
this.last = last;
 
return pos;
},
 
/**
* Animates the carousel to a certain position.
*
* @name animate
* @type undefined
* @param mixed p Position to scroll to.
* @param Bool a Flag indicating whether to perform animation.
* @cat Plugins/jCarousel
*/
animate: function(p, a) {
if (this.locked || this.animating)
return;
 
this.animating = true;
 
var self = this;
var scrolled = function() {
self.animating = false;
 
if (p == 0)
self.list.css(self.lt, 0);
 
if (self.options.wrap == 'both' || self.options.wrap == 'last' || self.options.size == null || self.last < self.options.size)
self.startAuto();
 
self.buttons();
self.notify('onAfterAnimation');
};
 
this.notify('onBeforeAnimation');
 
// Animate
if (!this.options.animation || a == false) {
this.list.css(this.lt, p + 'px');
scrolled();
} else {
var o = !this.options.vertical ? {'left': p} : {'top': p};
this.list.animate(o, this.options.animation, this.options.easing, scrolled);
}
},
 
/**
* Starts autoscrolling.
*
* @name auto
* @type undefined
* @param Number s Seconds to periodically autoscroll the content.
* @cat Plugins/jCarousel
*/
startAuto: function(s) {
if (s != undefined)
this.options.auto = s;
 
if (this.options.auto == 0)
return this.stopAuto();
 
if (this.timer != null)
return;
 
var self = this;
this.timer = setTimeout(function() { self.next(); }, this.options.auto * 1000);
},
 
/**
* Stops autoscrolling.
*
* @name stopAuto
* @type undefined
* @cat Plugins/jCarousel
*/
stopAuto: function() {
if (this.timer == null)
return;
 
clearTimeout(this.timer);
this.timer = null;
},
 
/**
* Sets the states of the prev/next buttons.
*
* @name buttons
* @type undefined
* @cat Plugins/jCarousel
*/
buttons: function(n, p) {
if (n == undefined || n == null) {
var n = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'first') || this.options.size == null || this.last < this.options.size);
if (!this.locked && (!this.options.wrap || this.options.wrap == 'first') && this.options.size != null && this.last >= this.options.size)
n = this.tail != null && !this.inTail;
}
 
if (p == undefined || p == null) {
var p = !this.locked && this.options.size !== 0 && ((this.options.wrap && this.options.wrap != 'last') || this.first > 1);
if (!this.locked && (!this.options.wrap || this.options.wrap == 'last') && this.options.size != null && this.first == 1)
p = this.tail != null && this.inTail;
}
 
var self = this;
 
this.buttonNext[n ? 'bind' : 'unbind'](this.options.buttonNextEvent, this.funcNext)[n ? 'removeClass' : 'addClass'](this.className('jcarousel-next-disabled')).attr('disabled', n ? false : true);
this.buttonPrev[p ? 'bind' : 'unbind'](this.options.buttonPrevEvent, this.funcPrev)[p ? 'removeClass' : 'addClass'](this.className('jcarousel-prev-disabled')).attr('disabled', p ? false : true);
 
if (this.buttonNext.length > 0 && (this.buttonNext[0].jcarouselstate == undefined || this.buttonNext[0].jcarouselstate != n) && this.options.buttonNextCallback != null) {
this.buttonNext.each(function() { self.options.buttonNextCallback(self, this, n); });
this.buttonNext[0].jcarouselstate = n;
}
 
if (this.buttonPrev.length > 0 && (this.buttonPrev[0].jcarouselstate == undefined || this.buttonPrev[0].jcarouselstate != p) && this.options.buttonPrevCallback != null) {
this.buttonPrev.each(function() { self.options.buttonPrevCallback(self, this, p); });
this.buttonPrev[0].jcarouselstate = p;
}
},
 
notify: function(evt) {
var state = this.prevFirst == null ? 'init' : (this.prevFirst < this.first ? 'next' : 'prev');
 
// Load items
this.callback('itemLoadCallback', evt, state);
 
if (this.prevFirst !== this.first) {
this.callback('itemFirstInCallback', evt, state, this.first);
this.callback('itemFirstOutCallback', evt, state, this.prevFirst);
}
 
if (this.prevLast !== this.last) {
this.callback('itemLastInCallback', evt, state, this.last);
this.callback('itemLastOutCallback', evt, state, this.prevLast);
}
 
this.callback('itemVisibleInCallback', evt, state, this.first, this.last, this.prevFirst, this.prevLast);
this.callback('itemVisibleOutCallback', evt, state, this.prevFirst, this.prevLast, this.first, this.last);
},
 
callback: function(cb, evt, state, i1, i2, i3, i4) {
if (this.options[cb] == undefined || (typeof this.options[cb] != 'object' && evt != 'onAfterAnimation'))
return;
 
var callback = typeof this.options[cb] == 'object' ? this.options[cb][evt] : this.options[cb];
 
if (!$.isFunction(callback))
return;
 
var self = this;
 
if (i1 === undefined)
callback(self, state, evt);
else if (i2 === undefined)
this.get(i1).each(function() { callback(self, this, i1, state, evt); });
else {
for (var i = i1; i <= i2; i++)
if (i !== null && !(i >= i3 && i <= i4))
this.get(i).each(function() { callback(self, this, i, state, evt); });
}
},
 
create: function(i) {
return this.format('<li></li>', i);
},
 
format: function(e, i) {
var $e = $(e).addClass(this.className('jcarousel-item')).addClass(this.className('jcarousel-item-' + i));
$e.attr('jcarouselindex', i);
return $e;
},
 
className: function(c) {
return c + ' ' + c + (!this.options.vertical ? '-horizontal' : '-vertical');
},
 
dimension: function(e, d) {
var el = e.jquery != undefined ? e[0] : e;
 
var old = !this.options.vertical ?
el.offsetWidth + $jc.margin(el, 'marginLeft') + $jc.margin(el, 'marginRight') :
el.offsetHeight + $jc.margin(el, 'marginTop') + $jc.margin(el, 'marginBottom');
 
if (d == undefined || old == d)
return old;
 
var w = !this.options.vertical ?
d - $jc.margin(el, 'marginLeft') - $jc.margin(el, 'marginRight') :
d - $jc.margin(el, 'marginTop') - $jc.margin(el, 'marginBottom');
 
$(el).css(this.wh, w + 'px');
 
return this.dimension(el);
},
 
clipping: function() {
return !this.options.vertical ?
this.clip[0].offsetWidth - $jc.intval(this.clip.css('borderLeftWidth')) - $jc.intval(this.clip.css('borderRightWidth')) :
this.clip[0].offsetHeight - $jc.intval(this.clip.css('borderTopWidth')) - $jc.intval(this.clip.css('borderBottomWidth'));
},
 
index: function(i, s) {
if (s == undefined)
s = this.options.size;
 
return Math.round((((i-1) / s) - Math.floor((i-1) / s)) * s) + 1;
}
});
 
$jc.extend({
/**
* Gets/Sets the global default configuration properties.
*
* @name defaults
* @descr Gets/Sets the global default configuration properties.
* @type Hash
* @param Hash d A set of key/value pairs to set as configuration properties.
* @cat Plugins/jCarousel
*/
defaults: function(d) {
return $.extend(defaults, d || {});
},
 
margin: function(e, p) {
if (!e)
return 0;
 
var el = e.jquery != undefined ? e[0] : e;
 
if (p == 'marginRight' && $.browser.safari) {
var old = {'display': 'block', 'float': 'none', 'width': 'auto'}, oWidth, oWidth2;
 
$.swap(el, old, function() { oWidth = el.offsetWidth; });
 
old['marginRight'] = 0;
$.swap(el, old, function() { oWidth2 = el.offsetWidth; });
 
return oWidth2 - oWidth;
}
 
return $jc.intval($.css(el, p));
},
 
intval: function(v) {
v = parseInt(v);
return isNaN(v) ? 0 : v;
}
});
 
})(jQuery);
/trunk/extension/bccarousel/design/standard/javascript/carousel/carousel.js New file
0,0 → 1,362
function Slide(carousel_unique_id, ele, options) {
this.ele = ele;
this.carousel_unique_id = carousel_unique_id;
// merge options
this.options = options;
//for (var prop in this.options) {
// this.options[prop] = this.options[prop];
//}
this.dist_travelled = 0;
if (this.options.dir == 'right') {
this.axis = 'x';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'up') {
this.axis = 'y';
this.dist = -(this.options.dist);
this.step = -(this.options.step);
} else if (this.options.dir == 'down') {
this.axis = 'y'
this.dist = this.options.dist;
this.step = this.options.step;
} else {
this.axis = 'x';
this.dist = this.options.dist;
this.step = this.options.step;
}
 
this.interval = setInterval('thisSlide['+this.carousel_unique_id+'].doSlide()', this.options.delay);
this.doSlide = function() {
clearInterval(this.interval);
 
// if we've travelled as much as we're supposed to, finish up
if (this.dist_travelled>=this.options.dist) {
if (this.dist_travelled>this.options.dist ) {
this.adjust = this.dist_travelled - this.options.dist;
if (this.dist < 0) {
this.modifyMargin(this.adjust);
} else {
this.modifyMargin(-(this.adjust));
}
}
thisCarousel[this.carousel_unique_id].animOnFinish();
}
else {
if (!this.ele.style.marginLeft) {
this.ele.style.marginLeft = "0px";
}
if (!this.ele.style.marginTop) {
this.ele.style.marginTop = "0px";
}
this.modifyMargin(this.step);
this.dist_travelled += this.options.step;
this.interval = setInterval('thisSlide['+this.carousel_unique_id+'].doSlide()', this.options.delay);
}
};
 
this.modifyMargin = function(amt) {
 
if (this.axis == 'x') {
this.ele.style.marginLeft = (parseInt(this.ele.style.marginLeft) + amt)+"px";
} else {
this.ele.style.marginTop = (parseInt(this.ele.style.marginTop) + amt) + "px";
}
};
}
// dir = direction, dist = distance
//Slide.prototype.options = {
// dir: 'left', // left right up down
// dist: 100,
// step: 2,
// delay: 100
//}
 
 
 
var carousel_unique_id;
thisCarousel = new Array();
thisSlide = new Array();
 
function carousel_unique_namespace(scroller_container_id, scroller_inner_id, prev_btn, next_btn) {
 
if (typeof(carousel_unique_id) == "undefined") {
carousel_unique_id = 0;
}
else {
carousel_unique_id++;
}
 
this.scroller_inner_id = scroller_inner_id + '_' + carousel_unique_id;
document.getElementById(scroller_inner_id).id = this.scroller_inner_id;
this.scroller_container_id = scroller_container_id + '_' + carousel_unique_id;
document.getElementById(scroller_container_id).id = this.scroller_container_id;
this.prev_btn = prev_btn + '_' + carousel_unique_id;
document.getElementById(prev_btn).id = this.prev_btn;
this.next_btn = next_btn + '_' + carousel_unique_id;
document.getElementById(next_btn).id = this.next_btn;
}
 
function carousel_init(carousel_unique_id, childrenCount, items_to_show, autoscroll, autoscroll_hold_time) {
thisCarousel[carousel_unique_id] = new Carousel;
thisCarousel[carousel_unique_id].init('carouselContainer_' + carousel_unique_id, 'carouselInner_' + carousel_unique_id, 'prevBtn_' + carousel_unique_id, 'nextBtn_' + carousel_unique_id, childrenCount, items_to_show, autoscroll, autoscroll_hold_time, 20, 50, thisCarousel[carousel_unique_id], carousel_unique_id);
}
 
 
function Carousel() {
 
this.init = function(scroller_container_id, scroller_inner_id, prev_btn, next_btn, item_count, items_to_show, auto_play, auto_play_delay, slide_step, slide_speed, carousel_id, carousel_unique_id) {
this.carousel_unique_id = carousel_unique_id;
this.scroller_container_id = scroller_container_id;
this.scroller_inner_id = scroller_inner_id;
this.prev_btn = prev_btn;
this.next_btn = next_btn;
this.is_running = false;
this.current_direction = ''; // set when an animation is running, previous or next
addEvent(document.getElementById(this.prev_btn), "click", function() { carousel_id.auto_play = false; carousel_id.showPrevious(); });
addEvent(document.getElementById(this.next_btn), "click", function() { carousel_id.auto_play = false; carousel_id.showNext(true); });
addEvent(document.getElementById(this.prev_btn), "mouseover", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn-over.png'; });
addEvent(document.getElementById(this.prev_btn), "mouseout", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; });
addEvent(document.getElementById(this.next_btn), "mouseover", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn-over.png'; });
addEvent(document.getElementById(this.next_btn), "mouseout", function() { if ('black' != this.style.color) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; });
 
if (typeof(items_to_show) == "undefined") {
this.items_to_show = 1;
} else {
this.items_to_show = items_to_show;
}
 
this.auto_play = auto_play;
this.auto_play_delay = auto_play_delay;
this.auto_play_interval = setInterval("thisCarousel["+this.carousel_unique_id+"].showNext(false)", this.auto_play_delay);
 
if (typeof(slide_speed) == "undefined" || !slide_speed) {
this.slide_speed = 100;
} else {
this.slide_speed = slide_speed;
}
if (typeof(slide_step) == "undefined" || !slide_step) {
this.slide_step = 20;
} else {
this.slide_step = slide_step;
}
this.item_count = item_count;
this.container_width = Math.floor(parseInt(document.getElementById(this.scroller_container_id).offsetWidth) / this.items_to_show);
 
// adjust the carousel inner width a bit to make all the elements show up
document.getElementById(this.scroller_inner_id).style.width = (parseInt(document.getElementById(this.scroller_container_id).offsetWidth) * (this.item_count+1)) + "px";
document.getElementById(this.scroller_inner_id).style.visibility = "visible";
this.current_focus = 1;
this.disablePrevOrNext();
this.colour_value_r = 21;
this.colour_value_g = 108;
this.colour_value_b = 153;
this.current_opacity = 100;
};
this.showPrevious = function() {
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext(false)', this.auto_play_delay);
}
if (this.is_running || this.current_focus <= 1) {
return;
}
this.inner = document.getElementById(this.scroller_inner_id);
this.current_direction = 'previous';
this.is_running = true;
thisSlide[this.carousel_unique_id] = new Slide(this.carousel_unique_id, this.inner, {dir: 'left', dist: this.container_width, step: this.slide_step, delay: this.slide_speed});
};
 
this.restartBeginning = function(div_to_fade) {
// Text color fade modified from http://www.albeesonline.com/blog/2008/09/25/javascript-fading-effect/
// Image fade modified from Doug Plant at http://www.mugo.ca
if (this.item_count <= this.items_to_show) {
return;
}
clearTimeout(this.restart);
var inner = document.getElementById(div_to_fade);
this.carousel_a_tags = this.inner.getElementsByTagName("a");
this.carousel_a_num = this.carousel_a_tags.length;
this.carousel_img_tags = this.inner.getElementsByTagName("img");
this.carousel_img_num = this.carousel_img_tags.length;
this.carousel_span_tags = this.inner.getElementsByTagName("span");
this.carousel_span_num = this.carousel_span_tags.length;
this.carousel_p_tags = this.inner.getElementsByTagName("p");
this.carousel_p_num = this.carousel_p_tags.length;
this.carousel_div_tags = this.inner.getElementsByTagName("div");
this.carousel_div_num = this.carousel_div_tags.length;
if(((this.colour_value_r + this.colour_value_g + this.colour_value_b) < 765) || this.current_opacity > 0) {
this.colour_value_r = Math.min(255, this.colour_value_r + 10);
this.colour_value_g = Math.min(255, this.colour_value_g + 10);
this.colour_value_b = Math.min(255, this.colour_value_b + 10);
this.current_opacity = Math.max(0, this.current_opacity - 5);
for(i=0;i<this.carousel_a_num;i++) {
this.carousel_a_tags[i].style.color="rgb("+this.colour_value_r+","+this.colour_value_g+","+this.colour_value_b+")";
}
for(i=0;i<this.carousel_img_num;i++) {
this.carousel_img_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_img_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
for(i=0;i<this.carousel_span_num;i++) {
this.carousel_span_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_span_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
for(i=0;i<this.carousel_p_num;i++) {
this.carousel_p_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_p_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
 
for(i=0;i<this.carousel_div_num;i++) {
this.carousel_div_tags[i].style.opacity = this.current_opacity / 100;
this.carousel_div_tags[i].style.filter = "alpha(opacity=" + this.current_opacity + ")";
}
this.car_timeout = setTimeout("thisCarousel["+this.carousel_unique_id+"].restartBeginning('" + div_to_fade + "', " + this.manual+ ")",50);
}
else {
if (typeof(this.car_timeout) != "undefined") {
clearTimeout(this.car_timeout);
setTimeout("thisCarousel["+this.carousel_unique_id+"].restoreBeginning("+this.manual+")", 1000);
}
}
};
this.restoreBeginning = function() {
document.getElementById(this.scroller_inner_id).style.marginLeft = '0px';
for(i=0;i<this.carousel_a_num;i++) {
this.carousel_a_tags[i].style.color="rgb(21, 108, 153)";
}
for(i=0;i<this.carousel_img_num;i++) {
this.carousel_img_tags[i].style.opacity = 100;
this.carousel_img_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_span_num;i++) {
this.carousel_span_tags[i].style.opacity = 100;
this.carousel_span_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_p_num;i++) {
this.carousel_p_tags[i].style.opacity = 100;
this.carousel_p_tags[i].style.filter = "alpha(opacity=100)";
}
for(i=0;i<this.carousel_div_num;i++) {
this.carousel_div_tags[i].style.opacity = 100;
this.carousel_div_tags[i].style.filter = "alpha(opacity=100)";
}
this.colour_value_r = 21;
this.colour_value_g = 108;
this.colour_value_b = 153;
this.current_opacity = 100;
this.animOnFinish(1);
if (!this.manual) {
this.auto_play = true;
clearInterval(this.auto_play_interval);
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext(false)', this.auto_play_delay);
//setTimeout("thisCarousel["+this.carousel_unique_id+"].showNext("+this.manual+")", this.auto_play_delay);
}
};
this.showNext = function(manual) {
if (typeof(manual) == "undefined") {
manual = false;
}
this.manual = manual;
 
if (this.current_focus >= (this.item_count - this.items_to_show + 1)) {
document.getElementById(this.prev_btn).style.display='none';
document.getElementById(this.next_btn).style.display='none';
this.restartBeginning(this.scroller_inner_id);
}
// autoplay
if (typeof(this.auto_play_interval) != "undefined") {
clearInterval(this.auto_play_interval);
}
if (this.auto_play) {
this.auto_play_interval = setInterval('thisCarousel['+this.carousel_unique_id+'].showNext('+this.manual+')', this.auto_play_delay);
}
if (this.is_running || this.current_focus >= (this.item_count - this.items_to_show + 1) ) {
if (this.current_focus >= (this.item_count - this.items_to_show)) {
this.auto_play = false;
}
return;
}
this.inner = document.getElementById(this.scroller_inner_id);
this.current_direction = 'next';
this.is_running = true;
thisSlide[this.carousel_unique_id] = '';
thisSlide[this.carousel_unique_id] = new Slide(this.carousel_unique_id, this.inner, {dir: 'right', dist: this.container_width, step: this.slide_step, delay:this.slide_speed});
};
this.animOnFinish = function(new_focus) {
this.is_running = false;
if (1 == new_focus) {
this.current_focus = new_focus;
}
else if (this.current_direction == 'next') {
this.current_focus++;
} else {
this.current_focus--;
}
 
this.disablePrevOrNext();
 
if (!this.manual && this.current_focus >= (this.item_count - this.items_to_show + 1)) {
this.restart = setTimeout("thisCarousel["+this.carousel_unique_id+"].restartBeginning('"+this.scroller_inner_id+"', "+this.manual+")", this.auto_play_delay);
}
};
this.disablePrevOrNext = function() {
this.previous_disabled = false;
this.next_disabled = false;
if (this.current_focus == 1) {
//document.getElementById(this.prev_btn).disabled=true;
document.getElementById(this.prev_btn).style.cursor="default";
document.getElementById(this.prev_btn).style.display="none";
document.getElementById(this.prev_btn).style.color = 'black';
// document.getElementById(this.prev_btn).src= '/extension/stdl/design/stdl/images/carousel/prevbtn-restart.gif';
this.previous_disabled = true;
}
else {
document.getElementById(this.prev_btn).style.color = 'red';
}
// Don't want to show any blank spaces
if (this.current_focus >= (this.item_count - this.items_to_show + 1) ) {
document.getElementById(this.next_btn).src= '/extension/stdl/design/stdl/images/carousel/prevbtn-restart.gif';
document.getElementById(this.next_btn).style.color = 'black';
//document.getElementById(this.next_btn).style.cursor="default";
//document.getElementById(this.next_btn).style.display="none";
document.getElementById(this.next_btn).style.cursor="pointer";
this.next_disabled = true;
}
else {
document.getElementById(this.next_btn).style.color = 'red';
document.getElementById(this.next_btn).src= '/extension/stdl/design/stdl/images/carousel/nextbtn.png';
}
if (!this.previous_disabled) {
document.getElementById(this.prev_btn).src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; document.getElementById(this.prev_btn).style.display = '';
document.getElementById(this.prev_btn).style.cursor="pointer";
}
if (!this.next_disabled) {
document.getElementById(this.next_btn).src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; document.getElementById(this.next_btn).style.display = '';
document.getElementById(this.next_btn).style.cursor="pointer";
}
}
}
/trunk/extension/bccarousel/design/standard/javascript/carousel/jquery.min.js New file
0,0 → 1,19
/*
* jQuery JavaScript Library v1.3.1
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-01-21 20:42:16 -0500 (Wed, 21 Jan 2009)
* Revision: 6158
*/
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.makeArray(E))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(E){return E===g?o.makeArray(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,find:function(E){if(this.length===1&&!/,/.test(E)){var G=this.pushStack([],"find",E);G.length=0;o.find(E,this[0],G);return G}else{var F=o.map(this,function(H){return o.find(E,H)});return this.pushStack(/[^+>] [^+>]/.test(E)?o.unique(F):F,"find",E)}},clone:function(F){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.cloneNode(true),H=document.createElement("div");H.appendChild(I);return o.clean([H.innerHTML])[0]}else{return this.cloneNode(true)}});var G=E.find("*").andSelf().each(function(){if(this[h]!==g){this[h]=null}});if(F===true){this.find("*").andSelf().each(function(I){if(this.nodeType==3){return}var H=o.data(this,"events");for(var K in H){for(var J in H[K]){o.event.add(G[I],K,H[K][J],H[K][J].data)}}})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var F=o.expr.match.POS.test(E)?o(E):null;return this.map(function(){var G=this;while(G&&G.ownerDocument){if(F?F.index(G)>-1:o(G).is(E)){return G}G=G.parentNode}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML:null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=o.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild,E=this.length>1?J.cloneNode(true):J;if(I){for(var H=0,F=this.length;H<F;H++){M.call(L(this[H],I),H>0?E.cloneNode(true):J)}}if(G){o.each(G,z)}}return this;function L(O,P){return N&&o.nodeName(O,"table")&&o.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){G=o.trim(G);if(G){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return !o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(G,E,I){if(E=="width"||E=="height"){var K,F={position:"absolute",visibility:"hidden",display:"block"},J=E=="width"?["Left","Right"]:["Top","Bottom"];function H(){K=E=="width"?G.offsetWidth:G.offsetHeight;var M=0,L=0;o.each(J,function(){M+=parseFloat(o.curCSS(G,"padding"+this,true))||0;L+=parseFloat(o.curCSS(G,"border"+this+"Width",true))||0});K-=Math.round(M+L)}if(o(G).is(":visible")){H()}else{o.swap(G,F,H)}return Math.max(0,K)}return o.curCSS(G,E,I)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,R){if(typeof R==="number"){R+=""}if(!R){return}if(typeof R==="string"){R=R.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+"></"+S+">"});var O=o.trim(R).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+R+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var N=!O.indexOf("<table")&&O.indexOf("<tbody")<0?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&O.indexOf("<tbody")<0?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(R)){L.insertBefore(K.createTextNode(R.match(/^\s*/)[0]),L.firstChild)}R=o.makeArray(L.childNodes)}if(R.nodeType){G.push(R)}else{G=o.merge(G,R)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return -1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(){var G=arguments;return this.each(function(){for(var H=0,I=G.length;H<I;H++){o(G[H])[F](this)}})}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});
/*
* Sizzle CSS Selector Engine - v0.9.3
* Copyright 2009, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
* More information: http://sizzlejs.com/
*/
(function(){var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,K=0,G=Object.prototype.toString;var F=function(X,T,aa,ab){aa=aa||[];T=T||document;if(T.nodeType!==1&&T.nodeType!==9){return[]}if(!X||typeof X!=="string"){return aa}var Y=[],V,ae,ah,S,ac,U,W=true;Q.lastIndex=0;while((V=Q.exec(X))!==null){Y.push(V[1]);if(V[2]){U=RegExp.rightContext;break}}if(Y.length>1&&L.exec(X)){if(Y.length===2&&H.relative[Y[0]]){ae=I(Y[0]+Y[1],T)}else{ae=H.relative[Y[0]]?[T]:F(Y.shift(),T);while(Y.length){X=Y.shift();if(H.relative[X]){X+=Y.shift()}ae=I(X,ae)}}}else{var ad=ab?{expr:Y.pop(),set:E(ab)}:F.find(Y.pop(),Y.length===1&&T.parentNode?T.parentNode:T,P(T));ae=F.filter(ad.expr,ad.set);if(Y.length>0){ah=E(ae)}else{W=false}while(Y.length){var ag=Y.pop(),af=ag;if(!H.relative[ag]){ag=""}else{af=Y.pop()}if(af==null){af=T}H.relative[ag](ah,af,P(T))}}if(!ah){ah=ae}if(!ah){throw"Syntax error, unrecognized expression: "+(ag||X)}if(G.call(ah)==="[object Array]"){if(!W){aa.push.apply(aa,ah)}else{if(T.nodeType===1){for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&(ah[Z]===true||ah[Z].nodeType===1&&J(T,ah[Z]))){aa.push(ae[Z])}}}else{for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&ah[Z].nodeType===1){aa.push(ae[Z])}}}}}else{E(ah,aa)}if(U){F(U,T,aa,ab)}return aa};F.matches=function(S,T){return F(S,null,null,T)};F.find=function(Z,S,aa){var Y,W;if(!Z){return[]}for(var V=0,U=H.order.length;V<U;V++){var X=H.order[V],W;if((W=H.match[X].exec(Z))){var T=RegExp.leftContext;if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");Y=H.find[X](W,S,aa);if(Y!=null){Z=Z.replace(H.match[X],"");break}}}}if(!Y){Y=S.getElementsByTagName("*")}return{set:Y,expr:Z}};F.filter=function(ab,aa,ae,V){var U=ab,ag=[],Y=aa,X,S;while(ab&&aa.length){for(var Z in H.filter){if((X=H.match[Z].exec(ab))!=null){var T=H.filter[Z],af,ad;S=false;if(Y==ag){ag=[]}if(H.preFilter[Z]){X=H.preFilter[Z](X,Y,ae,ag,V);if(!X){S=af=true}else{if(X===true){continue}}}if(X){for(var W=0;(ad=Y[W])!=null;W++){if(ad){af=T(ad,X,W,Y);var ac=V^!!af;if(ae&&af!=null){if(ac){S=true}else{Y[W]=false}}else{if(ac){ag.push(ad);S=true}}}}}if(af!==g){if(!ae){Y=ag}ab=ab.replace(H.match[Z],"");if(!S){return[]}break}}}ab=ab.replace(/\s*,\s*/,"");if(ab==U){if(S==null){throw"Syntax error, unrecognized expression: "+ab}else{break}}U=ab}return Y};var H=F.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/,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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(S){return S.getAttribute("href")}},relative:{"+":function(W,T){for(var U=0,S=W.length;U<S;U++){var V=W[U];if(V){var X=V.previousSibling;while(X&&X.nodeType!==1){X=X.previousSibling}W[U]=typeof T==="string"?X||false:X===T}}if(typeof T==="string"){F.filter(T,W,true)}},">":function(X,T,Y){if(typeof T==="string"&&!/\W/.test(T)){T=Y?T:T.toUpperCase();for(var U=0,S=X.length;U<S;U++){var W=X[U];if(W){var V=W.parentNode;X[U]=V.nodeName===T?V:false}}}else{for(var U=0,S=X.length;U<S;U++){var W=X[U];if(W){X[U]=typeof T==="string"?W.parentNode:W.parentNode===T}}if(typeof T==="string"){F.filter(T,X,true)}}},"":function(V,T,X){var U="done"+(K++),S=R;if(!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("parentNode",T,U,V,W,X)},"~":function(V,T,X){var U="done"+(K++),S=R;if(typeof T==="string"&&!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("previousSibling",T,U,V,W,X)}},find:{ID:function(T,U,V){if(typeof U.getElementById!=="undefined"&&!V){var S=U.getElementById(T[1]);return S?[S]:[]}},NAME:function(S,T,U){if(typeof T.getElementsByName!=="undefined"&&!U){return T.getElementsByName(S[1])}},TAG:function(S,T){return T.getElementsByTagName(S[1])}},preFilter:{CLASS:function(V,T,U,S,Y){V=" "+V[1].replace(/\\/g,"")+" ";var X;for(var W=0;(X=T[W])!=null;W++){if(X){if(Y^(" "+X.className+" ").indexOf(V)>=0){if(!U){S.push(X)}}else{if(U){T[W]=false}}}}return false},ID:function(S){return S[1].replace(/\\/g,"")},TAG:function(T,S){for(var U=0;S[U]===false;U++){}return S[U]&&P(S[U])?T[1]:T[1].toUpperCase()},CHILD:function(S){if(S[1]=="nth"){var T=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(S[2]=="even"&&"2n"||S[2]=="odd"&&"2n+1"||!/\D/.test(S[2])&&"0n+"+S[2]||S[2]);S[2]=(T[1]+(T[2]||1))-0;S[3]=T[3]-0}S[0]="done"+(K++);return S},ATTR:function(T){var S=T[1].replace(/\\/g,"");if(H.attrMap[S]){T[1]=H.attrMap[S]}if(T[2]==="~="){T[4]=" "+T[4]+" "}return T},PSEUDO:function(W,T,U,S,X){if(W[1]==="not"){if(W[3].match(Q).length>1){W[3]=F(W[3],null,null,T)}else{var V=F.filter(W[3],T,U,true^X);if(!U){S.push.apply(S,V)}return false}}else{if(H.match.POS.test(W[0])){return true}}return W},POS:function(S){S.unshift(true);return S}},filters:{enabled:function(S){return S.disabled===false&&S.type!=="hidden"},disabled:function(S){return S.disabled===true},checked:function(S){return S.checked===true},selected:function(S){S.parentNode.selectedIndex;return S.selected===true},parent:function(S){return !!S.firstChild},empty:function(S){return !S.firstChild},has:function(U,T,S){return !!F(S[3],U).length},header:function(S){return/h\d/i.test(S.nodeName)},text:function(S){return"text"===S.type},radio:function(S){return"radio"===S.type},checkbox:function(S){return"checkbox"===S.type},file:function(S){return"file"===S.type},password:function(S){return"password"===S.type},submit:function(S){return"submit"===S.type},image:function(S){return"image"===S.type},reset:function(S){return"reset"===S.type},button:function(S){return"button"===S.type||S.nodeName.toUpperCase()==="BUTTON"},input:function(S){return/input|select|textarea|button/i.test(S.nodeName)}},setFilters:{first:function(T,S){return S===0},last:function(U,T,S,V){return T===V.length-1},even:function(T,S){return S%2===0},odd:function(T,S){return S%2===1},lt:function(U,T,S){return T<S[3]-0},gt:function(U,T,S){return T>S[3]-0},nth:function(U,T,S){return S[3]-0==T},eq:function(U,T,S){return S[3]-0==T}},filter:{CHILD:function(S,V){var Y=V[1],Z=S.parentNode;var X=V[0];if(Z&&(!Z[X]||!S.nodeIndex)){var W=1;for(var T=Z.firstChild;T;T=T.nextSibling){if(T.nodeType==1){T.nodeIndex=W++}}Z[X]=W-1}if(Y=="first"){return S.nodeIndex==1}else{if(Y=="last"){return S.nodeIndex==Z[X]}else{if(Y=="only"){return Z[X]==1}else{if(Y=="nth"){var ab=false,U=V[2],aa=V[3];if(U==1&&aa==0){return true}if(U==0){if(S.nodeIndex==aa){ab=true}}else{if((S.nodeIndex-aa)%U==0&&(S.nodeIndex-aa)/U>=0){ab=true}}return ab}}}}},PSEUDO:function(Y,U,V,Z){var T=U[1],W=H.filters[T];if(W){return W(Y,V,U,Z)}else{if(T==="contains"){return(Y.textContent||Y.innerText||"").indexOf(U[3])>=0}else{if(T==="not"){var X=U[3];for(var V=0,S=X.length;V<S;V++){if(X[V]===Y){return false}}return true}}}},ID:function(T,S){return T.nodeType===1&&T.getAttribute("id")===S},TAG:function(T,S){return(S==="*"&&T.nodeType===1)||T.nodeName===S},CLASS:function(T,S){return S.test(T.className)},ATTR:function(W,U){var S=H.attrHandle[U[1]]?H.attrHandle[U[1]](W):W[U[1]]||W.getAttribute(U[1]),X=S+"",V=U[2],T=U[4];return S==null?V==="!=":V==="="?X===T:V==="*="?X.indexOf(T)>=0:V==="~="?(" "+X+" ").indexOf(T)>=0:!U[4]?S:V==="!="?X!=T:V==="^="?X.indexOf(T)===0:V==="$="?X.substr(X.length-T.length)===T:V==="|="?X===T||X.substr(0,T.length+1)===T+"-":false},POS:function(W,T,U,X){var S=T[2],V=H.setFilters[S];if(V){return V(W,U,T,X)}}}};var L=H.match.POS;for(var N in H.match){H.match[N]=RegExp(H.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(T,S){T=Array.prototype.slice.call(T);if(S){S.push.apply(S,T);return S}return T};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(M){E=function(W,V){var T=V||[];if(G.call(W)==="[object Array]"){Array.prototype.push.apply(T,W)}else{if(typeof W.length==="number"){for(var U=0,S=W.length;U<S;U++){T.push(W[U])}}else{for(var U=0;W[U];U++){T.push(W[U])}}}return T}}(function(){var T=document.createElement("form"),U="script"+(new Date).getTime();T.innerHTML="<input name='"+U+"'/>";var S=document.documentElement;S.insertBefore(T,S.firstChild);if(!!document.getElementById(U)){H.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?V.id===W[1]||typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id").nodeValue===W[1]?[V]:g:[]}};H.filter.ID=function(X,V){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&W&&W.nodeValue===V}}S.removeChild(T)})();(function(){var S=document.createElement("div");S.appendChild(document.createComment(""));if(S.getElementsByTagName("*").length>0){H.find.TAG=function(T,X){var W=X.getElementsByTagName(T[1]);if(T[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}return W}}S.innerHTML="<a href='#'></a>";if(S.firstChild&&S.firstChild.getAttribute("href")!=="#"){H.attrHandle.href=function(T){return T.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var S=F,T=document.createElement("div");T.innerHTML="<p class='TEST'></p>";if(T.querySelectorAll&&T.querySelectorAll(".TEST").length===0){return}F=function(X,W,U,V){W=W||document;if(!V&&W.nodeType===9&&!P(W)){try{return E(W.querySelectorAll(X),U)}catch(Y){}}return S(X,W,U,V)};F.find=S.find;F.filter=S.filter;F.selectors=S.selectors;F.matches=S.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){H.order.splice(1,0,"CLASS");H.find.CLASS=function(S,T){return T.getElementsByClassName(S[1])}}function O(T,Z,Y,ac,aa,ab){for(var W=0,U=ac.length;W<U;W++){var S=ac[W];if(S){S=S[T];var X=false;while(S&&S.nodeType){var V=S[Y];if(V){X=ac[V];break}if(S.nodeType===1&&!ab){S[Y]=W}if(S.nodeName===Z){X=S;break}S=S[T]}ac[W]=X}}}function R(T,Y,X,ab,Z,aa){for(var V=0,U=ab.length;V<U;V++){var S=ab[V];if(S){S=S[T];var W=false;while(S&&S.nodeType){if(S[X]){W=ab[S[X]];break}if(S.nodeType===1){if(!aa){S[X]=V}if(typeof Y!=="string"){if(S===Y){W=true;break}}else{if(F.filter(Y,[S]).length>0){W=S;break}}}S=S[T]}ab[V]=W}}}var J=document.compareDocumentPosition?function(T,S){return T.compareDocumentPosition(S)&16}:function(T,S){return T!==S&&(T.contains?T.contains(S):true)};var P=function(S){return S.nodeType===9&&S.documentElement.nodeName!=="HTML"||!!S.ownerDocument&&P(S.ownerDocument)};var I=function(S,Z){var V=[],W="",X,U=Z.nodeType?[Z]:Z;while((X=H.match.PSEUDO.exec(S))){W+=X[0];S=S.replace(H.match.PSEUDO,"")}S=H.relative[S]?S+"*":S;for(var Y=0,T=U.length;Y<T;Y++){F(S,U[Y],V)}return F.filter(W,V)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(S){return"hidden"===S.type||o.css(S,"display")==="none"||o.css(S,"visibility")==="hidden"};F.selectors.filters.visible=function(S){return"hidden"!==S.type&&o.css(S,"display")!=="none"&&o.css(S,"visibility")!=="hidden"};F.selectors.filters.animated=function(S){return o.grep(o.timers,function(T){return S===T.elem}).length};o.multiFilter=function(U,S,T){if(T){U=":not("+U+")"}return F.matches(U,S)};o.dir=function(U,T){var S=[],V=U[T];while(V&&V!=document){if(V.nodeType==1){S.push(V)}V=V[T]}return S};o.nth=function(W,S,U,V){S=S||1;var T=0;for(;W;W=W[U]){if(W.nodeType==1&&++T==S){break}}return W};o.sibling=function(U,T){var S=[];for(;U;U=U.nextSibling){if(U.nodeType==1&&U!=T){S.push(U)}}return S};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){G=false}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&typeof l.frameElement==="undefined"){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML=' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width="1px";L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L)})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}this[H].style.display=o.data(this[H],"olddisplay",K)}}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)==1){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n)}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(H,F){var E=H?"Left":"Top",G=H?"Right":"Bottom";o.fn["inner"+F]=function(){return this[F.toLowerCase()]()+j(this,"padding"+E)+j(this,"padding"+G)};o.fn["outer"+F]=function(J){return this["inner"+F]()+j(this,"border"+E+"Width")+j(this,"border"+G+"Width")+(J?j(this,"margin"+E)+j(this,"margin"+G):0)};var I=F.toLowerCase();o.fn[I]=function(J){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):J===g?(this.length?o.css(this[0],I):null):this.css(I,typeof J==="string"?J:J+"px")}})})();
/trunk/extension/bccarousel/design/standard/templates/full/carousel_prayer.tpl --- trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel_list.tpl (revision 0) +++ trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel_list.tpl (revision 1) @@ -0,0 +1,45 @@ +{** + * File containing the feature_scroller_list template + * + * @package stdl + * @version //autogentag// + * @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved. + * @license GPL v2 (or later) + *}
+ +

{$object.name|wash()}

+ {def $children = array() + $limit = 3 + $offset = 0} + + {if is_set( $object_parameters.limit )} + {set $limit = $object_parameters.limit} + {/if} + + {if is_set( $object_parameters.offset )} + {set $offset = $object_parameters.offset} + {/if} + + {set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id, + 'limit', $limit, + 'offset', $offset, + 'sort_by', $object.main_node.sort_array, + 'class_filter_type', 'exclude', + 'class_filter_array', array( 'sides' ) ) ) } + {if $children|count()} + {if and(eq($object.class_identifier, 'feature_list'), $object.data_map.show_images.content|eq( '1' ))} + {def $childcount = 1} + {foreach $children as $child} + {if and(gt($childcount, 1), $object.data_map.show_images.content|eq( '1' ))}
{/if} + {node_view_gui view=line content_node=$child} + {set $childcount = $childcount|inc()} + {/foreach} + {else} +
    + {foreach $children as $child} + {node_view_gui view=line content_node=$child} + {/foreach} +
+ {/if} + {/if} +
\ No newline at end of file
/trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel_single_kids.tpl New file
0,0 → 1,258
<style type="text/css">
{literal}
.feature_scroller_single {
// margin-bottom:60px;
}
.carouselContainer_single {
margin:0px;
padding:0px;
width: 208px !important;
max-width: 208px;
overflow: hidden;
}
.carouselInner_single {
margin:0px;
padding:0px;
width: 100%;
height: 100%;
visibility: hidden;
}
.bc_carousel_single {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
// text-align: center;
width: 208px !important;
max-width: 208px;
vertical-align: top;
}
.bc_carousel_single img {
display: block;
margin: 0px auto;
padding-right:7px;
}
h2.carousel_header_single {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title_single {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 11px;
// padding: 2px 8px;
text-align:left;
}
.prevBtn_single, .nextBtn_single {
cursor: pointer;
position: absolute;
margin-top: 140px;
}
.prevBtn_single {
}
.nextBtn_single {
// margin-left: 174px;
margin-left: 194px;
}
{/literal}
</style>
 
<div class="feature_scroller_single">
 
<div class="header"><h1>{$object.name|wash()}</h1></div>
<div class="inner1"><div class="inner2">
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
 
{def $children = array()
$limit = 0
$offset = 0}
 
{if is_set( $object_parameters.limit )}
{set $limit = $object_parameters.limit}
{/if}
 
{if is_set( $object_parameters.offset )}
{set $offset = $object_parameters.offset}
{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
 
{if $children|count()|gt( 0 )}
<script language="Javascript" type="text/javascript">
{literal}
// helper function, modify to handle disabling prev/next buttons
 
function preloadArrowImages() {
var img= new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-disabled.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-disabled.png";
}
preloadArrowImages();
{/literal}
{*{literal}
DOMReady(function() {
{/literal}
Carousel.init({$childrenCount}, 1, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}12000{/if}, disablePrevOrNext, 20, 50);
{literal}
addEvent(elm("prevBtn"), "click", function() { Carousel.auto_play = false; Carousel.showPrevious(); });
addEvent(elm("nextBtn"), "click", function() { Carousel.auto_play = false; Carousel.showNext(); });
addEvent(elm("prevBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn-over.png'; });
addEvent(elm("prevBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; });
addEvent(elm("nextBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn-over.png'; });
addEvent(elm("nextBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; });
});
{/literal}*}
</script>
{if gt($childrenCount,1)}<img id="prevBtn" class="prevBtn_single" src={"carousel/prevbtn.png"|ezimage()} /><img id="nextBtn" class="nextBtn_single" src={"carousel/nextbtn.png"|ezimage()} />
<div id="carouselContainer" class="carouselContainer_single">{/if}
<div id="carouselInner" class="carouselInner_single" style="vertical-align: top;">
 
{def $child=0
$child_image_url=0
$child_item_link=0
$child_item_link_text=0
$child_item_name=0
$child_item_url=0
$child_item_description=0
}
{def $maximum_height_filters=ezini( 'scroller_image', 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
{set $child_item_description=''}
{set $child_item_link=''}
{set $child_item_link_text=''}
{def $child_item_link_open=''}
{def $child_item_link_close=''}
{for 0 to sum($childrenCount,-1) as $counter}<div style="display: none;">
{set $child=$children.$counter}
{if $child.class_identifier|eq( 'a_featured_item' )}
{if $child.data_map.promo_pic.has_content}
{set $child_image_url=$child.data_map.promo_pic.value.scroller_image.url}
{elseif $child.data_map.picurl.has_content}
{set $child_image_url=$child.data_map.picurl.content}
{elseif $child.data_map.isbn.has_content}
{set $child_image_url=concat(ezini('SiteVariables','ItemPictureURLPre','content.ini'), $child.data_map.isbn.value, ezini('SiteVariables','ItemPictureURLPost','content.ini'))}
{else}
{set $child_image_url=''}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{set $child_item_link_text=$child.data_map.item_url.data_text}
{elseif $child.data_map.isbn.has_content}
{set $child_item_link=concat(ezini('SiteVariables','ISBNURLPre','content.ini'), $child.data_map.isbn.content, ezini('SiteVariables','ISBNURLPost','content.ini'))}
{else}
{set $child_item_link = ''}
{set $child_item_link_text = ''}
{/if}
{set $child_item_name=$child.data_map.name.value}
{set $child_item_description=$child.data_map.description.value}
{elseif $child.class_identifier|eq( 'one_url_link' )}
{if is_unset($user_is_external)}
{def $user_ip = server( 'remote_addr' )}
{def $proxy_ip_list = ezini( 'SiteVariables', 'ProxyIPList', 'content.ini' )}
{def $user_is_external = true}
{foreach $proxy_ip_list as $proxy_ip}
{if $user_ip|begins_with($proxy_ip)}
{set $user_is_external = false}
{break}
{/if}
{/foreach}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{set $child_item_link_text=$child.data_map.item_url.data_text}
{if is_unset($url_proxy)}
{def $url_proxy=ezini('SiteVariables','ProxySite','content.ini')|trim("'")}{*Get Proxy URL from ini settings and trim quotes*}
{/if}
{if $child.data_map.use_proxy.content}
{set $child_item_link=concat($url_proxy,$child_item_link)}
{elseif $user_is_external}
{if $child.data_map.internal_only.content}
{set $no_link = true}
{elseif $child.data_map.external_url.has_content}
{set $child_item_link=$child.data_map.external_url.content}
{set $child_item_link_text = ''}
{/if}
{/if}
{else}
{set $child_item_link = ''}
{set $child_item_link_text = ''}
{/if}
{if is_set($child.data_map.picture.value.scroller_image.url)}{set $child_image_url=$child.data_map.picture.value.scroller_image.url}{/if}
{set $child_item_name=$child.data_map.name.value}
{set $child_item_description=$child.data_map.description.value}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
</div><div class="bc_carousel_single">{$child_item_link_open}{if ne($child_image_url, '')}<img class="image" alt="" src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} align="left" />{/if}<span id="carouselInnerTitle" class="carousel_title_single">{$child_item_name}{$child_item_link_close}
<br />
{if $child_item_description|ne('')}
{* Truncate output to a maximum of $counter characters, and make sure it ends with a whole word *}
{def $counter=200}
{def $text = $child_item_description|wash()}
{while and(ne( $text|extract($counter,1) , " "), gt($counter, 0))}
{set $counter =dec( $counter )}
{/while}
<p id="carouselInnerDescription" class="carousel_description_single">
{concat($text|extract( 0, $counter ), '...')}
&nbsp;<a href="{$child_item_link}">{$child_item_link_text}</a></p>
{/if}
</span></div>
{* $child.data_map.description|attribute(show,1) *}
{*Very important to have no spaces; otherwise the margins are off *}{/for}
<script language="Javascript" type="text/javascript">
carousel_unique_namespace('carouselContainer', 'carouselInner', 'prevBtn', 'nextBtn');
setTimeout("carousel_init("+carousel_unique_id+", {$childrenCount}, 1, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if})", carousel_unique_id);
 
</script>
{else}
<p>Sorry, no featured items available</p>
{/if}
 
 
</div>
</div>
{*
<table>
<tr>
<td class="prev">
<a href="#"><img src={"images/kids/prev_yellow.gif"|ezdesign} id="prevBtn" class="prevBtn_single" alt="Previous" /></a>
<a href="#"><< Previous</a>
{if gt($childrenCount,1)}<img id="prevBtn" class="prevBtn_single" src={"carousel/prevbtn.png"|ezimage()} />{/if}
</td>
<td class="next">
<a href="#">Next >></a>
<a href="#"><img valign="absmiddle" id="nextBtn" class="nextBtn_single" src={"images/kids/next_yellow.gif"|ezdesign} alt="Next" /></a>
{if gt($childrenCount,1)}<img id="nextBtn" class="nextBtn_single" src={"carousel/nextbtn.png"|ezimage()} />{/if}
</td>
</tr>
</table>
*}
 
</div></div><!--end inner1-->
 
<div class="footer"></div>
 
</div><!--end blogroll-->
/trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel.tpl New file
0,0 → 1,412
{**
* File containing the feature_scroller template
*
* @package stdl
* @version //autogentag//
* @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved.
* @license GPL v2 (or later)
*}<style type="text/css">
{literal}
.carouselContainer {
margin:0px;
padding:0px;
width: 540px !important;
max-width: 540px;
overflow: hidden;
}
.carouselInner {
margin:0px;
padding:0px;
visibility: hidden;
width: 100%;
height: 100%;
}
.bc_carousel {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
text-align: center;
width: 180px !important;
max-width: 180px;
vertical-align: top;
}
.bc_carousel img {
display: block;
margin: 0px auto;
}
h2.carousel_header {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em; // 11px;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.prevBtn, .nextBtn {
cursor: pointer;
margin-top: 50px;
z-index: 1000;
position: absolute;
}
.nextBtn {
margin-left: 514px;
}
.jcarousel-container {
position: relative;
}
 
.jcarousel-clip {
z-index: 2;
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
 
.jcarousel-list {
z-index: 1;
overflow: hidden;
position: relative;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
 
.jcarousel-list li,
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite loops. */
width: 142px;
height: 207px;
}
.jcarousel-next {
z-index: 3;
display: none;
}
 
.jcarousel-prev {
z-index: 3;
display: none;
}
.jcarousel-skin-3wide .jcarousel-container {
}
 
.jcarousel-skin-3wide .jcarousel-container-horizontal {
width: 450px;
padding: 20px 40px;
}
 
.jcarousel-skin-3wide .jcarousel-container-vertical {
width: 75px;
height: 245px;
padding: 20px 20px;
}
 
.jcarousel-skin-3wide .jcarousel-clip-horizontal {
width: 450px;
height: 300px;
}
 
.jcarousel-skin-3wide .jcarousel-clip-vertical {
width: 142px;
height: 197px;
}
 
.jcarousel-skin-3wide .jcarousel-item {
width: 142px;
height: 225px;
}
 
.jcarousel-skin-3wide .jcarousel-item-horizontal {
margin-right: 10px;
}
 
.jcarousel-skin-3wide .jcarousel-item-vertical {
margin-bottom: 10px;
}
 
.jcarousel-skin-3wide .jcarousel-item-placeholder {
background: #fff;
color: #000;
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal {
position: absolute;
top: 93px;
right: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal:hover {
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-next-horizontal:active {
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal,
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal:hover,
.jcarousel-skin-3wide .jcarousel-next-disabled-horizontal:active {
cursor: default;
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal {
position: absolute;
top: 93px;
left: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal:hover {
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-prev-horizontal:active {
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal,
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal:hover,
.jcarousel-skin-3wide .jcarousel-prev-disabled-horizontal:active {
cursor: default;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
 
.jcarousel-skin-3wide .jcarousel-next-vertical {
position: absolute;
bottom: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/next-vertical.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-next-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-3wide .jcarousel-next-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical,
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical:hover,
.jcarousel-skin-3wide .jcarousel-next-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prev-vertical.png) no-repeat 0 0;
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical,
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical:hover,
.jcarousel-skin-3wide .jcarousel-prev-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
.jcarousel-skin-3wide li img {
width: 142px;
height: 187px;
}
.jcarousel-skin-3wide li h3 {
position: absolute;
margin-top: 197px;
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
 
{/literal}
</style>
 
<div class="feature_scroller_wrapper">
 
<h1>{$object.name|wash()}</h1>
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
 
{def $children = array()
$limit = 0
$offset = 0}
 
{if is_set( $object_parameters.limit )}
{set $limit = $object_parameters.limit}
{/if}
 
{if is_set( $object_parameters.offset )}
{set $offset = $object_parameters.offset}
{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
 
{if $children|count()|gt( 0 )}
 
{* <script language="Javascript" type="text/javascript"> *}
{* literal}
// helper function, modify to handle disabling prev/next buttons
/*DOMReady(function() {
{/literal}
carousel_unique_namespace('carouselContainer{$object.main_node_id}', 'carouselInner', 'prevBtn', 'nextBtn');
thisCarousel[carousel_unique_id] = new Carousel;
thisCarousel[carousel_unique_id].init('carouselContainer_' + carousel_unique_id, 'carouselInner_' + carousel_unique_id, 'prevBtn_' + carousel_unique_id, 'nextBtn_' + carousel_unique_id, {$childrenCount}, 3, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if}, 20, 50, thisCarousel[carousel_unique_id], carousel_unique_id);
{literal}
});*/
{/literal *}
{* </script> *}
 
{def $child=0
$child_image_url=''
$child_item_link=''
$child_item_name=''
$child_item_url=''
$child_item_link=''
$child_item_link_open=''
$child_item_link_close=''
}
{def $maximum_height_filters=ezini( 'scroller_image', 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
{* def $child_item_link=''}{def $child_item_link_open=''}{def $child_item_link_close='' *}
<ul id="carousel3wide{$object.main_node_id}" class="jcarousel-skin-3wide">
{for 0 to sum($childrenCount,-1) as $counter}{* <div style="display: none;"> *}
{set $child=$children.$counter}
{if $child.class_identifier|eq( 'a_featured_item' )}
{if $child.data_map.promo_pic.has_content}
{set $child_image_url=$child.data_map.promo_pic.value.scroller_image.url}
{elseif $child.data_map.picurl.has_content}
{set $child_image_url=$child.data_map.picurl.content}
{elseif $child.data_map.isbn.has_content}
{set $child_image_url=concat(ezini('SiteVariables','ItemPictureURLPre','content.ini'), $child.data_map.isbn.value, ezini('SiteVariables','ItemPictureURLPost','content.ini'))}
{else}
{set $child_image_url=''}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{elseif $child.data_map.isbn.has_content}
{set $child_item_link=concat(ezini('SiteVariables','ISBNURLPre','content.ini'), $child.data_map.isbn.content, ezini('SiteVariables','ISBNURLPost','content.ini'))}
{else}
{set $child_item_link = ''}
{/if}
{set $child_item_name=$child.data_map.name.value}
{elseif $child.class_identifier|eq( 'one_url_link' )}
{if is_unset($user_is_external)}
{def $user_ip = server( 'remote_addr' )}
{def $proxy_ip_list = ezini( 'SiteVariables', 'ProxyIPList', 'content.ini' )}
{def $user_is_external = true}
{foreach $proxy_ip_list as $proxy_ip}
{if $user_ip|begins_with($proxy_ip)}
{set $user_is_external = false}
{break}
{/if}
{/foreach}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{if is_unset($url_proxy)}
{def $url_proxy=ezini('SiteVariables','ProxySite','content.ini')|trim("'")}{*Get Proxy URL from ini settings and trim quotes*}
{/if}
{if $child.data_map.use_proxy.content}
{set $child_item_link=concat($url_proxy,$child_item_link)}
{elseif $user_is_external}
{if $child.data_map.internal_only.content}
{set $no_link = true}
{elseif $child.data_map.external_url.has_content}
{set $child_item_link=$child.data_map.external_url.content}
{/if}
{/if}
{else}
{set $child_item_link=''}
{/if}
{if is_set($child.data_map.picture.value.scroller_image.url)}{set $child_image_url=$child.data_map.picture.value.scroller_image.url}{/if}
{set $child_item_name=$child.data_map.name.value}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
{* </div> *}
{* <!-- New Structure
<ul id="mycarousel" class="jcarousel-skin-3wide">
<li><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" width="142" height="187" alt="" /></li>
</ul>
--> *}
<li>{if $object.data_map.show_titles.value|eq('1')}<h3>{$child_item_link_open}{$child_item_name}{$child_item_link_close}</h3>{/if}{$child_item_link_open}{if ne($child_image_url, '')}<img alt="{$child.name}" src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}</li>{* <div class="bc_carousel">{$child_item_link_open}{if ne($child_image_url, '')}<img alt="{$child.name}" src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}{if $object.data_map.show_titles.value|eq('1')}<div class="carousel_title">{$child_item_link_open}{$child_item_name}{$child_item_link_close}</div>{/if}</div> *}
{/for}
</ul>
 
<script language="Javascript" type="text/javascript">
jQuery(document).ready(function() {literal}{{/literal}
jQuery("#carousel3wide{$object.main_node_id}").jcarousel();
{literal}}{/literal});
/*carousel_unique_namespace('carouselContainer{$object.main_node_id}', 'carouselInner', 'prevBtn', 'nextBtn');
setTimeout("carousel_init("+carousel_unique_id+", {$childrenCount}, 3, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if})", carousel_unique_id);*/
</script>
 
 
{else}
<p>Sorry, no featured items available</p>
{/if}
 
{* DUPLICATED! *}
 
</div><!--end blogroll-->
/trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel_single.tpl New file
0,0 → 1,437
{**
* File containing the feature_scroller_singleh template
*
* @package stdl
* @version //autogentag//
* @copyright Copyright (C) 2009 Brookins Consulting. All rights reserved.
* @license GPL v2 (or later)
*}
<style type="text/css">
{literal}
.carouselContainer_single {
margin:0px;
padding:0px;
width: 208px !important;
max-width: 208px;
overflow: hidden;
}
.carouselInner_single {
margin:0px;
padding:0px;
width: 100%;
height: 100%;
visibility: hidden;
}
.bc_carousel_single {
/* ie hack for inline blocks*/
display:-moz-inline-stack;
display:inline-block;
zoom:1;
*display:inline;
margin:0px;
padding:0px;
text-align: center;
width: 208px !important;
max-width: 208px;
vertical-align: top;
}
.bc_carousel_single img {
display: block;
margin: 0px auto;
}
h2.carousel_header_single {
font-family: Arial, Verdana, sans-serif;
font-size: 16px;
font-weight: normal;
color: #602020;
}
.carousel_title_single {
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em; // 11px;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
}
.prevBtn_single, .nextBtn_single {
cursor: pointer;
position: absolute;
margin-top: 50px;
}
.prevBtn_single {
}
.nextBtn_single {
margin-left: 174px;
}
.jcarousel-container {
position: relative;
}
 
.jcarousel-clip {
z-index: 2;
padding: 0;
margin: 0;
overflow: hidden;
position: relative;
}
 
.jcarousel-list {
z-index: 1;
overflow: hidden;
position: relative;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
 
.jcarousel-list li,
.jcarousel-item {
float: left;
list-style: none;
/* We set the width/height explicitly. No width/height causes infinite loops. */
width: 142px;
height: 207px;
}
.jcarousel-next {
z-index: 3;
display: none;
}
 
.jcarousel-prev {
z-index: 3;
display: none;
}
.jcarousel-skin-single .jcarousel-container {
margin-left: -12px;
}
 
.jcarousel-skin-single .jcarousel-container-horizontal {
width: 143px;
padding: 20px 40px;
}
 
.jcarousel-skin-single .jcarousel-container-vertical {
width: 75px;
height: 245px;
padding: 20px 20px;
}
 
.jcarousel-skin-single .jcarousel-clip-horizontal {
width: 142px;
height: 300px;
}
 
.jcarousel-skin-single .jcarousel-clip-vertical {
width: 142px;
height: 197px;
}
 
.jcarousel-skin-single .jcarousel-item {
width: 142px;
height: 225px;
}
 
.jcarousel-skin-single .jcarousel-item-horizontal {
margin-right: 10px;
}
 
.jcarousel-skin-single .jcarousel-item-vertical {
margin-bottom: 10px;
}
 
.jcarousel-skin-single .jcarousel-item-placeholder {
background: #fff;
color: #000;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal {
position: absolute;
top: 93px;
right: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal:hover {
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-horizontal:active {
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-disabled-horizontal,
.jcarousel-skin-single .jcarousel-next-disabled-horizontal:hover,
.jcarousel-skin-single .jcarousel-next-disabled-horizontal:active {
cursor: default;
background: transparent url(/extension/stdl/design/stdl/images/carousel/nextbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal {
position: absolute;
top: 93px;
left: 5px;
width: 27px;
height: 24px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal:hover {
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-horizontal:active {
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal,
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal:hover,
.jcarousel-skin-single .jcarousel-prev-disabled-horizontal:active {
cursor: default;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prevbtn-over.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-vertical {
position: absolute;
bottom: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/next-vertical.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-next-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-single .jcarousel-next-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-single .jcarousel-next-disabled-vertical,
.jcarousel-skin-single .jcarousel-next-disabled-vertical:hover,
.jcarousel-skin-single .jcarousel-next-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical {
position: absolute;
top: 5px;
left: 43px;
width: 32px;
height: 32px;
cursor: pointer;
background: transparent url(/extension/stdl/design/stdl/images/carousel/prev-vertical.png) no-repeat 0 0;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical:hover {
background-position: 0 -32px;
}
 
.jcarousel-skin-single .jcarousel-prev-vertical:active {
background-position: 0 -64px;
}
 
.jcarousel-skin-single .jcarousel-prev-disabled-vertical,
.jcarousel-skin-single .jcarousel-prev-disabled-vertical:hover,
.jcarousel-skin-single .jcarousel-prev-disabled-vertical:active {
cursor: default;
background-position: 0 -96px;
}
.jcarousel-skin-single li img {
width: 142px;
height: 187px;
}
.jcarousel-skin-single li h3 {
position: absolute;
margin-top: 197px;
font-weight: bold;
font-family: Arial, Verdana, sans-serif;
font-size: 0.8em;
color: #156C99;
padding: 2px 8px;
font-weight:normal;
 
}
{/literal}
</style>
 
<div class="feature_scroller_single_wrapper">
 
<h1>{$object.name|wash()}</h1>
{if $object.data_map.description.has_content}<p>{$object.data_map.description.value}</p>{/if}
 
{def $children = array()
$limit = 0
$offset = 0}
 
{if is_set( $object_parameters.limit )}
{set $limit = $object_parameters.limit}
{/if}
 
{if is_set( $object_parameters.offset )}
{set $offset = $object_parameters.offset}
{/if}
{set $children=fetch( content, list, hash( 'parent_node_id', $object.main_node_id,
'limit', $limit,
'offset', $offset,
'sort_by', $object.main_node.sort_array,
'class_filter_type', 'exclude',
'class_filter_array', array( 'sides' ) ) ) }
{def $childrenCount=$children|count()}
 
{if $children|count()|gt( 0 )}
<script language="Javascript" type="text/javascript">
{literal}
// helper function, modify to handle disabling prev/next buttons
/*
function preloadArrowImages() {
var img= new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/nextbtn-disabled.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-over.png";
img = new Image();
img.src="/extension/stdl/design/stdl/images/carousel/prevbtn-disabled.png";
}
preloadArrowImages();
*/
{/literal}
{*{literal}
/*
DOMReady(function() {
{/literal}
Carousel.init({$childrenCount}, 1, {if $object.data_map.autoscroll.value|eq( '1' )}true{else}false{/if}, {if $object.data_map.autoscroll_hold_time.has_content|eq( 'true' )}{$object.data_map.autoscroll_hold_time.value}{else}3000{/if}, disablePrevOrNext, 20, 50);
{literal}
addEvent(elm("prevBtn"), "click", function() { Carousel.auto_play = false; Carousel.showPrevious(); });
addEvent(elm("nextBtn"), "click", function() { Carousel.auto_play = false; Carousel.showNext(); });
addEvent(elm("prevBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn-over.png'; });
addEvent(elm("prevBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/prevbtn.png'; });
addEvent(elm("nextBtn"), "mouseover", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn-over.png'; });
addEvent(elm("nextBtn"), "mouseout", function() { if (!this.disabled) this.src='/extension/stdl/design/stdl/images/carousel/nextbtn.png'; });
});*/
{/literal}*}
{literal}
jQuery(document).ready(function() {
{/literal}
jQuery("#carouselSingle{$object.main_node_id}").jcarousel({literal}{scroll:1}{/literal});
{literal}
});
{/literal}
</script>
{def $child=0
$child_image_url=''
$child_item_name=''
$child_item_url=''
$child_item_link=0
$child_item_link_open=''
$child_item_link_close='</a>'
}
{def $maximum_height_filters=ezini( 'scroller_image', 'Filters', 'image.ini' )}
{def $maximum_height_reversed=$maximum_height_filters[0]|reverse()|explode(';')}
{def $maximum_height=$maximum_height_reversed[0]|reverse()}
 
{* def $child_item_link=''}{def $child_item_link_open=''}{def $child_item_link_close='' *}
 
 
{*{if gt($childrenCount,1)}{/if}*}
<ul id="carouselSingle{$object.main_node_id}" class="jcarousel-skin-single">
{for 0 to sum($childrenCount,-1) as $counter}{* <div style="display: none;"> *}
{set $child=$children.$counter}
{if $child.class_identifier|eq( 'a_featured_item' )}
{if $child.data_map.promo_pic.has_content}
{set $child_image_url=$child.data_map.promo_pic.value.scroller_image.url}
{elseif $child.data_map.picurl.has_content}
{set $child_image_url=$child.data_map.picurl.content}
{elseif $child.data_map.isbn.has_content}
{set $child_image_url=concat(ezini('SiteVariables','ItemPictureURLPre','content.ini'), $child.data_map.isbn.value, ezini('SiteVariables','ItemPictureURLPost','content.ini'))}
{else}
{set $child_image_url=''}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{elseif $child.data_map.isbn.has_content}
{set $child_item_link=concat(ezini('SiteVariables','ISBNURLPre','content.ini'), $child.data_map.isbn.content, ezini('SiteVariables','ISBNURLPost','content.ini'))}
{else}
{set $child_item_link = ''}
{/if}
{set $child_item_name=$child.data_map.name.value}
{elseif $child.class_identifier|eq( 'one_url_link' )}
{if is_unset($user_is_external)}
{def $user_ip = server( 'remote_addr' )}
{def $proxy_ip_list = ezini( 'SiteVariables', 'ProxyIPList', 'content.ini' )}
{def $user_is_external = true}
{foreach $proxy_ip_list as $proxy_ip}
{if $user_ip|begins_with($proxy_ip)}
{set $user_is_external = false}
{break}
{/if}
{/foreach}
{/if}
{if $child.data_map.internal_url.has_content}
{set $child_item_link=$child.data_map.internal_url.content.main_node.url_alias}
{elseif $child.data_map.item_url.has_content}
{set $child_item_link=$child.data_map.item_url.content}{*Get full URL link in full format without single or double quotes*}
{if is_unset($url_proxy)}
{def $url_proxy=ezini('SiteVariables','ProxySite','content.ini')|trim("'")}{*Get Proxy URL from ini settings and trim quotes*}
{/if}
{if $child.data_map.use_proxy.content}
{set $child_item_link=concat($url_proxy,$child_item_link)}
{elseif $user_is_external}
{if $child.data_map.internal_only.content}
{set $no_link = true}
{elseif $child.data_map.external_url.has_content}
{set $child_item_link=$child.data_map.external_url.content}
{/if}
{/if}
{else}
{set $child_item_link = ''}
{/if}
{if is_set($child.data_map.picture.value.scroller_image.url)}{set $child_image_url=$child.data_map.picture.value.scroller_image.url}{/if}
{set $child_item_name=$child.data_map.name.value}
{/if}
{if ne('', $child_item_link)}
{set $child_item_link_open=concat('<a href=', $child_item_link|ezurl(), '>')}
{set $child_item_link_close='</a>'}
{/if}
{* </div> *}
{* <!-- New Structure
 
<ul id="mycarousel" class="jcarousel-skin-single">
<li><img src="http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/75/199481072_b4a0d09597_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/57/199481087_33ae73a8de_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/77/199481108_4359e6b971_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481143_3c148d9dd3_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/72/199481203_ad4cdcf109_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/58/199481218_264ce20da0_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/69/199481255_fdfe885f87_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/60/199480111_87d4cb3e38_s.jpg" width="142" height="187" alt="" /></li>
<li><img src="http://static.flickr.com/70/229228324_08223b70fa_s.jpg" width="142" height="187" alt="" /></li>
</ul>
--> *}
<li>{$child_item_link_open}{if ne($child_image_url, '')}<img src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}{if $object.data_map.show_titles.value|eq('1')}<div class="carousel_title_single">{$child_item_link_open}{$child_item_name}{$child_item_link_close}</div>{/if}</li>
{* <div class="bc_carousel_single">{$child_item_link_open}{if ne($child_image_url, '')}<img src={$child_image_url|ezurl()}{if and(is_set($child.data_map.picheight), gt(min($child.data_map.picheight.content, $maximum_height), 0))} height="{min($child.data_map.picheight.content, $maximum_height)}"{/if}{if and(is_set($child.data_map.picwidth), gt($child.data_map.picwidth.content, 0), gt($maximum_height, $child.data_map.picheight.content))} width="{$child.data_map.picwidth.content}"{/if} />{$child_item_link_close}{/if}{if $object.data_map.show_titles.value|eq('1')}<div class="carousel_title_single">{$child_item_link_open}{$child_item_name}{$child_item_link_close}</div>{/if}</div> *}
{/for}
</ul>
 
{* if gt($childrenCount,1)}</div><!--end feature_scroller_single-->{/if *}
{else}
<p>Sorry, no featured items available</p>
{/if}
 
</div><!--end blogroll-->
{* <!--end carouselInner--> </div>
</div><!--end carouselContainer_single-->
</div><!--end feature_scroller_single--> *}
/trunk/extension/bccarousel/design/standard/templates/embed/carousel/carousel_prayer.tpl --- trunk/extension/bccarousel/design/admin/override/templates/carousel_list.tpl (revision 0) +++ trunk/extension/bccarousel/design/admin/override/templates/carousel_list.tpl (revision 1) @@ -0,0 +1,129 @@ +{include uri='design:infocollection_validation.tpl'} +{include uri='design:window_controls.tpl'} + +
+ +{* Content window. *} +
+ +{* DESIGN: Header START *}
+ +{let hide_status=""} +{section show=$node.is_invisible} +{set hide_status=concat( '(', $node.hidden_status_string, ')' )} +{/section} + + +{def $js_class_languages = $node.object.content_class.prioritized_languages_js_array + $disable_another_language = cond( eq( 0, count( $node.object.content_class.can_create_languages ) ),"'edit-class-another-language'", '-1' ) } + +

{$node.class_identifier|class_icon( normal, $node.class_name )} {$node.name|wash} [{$node.class_name|wash}] {$hide_status}

+ +{undef $js_class_languages $disable_another_language} + +{/let} + +{* DESIGN: Mainline *}
+ +{* DESIGN: Header END *}
+ +
+
+ +
+

{'Last modified'|i18n( 'design/admin/node/view/full' )}: {$node.object.modified|l10n(shortdatetime)}, {$node.object.current.creator.name|wash}

+

{$node.object.current_language_object.locale_object.intl_language_name} {$language_code}

+
+
+ +{* Content preview in content window. *} +{section show=ezpreference( 'admin_navigation_content' )} +
+
{* Fix for overflow bug in Opera *} +
{* Fix for some width bugs in IE *} + {node_view_gui content_node=$node view=admin_preview} +
+
+
{* Terminate overflow bug fix *} +
+{/section} + +
+ +{* Buttonbar for content window. *} +
+ +{* DESIGN: Control bar START *}
+ + + + + +
+ +
+{* Edit button. *} +{def $can_create_languages = $node.object.can_create_languages + $languages = fetch( 'content', 'prioritized_languages' )} +{section show=$node.can_edit} + {if and(eq( $languages|count, 1 ), is_set( $languages[0] ) )} + + {else} + + {/if} + +{section-else} + + +{/section} +{undef $can_create_languages} + +{* Move button. *} +{section show=$node.can_move} + +{section-else} + +{/section} + +{* Remove button. *} +{section show=$node.can_remove} + +{section-else} + +{/section} +
+ +{* Custom content action buttons. *} +
+{section var=ContentActions loop=$node.object.content_action_list} + +{/section} +
+ +{* The preview button has been commented out. Might be absent until better preview functionality is implemented. *} +{* *} + +
+ +
+ +{* DESIGN: Control bar END *}
+ +
+ +
+ +
+ +{include uri="design:windows.tpl"} + +
/trunk/extension/bccarousel/design/admin/override/templates/line/carousel_list.tpl New file
0,0 → 1,4
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{default node_name=$node.name node_url=$node.url_alias can_create_classes = $node.classes_js_array disable_createHere_menu = cond( $can_create_classes|eq("''"),"'child-menu-create-here'", '-1' ) }
<a href={$node.url_alias|ezurl} class="nodeicon" onclick="ezpopmenu_showTopLevel( event, 'SubitemsContextMenu', ez_createAArray( new Array( '%nodeID%', {$:node.node_id}, '%objectID%', {$:node.object.id}, '%languages%', {$:node.object.language_js_array}, '%classList%', {$can_create_classes} ) ) , '{$:node.object.name|shorten(18)|wash(javascript)}', {$:node.node_id}, {$disable_createHere_menu} ); return false;">{$node.class_identifier|class_icon( small, 'Click on the icon to display a context-sensitive menu.'|i18n( 'design/admin/node/view/line' ) )}</a>&nbsp;
{section show=$node_url}<a href={$node_url|ezurl} title="{'Node ID: %node_id Visibility: %node_visibility'|i18n( 'design/admin/node/view/line',, hash( '%node_id', $node.node_id, '%node_visibility', $node.hidden_status_string ) )}">{/section}{$node_name|wash}{section show=$node_url}</a>{/section}{/default}
/trunk/extension/bccarousel/design/admin/override/templates/line/carousel.tpl New file
0,0 → 1,4
{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{default node_name=$node.name node_url=$node.url_alias can_create_classes = $node.classes_js_array disable_createHere_menu = cond( $can_create_classes|eq("''"),"'child-menu-create-here'", '-1' ) }
<a href={$node.url_alias|ezurl} class="nodeicon" onclick="ezpopmenu_showTopLevel( event, 'SubitemsContextMenu', ez_createAArray( new Array( '%nodeID%', {$:node.node_id}, '%objectID%', {$:node.object.id}, '%languages%', {$:node.object.language_js_array}, '%classList%', {$can_create_classes} ) ) , '{$:node.object.name|shorten(18)|wash(javascript)}', {$:node.node_id}, {$disable_createHere_menu} ); return false;">{$node.class_identifier|class_icon( small, 'Click on the icon to display a context-sensitive menu.'|i18n( 'design/admin/node/view/line' ) )}</a>&nbsp;
{section show=$node_url}<a href={$node_url|ezurl} title="{'Node ID: %node_id Visibility: %node_visibility'|i18n( 'design/admin/node/view/line',, hash( '%node_id', $node.node_id, '%node_visibility', $node.hidden_status_string ) )}">{/section}{$node_name|wash}{section show=$node_url}</a>{/section}{/default}
/trunk/extension/bccarousel/design/admin/override/templates/carousel.tpl New file
0,0 → 1,129
{include uri='design:infocollection_validation.tpl'}
{include uri='design:window_controls.tpl'}
 
<div class="content-navigation">
 
{* Content window. *}
<div class="context-block">
 
{* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr">
 
{let hide_status=""}
{section show=$node.is_invisible}
{set hide_status=concat( '(', $node.hidden_status_string, ')' )}
{/section}
 
 
{def $js_class_languages = $node.object.content_class.prioritized_languages_js_array
$disable_another_language = cond( eq( 0, count( $node.object.content_class.can_create_languages ) ),"'edit-class-another-language'", '-1' ) }
 
<h1 class="context-title"><a href={concat( '/class/view/', $node.object.contentclass_id )|ezurl} onclick="ezpopmenu_showTopLevel( event, 'ClassMenu', ez_createAArray( new Array( '%classID%', {$node.object.contentclass_id}, '%objectID%', {$node.contentobject_id}, '%nodeID%', {$node.node_id}, '%currentURL%', '{$node.url|wash( javascript )}', '%languages%', {$js_class_languages} ) ), '{$node.class_name|wash(javascript)}', -1, {$disable_another_language} ); return false;">{$node.class_identifier|class_icon( normal, $node.class_name )}</a>&nbsp;{$node.name|wash}&nbsp;[{$node.class_name|wash}]&nbsp;{$hide_status}</h1>
 
{undef $js_class_languages $disable_another_language}
 
{/let}
 
{* DESIGN: Mainline *}<div class="header-mainline"></div>
 
{* DESIGN: Header END *}</div></div></div></div></div></div>
 
<form method="post" action={'content/action'|ezurl}>
<div class="box-ml"><div class="box-mr">
 
<div class="context-information">
<p class="modified">{'Last modified'|i18n( 'design/admin/node/view/full' )}: {$node.object.modified|l10n(shortdatetime)}, <a href={$node.object.current.creator.main_node.url_alias|ezurl}>{$node.object.current.creator.name|wash}</a></p>
<p class="translation">{$node.object.current_language_object.locale_object.intl_language_name}&nbsp;<img src="{$node.object.current_language|flag_icon}" alt="{$language_code}" style="vertical-align: middle;" /></p>
<div class="break"></div>
</div>
 
{* Content preview in content window. *}
{section show=ezpreference( 'admin_navigation_content' )}
<div class="mainobject-window" title="{$node.name|wash} {'Node ID'|i18n( 'design/admin/node/view/full' )}: {$node.node_id}, {'Object ID'|i18n( 'design/admin/node/view/full' )}: {$node.object.id}">
<div class="fixedsize">{* Fix for overflow bug in Opera *}
<div class="holdinplace">{* Fix for some width bugs in IE *}
{node_view_gui content_node=$node view=admin_preview}
</div>
</div>
<div class="break"></div>{* Terminate overflow bug fix *}
</div>
{/section}
 
</div></div>
 
{* Buttonbar for content window. *}
<div class="controlbar">
 
{* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br">
 
<input type="hidden" name="TopLevelNode" value="{$node.object.main_node_id}" />
<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
 
<div class="block">
 
<div class="left">
{* Edit button. *}
{def $can_create_languages = $node.object.can_create_languages
$languages = fetch( 'content', 'prioritized_languages' )}
{section show=$node.can_edit}
{if and(eq( $languages|count, 1 ), is_set( $languages[0] ) )}
<input name="ContentObjectLanguageCode" value="{$languages[0].locale}" type="hidden" />
{else}
<select name="ContentObjectLanguageCode">
{foreach $node.object.can_edit_languages as $language}
<option value="{$language.locale}"{if $language.locale|eq($node.object.current_language)} selected="selected"{/if}>{$language.name|wash}</option>
{/foreach}
{if gt( $can_create_languages|count, 0 )}
<option value="">{'Another language'|i18n( 'design/admin/node/view/full')}</option>
{/if}
</select>
{/if}
<input class="button" type="submit" name="EditButton" value="{'Edit'|i18n( 'design/admin/node/view/full' )}" title="{'Edit the contents of this item.'|i18n( 'design/admin/node/view/full' )}" />
{section-else}
<select name="ContentObjectLanguageCode" disabled="disabled">
<option value="">{'Not available'|i18n( 'design/admin/node/view/full')}</option>
</select>
<input class="button-disabled" type="submit" name="EditButton" value="{'Edit'|i18n( 'design/admin/node/view/full' )}" title="{'You do not have permission to edit this item.'|i18n( 'design/admin/node/view/full' )}" disabled="disabled" />
{/section}
{undef $can_create_languages}
 
{* Move button. *}
{section show=$node.can_move}
<input class="button" type="submit" name="MoveNodeButton" value="{'Move'|i18n( 'design/admin/node/view/full' )}" title="{'Move this item to another location.'|i18n( 'design/admin/node/view/full' )}" />
{section-else}
<input class="button-disabled" type="submit" name="MoveNodeButton" value="{'Move'|i18n( 'design/admin/node/view/full' )}" title="{'You do not have permission to move this item to another location.'|i18n( 'design/admin/node/view/full' )}" disabled="disabled" />
{/section}
 
{* Remove button. *}
{section show=$node.can_remove}
<input class="button" type="submit" name="ActionRemove" value="{'Remove'|i18n( 'design/admin/node/view/full' )}" title="{'Remove this item.'|i18n( 'design/admin/node/view/full' )}" />
{section-else}
<input class="button-disabled" type="submit" name="ActionRemove" value="{'Remove'|i18n( 'design/admin/node/view/full' )}" title="{'You do not have permission to remove this item.'|i18n( 'design/admin/node/view/full' )}" disabled="disabled" />
{/section}
</div>
 
{* Custom content action buttons. *}
<div class="right">
{section var=ContentActions loop=$node.object.content_action_list}
<input class="button" type="submit" name="{$ContentActions.item.action}" value="{$ContentActions.item.name}" />
{/section}
</div>
 
{* The preview button has been commented out. Might be absent until better preview functionality is implemented. *}
{* <input class="button" type="submit" name="ActionPreview" value="{'Preview'|i18n('design/admin/node/view/full')}" /> *}
 
<div class="break"></div>
 
</div>
 
{* DESIGN: Control bar END *}</div></div></div></div></div></div>
 
</div>
 
</form>
 
</div>
 
{include uri="design:windows.tpl"}
 
</div>
/trunk/extension/bccarousel/packages/4.1.3/carousel_list-1.0-1.ezpkg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/packages/4.1.3/carousel_list-1.0-1.ezpkg Property changes : Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/packages/4.1.3/carousel-1.0-1.ezpkg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/packages/4.1.3/carousel-1.0-1.ezpkg Property changes : Added: svn:mime-type + application/octet-stream
/trunk/extension/bccarousel/packages/4.1.3/carousel_content_example-1.0-1.ezpkg Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
trunk/extension/bccarousel/packages/4.1.3/carousel_content_example-1.0-1.ezpkg Property changes : Added: svn:mime-type + application/octet-stream