diff --git a/404.php b/404.php new file mode 100644 index 0000000..5ee70f1 --- /dev/null +++ b/404.php @@ -0,0 +1,27 @@ + + +
+
+ +
+

+
+

+ +
+
+ +
+
+ + + diff --git a/archive.php b/archive.php new file mode 100644 index 0000000..5a257d0 --- /dev/null +++ b/archive.php @@ -0,0 +1,58 @@ + + +
+
+ + + +

+ + %s', 'twentyten' ), get_the_date() ); ?> + + %s', 'twentyten' ), get_the_date('F Y') ); ?> + + %s', 'twentyten' ), get_the_date('Y') ); ?> + + + +

+ + + +
+
+ + + diff --git a/attachment.php b/attachment.php new file mode 100644 index 0000000..6a592ab --- /dev/null +++ b/attachment.php @@ -0,0 +1,115 @@ + + +
+
+ + + + post_parent ) ) : ?> +

← %s', 'twentyten' ), get_the_title( $post->post_parent ) ); + ?>

+ + +
> +

+ + + +
+
+ $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) ); + foreach ( $attachments as $k => $attachment ) { + if ( $attachment->ID == $post->ID ) + break; + } + $k++; + // If there is more than 1 image attachment in a gallery + if ( count( $attachments ) > 1 ) { + if ( isset( $attachments[ $k ] ) ) + // get the URL of the next image attachment + $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID ); + else + // or get the URL of the first image attachment + $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID ); + } else { + // or, if there's only 1 image attachment, get the URL of the image + $next_attachment_url = wp_get_attachment_url(); + } +?> +

ID, array( $attachment_size, 9999 ) ); // filterable image width with, essentially, no limit for image height. + ?>

+ + + + + +
+
post_excerpt ) ) the_excerpt(); ?>
+ +→', 'twentyten' ) ); ?> + '' ) ); ?> + +
+ +
+ + ', '' ); ?> +
+
+ + + + + +
+
+ + diff --git a/author.php b/author.php new file mode 100644 index 0000000..9197813 --- /dev/null +++ b/author.php @@ -0,0 +1,57 @@ + + +
+
+ + + +

" . get_the_author() . "" ); ?>

+ + +
+
+ +
+
+

+ +
+
+ + + +
+
+ + + diff --git a/category.php b/category.php new file mode 100644 index 0000000..0792e1f --- /dev/null +++ b/category.php @@ -0,0 +1,34 @@ + + +
+
+ +

' . single_cat_title( '', false ) . '' ); + ?>

+ ' . $category_description . '
'; + + /* Run the loop for the category page to output the posts. + * If you want to overload this in a child theme then include a file + * called loop-category.php and that will be used instead. + */ + get_template_part( 'loop', 'category' ); + ?> + +
+ + + + diff --git a/comments.php b/comments.php new file mode 100644 index 0000000..32242d0 --- /dev/null +++ b/comments.php @@ -0,0 +1,76 @@ + + +
+ +

+
+ + + + + +

' . get_the_title() . '' ); + ?>

+ + 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> + + + +
    + 'twentyten_comment' ) ); + ?> +
+ + 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> + + + + +

+ + + + + + + diff --git a/davids_readme.txt b/davids_readme.txt new file mode 100644 index 0000000..e69de29 diff --git a/editor-style-rtl.css b/editor-style-rtl.css new file mode 100644 index 0000000..2c69a7c --- /dev/null +++ b/editor-style-rtl.css @@ -0,0 +1,56 @@ +/* +Theme Name: Twenty Ten +*/ +/* +Used to style the TinyMCE editor. +*/ +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} +html .mceContentBody{ + direction:rtl; + unicode-bidi:embed; + float:right; +} +* { + font-family: Arial, Tahoma, sans-serif; +} +/* Text elements */ +ul { + margin: 0 -18px 18px 0; +} +ol { + margin: 0 -18px 18px 0; +} +dd { + margin-right: 0; +} +blockquote { + font-style: normal; +} +table { + text-align: right; + margin: 0 0 24px -1px; +} \ No newline at end of file diff --git a/editor-style.css b/editor-style.css new file mode 100644 index 0000000..31ea0d5 --- /dev/null +++ b/editor-style.css @@ -0,0 +1,289 @@ +/* +Theme Name: Twenty Ten +*/ +/* +Used to style the TinyMCE editor. +*/ +html .mceContentBody { + max-width:640px; +} +* { + font-family: Georgia, "Bitstream Charter", serif; + color: #444; + line-height: 1.5; +} +p, +dl, +td, +th, +ul, +ol, +blockquote { + font-size: 16px; +} +tr th, +thead th, +label, +tr th, +thead th { + font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif; +} +pre { + font-family: "Courier 10 Pitch", Courier, monospace; +} +code, code var { + font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace; +} +body, input, textarea { + font-size: 12px; + line-height: 18px; +} +hr { + background-color: #e7e7e7; + border:0; + height: 1px; + margin-bottom: 18px; + clear:both; +} +/* Text elements */ +p { + margin-bottom: 18px; +} +ul { + list-style: square; + margin: 0 0 18px 1.5em; +} +ol { + list-style: decimal; + margin: 0 0 18px 1.5em; +} +ol ol { + list-style:upper-alpha; +} +ol ol ol { + list-style:lower-roman; +} +ol ol ol ol { + list-style:lower-alpha; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +dl { + margin:0 0 24px 0; +} +dt { + font-weight: bold; +} +dd { + margin-bottom: 18px; +} +strong { + font-weight: bold; + color: #000; +} +cite, +em, +i { + font-style: italic; + border: none; +} +big { + font-size: 131.25%; +} +ins { + background: #ffffcc; + border: none; + color: #333; +} +del { + text-decoration: line-through; + color: #555; +} +blockquote { + font-style: italic; + padding: 0 3em; +} +blockquote cite, +blockquote em, +blockquote i { + font-style: normal; +} +pre { + background: #f7f7f7; + color: #222; + line-height: 18px; + margin-bottom: 18px; + padding: 1.5em; +} +abbr, +acronym { + border-bottom: 1px dotted #666; + cursor: help; +} +ins { + text-decoration: none; +} +sup, +sub { + height: 0; + line-height: 1; + vertical-align: baseline; + position: relative; + font-size: 10px; +} +sup { + bottom: 1ex; +} +sub { + top: .5ex; +} +a:link { + color:#0066cc; +} +a:visited { + color:#743399; +} +a:active, +a:hover { + color: #ff4b33; +} +p, +ul, +ol, +dd, +pre, +hr { + margin-bottom:24px; +} +ul ul, +ol ol, +ul ol, +ol ul { + margin-bottom:0; +} +pre, +kbd, +tt, +var { + font-size: 15px; + line-height: 21px; +} +code { + font-size: 13px; +} +strong, +b, +dt, +th { + color: #000; +} +h1, +h2, +h3, +h4, +h5, +h6 { + color: #000; + margin: 0 0 20px 0; + line-height: 1.5em; + font-weight: normal; +} +h1 { + font-size: 2.4em; +} +h2 { + font-size: 1.8em; +} +h3 { + font-size: 1.4em; +} +h4 { + font-size: 1.2em; +} +h5 { + font-size: 1em; +} +h6 { + font-size: 0.9em; +} +table { + border: 1px solid #e7e7e7 !important; + text-align: left; + margin: 0 -1px 24px 0; + width: 100%; + border-collapse: collapse; + border-spacing: 0; +} +tr th, +thead th { + border: none !important; + color: #888; + font-size: 12px; + font-weight: bold; + line-height: 18px; + padding: 9px 24px; +} +tr td { + border: none !important; + border-top: 1px solid #e7e7e7 !important; + padding: 6px 24px; +} + + +img { + margin: 0; + max-width: 640px; +} +.alignleft, +img.alignleft { + display: inline; + float: left; + margin-right: 24px; + margin-top: 4px; +} +.alignright, +img.alignright { + display: inline; + float: right; + margin-left: 24px; + margin-top: 4px; +} +.aligncenter, +img.aligncenter { + clear: both; + display: block; + margin-left: auto; + margin-right: auto; +} +img.alignleft, +img.alignright, +img.aligncenter { + margin-bottom: 12px; +} +.wp-caption { + border: none; + background: #f1f1f1; + color: #888; + font-size: 12px; + line-height: 18px; + text-align: center; + margin-bottom: 20px; + padding: 4px; + -moz-border-radius: 0; + -khtml-border-radius: 0; + -webkit-border-radius: 0; + border-radius: 0; +} +.wp-caption img { + margin: 5px; +} +.wp-caption p.wp-caption-text { + margin: 0 0 4px; +} +.wp-smiley { + margin:0; +} \ No newline at end of file diff --git a/footer.php b/footer.php new file mode 100644 index 0000000..2be8759 --- /dev/null +++ b/footer.php @@ -0,0 +1,56 @@ + + + + + + + + + * tag of your theme, or you will break many plugins, which + * generally use this hook to reference JavaScript files. + */ + + wp_footer(); +?> + + diff --git a/functions.php b/functions.php new file mode 100644 index 0000000..2bae6a6 --- /dev/null +++ b/functions.php @@ -0,0 +1,392 @@ + + * add_action( 'after_setup_theme', 'my_child_theme_setup' ); + * function my_child_theme_setup() { + * // We are providing our own filter for excerpt_length (or using the unfiltered value) + * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); + * ... + * } + * + * + * For more information on hooks, actions, and filters, see http://codex.wordpress.org/Plugin_API. + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ + +/** + * Set the content width based on the theme's design and stylesheet. + * + * Used to set the width of images and content. Should be equal to the width the theme + * is designed for, generally via the style.css stylesheet. + */ +if ( ! isset( $content_width ) ) + $content_width = 640; + +/** Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ +add_action( 'after_setup_theme', 'twentyten_setup' ); + +if ( ! function_exists( 'twentyten_setup' ) ): +/** + * Sets up theme defaults and registers support for various WordPress features. + * + * Note that this function is hooked into the after_setup_theme hook, which runs + * before the init hook. The init hook is too late for some features, such as indicating + * support post thumbnails. + * + * To override twentyten_setup() in a child theme, add your own twentyten_setup to your child theme's + * functions.php file. + * + * @uses add_theme_support() To add support for post thumbnails and automatic feed links. + * @uses register_nav_menus() To add support for navigation menus. + * @uses add_custom_background() To add support for a custom background. + * @uses add_editor_style() To style the visual editor. + * @uses load_theme_textdomain() For translation/localization support. + * @uses register_default_headers() To register the default custom header images provided with the theme. + * @uses set_post_thumbnail_size() To set a custom post thumbnail size. + * + * @since Twenty Ten 1.0 + */ +function twentyten_setup() { + + // This theme styles the visual editor with editor-style.css to match the theme style. + add_editor_style(); + + // This theme uses post thumbnails + add_theme_support( 'post-thumbnails' ); + + // Add default posts and comments RSS feed links to head + add_theme_support( 'automatic-feed-links' ); + + // Make theme available for translation + // Translations can be filed in the /languages/ directory + load_theme_textdomain( 'twentyten', TEMPLATEPATH . '/languages' ); + + $locale = get_locale(); + $locale_file = TEMPLATEPATH . "/languages/$locale.php"; + if ( is_readable( $locale_file ) ) + require_once( $locale_file ); + + // This theme uses wp_nav_menu() in one location. + register_nav_menus( array( + 'primary' => __( 'Primary Navigation', 'twentyten' ), + ) ); + +} +endif; +/** + * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. + * + * To override this in a child theme, remove the filter and optionally add + * your own function tied to the wp_page_menu_args filter hook. + * + * @since Twenty Ten 1.0 + */ +function twentyten_page_menu_args( $args ) { + $args['show_home'] = true; + return $args; +} +add_filter( 'wp_page_menu_args', 'twentyten_page_menu_args' ); + +/** + * Sets the post excerpt length to 40 characters. + * + * To override this length in a child theme, remove the filter and add your own + * function tied to the excerpt_length filter hook. + * + * @since Twenty Ten 1.0 + * @return int + */ +function twentyten_excerpt_length( $length ) { + return 40; +} +add_filter( 'excerpt_length', 'twentyten_excerpt_length' ); + +/** + * Returns a "Continue Reading" link for excerpts + * + * @since Twenty Ten 1.0 + * @return string "Continue Reading" link + */ +function twentyten_continue_reading_link() { + return ' ' . __( 'Continue reading ', 'twentyten' ) . ''; +} + +/** + * Replaces "[...]" (appended to automatically generated excerpts) with an ellipsis and twentyten_continue_reading_link(). + * + * To override this in a child theme, remove the filter and add your own + * function tied to the excerpt_more filter hook. + * + * @since Twenty Ten 1.0 + * @return string An ellipsis + */ +function twentyten_auto_excerpt_more( $more ) { + return ' …' . twentyten_continue_reading_link(); +} +add_filter( 'excerpt_more', 'twentyten_auto_excerpt_more' ); + +/** + * Adds a pretty "Continue Reading" link to custom post excerpts. + * + * To override this link in a child theme, remove the filter and add your own + * function tied to the get_the_excerpt filter hook. + * + * @since Twenty Ten 1.0 + * @return string Excerpt with a pretty "Continue Reading" link + */ +function twentyten_custom_excerpt_more( $output ) { + if ( has_excerpt() && ! is_attachment() ) { + $output .= twentyten_continue_reading_link(); + } + return $output; +} +add_filter( 'get_the_excerpt', 'twentyten_custom_excerpt_more' ); + +/** + * Remove inline styles printed when the gallery shortcode is used. + * + * Galleries are styled by the theme in Twenty Ten's style.css. + * + * @since Twenty Ten 1.0 + * @return string The gallery style filter, with the styles themselves removed. + */ +function twentyten_remove_gallery_css( $css ) { + return preg_replace( "##s", '', $css ); +} +add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); + +if ( ! function_exists( 'twentyten_comment' ) ) : +/** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyten_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Ten 1.0 + */ +function twentyten_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case '' : + ?> +
  • id="li-comment-"> +
    +
    + + says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?> +
    + comment_approved == '0' ) : ?> + +
    + + + + +
    + +
    + $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> +
    +
    + + +
  • +

    + __( 'Primary Widget Area', 'twentyten' ), + 'id' => 'primary-widget-area', + 'description' => __( 'The primary widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + + // Area 2, located below the Primary Widget Area in the sidebar. Empty by default. + register_sidebar( array( + 'name' => __( 'Secondary Widget Area', 'twentyten' ), + 'id' => 'secondary-widget-area', + 'description' => __( 'The secondary widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + + // Area 3, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'First Footer Widget Area', 'twentyten' ), + 'id' => 'first-footer-widget-area', + 'description' => __( 'The first footer widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + + // Area 4, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Second Footer Widget Area', 'twentyten' ), + 'id' => 'second-footer-widget-area', + 'description' => __( 'The second footer widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + + // Area 5, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Third Footer Widget Area', 'twentyten' ), + 'id' => 'third-footer-widget-area', + 'description' => __( 'The third footer widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); + + // Area 6, located in the footer. Empty by default. + register_sidebar( array( + 'name' => __( 'Fourth Footer Widget Area', 'twentyten' ), + 'id' => 'fourth-footer-widget-area', + 'description' => __( 'The fourth footer widget area', 'twentyten' ), + 'before_widget' => '
  • ', + 'after_widget' => '
  • ', + 'before_title' => '

    ', + 'after_title' => '

    ', + ) ); +} +/** Register sidebars by running twentyten_widgets_init() on the widgets_init hook. */ +add_action( 'widgets_init', 'twentyten_widgets_init' ); + +/** + * Removes the default styles that are packaged with the Recent Comments widget. + * + * To override this in a child theme, remove the filter and optionally add your own + * function tied to the widgets_init action hook. + * + * @since Twenty Ten 1.0 + */ +function twentyten_remove_recent_comments_style() { + global $wp_widget_factory; + remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); +} +add_action( 'widgets_init', 'twentyten_remove_recent_comments_style' ); + +if ( ! function_exists( 'twentyten_posted_on' ) ) : +/** + * Prints HTML with meta information for the current post—date/time and author. + * + * @since Twenty Ten 1.0 + */ +function twentyten_posted_on() { + printf( __( 'Posted on %2$s by %3$s', 'twentyten' ), + 'meta-prep meta-prep-author', + sprintf( '%3$s', + get_permalink(), + esc_attr( get_the_time() ), + get_the_date() + ), + sprintf( '%3$s', + get_author_posts_url( get_the_author_meta( 'ID' ) ), + sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ), + get_the_author() + ) + ); +} +endif; + +if ( ! function_exists( 'twentyten_posted_in' ) ) : +/** + * Prints HTML with meta information for the current post (category, tags and permalink). + * + * @since Twenty Ten 1.0 + */ +function twentyten_posted_in() { + // Retrieves tag list of current post, separated by commas. + $tag_list = get_the_tag_list( '', ', ' ); + if ( $tag_list ) { + $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'twentyten' ); + } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { + $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'twentyten' ); + } else { + $posted_in = __( 'Bookmark the permalink.', 'twentyten' ); + } + // Prints the string, replacing the placeholders. + printf( + $posted_in, + get_the_category_list( ', ' ), + $tag_list, + get_permalink(), + the_title_attribute( 'echo=0' ) + ); +} +endif; + +function nav_search_form() { + + $form = ''; + + echo $form; +} + +include('functions_sandbox.php'); diff --git a/functions_sandbox.php b/functions_sandbox.php new file mode 100644 index 0000000..eb751a0 --- /dev/null +++ b/functions_sandbox.php @@ -0,0 +1,291 @@ +post->ID; + the_post(); + + // Adds 'single' class and class with the post ID + $c[] = 'single postid-' . $postID; + + // Adds classes for the month, day, and hour when the post was published + if ( isset( $wp_query->post->post_date ) ) + sandbox_date_classes( mysql2date( 'U', $wp_query->post->post_date ), $c, 's-' ); + + // Adds category classes for each category on single posts + if ( $cats = get_the_category() ) + foreach ( $cats as $cat ) + $c[] = 's-category-' . $cat->slug; + + // Adds tag classes for each tags on single posts + if ( $tags = get_the_tags() ) + foreach ( $tags as $tag ) + $c[] = 's-tag-' . $tag->slug; + + // Adds MIME-specific classes for attachments + if ( is_attachment() ) { + $mime_type = get_post_mime_type(); + $mime_prefix = array( 'application/', 'image/', 'text/', 'audio/', 'video/', 'music/' ); + $c[] = 'attachmentid-' . $postID . ' attachment-' . str_replace( $mime_prefix, "", "$mime_type" ); + } + + // Adds author class for the post author + $c[] = 's-author-' . sanitize_title_with_dashes(strtolower(get_the_author_login())); + rewind_posts(); + } + + // Author name classes for BODY on author archives + elseif ( is_author() ) { + $author = $wp_query->get_queried_object(); + $c[] = 'author'; + $c[] = 'author-' . $author->user_nicename; + } + + // Category name classes for BODY on category archvies + elseif ( is_category() ) { + $cat = $wp_query->get_queried_object(); + $c[] = 'category'; + $c[] = 'category-' . $cat->slug; + } + + // Tag name classes for BODY on tag archives + elseif ( is_tag() ) { + $tags = $wp_query->get_queried_object(); + $c[] = 'tag'; + $c[] = 'tag-' . $tags->slug; + } + + // Page author for BODY on 'pages' + elseif ( is_page() ) { + $pageID = $wp_query->post->ID; + $page_children = wp_list_pages("child_of=$pageID&echo=0"); + the_post(); + $c[] = 'page pageid-' . $pageID; + $c[] = 'page-author-' . sanitize_title_with_dashes(strtolower(get_the_author('login'))); + // Checks to see if the page has children and/or is a child page; props to Adam + if ( $page_children ) + $c[] = 'page-parent'; + if ( $wp_query->post->post_parent ) + $c[] = 'page-child parent-pageid-' . $wp_query->post->post_parent; + if ( is_page_template() ) // Hat tip to Ian, themeshaper.com + $c[] = 'page-template page-template-' . str_replace( '.php', '-php', get_post_meta( $pageID, '_wp_page_template', true ) ); + rewind_posts(); + } + + // Search classes for results or no results + elseif ( is_search() ) { + the_post(); + if ( have_posts() ) { + $c[] = 'search-results'; + } else { + $c[] = 'search-no-results'; + } + rewind_posts(); + } + + // For when a visitor is logged in while browsing + if ( $current_user->ID ) + $c[] = 'loggedin'; + + // Paged classes; for 'page X' classes of index, single, etc. + if ( ( ( $page = $wp_query->get('paged') ) || ( $page = $wp_query->get('page') ) ) && $page > 1 ) { + // Thanks to Prentiss Riddle, twitter.com/pzriddle, for the security fix below. + $page = intval($page); // Ensures that an integer (not some dangerous script) is passed for the variable + $c[] = 'paged-' . $page; + if ( is_single() ) { + $c[] = 'single-paged-' . $page; + } elseif ( is_page() ) { + $c[] = 'page-paged-' . $page; + } elseif ( is_category() ) { + $c[] = 'category-paged-' . $page; + } elseif ( is_tag() ) { + $c[] = 'tag-paged-' . $page; + } elseif ( is_date() ) { + $c[] = 'date-paged-' . $page; + } elseif ( is_author() ) { + $c[] = 'author-paged-' . $page; + } elseif ( is_search() ) { + $c[] = 'search-paged-' . $page; + } + } + + // A little Browser detection shall we? + $browser = $_SERVER[ 'HTTP_USER_AGENT' ]; + + // Mac, PC ...or Linux + if ( preg_match( "/Mac/", $browser ) ){ + $c[] = 'mac'; + + } elseif ( preg_match( "/Windows/", $browser ) ){ + $c[] = 'windows'; + + } elseif ( preg_match( "/Linux/", $browser ) ) { + $c[] = 'linux'; + + } else { + $c[] = 'unknown-os'; + } + + // Checks browsers in this order: Chrome, Safari, Opera, MSIE, FF + if ( preg_match( "/Chrome/", $browser ) ) { + $c[] = 'chrome'; + + preg_match( "/Chrome\/(\d.\d)/si", $browser, $matches); + $ch_version = 'ch' . str_replace( '.', '-', $matches[1] ); + $c[] = $ch_version; + + } elseif ( preg_match( "/Safari/", $browser ) ) { + $c[] = 'safari'; + + preg_match( "/Version\/(\d.\d)/si", $browser, $matches); + $sf_version = 'sf' . str_replace( '.', '-', $matches[1] ); + $c[] = $sf_version; + + } elseif ( preg_match( "/Opera/", $browser ) ) { + $c[] = 'opera'; + + preg_match( "/Opera\/(\d.\d)/si", $browser, $matches); + $op_version = 'op' . str_replace( '.', '-', $matches[1] ); + $c[] = $op_version; + + } elseif ( preg_match( "/MSIE/", $browser ) ) { + $c[] = 'msie'; + + if( preg_match( "/MSIE 6.0/", $browser ) ) { + $c[] = 'ie6'; + } elseif ( preg_match( "/MSIE 7.0/", $browser ) ){ + $c[] = 'ie7'; + } elseif ( preg_match( "/MSIE 8.0/", $browser ) ){ + $c[] = 'ie8'; + } + + } elseif ( preg_match( "/Firefox/", $browser ) && preg_match( "/Gecko/", $browser ) ) { + $c[] = 'firefox'; + + preg_match( "/Firefox\/(\d)/si", $browser, $matches); + $ff_version = 'ff' . str_replace( '.', '-', $matches[1] ); + $c[] = $ff_version; + + } else { + $c[] = 'unknown-browser'; + } + + + // Separates classes with a single space, collates classes for BODY + $c = join( ' ', apply_filters( 'body_class', $c ) ); // Available filter: body_class + + // And tada! + return $print ? print($c) : $c; +} + +// Generates semantic classes for each post DIV element +function sandbox_post_class( $print = true ) { + global $post, $sandbox_post_alt; + + // hentry for hAtom compliace, gets 'alt' for every other post DIV, describes the post type and p[n] + $c = array( 'hentry', "p$sandbox_post_alt", $post->post_type, $post->post_status ); + + // Author for the post queried + $c[] = 'author-' . sanitize_title_with_dashes(strtolower(get_the_author('login'))); + + // Category for the post queried + foreach ( (array) get_the_category() as $cat ) + $c[] = 'category-' . $cat->slug; + + // Tags for the post queried; if not tagged, use .untagged + if ( get_the_tags() == null ) { + $c[] = 'untagged'; + } else { + foreach ( (array) get_the_tags() as $tag ) + $c[] = 'tag-' . $tag->slug; + } + + // For password-protected posts + if ( $post->post_password ) + $c[] = 'protected'; + + // Applies the time- and date-based classes (below) to post DIV + sandbox_date_classes( mysql2date( 'U', $post->post_date ), $c ); + + // If it's the other to the every, then add 'alt' class + if ( ++$sandbox_post_alt % 2 ) + $c[] = 'alt'; + + // Separates classes with a single space, collates classes for post DIV + $c = join( ' ', apply_filters( 'post_class', $c ) ); // Available filter: post_class + + // And tada! + return $print ? print($c) : $c; +} + +// Define the num val for 'alt' classes (in post DIV and comment LI) +$sandbox_post_alt = 1; + +// Generates semantic classes for each comment LI element +function sandbox_comment_class( $print = true ) { + global $comment, $post, $sandbox_comment_alt; + + // Collects the comment type (comment, trackback), + $c = array( $comment->comment_type ); + + // Counts trackbacks (t[n]) or comments (c[n]) + if ( $comment->comment_type == 'comment' ) { + $c[] = "c$sandbox_comment_alt"; + } else { + $c[] = "t$sandbox_comment_alt"; + } + + // If the comment author has an id (registered), then print the log in name + if ( $comment->user_id > 0 ) { + $user = get_userdata($comment->user_id); + // For all registered users, 'byuser'; to specificy the registered user, 'commentauthor+[log in name]' + $c[] = 'byuser comment-author-' . sanitize_title_with_dashes(strtolower( $user->user_login )); + // For comment authors who are the author of the post + if ( $comment->user_id === $post->post_author ) + $c[] = 'bypostauthor'; + } + + // If it's the other to the every, then add 'alt' class; collects time- and date-based classes + sandbox_date_classes( mysql2date( 'U', $comment->comment_date ), $c, 'c-' ); + if ( ++$sandbox_comment_alt % 2 ) + $c[] = 'alt'; + + // Separates classes with a single space, collates classes for comment LI + $c = join( ' ', apply_filters( 'comment_class', $c ) ); // Available filter: comment_class + + // Tada again! + return $print ? print($c) : $c; +} + +// Generates time- and date-based classes for BODY, post DIVs, and comment LIs; relative to GMT (UTC) +function sandbox_date_classes( $t, &$c, $p = '' ) { + $t = $t + ( get_option('gmt_offset') * 3600 ); + $c[] = $p . 'y' . gmdate( 'Y', $t ); // Year + $c[] = $p . 'm' . gmdate( 'm', $t ); // Month + $c[] = $p . 'd' . gmdate( 'd', $t ); // Day + $c[] = $p . 'h' . gmdate( 'H', $t ); // Hour +} \ No newline at end of file diff --git a/header.php b/header.php new file mode 100644 index 0000000..f16ed39 --- /dev/null +++ b/header.php @@ -0,0 +1,74 @@ + section and everything up till
    + * + * @package WordPress + * @subpackage Twenty_Ten + * @since Twenty Ten 1.0 + */ +?> +> + + +<?php +/* + * Print the <title> tag based on what is being viewed. + */ +global $page, $paged; + +wp_title( '|', true, 'right' ); + +// Add the blog name. +bloginfo( 'name' ); + +// Add the blog description for the home/front page. +$site_description = get_bloginfo( 'description', 'display' ); +if ( $site_description && ( is_home() || is_front_page() ) ) + echo " | $site_description"; + +// Add a page number if necessary: +if ( $paged >= 2 || $page >= 2 ) + echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) ); + +?> + + + + + + * tag of your theme, or you will break many plugins, which + * generally use this hook to add elements to such + * as styles, scripts, and meta tags. + */ +wp_head(); +?> + + + +
    + + + + + +
    diff --git a/images/headers/berries-thumbnail.jpg b/images/headers/berries-thumbnail.jpg new file mode 100644 index 0000000..6e684f4 Binary files /dev/null and b/images/headers/berries-thumbnail.jpg differ diff --git a/images/headers/berries.jpg b/images/headers/berries.jpg new file mode 100644 index 0000000..3031a05 Binary files /dev/null and b/images/headers/berries.jpg differ diff --git a/images/headers/cherryblossoms-thumbnail.jpg b/images/headers/cherryblossoms-thumbnail.jpg new file mode 100644 index 0000000..710049a Binary files /dev/null and b/images/headers/cherryblossoms-thumbnail.jpg differ diff --git a/images/headers/cherryblossoms.jpg b/images/headers/cherryblossoms.jpg new file mode 100644 index 0000000..56e9df0 Binary files /dev/null and b/images/headers/cherryblossoms.jpg differ diff --git a/images/headers/concave-thumbnail.jpg b/images/headers/concave-thumbnail.jpg new file mode 100644 index 0000000..b271867 Binary files /dev/null and b/images/headers/concave-thumbnail.jpg differ diff --git a/images/headers/concave.jpg b/images/headers/concave.jpg new file mode 100644 index 0000000..9970de2 Binary files /dev/null and b/images/headers/concave.jpg differ diff --git a/images/headers/fern-thumbnail.jpg b/images/headers/fern-thumbnail.jpg new file mode 100644 index 0000000..c6113ab Binary files /dev/null and b/images/headers/fern-thumbnail.jpg differ diff --git a/images/headers/fern.jpg b/images/headers/fern.jpg new file mode 100644 index 0000000..fc0b394 Binary files /dev/null and b/images/headers/fern.jpg differ diff --git a/images/headers/forestfloor-thumbnail.jpg b/images/headers/forestfloor-thumbnail.jpg new file mode 100644 index 0000000..b888fc3 Binary files /dev/null and b/images/headers/forestfloor-thumbnail.jpg differ diff --git a/images/headers/forestfloor.jpg b/images/headers/forestfloor.jpg new file mode 100644 index 0000000..4533948 Binary files /dev/null and b/images/headers/forestfloor.jpg differ diff --git a/images/headers/inkwell-thumbnail.jpg b/images/headers/inkwell-thumbnail.jpg new file mode 100644 index 0000000..61e775e Binary files /dev/null and b/images/headers/inkwell-thumbnail.jpg differ diff --git a/images/headers/inkwell.jpg b/images/headers/inkwell.jpg new file mode 100644 index 0000000..82b0b7d Binary files /dev/null and b/images/headers/inkwell.jpg differ diff --git a/images/headers/path-thumbnail.jpg b/images/headers/path-thumbnail.jpg new file mode 100644 index 0000000..0585ec4 Binary files /dev/null and b/images/headers/path-thumbnail.jpg differ diff --git a/images/headers/path.jpg b/images/headers/path.jpg new file mode 100644 index 0000000..d869497 Binary files /dev/null and b/images/headers/path.jpg differ diff --git a/images/headers/sunset-thumbnail.jpg b/images/headers/sunset-thumbnail.jpg new file mode 100644 index 0000000..416c11a Binary files /dev/null and b/images/headers/sunset-thumbnail.jpg differ diff --git a/images/headers/sunset.jpg b/images/headers/sunset.jpg new file mode 100644 index 0000000..66eddaa Binary files /dev/null and b/images/headers/sunset.jpg differ diff --git a/images/wordpress.png b/images/wordpress.png new file mode 100644 index 0000000..224f7c8 Binary files /dev/null and b/images/wordpress.png differ diff --git a/img/bg.jpg b/img/bg.jpg new file mode 100644 index 0000000..77a7c70 Binary files /dev/null and b/img/bg.jpg differ diff --git a/img/bg.png b/img/bg.png new file mode 100644 index 0000000..b399d0e Binary files /dev/null and b/img/bg.png differ diff --git a/img/bg_body.jpg b/img/bg_body.jpg new file mode 100644 index 0000000..e706321 Binary files /dev/null and b/img/bg_body.jpg differ diff --git a/img/bg_nav.png b/img/bg_nav.png new file mode 100644 index 0000000..336c919 Binary files /dev/null and b/img/bg_nav.png differ diff --git a/img/bg_nav_dot.png b/img/bg_nav_dot.png new file mode 100644 index 0000000..8824f32 Binary files /dev/null and b/img/bg_nav_dot.png differ diff --git a/img/bg_post_hdr.png b/img/bg_post_hdr.png new file mode 100644 index 0000000..ac2d091 Binary files /dev/null and b/img/bg_post_hdr.png differ diff --git a/img/bg_post_hdr_dot.png b/img/bg_post_hdr_dot.png new file mode 100644 index 0000000..1184f2d Binary files /dev/null and b/img/bg_post_hdr_dot.png differ diff --git a/img/bg_primary.png b/img/bg_primary.png new file mode 100644 index 0000000..f873d3f Binary files /dev/null and b/img/bg_primary.png differ diff --git a/img/bg_primary_save.png b/img/bg_primary_save.png new file mode 100644 index 0000000..c7d4113 Binary files /dev/null and b/img/bg_primary_save.png differ diff --git a/img/bg_sidebar.png b/img/bg_sidebar.png new file mode 100644 index 0000000..7caba4e Binary files /dev/null and b/img/bg_sidebar.png differ diff --git a/img/bg_wrap.png b/img/bg_wrap.png new file mode 100644 index 0000000..d1fdef9 Binary files /dev/null and b/img/bg_wrap.png differ diff --git a/img/bg_wrap_1px.png b/img/bg_wrap_1px.png new file mode 100644 index 0000000..e1b4c36 Binary files /dev/null and b/img/bg_wrap_1px.png differ diff --git a/img/dot_purple.png b/img/dot_purple.png new file mode 100644 index 0000000..6626266 Binary files /dev/null and b/img/dot_purple.png differ diff --git a/img/dots_small.png b/img/dots_small.png new file mode 100644 index 0000000..e6dc101 Binary files /dev/null and b/img/dots_small.png differ diff --git a/img/hdr_bullet.png b/img/hdr_bullet.png new file mode 100644 index 0000000..593818a Binary files /dev/null and b/img/hdr_bullet.png differ diff --git a/img/logo.png b/img/logo.png new file mode 100644 index 0000000..bc5ce8e Binary files /dev/null and b/img/logo.png differ diff --git a/img/mast.boxes.jpg b/img/mast.boxes.jpg new file mode 100644 index 0000000..7a10597 Binary files /dev/null and b/img/mast.boxes.jpg differ diff --git a/img/mast.jpg b/img/mast.jpg new file mode 100644 index 0000000..ef03745 Binary files /dev/null and b/img/mast.jpg differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..9970193 --- /dev/null +++ b/index.php @@ -0,0 +1,29 @@ + + +
    +
    + + +
    +
    + + + diff --git a/js/hoverIntent.js b/js/hoverIntent.js new file mode 100644 index 0000000..f4e148f --- /dev/null +++ b/js/hoverIntent.js @@ -0,0 +1,10 @@ +/** +* hoverIntent r5 // 2007.03.27 // jQuery 1.1.2+ +* +* +* @param f onMouseOver function || An object with configuration options +* @param g onMouseOut function || Nothing (use configuration options object) +* @author Brian Cherne +*/ +(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY;};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(this.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.rev);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}if(opts.random){opts.randomMap=[];for(var i=0;i=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z=first?i>=first?els.length-(i-first):first-i:els.length-i;$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var i=0;imaxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:$el.height();this.cycleW=(opts.fit&&opts.width)?opts.width:$el.width();if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingOp=($.browser.opera&&this.cycleW==42&&this.cycleH==19&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}while((opts.timeout-opts.speed)<250){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){opts.nextSlide=opts.currSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).click(function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).click(function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(var i=0;i=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};if(opts.nextSlide!=opts.currSlide){opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after);}else{$.fn.cycle.custom(curr,next,opts,after,manual&&opts.fastOnEvent);}}}opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{var roll=(opts.nextSlide+1)==els.length;opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}if(opts.pager){$.fn.cycle.updateActivePagerLink(opts.pager,opts.currSlide);}}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(curr,next,opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.rev);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide){$(pager).find("a").removeClass("activeSlide").filter("a:eq("+currSlide+")").addClass("activeSlide");};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn(curr,next,opts,fwd);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}if($.isFunction(opts.prevNextClick)){opts.prevNextClick(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});$.fn.cycle.updateActivePagerLink(opts.pager,opts.startingSlide);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a=($.isFunction(opts.pagerAnchorBuilder))?opts.pagerAnchorBuilder(i,el):''+(i+1)+"";if(!a){return;}var $a=$(a);if($a.parents("body").length==0){$a.appendTo($p);}$a.bind(opts.pagerEvent,function(){opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if($.isFunction(opts.pagerClick)){opts.pagerClick(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlidel?c-l:opts.slideCount-l;}else{hops=c=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250};})(jQuery); +/* + * jQuery Cycle Plugin Transition Definitions + * This script is a plugin for the jQuery Cycle Plugin + * Examples and documentation at: http://malsup.com/jquery/cycle/ + * Copyright (c) 2007-2008 M. Alsup + * Version: 2.52 + * Dual licensed under the MIT and GPL licenses: + * http://www.opensource.org/licenses/mit-license.php + * http://www.gnu.org/licenses/gpl.html + */ +;(function($){$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});opts.speed=opts.speed/2;opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(var i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(var i=0;i'+Pa(c.lang.errors[v],n)+"
    "}else k=true;else if(f.player=="inline")if(v=fb.exec(f.content))if(v=B(v[1]))f.content=v.innerHTML;else k=true;else k=true;else if(f.player=="swf"||f.player=="flv"){v=f.options&&f.options.flashVersion||c.options.flashVersion;if(c.flash&&!c.flash.hasFlashPlayerVersion(v)){f.width= +310;f.height=177}}if(k){c.gallery.splice(s,1);if(s0?s-1:s;--s}}}function Ga(a){if(c.options.enableKeys)(a?ha:ma)(document,"keydown",gb)}function gb(a){if(!(a.metaKey||a.shiftKey||a.altKey||a.ctrlKey)){var e;switch(hb(a)){case 81:case 88:case 27:e=c.close;break;case 37:e=c.previous;break;case 39:e=c.next;break;case 32:e=typeof Q=="number"?c.pause:c.play;break}if(e){Ha(a);e()}}}function Qa(a){Ga(false);var e=c.getCurrent(),f=e.player=="inline"? +"html":e.player;if(typeof c[f]!="function")throw"unknown player "+f;if(a){c.player.remove();c.revertOptions();c.applyOptions(e.options||{})}c.player=new c[f](e,c.playerId);if(c.gallery.length>1){e=c.gallery[c.current+1]||c.gallery[0];if(e.player=="img")(new Image).src=e.content;e=c.gallery[c.current-1]||c.gallery[c.gallery.length-1];if(e.player=="img")(new Image).src=e.content}c.skin.onLoad(a,ib)}function ib(){if(R)if(typeof c.player.ready!="undefined")var a=setInterval(function(){if(R){if(c.player.ready){clearInterval(a); +a=null;c.skin.onReady(Ra)}}else{clearInterval(a);a=null}},10);else c.skin.onReady(Ra)}function Ra(){if(R){c.player.append(c.skin.body,c.dimensions);c.skin.onShow(jb)}}function jb(){if(R){c.player.onLoad&&c.player.onLoad();c.options.onFinish(c.getCurrent());c.isPaused()||c.play();Ga(true)}}function ya(){return(new Date).getTime()}function ba(a,e){for(var f in e)a[f]=e[f];return a}function S(a,e){for(var f=0,k=a.length,n=a[0];f
    ');ca=B(Wa);Va();ha(ca,"mousedown",Xa)}function ob(){if(ca){ma(ca, +"mousedown",Xa);Ia(ca);ca=null}ia=null}function Xa(a){Ha(a);a=Sa(a);L.startX=a[0];L.startY=a[1];ia=B(c.player.id);ha(document,"mousemove",Ya);ha(document,"mouseup",Za);if(c.isGecko)ca.style.cursor="-moz-grabbing"}function Ya(a){var e=c.player,f=c.dimensions;a=Sa(a);var k=a[0]-L.startX;L.startX+=k;L.x=Math.max(Math.min(0,L.x+k),f.innerWidth-e.width);a=a[1]-L.startY;L.startY+=a;L.y=Math.max(Math.min(0,L.y+a),f.innerHeight-e.height);ba(ia.style,{left:L.x+"px",top:L.y+"px"})}function Za(){ma(document, +"mousemove",Ya);ma(document,"mouseup",Za);if(c.isGecko)ca.style.cursor="-moz-grab"}function T(a,e,f,k,n){var v=e=="opacity",s=v?c.setOpacity:function(C,M){C.style[e]=""+M+"px"};if(k==0||!v&&!c.options.animate||v&&!c.options.animateFade){s(a,f);n&&n()}else{var N=parseFloat(c.getStyle(a,e))||0,x=f-N;if(x==0)n&&n();else{k*=1E3;var t=ya(),W=c.ease,U=t+k,I,da=setInterval(function(){I=ya();if(I>=U){clearInterval(da);da=null;s(a,f);n&&n()}else s(a,N+W((I-t)/k)*x)},10)}}}function $a(){X.style.height=c.getWindowSize("Height")+ +"px";X.style.width=c.getWindowSize("Width")+"px"}function Ka(){X.style.top=document.documentElement.scrollTop+"px";X.style.left=document.documentElement.scrollLeft+"px"}function ab(a){if(a)S(La,function(e,f){f[0].style.visibility=f[1]||""});else{La=[];S(c.options.troubleElements,function(e){S(document.getElementsByTagName(e),function(f){La.push([f,f.style.visibility]);f.style.visibility="hidden"})})}}function ea(a,e){if(a=B("sb-nav-"+a))a.style.display=e?"":"none"}function bb(a,e){var f=B("sb-loading"), +k=c.getCurrent().player;k=k=="img"||k=="html";if(a){c.setOpacity(f,0);f.style.display="block";a=function(){c.clearOpacity(f);e&&e()};k?T(f,"opacity",1,c.options.fadeDuration,a):a()}else{a=function(){f.style.display="none";c.clearOpacity(f);e&&e()};k?T(f,"opacity",0,c.options.fadeDuration,a):a()}}function pb(a){var e=c.getCurrent();B("sb-title-inner").innerHTML=e.title||"";var f,k,n,v,s;if(c.options.displayNav){f=true;e=c.gallery.length;if(e>1)if(c.options.continuous)k=s=true;else{k=e-1>c.current; +s=c.current>0}if(c.options.slideshowDelay>0&&c.hasNext()){v=!c.isPaused();n=!v}}else f=k=n=v=s=false;ea("close",f);ea("next",k);ea("play",n);ea("pause",v);ea("previous",s);k="";if(c.options.displayCounter&&c.gallery.length>1){e=c.gallery.length;if(c.options.counterType=="skip"){n=0;s=e;v=parseInt(c.options.counterLimit)||0;if(v2){s=Math.floor(v/2);n=c.current-s;if(n<0)n+=e;s=c.current+(v-s);if(s>e)s-=e}for(;n!=s;){if(n==e)n=0;k+='"}}else k=[c.current+1,c.lang.of,e].join(" ")}B("sb-counter").innerHTML=k;a()}function qb(a){var e=B("sb-title-inner"),f=B("sb-info-inner");e.style.visibility=f.style.visibility="";e.innerHTML!=""&&T(e,"marginTop",0,0.35);T(f,"marginTop",0,0.35,a)}function rb(a,e){var f=B("sb-title"),k=B("sb-info");f=f.offsetHeight;k=k.offsetHeight;var n=B("sb-title-inner"),v=B("sb-info-inner");a=a?0.35:0;T(n,"marginTop",f,a);T(v,"marginTop",k*-1,a,function(){n.style.visibility=v.style.visibility= +"hidden";e()})}function ua(a,e,f,k){var n=B("sb-wrapper-inner");f=f?c.options.resizeDuration:0;T(ja,"top",e,f);T(n,"height",a,f,k)}function va(a,e,f,k){f=f?c.options.resizeDuration:0;T(ja,"left",e,f);T(ja,"width",a,f,k)}function Ma(a,e){var f=B("sb-body-inner");a=parseInt(a);e=parseInt(e);var k=ja.offsetHeight-f.offsetHeight;f=ja.offsetWidth-f.offsetWidth;var n=parseInt(c.options.viewportPadding)||20;return c.setDimensions(a,e,fa.offsetHeight,fa.offsetWidth,k,f,n)}var c={version:"3.0"},F=navigator.userAgent.toLowerCase(); +if(F.indexOf("windows")>-1||F.indexOf("win32")>-1)c.isWindows=true;else if(F.indexOf("macintosh")>-1||F.indexOf("mac os x")>-1)c.isMac=true;else if(F.indexOf("linux")>-1)c.isLinux=true;c.isIE=F.indexOf("msie")>-1;c.isIE6=F.indexOf("msie 6")>-1;c.isIE7=F.indexOf("msie 7")>-1;c.isGecko=F.indexOf("gecko")>-1&&F.indexOf("safari")==-1;c.isWebKit=F.indexOf("applewebkit/")>-1;var fb=/#(.+)$/,sb=/^(light|shadow)box\[(.*?)\]/i,tb=/\s*([a-z_]*?)\s*=\s*(.+)\s*/,ub=/[0-9a-z]+$/i,vb=/(.+\/)shadowbox\.js/i,R=false, +cb=false,db={},ga=0,Ca,Q;c.playerId="sb-player";c.current=-1;c.dimensions=null;c.ease=function(a){return 1+Math.pow(a-1,3)};c.errorInfo={fla:{name:"Flash",url:"http://www.adobe.com/products/flashplayer/"},qt:{name:"QuickTime",url:"http://www.apple.com/quicktime/download/"},wmp:{name:"Windows Media Player",url:"http://www.microsoft.com/windows/windowsmedia/"},f4m:{name:"Flip4Mac",url:"http://www.flip4mac.com/wmv_download.htm"}};c.gallery=[];c.path=null;c.player=null;c.options={animate:true,animateFade:true, +autoplayMovies:true,continuous:false,enableKeys:true,flashParams:{bgcolor:"#000000",allowfullscreen:true},flashVars:{},flashVersion:"9.0.115",handleOversize:"resize",handleUnsupported:"link",onChange:za,onClose:za,onFinish:za,onOpen:za,showMovieControls:true,skipSetup:false,slideshowDelay:0,viewportPadding:20};c.getCurrent=function(){return c.current>-1?c.gallery[c.current]:null};c.hasNext=function(){return c.gallery.length>1&&(c.current!=c.gallery.length-1||c.options.continuous)};c.isOpen=function(){return R}; +c.isPaused=function(){return Q=="pause"};c.applyOptions=function(a){db=ba({},c.options);ba(c.options,a)};c.revertOptions=function(){ba(c.options,db)};c.init=function(a){if(!cb){cb=true;c.skin.options&&ba(c.options,c.skin.options);a&&ba(c.options,a);if(!c.path)for(var e=document.getElementsByTagName("script"),f=0,k=e.length;ff)a= +f-t;var W=2*s+v;if(e+W>k)e=k-W;var U=(N-a)/N,I=(x-e)/x,da=U>0||I>0;if(da)if(U>I)e=Math.round(x/N*a);else if(I>U)a=Math.round(N/x*e);c.dimensions={height:a+n,width:e+v,innerHeight:a,innerWidth:e,top:Math.floor((f-(a+t))/2+s),left:Math.floor((k-(e+W))/2+s),oversized:da};return c.dimensions};c.makeGallery=function(a){var e=[],f=-1;if(typeof a=="string")a=[a];if(typeof a.length=="number"){S(a,function(v,s){e[v]=s.content?s:{content:s}});f=0}else{if(a.tagName){var k=c.getCache(a);a=k?k:c.makeObject(a)}if(a.gallery){e= +[];for(var n in c.cache){k=c.cache[n];if(k.gallery&&k.gallery==a.gallery){if(f==-1&&k.content==a.content)f=e.length;e.push(k)}}if(f==-1){e.unshift(a);f=0}}else{e=[a];f=0}}S(e,function(v,s){e[v]=ba({},s)});return[e,f]};c.makeObject=function(a,e){var f={content:a.href,title:a.getAttribute("title")||"",link:a};if(e){e=ba({},e);S(["player","title","height","width","gallery"],function(n,v){if(typeof e[v]!="undefined"){f[v]=e[v];delete e[v]}});f.options=e}else f.options={};if(!f.player)f.player=c.getPlayer(f.content); +if(a=a.getAttribute("rel")){var k=a.match(sb);if(k)f.gallery=escape(k[2]);S(a.split(";"),function(n,v){if(k=v.match(tb))f[k[1]]=k[2]})}return f};c.getPlayer=function(a){if(a.indexOf("#")>-1&&a.indexOf(document.location.href)==0)return"inline";var e=a.indexOf("?");if(e>-1)a=a.substring(0,e);var f;if(a=a.match(ub))f=a[0];if(f){if(c.img&&c.img.ext.indexOf(f)>-1)return"img";if(c.swf&&c.swf.ext.indexOf(f)>-1)return"swf";if(c.flv&&c.flv.ext.indexOf(f)>-1)return"flv";if(c.qt&&c.qt.ext.indexOf(f)>-1)return c.wmp&& +c.wmp.ext.indexOf(f)>-1?"qtwmp":"qt";if(c.wmp&&c.wmp.ext.indexOf(f)>-1)return"wmp"}return"iframe"};if(!Array.prototype.indexOf)Array.prototype.indexOf=function(a,e){var f=this.length>>>0;e=e||0;if(e<0)e+=f;for(;e-1;c.plugins={fla:na.indexOf("Shockwave Flash")>-1,qt:na.indexOf("QuickTime")>-1,wmp:!F&&na.indexOf("Windows Media")>-1,f4m:F}}else{F=function(a){var e;try{e=new ActiveXObject(a)}catch(f){}return!!e};c.plugins={fla:F("ShockwaveFlash.ShockwaveFlash"),qt:F("QuickTime.QuickTime"),wmp:F("wmplayer.ocx"), +f4m:false}}var wb=/^(light|shadow)box/i,xb=1;c.cache={};c.select=function(a){var e=[];if(a){var f=a.length;if(f)if(typeof a=="string"){if(c.find)e=c.find(a)}else if(f==2&&typeof a[0]=="string"&&a[1].nodeType){if(c.find)e=c.find(a[0],a[1])}else for(var k=0;k0){q=p;break}}p=p[b]}i[l]=q}}}var k=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,n=0,v=Object.prototype.toString,s=false,N=true;[0,0].sort(function(){N=false;return 0});var x=function(b,d,h,i){h=h||[];var l=d=d||document;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!=="string")return h;for(var m= +[],w,p,q,K,O=true,J=ka(d),P=b;(k.exec(""),w=k.exec(P))!==null;){P=w[3];m.push(w[1]);if(w[2]){K=w[3];break}}if(m.length>1&&W.exec(b))if(m.length===2&&t.relative[m[0]])p=la(m[0]+m[1],d);else for(p=t.relative[m[0]]?[d]:x(m.shift(),d);m.length;){b=m.shift();if(t.relative[b])b+=m.shift();p=la(b,p)}else{if(!i&&m.length>1&&d.nodeType===9&&!J&&t.match.ID.test(m[0])&&!t.match.ID.test(m[m.length-1])){w=x.find(m.shift(),d,J);d=w.expr?x.filter(w.expr,w.set)[0]:w.set[0]}if(d){w=i?{expr:m.pop(),set:I(i)}:x.find(m.pop(), +m.length===1&&(m[0]==="~"||m[0]==="+")&&d.parentNode?d.parentNode:d,J);p=w.expr?x.filter(w.expr,w.set):w.set;if(m.length>0)q=I(p);else O=false;for(;m.length;){var G=m.pop();w=G;if(t.relative[G])w=m.pop();else G="";if(w==null)w=d;t.relative[G](q,w,J)}}else q=[]}q||(q=p);if(!q)throw"Syntax error, unrecognized expression: "+(G||b);if(v.call(q)==="[object Array]")if(O)if(d&&d.nodeType===1)for(b=0;q[b]!=null;b++){if(q[b]&&(q[b]===true||q[b].nodeType===1&&M(d,q[b])))h.push(p[b])}else for(b=0;q[b]!=null;b++)q[b]&& +q[b].nodeType===1&&h.push(p[b]);else h.push.apply(h,q);else I(q,h);if(K){x(K,l,h,i);x.uniqueSort(h)}return h};x.uniqueSort=function(b){if(C){s=N;b.sort(C);if(s)for(var d=1;d":function(b,d){var h=typeof d==="string";if(h&&!/\W/.test(d)){d=d.toLowerCase();for(var i=0,l=b.length;i=0))h||i.push(w);else if(h)d[m]=false;return false},ID:function(b){return b[1].replace(/\\/g,"")},TAG:function(b){return b[1].toLowerCase()},CHILD:function(b){if(b[1]==="nth"){var d=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(b[2]==="even"&&"2n"||b[2]==="odd"&&"2n+1"||!/\D/.test(b[2])&&"0n+"+b[2]||b[2]);b[2]=d[1]+(d[2]||1)-0;b[3]=d[3]-0}b[0]=n++;return b}, +ATTR:function(b,d,h,i,l,m){d=b[1].replace(/\\/g,"");if(!m&&t.attrMap[d])b[1]=t.attrMap[d];if(b[2]==="~=")b[4]=" "+b[4]+" ";return b},PSEUDO:function(b,d,h,i,l){if(b[1]==="not")if((k.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=x(b[3],null,null,d);else{b=x.filter(b[3],d,h,true^l);h||i.push.apply(i,b);return false}else if(t.match.POS.test(b[0])||t.match.CHILD.test(b[0]))return true;return b},POS:function(b){b.unshift(true);return b}},filters:{enabled:function(b){return b.disabled===false&&b.type!== +"hidden"},disabled:function(b){return b.disabled===true},checked:function(b){return b.checked===true},selected:function(b){return b.selected===true},parent:function(b){return!!b.firstChild},empty:function(b){return!b.firstChild},has:function(b,d,h){return!!x(h[3],b).length},header:function(b){return/h\d/i.test(b.nodeName)},text:function(b){return"text"===b.type},radio:function(b){return"radio"===b.type},checkbox:function(b){return"checkbox"===b.type},file:function(b){return"file"===b.type},password:function(b){return"password"=== +b.type},submit:function(b){return"submit"===b.type},image:function(b){return"image"===b.type},reset:function(b){return"reset"===b.type},button:function(b){return"button"===b.type||b.nodeName.toLowerCase()==="button"},input:function(b){return/input|select|textarea|button/i.test(b.nodeName)}},setFilters:{first:function(b,d){return d===0},last:function(b,d,h,i){return d===i.length-1},even:function(b,d){return d%2===0},odd:function(b,d){return d%2===1},lt:function(b,d,h){return dh[3]-0},nth:function(b,d,h){return h[3]-0===d},eq:function(b,d,h){return h[3]-0===d}},filter:{PSEUDO:function(b,d,h,i){var l=d[1],m=t.filters[l];if(m)return m(b,h,d,i);else if(l==="contains")return(b.textContent||b.innerText||a([b])||"").indexOf(d[3])>=0;else if(l==="not"){d=d[3];h=0;for(i=d.length;h=0}},ID:function(b,d){return b.nodeType===1&&b.getAttribute("id")===d},TAG:function(b,d){return d==="*"&&b.nodeType=== +1||b.nodeName.toLowerCase()===d},CLASS:function(b,d){return(" "+(b.className||b.getAttribute("class"))+" ").indexOf(d)>-1},ATTR:function(b,d){var h=d[1];b=t.attrHandle[h]?t.attrHandle[h](b):b[h]!=null?b[h]:b.getAttribute(h);h=b+"";var i=d[2];d=d[4];return b==null?i==="!=":i==="="?h===d:i==="*="?h.indexOf(d)>=0:i==="~="?(" "+h+" ").indexOf(d)>=0:!d?h&&b!==false:i==="!="?h!==d:i==="^="?h.indexOf(d)===0:i==="$="?h.substr(h.length-d.length)===d:i==="|="?h===d||h.substr(0,d.length+1)===d+"-":false},POS:function(b, +d,h,i){var l=t.setFilters[d[2]];if(l)return l(b,h,d,i)}}},W=t.match.POS;for(var U in t.match){t.match[U]=new RegExp(t.match[U].source+/(?![^\[]*\])(?![^\(]*\))/.source);t.leftMatch[U]=new RegExp(/(^(?:.|\r|\n)*?)/.source+t.match[U].source)}var I=function(b,d){b=Array.prototype.slice.call(b,0);if(d){d.push.apply(d,b);return d}return b};try{Array.prototype.slice.call(document.documentElement.childNodes,0)}catch(da){I=function(b,d){d=d||[];if(v.call(b)==="[object Array]")Array.prototype.push.apply(d, +b);else if(typeof b.length==="number")for(var h=0,i=b.length;h"; +var h=document.documentElement;h.insertBefore(b,h.firstChild);if(document.getElementById(d)){t.find.ID=function(i,l,m){if(typeof l.getElementById!=="undefined"&&!m)return(l=l.getElementById(i[1]))?l.id===i[1]||typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id").nodeValue===i[1]?[l]:xa:[]};t.filter.ID=function(i,l){var m=typeof i.getAttributeNode!=="undefined"&&i.getAttributeNode("id");return i.nodeType===1&&m&&m.nodeValue===l}}h.removeChild(b);h=b=null})();(function(){var b=document.createElement("div"); +b.appendChild(document.createComment(""));if(b.getElementsByTagName("*").length>0)t.find.TAG=function(d,h){h=h.getElementsByTagName(d[1]);if(d[1]==="*"){d=[];for(var i=0;h[i];i++)h[i].nodeType===1&&d.push(h[i]);h=d}return h};b.innerHTML="";if(b.firstChild&&typeof b.firstChild.getAttribute!=="undefined"&&b.firstChild.getAttribute("href")!=="#")t.attrHandle.href=function(d){return d.getAttribute("href",2)};b=null})();document.querySelectorAll&&function(){var b=x,d=document.createElement("div"); +d.innerHTML="

    ";if(!(d.querySelectorAll&&d.querySelectorAll(".TEST").length===0)){x=function(i,l,m,w){l=l||document;if(!w&&l.nodeType===9&&!ka(l))try{return I(l.querySelectorAll(i),m)}catch(p){}return b(i,l,m,w)};for(var h in b)x[h]=b[h];d=null}}();(function(){var b=document.createElement("div");b.innerHTML="
    ";if(!(!b.getElementsByClassName||b.getElementsByClassName("e").length===0)){b.lastChild.className="e";if(b.getElementsByClassName("e").length!== +1){t.order.splice(1,0,"CLASS");t.find.CLASS=function(d,h,i){if(typeof h.getElementsByClassName!=="undefined"&&!i)return h.getElementsByClassName(d[1])};b=null}}})();var M=document.compareDocumentPosition?function(b,d){return b.compareDocumentPosition(d)&16}:function(b,d){return b!==d&&(b.contains?b.contains(d):true)},ka=function(b){return(b=(b?b.ownerDocument||b:0).documentElement)?b.nodeName!=="HTML":false},la=function(b,d){var h=[],i="",l;for(d=d.nodeType?[d]:d;l=t.match.PSEUDO.exec(b);){i+=l[0]; +b=b.replace(t.match.PSEUDO,"")}b=t.relative[b]?b+"*":b;l=0;for(var m=d.length;l0){var r=C(o);if(r){J[j].width=r.getAttribute("width")?r.getAttribute("width"):"0";J[j].height=r.getAttribute("height")?r.getAttribute("height"): +"0";if(la(J[j].swfVersion)){u.webkit&&u.webkit<312&&s(r);d(o,true)}else J[j].expressInstall&&!qa&&la("6.0.65")&&(u.win||u.mac)?N(J[j]):x(r)}}else d(o,true)}}function s(g){var j=g.getElementsByTagName(l)[0];if(j){var o=M("embed"),r=j.attributes;if(r)for(var y=r.length,A=0;A';y.outerHTML='"+D+"";P[P.length]=g.id;r=C(g.id)}else if(u.webkit&&u.webkit<312){z=M("embed");z.setAttribute("type",m);for(A in g)if(g[A]!=Object.prototype[A])if(A.toLowerCase()=="data")z.setAttribute("src",g[A]);else if(A.toLowerCase()=="styleclass")z.setAttribute("class",g[A]);else A.toLowerCase()!= +"classid"&&z.setAttribute(A,g[A]);for(var V in j)j[V]!=Object.prototype[V]&&V.toLowerCase()!="movie"&&z.setAttribute(V,j[V]);y.parentNode.replaceChild(z,y);r=z}else{z=M(l);z.setAttribute("type",m);for(var E in g)if(g[E]!=Object.prototype[E])if(E.toLowerCase()=="styleclass")z.setAttribute("class",g[E]);else E.toLowerCase()!="classid"&&z.setAttribute(E,g[E]);for(var Z in j)j[Z]!=Object.prototype[Z]&&Z.toLowerCase()!="movie"&&U(z,Z,j[Z]);y.parentNode.replaceChild(z,y);r=z}}return r}function U(g,j,o){var r= +M("param");r.setAttribute("name",j);r.setAttribute("value",o);g.appendChild(r)}function I(g){var j=C(g);if(j&&(j.nodeName=="OBJECT"||j.nodeName=="EMBED"))if(u.ie&&u.win)j.readyState==4?da(g):p.attachEvent("onload",function(){da(g)});else j.parentNode.removeChild(j)}function da(g){if(g=C(g)){for(var j in g)if(typeof g[j]=="function")g[j]=null;g.parentNode.removeChild(g)}}function C(g){var j=null;try{j=q.getElementById(g)}catch(o){}return j}function M(g){return q.createElement(g)}function ka(g,j,o){g.attachEvent(j, +o);G[G.length]=[g,j,o]}function la(g){var j=u.pv;g=g.split(".");g[0]=parseInt(g[0],10);g[1]=parseInt(g[1],10)||0;g[2]=parseInt(g[2],10)||0;return j[0]>g[0]||j[0]==g[0]&&j[1]>g[1]||j[0]==g[0]&&j[1]==g[1]&&j[2]>=g[2]?true:false}function b(g,j){if(!(u.ie&&u.mac)){var o=q.getElementsByTagName("head")[0],r=M("style");r.setAttribute("type","text/css");r.setAttribute("media","screen");!(u.ie&&u.win)&&typeof q.createTextNode!=i&&r.appendChild(q.createTextNode(g+" {"+j+"}"));o.appendChild(r);if(u.ie&&u.win&& +typeof q.styleSheets!=i&&q.styleSheets.length>0){o=q.styleSheets[q.styleSheets.length-1];typeof o.addRule==l&&o.addRule(g,j)}}}function d(g,j){j=j?"visible":"hidden";if(Da&&C(g))C(g).style.visibility=j;else b("#"+g,"visibility:"+j)}function h(g){return/[\\\"<>\.;]/.exec(g)!=null?encodeURIComponent(g):g}var i="undefined",l="object",m="application/x-shockwave-flash",w="SWFObjectExprInst",p=aa,q=document,K=navigator,O=[],J=[],P=[],G=[],Y,oa=null,ra=null,Ea=null,Da=false,qa=false,u=function(){var g=typeof q.getElementById!= +i&&typeof q.getElementsByTagName!=i&&typeof q.createElement!=i,j=[0,0,0],o=null;if(typeof K.plugins!=i&&typeof K.plugins["Shockwave Flash"]==l){if((o=K.plugins["Shockwave Flash"].description)&&!(typeof K.mimeTypes!=i&&K.mimeTypes[m]&&!K.mimeTypes[m].enabledPlugin)){o=o.replace(/^.*\s+(\S+\s+\S+$)/,"$1");j[0]=parseInt(o.replace(/^(.*)\..*$/,"$1"),10);j[1]=parseInt(o.replace(/^.*\.(.*)\s.*$/,"$1"),10);j[2]=/r/.test(o)?parseInt(o.replace(/^.*r(.*)$/,"$1"),10):0}}else if(typeof p.ActiveXObject!=i){var r= +null,y=false;try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(A){try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");j=[6,0,21];r.AllowScriptAccess="always"}catch(D){if(j[0]==6)y=true}if(!y)try{r=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(z){}}if(!y&&r)try{if(o=r.GetVariable("$version")){o=o.split(" ")[1].split(",");j=[parseInt(o[0],10),parseInt(o[1],10),parseInt(o[2],10)]}}catch(V){}}y=K.userAgent.toLowerCase();var E=K.platform.toLowerCase();o=/webkit/.test(y)? +parseFloat(y.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false;r=E?/win/.test(E):/win/.test(y);y=E?/mac/.test(E):/mac/.test(y);return{w3cdom:g,pv:j,webkit:o,ie:false,win:r,mac:y}}();(function(){if(u.w3cdom){k(v);if(u.ie&&u.win)try{q.write("