Skip to content
Browse files

added all theme files

  • Loading branch information...
1 parent 45b69a8 commit 5bf9ff9845d1f6b51dfab796ece54a080b540ec8 Eddie Machado committed Dec 22, 2010
View
31 404.php
@@ -0,0 +1,31 @@
+<?php get_header(); ?>
+
+ <div id="content" class="clear">
+
+ <div id="main" class="col620 clear" role="main">
+
+ <article id="post-not-found" class="clear">
+
+ <header>
+
+ <h1>Epic 404 - Article Not Found</h1>
+
+ </header> <!-- end article header -->
+
+ <section class="post_content">
+
+ <p>The article you were looking for was not found, but maybe try looking again!</p>
+
+ </section> <!-- end article section -->
+
+ <footer>
+
+ </footer> <!-- end article footer -->
+
+ </article> <!-- end article -->
+
+ </div> <!-- end #main -->
+
+ </div> <!-- end #content -->
+
+<?php get_footer(); ?>
View
81 archive.php
@@ -0,0 +1,81 @@
+<?php get_header(); ?>
+
+ <div id="content" class="clear">
+
+ <div id="main" class="col620 clear" role="main">
+
+ <?php if (is_category()) { ?>
+ <h1 class="archive_title h2"><span>Posts Categorized:</span> <?php single_cat_title(); ?></h1>
+ <?php } elseif (is_tag()) { ?>
+ <h1 class="archive_title h2"><span>Posts Tagged:</span> <?php single_tag_title(); ?></h1>
+ <?php } elseif (is_author()) { ?>
+ <h1 class="archive_title h2"><span>Posts By:</span> <?php echo get_author_name(get_query_var('author')); ?></h1>
+ <?php } elseif (is_day()) { ?>
+ <h1 class="archive_title h2"><span>Daily Archives:</span> <?php the_time('l, F j, Y'); ?></h1>
+ <?php } elseif (is_month()) { ?>
+ <h1 class="archive_title h2"><span>Monthly Archives:</span> <?php the_time('F Y'); ?></h1>
+ <?php } elseif (is_year()) { ?>
+ <h1 class="archive_title h2"><span>Yearly Archives:</span> <?php the_time('Y'); ?></h1>
+ <?php } ?>
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" class="clear">
+
+ <header>
+
+ <h3><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
+
+ <p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+
+ </header> <!-- end article header -->
+
+ <section class="post_content">
+ <?php the_excerpt('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
+
+ </section> <!-- end article section -->
+
+ <footer>
+
+ </footer> <!-- end article footer -->
+
+ </article> <!-- end article -->
+
+ <?php endwhile; ?>
+
+ <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
+
+ <?php page_navi(); // use the page navi function ?>
+
+ <?php } else { // if it is disabled, display regular wp prev & next links ?>
+ <nav class="wp-prev-next">
+ <ul class="clear">
+ <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
+ <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+ </ul>
+ </nav>
+ <?php } ?>
+
+
+ <?php else : ?>
+
+ <article id="post-not-found">
+ <header>
+ <h1>No Posts Yet</h1>
+ </header>
+ <section class="post_content">
+ <p>Sorry, but the requested resource was not found on this site.</p>
+ </section>
+ <footer>
+ </footer>
+ </article>
+
+ <?php endif; ?>
+
+ </div> <!-- end #main -->
+
+ <?php get_sidebar(); // sidebar 1 ?>
+
+ </div> <!-- end #content -->
+
+<?php get_footer(); ?>
View
119 comments.php
@@ -0,0 +1,119 @@
+<?php
+/*
+The comments page for Bones
+*/
+
+// Do not delete these lines
+ if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
+ die ('Please do not load this page directly. Thanks!');
+
+ if ( post_password_required() ) { ?>
+ <div class="help">
+ <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
+ </div>
+ <?php
+ return;
+ }
+?>
+
+<!-- You can start editing here. -->
+
+<?php if ( have_comments() ) : ?>
+
+ <h3 id="comments" class="h2"><?php comments_number('<span>No</span> Responses', '<span>One</span> Response', '<span>%</span> Responses' );?> to &#8220;<?php the_title(); ?>&#8221;</h3>
+
+ <nav id="comment-nav">
+ <ul class="clear">
+ <li><?php previous_comments_link() ?></li>
+ <li><?php next_comments_link() ?></li>
+ </ul>
+ </nav>
+
+ <ol class="commentlist">
+ <?php wp_list_comments('type=comment&callback=bones_comments'); ?>
+ </ol>
+
+ <nav id="comment-nav">
+ <ul class="clear">
+ <li><?php previous_comments_link() ?></li>
+ <li><?php next_comments_link() ?></li>
+ </ul>
+ </nav>
+
+ <?php else : // this is displayed if there are no comments so far ?>
+
+ <?php if ( comments_open() ) : ?>
+ <!-- If comments are open, but there are no comments. -->
+
+ <?php else : // comments are closed ?>
+ <!-- If comments are closed. -->
+ <p class="nocomments">Comments are closed.</p>
+
+ <?php endif; ?>
+
+<?php endif; ?>
+
+
+<?php if ( comments_open() ) : ?>
+
+<section id="respond">
+
+ <h3 id="comment-form-title" class="h2"><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></h3>
+
+ <div id="cancel-comment-reply">
+ <p class="small"><?php cancel_comment_reply_link(); ?></p>
+ </div>
+
+ <?php if ( get_option('comment_registration') && !is_user_logged_in() ) : ?>
+ <div class="help">
+ <p>You must be <a href="<?php echo wp_login_url( get_permalink() ); ?>">logged in</a> to post a comment.</p>
+ </div>
+ <?php else : ?>
+
+ <form action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
+
+ <?php if ( is_user_logged_in() ) : ?>
+
+ <p class="comments-logged-in-as">Logged in as <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>. <a href="<?php echo wp_logout_url(get_permalink()); ?>" title="Log out of this account">Log out &raquo;</a></p>
+
+ <?php else : ?>
+
+ <ul id="comment-form-elements" class="clear">
+
+ <li>
+ <label for="author">Name <?php if ($req) echo "(required)"; ?></label>
+ <input type="text" name="author" id="author" value="<?php echo esc_attr($comment_author); ?>" placeholder="Your Name" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> />
+ </li>
+
+ <li>
+ <label for="email">Mail <?php if ($req) echo "(required)"; ?></label>
+ <input type="email" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" placeholder="Your Email" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
+ <small>(will not be published)</small>
+ </li>
+
+ <li>
+ <label for="url">Website</label>
+ <input type="url" name="url" id="url" value="<?php echo esc_attr($comment_author_url); ?>" placeholder="Your Website" tabindex="3" />
+ </li>
+
+ </ul>
+
+ <?php endif; ?>
+
+ <p><textarea name="comment" id="comment" placeholder="Your Comment Here..." tabindex="4"></textarea></p>
+
+ <p>
+ <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" />
+ <?php comment_id_fields(); ?>
+ </p>
+
+ <p id="allowed_tags"><strong>XHTML:</strong> You can use these tags: <code><?php echo allowed_tags(); ?></code></p>
+
+ <?php do_action('comment_form', $post->ID); ?>
+
+ </form>
+
+ <?php endif; // If registration required and not logged in ?>
+</section>
+
+<?php endif; // if you delete this the sky will fall on your head ?>
View
BIN favicon.ico
Binary file not shown.
View
33 footer.php
@@ -0,0 +1,33 @@
+ <footer role="contentinfo">
+
+ <div id="inner-footer">
+
+ <nav role="navigation">
+ <?php bones_footer_links(); // Adjust using Menus in Wordpress Admin ?>
+ </nav>
+
+ <p class="attribution">&copy; <?php bloginfo('name'); ?> is powered by <a href="http://wordpress.org/" title="WordPress">Wordpress</a> <span class="amp">&</span> <a rel="nofollow" href="http://www.themble.com/bones" title="Bones" class="footer_bones_link">Bones</a>.</p>
+
+ </div> <!-- end #inner-footer -->
+
+ </footer> <!-- end footer -->
+
+ </div> <!-- end #container -->
+
+ <?php wp_footer(); // js scripts are inserted using this function ?>
+
+ <!-- custom scripts -->
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/scripts.js"></script>
+
+ <!--[if lt IE 7 ]>
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/libs/dd_belatedpng.js"></script>
+ <script> DD_belatedPNG.fix('img, .png_bg'); </script>
+ <![endif]-->
+
+ <!-- Insert Analytics -->
+
+ <!-- End Analytics -->
+
+ </body>
+
+</html>
View
129 functions.php
@@ -0,0 +1,129 @@
+<?php
+/*
+
+Author: Eddie Machado
+URL: htp://themble.com/bones/
+
+This is the Bones Core file. It powers everything.
+YOU DON'T WANT TO MESS W/ THIS FILE UNLESS YOU KNOW WHAT YOU'RE DOING.
+
+At most, the only thing you should edit is adding or removing the
+expirimental features.
+*/
+
+// Get Bones Core Up & Running!
+include_once('library/bones.php');
+
+/*
+Inside the bones.php file:
+
+ 1. removing some wp calls in the header
+ a. rsd_link (simple discovery link)
+ b. wlwmanifest_link (windows live writer link)
+ c. wp_generator (version number)
+ 2. adding comment reply script via wp
+ 3. adding custom scripts file in the footer
+ 4. PNG fix for IE
+ 5. adding wp 3.0 functions
+ a. menus
+ b. thumbnails
+ c. custom bg images
+ d. custom header images
+ 6. relates posts scripts (optional)
+
+To Use Expirimental Features keep the line below enabled
+
+(DISABLE IF YOU DON'T WANT IT OR ENCOUNTER ANY ERRORS)
+
+To disable, simply add two slashes before it (//).
+When disabled, it would look like this:
+
+// include_once('library/plugins.php');
+
+*/
+
+// Expirimental Features
+include_once('library/plugins.php');
+
+
+/* BONES FUNCTIONS (DO NOT EDIT) */
+
+// Thumbnail sizes
+add_image_size( 'bones-thumb-600', 600, 150, true );
+add_image_size( 'bones-thumb-100', 300, 100, true );
+/*
+to add more sizes, simply copy a line from above
+and change the dimensions & name. As long as you
+upload a "featured image" as large as the biggest
+set width or height, all the other sizes will be
+autocropped.
+
+To call a different size, simply change the text
+inside the thumbnail function.
+
+For example, to call the 300 x 300 sized image,
+we would use the function:
+<?php the_post_thumbnail( 'bones-thumb-300' ); ?>
+for the 600 x 100 image:
+<?php the_post_thumbnail( 'bones-thumb-600' ); ?>
+
+You can change the names and dimensions to whatever
+you like. Enjoy!
+*/
+
+// Sidebars & Widgetizes Areas
+function bones_register_sidebars() {
+ register_sidebar(array(
+ 'id' => 'sidebar1',
+ 'name' => 'Sidebar 1',
+ 'description' => 'The first (primary) sidebar.',
+ 'before_widget' => '<div id="%1$s" class="widget %2$s">',
+ 'after_widget' => '</div>',
+ 'before_title' => '<h4 class="widgettitle">',
+ 'after_title' => '</h4>',
+ ));
+
+ /*
+ to add more sidebars or widgetized areas, just copy
+ and edit the above sidebar code. In order to call
+ your new sidebar just use the following code:
+
+ Just change the name to whatever your new
+ sidebar's id is.
+ */
+}
+
+// adding sidebars to Wordpress
+add_action( 'widgets_init', 'bones_register_sidebars' );
+
+// Comment Layout
+function bones_comments($comment, $args, $depth) {
+ $GLOBALS['comment'] = $comment; ?>
+ <li <?php comment_class(); ?>>
+ <article id="comment-<?php comment_ID(); ?>">
+ <header class="comment-author vcard">
+ <?php echo get_avatar($comment,$size='32',$default='<path_to_url>' ); ?>
+ <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
+ <time><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s'), get_comment_date(), get_comment_time()) ?></a></time>
+ <?php edit_comment_link(__('(Edit)'),' ','') ?>
+ </header>
+
+ <?php if ($comment->comment_approved == '0') : ?>
+ <div class="help">
+ <p><?php _e('Your comment is awaiting moderation.') ?></p>
+ </div>
+
+ <?php endif; ?>
+
+ <section class="comment_content clear">
+ <?php comment_text() ?>
+ </section>
+
+ <?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
+
+ </article>
+ <!-- </li> is added by wordpress automatically -->
+<?php
+}
+
+?>
View
65 header.php
@@ -0,0 +1,65 @@
+<!doctype html>
+
+<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
+<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
+<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
+<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
+<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
+
+ <head>
+
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+
+ <title><?php wp_title('&laquo;', true, 'right'); ?></title>
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+
+ <!-- icons & facivons -->
+ <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico">
+ <link rel="apple-touch-icon" href="<?php bloginfo('template_directory'); ?>/library/images/apple-touch-icon.png">
+
+ <!-- stylesheets -->
+ <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/library/css/style.css">
+
+ <!-- scripts -->
+ <script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
+ <script>!window.jQuery && document.write(unescape('%3Cscript src="<?php bloginfo('template_directory'); ?>/library/js/libs/jquery-1.4.2.js"%3E%3C/script%3E'))</script>
+
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/libs/modernizr-1.6.min.js"></script>
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/libs/imgsizer.js"></script>
+
+ <!--[if lt IE 9]>
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/libs/ie/DOMAssistant-2.0.min.js"></script>
+ <script src="<?php bloginfo('template_directory'); ?>/library/js/libs/ie/selectivizr.js"></script>
+ <![endif]-->
+
+ <!-- wordpress head functions -->
+ <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
+
+ <?php wp_head(); ?>
+
+ <!-- stylesheet is called after wp_head so you can overwrite plugin styles if needed -->
+ <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
+
+ </head>
+
+ <body <?php body_class(); ?>>
+
+ <div id="container">
+
+ <header role="banner">
+
+ <div id="inner-header">
+
+ <h1 id="logo"><a href="<?php bloginfo('url'); ?>" rel="nofollow"><?php bloginfo('name'); ?></a></h1>
+
+ <nav role="navigation">
+ <?php bones_main_nav(); // Adjust using Menus in Wordpress Admin ?>
+ </nav>
+
+ </div> <!-- end #inner-header -->
+
+ </header> <!-- end header -->
View
46 image.php
@@ -0,0 +1,46 @@
+<?php get_header(); ?>
+
+ <div id="content" class="clear">
+
+ <div id="main" class="clear">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+
+ <header>
+ <h1 class="h2"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> &raquo; <?php the_title(); ?></h2>
+ </header>
+
+ <section class="post_content clear">
+ <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p>
+ <p class="caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p>
+
+ <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
+ </section>
+
+ <footer>
+ <nav class="prev-next-links">
+ <ul class="clear">
+ <li><?php previous_image_link() ?></li>
+ <li><?php next_image_link() ?></li>
+ </ul>
+ </nav>
+ </footer>
+ </article>
+
+ <?php endwhile; else: ?>
+
+ <div class="help">
+ <p>Sorry, no attachments matched your criteria.</p>
+ </div>
+
+ <?php endif; ?>
+
+ </div> <!-- end #main -->
+
+ <?php get_sidebar(); // sidebar 1 ?>
+
+ </div> <!-- end #content -->
+
+<?php get_footer(); ?>
View
70 index.php
@@ -0,0 +1,70 @@
+<?php get_header(); ?>
+
+ <div id="content" class="clear">
+
+ <div id="main" class="col620 clear" role="main">
+
+ <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
+
+ <article id="post-<?php the_ID(); ?>" <?php post_class('clear'); ?>>
+
+ <header>
+
+ <h1 class="h2"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
+
+ <p class="meta">Posted <time><?php the_time('F jS, Y'); ?></time> by <?php the_author(); ?> <span class="amp">&</span> filed under <?php the_category(', '); ?>.</p>
+
+ </header> <!-- end article header -->
+
+ <section class="post_content clear">
+ <?php the_content('<span class="read-more">Read more on "'.the_title('', '', false).'" &raquo;</span>'); ?>
+
+ </section> <!-- end article section -->
+
+ <footer>
+
+ <p class="tags"><?php the_tags('<span class="tags-title">Tags:</span> ', ', ', ''); ?></p>
+
+ </footer> <!-- end article footer -->
+
+ </article> <!-- end article -->
+
+ <?php comments_template(); ?>
+
+ <?php endwhile; ?>
+
+ <?php if (function_exists('page_navi')) { // if expirimental feature is active ?>
+
+ <?php page_navi(); // use the page navi function ?>
+
+ <?php } else { // if it is disabled, display regular wp prev & next links ?>
+ <nav class="wp-prev-next">
+ <ul class="clear">
+ <li class="prev-link"><?php next_posts_link('&laquo; Older Entries') ?></li>
+ <li class="next-link"><?php previous_posts_link('Newer Entries &raquo;') ?></li>
+ </ul>
+ </nav>
+ <?php } ?>
+
+ <?php else : ?>
+
+ <article id="post-not-found">
+ <header>
+ <h1>Not Found</h1>
+ </header>
+ <section class="post_content">
+ <p>Sorry, but the requested resource was not found on this site.</p>
+ </section>
+ <footer>
+ </footer>
+ </article>
+
+ <?php endif; ?>
+
+ </div> <!-- end #main -->
+
+ <?php get_sidebar(); // sidebar 1 ?>
+
+ </div> <!-- end #content -->
+
+<?php get_footer(); ?>
View
107 library/bones.php
@@ -0,0 +1,107 @@
+<?php
+/* Welcome to Bones :)
+This is meant to be a very helpful development tool.
+I hope it makes your life easier!
+
+Developed by: Eddie Machado
+URL: http://themble.com/bones/
+*/
+
+// remove some WP defaults
+function removeHeadLinks() {
+ // remove simple discovery link
+ remove_action('wp_head', 'rsd_link');
+ // remove windows live writer link
+ remove_action('wp_head', 'wlwmanifest_link');
+ // remove the version number
+ remove_action('wp_head', 'wp_generator');
+ // remove header links
+}
+ add_action('init', 'removeHeadLinks');
+ // Add RSS links to <head> section
+ automatic_feed_links();
+
+// loading jquery reply elements on single pages automatically
+function bones_queue_js(){
+ if (!is_admin()){
+ if ( is_singular() AND comments_open() AND (get_option('thread_comments') == 1))
+ wp_enqueue_script( 'comment-reply' );
+ }
+}
+add_action('wp_print_scripts', 'bones_queue_js');
+
+ // Loading up the scripts in the footer
+ function bones_jquery_scripts() { bones_comment_reply(); }
+ add_filter('wp_footer','bones_jquery_scripts');
+
+// Adding WP 3.0 Functions
+ //menus
+ add_theme_support( 'menus' );
+ // thumbnails
+ add_theme_support('post-thumbnails');
+ set_post_thumbnail_size(125, 125, true); /* more sizes are available using the functions.php file */
+ // custom backgrounds
+ add_custom_background();
+ // header image
+ define( 'HEADER_IMAGE', '%s/images/default-headbg.png' );
+ define( 'HEADER_IMAGE_WIDTH', apply_filters( '', 960 ) ); // Width of Logo
+ define( 'HEADER_IMAGE_HEIGHT', apply_filters( '', 150 ) ); // Height of Logo
+ define( 'NO_HEADER_TEXT', true );
+ add_custom_image_header( '', 'admin_header_style' );
+
+// Creating the Nav Menus
+function bones_menus() { register_nav_menus(
+ array(
+ 'main_nav' => 'The Main Menu',
+ 'footer_links' => 'Footer Links',
+ ));
+}
+ add_action( 'init', 'bones_menus' );
+
+function bones_main_nav() { if ( function_exists( 'wp_nav_menu' ) )
+ // display the wp3 menu if available
+ wp_nav_menu( 'menu=main_nav&container_class=nav&fallback_cb=bones_main_nav_fallback' );
+ else
+ // else fallback if not supported
+ mytheme_nav_fallback();
+}
+
+function bones_footer_links() { if ( function_exists( 'wp_nav_menu' ) )
+ // display the wp3 menu if available
+ wp_nav_menu( 'menu=footer_links&container_class=footer-links&fallback_cb=bones_footer_links_fallback' );
+ else
+ // else fallback if not supported
+ bones_footer_links_fallback();
+}
+
+function bones_main_nav_fallback() { wp_page_menu( 'show_home=Start&menu_class=menu' ); }
+function bones_footer_links_fallback() { echo 'Bones'; }
+
+// Related Posts Function (call using bones_related_posts(); )
+function bones_related_posts() {
+ echo '<ul id="bones-related-posts">';
+ global $post;
+ $tags = wp_get_post_tags($post->ID);
+ if($tags) {
+ foreach($tags as $tag) { $tag_arr .= $tag->slug . ','; }
+ $args = array(
+ 'tag' => $tag_arr,
+ 'numberposts' => 5,
+ 'post__not_in' => array($post->ID)
+ );
+ $related_posts = get_posts($args);
+ if($related_posts) {
+ foreach ($related_posts as $post) : setup_postdata($post); ?>
+ <li class="related_post"><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></li>
+ <?php endforeach; } else { ?>
+ <li class="no_related_post">No Related Posts Yet!</li>
+ <?php }
+ }
+ wp_reset_query();
+ echo '</ul>';
+}
+
+
+
+
+?>
View
395 library/css/style.css
@@ -0,0 +1,395 @@
+/******************************************************************
+Bones Master Stylesheet
+
+Designed by Eddie Machado
+http://themble.com/bones
+eddie@themble.com
+
+Design Copyright 2010. All Rights Reserved.
+XHTML/CSS released under a Creative Commons Attribution 2.5 licence.
+
+Special Thanks to:
+Paul Irish & the HTML5 Boilerplate
+Yoast for some WP functions & optimization ideas
+Andrew Rogers for code optimization
+David Dellanave for speed & code optimization
+and several other developers. :)
+
+I ADVISE AGAINST EDITING THESE FILES. USE THE STYLE.CSS FILE IN THE ROOT.
+******************************************************************/
+
+/******************************************************************
+RESET STYLES
+******************************************************************/
+
+/* general reset */
+html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
+small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, figcaption, figure, footer, header, hgroup,
+menu, nav, section, summary, time, mark, audio, video { margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent; }
+html { overflow-y: scroll; }
+
+/* html 5 reset */
+article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display:block; }
+
+/* ul & li resets */
+ol, ul { list-style: none; }
+
+/* blockquote reset */
+blockquote, q { quotes:none; }
+blockquote:before, blockquote:after, q:before, q:after { content:''; content:none; }
+
+/* link style resets */
+a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
+a:hover, a:active { outline: none; }
+
+/* table resets */
+table { border-collapse:collapse; border-spacing:0; }
+td, td img { vertical-align: top; }
+
+/* type & header styles */
+body { font:13px/1.223 sans-serif; *font-size:small; }
+p { hyphenate:auto; hyphenate-before:2; hyphenate-after:3; hyphenate-lines:3; orphans:4; }
+select, input, textarea, button { font:99% sans-serif; }
+body, select, input, textarea { color: #444; }
+small, .small { font-size:0.75em; letter-spacing:.05em; font-style:italic; line-height:1.75em; }
+strong, th, .strong { font-weight: bold; }
+em, .em { font-style: italic; }
+.text-left {text-align: left;}
+.text-center {text-align: center;}
+.text-right {text-align: right;}
+ins, .ins { background-color:#ff9; color:#000; text-decoration:none; }
+mark, .mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
+del, .del { text-decoration: line-through; }
+abbr[title], dfn[title] { border-bottom:1px dotted; cursor:help; }
+sub { vertical-align: sub; font-size: smaller; }
+sup { vertical-align: super; font-size: smaller; }
+
+/* code & pre box resets */
+pre { padding: 15px; white-space: pre; white-space: pre-wrap; white-space: pre-line; word-wrap: break-word; }
+
+/* form & input resets */
+pre, code, kbd, samp { font-family: monospace, sans-serif; margin: 1.5em; }
+input, select { vertical-align:middle; }
+textarea { overflow: auto; }
+.ie6 legend, .ie7 legend { margin-left: -7px; }
+input[type="radio"] { vertical-align: text-bottom; }
+input[type="checkbox"] { vertical-align: bottom; }
+.ie7 input[type="checkbox"] { vertical-align: baseline; }
+.ie6 input { vertical-align: text-bottom; }
+label, input[type=button], input[type=submit], button { cursor: pointer; }
+button, input, select, textarea { margin: 0; }
+input:valid, textarea:valid { }
+input:invalid, textarea:invalid { border-radius: 1px; -moz-box-shadow: 0px 0px 5px red; -webkit-box-shadow: 0px 0px 5px red; box-shadow: 0px 0px 5px red; }
+.no-boxshadow input:invalid,
+.no-boxshadow textarea:invalid { background-color: #f0dddd; }
+button { width: auto; overflow: visible; }
+
+/* text highlight reset */
+::-moz-selection{ background: #6fc2f6; color:#fff; text-shadow: none; }
+::selection { background:#6fc2f6; color:#fff; text-shadow: none; }
+
+/* image resets */
+.ie7 img { -ms-interpolation-mode: bicubic; }
+
+/* hidden elements */
+.hidden { display: none; visibility: hidden; }
+.visuallyhidden { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px); }
+
+/* clearfixes */
+.clear:after, .menu:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}
+.clear { display: inline-block; }
+* html .clear { height: 1%; }
+.clear { display: block; }
+
+/******************************************************************
+COMMON & REUSABLE STYLES
+******************************************************************/
+
+/* floats */
+.left { float: left; }
+.right { float: right; }
+
+/* highlighting search term on search page */
+mark, .search-term { background: #EBE16F; }
+
+/* alerts & notices */
+.help, .info, .error, .success { margin: 10px; padding: 10px; border: 1px solid #cecece; }
+.help { border-color: #E0C618; background: #EBE16F; }
+.info { border-color: #92cae4; background: #d5edf8; }
+.error { border-color: #fbc2c4; background: #fbe3e4; }
+.success { border-color: #c6d880; background: #e6efc2; }
+
+/******************************************************************
+GENERAL STYLES
+******************************************************************/
+
+body { font-size: 14px; line-height: 1.5em; font-family: Georgia, Cambria, "New Century Schoolbook", "Century Schoolbook L", "Times New Roman", serif; background-color: #efefef; }
+
+#container, .wrap {}
+
+/******************************************************************
+LINK STYLES
+******************************************************************/
+
+a, a:visited { color: #1a90db; text-decoration: underline; }
+a:hover { color: #f01d4f; text-decoration: none; }
+a:active { color: #71e81c; }
+a:link {-webkit-tap-highlight-color: #f01d4f; }
+
+/******************************************************************
+H1, H2, H3, H4, H5 STYLES
+******************************************************************/
+
+h1 a, .h1 a, h2 a, .h2 a, h3 a, .h3 a, h4 a, .h4 a, h5 a, .h5 a { text-decoration: none; font-weight: 500; }
+h1, .h1 { font-size:2.5em; line-height: 1.333em; }
+h2, .h2 { font-size: 1.75em; line-height: 1.1em; }
+h3, .h3 { font-size: 1.125em; }
+h4, .h4 { font-size: 1.1em; font-weight: 700; }
+h5, .h5 { font-size: 0.846em; line-height: 2.09em; text-transform: uppercase; letter-spacing: 2px; }
+
+/******************************************************************
+HEADER STYLES
+******************************************************************/
+
+header[role=banner] {}
+
+ #logo { margin: 1.1em 0; }
+
+/******************************************************************
+NAVIGATION STYLES
+******************************************************************/
+
+.nav { clear: both; margin: 1.1em 0; }
+ .nav ul { background: #215ea3; }
+ .nav ul li { list-style-type: none; float: left; }
+ .nav ul li a { display: block; text-decoration: none; padding: 5px 10px; color: #fff; font-weight: 700; }
+ .nav ul li:last-child a {}
+ .nav ul li a:hover { background: #036; color: #fff; }
+ .nav ul li.current-menu-item a, .nav ul li.current_page_item a {}
+ .nav ul li ul.sub-menu { position: absolute; left: -9999em; z-index: 9999; background: #215ea3; width: 200px; }
+ .nav ul li ul li a { width: 180px; }
+ .nav ul li ul li a:hover { background-color: #036; }
+ .nav ul li ul li:last-child a {}
+ .nav ul li:hover ul { left: auto; }
+
+/******************************************************************
+POST STYLES
+******************************************************************/
+
+#content {}
+#main {}
+ article[id*=post-] { padding: 2.2em 20px; }
+
+ /* archive title */
+ .archive_title { padding: 0 20px; margin: 1.1em 0 0.75em; }
+
+ /* post meta information */
+ .meta { font-size:.75em; letter-spacing:.05em; font-style:italic; line-height:1.75em; color: #999; margin: 0.875em 0; }
+
+ .post_content {}
+
+ /* typographical styles */
+
+ .post_content p { margin:1.5em 0 0; }
+ .post_content ul, .post_content ol, .post_content table, .post_content dl { margin: 1.5em 0; }
+ .post_content ul, .post_content ol { list-style-position:outside; line-height:1.5; margin-left: 2.2em; margin-right: 2.2em; }
+ .post_content li { margin-bottom: 0.75em; }
+ .post_content ul li { list-style-type: disc; }
+ .post_content ol li { list-style-type: decimal; }
+
+ .post_content blockquote { font-style:italic; line-height:1.6em; margin: 1.5em 2.2em; }
+ .post_content blockquote:before { font-family:Georgia, serif; content: ""; font-size:2.75em; text-indent:-.8em; margin-top:.1em; float:left; opacity:.3; }
+
+ .post_content dl { margin:1.75em 0 1.75em; }
+ .post_content dt { font-style:italic; margin-top:1.25em; font-size:1.13em; font-weight:700; border-bottom:1px solid #999; background:#DDD; }
+ .post_content dd { font-style:italic; font-size:.85em; margin-top:1em; line-height:1.6em; }
+
+ .post_content video { margin: 1.5em 0; max-width: 100%; display: block; }
+ .post_content object { display: block; margin: 1.5em 0; max-width: 100%; }
+
+ /* image alignment & styles */
+
+ .post_content img { margin: 0 0 1.5em 0; }
+ .alignleft, img.alignleft { margin-right: 1.5em; display: inline; float: left; }
+ .alignright, img.alignright { margin-left: 1.5em; display: inline; float: right; }
+ .aligncenter, img.aligncenter { margin-right: auto; margin-left: auto; display: block; clear: both; }
+ .alignnone, img.alignnone {} /* i'm unsure of this style */
+
+ /* wp caption styles */
+
+ .wp-caption { margin-bottom: 1.5em; text-align: center; padding-top: 5px; }
+ .wp-caption img { border: 0 none; padding: 0; margin: 0; }
+ .wp-caption p.wp-caption-text { font-size:.8em; font-style:italic; margin:.6em 0 -.2em; }
+
+ /* misc styles */
+
+ .wp-smiley { margin: 0 !important; max-height: 1em; }
+
+ article[id*=post-] footer { clear: both; margin: 1.5em 0 0; padding-bottom: 2.2em; }
+
+ /* page navigation */
+ .page-navigation, .wp-prev-next { margin: 1.1em 0 2.2em; }
+ .bones_page_navi, .wp-prev-next ul { padding: 0 20px; }
+ .bones_page_navi li { float: left; margin-left: 10px; } /* regular links */
+ .bones_page_navi li a { display: block; padding: 3px 6px;text-decoration: none; position: relative; }
+ .bones_page_navi li a:hover { color: #f01d4f; text-decoration: underline; }
+ .bones_page_navi li.bpn-current { padding: 3px 6px; position: relative; border-bottom: 2px solid #f01d4f; } /* current page link */
+ .bones_page_navi li.bpn-current:hover {}
+ .bones_page_navi li.bpn-prev-link { font-weight: 700; } /* previous link */
+ .bones_page_navi li.bpn-prev-link a { padding: 0; }
+ .bones_page_navi li.bpn-prev-link a:hover { background: none; }
+ .bones_page_navi li.bpn-next-link { font-weight: 700; } /* next page link */
+ .bones_page_navi li.bpn-next-link a { padding: 0; }
+ .bones_page_navi li.bpn-next-link a:hover { background: none; }
+ .bones_page_navi li.bpn-last-page-link {} /* last page link */
+ .bones_page_navi li.bpn-last-page-link a {}
+ .bones_page_navi li.bpn-last-page-link a:hover { background: none; }
+ .bones_page_navi li.bpn-first-page-link {} /* first page link */
+ .bones_page_navi li.bpn-first-page-link a {}
+ .bones_page_navi li.bpn-first-page-link a:hover { background: none; }
+
+ .wp-prev-next .prev-link { float: left; }
+ .wp-prev-next .next-link { float: right; }
+
+
+/******************************************************************
+SIDEBAR STYLES
+******************************************************************/
+
+#sidebar1 { float: right; }
+
+ .widget { margin: 2.2em 0; }
+
+ .widget li { line-height: 1.5em; margin-bottom: 0.75em; font-size: 13px; }
+
+ .widgettitle { border-bottom: 2px solid #444; margin-bottom: 0.75em; }
+
+
+/******************************************************************
+COMMENT STYLES
+******************************************************************/
+
+#comments { margin: 0 20px; } /* h3 comment title */
+ #comments span {} /* number of comments span */
+
+.comment-nav {}
+ .comment-nav ul {}
+ .comment-nav ul li {}
+
+.commentlist { margin: 0 20px; }
+ .commentlist li { position: relative; margin-bottom: 1.5em; padding: 0.7335em 10px; clear: both; overflow: hidden; }
+ .commentlist li[class*=depth-] { margin-left: 2.2em; margin-top: 1.1em; border-top: 1px solid #cecece; }
+ .commentlist li.depth-1 { margin-left: 0; margin-top: 0; }
+ .commentlist li.depth-2 {}
+ .commentlist li.depth-3 {}
+ .commentlist li.depth-4 {}
+ .commentlist li.depth-5 {}
+ .commentlist li ul.children li {}
+ .commentlist li ul.children li.alt {}
+ .commentlist li ul.children li.byuser {}
+ .commentlist li ul.children li.comment {}
+ .commentlist li ul.children li.depth-{id} {}
+ .commentlist li ul.children li.bypostauthor {}
+ .commentlist li ul.children li.comment-author-admin {}
+ .commentlist li ul.children .alt {}
+ .commentlist li ul.children .odd {}
+ .commentlist li ul.children .even {}
+
+ .commentlist .alt {}
+ .commentlist .odd {}
+ .commentlist .even {}
+ .commentlist .parent {}
+ .commentlist .comment {}
+ .commentlist .children {}
+ .commentlist .pingback {}
+ .commentlist .bypostauthor {}
+ .commentlist .comment-author {}
+ .commentlist .comment-author-admin {}
+ .commentlist .thread-alt {}
+ .commentlist .thread-odd {}
+ .commentlist .thread-even {}
+
+ .commentlist .vcard { margin-left: 55px; }
+ .commentlist .vcard cite.fn { font-weight: 700; font-style: normal; }
+ .commentlist .vcard time { float: right; }
+ .commentlist .vcard time a { text-decoration: none; color: #999; }
+ .commentlist .vcard time a:hover { text-decoration: underline; }
+ .commentlist .vcard img.photo {}
+ .commentlist .vcard img.avatar { position: absolute; left: 5px; top: 0.7335em; padding: 2px; border: 1px solid #cecece; background: #fff; }
+ .commentlist .vcard cite.fn a.url {}
+
+ .commentlist .comment-meta {}
+ .commentlist .comment-meta a {}
+ .commentlist .commentmetadata {}
+ .commentlist .commentmetadata a {}
+
+ .commentlist li .comment_content { margin-left: 55px; }
+ .commentlist li .comment_content p { font-size: 1em; line-height: 1.5em; margin: 0.7335em 0 1.5em; }
+ .commentlist li ul { padding-top: 1.1em; }
+
+ .commentlist .comment-reply-link { text-decoration: none; float: right; font-size: 0.846em; line-height: 1.5em; background: #036; padding: 3px 5px; color: #fff; opacity: 0.55; }
+ .commentlist a.comment-reply-link:hover { opacity: 1; }
+
+/* comment form styles */
+
+#respond { margin: 0 20px; padding-bottom: 2.2em; }
+ #comment-form-title { margin: 0 0 1.1em; }
+ #cancel-comment-reply {}
+ #cancel-comment-reply a {}
+
+ #commentform {}
+ .comments-logged-in-as {}
+
+ #comment-form-elements { margin: 0.75em 0; }
+ #comment-form-elements li { overflow: hidden; margin-bottom: 0.7335em; }
+ #comment-form-elements label { display: none; }
+ #comment-form-elements small { display: none; }
+ #author, #email, #url, #comment { background: #efefef; border: 2px solid #cecece; font-size: 1em; line-height: 1.5em; }
+ #author:focus, #email:focus, #url:focus, #comment:focus { outline: none; background: #fff; border-color: #036; }
+ #author, #email, #url { padding: 3px 6px; max-width: 400px; min-width: 250px; }
+
+ #allowed_tags { font-size: 0.846em; line-height: 1.5em; margin: 1.5em 10px 0.7335em 0; }
+
+ #comment { resize: none; padding: 3px 6px; width: 97.3%; height: 150px; }
+
+ /* form validation */
+ #commentform input:invalid, #commentform textarea:invalid { border-color: red; outline: none; box-shadow: none; -webkit-box-shadow: none; -moz-box-shadow: none; background-color: #f6e7eb; }
+ #commentform input:valid {}
+/******************************************************************
+FOOTER STYLES
+******************************************************************/
+
+footer[role=contentinfo] { border-top: 2px solid #cecece; padding: 1.1em 0 3.3em; margin-top: 2.2em; }
+ .footer-links { float: left; }
+
+ /* bottom nav links */
+ .footer-links ul { clear: both; }
+ .footer-links ul li { list-style-type: none; float: left; font-size: 0.9em; }
+ .footer-links ul li a { margin-right: 10px; text-decoration: underline; }
+ .footer-links ul li:last-child a { margin-right: 0; }
+ .footer-links ul li a:hover, .nav ul li.current-menu-item a, .nav ul li.current_page_item a {}
+ .footer-links ul li ul.sub-menu { display: none; } /* you shouldn't have that many links in the footer anyway ;P */
+
+ .attribution { float: right; color: #999; font-size: 0.9em; }
+
+/******************************************************************
+PRINT STYLES
+******************************************************************/
+
+@media print {
+ * { background: transparent !important; color: #444 !important; text-shadow: none !important; }
+ a, a:visited { color: #444 !important; text-decoration: underline; }
+ a:after { content: " (" attr(href) ")"; }
+ abbr:after { content: " (" attr(title) ")"; }
+ .ir a:after { content: ""; }
+ pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
+ thead { display: table-header-group; }
+ tr, img { page-break-inside: avoid; }
+ @page { margin: 0.5cm; }
+ p, h2, h3 { orphans: 3; widows: 3; }
+ h2, h3{ page-break-after: avoid; }
+}
+
View
BIN library/images/apple-touch-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
721 library/js/flowplayer/FLOWPLAYER-LICENSE.txt
@@ -0,0 +1,721 @@
+The Flowplayer Free version is released under the
+GNU GENERAL PUBLIC LICENSE Version 3 (GPL).
+
+The GPL requires that you not remove the Flowplayer copyright notices
+from the user interface. See section 5.d below.
+
+Commercial licenses are available. The commercial player version
+does not require any Flowplayer notices or texts and also provides
+some additional features.
+
+========================================================================
+
+ADDITIONAL TERM per GPL Section 7
+If you convey this program (or any modifications of it) and assume
+contractual liability for the program to recipients of it, you agree
+to indemnify Flowplayer, Ltd. for any liability that those contractual
+assumptions impose on Flowplayer, Ltd.
+
+Except as expressly provided herein, no trademark rights are granted in
+any trademarks of Flowplayer, Ltd. Licensees are granted a limited,
+non-exclusive right to use the mark Flowplayer and the Flowplayer logos
+in connection with unmodified copies of the Program and the copyright
+notices required by section 5.d of the GPL license. For the purposes
+of this limited trademark license grant, customizing the Flowplayer
+by skinning, scripting, or including PlugIns provided by Flowplayer, Ltd.
+is not considered modifying the Program.
+
+Licensees that do modify the Program, taking advantage of the open-source
+license, may not use the Flowplayer mark or Flowplayer logos and must
+change the fullscreen notice (and the non-fullscreen notice, if that
+option is enabled), the copyright notice in the dialog box, and the
+notice on the Canvas as follows:
+
+the full screen (and non-fullscreen equivalent, if activated) notice
+should read: "Based on Flowplayer source code"; in the context menu
+(right-click menu), the link to "About Flowplayer free version #.#.#"
+can remain. The copyright notice can remain, but must be supplemented with
+an additional notice, stating that the licensee modified the Flowplayer.
+A suitable notice might read "Flowplayer Source code modified by ModOrg 2009";
+for the canvas, the notice should read "Based on Flowplayer source code".
+In addition, licensees that modify the Program must give the modified
+Program a new name that is not confusingly similar to Flowplayer and
+may not distribute it under the name Flowplayer.
+
+========================================================================
+
+
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. 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
+them 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 prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. 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.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey 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;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If 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 convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU 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 that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ 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.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+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.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ 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
+state 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) <year> <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 3 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, see <http://www.gnu.org/licenses/>.
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ <program> Copyright (C) <year> <name of author>
+ This program 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, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+ The GNU 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 Lesser General
+Public License instead of this License. But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
View
BIN library/js/flowplayer/flowplayer-3.2.5.swf
Binary file not shown.
View
BIN library/js/flowplayer/flowplayer.controls-3.2.3.swf
Binary file not shown.
View
13 library/js/libs/dd_belatedpng.js
@@ -0,0 +1,13 @@
+/**
+* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>.
+* Author: Drew Diller
+* Email: drew.diller@gmail.com
+* URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/
+* Version: 0.0.8a
+* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_belatedPNG/#license
+*
+* Example usage:
+* DD_belatedPNG.fix('.png_bg'); // argument is a CSS selector
+* DD_belatedPNG.fixPng( someNode ); // argument is an HTMLDomElement
+**/
+var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;b<c.length;b++){this.screenStyleSheet.addRule(c[b],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(i){var d,c,g,e,b,f;d=this;c={resize:"vmlOffsets",move:"vmlOffsets"};if(i.nodeName=="A"){e={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in e){if(e.hasOwnProperty(b)){c[b]=e[b]}}}for(f in c){if(c.hasOwnProperty(f)){g=function(){d[c[f]](i)};i.attachEvent("on"+f,g)}}i.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(b){var c,a;c={borderStyle:true,borderWidth:true,borderColor:true};for(a in c){if(c.hasOwnProperty(a)){b.vml.color.shape.style[a]=b.currentStyle[a]}}},vmlFill:function(e){if(!e.currentStyle){return}else{var d,f,g,b,a,c;d=e.currentStyle}for(b in e.vml){if(e.vml.hasOwnProperty(b)){e.vml[b].shape.style.zIndex=d.zIndex}}e.runtimeStyle.backgroundColor="";e.runtimeStyle.backgroundImage="";f=true;if(d.backgroundImage!="none"||e.isImg){if(!e.isImg){e.vmlBg=d.backgroundImage;e.vmlBg=e.vmlBg.substr(5,e.vmlBg.lastIndexOf('")')-5)}else{e.vmlBg=e.src}g=this;if(!g.imgSize[e.vmlBg]){a=document.createElement("img");g.imgSize[e.vmlBg]=a;a.className=g.ns+"_sizeFinder";a.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";c=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;g.vmlOffsets(e)};a.attachEvent("onload",c);a.src=e.vmlBg;a.removeAttribute("width");a.removeAttribute("height");document.body.insertBefore(a,document.body.firstChild)}e.vml.image.fill.src=e.vmlBg;f=false}e.vml.image.fill.on=!f;e.vml.image.fill.color="none";e.vml.color.shape.style.backgroundColor=d.backgroundColor;e.runtimeStyle.backgroundImage="none";e.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(d){var h,n,a,e,g,m,f,l,j,i,k;h=d.currentStyle;n={W:d.clientWidth+1,H:d.clientHeight+1,w:this.imgSize[d.vmlBg].width,h:this.imgSize[d.vmlBg].height,L:d.offsetLeft,T:d.offsetTop,bLW:d.clientLeft,bTW:d.clientTop};a=(n.L+n.bLW==1)?1:0;e=function(b,p,q,c,s,u){b.coordsize=c+","+s;b.coordorigin=u+","+u;b.path="m0,0l"+c+",0l"+c+","+s+"l0,"+s+" xe";b.style.width=c+"px";b.style.height=s+"px";b.style.left=p+"px";b.style.top=q+"px"};e(d.vml.color.shape,(n.L+(d.isImg?0:n.bLW)),(n.T+(d.isImg?0:n.bTW)),(n.W-1),(n.H-1),0);e(d.vml.image.shape,(n.L+n.bLW),(n.T+n.bTW),(n.W),(n.H),1);g={X:0,Y:0};if(d.isImg){g.X=parseInt(h.paddingLeft,10)+1;g.Y=parseInt(h.paddingTop,10)+1}else{for(j in g){if(g.hasOwnProperty(j)){this.figurePercentage(g,n,j,h["backgroundPosition"+j])}}}d.vml.image.fill.position=(g.X/n.W)+","+(g.Y/n.H);m=h.backgroundRepeat;f={T:1,R:n.W+a,B:n.H,L:1+a};l={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(m!="repeat"||d.isImg){i={T:(g.Y),R:(g.X+n.w),B:(g.Y+n.h),L:(g.X)};if(m.search("repeat-")!=-1){k=m.split("repeat-")[1].toUpperCase();i[l[k].b1]=1;i[l[k].b2]=n[l[k].d]}if(i.B>n.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();
View
4 library/js/libs/ie/DOMAssistant-2.0.min.js
@@ -0,0 +1,4 @@
+// Developed by Robert Nyman/DOMAssistant team, code/licensing: http://domassistant.googlecode.com/, documentation: http://www.domassistant.com/documentation, version 2.8
+var DOMAssistant=function(){var i=function(){},d=/*@cc_on!@*/false,h=d&&parseFloat(navigator.appVersion)<6,g,c={},n={},a=true,l=Array.prototype.slice,m={accesskey:"accessKey","class":"className",colspan:"colSpan","for":"htmlFor",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",valign:"vAlign",cellspacing:"cellSpacing",cellpadding:"cellPadding"},k={rules:/\s*(,)\s*/g,selector:/^(\w+)?(#[\w\u00C0-\uFFFF\-_=]+|(\*))?((\.[\w\u00C0-\uFFFF\-_]+)*)?((\[\w+\s*(\^|\$|\*|\||~)?(=\s*([\w\u00C0-\uFFFF\s\-\_\.]+|"[^"]*"|'[^']*'))?\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\-?\d*n?((\+|\-)\d+)?|[:?#?\w\u00C0-\uFFFF\-_\.]+|"[^"]*"|'[^']*'|((\w*\.[\w\u00C0-\uFFFF\-_]+)*)?|(\[#?\w+(\^|\$|\*|\||~)?=?[\w\u00C0-\uFFFF\s\-\_\.\'\"]+\]+)|(:\w+[\w\-]*\(.+\)))\))?)*)?(>|\+|~)?/,selectorSplit:/(?:\[.*\]|\(.*\)|[^\s\+>~\[\(])+|[\+>~]/g,id:/^#([\w\u00C0-\uFFFF\-_=]+)$/,tag:/^(\w+)/,relation:/^(>|\+|~)$/,pseudo:/^:(\w[\w\-]*)(\((.+)\))?$/,pseudos:/:(\w[\w\-]*)(\((([^(]+)|([^(]+\([^(]+)\))\))?/g,attribs:/\[(\w+)\s*(\^|\$|\*|\||~)?(=)?\s*([^\[\]]*|"[^\"]*"|'[^\']*')?\](?=$|\[|\:|\s)/g,classes:/\.([\w\u00C0-\uFFFF\-_]+)/g,quoted:/^["'](.*)["']$/,nth:/^((odd|even)|([1-9]\d*)|((([1-9]\d*)?)n([\+\-]\d+)?)|(\-(([1-9]\d*)?)n\+(\d+)))$/,special:/(:check|:enabl|\bselect)ed\b/},f=function(q,r,o){var p=q.tagName;while((q=q[r+"Sibling"])&&(q.nodeType!==1||(o?q.tagName!==p:q.tagName==="!"))){}return q},b=function(o){return typeof o!=="undefined"},j=function(o){return(j=o[0].compareDocumentPosition?function(p){return p.sort(function(r,q){return 3-(r.compareDocumentPosition(q)&6)})}:d?function(p){return p.sort(function(r,q){return r.sourceIndex-q.sourceIndex})}:function(p){return p.sort(function(t,r){var s=document.createRange(),q=document.createRange();s.setStart(t,0);s.setEnd(t,0);q.setStart(r,0);q.setEnd(r,0);return s.compareBoundaryPoints(Range.START_TO_END,q)})})(o)};var e=function(p,o){p.push.apply(p,l.apply(o));return p};if(d){e=function(q,p){if(p.slice){return q.concat(p)}var o=0,r;while((r=p[o++])){q[q.length]=r}return q}}return{isIE:d,camel:m,def:b,allMethods:[],publicMethods:["prev","next","hasChild","cssSelect","elmsByClass","elmsByAttribute","elmsByTag"],initCore:function(){this.applyMethod.call(window,"$",this.$);this.applyMethod.call(window,"$$",this.$$);window.DOMAssistant=this;if(d){i=Array}i.prototype=[];(function(o){o.each=function(s,r){for(var q=0,p=this.length;q<p;q++){if(s.call(r||this[q],this[q],q,this)===false){break}}return this};o.first=function(){return b(this[0])?DOMAssistant.addMethodsToElm(this[0]):null};o.end=function(){return this.previousSet};o.indexOf=o.indexOf||function(r){for(var q=0,p=this.length;q<p;q++){if(q in this&&this[q]===r){return q}}return -1};o.map=function(t,s){var r=[];for(var q=0,p=this.length;q<p;q++){if(q in this){r[q]=t.call(s||this[q],this[q],q,this)}}return r};o.filter=function(t,s){var r=new i();r.previousSet=this;for(var q=0,p=this.length;q<p;q++){if(q in this&&t.call(s||this[q],this[q],q,this)){r.push(this[q])}}return r};o.every=function(s,r){for(var q=0,p=this.length;q<p;q++){if(q in this&&!s.call(r||this[q],this[q],q,this)){return false}}return true};o.some=function(s,r){for(var q=0,p=this.length;q<p;q++){if(q in this&&s.call(r||this[q],this[q],q,this)){return true}}return false}})(i.prototype);this.attach(this)},addMethods:function(o,p){if(!b(this.allMethods[o])){this.allMethods[o]=p;this.addHTMLArrayPrototype(o,p)}},addMethodsToElm:function(p){for(var o in this.allMethods){if(b(this.allMethods[o])){this.applyMethod.call(p,o,this.allMethods[o])}}return p},applyMethod:function(p,o){if(typeof this[p]!=="function"){this[p]=o}},attach:function(q){var o=q.publicMethods;if(!b(o)){for(var s in q){if(s!=="init"&&b(q[s])){this.addMethods(s,q[s])}}}else{if(o.constructor===Array){for(var p=0,r;(r=o[p]);p++){this.addMethods(r,q[r])}}}if(typeof q.init==="function"){q.init()}},addHTMLArrayPrototype:function(o,p){i.prototype[o]=function(){var s=new i();s.previousSet=this;for(var r=0,q=this.length;r<q;r++){s.push(p.apply(DOMAssistant.$$(this[r]),arguments))}return s}},clearHandlers:function(){var s=this.all||this.getElementsByTagName("*");for(var r=0,t,o;(t=s[r++]);){if(t.uniqueHandlerId&&(o=t.attributes)){for(var p,q=o.length;q--;){p=o[q].nodeName.toLowerCase();if(typeof t[p]==="function"){t[p]=null}}}}},setCache:function(o){a=o},$:function(){var r=arguments[0];if(arguments.length===1&&(typeof r==="object"||(typeof r==="function"&&!!r.nodeName))){return DOMAssistant.$$(r)}var t=!!r?new i():null;for(var p=0,o,s;(o=arguments[p]);p++){if(typeof o==="string"){o=o.replace(/^[^#\(]*(#)/,"$1");if(k.id.test(o)){if((s=DOMAssistant.$$(o.substr(1),false))){t.push(s)}}else{var q=(document.all||document.getElementsByTagName("*")).length;t=(!document.querySelectorAll&&a&&n.rule&&n.rule===o&&n.doc===q)?n.elms:e(t,DOMAssistant.cssSelection.call(document,o));n={rule:o,elms:t,doc:q}}}}return t},$$:function(u,r){var t=(typeof u==="object"||typeof u==="function"&&!!u.nodeName)?u:document.getElementById(u),s=r||true,q=function(w){var v=w.id;return typeof v!=="object"?v:w.attributes.id.nodeValue};if(typeof u==="string"&&t&&q(t)!==u){t=null;for(var o=0,p;(p=document.all[o]);o++){if(q(p)===u){t=p;break}}}if(t&&s&&!t.next){DOMAssistant.addMethodsToElm(t)}return t},prev:function(){return DOMAssistant.$$(f(this,"previous"))},next:function(){return DOMAssistant.$$(f(this,"next"))},hasChild:function(o){return this===document||this!==o&&(this.contains?this.contains(o):!!(this.compareDocumentPosition(o)&16))},getSequence:function(s){var t,r=2,p=-1,o=-1,q=k.nth.exec(s.replace(/^0n\+/,"").replace(/^2n$/,"even").replace(/^2n+1$/,"odd"));if(!q){return null}if(q[2]){t=(q[2]==="odd")?1:2;o=(t===1)?1:0}else{if(q[3]){t=p=parseInt(q[3],10);r=0}else{if(q[4]){r=q[6]?parseInt(q[6],10):1;t=q[7]?parseInt(q[7],10):0;while(t<1){t+=r}o=(t>=r)?(t-r)%r:t}else{if(q[8]){r=q[10]?parseInt(q[10],10):1;t=p=parseInt(q[11],10);while(t>r){t-=r}o=(p>=r)?(p-r)%r:p}}}}return{start:t,add:r,max:p,modVal:o}},cssByDOM:function(p){var aS,G,C,L,at,w,af,z,I,v,ao,aL,x,aG,aq,az=new i(),aP=az.indexOf,an=[],aE=[],aI=p.replace(k.rules,"$1").split(","),aD={};function aO(q){q=q||an;for(var o=q.length;o--;){q[o].added=null;q[o].removeAttribute("added")}}function B(){for(var o=aS.length;o--;){aS[o].childElms=null}}function ak(r,o){for(var s=0,aT;(aT=r[s]);s++){var u=false;for(var q=0,t;(t=o[q]);q++){if(t===aT){u=true;o.splice(q,1);break}}if(u){r.splice(s--,1)}}return r}function D(q,o){return(d||k.special.test(o))?q[m[o.toLowerCase()]||o]:q.getAttribute(o,2)}function N(o,q){o=o?o.replace(k.quoted,"$1").replace(/(\.|\[|\])/g,"\\$1"):null;return{"^":"^"+o,"$":o+"$","*":o,"|":"^"+o+"(\\-\\w+)*$","~":"\\b"+o+"\\b"}[q]||(o!==null?"^"+o+"$":o)}function U(o){return(o||this).tagName!=="!"}function Q(o,q){return h?(o==="*"?q.all:q.all.tags(o)):q.getElementsByTagName(o)}function aJ(o,q){o=o||"*";q=q||document;return(q===document||q.lastModified)?c[o]||(c[o]=Q(o,document)):Q(o,q)}function ap(aU,bc,t){aS=[];var u=bc.split("-"),aX=[],a2=0,bb=/\-of\-type$/.test(bc),a1,aW={first:function(q){return !f(q,"previous",bb)},last:function(q){return !f(q,"next",bb)},empty:function(q){return !q.firstChild},enabled:function(q){return !q.disabled&&q.type!=="hidden"},disabled:function(q){return q.disabled},checked:function(q){return q.checked},contains:function(q){return(q.innerText||q.textContent||"").indexOf(t.replace(k.quoted,"$1"))>-1},other:function(q){return D(q,bc)===t}};function s(q){while((z=aU[a2++])){if(U(z)&&aW[q](z)){aX[aX.length]=z}}return aX}var a8=u[0]||null;if(a8&&aW[a8]){return s(a8)}switch(a8){case"only":var aY,aT;while((z=aU[a2++])){I=z.parentNode;var a3=z.nodeName;if(I!==aY||a3!==aT){if(aW.first(z)&&aW.last(z)){aX[aX.length]=z}aY=I;aT=a3}}break;case"nth":if(t==="n"){aX=aU}else{var ba=(u[1]==="last")?["lastChild","previousSibling"]:["firstChild","nextSibling"];aG=DOMAssistant.getSequence(t);if(aG){while((z=aU[a2++])){I=z.parentNode;I.childElms=I.childElms||{};var a4=z.nodeName;if(!I.childElms[a4]){var a7=0;aL=aG.start;x=I[ba[0]];while(x&&(aG.max<0||aL<=aG.max)){var a9=x.nodeName;if((bb&&a9===a4)||(!bb&&x.nodeType===1&&a9!=="!")){if(++a7===aL){if(a9===a4){aX[aX.length]=x}aL+=aG.add}}x=x[ba[1]]}if(aq){g++}I.childElms[a4]=true;aS[aS.length]=I}}B()}}break;case"target":var r=document.location.hash.slice(1);if(r){while((z=aU[a2++])){if(D(z,"name")===r||D(z,"id")===r){aX[aX.length]=z;break}}}break;case"not":if((a1=k.pseudo.exec(t))){aX=ak(aU,ap(aU,a1[1]?a1[1].toLowerCase():null,a1[3]||null))}else{for(var a5 in k){if(k[a5].lastIndex){k[a5].lastIndex=0}}t=t.replace(k.id,"[id=$1]");var a0=k.tag.exec(t);var aV=k.classes.exec(t);var aZ=k.attribs.exec(t);var o=new RegExp(aZ?N(aZ[4],aZ[2]):"(^|\\s)"+(a0?a0[1]:aV?aV[1]:"")+"(\\s|$)","i");while((v=aU[a2++])){ao=null;if(a0&&!o.test(v.nodeName)||aV&&!o.test(v.className)){ao=v}else{if(aZ){var a6=D(v,aZ[1]);if(!b(a6)||a6===false||typeof a6==="string"&&!o.test(a6)){ao=v}}}if(ao&&!ao.added){ao.added=true;aX[aX.length]=ao}}}break;default:return s("other")}return aX}function X(t,q){var o=0,r=t,u;while((u=q[o++])){if(!r.length||r.indexOf(u)<0){t.push(u)}}return t}g=-1;for(var ai=0,aH=[];(G=aI[ai]);ai++){if(!(C=G.match(k.selectorSplit))||ai&&aP.call(aI.slice(0,ai),G)>-1){continue}an=[this];for(var ag=0,E;(E=C[ag]);ag++){aE=[];if(k.relation.test(E)){if((L=k.relation.exec(E))){var al=null,aQ=C[ag+1];if((at=k.tag.exec(aQ))){at=at[1];w=new RegExp("(^|\\s)"+at+"(\\s|$)","i")}else{if(k.id.test(aQ)){al=DOMAssistant.$(aQ)||null}}for(var ae=0,K;(K=an[ae]);ae++){switch(L[0]){case">":var aB=al||aJ(at,K);for(var ac=0,aw;(aw=aB[ac]);ac++){if(aw.parentNode===K){aE[aE.length]=aw}}break;case"+":if((K=f(K,"next"))){if((al&&al[0]===K)||(!al&&(!at||w.test(K.nodeName)))){aE[aE.length]=K}}break;case"~":while((K=K.nextSibling)&&!K.added){if((al&&al[0]===K)||(!al&&(!at||w.test(K.nodeName)))){K.added=true;aE[aE.length]=K}}break}}an=aE;aO();E=C[++ag];if(/^\w+$/.test(E)||k.id.test(E)){continue}an.skipTag=true}}var ar=k.selector.exec(E);aD={tag:(!ar[1]||ar[3]==="*")?"*":ar[1],id:(ar[3]!=="*")?ar[2]:null,allClasses:ar[4],allAttr:ar[6],allPseudos:ar[11]};aq=(aD.tag==="*");if(aD.id){var M=0,aj=document.getElementById(aD.id.slice(1));if(aj){while(an[M]&&!DOMAssistant.hasChild.call(an[M],aj)){M++}aE=(M<an.length&&(aq||aD.tag===aj.tagName.toLowerCase()))?[aj]:[]}an=aE}else{if(aD.tag&&!an.skipTag){if(ag===0&&!aE.length&&an.length===1){an=aE=e([],aJ(aD.tag,an[0]))}else{for(var ab=0,aM=an.length,ax,au;ab<aM;ab++){ax=aJ(aD.tag,an[ab]);for(var Y=0;(au=ax[Y]);Y++){if(!au.added){au.added=true;aE[aE.length]=au}}}an=aE;aO()}}}if(!aE.length){break}an.skipTag=false;if(aD.allClasses){var W=0,Z=[],H=aD.allClasses.split(".").slice(1);while((af=an[W++])){var ad=true,av=af.className;if(av&&av.length){av=av.split(" ");for(var V=H.length;V--;){if(av.indexOf(H[V])<0){ad=false;break}}if(ad){Z[Z.length]=af}}}an=aE=Z}if(aD.allAttr){var A,R=0,aA=[],aa=[],aF=aD.allAttr.match(k.attribs);for(var T=0,y=aF.length,S,aN;T<y;T++){k.attribs.lastIndex=0;S=k.attribs.exec(aF[T]);aN=N(S[4],S[2]||null);aA[T]=[(aN?new RegExp(aN):null),S[1]]}while((af=aE[R++])){for(var P=0,aC=aA.length;P<aC;P++){var ay=aA[P][0],ah=D(af,aA[P][1]);A=true;if(!ay&&ah===true){continue}if((!ay&&(!ah||typeof ah!=="string"||!ah.length))||(!!ay&&!ay.test(ah))){A=false;break}}if(A){aa[aa.length]=af}}an=aE=aa}if(aD.allPseudos){var F=aD.allPseudos.match(k.pseudos);for(var O=0,am=F.length;O<am;O++){k.pseudos.lastIndex=0;var aR=k.pseudos.exec(F[O]);var J=aR[1]?aR[1].toLowerCase():null;var aK=aR[3]||null;aE=ap(aE,J,aK);aO(aE)}an=aE}}az=((aH.length&&(aq||aP.call(aH,aD.tag)>=0||aP.call(aH,"*")>=0))?X:e)(az,an);aH.push(aD.tag);if(d&&aq){az=az.filter(U)}}return((az.length>1&&aI.length>1)||g>0)?j(az):az},cssByXpath:function(p){var q={xhtml:"http://www.w3.org/1999/xhtml"},r=(document.documentElement.namespaceURI===q.xhtml)?"xhtml:":"",o=function s(t){return q[t]||null};DOMAssistant.cssByXpath=function(K){var O,Q,G,w,x,B,y=new i(),z=K.replace(k.rules,"$1").split(",");function J(T){var U=T?"[":"",S=T?"]":"";return function(V,Z,Y,X,W){W=(W||"").replace(k.quoted,"$1");return U+({"^":"starts-with(@"+Z+', "'+W+'")',"$":"substring(@"+Z+", (string-length(@"+Z+") - "+(W.length-1)+"), "+W.length+') = "'+W+'"',"*":'contains(concat(" ", @'+Z+', " "), "'+W+'")',"|":"@"+Z+'="'+W+'" or starts-with(@'+Z+', "'+W+'-")',"~":'contains(concat(" ", @'+Z+', " "), " '+W+' ")'}[Y]||("@"+Z+(X?'="'+W+'"':"")))+S}}function M(T,V,U){T=/\-child$/.test(V)?"*":T;var X=V.split("-"),S=((X[1]==="last")?"(count(following-sibling::":"(count(preceding-sibling::")+T+") + 1)",W,Y;switch(X[0]){case"nth":return(U!=="n"&&(B=DOMAssistant.getSequence(U)))?((B.start===B.max)?S+" = "+B.start:S+" mod "+B.add+" = "+B.modVal+((B.start>1)?" and "+S+" >= "+B.start:"")+((B.max>0)?" and "+S+" <= "+B.max:"")):"";case"not":return"not("+((W=k.pseudo.exec(U))?M(T,W[1]?W[1].toLowerCase():null,W[3]||null):U.replace(k.id,"[id=$1]").replace(k.tag,"self::$1").replace(k.classes,'contains(concat(" ", @class, " "), " $1 ")').replace(k.attribs,J()))+")";case"first":return"not(preceding-sibling::"+T+")";case"last":return"not(following-sibling::"+T+")";case"only":return"not(preceding-sibling::"+T+" or following-sibling::"+T+")";case"empty":return"count(child::*) = 0 and string-length(text()) = 0";case"contains":return'contains(., "'+U.replace(k.quoted,"$1")+'")';case"enabled":return'not(@disabled) and not(@type="hidden")';case"disabled":return"@disabled";case"target":return'@name="'+(Y=document.location.hash.slice(1))+'" or @id="'+Y+'"';default:return"@"+V+'="'+U+'"'}}for(var L=0;(O=z[L]);L++){if(!(Q=O.match(k.selectorSplit))||L&&y.indexOf.call(z.slice(0,L),O)>-1){continue}G=G?G+" | .":".";for(var I=0,N=Q.length;I<N;I++){w=k.selector.exec(Q[I]);x={tag:r+((!w[1]||w[3]==="*")?"*":w[1]),id:(w[3]!=="*")?w[2]:null,allClasses:w[4],allAttr:w[6],allPseudos:w[11],tagRelation:w[23]};G+=(x.tagRelation?({">":"/","+":"/following-sibling::*[1]/self::","~":"/following-sibling::"}[x.tagRelation]||""):((I>0&&k.relation.test(Q[I-1]))?x.tag:("//"+x.tag)))+(x.id||"").replace(k.id,'[@id = "$1"]')+(x.allClasses||"").replace(k.classes,'[contains(concat(" ", @class, " "), " $1 ")]')+(x.allAttr||"").replace(k.attribs,J(true));if(x.allPseudos){var A=x.allPseudos.match(k.pseudos);for(var H=0,u=A.length;H<u;H++){k.pseudos.lastIndex=0;var v=k.pseudos.exec(A[H]),R=v[1]?v[1].toLowerCase():null,t=v[3]||null,D=M(x.tag,R,t);if(D.length){G+="["+D+"]"}}}}}try{var F=document.evaluate(G,this,o,7,null),E,C=0;while((E=F.snapshotItem(C++))){y.push(E)}}catch(P){}return y};return DOMAssistant.cssByXpath.call(this,p)},cssSelection:function(p){if(!p){return null}var o=k.special.test(p);try{if(document.querySelectorAll&&!o){return e(new i(),this.querySelectorAll(p))}}catch(q){}return((document.evaluate&&!o)?DOMAssistant.cssByXpath:DOMAssistant.cssByDOM).call(this,p)},cssSelect:function(o){return DOMAssistant.cssSelection.call(this,o)},elmsByClass:function(q,o){var p=(o||"")+"."+q;return DOMAssistant.cssSelection.call(this,p)},elmsByAttribute:function(p,q,o,s){var r=(o||"")+"["+p+((q&&q!=="*")?((s||"")+"="+q+"]"):"]");return DOMAssistant.cssSelection.call(this,r)},elmsByTag:function(o){return DOMAssistant.cssSelection.call(this,o)}}}();DOMAssistant.initCore();DOMAssistant.Storage=function(){var c=1,a=[],b="_da"+ +new Date();return{retrieve:function(d){if(!DOMAssistant.def(d)){return this[b]||(this[b]=c++)}if(!this[b]||!a[this[b]]){return}return a[this[b]][d]},store:function(f,g){var e=this[b]||(this[b]=c++);a[e]=a[e]||{};if(typeof f==="object"){for(var d in f){if(typeof d==="string"){a[e][d]=f[d]}}}else{a[e][f]=g}return this},unstore:function(e){var d=this[b]||(this[b]=c++);if(a[d]){if(DOMAssistant.def(e)){delete a[d][e]}else{a[d]=null}}return this}}}();DOMAssistant.attach(DOMAssistant.Storage);DOMAssistant.AJAX=function(){var globalXMLHttp=null,readyState=0,status=-1,statusText="",requestPool=[],createAjaxObj=function(url,method,callback,addToContent){var params=null;if(/POST/i.test(method)){url=url.split("?");params=url[1];url=url[0]}return{url:url,method:method,callback:callback,params:params,headers:{},responseType:"text",addToContent:addToContent||false}};return{publicMethods:["ajax","get","post","load"],initRequest:function(){var XMLHttp=null;if(!!window.XMLHttpRequest&&!DOMAssistant.isIE){XMLHttp=new XMLHttpRequest();DOMAssistant.AJAX.initRequest=function(){return requestPool.length?requestPool.pop():new XMLHttpRequest()}}else{if(!!window.ActiveXObject){var XMLHttpMS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var i=0;i<XMLHttpMS.length;i++){try{XMLHttp=new window.ActiveXObject(XMLHttpMS[i]);DOMAssistant.AJAX.initRequest=function(){return requestPool.length?requestPool.pop():new window.ActiveXObject(XMLHttpMS[i])};break}catch(e){XMLHttp=null}}}}return XMLHttp},ajax:function(ajaxObj){if(!ajaxObj.noParse&&ajaxObj.url&&/\?/.test(ajaxObj.url)&&ajaxObj.method&&/POST/i.test(ajaxObj.method)){var url=ajaxObj.url.split("?");ajaxObj.url=url[0];ajaxObj.params=url[1]+((url[1].length>0&&ajaxObj.params)?("&"+ajaxObj.params):"")}return DOMAssistant.AJAX.makeCall.call(this,ajaxObj)},get:function(url,callback,addToContent){return DOMAssistant.AJAX.makeCall.call(this,createAjaxObj(url,"GET",callback,addToContent))},post:function(url,callback){return DOMAssistant.AJAX.makeCall.call(this,createAjaxObj(url,"POST",callback))},load:function(url,addToContent){this.get(url,DOMAssistant.AJAX.replaceWithAJAXContent,addToContent)},makeCall:function(ajaxObj){var XMLHttp=DOMAssistant.AJAX.initRequest();if(XMLHttp){globalXMLHttp=XMLHttp;(function(elm){var url=ajaxObj.url,method=ajaxObj.method||"GET",callback=ajaxObj.callback,params=ajaxObj.params,headers=ajaxObj.headers,responseType=ajaxObj.responseType||"text",addToContent=ajaxObj.addToContent,timeout=ajaxObj.timeout||null,ex=ajaxObj.exception,timeoutId=null,done=false;XMLHttp.open(method,url,true);XMLHttp.setRequestHeader("AJAX","true");XMLHttp.setRequestHeader("X-Requested-With","XMLHttpRequest");if(method==="POST"){XMLHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");XMLHttp.setRequestHeader("Content-length",params?params.length:0);if(XMLHttp.overrideMimeType){XMLHttp.setRequestHeader("Connection","close")}}if(responseType==="json"){XMLHttp.setRequestHeader("Accept","application/json, text/javascript, */*")}for(var i in headers){if(typeof i==="string"){XMLHttp.setRequestHeader(i,headers[i])}}if(typeof callback==="function"){XMLHttp.onreadystatechange=function(){try{if(XMLHttp.readyState===4&&!done){window.clearTimeout(timeoutId);done=true;status=XMLHttp.status;statusText=XMLHttp.statusText;readyState=4;if((status||location.protocol!=="file:")&&(status<200||status>=300)){throw new Error(statusText)}var response=/xml/i.test(responseType)?XMLHttp.responseXML:XMLHttp.responseText;if(/json/i.test(responseType)&&!!response){response=(typeof JSON==="object"&&typeof JSON.parse==="function")?JSON.parse(response):eval("("+response+")")}globalXMLHttp=null;XMLHttp.onreadystatechange=function(){};requestPool.push(XMLHttp);callback.call(elm,response,addToContent)}}catch(e){globalXMLHttp=XMLHttp=null;if(typeof ex==="function"){ex.call(elm,e);ex=null}}}}XMLHttp.send(params);if(timeout){timeoutId=window.setTimeout(function(){if(!done){XMLHttp.abort();done=true;if(typeof ex==="function"){readyState=0;status=408;statusText="Request timeout";globalXMLHttp=XMLHttp=null;ex.call(elm,new Error(statusText));ex=null}}},timeout)}})(this)}return this},replaceWithAJAXContent:function(content,add){if(add){this.innerHTML+=content}else{DOMAssistant.clearHandlers.apply(this);this.innerHTML=content}},getReadyState:function(){return(globalXMLHttp&&DOMAssistant.def(globalXMLHttp.readyState))?globalXMLHttp.readyState:readyState},getStatus:function(){return status},getStatusText:function(){return statusText}}}();DOMAssistant.attach(DOMAssistant.AJAX);DOMAssistant.CSS=function(){var a=DOMAssistant.def,b={display:true};return{addClass:function(d){if(!this.hasClass(d)){var c=this.className;this.className=c+(c.length?" ":"")+d}return this},removeClass:function(c){return this.replaceClass(c)},replaceClass:function(d,e){var c=new RegExp(("(^|\\s)"+d+"(\\s|$)"),"i");this.className=this.className.replace(c,function(f,h,g){return e?(h+e+g):" "}).replace(/^\s+|\s+$/g,"");return this},hasClass:function(c){return(" "+this.className+" ").indexOf(" "+c+" ")>-1},setStyle:function(f,g){var e=this.style;if("filters" in this&&(typeof f==="string"?/opacity/i.test(f):a(f.opacity))){e.zoom=1;e.filter=(e.filter||"").replace(/alpha\([^)]*\)/,"")+"alpha(opacity="+(a(f.opacity)?f.opacity:g)*100+")"}if(a(e.cssText)){var c=e.cssText;if(typeof f==="object"){for(var d in f){if(typeof d==="string"){if(b[d]){e[d]=f[d]}c+=";"+d+":"+f[d]}}}else{if(b[f]){e[f]=g}c+=";"+f+":"+g}e.cssText=c}return this},getStyle:function(c){var e="",d;c=c.toLowerCase();if(document.defaultView&&document.defaultView.getComputedStyle){e=document.defaultView.getComputedStyle(this,"").getPropertyValue(c)}else{if(this.currentStyle){if("filters" in this&&c==="opacity"){e=(d=this.style.filter||this.currentStyle.filter)&&d.indexOf("opacity=")>=0?parseFloat(d.match(/opacity=([^)]*)/)[1])/100:1}else{c=c.replace(/^float$/,"styleFloat").replace(/\-(\w)/g,function(f,g){return g.toUpperCase()});e=this.currentStyle[c]}if(e==="auto"&&/^(width|height)$/.test(c)&&this.currentStyle.display!=="none"){e=this["offset"+c.charAt(0).toUpperCase()+c.substr(1)]+"px"}}}return e}}}();DOMAssistant.attach(DOMAssistant.CSS);DOMAssistant.Content=function(){var a=DOMAssistant.$$;return{init:function(){DOMAssistant.setCache(false)},create:function(d,c,b,e){var f=a(document.createElement(d));if(c){f=f.setAttributes(c)}if(DOMAssistant.def(e)){f.addContent(e)}if(b){this.appendChild(f)}return f},setAttributes:function(b){if(DOMAssistant.isIE){var c=function(g,e,f){var d=e.toLowerCase();switch(d){case"name":case"type":return a(document.createElement(g.outerHTML.replace(new RegExp(d+"=[a-zA-Z]+")," ").replace(">"," "+d+"="+f+">")));case"style":g.style.cssText=f;return g;default:g[DOMAssistant.camel[d]||e]=f;return g}};DOMAssistant.Content.setAttributes=function(d){var h=this;var g=this.parentNode;for(var f in d){if(typeof d[f]==="string"||typeof d[f]==="number"){var e=c(h,f,d[f]);if(g&&/(name|type)/i.test(f)){if(h.innerHTML){e.innerHTML=h.innerHTML}g.replaceChild(e,h)}h=e}}return h}}else{DOMAssistant.Content.setAttributes=function(d){for(var e in d){if(/class/i.test(e)){this.className=d[e]}else{this.setAttribute(e,d[e])}}return this}}return DOMAssistant.Content.setAttributes.call(this,b)},addContent:function(f){var d=typeof f;if(d==="string"||d==="number"){if(!this.firstChild){this.innerHTML=f}else{var c=document.createElement("div");c.innerHTML=f;for(var b=c.childNodes.length-1,e=null;b>=0;b--){e=this.insertBefore(c.childNodes[b],e)}}}else{if(d==="object"||(d==="function"&&!!f.nodeName)){this.appendChild(f)}}return this},replaceContent:function(b){if(!!this.firstChild){DOMAssistant.clearHandlers.apply(this);this.innerHTML=""}return this.addContent(b)},replace:function(g,b){var f=typeof g;if(f==="string"||f==="number"){var e=this.parentNode;var d=DOMAssistant.Content.create.call(e,"div",null,false,g);for(var c=d.childNodes.length;c--;){e.insertBefore(d.childNodes[c],this.nextSibling)}g=this.nextSibling;e.removeChild(this)}else{if(f==="object"||(f==="function"&&!!g.nodeName)){this.parentNode.replaceChild(g,this)}}return b?g:this},remove:function(){this.parentNode.removeChild(this);return null}}}();DOMAssistant.attach(DOMAssistant.Content);DOMAssistant.Events=function(){var e,c="_events",d=!!document.addEventListener,b={focus:true,blur:true},a=function(g){return DOMAssistant.isIE?{focus:"activate",blur:"deactivate"}[g]||g:g},f=function(k,h,j){k=k||window.event||{};var i={event:k,type:h||k.type,bubbles:k.bubbles||true,cancelable:k.cancelable||false,target:j||k.target||k.srcElement,relatedTarget:k.relatedTarget||(k.fromElement===k.target?k.toElement:k.fromElement)||null,altKey:k.altKey||false,ctrlKey:k.ctrlKey||false,shiftKey:k.shiftKey||false,button:k.button||null,timeStamp:+new Date(),preventDefault:function(){if(k.preventDefault){k.preventDefault()}this.returnValue=k.returnValue=false},stopPropagation:function(){if(k.stopPropagation){k.stopPropagation()}this.cancelBubble=k.cancelBubble=true}};i.currentTarget=i.target;if(i.target&&3===i.target.nodeType){i.target=i.target.parentNode}if("number"===typeof k.pageX){i.clientX=i.pageX=k.pageX;i.clientY=i.pageY=k.pageY}else{var l=document.documentElement,g=document.body;i.clientX=k.clientX+(l.scrollLeft||g.scrollLeft)-(l.clientLeft||0);i.clientY=k.clientY+(l.scrollTop||g.scrollTop)-(l.clientTop||0)}if("number"===typeof k.which){i.keyCode=k.keyCode;i.charCode=i.which=k.which}else{if(k.keyCode){i.keyCode=i.charCode=k.keyCode}}return i};return{publicMethods:["triggerEvent","addEvent","removeEvent","relayEvent","unrelayEvent","preventDefault","cancelBubble"],init:function(){window.addEvent=this.addEvent;window.removeEvent=this.removeEvent;DOMAssistant.preventDefault=this.preventDefault;DOMAssistant.cancelBubble=this.cancelBubble;e=this.handleEvent},triggerEvent:function(h,o,n){h=a(h);var k=this.retrieve(c),l=n||f(n,h,o||this);l.currentTarget=this;if(k&&k[h]){for(var j=0,g=k[h].length;j<g;j++){if(k[h][j].call(this,l)===false){l.stopPropagation()}}}else{if(typeof this["on"+h]==="function"){this["on"+h].call(this,l)}}var m=DOMAssistant.$$(this.parentNode);if(!l.cancelBubble&&m&&m.nodeType===1){m.triggerEvent(h,o,l)}return this},addEvent:function(g,k,l){if(/^DOM/.test(g)&&d){this.addEventListener(g,k,false)}else{var j=(g=a(g))+this.retrieve();if(!(k.attachedElements&&k.attachedElements[j])){var i=this.retrieve(c)||{};if(!i[g]){i[g]=[];var h=this["on"+g];if(h){i[g].push(h);this["on"+g]=null}}if(!i[g].length){if(d){this.addEventListener(g,e,b[g])}else{this["on"+g]=e}}k.relay=l;i[g].push(k);if(typeof this.window==="object"){this.window["on"+g]=e}k.attachedElements=k.attachedElements||{};k.attachedElements[j]=true;this.store(c,i)}}return this},handleEvent:function(g){var n=f(g),m=a(n.type),h=this.retrieve(c)[m].slice(0),l,k;if((l=h.length)){for(var j=0;j<l;j++){if(typeof h[j]==="function"){k=h[j].call(this,n)}}if(k===false){n.stopPropagation()}return k}},removeEvent:function(g,n,o){var l=(g=a(g))+this.retrieve(),k=this.retrieve(c);if(k&&k[g]){var h=k[g];for(var m,j=h.length;j--;){m=n||h[j];if(h[j]===m&&(!o&&!m.relay||o&&m.relay)){h.splice(j,1);if(m.attachedElements){m.attachedElements[l]=null}}}if(!k[g].length){if(d){this.removeEventListener(g,e,b[g])}else{this["on"+g]=null}}}else{if(this["on"+g]&&!n&&!o){this["on"+g]=null}}return this},relayEvent:function(h,g,i){return this.addEvent(h,function(n){n=f(n);var m=n.target,j=arguments,k=0,o,l=this.cssSelect(g);while((o=l[k++])){if((o===m||DOMAssistant.hasChild.call(o,m))&&!o.disabled){n.currentTarget=o;return i.apply(o,j)}}},true)},unrelayEvent:function(g){return this.removeEvent(g,null,true)},preventDefault:function(g){if(g.preventDefault){g.preventDefault()}g.returnValue=false},cancelBubble:function(g){if(g.stopPropagation){g.stopPropagation()}g.cancelBubble=true}}}();DOMAssistant.attach(DOMAssistant.Events);DOMAssistant.DOMLoad=function(){var g=false,a=null,f=[],b={},c=null,d=function(){for(var j=0,h=f.length;j<h;j++){try{f[j]()}catch(k){if(c&&typeof c==="function"){c(k)}}}f=[]},e=function(){if(g){return}g=true;d()};
+/*@cc_on @if(@_win32||@_win64)document.write("<script id=\"ieScriptLoad\" defer src=\"//:\"><\/script>");document.getElementById("ieScriptLoad").onreadystatechange=function(){if(this.readyState==="complete"){e()}}@end@*/
+if(document.addEventListener){document.addEventListener("DOMContentLoaded",e,false)}if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){a=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){e();clearInterval(a)}},10)}window.onload=e;return{DOMReady:function(){for(var j=0,h=arguments.length,k;j<h;j++){k=arguments[j];if(!k.DOMReady&&!b[k]){if(typeof k==="string"){b[k]=true;k=new Function(k)}k.DOMReady=true;f.push(k)}}if(g){d()}},setErrorHandling:function(h){c=h}}}();DOMAssistant.DOMReady=DOMAssistant.DOMLoad.DOMReady;
View
5 library/js/libs/ie/selectivizr.js
@@ -0,0 +1,5 @@
+/*
+selectivizr v1.0.0 - (c) Keith Clark, freely distributable under the terms of the MIT license.
+selectivizr.com
+*/
+(function(x){function K(a){return a.replace(L,o).replace(M,function(b,e,c){b=c.split(",");c=0;for(var g=b.length;c<g;c++){var j=N(b[c].replace(O,o).replace(P,o))+t,f=[];b[c]=j.replace(Q,function(d,k,l,i,h){if(k){if(f.length>0){d=f;var u;h=j.substring(0,h).replace(R,n);if(h==n||h.charAt(h.length-1)==t)h+="*";try{u=v(h)}catch(da){}if(u){h=0;for(l=u.length;h<l;h++){i=u[h];for(var y=i.className,z=0,S=d.length;z<S;z++){var q=d[z];if(!RegExp("(^|\\s)"+q.className+"(\\s|$)").test(i.className))if(q.b&&(q.b===true||q.b(i)===true))y=A(y,q.className,true)}i.className=y}}f=[]}return k}else{if(k=l?T(l):!B||B.test(i)?{className:C(i),b:true}:null){f.push(k);return"."+k.className}return d}})}return e+b.join(",")})}function T(a){var b=true,e=C(a.slice(1)),c=a.substring(0,5)==":not(",g,j;if(c)a=a.slice(5,-1);var f=a.indexOf("(");if(f>-1)a=a.substring(0,f);if(a.charAt(0)==":")switch(a.slice(1)){case "root":b=function(d){return c?d!=D:d==D};break;case "target":if(p==8){b=function(d){function k(){var l=location.hash,i=l.slice(1);return c?l==""||d.id!=i:l!=""&&d.id==i}x.attachEvent("onhashchange",function(){r(d,e,k())});return k()};break}return false;case "checked":b=function(d){U.test(d.type)&&d.attachEvent("onpropertychange",function(){event.propertyName=="checked"&&r(d,e,d.checked!==c)});return d.checked!==c};break;case "disabled":c=!c;case "enabled":b=function(d){if(V.test(d.tagName)){d.attachEvent("onpropertychange",function(){event.propertyName=="$disabled"&&r(d,e,d.a===c)});w.push(d);d.a=d.disabled;return d.disabled===c}return a==":enabled"?c:!c};break;case "focus":g="focus";j="blur";case "hover":if(!g){g="mouseenter";j="mouseleave"}b=function(d){d.attachEvent("on"+(c?j:g),function(){r(d,e,true)});d.attachEvent("on"+(c?g:j),function(){r(d,e,false)});return c};break;default:if(!W.test(a))return false;break}return{className:e,b:b}}function C(a){return E+"-"+(p==6&&X?Y++:a.replace(Z,function(b){return b.charCodeAt(0)}))}function N(a){return a.replace(F,o).replace($,t)}function r(a,b,e){var c=a.className;b=A(c,b,e);if(b!=c){a.className=b;a.parentNode.className+=n}}function A(a,b,e){var c=RegExp("(^|\\s)"+b+"(\\s|$)"),g=c.test(a);return e?g?a:a+t+b:g?a.replace(c,o).replace(F,o):a}function G(a,b){if(/^https?:\/\//i.test(a))return b.substring(0,b.indexOf("/",8))==a.substring(0,a.indexOf("/",8))?a:null;if(a.charAt(0)=="/")return b.substring(0,b.indexOf("/",8))+a;var e=b.split("?")[0];if(a.charAt(0)!="?"&&e.charAt(e.length-1)!="/")e=e.substring(0,e.lastIndexOf("/")+1);return e+a}function H(a){if(a){s.open("GET",a,false);s.send();return(s.status==200?s.responseText:n).replace(aa,n).replace(ba,function(b,e,c){return H(G(c,a))})}return n}function ca(){var a,b;a=m.getElementsByTagName("BASE");for(var e=a.length>0?a[0].href:m.location.href,c=0;c<m.styleSheets.length;c++){b=m.styleSheets[c];if(b.href!=n)if(a=G(b.href,e))b.cssText=K(H(a))}w.length>0&&setInterval(function(){for(var g=0,j=w.length;g<j;g++){var f=w[g];if(f.disabled!==f.a)if(f.disabled){f.disabled=false;f.a=true;f.disabled=true}else f.a=f.disabled}},250)}if(!/*@cc_on!@*/true){var m=document,D=m.documentElement,s=function(){if(x.XMLHttpRequest)return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(a){return null}}(),p=/MSIE ([\d])/.exec(navigator.userAgent)[1];if(!(m.compatMode!="CSS1Compat"||p<6||p>8||!s)){var I={NW:"*.Dom.select",DOMAssistant:"*.$",Prototype:"$$",YAHOO:"*.util.Selector.query",MooTools:"$$",Sizzle:"*",jQuery:"*",dojo:"*.query"},v,w=[],Y=0,X=true,E="slvzr",J=E+"DOMReady",aa=/(\/\*[^*]*\*+([^\/][^*]*\*+)*\/)\s*/g,ba=/@import\s*url\(\s*(["'])?(.*?)\1\s*\)[\w\W]*?;/g,W=/^:(empty|(first|last|only|nth(-last)?)-(child|of-type))$/,L=/:(:first-(?:line|letter))/g,M=/(^|})\s*([^\{]*?[\[:][^{]+)/g,Q=/([ +~>])|(:[a-z-]+(?:\(.*?\)+)?)|(\[.*?\])/g,R=/(:not\()?:(hover|enabled|disabled|focus|checked|target|active|visited|first-line|first-letter)\)?/g,Z=/[^\w-]/g,V=/^(INPUT|SELECT|TEXTAREA|BUTTON)$/,U=/^(checkbox|radio)$/,B=p==8?/[\$\^]=(['"])\1/:p==7?/[\$\^*]=(['"])\1/:null,O=/([(\[+~])\s+/g,P=/\s+([)\]+~])/g,$=/\s+/g,F=/^\s*((?:[\S\s]*\S)?)\s*$/,n="",t=" ",o="$1";m.write("<script id="+J+" defer src='//:'><\/script>");m.getElementById(J).onreadystatechange=function(){if(this.readyState=="complete"){a:{var a;for(var b in I)if(x[b]&&(a=eval(I[b].replace("*",b)))){v=a;break a}v=false}if(v){ca();this.parentNode.removeChild(this)}}}}}})(this);
View
61 library/js/libs/imgsizer.js
@@ -0,0 +1,61 @@
+var imgSizer = {
+ Config : {
+ imgCache : []
+ ,spacer : "/path/to/your/spacer.gif"
+ }
+
+ ,collate : function(aScope) {
+ var isOldIE = (document.all && !window.opera && !window.XDomainRequest) ? 1 : 0;
+ if (isOldIE && document.getElementsByTagName) {
+ var c = imgSizer;
+ var imgCache = c.Config.imgCache;
+
+ var images = (aScope && aScope.length) ? aScope : document.getElementsByTagName("img");
+ for (var i = 0; i < images.length; i++) {
+ images[i].origWidth = images[i].offsetWidth;
+ images[i].origHeight = images[i].offsetHeight;
+
+ imgCache.push(images[i]);
+ c.ieAlpha(images[i]);
+ images[i].style.width = "100%";
+ }
+
+ if (imgCache.length) {
+ c.resize(function() {
+ for (var i = 0; i < imgCache.length; i++) {
+ var ratio = (imgCache[i].offsetWidth / imgCache[i].origWidth);
+ imgCache[i].style.height = (imgCache[i].origHeight * ratio) + "px";
+ }
+ });
+ }
+ }
+ }
+
+ ,ieAlpha : function(img) {
+ var c = imgSizer;
+ if (img.oldSrc) {
+ img.src = img.oldSrc;
+ }
+ var src = img.src;
+ img.style.width = img.offsetWidth + "px";
+ img.style.height = img.offsetHeight + "px";
+ img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')"
+ img.oldSrc = src;
+ img.src = c.Config.spacer;
+ }
+
+ // Ghettomodified version of Simon Willison's addLoadEvent() -- http://simonwillison.net/2004/May/26/addLoadEvent/
+ ,resize : function(func) {
+ var oldonresize = window.onresize;
+ if (typeof window.onresize != 'function') {
+ window.onresize = func;
+ } else {
+ window.onresize = function() {
+ if (oldonresize) {
+ oldonresize();
+ }
+ func();
+ }
+ }
+ }
+}
View
154 library/js/libs/jquery-1.4.2.min.js
@@ -0,0 +1,154 @@
+/*!
+ * jQuery JavaScript Library v1.4.2
+ * http://jquery.com/
+ *
+ * Copyright 2010, John Resig
+ * Dual licensed under the MIT or GPL Version 2 licenses.
+ * http://jquery.org/license
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ * Copyright 2010, The Dojo Foundation
+ * Released under the MIT, BSD, and GPL Licenses.
+ *
+ * Date: Sat Feb 13 22:33:48 2010 -0500
+ */
+(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o<i;o++)e(a[o],b,f?d.call(a[o],o,e(a[o],b)):d,j);return a}return i?
+e(a[0],b):w}function J(){return(new Date).getTime()}function Y(){return false}function Z(){return true}function na(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function oa(a){var b,d=[],f=[],e=arguments,j,i,o,k,n,r;i=c.data(this,"events");if(!(a.liveFired===this||!i||!i.live||a.button&&a.type==="click")){a.liveFired=this;var u=i.live.slice(0);for(k=0;k<u.length;k++){i=u[k];i.origType.replace(O,"")===a.type?f.push(i.selector):u.splice(k--,1)}j=c(a.target).closest(f,a.currentTarget);n=0;for(r=
+j.length;n<r;n++)for(k=0;k<u.length;k++){i=u[k];if(j[n].selector===i.selector){o=j[n].elem;f=null;if(i.preType==="mouseenter"||i.preType==="mouseleave")f=c(a.relatedTarget).closest(i.selector)[0];if(!f||f!==o)d.push({elem:o,handleObj:i})}}n=0;for(r=d.length;n<r;n++){j=d[n];a.currentTarget=j.elem;a.data=j.handleObj.data;a.handleObj=j.handleObj;if(j.handleObj.origHandler.apply(j.elem,e)===false){b=false;break}}return b}}function pa(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
+"&")}function qa(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ra(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var j in f)for(var i in f[j])c.event.add(this,j,f[j][i],f[j][i].data)}}})}function sa(a,b,d){var f,e,j;b=b&&b[0]?b[0].ownerDocument||b[0]:s;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===s&&!ta.test(a[0])&&(c.support.checkClone||!ua.test(a[0]))){e=
+true;if(j=c.fragments[a[0]])if(j!==1)f=j}if(!f){f=b.createDocumentFragment();c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=j?f:1;return{fragment:f,cacheable:e}}function K(a,b){var d={};c.each(va.concat.apply([],va.slice(0,b)),function(){d[this]=a});return d}function wa(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},Ra=A.jQuery,Sa=A.$,s=A.document,T,Ta=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/,
+Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&&
+(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this,
+a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b===
+"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,
+function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((e=arguments[b])!=null)for(j in e){i=a[j];o=e[j];if(a!==o)if(f&&o&&(c.isPlainObject(o)||c.isArray(o))){i=i&&(c.isPlainObject(i)||
+c.isArray(i))?i:c.isArray(o)?[]:{};a[j]=c.extend(f,i,o)}else if(o!==w)a[j]=o}return a};c.extend({noConflict:function(a){A.$=Sa;if(a)A.jQuery=Ra;return c},isReady:false,ready:function(){if(!c.isReady){if(!s.body)return setTimeout(c.ready,13);c.isReady=true;if(Q){for(var a,b=0;a=Q[b++];)a.call(s,c);Q=null}c.fn.triggerHandler&&c(s).triggerHandler("ready")}},bindReady:function(){if(!xa){xa=true;if(s.readyState==="complete")return c.ready();if(s.addEventListener){s.addEventListener("DOMContentLoaded",
+L,false);A.addEventListener("load",c.ready,false)}else if(s.attachEvent){s.attachEvent("onreadystatechange",L);A.attachEvent("onload",c.ready);var a=false;try{a=A.frameElement==null}catch(b){}s.documentElement.doScroll&&a&&ma()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!aa.call(a,"constructor")&&!aa.call(a.constructor.prototype,
+"isPrototypeOf"))return false;var b;for(b in a);return b===w||aa.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return A.JSON&&A.JSON.parse?A.JSON.parse(a):(new Function("return "+
+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&Va.test(a)){var b=s.getElementsByTagName("head")[0]||s.documentElement,d=s.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(s.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var f,e=0,j=a.length,i=j===w||c.isFunction(a);if(d)if(i)for(f in a){if(b.apply(a[f],
+d)===false)break}else for(;e<j;){if(b.apply(a[e++],d)===false)break}else if(i)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];e<j&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Wa,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===
+a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==w;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,j=a.length;e<j;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,j=0,i=a.length;j<i;j++){e=b(a[j],j,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=w}else if(b&&
+!c.isFunction(b)){d=b;b=w}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});P=c.uaMatch(P);if(P.browser){c.browser[P.browser]=true;c.browser.version=P.version}if(c.browser.webkit)c.browser.safari=
+true;if(ya)c.inArray=function(a,b){return ya.call(b,a)};T=c(s);if(s.addEventListener)L=function(){s.removeEventListener("DOMContentLoaded",L,false);c.ready()};else if(s.attachEvent)L=function(){if(s.readyState==="complete"){s.detachEvent("onreadystatechange",L);c.ready()}};(function(){c.support={};var a=s.documentElement,b=s.createElement("script"),d=s.createElement("div"),f="script"+J();d.style.display="none";d.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";
+var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected,
+parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{de