changeset 2:b74b41bb73f0

-- Google analytics module
author danieleb <danielebarchiesi@me.com>
date Thu, 22 Aug 2013 17:22:54 +0100
parents 67ce89da90df
children b28be78d8160
files sites/all/libraries/jquery.cycle/jquery.cycle.all.js sites/all/libraries/jquery.cycle/jquery.cycle.lite.js sites/all/modules/better_exposed_filters/CHANGELOG.txt sites/all/modules/better_exposed_filters/LICENSE.txt sites/all/modules/better_exposed_filters/README.txt sites/all/modules/better_exposed_filters/better_exposed_filters.css sites/all/modules/better_exposed_filters/better_exposed_filters.info sites/all/modules/better_exposed_filters/better_exposed_filters.js sites/all/modules/better_exposed_filters/better_exposed_filters.module sites/all/modules/better_exposed_filters/better_exposed_filters.theme sites/all/modules/better_exposed_filters/better_exposed_filters.views.inc sites/all/modules/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc sites/all/modules/better_exposed_filters/tests/better_exposed_filters.test sites/all/modules/captcha/LICENSE.txt sites/all/modules/captcha/README.txt sites/all/modules/captcha/captcha.admin.inc sites/all/modules/captcha/captcha.inc sites/all/modules/captcha/captcha.info sites/all/modules/captcha/captcha.install sites/all/modules/captcha/captcha.js sites/all/modules/captcha/captcha.module sites/all/modules/captcha/captcha.test sites/all/modules/captcha/captcha_api.txt sites/all/modules/captcha/image_captcha/fonts/README.txt sites/all/modules/captcha/image_captcha/fonts/Tesox/tesox.ttf sites/all/modules/captcha/image_captcha/fonts/Tesox/tesox_readme.txt sites/all/modules/captcha/image_captcha/fonts/Tuffy/README.txt sites/all/modules/captcha/image_captcha/fonts/Tuffy/Tuffy.ttf sites/all/modules/captcha/image_captcha/fonts/Tuffy/Tuffy_Bold.ttf sites/all/modules/captcha/image_captcha/image_captcha.admin.inc sites/all/modules/captcha/image_captcha/image_captcha.css sites/all/modules/captcha/image_captcha/image_captcha.info sites/all/modules/captcha/image_captcha/image_captcha.install sites/all/modules/captcha/image_captcha/image_captcha.js sites/all/modules/captcha/image_captcha/image_captcha.module sites/all/modules/captcha/image_captcha/image_captcha.user.inc sites/all/modules/flexslider/LICENSE.txt sites/all/modules/flexslider/README.txt sites/all/modules/flexslider/assets/css/flexslider_img.css sites/all/modules/flexslider/assets/images/flexslider-sample-1.JPG sites/all/modules/flexslider/assets/images/flexslider-sample-2.JPG sites/all/modules/flexslider/assets/images/flexslider-sample-3.JPG sites/all/modules/flexslider/assets/images/flexslider-sample-4.JPG sites/all/modules/flexslider/assets/js/flexslider.load.js sites/all/modules/flexslider/flexslider-logo.png sites/all/modules/flexslider/flexslider.admin.inc sites/all/modules/flexslider/flexslider.api.php sites/all/modules/flexslider/flexslider.flexslider_default_preset.inc sites/all/modules/flexslider/flexslider.info sites/all/modules/flexslider/flexslider.install sites/all/modules/flexslider/flexslider.make.example sites/all/modules/flexslider/flexslider.module sites/all/modules/flexslider/flexslider.test sites/all/modules/flexslider/flexslider_example/README.txt sites/all/modules/flexslider/flexslider_example/flexslider_example.context.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.features.field.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.features.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.features.menu_custom.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.flexslider_default_preset.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.info sites/all/modules/flexslider/flexslider_example/flexslider_example.install sites/all/modules/flexslider/flexslider_example/flexslider_example.module sites/all/modules/flexslider/flexslider_example/flexslider_example.strongarm.inc sites/all/modules/flexslider/flexslider_example/flexslider_example.views_default.inc sites/all/modules/flexslider/flexslider_fields/README.txt sites/all/modules/flexslider/flexslider_fields/flexslider_fields.info sites/all/modules/flexslider/flexslider_fields/flexslider_fields.module sites/all/modules/flexslider/flexslider_views/README.txt sites/all/modules/flexslider/flexslider_views/flexslider_views.info sites/all/modules/flexslider/flexslider_views/flexslider_views.module sites/all/modules/flexslider/flexslider_views/flexslider_views.views.inc sites/all/modules/flexslider/flexslider_views/flexslider_views_plugin_style_flexslider.inc sites/all/modules/flexslider/plugins/export_ui/flexslider_ctools_export_ui.inc sites/all/modules/flexslider/theme/flexslider.theme.inc sites/all/modules/flexslider/theme/flexslider.tpl.php sites/all/modules/flexslider_views_slideshow/LICENSE.txt sites/all/modules/flexslider_views_slideshow/README.txt sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.info sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.module sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.views_slideshow.inc sites/all/modules/flexslider_views_slideshow/js/flexslider_views_slideshow.js sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row-item.tpl.php sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row.tpl.php sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame.tpl.php sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow.tpl.php sites/all/modules/flexslider_views_slideshow/theme/flexslider_views_slideshow.theme.inc sites/all/modules/google_analytics/.DS_Store sites/all/modules/google_analytics/LICENSE.txt sites/all/modules/google_analytics/README.txt sites/all/modules/google_analytics/googleanalytics.admin.inc sites/all/modules/google_analytics/googleanalytics.admin.js sites/all/modules/google_analytics/googleanalytics.info sites/all/modules/google_analytics/googleanalytics.install sites/all/modules/google_analytics/googleanalytics.js sites/all/modules/google_analytics/googleanalytics.module sites/all/modules/google_analytics/googleanalytics.test sites/all/modules/google_analytics/googleanalytics.tokens.inc sites/all/modules/google_analytics/googleanalytics.variable.inc sites/all/modules/libraries/CHANGELOG.txt sites/all/modules/libraries/LICENSE.txt sites/all/modules/libraries/README.txt sites/all/modules/libraries/libraries.api.php sites/all/modules/libraries/libraries.drush.inc sites/all/modules/libraries/libraries.info sites/all/modules/libraries/libraries.install sites/all/modules/libraries/libraries.module sites/all/modules/libraries/tests/example/README.txt sites/all/modules/libraries/tests/example/example_1.css sites/all/modules/libraries/tests/example/example_1.js sites/all/modules/libraries/tests/example/example_1.php sites/all/modules/libraries/tests/example/example_2.css sites/all/modules/libraries/tests/example/example_2.js sites/all/modules/libraries/tests/example/example_2.php sites/all/modules/libraries/tests/example/example_3.css sites/all/modules/libraries/tests/example/example_3.js sites/all/modules/libraries/tests/example/example_3.php sites/all/modules/libraries/tests/example/example_4.css sites/all/modules/libraries/tests/example/example_4.js sites/all/modules/libraries/tests/example/example_4.php sites/all/modules/libraries/tests/example/example_info_file.libraries.info sites/all/modules/libraries/tests/libraries.test sites/all/modules/libraries/tests/libraries_test.css sites/all/modules/libraries/tests/libraries_test.inc sites/all/modules/libraries/tests/libraries_test.info sites/all/modules/libraries/tests/libraries_test.js sites/all/modules/libraries/tests/libraries_test.module sites/all/modules/menu_attributes/LICENSE.txt sites/all/modules/menu_attributes/menu_attributes.api.php sites/all/modules/menu_attributes/menu_attributes.info sites/all/modules/menu_attributes/menu_attributes.install sites/all/modules/menu_attributes/menu_attributes.js sites/all/modules/menu_attributes/menu_attributes.module sites/all/modules/menu_attributes/menu_attributes.test sites/all/modules/module_filter/CHANGELOG.txt sites/all/modules/module_filter/LICENSE.txt sites/all/modules/module_filter/css/module_filter.css sites/all/modules/module_filter/css/module_filter_tab.css sites/all/modules/module_filter/js/dynamic_position.js sites/all/modules/module_filter/js/module_filter.js sites/all/modules/module_filter/js/module_filter_tab.js sites/all/modules/module_filter/module_filter.admin.inc sites/all/modules/module_filter/module_filter.info sites/all/modules/module_filter/module_filter.install sites/all/modules/module_filter/module_filter.module sites/all/modules/module_filter/module_filter.theme.inc sites/all/modules/quicktabs/LICENSE.txt sites/all/modules/quicktabs/README.txt sites/all/modules/quicktabs/add-tab.gif sites/all/modules/quicktabs/css/quicktabs-admin.css sites/all/modules/quicktabs/css/quicktabs.css sites/all/modules/quicktabs/delete-tab.gif sites/all/modules/quicktabs/includes/quicktabs_style_plugin.inc sites/all/modules/quicktabs/js/qt_accordion.js sites/all/modules/quicktabs/js/qt_ui_tabs.js sites/all/modules/quicktabs/js/quicktabs.js sites/all/modules/quicktabs/js/quicktabs_bbq.js sites/all/modules/quicktabs/js/quicktabs_form.js sites/all/modules/quicktabs/plugins/QuickAccordion.inc sites/all/modules/quicktabs/plugins/QuickBlockContent.inc sites/all/modules/quicktabs/plugins/QuickCallbackContent.inc sites/all/modules/quicktabs/plugins/QuickNodeContent.inc sites/all/modules/quicktabs/plugins/QuickQtabsContent.inc sites/all/modules/quicktabs/plugins/QuickQuicktabs.inc sites/all/modules/quicktabs/plugins/QuickUiTabs.inc sites/all/modules/quicktabs/plugins/QuickViewContent.inc sites/all/modules/quicktabs/quicktabs.admin.inc sites/all/modules/quicktabs/quicktabs.api.php sites/all/modules/quicktabs/quicktabs.classes.inc sites/all/modules/quicktabs/quicktabs.info sites/all/modules/quicktabs/quicktabs.install sites/all/modules/quicktabs/quicktabs.module sites/all/modules/quicktabs/quicktabs.views.inc sites/all/modules/quicktabs/quicktabs_tabstyles/css/quicktabs-tabstyles-admin.css sites/all/modules/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.info sites/all/modules/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.module sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/images/arrows.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-bar.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-rtl.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep-rtl.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-rtl.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep-rtl.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/bg.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left-sidebar.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right-sidebar.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/navlist/navlist.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.gif sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-dark.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-light.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-medium.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-bar.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-left-ie6.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-right-ie6.png sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen-rtl.css sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen.css sites/all/modules/quicktabs/tests/quicktabs.test sites/all/modules/recaptcha/LICENSE.txt sites/all/modules/recaptcha/README.txt sites/all/modules/recaptcha/recaptcha-php-1.11/LICENSE sites/all/modules/recaptcha/recaptcha-php-1.11/README sites/all/modules/recaptcha/recaptcha-php-1.11/example-captcha.php sites/all/modules/recaptcha/recaptcha-php-1.11/example-mailhide.php sites/all/modules/recaptcha/recaptcha-php-1.11/recaptchalib.php sites/all/modules/recaptcha/recaptcha.admin.inc sites/all/modules/recaptcha/recaptcha.info sites/all/modules/recaptcha/recaptcha.install sites/all/modules/recaptcha/recaptcha.js sites/all/modules/recaptcha/recaptcha.module sites/all/modules/recaptcha/recaptcha_mailhide.info sites/all/modules/recaptcha/recaptcha_mailhide.module sites/all/modules/views_slideshow/LICENSE.txt sites/all/modules/views_slideshow/README.txt sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/README.txt sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/js/formoptions.js sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row-item.tpl.php sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame.tpl.php sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle.tpl.php sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.css sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.info sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.module sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc sites/all/modules/views_slideshow/js/views_slideshow.js sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-next.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-pause.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-previous.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-controls-text.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-field.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-item.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-pager-fields.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow-slide-counter.tpl.php sites/all/modules/views_slideshow/theme/views-slideshow.tpl.php sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc sites/all/modules/views_slideshow/views_slideshow.api.php sites/all/modules/views_slideshow/views_slideshow.css sites/all/modules/views_slideshow/views_slideshow.info sites/all/modules/views_slideshow/views_slideshow.module sites/all/modules/views_slideshow/views_slideshow.views.inc sites/all/modules/views_slideshow/views_slideshow_controls_text.css sites/all/modules/views_slideshow/views_slideshow_plugin_style_slideshow.inc sites/all/themes/zen/LICENSE.txt sites/all/themes/zen/README-FIRST.txt sites/all/themes/zen/STARTERKIT/README.txt sites/all/themes/zen/STARTERKIT/STARTERKIT.info.txt sites/all/themes/zen/STARTERKIT/config.rb sites/all/themes/zen/STARTERKIT/css/README.txt sites/all/themes/zen/STARTERKIT/css/components/misc-rtl.css sites/all/themes/zen/STARTERKIT/css/components/misc.css sites/all/themes/zen/STARTERKIT/css/layouts/fixed-rtl.css sites/all/themes/zen/STARTERKIT/css/layouts/fixed.css sites/all/themes/zen/STARTERKIT/css/layouts/responsive-rtl.css sites/all/themes/zen/STARTERKIT/css/layouts/responsive.css sites/all/themes/zen/STARTERKIT/css/normalize-rtl.css sites/all/themes/zen/STARTERKIT/css/normalize.css sites/all/themes/zen/STARTERKIT/css/print.css sites/all/themes/zen/STARTERKIT/css/styles-rtl.css sites/all/themes/zen/STARTERKIT/css/styles.css sites/all/themes/zen/STARTERKIT/favicon.ico sites/all/themes/zen/STARTERKIT/images-source/screenshot.psd sites/all/themes/zen/STARTERKIT/images/help.png sites/all/themes/zen/STARTERKIT/images/menu-collapsed-rtl.png sites/all/themes/zen/STARTERKIT/images/menu-collapsed.png sites/all/themes/zen/STARTERKIT/images/menu-expanded.png sites/all/themes/zen/STARTERKIT/images/menu-leaf.png sites/all/themes/zen/STARTERKIT/images/message-24-error.png sites/all/themes/zen/STARTERKIT/images/message-24-ok.png sites/all/themes/zen/STARTERKIT/images/message-24-warning.png sites/all/themes/zen/STARTERKIT/images/progress.gif sites/all/themes/zen/STARTERKIT/js/README.txt sites/all/themes/zen/STARTERKIT/js/script.js sites/all/themes/zen/STARTERKIT/logo.png sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/LICENSE.txt sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/README.txt sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_init.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_layout.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_modules.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_visually-hidden.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/README.txt sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/manifest.rb sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-direction-flip.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-grid-item-width.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-half-gutter.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-unit-width.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-clear.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-float.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-background.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-container.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-flow-item.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item-base.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-nested-container.scss sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-direction-flip.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-grid-item-width.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-half-gutter.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-unit-width.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-clear.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-float.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-background.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-container.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-flow-item.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item-base.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-nested-container.css sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec sites/all/themes/zen/STARTERKIT/sass/README.txt sites/all/themes/zen/STARTERKIT/sass/_init.scss sites/all/themes/zen/STARTERKIT/sass/_mixins.scss sites/all/themes/zen/STARTERKIT/sass/_normalize-rtl.scss sites/all/themes/zen/STARTERKIT/sass/_normalize.scss sites/all/themes/zen/STARTERKIT/sass/_print.scss sites/all/themes/zen/STARTERKIT/sass/components/_misc-rtl.scss sites/all/themes/zen/STARTERKIT/sass/components/_misc.scss sites/all/themes/zen/STARTERKIT/sass/layouts/_fixed-rtl.scss sites/all/themes/zen/STARTERKIT/sass/layouts/_fixed.scss sites/all/themes/zen/STARTERKIT/sass/layouts/_responsive-rtl.scss sites/all/themes/zen/STARTERKIT/sass/layouts/_responsive.scss sites/all/themes/zen/STARTERKIT/sass/styles-rtl.scss sites/all/themes/zen/STARTERKIT/sass/styles.scss sites/all/themes/zen/STARTERKIT/screenshot.png sites/all/themes/zen/STARTERKIT/template.php sites/all/themes/zen/STARTERKIT/templates/README.txt sites/all/themes/zen/STARTERKIT/theme-settings.php sites/all/themes/zen/js/html5-respond.js sites/all/themes/zen/js/html5.js sites/all/themes/zen/js/respond.js sites/all/themes/zen/logo.png sites/all/themes/zen/panels-layouts/zen-no-wrapper/icon.png sites/all/themes/zen/panels-layouts/zen-no-wrapper/zen-no-wrapper.tpl.php sites/all/themes/zen/panels-layouts/zen-no-wrapper/zen_no_wrapper.inc sites/all/themes/zen/template.php sites/all/themes/zen/templates/block--no-wrapper.tpl.php sites/all/themes/zen/templates/block.tpl.php sites/all/themes/zen/templates/comment-wrapper.tpl.php sites/all/themes/zen/templates/comment.tpl.php sites/all/themes/zen/templates/html.tpl.php sites/all/themes/zen/templates/maintenance-page.tpl.php sites/all/themes/zen/templates/node.tpl.php sites/all/themes/zen/templates/page.tpl.php sites/all/themes/zen/templates/pane-header.tpl.php sites/all/themes/zen/templates/pane-messages.tpl.php sites/all/themes/zen/templates/pane-navigation.tpl.php sites/all/themes/zen/templates/panels-pane.tpl.php sites/all/themes/zen/templates/region--footer.tpl.php sites/all/themes/zen/templates/region--no-wrapper.tpl.php sites/all/themes/zen/templates/region--sidebar.tpl.php sites/all/themes/zen/templates/region.tpl.php sites/all/themes/zen/templates/user-picture.tpl.php sites/all/themes/zen/theme-settings.php sites/all/themes/zen/zen-internals/css/styles-fixed-rtl.css sites/all/themes/zen/zen-internals/css/styles-fixed.css sites/all/themes/zen/zen-internals/css/styles-rtl.css sites/all/themes/zen/zen-internals/css/styles.css sites/all/themes/zen/zen-internals/extras/README.txt sites/all/themes/zen/zen-internals/extras/sass/_init_extras.scss sites/all/themes/zen/zen-internals/extras/sass/components/css-misc-rtl.scss sites/all/themes/zen/zen-internals/extras/sass/components/css-misc.scss sites/all/themes/zen/zen-internals/extras/sass/css-normalize-rtl.scss sites/all/themes/zen/zen-internals/extras/sass/css-normalize.scss sites/all/themes/zen/zen-internals/extras/sass/css-print.scss sites/all/themes/zen/zen-internals/extras/sass/layouts/css-fixed-rtl.scss sites/all/themes/zen/zen-internals/extras/sass/layouts/css-fixed.scss sites/all/themes/zen/zen-internals/extras/sass/layouts/css-responsive-rtl.scss sites/all/themes/zen/zen-internals/extras/sass/layouts/css-responsive.scss sites/all/themes/zen/zen-internals/extras/sass/styles-fixed-rtl.scss sites/all/themes/zen/zen-internals/extras/sass/styles-fixed.scss sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--button--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--button--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--headings--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--headings--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--html--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--html--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--img--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--img--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--links--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--links--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--abbr--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--abbr--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--site-name--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--site-name--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--useful-url--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--useful-url--search.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--visible-url--replace.txt sites/all/themes/zen/zen-internals/extras/text-replacements/print--visible-url--search.txt sites/all/themes/zen/zen-internals/generate.sh sites/all/themes/zen/zen-internals/images/help.png sites/all/themes/zen/zen-internals/images/menu-collapsed-rtl.png sites/all/themes/zen/zen-internals/images/menu-collapsed.png sites/all/themes/zen/zen-internals/images/menu-expanded.png sites/all/themes/zen/zen-internals/images/menu-leaf.png sites/all/themes/zen/zen-internals/images/message-24-error.png sites/all/themes/zen/zen-internals/images/message-24-ok.png sites/all/themes/zen/zen-internals/images/message-24-warning.png sites/all/themes/zen/zen-internals/images/progress.gif sites/all/themes/zen/zen-internals/screenshot.png sites/all/themes/zen/zen-internals/template.theme-registry.inc sites/all/themes/zen/zen-internals/template.zen.inc sites/all/themes/zen/zen-internals/zen.drush.inc sites/all/themes/zen/zen.info
diffstat 559 files changed, 43904 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/libraries/jquery.cycle/jquery.cycle.all.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1543 @@
+/*!
+ * jQuery Cycle Plugin (with Transition Definitions)
+ * Examples and documentation at: http://jquery.malsup.com/cycle/
+ * Copyright (c) 2007-2013 M. Alsup
+ * Version: 3.0.3 (11-JUL-2013)
+ * Dual licensed under the MIT and GPL licenses.
+ * http://jquery.malsup.com/license.html
+ * Requires: jQuery v1.7.1 or later
+ */
+;(function($, undefined) {
+"use strict";
+
+var ver = '3.0.3';
+
+function debug(s) {
+	if ($.fn.cycle.debug)
+		log(s);
+}		
+function log() {
+	/*global console */
+	if (window.console && console.log)
+		console.log('[cycle] ' + Array.prototype.join.call(arguments,' '));
+}
+$.expr[':'].paused = function(el) {
+	return el.cyclePause;
+};
+
+
+// the options arg can be...
+//   a number  - indicates an immediate transition should occur to the given slide index
+//   a string  - 'pause', 'resume', 'toggle', 'next', 'prev', 'stop', 'destroy' or the name of a transition effect (ie, 'fade', 'zoom', etc)
+//   an object - properties to control the slideshow
+//
+// the arg2 arg can be...
+//   the name of an fx (only used in conjunction with a numeric value for 'options')
+//   the value true (only used in first arg == 'resume') and indicates
+//	 that the resume should occur immediately (not wait for next timeout)
+
+$.fn.cycle = function(options, arg2) {
+	var o = { s: this.selector, c: this.context };
+
+	// in 1.3+ we can fix mistakes with the ready state
+	if (this.length === 0 && options != 'stop') {
+		if (!$.isReady && o.s) {
+			log('DOM not ready, queuing slideshow');
+			$(function() {
+				$(o.s,o.c).cycle(options,arg2);
+			});
+			return this;
+		}
+		// is your DOM ready?  http://docs.jquery.com/Tutorials:Introducing_$(document).ready()
+		log('terminating; zero elements found by selector' + ($.isReady ? '' : ' (DOM not ready)'));
+		return this;
+	}
+
+	// iterate the matched nodeset
+	return this.each(function() {
+		var opts = handleArguments(this, options, arg2);
+		if (opts === false)
+			return;
+
+		opts.updateActivePagerLink = opts.updateActivePagerLink || $.fn.cycle.updateActivePagerLink;
+		
+		// stop existing slideshow for this container (if there is one)
+		if (this.cycleTimeout)
+			clearTimeout(this.cycleTimeout);
+		this.cycleTimeout = this.cyclePause = 0;
+		this.cycleStop = 0; // issue #108
+
+		var $cont = $(this);
+		var $slides = opts.slideExpr ? $(opts.slideExpr, this) : $cont.children();
+		var els = $slides.get();
+
+		if (els.length < 2) {
+			log('terminating; too few slides: ' + els.length);
+			return;
+		}
+
+		var opts2 = buildOptions($cont, $slides, els, opts, o);
+		if (opts2 === false)
+			return;
+
+		var startTime = opts2.continuous ? 10 : getTimeout(els[opts2.currSlide], els[opts2.nextSlide], opts2, !opts2.backwards);
+
+		// if it's an auto slideshow, kick it off
+		if (startTime) {
+			startTime += (opts2.delay || 0);
+			if (startTime < 10)
+				startTime = 10;
+			debug('first timeout: ' + startTime);
+			this.cycleTimeout = setTimeout(function(){go(els,opts2,0,!opts.backwards);}, startTime);
+		}
+	});
+};
+
+function triggerPause(cont, byHover, onPager) {
+	var opts = $(cont).data('cycle.opts');
+	if (!opts)
+		return;
+	var paused = !!cont.cyclePause;
+	if (paused && opts.paused)
+		opts.paused(cont, opts, byHover, onPager);
+	else if (!paused && opts.resumed)
+		opts.resumed(cont, opts, byHover, onPager);
+}
+
+// process the args that were passed to the plugin fn
+function handleArguments(cont, options, arg2) {
+	if (cont.cycleStop === undefined)
+		cont.cycleStop = 0;
+	if (options === undefined || options === null)
+		options = {};
+	if (options.constructor == String) {
+		switch(options) {
+		case 'destroy':
+		case 'stop':
+			var opts = $(cont).data('cycle.opts');
+			if (!opts)
+				return false;
+			cont.cycleStop++; // callbacks look for change
+			if (cont.cycleTimeout)
+				clearTimeout(cont.cycleTimeout);
+			cont.cycleTimeout = 0;
+			if (opts.elements)
+				$(opts.elements).stop();
+			$(cont).removeData('cycle.opts');
+			if (options == 'destroy')
+				destroy(cont, opts);
+			return false;
+		case 'toggle':
+			cont.cyclePause = (cont.cyclePause === 1) ? 0 : 1;
+			checkInstantResume(cont.cyclePause, arg2, cont);
+			triggerPause(cont);
+			return false;
+		case 'pause':
+			cont.cyclePause = 1;
+			triggerPause(cont);
+			return false;
+		case 'resume':
+			cont.cyclePause = 0;
+			checkInstantResume(false, arg2, cont);
+			triggerPause(cont);
+			return false;
+		case 'prev':
+		case 'next':
+			opts = $(cont).data('cycle.opts');
+			if (!opts) {
+				log('options not found, "prev/next" ignored');
+				return false;
+			}
+			if (typeof arg2 == 'string') 
+				opts.oneTimeFx = arg2;
+			$.fn.cycle[options](opts);
+			return false;
+		default:
+			options = { fx: options };
+		}
+		return options;
+	}
+	else if (options.constructor == Number) {
+		// go to the requested slide
+		var num = options;
+		options = $(cont).data('cycle.opts');
+		if (!options) {
+			log('options not found, can not advance slide');
+			return false;
+		}
+		if (num < 0 || num >= options.elements.length) {
+			log('invalid slide index: ' + num);
+			return false;
+		}
+		options.nextSlide = num;
+		if (cont.cycleTimeout) {
+			clearTimeout(cont.cycleTimeout);
+			cont.cycleTimeout = 0;
+		}
+		if (typeof arg2 == 'string')
+			options.oneTimeFx = arg2;
+		go(options.elements, options, 1, num >= options.currSlide);
+		return false;
+	}
+	return options;
+	
+	function checkInstantResume(isPaused, arg2, cont) {
+		if (!isPaused && arg2 === true) { // resume now!
+			var options = $(cont).data('cycle.opts');
+			if (!options) {
+				log('options not found, can not resume');
+				return false;
+			}
+			if (cont.cycleTimeout) {
+				clearTimeout(cont.cycleTimeout);
+				cont.cycleTimeout = 0;
+			}
+			go(options.elements, options, 1, !options.backwards);
+		}
+	}
+}
+
+function removeFilter(el, opts) {
+	if (!$.support.opacity && opts.cleartype && el.style.filter) {
+		try { el.style.removeAttribute('filter'); }
+		catch(smother) {} // handle old opera versions
+	}
+}
+
+// unbind event handlers
+function destroy(cont, opts) {
+	if (opts.next)
+		$(opts.next).unbind(opts.prevNextEvent);
+	if (opts.prev)
+		$(opts.prev).unbind(opts.prevNextEvent);
+	
+	if (opts.pager || opts.pagerAnchorBuilder)
+		$.each(opts.pagerAnchors || [], function() {
+			this.unbind().remove();
+		});
+	opts.pagerAnchors = null;
+	$(cont).unbind('mouseenter.cycle mouseleave.cycle');
+	if (opts.destroy) // callback
+		opts.destroy(opts);
+}
+
+// one-time initialization
+function buildOptions($cont, $slides, els, options, o) {
+	var startingSlideSpecified;
+	// support metadata plugin (v1.0 and v2.0)
+	var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
+	var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null;
+	if (meta)
+		opts = $.extend(opts, meta);
+	if (opts.autostop)
+		opts.countdown = opts.autostopCount || els.length;
+
+	var cont = $cont[0];
+	$cont.data('cycle.opts', opts);
+	opts.$cont = $cont;
+	opts.stopCount = cont.cycleStop;
+	opts.elements = els;
+	opts.before = opts.before ? [opts.before] : [];
+	opts.after = opts.after ? [opts.after] : [];
+
+	// push some after callbacks
+	if (!$.support.opacity && opts.cleartype)
+		opts.after.push(function() { removeFilter(this, opts); });
+	if (opts.continuous)
+		opts.after.push(function() { go(els,opts,0,!opts.backwards); });
+
+	saveOriginalOpts(opts);
+
+	// clearType corrections
+	if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
+		clearTypeFix($slides);
+
+	// container requires non-static position so that slides can be position within
+	if ($cont.css('position') == 'static')
+		$cont.css('position', 'relative');
+	if (opts.width)
+		$cont.width(opts.width);
+	if (opts.height && opts.height != 'auto')
+		$cont.height(opts.height);
+
+	if (opts.startingSlide !== undefined) {
+		opts.startingSlide = parseInt(opts.startingSlide,10);
+		if (opts.startingSlide >= els.length || opts.startSlide < 0)
+			opts.startingSlide = 0; // catch bogus input
+		else 
+			startingSlideSpecified = true;
+	}
+	else if (opts.backwards)
+		opts.startingSlide = els.length - 1;
+	else
+		opts.startingSlide = 0;
+
+	// if random, mix up the slide array
+	if (opts.random) {
+		opts.randomMap = [];
+		for (var i = 0; i < els.length; i++)
+			opts.randomMap.push(i);
+		opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;});
+		if (startingSlideSpecified) {
+			// try to find the specified starting slide and if found set start slide index in the map accordingly
+			for ( var cnt = 0; cnt < els.length; cnt++ ) {
+				if ( opts.startingSlide == opts.randomMap[cnt] ) {
+					opts.randomIndex = cnt;
+				}
+			}
+		}
+		else {
+			opts.randomIndex = 1;
+			opts.startingSlide = opts.randomMap[1];
+		}
+	}
+	else if (opts.startingSlide >= els.length)
+		opts.startingSlide = 0; // catch bogus input
+	opts.currSlide = opts.startingSlide || 0;
+	var first = opts.startingSlide;
+
+	// set position and zIndex on all the slides
+	$slides.css({position: 'absolute', top:0, left:0}).hide().each(function(i) {
+		var z;
+		if (opts.backwards)
+			z = first ? i <= first ? els.length + (i-first) : first-i : els.length-i;
+		else
+			z = first ? i >= first ? els.length - (i-first) : first-i : els.length-i;
+		$(this).css('z-index', z);
+	});
+
+	// make sure first slide is visible
+	$(els[first]).css('opacity',1).show(); // opacity bit needed to handle restart use case
+	removeFilter(els[first], opts);
+
+	// stretch slides
+	if (opts.fit) {
+		if (!opts.aspect) {
+	        if (opts.width)
+	            $slides.width(opts.width);
+	        if (opts.height && opts.height != 'auto')
+	            $slides.height(opts.height);
+		} else {
+			$slides.each(function(){
+				var $slide = $(this);
+				var ratio = (opts.aspect === true) ? $slide.width()/$slide.height() : opts.aspect;
+				if( opts.width && $slide.width() != opts.width ) {
+					$slide.width( opts.width );
+					$slide.height( opts.width / ratio );
+				}
+
+				if( opts.height && $slide.height() < opts.height ) {
+					$slide.height( opts.height );
+					$slide.width( opts.height * ratio );
+				}
+			});
+		}
+	}
+
+	if (opts.center && ((!opts.fit) || opts.aspect)) {
+		$slides.each(function(){
+			var $slide = $(this);
+			$slide.css({
+				"margin-left": opts.width ?
+					((opts.width - $slide.width()) / 2) + "px" :
+					0,
+				"margin-top": opts.height ?
+					((opts.height - $slide.height()) / 2) + "px" :
+					0
+			});
+		});
+	}
+
+	if (opts.center && !opts.fit && !opts.slideResize) {
+		$slides.each(function(){
+			var $slide = $(this);
+			$slide.css({
+				"margin-left": opts.width ? ((opts.width - $slide.width()) / 2) + "px" : 0,
+				"margin-top": opts.height ? ((opts.height - $slide.height()) / 2) + "px" : 0
+			});
+		});
+	}
+		
+	// stretch container
+	var reshape = (opts.containerResize || opts.containerResizeHeight) && $cont.innerHeight() < 1;
+	if (reshape) { // do this only if container has no size http://tinyurl.com/da2oa9
+		var maxw = 0, maxh = 0;
+		for(var j=0; j < els.length; j++) {
+			var $e = $(els[j]), e = $e[0], w = $e.outerWidth(), h = $e.outerHeight();
+			if (!w) w = e.offsetWidth || e.width || $e.attr('width');
+			if (!h) h = e.offsetHeight || e.height || $e.attr('height');
+			maxw = w > maxw ? w : maxw;
+			maxh = h > maxh ? h : maxh;
+		}
+		if (opts.containerResize && maxw > 0 && maxh > 0)
+			$cont.css({width:maxw+'px',height:maxh+'px'});
+		if (opts.containerResizeHeight && maxh > 0)
+			$cont.css({height:maxh+'px'});
+	}
+
+	var pauseFlag = false;  // https://github.com/malsup/cycle/issues/44
+	if (opts.pause)
+		$cont.bind('mouseenter.cycle', function(){
+			pauseFlag = true;
+			this.cyclePause++;
+			triggerPause(cont, true);
+		}).bind('mouseleave.cycle', function(){
+				if (pauseFlag)
+					this.cyclePause--;
+				triggerPause(cont, true);
+		});
+
+	if (supportMultiTransitions(opts) === false)
+		return false;
+
+	// apparently a lot of people use image slideshows without height/width attributes on the images.
+	// Cycle 2.50+ requires the sizing info for every slide; this block tries to deal with that.
+	var requeue = false;
+	options.requeueAttempts = options.requeueAttempts || 0;
+	$slides.each(function() {
+		// try to get height/width of each slide
+		var $el = $(this);
+		this.cycleH = (opts.fit && opts.height) ? opts.height : ($el.height() || this.offsetHeight || this.height || $el.attr('height') || 0);
+		this.cycleW = (opts.fit && opts.width) ? opts.width : ($el.width() || this.offsetWidth || this.width || $el.attr('width') || 0);
+
+		if ( $el.is('img') ) {
+			var loading = (this.cycleH === 0 && this.cycleW === 0 && !this.complete);
+			// don't requeue for images that are still loading but have a valid size
+			if (loading) {
+				if (o.s && opts.requeueOnImageNotLoaded && ++options.requeueAttempts < 100) { // track retry count so we don't loop forever
+					log(options.requeueAttempts,' - img slide not loaded, requeuing slideshow: ', this.src, this.cycleW, this.cycleH);
+					setTimeout(function() {$(o.s,o.c).cycle(options);}, opts.requeueTimeout);
+					requeue = true;
+					return false; // break each loop
+				}
+				else {
+					log('could not determine size of image: '+this.src, this.cycleW, this.cycleH);
+				}
+			}
+		}
+		return true;
+	});
+
+	if (requeue)
+		return false;
+
+	opts.cssBefore = opts.cssBefore || {};
+	opts.cssAfter = opts.cssAfter || {};
+	opts.cssFirst = opts.cssFirst || {};
+	opts.animIn = opts.animIn || {};
+	opts.animOut = opts.animOut || {};
+
+	$slides.not(':eq('+first+')').css(opts.cssBefore);
+	$($slides[first]).css(opts.cssFirst);
+
+	if (opts.timeout) {
+		opts.timeout = parseInt(opts.timeout,10);
+		// ensure that timeout and speed settings are sane
+		if (opts.speed.constructor == String)
+			opts.speed = $.fx.speeds[opts.speed] || parseInt(opts.speed,10);
+		if (!opts.sync)
+			opts.speed = opts.speed / 2;
+		
+		var buffer = opts.fx == 'none' ? 0 : opts.fx == 'shuffle' ? 500 : 250;
+		while((opts.timeout - opts.speed) < buffer) // sanitize timeout
+			opts.timeout += opts.speed;
+	}
+	if (opts.easing)
+		opts.easeIn = opts.easeOut = opts.easing;
+	if (!opts.speedIn)
+		opts.speedIn = opts.speed;
+	if (!opts.speedOut)
+		opts.speedOut = opts.speed;
+
+	opts.slideCount = els.length;
+	opts.currSlide = opts.lastSlide = first;
+	if (opts.random) {
+		if (++opts.randomIndex == els.length)
+			opts.randomIndex = 0;
+		opts.nextSlide = opts.randomMap[opts.randomIndex];
+	}
+	else if (opts.backwards)
+		opts.nextSlide = opts.startingSlide === 0 ? (els.length-1) : opts.startingSlide-1;
+	else
+		opts.nextSlide = opts.startingSlide >= (els.length-1) ? 0 : opts.startingSlide+1;
+
+	// run transition init fn
+	if (!opts.multiFx) {
+		var init = $.fn.cycle.transitions[opts.fx];
+		if ($.isFunction(init))
+			init($cont, $slides, opts);
+		else if (opts.fx != 'custom' && !opts.multiFx) {
+			log('unknown transition: ' + opts.fx,'; slideshow terminating');
+			return false;
+		}
+	}
+
+	// fire artificial events
+	var e0 = $slides[first];
+	if (!opts.skipInitializationCallbacks) {
+		if (opts.before.length)
+			opts.before[0].apply(e0, [e0, e0, opts, true]);
+		if (opts.after.length)
+			opts.after[0].apply(e0, [e0, e0, opts, true]);
+	}
+	if (opts.next)
+		$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});
+	if (opts.prev)
+		$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});
+	if (opts.pager || opts.pagerAnchorBuilder)
+		buildPager(els,opts);
+
+	exposeAddSlide(opts, els);
+
+	return opts;
+}
+
+// save off original opts so we can restore after clearing state
+function saveOriginalOpts(opts) {
+	opts.original = { before: [], after: [] };
+	opts.original.cssBefore = $.extend({}, opts.cssBefore);
+	opts.original.cssAfter  = $.extend({}, opts.cssAfter);
+	opts.original.animIn	= $.extend({}, opts.animIn);
+	opts.original.animOut   = $.extend({}, opts.animOut);
+	$.each(opts.before, function() { opts.original.before.push(this); });
+	$.each(opts.after,  function() { opts.original.after.push(this); });
+}
+
+function supportMultiTransitions(opts) {
+	var i, tx, txs = $.fn.cycle.transitions;
+	// look for multiple effects
+	if (opts.fx.indexOf(',') > 0) {
+		opts.multiFx = true;
+		opts.fxs = opts.fx.replace(/\s*/g,'').split(',');
+		// discard any bogus effect names
+		for (i=0; i < opts.fxs.length; i++) {
+			var fx = opts.fxs[i];
+			tx = txs[fx];
+			if (!tx || !txs.hasOwnProperty(fx) || !$.isFunction(tx)) {
+				log('discarding unknown transition: ',fx);
+				opts.fxs.splice(i,1);
+				i--;
+			}
+		}
+		// if we have an empty list then we threw everything away!
+		if (!opts.fxs.length) {
+			log('No valid transitions named; slideshow terminating.');
+			return false;
+		}
+	}
+	else if (opts.fx == 'all') {  // auto-gen the list of transitions
+		opts.multiFx = true;
+		opts.fxs = [];
+		for (var p in txs) {
+			if (txs.hasOwnProperty(p)) {
+				tx = txs[p];
+				if (txs.hasOwnProperty(p) && $.isFunction(tx))
+					opts.fxs.push(p);
+			}
+		}
+	}
+	if (opts.multiFx && opts.randomizeEffects) {
+		// munge the fxs array to make effect selection random
+		var r1 = Math.floor(Math.random() * 20) + 30;
+		for (i = 0; i < r1; i++) {
+			var r2 = Math.floor(Math.random() * opts.fxs.length);
+			opts.fxs.push(opts.fxs.splice(r2,1)[0]);
+		}
+		debug('randomized fx sequence: ',opts.fxs);
+	}
+	return true;
+}
+
+// provide a mechanism for adding slides after the slideshow has started
+function exposeAddSlide(opts, els) {
+	opts.addSlide = function(newSlide, prepend) {
+		var $s = $(newSlide), s = $s[0];
+		if (!opts.autostopCount)
+			opts.countdown++;
+		els[prepend?'unshift':'push'](s);
+		if (opts.els)
+			opts.els[prepend?'unshift':'push'](s); // shuffle needs this
+		opts.slideCount = els.length;
+
+		// add the slide to the random map and resort
+		if (opts.random) {
+			opts.randomMap.push(opts.slideCount-1);
+			opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;});
+		}
+
+		$s.css('position','absolute');
+		$s[prepend?'prependTo':'appendTo'](opts.$cont);
+
+		if (prepend) {
+			opts.currSlide++;
+			opts.nextSlide++;
+		}
+
+		if (!$.support.opacity && opts.cleartype && !opts.cleartypeNoBg)
+			clearTypeFix($s);
+
+		if (opts.fit && opts.width)
+			$s.width(opts.width);
+		if (opts.fit && opts.height && opts.height != 'auto')
+			$s.height(opts.height);
+		s.cycleH = (opts.fit && opts.height) ? opts.height : $s.height();
+		s.cycleW = (opts.fit && opts.width) ? opts.width : $s.width();
+
+		$s.css(opts.cssBefore);
+
+		if (opts.pager || opts.pagerAnchorBuilder)
+			$.fn.cycle.createPagerAnchor(els.length-1, s, $(opts.pager), els, opts);
+
+		if ($.isFunction(opts.onAddSlide))
+			opts.onAddSlide($s);
+		else
+			$s.hide(); // default behavior
+	};
+}
+
+// reset internal state; we do this on every pass in order to support multiple effects
+$.fn.cycle.resetState = function(opts, fx) {
+	fx = fx || opts.fx;
+	opts.before = []; opts.after = [];
+	opts.cssBefore = $.extend({}, opts.original.cssBefore);
+	opts.cssAfter  = $.extend({}, opts.original.cssAfter);
+	opts.animIn	= $.extend({}, opts.original.animIn);
+	opts.animOut   = $.extend({}, opts.original.animOut);
+	opts.fxFn = null;
+	$.each(opts.original.before, function() { opts.before.push(this); });
+	$.each(opts.original.after,  function() { opts.after.push(this); });
+
+	// re-init
+	var init = $.fn.cycle.transitions[fx];
+	if ($.isFunction(init))
+		init(opts.$cont, $(opts.elements), opts);
+};
+
+// this is the main engine fn, it handles the timeouts, callbacks and slide index mgmt
+function go(els, opts, manual, fwd) {
+	var p = opts.$cont[0], curr = els[opts.currSlide], next = els[opts.nextSlide];
+
+	// opts.busy is true if we're in the middle of an animation
+	if (manual && opts.busy && opts.manualTrump) {
+		// let manual transitions requests trump active ones
+		debug('manualTrump in go(), stopping active transition');
+		$(els).stop(true,true);
+		opts.busy = 0;
+		clearTimeout(p.cycleTimeout);
+	}
+
+	// don't begin another timeout-based transition if there is one active
+	if (opts.busy) {
+		debug('transition active, ignoring new tx request');
+		return;
+	}
+
+
+	// stop cycling if we have an outstanding stop request
+	if (p.cycleStop != opts.stopCount || p.cycleTimeout === 0 && !manual)
+		return;
+
+	// check to see if we should stop cycling based on autostop options
+	if (!manual && !p.cyclePause && !opts.bounce &&
+		((opts.autostop && (--opts.countdown <= 0)) ||
+		(opts.nowrap && !opts.random && opts.nextSlide < opts.currSlide))) {
+		if (opts.end)
+			opts.end(opts);
+		return;
+	}
+
+	// if slideshow is paused, only transition on a manual trigger
+	var changed = false;
+	if ((manual || !p.cyclePause) && (opts.nextSlide != opts.currSlide)) {
+		changed = true;
+		var fx = opts.fx;
+		// keep trying to get the slide size if we don't have it yet
+		curr.cycleH = curr.cycleH || $(curr).height();
+		curr.cycleW = curr.cycleW || $(curr).width();
+		next.cycleH = next.cycleH || $(next).height();
+		next.cycleW = next.cycleW || $(next).width();
+
+		// support multiple transition types
+		if (opts.multiFx) {
+			if (fwd && (opts.lastFx === undefined || ++opts.lastFx >= opts.fxs.length))
+				opts.lastFx = 0;
+			else if (!fwd && (opts.lastFx === undefined || --opts.lastFx < 0))
+				opts.lastFx = opts.fxs.length - 1;
+			fx = opts.fxs[opts.lastFx];
+		}
+
+		// one-time fx overrides apply to:  $('div').cycle(3,'zoom');
+		if (opts.oneTimeFx) {
+			fx = opts.oneTimeFx;
+			opts.oneTimeFx = null;
+		}
+
+		$.fn.cycle.resetState(opts, fx);
+
+		// run the before callbacks
+		if (opts.before.length)
+			$.each(opts.before, function(i,o) {
+				if (p.cycleStop != opts.stopCount) return;
+				o.apply(next, [curr, next, opts, fwd]);
+			});
+
+		// stage the after callacks
+		var after = function() {
+			opts.busy = 0;
+			$.each(opts.after, function(i,o) {
+				if (p.cycleStop != opts.stopCount) return;
+				o.apply(next, [curr, next, opts, fwd]);
+			});
+			if (!p.cycleStop) {
+				// queue next transition
+				queueNext();
+			}
+		};
+
+		debug('tx firing('+fx+'); currSlide: ' + opts.currSlide + '; nextSlide: ' + opts.nextSlide);
+		
+		// get ready to perform the transition
+		opts.busy = 1;
+		if (opts.fxFn) // fx function provided?
+			opts.fxFn(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
+		else if ($.isFunction($.fn.cycle[opts.fx])) // fx plugin ?
+			$.fn.cycle[opts.fx](curr, next, opts, after, fwd, manual && opts.fastOnEvent);
+		else
+			$.fn.cycle.custom(curr, next, opts, after, fwd, manual && opts.fastOnEvent);
+	}
+	else {
+		queueNext();
+	}
+
+	if (changed || opts.nextSlide == opts.currSlide) {
+		// calculate the next slide
+		var roll;
+		opts.lastSlide = opts.currSlide;
+		if (opts.random) {
+			opts.currSlide = opts.nextSlide;
+			if (++opts.randomIndex == els.length) {
+				opts.randomIndex = 0;
+				opts.randomMap.sort(function(a,b) {return Math.random() - 0.5;});
+			}
+			opts.nextSlide = opts.randomMap[opts.randomIndex];
+			if (opts.nextSlide == opts.currSlide)
+				opts.nextSlide = (opts.currSlide == opts.slideCount - 1) ? 0 : opts.currSlide + 1;
+		}
+		else if (opts.backwards) {
+			roll = (opts.nextSlide - 1) < 0;
+			if (roll && opts.bounce) {
+				opts.backwards = !opts.backwards;
+				opts.nextSlide = 1;
+				opts.currSlide = 0;
+			}
+			else {
+				opts.nextSlide = roll ? (els.length-1) : opts.nextSlide-1;
+				opts.currSlide = roll ? 0 : opts.nextSlide+1;
+			}
+		}
+		else { // sequence
+			roll = (opts.nextSlide + 1) == els.length;
+			if (roll && opts.bounce) {
+				opts.backwards = !opts.backwards;
+				opts.nextSlide = els.length-2;
+				opts.currSlide = els.length-1;
+			}
+			else {
+				opts.nextSlide = roll ? 0 : opts.nextSlide+1;
+				opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;
+			}
+		}
+	}
+	if (changed && opts.pager)
+		opts.updateActivePagerLink(opts.pager, opts.currSlide, opts.activePagerClass);
+	
+	function queueNext() {
+		// stage the next transition
+		var ms = 0, timeout = opts.timeout;
+		if (opts.timeout && !opts.continuous) {
+			ms = getTimeout(els[opts.currSlide], els[opts.nextSlide], opts, fwd);
+         if (opts.fx == 'shuffle')
+            ms -= opts.speedOut;
+      }
+		else if (opts.continuous && p.cyclePause) // continuous shows work off an after callback, not this timer logic
+			ms = 10;
+		if (ms > 0)
+			p.cycleTimeout = setTimeout(function(){ go(els, opts, 0, !opts.backwards); }, ms);
+	}
+}
+
+// invoked after transition
+$.fn.cycle.updateActivePagerLink = function(pager, currSlide, clsName) {
+   $(pager).each(function() {
+       $(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
+   });
+};
+
+// calculate timeout value for current transition
+function getTimeout(curr, next, opts, fwd) {
+	if (opts.timeoutFn) {
+		// call user provided calc fn
+		var t = opts.timeoutFn.call(curr,curr,next,opts,fwd);
+		while (opts.fx != 'none' && (t - opts.speed) < 250) // sanitize timeout
+			t += opts.speed;
+		debug('calculated timeout: ' + t + '; speed: ' + opts.speed);
+		if (t !== false)
+			return t;
+	}
+	return opts.timeout;
+}
+
+// expose next/prev function, caller must pass in state
+$.fn.cycle.next = function(opts) { advance(opts,1); };
+$.fn.cycle.prev = function(opts) { advance(opts,0);};
+
+// advance slide forward or back
+function advance(opts, moveForward) {
+	var val = moveForward ? 1 : -1;
+	var els = opts.elements;
+	var p = opts.$cont[0], timeout = p.cycleTimeout;
+	if (timeout) {
+		clearTimeout(timeout);
+		p.cycleTimeout = 0;
+	}
+	if (opts.random && val < 0) {
+		// move back to the previously display slide
+		opts.randomIndex--;
+		if (--opts.randomIndex == -2)
+			opts.randomIndex = els.length-2;
+		else if (opts.randomIndex == -1)
+			opts.randomIndex = els.length-1;
+		opts.nextSlide = opts.randomMap[opts.randomIndex];
+	}
+	else if (opts.random) {
+		opts.nextSlide = opts.randomMap[opts.randomIndex];
+	}
+	else {
+		opts.nextSlide = opts.currSlide + val;
+		if (opts.nextSlide < 0) {
+			if (opts.nowrap) return false;
+			opts.nextSlide = els.length - 1;
+		}
+		else if (opts.nextSlide >= els.length) {
+			if (opts.nowrap) return false;
+			opts.nextSlide = 0;
+		}
+	}
+
+	var cb = opts.onPrevNextEvent || opts.prevNextClick; // prevNextClick is deprecated
+	if ($.isFunction(cb))
+		cb(val > 0, opts.nextSlide, els[opts.nextSlide]);
+	go(els, opts, 1, moveForward);
+	return false;
+}
+
+function buildPager(els, opts) {
+	var $p = $(opts.pager);
+	$.each(els, function(i,o) {
+		$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);
+	});
+	opts.updateActivePagerLink(opts.pager, opts.startingSlide, opts.activePagerClass);
+}
+
+$.fn.cycle.createPagerAnchor = function(i, el, $p, els, opts) {
+	var a;
+	if ($.isFunction(opts.pagerAnchorBuilder)) {
+		a = opts.pagerAnchorBuilder(i,el);
+		debug('pagerAnchorBuilder('+i+', el) returned: ' + a);
+	}
+	else
+		a = '<a href="#">'+(i+1)+'</a>';
+		
+	if (!a)
+		return;
+	var $a = $(a);
+	// don't reparent if anchor is in the dom
+	if ($a.parents('body').length === 0) {
+		var arr = [];
+		if ($p.length > 1) {
+			$p.each(function() {
+				var $clone = $a.clone(true);
+				$(this).append($clone);
+				arr.push($clone[0]);
+			});
+			$a = $(arr);
+		}
+		else {
+			$a.appendTo($p);
+		}
+	}
+
+	opts.pagerAnchors =  opts.pagerAnchors || [];
+	opts.pagerAnchors.push($a);
+	
+	var pagerFn = function(e) {
+		e.preventDefault();
+		opts.nextSlide = i;
+		var p = opts.$cont[0], timeout = p.cycleTimeout;
+		if (timeout) {
+			clearTimeout(timeout);
+			p.cycleTimeout = 0;
+		}
+		var cb = opts.onPagerEvent || opts.pagerClick; // pagerClick is deprecated
+		if ($.isFunction(cb))
+			cb(opts.nextSlide, els[opts.nextSlide]);
+		go(els,opts,1,opts.currSlide < i); // trigger the trans
+//		return false; // <== allow bubble
+	};
+	
+	if ( /mouseenter|mouseover/i.test(opts.pagerEvent) ) {
+		$a.hover(pagerFn, function(){/* no-op */} );
+	}
+	else {
+		$a.bind(opts.pagerEvent, pagerFn);
+	}
+	
+	if ( ! /^click/.test(opts.pagerEvent) && !opts.allowPagerClickBubble)
+		$a.bind('click.cycle', function(){return false;}); // suppress click
+	
+	var cont = opts.$cont[0];
+	var pauseFlag = false; // https://github.com/malsup/cycle/issues/44
+	if (opts.pauseOnPagerHover) {
+		$a.hover(
+			function() { 
+				pauseFlag = true;
+				cont.cyclePause++; 
+				triggerPause(cont,true,true);
+			}, function() { 
+				if (pauseFlag)
+					cont.cyclePause--; 
+				triggerPause(cont,true,true);
+			} 
+		);
+	}
+};
+
+// helper fn to calculate the number of slides between the current and the next
+$.fn.cycle.hopsFromLast = function(opts, fwd) {
+	var hops, l = opts.lastSlide, c = opts.currSlide;
+	if (fwd)
+		hops = c > l ? c - l : opts.slideCount - l;
+	else
+		hops = c < l ? l - c : l + opts.slideCount - c;
+	return hops;
+};
+
+// fix clearType problems in ie6 by setting an explicit bg color
+// (otherwise text slides look horrible during a fade transition)
+function clearTypeFix($slides) {
+	debug('applying clearType background-color hack');
+	function hex(s) {
+		s = parseInt(s,10).toString(16);
+		return s.length < 2 ? '0'+s : s;
+	}
+	function getBg(e) {
+		for ( ; e && e.nodeName.toLowerCase() != 'html'; e = e.parentNode) {
+			var v = $.css(e,'background-color');
+			if (v && v.indexOf('rgb') >= 0 ) {
+				var rgb = v.match(/\d+/g);
+				return '#'+ hex(rgb[0]) + hex(rgb[1]) + hex(rgb[2]);
+			}
+			if (v && v != 'transparent')
+				return v;
+		}
+		return '#ffffff';
+	}
+	$slides.each(function() { $(this).css('background-color', getBg(this)); });
+}
+
+// reset common props before the next transition
+$.fn.cycle.commonReset = function(curr,next,opts,w,h,rev) {
+	$(opts.elements).not(curr).hide();
+	if (typeof opts.cssBefore.opacity == 'undefined')
+		opts.cssBefore.opacity = 1;
+	opts.cssBefore.display = 'block';
+	if (opts.slideResize && w !== false && next.cycleW > 0)
+		opts.cssBefore.width = next.cycleW;
+	if (opts.slideResize && h !== false && next.cycleH > 0)
+		opts.cssBefore.height = next.cycleH;
+	opts.cssAfter = opts.cssAfter || {};
+	opts.cssAfter.display = 'none';
+	$(curr).css('zIndex',opts.slideCount + (rev === true ? 1 : 0));
+	$(next).css('zIndex',opts.slideCount + (rev === true ? 0 : 1));
+};
+
+// the actual fn for effecting a transition
+$.fn.cycle.custom = function(curr, next, opts, cb, fwd, speedOverride) {
+	var $l = $(curr), $n = $(next);
+	var speedIn = opts.speedIn, speedOut = opts.speedOut, easeIn = opts.easeIn, easeOut = opts.easeOut, animInDelay = opts.animInDelay, animOutDelay = opts.animOutDelay;
+	$n.css(opts.cssBefore);
+	if (speedOverride) {
+		if (typeof speedOverride == 'number')
+			speedIn = speedOut = speedOverride;
+		else
+			speedIn = speedOut = 1;
+		easeIn = easeOut = null;
+	}
+	var fn = function() {
+		$n.delay(animInDelay).animate(opts.animIn, speedIn, easeIn, function() {
+			cb();
+		});
+	};
+	$l.delay(animOutDelay).animate(opts.animOut, speedOut, easeOut, function() {
+		$l.css(opts.cssAfter);
+		if (!opts.sync) 
+			fn();
+	});
+	if (opts.sync) fn();
+};
+
+// transition definitions - only fade is defined here, transition pack defines the rest
+$.fn.cycle.transitions = {
+	fade: function($cont, $slides, opts) {
+		$slides.not(':eq('+opts.currSlide+')').css('opacity',0);
+		opts.before.push(function(curr,next,opts) {
+			$.fn.cycle.commonReset(curr,next,opts);
+			opts.cssBefore.opacity = 0;
+		});
+		opts.animIn	   = { opacity: 1 };
+		opts.animOut   = { opacity: 0 };
+		opts.cssBefore = { top: 0, left: 0 };
+	}
+};
+
+$.fn.cycle.ver = function() { return ver; };
+
+// override these globally if you like (they are all optional)
+$.fn.cycle.defaults = {
+    activePagerClass: 'activeSlide', // class name used for the active pager link
+    after:            null,     // transition callback (scope set to element that was shown):  function(currSlideElement, nextSlideElement, options, forwardFlag)
+    allowPagerClickBubble: false, // allows or prevents click event on pager anchors from bubbling
+    animIn:           null,     // properties that define how the slide animates in
+    animInDelay:      0,        // allows delay before next slide transitions in	
+    animOut:          null,     // properties that define how the slide animates out
+    animOutDelay:     0,        // allows delay before current slide transitions out
+    aspect:           false,    // preserve aspect ratio during fit resizing, cropping if necessary (must be used with fit option)
+    autostop:         0,        // true to end slideshow after X transitions (where X == slide count)
+    autostopCount:    0,        // number of transitions (optionally used with autostop to define X)
+    backwards:        false,    // true to start slideshow at last slide and move backwards through the stack
+    before:           null,     // transition callback (scope set to element to be shown):     function(currSlideElement, nextSlideElement, options, forwardFlag)
+    center:           null,     // set to true to have cycle add top/left margin to each slide (use with width and height options)
+    cleartype:        !$.support.opacity,  // true if clearType corrections should be applied (for IE)
+    cleartypeNoBg:    false,    // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
+    containerResize:  1,        // resize container to fit largest slide
+    containerResizeHeight:  0,  // resize containers height to fit the largest slide but leave the width dynamic
+    continuous:       0,        // true to start next transition immediately after current one completes
+    cssAfter:         null,     // properties that defined the state of the slide after transitioning out
+    cssBefore:        null,     // properties that define the initial state of the slide before transitioning in
+    delay:            0,        // additional delay (in ms) for first transition (hint: can be negative)
+    easeIn:           null,     // easing for "in" transition
+    easeOut:          null,     // easing for "out" transition
+    easing:           null,     // easing method for both in and out transitions
+    end:              null,     // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
+    fastOnEvent:      0,        // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
+    fit:              0,        // force slides to fit container
+    fx:               'fade',   // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
+    fxFn:             null,     // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
+    height:           'auto',   // container height (if the 'fit' option is true, the slides will be set to this height as well)
+    manualTrump:      true,     // causes manual transition to stop an active transition instead of being ignored
+    metaAttr:         'cycle',  // data- attribute that holds the option data for the slideshow
+    next:             null,     // element, jQuery object, or jQuery selector string for the element to use as event trigger for next slide
+    nowrap:           0,        // true to prevent slideshow from wrapping
+    onPagerEvent:     null,     // callback fn for pager events: function(zeroBasedSlideIndex, slideElement)
+    onPrevNextEvent:  null,     // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement)
+    pager:            null,     // element, jQuery object, or jQuery selector string for the element to use as pager container
+    pagerAnchorBuilder: null,   // callback fn for building anchor links:  function(index, DOMelement)
+    pagerEvent:       'click.cycle', // name of event which drives the pager navigation
+    pause:            0,        // true to enable "pause on hover"
+    pauseOnPagerHover: 0,       // true to pause when hovering over pager link
+    prev:             null,     // element, jQuery object, or jQuery selector string for the element to use as event trigger for previous slide
+    prevNextEvent:    'click.cycle',// event which drives the manual transition to the previous or next slide
+    random:           0,        // true for random, false for sequence (not applicable to shuffle fx)
+    randomizeEffects: 1,        // valid when multiple effects are used; true to make the effect sequence random
+    requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded
+    requeueTimeout:   250,      // ms delay for requeue
+    rev:              0,        // causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle)
+    shuffle:          null,     // coords for shuffle animation, ex: { top:15, left: 200 }
+    skipInitializationCallbacks: false, // set to true to disable the first before/after callback that occurs prior to any transition
+    slideExpr:        null,     // expression for selecting slides (if something other than all children is required)
+    slideResize:      1,        // force slide width/height to fixed size before every transition
+    speed:            1000,     // speed of the transition (any valid fx speed value)
+    speedIn:          null,     // speed of the 'in' transition
+    speedOut:         null,     // speed of the 'out' transition
+    startingSlide:    undefined,// zero-based index of the first slide to be displayed
+    sync:             1,        // true if in/out transitions should occur simultaneously
+    timeout:          4000,     // milliseconds between slide transitions (0 to disable auto advance)
+    timeoutFn:        null,     // callback for determining per-slide timeout value:  function(currSlideElement, nextSlideElement, options, forwardFlag)
+    updateActivePagerLink: null,// callback fn invoked to update the active pager link (adds/removes activePagerClass style)
+    width:            null      // container width (if the 'fit' option is true, the slides will be set to this width as well)
+};
+
+})(jQuery);
+
+
+/*!
+ * jQuery Cycle Plugin Transition Definitions
+ * This script is a plugin for the jQuery Cycle Plugin
+ * Examples and documentation at: http://malsup.com/jquery/cycle/
+ * Copyright (c) 2007-2010 M. Alsup
+ * Version:	 2.73
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ */
+(function($) {
+"use strict";
+
+//
+// These functions define slide initialization and properties for the named
+// transitions. To save file size feel free to remove any of these that you
+// don't need.
+//
+$.fn.cycle.transitions.none = function($cont, $slides, opts) {
+	opts.fxFn = function(curr,next,opts,after){
+		$(next).show();
+		$(curr).hide();
+		after();
+	};
+};
+
+// not a cross-fade, fadeout only fades out the top slide
+$.fn.cycle.transitions.fadeout = function($cont, $slides, opts) {
+	$slides.not(':eq('+opts.currSlide+')').css({ display: 'block', 'opacity': 1 });
+	opts.before.push(function(curr,next,opts,w,h,rev) {
+		$(curr).css('zIndex',opts.slideCount + (rev !== true ? 1 : 0));
+		$(next).css('zIndex',opts.slideCount + (rev !== true ? 0 : 1));
+	});
+	opts.animIn.opacity = 1;
+	opts.animOut.opacity = 0;
+	opts.cssBefore.opacity = 1;
+	opts.cssBefore.display = 'block';
+	opts.cssAfter.zIndex = 0;
+};
+
+// scrollUp/Down/Left/Right
+$.fn.cycle.transitions.scrollUp = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden');
+	opts.before.push($.fn.cycle.commonReset);
+	var h = $cont.height();
+	opts.cssBefore.top = h;
+	opts.cssBefore.left = 0;
+	opts.cssFirst.top = 0;
+	opts.animIn.top = 0;
+	opts.animOut.top = -h;
+};
+$.fn.cycle.transitions.scrollDown = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden');
+	opts.before.push($.fn.cycle.commonReset);
+	var h = $cont.height();
+	opts.cssFirst.top = 0;
+	opts.cssBefore.top = -h;
+	opts.cssBefore.left = 0;
+	opts.animIn.top = 0;
+	opts.animOut.top = h;
+};
+$.fn.cycle.transitions.scrollLeft = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden');
+	opts.before.push($.fn.cycle.commonReset);
+	var w = $cont.width();
+	opts.cssFirst.left = 0;
+	opts.cssBefore.left = w;
+	opts.cssBefore.top = 0;
+	opts.animIn.left = 0;
+	opts.animOut.left = 0-w;
+};
+$.fn.cycle.transitions.scrollRight = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden');
+	opts.before.push($.fn.cycle.commonReset);
+	var w = $cont.width();
+	opts.cssFirst.left = 0;
+	opts.cssBefore.left = -w;
+	opts.cssBefore.top = 0;
+	opts.animIn.left = 0;
+	opts.animOut.left = w;
+};
+$.fn.cycle.transitions.scrollHorz = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden').width();
+	opts.before.push(function(curr, next, opts, fwd) {
+		if (opts.rev)
+			fwd = !fwd;
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.cssBefore.left = fwd ? (next.cycleW-1) : (1-next.cycleW);
+		opts.animOut.left = fwd ? -curr.cycleW : curr.cycleW;
+	});
+	opts.cssFirst.left = 0;
+	opts.cssBefore.top = 0;
+	opts.animIn.left = 0;
+	opts.animOut.top = 0;
+};
+$.fn.cycle.transitions.scrollVert = function($cont, $slides, opts) {
+	$cont.css('overflow','hidden');
+	opts.before.push(function(curr, next, opts, fwd) {
+		if (opts.rev)
+			fwd = !fwd;
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.cssBefore.top = fwd ? (1-next.cycleH) : (next.cycleH-1);
+		opts.animOut.top = fwd ? curr.cycleH : -curr.cycleH;
+	});
+	opts.cssFirst.top = 0;
+	opts.cssBefore.left = 0;
+	opts.animIn.top = 0;
+	opts.animOut.left = 0;
+};
+
+// slideX/slideY
+$.fn.cycle.transitions.slideX = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$(opts.elements).not(curr).hide();
+		$.fn.cycle.commonReset(curr,next,opts,false,true);
+		opts.animIn.width = next.cycleW;
+	});
+	opts.cssBefore.left = 0;
+	opts.cssBefore.top = 0;
+	opts.cssBefore.width = 0;
+	opts.animIn.width = 'show';
+	opts.animOut.width = 0;
+};
+$.fn.cycle.transitions.slideY = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$(opts.elements).not(curr).hide();
+		$.fn.cycle.commonReset(curr,next,opts,true,false);
+		opts.animIn.height = next.cycleH;
+	});
+	opts.cssBefore.left = 0;
+	opts.cssBefore.top = 0;
+	opts.cssBefore.height = 0;
+	opts.animIn.height = 'show';
+	opts.animOut.height = 0;
+};
+
+// shuffle
+$.fn.cycle.transitions.shuffle = function($cont, $slides, opts) {
+	var i, w = $cont.css('overflow', 'visible').width();
+	$slides.css({left: 0, top: 0});
+	opts.before.push(function(curr,next,opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
+	});
+	// only adjust speed once!
+	if (!opts.speedAdjusted) {
+		opts.speed = opts.speed / 2; // shuffle has 2 transitions
+		opts.speedAdjusted = true;
+	}
+	opts.random = 0;
+	opts.shuffle = opts.shuffle || {left:-w, top:15};
+	opts.els = [];
+	for (i=0; i < $slides.length; i++)
+		opts.els.push($slides[i]);
+
+	for (i=0; i < opts.currSlide; i++)
+		opts.els.push(opts.els.shift());
+
+	// custom transition fn (hat tip to Benjamin Sterling for this bit of sweetness!)
+	opts.fxFn = function(curr, next, opts, cb, fwd) {
+		if (opts.rev)
+			fwd = !fwd;
+		var $el = fwd ? $(curr) : $(next);
+		$(next).css(opts.cssBefore);
+		var count = opts.slideCount;
+		$el.animate(opts.shuffle, opts.speedIn, opts.easeIn, function() {
+			var hops = $.fn.cycle.hopsFromLast(opts, fwd);
+			for (var k=0; k < hops; k++) {
+				if (fwd)
+					opts.els.push(opts.els.shift());
+				else
+					opts.els.unshift(opts.els.pop());
+			}
+			if (fwd) {
+				for (var i=0, len=opts.els.length; i < len; i++)
+					$(opts.els[i]).css('z-index', len-i+count);
+			}
+			else {
+				var z = $(curr).css('z-index');
+				$el.css('z-index', parseInt(z,10)+1+count);
+			}
+			$el.animate({left:0, top:0}, opts.speedOut, opts.easeOut, function() {
+				$(fwd ? this : curr).hide();
+				if (cb) cb();
+			});
+		});
+	};
+	$.extend(opts.cssBefore, { display: 'block', opacity: 1, top: 0, left: 0 });
+};
+
+// turnUp/Down/Left/Right
+$.fn.cycle.transitions.turnUp = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,false);
+		opts.cssBefore.top = next.cycleH;
+		opts.animIn.height = next.cycleH;
+		opts.animOut.width = next.cycleW;
+	});
+	opts.cssFirst.top = 0;
+	opts.cssBefore.left = 0;
+	opts.cssBefore.height = 0;
+	opts.animIn.top = 0;
+	opts.animOut.height = 0;
+};
+$.fn.cycle.transitions.turnDown = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,false);
+		opts.animIn.height = next.cycleH;
+		opts.animOut.top   = curr.cycleH;
+	});
+	opts.cssFirst.top = 0;
+	opts.cssBefore.left = 0;
+	opts.cssBefore.top = 0;
+	opts.cssBefore.height = 0;
+	opts.animOut.height = 0;
+};
+$.fn.cycle.transitions.turnLeft = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,true);
+		opts.cssBefore.left = next.cycleW;
+		opts.animIn.width = next.cycleW;
+	});
+	opts.cssBefore.top = 0;
+	opts.cssBefore.width = 0;
+	opts.animIn.left = 0;
+	opts.animOut.width = 0;
+};
+$.fn.cycle.transitions.turnRight = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,true);
+		opts.animIn.width = next.cycleW;
+		opts.animOut.left = curr.cycleW;
+	});
+	$.extend(opts.cssBefore, { top: 0, left: 0, width: 0 });
+	opts.animIn.left = 0;
+	opts.animOut.width = 0;
+};
+
+// zoom
+$.fn.cycle.transitions.zoom = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,false,true);
+		opts.cssBefore.top = next.cycleH/2;
+		opts.cssBefore.left = next.cycleW/2;
+		$.extend(opts.animIn, { top: 0, left: 0, width: next.cycleW, height: next.cycleH });
+		$.extend(opts.animOut, { width: 0, height: 0, top: curr.cycleH/2, left: curr.cycleW/2 });
+	});
+	opts.cssFirst.top = 0;
+	opts.cssFirst.left = 0;
+	opts.cssBefore.width = 0;
+	opts.cssBefore.height = 0;
+};
+
+// fadeZoom
+$.fn.cycle.transitions.fadeZoom = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,false);
+		opts.cssBefore.left = next.cycleW/2;
+		opts.cssBefore.top = next.cycleH/2;
+		$.extend(opts.animIn, { top: 0, left: 0, width: next.cycleW, height: next.cycleH });
+	});
+	opts.cssBefore.width = 0;
+	opts.cssBefore.height = 0;
+	opts.animOut.opacity = 0;
+};
+
+// blindX
+$.fn.cycle.transitions.blindX = function($cont, $slides, opts) {
+	var w = $cont.css('overflow','hidden').width();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.animIn.width = next.cycleW;
+		opts.animOut.left   = curr.cycleW;
+	});
+	opts.cssBefore.left = w;
+	opts.cssBefore.top = 0;
+	opts.animIn.left = 0;
+	opts.animOut.left = w;
+};
+// blindY
+$.fn.cycle.transitions.blindY = function($cont, $slides, opts) {
+	var h = $cont.css('overflow','hidden').height();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.animIn.height = next.cycleH;
+		opts.animOut.top   = curr.cycleH;
+	});
+	opts.cssBefore.top = h;
+	opts.cssBefore.left = 0;
+	opts.animIn.top = 0;
+	opts.animOut.top = h;
+};
+// blindZ
+$.fn.cycle.transitions.blindZ = function($cont, $slides, opts) {
+	var h = $cont.css('overflow','hidden').height();
+	var w = $cont.width();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.animIn.height = next.cycleH;
+		opts.animOut.top   = curr.cycleH;
+	});
+	opts.cssBefore.top = h;
+	opts.cssBefore.left = w;
+	opts.animIn.top = 0;
+	opts.animIn.left = 0;
+	opts.animOut.top = h;
+	opts.animOut.left = w;
+};
+
+// growX - grow horizontally from centered 0 width
+$.fn.cycle.transitions.growX = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,true);
+		opts.cssBefore.left = this.cycleW/2;
+		opts.animIn.left = 0;
+		opts.animIn.width = this.cycleW;
+		opts.animOut.left = 0;
+	});
+	opts.cssBefore.top = 0;
+	opts.cssBefore.width = 0;
+};
+// growY - grow vertically from centered 0 height
+$.fn.cycle.transitions.growY = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,false);
+		opts.cssBefore.top = this.cycleH/2;
+		opts.animIn.top = 0;
+		opts.animIn.height = this.cycleH;
+		opts.animOut.top = 0;
+	});
+	opts.cssBefore.height = 0;
+	opts.cssBefore.left = 0;
+};
+
+// curtainX - squeeze in both edges horizontally
+$.fn.cycle.transitions.curtainX = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,false,true,true);
+		opts.cssBefore.left = next.cycleW/2;
+		opts.animIn.left = 0;
+		opts.animIn.width = this.cycleW;
+		opts.animOut.left = curr.cycleW/2;
+		opts.animOut.width = 0;
+	});
+	opts.cssBefore.top = 0;
+	opts.cssBefore.width = 0;
+};
+// curtainY - squeeze in both edges vertically
+$.fn.cycle.transitions.curtainY = function($cont, $slides, opts) {
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,false,true);
+		opts.cssBefore.top = next.cycleH/2;
+		opts.animIn.top = 0;
+		opts.animIn.height = next.cycleH;
+		opts.animOut.top = curr.cycleH/2;
+		opts.animOut.height = 0;
+	});
+	opts.cssBefore.height = 0;
+	opts.cssBefore.left = 0;
+};
+
+// cover - curr slide covered by next slide
+$.fn.cycle.transitions.cover = function($cont, $slides, opts) {
+	var d = opts.direction || 'left';
+	var w = $cont.css('overflow','hidden').width();
+	var h = $cont.height();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts);
+		opts.cssAfter.display = '';
+		if (d == 'right')
+			opts.cssBefore.left = -w;
+		else if (d == 'up')
+			opts.cssBefore.top = h;
+		else if (d == 'down')
+			opts.cssBefore.top = -h;
+		else
+			opts.cssBefore.left = w;
+	});
+	opts.animIn.left = 0;
+	opts.animIn.top = 0;
+	opts.cssBefore.top = 0;
+	opts.cssBefore.left = 0;
+};
+
+// uncover - curr slide moves off next slide
+$.fn.cycle.transitions.uncover = function($cont, $slides, opts) {
+	var d = opts.direction || 'left';
+	var w = $cont.css('overflow','hidden').width();
+	var h = $cont.height();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
+		if (d == 'right')
+			opts.animOut.left = w;
+		else if (d == 'up')
+			opts.animOut.top = -h;
+		else if (d == 'down')
+			opts.animOut.top = h;
+		else
+			opts.animOut.left = -w;
+	});
+	opts.animIn.left = 0;
+	opts.animIn.top = 0;
+	opts.cssBefore.top = 0;
+	opts.cssBefore.left = 0;
+};
+
+// toss - move top slide and fade away
+$.fn.cycle.transitions.toss = function($cont, $slides, opts) {
+	var w = $cont.css('overflow','visible').width();
+	var h = $cont.height();
+	opts.before.push(function(curr, next, opts) {
+		$.fn.cycle.commonReset(curr,next,opts,true,true,true);
+		// provide default toss settings if animOut not provided
+		if (!opts.animOut.left && !opts.animOut.top)
+			$.extend(opts.animOut, { left: w*2, top: -h/2, opacity: 0 });
+		else
+			opts.animOut.opacity = 0;
+	});
+	opts.cssBefore.left = 0;
+	opts.cssBefore.top = 0;
+	opts.animIn.left = 0;
+};
+
+// wipe - clip animation
+$.fn.cycle.transitions.wipe = function($cont, $slides, opts) {
+	var w = $cont.css('overflow','hidden').width();
+	var h = $cont.height();
+	opts.cssBefore = opts.cssBefore || {};
+	var clip;
+	if (opts.clip) {
+		if (/l2r/.test(opts.clip))
+			clip = 'rect(0px 0px '+h+'px 0px)';
+		else if (/r2l/.test(opts.clip))
+			clip = 'rect(0px '+w+'px '+h+'px '+w+'px)';
+		else if (/t2b/.test(opts.clip))
+			clip = 'rect(0px '+w+'px 0px 0px)';
+		else if (/b2t/.test(opts.clip))
+			clip = 'rect('+h+'px '+w+'px '+h+'px 0px)';
+		else if (/zoom/.test(opts.clip)) {
+			var top = parseInt(h/2,10);
+			var left = parseInt(w/2,10);
+			clip = 'rect('+top+'px '+left+'px '+top+'px '+left+'px)';
+		}
+	}
+
+	opts.cssBefore.clip = opts.cssBefore.clip || clip || 'rect(0px 0px 0px 0px)';
+
+	var d = opts.cssBefore.clip.match(/(\d+)/g);
+	var t = parseInt(d[0],10), r = parseInt(d[1],10), b = parseInt(d[2],10), l = parseInt(d[3],10);
+
+	opts.before.push(function(curr, next, opts) {
+		if (curr == next) return;
+		var $curr = $(curr), $next = $(next);
+		$.fn.cycle.commonReset(curr,next,opts,true,true,false);
+		opts.cssAfter.display = 'block';
+
+		var step = 1, count = parseInt((opts.speedIn / 13),10) - 1;
+		(function f() {
+			var tt = t ? t - parseInt(step * (t/count),10) : 0;
+			var ll = l ? l - parseInt(step * (l/count),10) : 0;
+			var bb = b < h ? b + parseInt(step * ((h-b)/count || 1),10) : h;
+			var rr = r < w ? r + parseInt(step * ((w-r)/count || 1),10) : w;
+			$next.css({ clip: 'rect('+tt+'px '+rr+'px '+bb+'px '+ll+'px)' });
+			(step++ <= count) ? setTimeout(f, 13) : $curr.css('display', 'none');
+		})();
+	});
+	$.extend(opts.cssBefore, { display: 'block', opacity: 1, top: 0, left: 0 });
+	opts.animIn	   = { left: 0 };
+	opts.animOut   = { left: 0 };
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/libraries/jquery.cycle/jquery.cycle.lite.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,235 @@
+/*!
+ * jQuery Cycle Lite Plugin
+ * http://malsup.com/jquery/cycle/lite/
+ * Copyright (c) 2008-2012 M. Alsup
+ * Version: 1.7 (20-FEB-2013)
+ * Dual licensed under the MIT and GPL licenses:
+ * http://www.opensource.org/licenses/mit-license.php
+ * http://www.gnu.org/licenses/gpl.html
+ * Requires: jQuery v1.3.2 or later
+ */
+;(function($) {
+"use strict";
+
+var ver = 'Lite-1.7';
+var msie = /MSIE/.test(navigator.userAgent);
+
+$.fn.cycle = function(options) {
+    return this.each(function() {
+        options = options || {};
+        
+        if (this.cycleTimeout) 
+            clearTimeout(this.cycleTimeout);
+
+        this.cycleTimeout = 0;
+        this.cyclePause = 0;
+        
+        var $cont = $(this);
+        var $slides = options.slideExpr ? $(options.slideExpr, this) : $cont.children();
+        var els = $slides.get();
+        if (els.length < 2) {
+            if (window.console)
+                console.log('terminating; too few slides: ' + els.length);
+            return; // don't bother
+        }
+
+        // support metadata plugin (v1.0 and v2.0)
+        var opts = $.extend({}, $.fn.cycle.defaults, options || {}, $.metadata ? $cont.metadata() : $.meta ? $cont.data() : {});
+        var meta = $.isFunction($cont.data) ? $cont.data(opts.metaAttr) : null;
+        if (meta)
+            opts = $.extend(opts, meta);
+            
+        opts.before = opts.before ? [opts.before] : [];
+        opts.after = opts.after ? [opts.after] : [];
+        opts.after.unshift(function(){ opts.busy=0; });
+            
+        // allow shorthand overrides of width, height and timeout
+        var cls = this.className;
+        opts.width = parseInt((cls.match(/w:(\d+)/)||[])[1], 10) || opts.width;
+        opts.height = parseInt((cls.match(/h:(\d+)/)||[])[1], 10) || opts.height;
+        opts.timeout = parseInt((cls.match(/t:(\d+)/)||[])[1], 10) || opts.timeout;
+
+        if ($cont.css('position') == 'static') 
+            $cont.css('position', 'relative');
+        if (opts.width) 
+            $cont.width(opts.width);
+        if (opts.height && opts.height != 'auto') 
+            $cont.height(opts.height);
+
+        var first = 0;
+        $slides.css({position: 'absolute', top:0}).each(function(i) {
+            $(this).css('z-index', els.length-i);
+        });
+        
+        $(els[first]).css('opacity',1).show(); // opacity bit needed to handle reinit case
+        if (msie) 
+            els[first].style.removeAttribute('filter');
+
+        if (opts.fit && opts.width) 
+            $slides.width(opts.width);
+        if (opts.fit && opts.height && opts.height != 'auto') 
+            $slides.height(opts.height);
+        if (opts.pause) 
+            $cont.hover(function(){this.cyclePause=1;}, function(){this.cyclePause=0;});
+
+        var txFn = $.fn.cycle.transitions[opts.fx];
+        if (txFn)
+            txFn($cont, $slides, opts);
+        
+        $slides.each(function() {
+            var $el = $(this);
+            this.cycleH = (opts.fit && opts.height) ? opts.height : $el.height();
+            this.cycleW = (opts.fit && opts.width) ? opts.width : $el.width();
+        });
+
+        if (opts.cssFirst)
+            $($slides[first]).css(opts.cssFirst);
+
+        if (opts.timeout) {
+            // ensure that timeout and speed settings are sane
+            if (opts.speed.constructor == String)
+                opts.speed = {slow: 600, fast: 200}[opts.speed] || 400;
+            if (!opts.sync)
+                opts.speed = opts.speed / 2;
+            while((opts.timeout - opts.speed) < 250)
+                opts.timeout += opts.speed;
+        }
+        opts.speedIn = opts.speed;
+        opts.speedOut = opts.speed;
+
+        opts.slideCount = els.length;
+        opts.currSlide = first;
+        opts.nextSlide = 1;
+
+        // fire artificial events
+        var e0 = $slides[first];
+        if (opts.before.length)
+            opts.before[0].apply(e0, [e0, e0, opts, true]);
+        if (opts.after.length > 1)
+            opts.after[1].apply(e0, [e0, e0, opts, true]);
+        
+        if (opts.click && !opts.next)
+            opts.next = opts.click;
+        if (opts.next)
+            $(opts.next).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?-1:1);});
+        if (opts.prev)
+            $(opts.prev).unbind('click.cycle').bind('click.cycle', function(){return advance(els,opts,opts.rev?1:-1);});
+
+        if (opts.timeout)
+            this.cycleTimeout = setTimeout(function() {
+                go(els,opts,0,!opts.rev);
+            }, opts.timeout + (opts.delay||0));
+    });
+};
+
+function go(els, opts, manual, fwd) {
+    if (opts.busy) 
+        return;
+    var p = els[0].parentNode, curr = els[opts.currSlide], next = els[opts.nextSlide];
+    if (p.cycleTimeout === 0 && !manual) 
+        return;
+
+    if (manual || !p.cyclePause) {
+        if (opts.before.length)
+            $.each(opts.before, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });
+        var after = function() {
+            if (msie)
+                this.style.removeAttribute('filter');
+            $.each(opts.after, function(i,o) { o.apply(next, [curr, next, opts, fwd]); });
+            queueNext(opts);
+        };
+
+        if (opts.nextSlide != opts.currSlide) {
+            opts.busy = 1;
+            $.fn.cycle.custom(curr, next, opts, after);
+        }
+        var roll = (opts.nextSlide + 1) == els.length;
+        opts.nextSlide = roll ? 0 : opts.nextSlide+1;
+        opts.currSlide = roll ? els.length-1 : opts.nextSlide-1;
+    } else {
+      queueNext(opts);
+    }
+
+    function queueNext(opts) {
+        if (opts.timeout)
+            p.cycleTimeout = setTimeout(function() { go(els,opts,0,!opts.rev); }, opts.timeout);
+    }
+}
+
+// advance slide forward or back
+function advance(els, opts, val) {
+    var p = els[0].parentNode, timeout = p.cycleTimeout;
+    if (timeout) {
+        clearTimeout(timeout);
+        p.cycleTimeout = 0;
+    }
+    opts.nextSlide = opts.currSlide + val;
+    if (opts.nextSlide < 0) {
+        opts.nextSlide = els.length - 1;
+    }
+    else if (opts.nextSlide >= els.length) {
+        opts.nextSlide = 0;
+    }
+    go(els, opts, 1, val>=0);
+    return false;
+}
+
+$.fn.cycle.custom = function(curr, next, opts, cb) {
+    var $l = $(curr), $n = $(next);
+    $n.css(opts.cssBefore);
+    var fn = function() {$n.animate(opts.animIn, opts.speedIn, opts.easeIn, cb);};
+    $l.animate(opts.animOut, opts.speedOut, opts.easeOut, function() {
+        $l.css(opts.cssAfter);
+        if (!opts.sync)
+            fn();
+    });
+    if (opts.sync)
+        fn();
+};
+
+$.fn.cycle.transitions = {
+    fade: function($cont, $slides, opts) {
+        $slides.not(':eq(0)').hide();
+        opts.cssBefore = { opacity: 0, display: 'block' };
+        opts.cssAfter  = { display: 'none' };
+        opts.animOut = { opacity: 0 };
+        opts.animIn = { opacity: 1 };
+    },
+    fadeout: function($cont, $slides, opts) {
+        opts.before.push(function(curr,next,opts,fwd) {
+            $(curr).css('zIndex',opts.slideCount + (fwd === true ? 1 : 0));
+            $(next).css('zIndex',opts.slideCount + (fwd === true ? 0 : 1));
+        });
+        $slides.not(':eq(0)').hide();
+        opts.cssBefore = { opacity: 1, display: 'block', zIndex: 1 };
+        opts.cssAfter  = { display: 'none', zIndex: 0 };
+        opts.animOut = { opacity: 0 };
+        opts.animIn = { opacity: 1 };
+    }
+};
+
+$.fn.cycle.ver = function() { return ver; };
+
+// @see: http://malsup.com/jquery/cycle/lite/
+$.fn.cycle.defaults = {
+    animIn:        {},
+    animOut:       {},
+    fx:           'fade',
+    after:         null,
+    before:        null,
+    cssBefore:     {},
+    cssAfter:      {},
+    delay:         0,
+    fit:           0,
+    height:       'auto',
+    metaAttr:     'cycle',
+    next:          null,
+    pause:         false,
+    prev:          null,
+    speed:         1000,
+    slideExpr:     null,
+    sync:          true,
+    timeout:       4000
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/CHANGELOG.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,61 @@
+
+Better Exposed Filters change log
+---------------------------------
+
+Better Exposed Filters 7.x-x.x  xxxx-xx-xx
+------------------------------------------
+Issue #1784424 by mikeker: Refactored getting existing and default values.
+Issue #1666896 by Staratel: Fixed Filter captions on BEF settings form are empty if filter labels are empty.
+Issue #1798350 by mikeker: Fixed: secondary options were using the filter label instead of ID.
+
+Better Exposed Filters 7.x-3.0-beta2  2012-09-13
+------------------------------------------------
+Issue #975376 by mikeker, gordon: Inital port.  Note: only supports Views 3.x as there is no 2.x release planned for D7.
+Issue #1109950 by mikeker, Francois LR: Fixes errors in taxonomy tree
+Issue #1099528 by mikeker: Radio button labels not displayed
+Issue #1128688 by sreynen: Select All/None not working on nested checkboxes
+Issue #1111712 by mikeker: Adds Links as an option for filters
+mikeker: Fixed attributes, select all/none issues
+Issue #1120244 by mikeker: Fixed collapsible filter options
+Issue #1132818 by mikeker: Allows more specific targeting of BEF options based on filter options
+Issue #1162488 by klickreflex: Fixes incorrect HTML in nested displays
+By mikeker: Added datepicker option
+Issue #1194102 by dj1999: Adds BEF options to 'is all of' filters
+Issue #1149254 by aaronbauman: Hides Apply button when exposed filters are set to hidden
+Issue #1227168 by gionnibgud: Adds IDs to select_as_links filter options
+Issue #1260194 by zhuber: Adds toggle functionality to filter links (added --author attribution in a later commit)
+Issue #1099528 by Murz: Fixes incorrect depth of '- Any -' option
+Issue #1241960 by mikeker: Fixes E_STRICT warning
+Issue #1217204 by mikeker: Fixes Undefined index errors when BEF settings page is raised as a standalong page
+Issue #1281348 by mikeker: form.js and collapse.js not being aggregated properly
+Issue #1272694 by samhassell and mikeker: correctly sets form-item classes for wrapper divs
+Issue #1290630 by d.clarke: Removes duplicated IDs from radio buttons
+Issue #1289370 by mikeker: Gets Datepicker working again. Note: needs to be added to behaviors.
+By mikeker: Added/Cleaned up highlight JS, moved datepicker JS to Drupal.behaviors
+Issue #1289370 by ducktape: Adds support for Drupal's default date field and corrects missing JS file
+Issue #1297418 by mikeker: Puts exposed operators inside fieldset
+Issue #1283998 by mikeker: Added token support in description fields
+Issue #1212744 by mikeker: Collapsible option for sort
+Issue #1398048 by mikeker: Rewritable combined sort options
+Issue #1439216 by KeyboardCowboy: Remove duplicate name attributes on checkboxes (W3C validation)
+Issue #1548292 by richard.thomas: Use drupal_add_library() for datepicker option
+Issue #1171952 by mikeker: Added single on/off checkbox support
+Issue #1286378 by m4olivei: Fixes link filter state being list when non-link filter is used
+Issue #1362344 by mikeker, arkz: Adds option to put exposed form elements in a secondary options fieldset.
+
+Better Exposed Filters 6.x-x.x  xxxx-xx-xx
+------------------------------------------
+#864614 by OxideInteractive: Fixes extra space in class attributes
+#874978 by vosechu: select_as_checkboxes now respects #default_value
+#812778 by mikeker: Fixes problem with "Show hierarchy in dropdown enabled"
+#811954 by pivica: Fixes duplicate Select All/None links with multiple Behavior executions
+#657148 by mikeker: Adds support for exposed sort manipulation
+#965388 by mikeker: Adds support for collapsible fieldsets
+#965388 by mikeker: Adds support for collapsible fieldsets
+mikeker: Adds nested list display for hierarchical taxonomy filters
+#894312 by kenorb, mikeker: Adds links as a BEF option
+#1006716 by attiks: Corrects <label>/<input> tag order
+
+Better Exposed Filters 6.x-1.0  2010-05-25
+------------------------------------------
+Initial release.  Supports Views 2.x and 3.x.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,137 @@
+$Id
+
+-- SUMMARY --
+
+The Better Exposed Filters module replaces the Views' default single- 
+or multi-select boxes with radio buttons or checkboxes, respectively.
+
+Views Filters are a powerful tool to limit the results of a given view.
+When you expose a filter, you allow the user to interact with the view
+making it easy to build a customized advanced search.  For example, 
+exposing a taxonomy filter lets your site visitor search for articles
+with specific tags.  Better Exposed Filters gives you greater control
+over the rendering of exposed filters. 
+
+For a full description of the module, visit the project page:
+  http://drupal.org/project/bef
+  
+A handbook page has been started to document some use cases, provide
+additional documentation and tips:
+  http://drupal.org/node/766974 
+
+To submit bug reports and feature suggestions, or to track changes:
+  http://drupal.org/project/issues/bef
+  
+For more information on Views filters, see the Advanced Help documentation
+that comes with Views or visit the online version:
+  http://views-help.doc.logrus.com/help/views/filter 
+
+
+-- REQUIREMENTS --
+
+This module requires the Views module:
+  http://drupal.org/project/views 
+
+
+-- INSTALLATION --
+
+Install as usual, see http://drupal.org/node/70151 for further instructions.
+
+
+-- CONFIGURATION --
+
+When adding a filter to a view, you are given several options in the 
+"Configure filter" screen.  At the top of this screen is the option
+to expose the filter (button in the upper-right).  Clicking this button
+adds more customization options to the screen.
+
+Better Exposed Filters adds the option to render the filter using the 
+default Views display or as radio buttons/checkboxes.  If "Force single"
+is selected radio buttons will be used, otherwise checkboxes are displayed.
+
+When adding a CCK-field based filter, be sure to use the "Allowed values"
+option, otherwise the filter is rendered as an auto-complete textbox.
+
+In Views 3.x, the BEF configuration options have been moved to the Exposed
+Form dialog.  Set the "Exposed form style" to "Better Exposed Filters" and
+make your configuration changes in the resulting dialog.  Each filter is 
+listed based on the label given in the exposed filter dialog.
+
+Views 3.x also introduces the idea of the exposed form allowing site builders
+to expose other options such as sort and pager.  BEF allows you to customize
+those settings as well.
+
+
+-- CUSTOMIZATION --
+
+Themers can override the theme_select_as_checkboxes() routine to allow for 
+addition markup in the exposed filter.  However, this routine is updated 
+often with bug fixes and enhancements.  If you have suggestions on how to
+improve Better Exposed Filters, please add them to the issue queue:
+  http://drupal.org/project/issues/bef
+  
+  
+-- TROUBLESHOOTING --
+
+* I don't see the "Display exposed filter as" option when I click the Expose button.
+
+  - Make sure this filter isn't already displayed as a checkbox/radio button
+
+  - If this is a CCK-based field (field title starts with "Content:") make sure
+    you're filtering on the "Allowed values" option.
+    
+  - You're using Views 3.x.  The BEF settings have been moved to the Exposed Form
+    dialog.
+
+* Wow, a really long URL is generated when using exposed filters!  How can I make it 
+  a more reasonable length?
+  
+  - Exposed Views filters (with or without BEF enabled) store their current selection
+    in the URL query string.  This allows for easy bookmarking of search results as well
+    as "return to search results" links.  However, it can make for long URLs when using
+    Views' default settings, especially with CCK-based fields.  To shorten the key used
+    for a given filter, configure the filter and change the value in the "Filter indentifier"
+    textbox.  Make sure that your indentifiers are unique within your view!  
+
+-- FAQ --
+
+Q: What was the motivation to build this module?
+
+A: I find multi-select boxes to be a horrible user experience.  Imagine telling a
+   a client that they should click on an option, then scroll to the next option and
+   ctrl+click on it.  Make sure not to just click as you'll lose your first selection
+   and ctrl+click again to unselect an option...  Yeah, not user friendly.
+   
+Q: Can't you just use hook_form_alter() to flip the exposed filter type from 
+   'select' to 'checkboxes'?
+   
+A: Yes, that will get you checkboxes displayed but they won't act as you would expect.
+   For example, leaving all checkboxes unchecked (often the default state) returns
+   zero results.
+   
+Q: So, how does Better Exposed Filters work?
+
+A: BEF changes the display of an exposed filter at the theme level.  This also
+   allows a designer to customize the display by overriding BEF's 
+   theme_select_as_checkboxes().
+   
+Q: What is the "Hidden" option used for?
+
+A: You can use the "Hidden" option to build multi-page search.  For example, on the first 
+   page the user selects a country, on the next page they select a region, etc.  To build
+   this using BEF create a view with only the country field as an exposed filter.  On the
+   second page, expose filters for both the region and country fields but set the display
+   of the country filter to "Hidden".  More details can be found here: 
+   http://drupal.org/node/645348#comment-2336516  
+
+
+-- CONTACT --
+
+The maintainer for this project is Mike Keran (mikeker - http://drupal.org/user/192273)
+He can be contacted through his personal web site (http://MikeKeran.com) for work on this 
+module or other custom projects.
+
+
+-- CREDIT --
+
+Thanks to Ben Buckman (http://echodittolabs.org/) for the original concept.
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,15 @@
+/**
+ * @file better_exposed_filters.css
+ * 
+ * Basic styling for features added by Better Exposed Filters
+ */
+
+
+/*
+ * Prevents collapsed filters from disappearing completely
+ */
+fieldset.bef-select-as-radios-fieldset.collapsed legend,
+fieldset.bef-select-as-checkboxes-fieldset.collapsed legend
+{
+  position: relative;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+; $Id
+name = Better Exposed Filters
+description = Allow the use of checkboxes or radio buttons for exposed Views filters 
+core = 7.x
+package = Views
+dependencies[] = views
+files[] = better_exposed_filters.module
+files[] = better_exposed_filters.views.inc
+files[] = better_exposed_filters_exposed_form_plugin.inc
+files[] = better_exposed_filters.theme
+; Information added by drupal.org packaging script on 2012-10-03
+version = "7.x-3.0-beta3"
+core = "7.x"
+project = "better_exposed_filters"
+datestamp = "1349281866"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,115 @@
+/**
+ * @file better_exposed_filters.js
+ *
+ * Provides some client-side functionality for the Better Exposed Filters module
+ */
+(function ($) {
+  Drupal.behaviors.better_exposed_filters = {
+    attach: function(context) {
+
+      /*
+       * Add Select all/none links to specified checkboxes
+       */
+      var selected = $('.form-checkboxes.bef-select-all-none:not(.bef-processed)');
+      if (selected.length) {
+        var selAll = Drupal.t('Select All');
+        var selNone = Drupal.t('Select None');
+
+        // Set up a prototype link and event handlers
+        var link = $('<a class="bef-toggle" href="#">'+ selAll +'</a>')
+        link.click(function(event) {
+          // Don't actually follow the link...
+          event.preventDefault();
+          event.stopPropagation();
+
+          if (selAll == $(this).text()) {
+            // Select all the checkboxes
+            $(this)
+              .html(selNone)
+              .siblings('.bef-checkboxes, .bef-tree')
+                .find('.form-item input:checkbox').each(function() {
+                  $(this).attr('checked', 'checked');
+                  _bef_highlight(this, context);
+                })
+              .end()
+
+              // attr() doesn't trigger a change event, so we do it ourselves. But just on
+              // one checkbox otherwise we have many spinning cursors
+              .find('input[type=checkbox]:first').change()
+            ;
+          }
+          else {
+            // Unselect all the checkboxes
+            $(this)
+              .html(selAll)
+              .siblings('.bef-checkboxes, .bef-tree')
+                .find('.form-item input:checkbox').each(function() {
+                  $(this).attr('checked', '');
+                  _bef_highlight(this, context);
+                })
+              .end()
+
+              // attr() doesn't trigger a change event, so we do it ourselves. But just on
+              // one checkbox otherwise we have many spinning cursors
+              .find('input[type=checkbox]:first').change()
+            ;
+          }
+        });
+
+        // Add link to the page for each set of checkboxes.
+        selected
+          .addClass('bef-processed')
+          .each(function(index) {
+            // Clone the link prototype and insert into the DOM
+            var newLink = link.clone(true);
+
+            newLink.insertBefore($('.bef-checkboxes, .bef-tree', this));
+
+            // If all checkboxes are already checked by default then switch to Select None
+            if ($('input:checkbox:checked', this).length == $('input:checkbox', this).length) {
+              newLink.click();
+            }
+          })
+        ;
+      }
+
+      // Add highlight class to checked checkboxes for better theming
+      $('.bef-tree input[type="checkbox"], .bef-checkboxes input[type="checkbox"]')
+        // Highlight newly selected checkboxes
+        .change(function() {
+          _bef_highlight(this, context);
+        })
+        .filter(':checked').closest('.form-item', context).addClass('highlight')
+      ;
+
+      // Check for and initialize datepickers
+      if (Drupal.settings.better_exposed_filters.bef_datepicker) {
+        // Note: JavaScript does not treat "" as null
+        if (Drupal.settings.better_exposed_filters.bef_dateformat) {
+          $('.bef-datepicker').datepicker({
+            dateFormat: Drupal.settings.better_exposed_filters.bef_dateformat
+          });
+        }
+        else {
+          $('.bef-datepicker').datepicker();
+        }
+      }
+
+    }                   // attach: function() {
+  };                    // Drupal.behaviors.better_exposed_filters = {
+
+  /*
+   * Helper functions
+   */
+
+  /**
+   * Adds/Removes the highlight class from the form-item div as appropriate
+   */
+  function _bef_highlight(elem, context) {
+    $elem = $(elem, context);
+    $elem.attr('checked')
+      ? $elem.closest('.form-item', context).addClass('highlight')
+      : $elem.closest('.form-item', context).removeClass('highlight');
+  }
+
+}) (jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,89 @@
+<?php
+// $Id$
+
+/**
+ * @file
+ * Allows the use of checkboxes, radio buttons or hidden fields for exposed Views filters.
+ *
+ * Thanks to Ben Buckman (http://benbuckman.net/) for the original concept.
+ */
+
+/**
+ * Implements hook_theme().
+ */
+function better_exposed_filters_theme($existing, $type, $theme, $path) {
+  return array(
+    'select_as_checkboxes' => array(
+      'function' => 'theme_select_as_checkboxes',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_checkboxes_fieldset' => array(
+      'function' => 'theme_select_as_checkboxes_fieldset',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_radios' => array(
+      'function' => 'theme_select_as_radios',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_radios_fieldset' => array(
+      'function' => 'theme_select_as_radios_fieldset',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_hidden' => array(
+      'function' => 'theme_select_as_hidden',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_tree' => array(
+      'function' => 'theme_select_as_tree',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'select_as_links' => array(
+      'function' => 'theme_select_as_links',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+    'secondary_exposed_elements' => array(
+      'function' => 'theme_secondary_exposed_elements',
+      'render element' => 'element',
+      'file' => 'better_exposed_filters.theme',
+    ),
+  );
+}
+
+
+/*
+ * Views3 support
+ *
+ * Views3 adds the concept of exposed forms to the mix.  In addition, elements injected into a Views
+ * dialog is no longer saved along with the Views form information (see the unpack_options() and
+ * option_definition() methods of the views_object object).
+ */
+
+/**
+ * Implements hook_views_api().
+ */
+function better_exposed_filters_views_api() {
+  return array(
+    'api' => 3.0,
+  );
+}
+
+function bef_sort_combine_submit($form, &$form_state) {
+  // Unpack sort_by and sort_order from the sort_bef_combine element
+  if (empty($form_state['values']['sort_bef_combine'])) {
+    $form_state['values']['sort_by'] = $form_state['values']['sort_order'] = '';
+  }
+  else {
+    list($form_state['values']['sort_by'], $form_state['values']['sort_order']) =
+        explode(' ', $form_state['values']['sort_bef_combine']);
+  }
+
+  // And pass this along to Views
+  views_exposed_form_submit($form, $form_state);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.theme	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,617 @@
+<?php
+/**
+ * Themes a select element as a collection of checkboxes enclosed in a collapsible fieldset
+ *
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: title, value, options, description
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_checkboxes_fieldset($vars) {
+  // Merge incoming element with some default values. Prevents a lot of
+  //    $foo = isset($bar) ? $bar : $bar_default;
+  $element = array_merge(
+    array(
+      '#bef_title' => '',
+      '#bef_description' => '',
+      '#bef_operator' => array(),
+    ),
+    $vars['element']
+  );
+
+  $fieldset = array(
+    '#title' => $element['#bef_title'],
+    '#description' => $element['#bef_description'],
+    '#attributes' => array(
+      'class' => array(
+        'bef-select-as-checkboxes-fieldset',
+        'collapsible',
+      ),
+    ),
+  );
+  if (empty($element['#value'])) {
+    // Using the FAPI #collapsible and #collapsed attribute doesn't work here
+    // TODO: not sure why...
+    $fieldset['#attributes']['class'][] = 'collapsed';
+  }
+
+  // We rendered the description as part of the fieldset element, don't render
+  // it again along with the checkboxes
+  unset($element['#bef_description']);
+
+  $children = '';
+  if (!empty($element['#bef_operator'])) {
+    // Put an exposed operator inside the fieldset
+    $children = drupal_render($element['#bef_operator']);
+  }
+
+  // Render the checkboxes
+  $children .= theme('select_as_checkboxes', array('element' => $element));
+
+  $fieldset['#children'] = $children;
+  return theme('fieldset', array('element' => $fieldset));
+}
+
+/**
+ * Themes a select element as a set of checkboxes
+ *
+ * @see theme_select(), http://api.drupal.org/api/function/theme_select/6
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: title, value, options, description
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_checkboxes($vars) {
+  $element = $vars['element'];
+  if (!empty($element['#bef_nested'])) {
+    if (empty($element['#attributes']['class'])) {
+      $element['#attributes']['class'] = array();
+    }
+    $element['#attributes']['class'][] = 'form-checkboxes';
+    return theme('select_as_tree', array('element' => $element));
+  }
+
+  // the selected keys from #options
+  $selected_options = empty($element['#value']) ? $element['#default_value'] : $element['#value'];
+
+  // Grab exposed filter description.  We'll put it under the label where it makes more sense.
+  $description = '';
+  if (!empty($element['#bef_description'])) {
+    $description = '<div class="description">'. $element['#bef_description'] .'</div>';
+  }
+
+  $output = '<div class="bef-checkboxes">';
+  foreach ($element['#options'] as $option => $elem) {
+    if ('All' === $option) {
+      // TODO: 'All' text is customizable in Views
+      // No need for an 'All' option -- either unchecking or checking all the checkboxes is equivalent
+      continue;
+    }
+
+    // Check for Taxonomy-based filters
+    if (is_object($elem)) {
+      $slice = array_slice($elem->option, 0, 1, TRUE);
+      list($option, $elem) = each($slice);
+    }
+
+    /*
+     * Check for optgroups.  Put subelements in the $element_set array and add a group heading.
+     * Otherwise, just add the element to the set
+     */
+    $element_set = array();
+    $is_optgroup = FALSE;
+    if (is_array($elem)) {
+      $output .= '<div class="bef-group">';
+      $output .= '<div class="bef-group-heading">' . $option . '</div>';
+      $output .= '<div class="bef-group-items">';
+      $element_set = $elem;
+      $is_optgroup = TRUE;
+    }
+    else {
+      $element_set[$option] = $elem;
+    }
+
+    foreach ($element_set as $key => $value) {
+      $output .= bef_checkbox($element, $key, $value, array_search($key, $selected_options) !== FALSE);
+    }
+
+    if ($is_optgroup) {
+      $output .= '</div></div>';    // Close group and item <div>s
+    }
+
+  }
+  $output .= '</div>';
+
+  // Fake theme_checkboxes() which we can't call because it calls theme_form_element() for each option
+  $attributes['class'] = array('form-checkboxes', 'bef-select-as-checkboxes');
+  if (!empty($element['#bef_select_all_none'])) {
+    $attributes['class'][] = 'bef-select-all-none';
+  }
+  if (!empty($element['#attributes']['class'])) {
+    $attributes['class'] = array_merge($element['#attributes']['class'], $attributes['class']);
+  }
+
+  return '<div' . drupal_attributes($attributes) . ">$description$output</div>";
+}
+
+/**
+ * Themes a select element as a series of hidden fields
+ *
+ * @see theme_select(), http://api.drupal.org/api/function/theme_select/6
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: title, value, options, description
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_hidden($vars) {
+  $element = $vars['element'];
+  $output = '';
+  $selected_options = empty($element['#value']) ? $element['#default_value'] : $element['#value'];
+  $properties = array(
+    'title' => isset($element['#title']) ? $element['#title'] : '',
+    'description' => isset($element['#bef_description']) ? $element['#bef_description'] : '',
+    'required' => FALSE,
+  );
+
+  foreach ($element['#options'] as $option => $elem) {
+    // Check for Taxonomy-based filters
+    if (is_object($elem)) {
+      $slice = array_slice($elem->option, 0, 1, TRUE);
+      list($option, $elem) = each($slice);
+    }
+
+    /*
+     * Check for optgroups.  Put subelements in the $element_set array and add a group heading.
+     * Otherwise, just add the element to the set
+     */
+    $element_set = array();
+    if (is_array($elem)) {
+      $element_set = $elem;
+    }
+    else {
+      $element_set[$option] = $elem;
+    }
+
+    foreach ($element_set as $key => $value) {
+      // Only render fields for selected values -- no selected values renders zero fields
+      if (array_search($key, $selected_options) !== FALSE) {
+        // Custom ID for each hidden field based on the <select>'s original ID
+        $id = drupal_html_id($element['#id'] . '-' . $key);
+
+        // Very similar to theme_hidden (http://api.drupal.org/api/function/theme_hidden/6)
+        $hidden = '<input type="hidden" '
+          . 'name="'. filter_xss($element['#name']) .'[]" '    // brackets are key -- just like select
+          . 'id="'. $id .'" '
+          . 'value="'. check_plain($key) .'" '
+          . drupal_attributes($element['#attributes']) .' />';
+        $output .= theme('form_element', array('element' => array_merge($properties, array('#id' => $id, '#children' => $hidden))));
+      }
+    }
+  }
+  return $output;
+}
+
+/**
+ * Themes a select element as a collection of radio buttons enclosed in a collapsible fieldset
+ *
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: title, value, options, description
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_radios_fieldset($vars) {
+  // Merge incoming element with some default values. Prevents a lot of
+  //    $foo = isset($bar) ? $bar : $bar_default;
+  $element = array_merge(
+    array(
+      '#bef_title' => '',
+      '#bef_description' => '',
+      '#bef_operator' => array(),
+    ),
+    $vars['element']
+  );
+
+  // The "all" option is the first in the list. If the selected radio button is the all
+  // option, then leave the fieldset collapsed.  Otherwise, render it opened.
+  $keys = array_keys($element['#options']);
+  $all = array_shift($keys);
+
+  $fieldset = array(
+    '#title' => $element['#bef_title'],
+    '#description' => $element['#bef_description'],
+    '#attributes' => array(
+      'class' => array(
+        'bef-select-as-checkboxes-fieldset',
+        'collapsible',
+      ),
+    ),
+  );
+  if (empty($element['#value'])) {
+    // Using the FAPI #collapsible and #collapsed attribute doesn't work here
+    // TODO: not sure why...
+    $fieldset['#attributes']['class'][] = 'collapsed';
+  }
+
+  // We rendered the description as part of the fieldset element, don't render
+  // it again along with the checkboxes
+  unset($element['#bef_description']);
+
+  $children = '';
+  if (!empty($element['#bef_operator'])) {
+    // Put an exposed operator inside the fieldset
+    $children = drupal_render($element['#bef_operator']);
+  }
+
+  // Render the radio buttons
+  $children .= theme('select_as_radios', $element);
+
+  $fieldset['#children'] = $children;
+  return theme('fieldset', array('element' => $fieldset));
+}
+
+/**
+ * Themes a select drop-down as a collection of radio buttons
+ *
+ * @see theme_select(), http://api.drupal.org/api/function/theme_select/7
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: return_value, value, attributes, title, description
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_radios($vars) {
+  $element = &$vars['element'];
+
+  if (!empty($element['#bef_nested'])) {
+    return theme('select_as_tree', $vars);
+  }
+
+  $output = '';
+  foreach (element_children($element) as $key) {
+    $element[$key]['#default_value'] = NULL;
+    $element[$key]['#children'] = theme('radio', array('element' => $element[$key]));
+    $output .= theme('form_element', array('element' => $element[$key]));
+  }
+
+  return $output;
+}
+
+/**
+ * Themes a taxonomy-based exposed filter select element as a nested unordered list.  Note: this
+ * routine depends on the '-' char prefixed on the term names by Views to determine depth.
+ *
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ * @return HTML
+ */
+function theme_select_as_tree($vars) {
+  $element = $vars['element'];
+
+  // The selected keys from #options
+  $selected_options = empty($element['#value']) ? $element['#default_value'] : $element['#value'];
+
+  /*
+   *  Build a bunch of nested unordered lists to represent the hierarchy based on the '-' prefix
+   *  added by Views or optgroup structure.
+   */
+  $output = '<ul class="bef-tree">';
+  $curr_depth = 0;
+  foreach ($element['#options'] as $option_value => $option_label) {
+
+    // Check for Taxonomy-based filters
+    if (is_object($option_label)) {
+      $slice = array_slice($option_label->option, 0, 1, TRUE);
+      list($option_value, $option_label) = each($slice);
+    }
+
+    // Check for optgroups -- which is basically a two-level deep tree
+    if (is_array($option_label)) {
+      // TODO:
+    }
+    else {
+      // Build hierarchy based on prefixed '-' on the element label
+      if (t('- Any -') == $option_label) {
+        $depth = 0;
+      }
+      else {
+        preg_match('/^(-*).*$/', $option_label, $matches);
+        $depth = strlen($matches[1]);
+        $option_label = ltrim($option_label, '-');
+      }
+
+      // Build either checkboxes or radio buttons, depending on Views' settings
+      $html = '';
+      if (!empty($element['#multiple'])) {
+        $html = bef_checkbox(
+          $element,
+          $option_value,
+          $option_label,
+          (array_search($option_value, $selected_options) !== FALSE)
+        );
+      }
+      else {
+        $element[$option_value]['#title'] = $option_label;
+        $element[$option_value]['#children'] = theme('radio', array('element' => $element[$option_value]));
+        $html .= theme('form_element', array('element' => $element[$option_value]));
+      }
+
+      if ($depth > $curr_depth) {
+        // We've moved down a level: create a new nested <ul>
+        // TODO: Is there is a way to jump more than one level deeper at a time?  I don't think so...
+        $output .= "<ul class='bef-tree-child bef-tree-depth-$depth'><li>$html";
+        $curr_depth = $depth;
+      }
+      elseif ($depth < $curr_depth) {
+        // We've moved up a level: finish previous <ul> and <li> tags, once for each level, since we
+        // can jump multiple levels up at a time.
+        while ($depth < $curr_depth) {
+          $output .= '</li></ul>';
+          $curr_depth--;
+        }
+        $output .= "</li><li>$html";
+      }
+      else {
+        // Remain at same level as previous entry. No </li> needed if we're at the top level
+        if (0 == $curr_depth) {
+          $output .= "<li>$html";
+        }
+        else {
+          $output .= "</li><li>$html";
+        }
+      }
+    }
+  }                             // foreach ($element['#options'] as $option_value => $option_label)
+
+  if (!$curr_depth) {
+    // Close last <li> tag
+    $output .= '</li>';
+  }
+  else {
+    // Finish closing <ul> and <li> tags
+    while ($curr_depth) {
+      $curr_depth--;
+      $output .= '</li></ul></li>';
+    }
+  }
+
+  // Close the opening <ul class="bef-tree"> tag
+  $output .= '</ul>';
+
+  // Add exposed filter description
+  $description = '';
+  if (!empty($element['#bef_description'])) {
+    $description = '<div class="description">'. $element['#bef_description'] .'</div>';
+  }
+
+  // Add the select all/none option, if needed
+  if (!empty($element['#bef_select_all_none'])) {
+    if (empty($element['#attributes']['class'])) {
+      $element['#attributes']['class'] = array();
+    }
+    $element['#attributes']['class'][] = 'bef-select-all-none';
+  }
+
+  return '<div' . drupal_attributes($element['#attributes']) . ">$description$output</div>";
+}
+
+/**
+ * Themes a select drop-down as a collection of links
+ *
+ * @see theme_select(), http://api.drupal.org/api/function/theme_select/6
+ * @param array $vars - An array of arrays, the 'element' item holds the properties of the element.
+ *                      Properties used: title, value, options, description, name
+ * @return HTML string representing the form element.
+ */
+function theme_select_as_links($vars) {
+  $element = $vars['element'];
+
+  $output = '';
+  $name = $element['#name'];
+
+  // Collect selected values so we can properly style the links later
+  $selected_options = array();
+  if (empty($element['#value'])) {
+    if (!empty($element['#default_values'])) {
+      $selected_options[] = $element['#default_values'];
+    }
+  }
+  else {
+    $selected_options[] = $element['#value'];
+  }
+
+  // Add to the selected options specified by Views whatever options are in the
+  // URL query string, but only for this filter
+  $urllist = parse_url(request_uri());
+  if (isset($urllist['query'])) {
+    $query = array();
+    parse_str(urldecode($urllist['query']), $query);
+    foreach ($query as $key => $value) {
+      if ($key != $name) {
+        continue;
+      }
+      if (is_array($value)) {
+        // This filter allows multiple selections, so put each one on the selected_options array
+        foreach ($value as $option) {
+          $selected_options[] = $option;
+        }
+      }
+      else {
+        $selected_options[] = $value;
+      }
+    }
+  }
+
+  // Clean incoming values to prevent XSS attacks
+  if (is_array($element['#value'])) {
+    foreach($element['#value'] as $index => $item) {
+      unset($element['#value'][$index]);
+      $element['#value'][filter_xss($index)] = filter_xss($item);
+    }
+  }
+  else if (is_string($element['#value'])) {
+    $element['#value'] = filter_xss($element['#value']);
+  }
+
+  // Go through each filter option and build the appropriate link or plain text
+  foreach ($element['#options'] as $option => $elem) {
+    // Check for Taxonomy-based filters
+    if (is_object($elem)) {
+      $slice = array_slice($elem->option, 0, 1, TRUE);
+      list($option, $elem) = each($slice);
+    }
+
+    /*
+     * Check for optgroups.  Put subelements in the $element_set array and add a group heading.
+     * Otherwise, just add the element to the set
+     */
+    $element_set = array();
+    if (is_array($elem)) {
+      $element_set = $elem;
+    }
+    else {
+      $element_set[$option] = $elem;
+    }
+
+    $links = array();
+    $multiple = !empty($element['#multiple']);
+
+    foreach ($element_set as $key => $value) {
+      // Custom ID for each link based on the <select>'s original ID
+      $id = drupal_html_id($element['#id'] . '-' . $key);
+      $elem = array(
+        '#id' => $id,
+        '#markup' => '',
+        '#type' => 'bef-link',
+        '#name' => $id,
+      );
+      if (array_search($key, $selected_options) === FALSE) {
+        $elem['#children'] = l($value, bef_replace_query_string_arg($name, $key, $multiple));
+        $output .= theme('form_element', array('element' => $elem));
+      } else {
+        $elem['#children'] = l($value, bef_replace_query_string_arg($name, $key, $multiple, true));
+        _form_set_class($elem, array('bef-select-as-links-selected'));
+        $output .= str_replace('form-item', 'form-item selected', theme('form_element', array('element' => $elem)));
+      }
+    }
+  }
+
+  $properties = array(
+    '#description' => isset($element['#bef_description']) ? $element['#bef_description'] : '',
+    '#children' => $output,
+  );
+
+  $output = '<div class="bef-select-as-links">';
+  $output .= theme('form_element', array('element' => $properties));
+  if (!empty($element['#value'])) {
+    if (is_array($element['#value'])) {
+      foreach ($element['#value'] as $value) {
+        $output .= '<input type="hidden" name="' . $name . '[]" value="' . $value . '" />';
+      }
+    }
+    else {
+      $output .= '<input type="hidden" name="' . $name . '" value="' . $element['#value'] . '" />';
+    }
+  }
+  $output .= '</div>';
+
+  return $output;
+}
+
+/**
+ * Themes some exposed form elements in a collapsible fieldset
+ *
+ * @param array $vars - An array of arrays, the 'element' item holds the
+ *        properties of the element.
+ * @return HTML
+ */
+function theme_secondary_exposed_elements($vars) {
+  $element = $vars['element'];
+
+  $output = '<div class="bef-secondary-options">';
+  foreach(element_children($element) as $id) {
+    $output .= drupal_render($element[$id]);
+  }
+  $output .= '</div>';
+
+  return $output;
+}
+
+
+/*
+ * Helper functions
+ */
+
+/**
+ * Build a BEF checkbox -- very similar to theme_checkbox
+ * (http://api.drupal.org/api/function/theme_checkbox/6)
+ *
+ * @param $element - array: original <select> element generated by Views
+ * @param $value - string: value of this checkbox option
+ * @param $label - string: label for this checkbox option
+ * @param $selected - bool: checked or not
+ * @return string: checkbox HTML
+ */
+function bef_checkbox($element, $value, $label, $selected) {
+  $value = check_plain($value);
+  $label = check_plain($label);
+  $id = drupal_html_id($element['#id'] . '-' . $value);
+  // Custom ID for each checkbox based on the <select>'s original ID
+  $properties = array(
+    '#required' => FALSE,
+    '#id' => $id,
+    '#type' => 'bef-checkbox',
+    '#name' => $id,
+  );
+
+  // Prevent the select-all-none class from cascading to all checkboxes
+  if (!empty($element['#attributes']['class'])
+      && FALSE !== ($key = array_search('bef-select-all-none', $element['#attributes']['class']))) {
+    unset($element['#attributes']['class'][$key]);
+  }
+
+  // Unset the name attribute as we are setting it manually.
+  unset($element['#attributes']['name']);
+
+  $checkbox = '<input type="checkbox" '
+   . 'name="' . $element['#name'] . '[]" '    // brackets are key -- just like select
+    . 'id="' . $id . '" '
+    . 'value="' . $value . '" '
+    . ($selected ? 'checked="checked" ' : '')
+    . drupal_attributes($element['#attributes']) . ' />';
+  $properties['#children'] = "$checkbox <label class='option' for='$id'>$label</label>";
+  $output = theme('form_element', array('element' => $properties));
+  return $output;
+}
+
+/**
+ * Replaces/adds a given query string argument to the current URL
+ *
+ * @param string $key query string key (argument)
+ * @param string $value query string value
+ * @param bool $multiple TRUE if this key/value pair allows multiple values
+ * @param bool $remove TRUE if this key/value should be a link to remove/unset the filter
+ */
+function bef_replace_query_string_arg($key, $value, $multiple = FALSE, $remove = FALSE) {
+  $path = arg();
+
+  // Prevents us from having to check for each index from parse_url that we may use
+  $urllist = array('path' => '', 'fragment' => '', 'query' => '');
+  $urllist = array_merge($urllist, parse_url(request_uri()));
+  $fragment = urldecode($urllist['fragment']);
+  $query = array();
+  parse_str(urldecode($urllist['query']), $query);
+  if (isset($query[$key]) && is_array($query[$key])) {
+    // multiple values allowed for this existing key
+    if ($remove && ($key_remove = array_search($value, $query[$key])) !== false)
+      unset($query[$key][$key_remove]);
+    else
+      $query[$key][] = $value;
+  }
+  else {
+    // Create a new key
+    if ($multiple && !$remove) {
+      $query[$key] = array($value);
+    }
+    elseif (!$remove) {
+      $query[$key] = $value;
+    }
+  }
+  return url(implode('/', $path), array(
+    'query' => $query,
+    'fragment' => $fragment,
+    'absolute' => TRUE,
+  ));
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters.views.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,34 @@
+<?php
+// $Id$
+
+/**
+ * @file better_exposed_filters.views.inc
+ *
+ * Adds Views3 support
+ *
+ * Views3 adds the concept of exposed forms to the mix.  In addition, elements injected into a Views
+ * dialog is no longer saved along with the Views form information (see the unpack_options() and
+ * options_definition() methods of the views_object object).
+ *
+ */
+
+/**
+ * Implements hook_views_plugins().
+ */
+function better_exposed_filters_views_plugins() {
+  return array(
+    'exposed_form' => array(
+      'better_exposed_filters' => array(
+        'title' => t('Better Exposed Filters'),
+        'help' => t('Allow use of checkboxes/radio buttons for exposed filters'),
+        'handler' => 'better_exposed_filters_exposed_form_plugin',
+        'uses row plugin' => FALSE,
+        'uses fields' => TRUE,
+        'uses options' => TRUE,
+        'help topic' => 'exposed-form-basic',
+        'type' => 'normal',
+        'parent' => 'basic',
+      ),
+    ),
+  );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/better_exposed_filters_exposed_form_plugin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1089 @@
+<?php
+/**
+ * @file
+ * Provides an Better Exposed Filters exposed form plugin for View 3.x.
+ */
+class better_exposed_filters_exposed_form_plugin extends views_plugin_exposed_form_basic {
+
+  function summary_title() {
+    return t('BEF Settings');
+  }
+
+  function option_definition() {
+    $options = parent::option_definition();
+
+    // Add Better Exposed Filters options to those saved by Views
+    $options['bef'] = array('default' => array());
+
+    return $options;
+  }
+
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+
+    $bef_options = array();
+
+    // Get current settings and default values for new filters
+    $existing = $this->_bef_get_settings();
+
+    /*
+     * Add general options for exposed form items
+     */
+    $bef_options['general']['allow_secondary'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Enable secondary exposed form options'),
+      '#default_value' => $existing['general']['allow_secondary'],
+      '#description' => t('Allows you to specify some exposed form elements as being secondary options and places those elements in a collapsible fieldset. Use this option to place some exposed filters in an "Advanced Search" area of the form, for example.'),
+    );
+    $bef_options['general']['secondary_label'] = array(
+      '#type' => 'textfield',
+      '#default_value' => $existing['general']['secondary_label'],
+      '#title' => t('Secondary options label'),
+      '#description' => t(
+        'The name of the fieldset to hold secondary options. This cannot be left blank or there will be no way to show/hide these options.'
+      ),
+      '#states' => array(
+        'required' => array(
+          ':input[name="allow_secondary"]' => array('checked' => TRUE),
+        ),
+      ),
+      // Use CTool's #dependency as it adds some margin-left which looks nice.
+      // Also, you can't change the required state via #dependency...
+      '#dependency' => array('edit-exposed-form-options-bef-general-allow-secondary' => array(1)),
+    );
+
+    /*
+     * Add options for exposed sorts
+     */
+    $exposed = FALSE;
+    foreach ($this->display->handler->get_handlers('sort') as $label => $sort) {
+      if ($sort->options['exposed']) {
+        $exposed = TRUE;
+        break;
+      }
+    }
+    if ($exposed) {
+      $bef_options['sort']['bef_format'] = array(
+        '#type' => 'select',
+        '#title' => t('Display exposed sort options as'),
+        '#default_value' => $existing['sort']['bef_format'],
+        '#options' => array(
+          'default' => t('Default select list'),
+          'bef' => t('Radio Buttons'),
+          'bef_links' => t('Links'),
+        ),
+        '#description' => t('Select a format for the exposed sort options.'),
+      );
+      $bef_options['sort']['advanced'] = array(
+        '#type' => 'fieldset',
+        '#title' => t('Advanced sort options'),
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+      );
+      $bef_options['sort']['advanced']['collapsible'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Make sort options collapsible'),
+        '#default_value' => $existing['sort']['advanced']['collapsible'],
+        '#description' => t(
+          'Puts the sort options in a collapsible fieldset'
+        ),
+      );
+      $bef_options['sort']['advanced']['collapsible_label'] = array(
+        '#type' => 'textfield',
+        '#title' => t('Collapsible fieldset title'),
+        '#default_value' => empty($existing['sort']['advanced']['collapsible_label'])
+          ? t('Sort options') : $existing['sort']['advanced']['collapsible_label'],
+        '#description' => t(
+          'This cannot be left blank or there will be no way to show/hide sort options.'
+        ),
+        '#dependency' => array('edit-exposed-form-options-bef-sort-advanced-collapsible' => array(1)),
+      );
+      $bef_options['sort']['advanced']['combine'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Combine sort order with sort by'),
+        '#default_value' => $existing['sort']['advanced']['combine'],
+        '#description' => t(
+          'Combines the sort by options and order (ascending or decending) into a single list.  Use this to
+          display "Option1 (ascending)", "Option1 (descending)", "Option2 (ascending)", "Option2 (descending)"
+          in a single form element.'
+        ),
+      );
+      $bef_options['sort']['advanced']['combine_rewrite'] = array(
+        '#type' => 'textarea',
+        '#title' => t('Rewrite the text displayed'),
+        '#default_value' => $existing['sort']['advanced']['combine_rewrite'],
+        '#description' => t('
+          Use this field to rewrite the text displayed for combined sort options and sort order.
+          Use the format of current_value|replacement_value, one replacement per line.
+          For example: <pre>
+Post date Asc|Oldest first
+Post date Desc|Newest first
+Title Asc|A -> Z
+Title Desc|Z -> A</pre> Leave the replacement value blank to remove an option altogether.
+        '),
+        '#dependency' => array('edit-exposed-form-options-bef-sort-advanced-combine' => array(1)),
+      );
+      $bef_options['sort']['advanced']['reset'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('Include a "Reset sort" option'),
+        '#default_value' => $existing['sort']['advanced']['reset'],
+        '#description' => t('Adds a "Reset sort" link; Views will use the default sort order.'),
+      );
+      $bef_options['sort']['advanced']['reset_label'] = array(
+        '#type' => 'textfield',
+        '#title' => t('"Reset sort" label'),
+        '#default_value' => $existing['sort']['advanced']['reset_label'],
+        '#description' => t('This cannot be left blank if the above option is checked'),
+        '#dependency' => array('edit-exposed-form-options-bef-sort-advanced-reset' => array(1)),
+      );
+      $bef_options['sort']['advanced']['is_secondary'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('This is a secondary option'),
+        '#default_value' => $existing['sort']['advanced']['is_secondary'],
+        '#states' => array(
+          'visible' => array(
+            ':input[name="allow_secondary"]' => array('checked' => TRUE),
+          ),
+        ),
+        '#description' => t('Places this element in the secondary options portion of the exposed form.'),
+      );
+    }
+
+    /*
+     * Add options for exposed pager
+     */
+    if (isset($this->display->display_options['pager']) && $this->display->display_options['pager']['options']['expose']['items_per_page']) {
+      $bef_options['pager']['bef_format'] = array(
+        '#type' => 'select',
+        '#title' => t('Display exposed pager options as'),
+        '#default_value' => $existing['pager']['bef_format'],
+        '#options' => array(
+          'default' => t('Default select list'),
+          'bef' => t('Radio Buttons'),
+          'bef_links' => t('Links'),
+        ),
+        '#description' => t('Select a format for the exposed pager options.'),
+      );
+      $bef_options['pager']['is_secondary'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('This is a secondary option'),
+        '#default_value' => $existing['pager']['is_secondary'],
+        '#states' => array(
+          'visible' => array(
+            ':input[name="allow_secondary"]' => array('checked' => TRUE),
+          ),
+        ),
+        '#description' => t('Places this element in the secondary options portion of the exposed form.'),
+      );
+    }
+
+    // Only add the description text once -- it was getting a little long to be added to
+    // each filter
+    $bef_filter_intro = FALSE;
+
+    // Go through each filter and add BEF options
+    foreach ($this->display->handler->get_handlers('filter') as $label => $filter) {
+      if (!$filter->options['exposed']) {
+        continue;
+      }
+
+      // If we're adding BEF filter options, add an intro to explain what's going on
+      if (!$bef_filter_intro) {
+        $link = l('BEF settings documentation', 'http://drupal.org/node/1701012');
+        $bef_options['bef_intro'] = array(
+          '#markup' => '<h3>' . t('Exposed Filter Settings') . '</h3><p>'
+            . t('This section lets you select additional options for exposed
+                filters. Some options are only available in certain situations.
+                If you do not see the options you expect, please see the !link
+                page for more details.', array('!link' => $link))
+            . '</p>',
+        );
+        $bef_filter_intro = TRUE;
+      }
+
+      // Is this a type of field we can tweak? If so, we'll display additional options.
+      $valid = array('in', 'or', 'and');
+      $bef_specific = FALSE;
+
+      // We can work with any of these operators
+      if (in_array($filter->operator, $valid)) {
+        $bef_specific = TRUE;
+      }
+      // ... or any of these specific filters
+      else if (isset($filter->value['type']) && 'date' == $filter->value['type']) {
+        // Offer a datepicker option for date fields
+        $bef_options[$label]['bef_format'] = array(
+          '#type' => 'select',
+          '#title' => t('Display "@identifier" exposed filter as', array('@identifier' => $filter->options['expose']['identifier'])),
+          '#default_value' => $existing[$label]['bef_format'],
+          '#options' => array(
+            'default' => t('Default text field'),
+            'bef_datepicker' => t('jQuery UI Datepicker'),
+          ),
+        );
+      }
+      else if ('yes-no' == $filter->definition['type']) {
+        // others?
+        $bef_specific = TRUE;
+      }
+      else {
+        // dsm($filter->definition['type']);
+      }
+
+      // Main BEF option: default/checkboxes/hidden/etc.
+      if ($bef_specific) {
+        // Main BEF option: default or radios/checkboxes
+        $display_options = array(
+          'default' => t('Default select list'),
+          'bef' => t('Checkboxes/Radio Buttons'),
+        );
+
+        // Taxonomy filters get the "nested" option
+        if ($filter instanceof views_handler_filter_term_node_tid) {
+          $display_options['bef_ul'] = t('Nested Checkboxes/Radio Buttons');
+        }
+
+        // Check for other display options based on the filter
+        if ($filter instanceof views_handler_filter_boolean_operator && !$filter->options['expose']['multiple']) {
+          $display_options['bef_single'] = t('Single on/off checkbox');
+        }
+
+        // Less used options, so put them last.
+        $display_options['bef_links'] = t('Links');
+        $display_options['bef_hidden'] = t('Hidden');
+
+        $bef_options[$label]['bef_format'] = array(
+          '#type' => 'select',
+          '#title' => t('Display "@identifier" exposed filter as', array('@identifier' => $filter->options['expose']['identifier'])),
+          '#default_value' => $existing[$label]['bef_format'],
+          '#options' => $display_options,
+        );
+      }
+
+      // Fieldset to keep the UI from getting out of hand
+      $bef_options[$label]['more_options'] = array(
+        '#type' => 'fieldset',
+        '#title' => t('More options for "@identifier"', array('@identifier' => $filter->options['expose']['identifier'])),
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+      );
+
+      // Select all checkbox
+      if ($bef_specific) {
+        $bef_options[$label]['more_options']['bef_select_all_none'] = array(
+          '#type' => 'checkbox',
+          '#title' => t('Add select all/none links'),
+          '#default_value' => $existing[$label]['more_options']['bef_select_all_none'],
+          '#disabled' => !$filter->options['expose']['multiple'],
+          '#description' => t(
+            'Add a "Select All/None" link when rendering the exposed filter using
+              checkboxes. If this option is disabled, edit the filter and check the
+              "Allow multiple selections".'
+          ),
+        );
+
+        // Put filter in collapsible fieldset option
+        // TODO: expand to all exposed filters
+        $bef_options[$label]['more_options']['bef_collapsible'] = array(
+          '#type' => 'checkbox',
+          '#title' => t('Make this filter collapsible'),
+          '#default_value' => $existing[$label]['more_options']['bef_collapsible'],
+          '#description' => t(
+            'Puts this filter in a collapsible fieldset'
+          ),
+        );
+      }
+
+      // Allow any filter to be moved into the secondary options fieldset
+      $bef_options[$label]['more_options']['is_secondary'] = array(
+        '#type' => 'checkbox',
+        '#title' => t('This is a secondary option'),
+        '#default_value' => $existing[$label]['more_options']['is_secondary'],
+        '#states' => array(
+          'visible' => array(
+            ':input[name="allow_secondary"]' => array('checked' => TRUE),
+          ),
+        ),
+        '#description' => t('Places this element in the secondary options portion of the exposed form.'),
+      );
+
+      // Build a description option form element -- available to all exposed filters
+      $bef_options[$label]['more_options']['bef_filter_description'] = array(
+        '#type' => 'textarea',
+        '#title' => t('Description'),
+        '#default_value' => $existing[$label]['more_options']['bef_filter_description'],
+        '#description' => t('Adds descriptive text to the exposed filter.  This is usually
+                              rendered in smaller print under the label or the options.'),
+      );
+
+      // Add token support to the description field
+      $bef_options[$label]['more_options']['tokens'] = array(
+        '#title' => t('Replacement patterns'),
+        '#type' => 'fieldset',
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+      );
+
+      // Collect a list of token types that make sense for this filter
+      $available = array('global_types');
+      if (!empty($filter->options['vid'])) {
+        $available[] = 'vocabulary';
+      }
+      // Other token types?
+
+      $bef_options[$label]['more_options']['tokens']['list'] = array(
+        '#theme' => 'token_tree',
+        '#token_types' => $available,
+      );
+      $bef_options[$label]['more_options']['tokens']['available'] = array(
+        '#type' => 'value',       // Save us from parsing available tokens again
+        '#value' => $available,
+      );
+
+    } // foreach ($filters as $filter) {
+
+    // Add BEF form elements to the exposed form options form
+    $form['bef'] = $bef_options;
+  }
+
+  /*
+   * Tweak the exposed filter form to show Better Exposed Filter options.
+   */
+  function exposed_form_alter(&$form, &$form_state) {
+    parent::exposed_form_alter($form, $form_state);
+
+    // If we have no visible elements, we don't show the Apply button.
+    $show_apply = FALSE;
+
+    // We only want to add the datepicker code once.
+    // TODO: Does this need to be moved to a behavior.attach()?
+    $add_datepicker = FALSE;
+    $datepicker_format = '';
+
+    // Grab BEF settings
+    $settings = $this->_bef_get_settings();
+
+    // Some elements may be placed in a secondary fieldset (eg: "Advanced
+    // search options"). Place this after the exposed filters and before the
+    // rest of the items in the exposed form.
+    if ($allow_secondary = $settings['general']['allow_secondary']) {
+      $secondary = array(
+        '#type' => 'fieldset',
+        '#title' => $settings['general']['secondary_label'],
+        '#collapsible' => TRUE,
+        '#collapsed' => TRUE,
+        '#theme' => 'secondary_exposed_elements',
+      );
+    }
+
+    /*
+     * Handle exposed sort elements
+     */
+    if (isset($settings['sort']) && !empty($form['sort_by']) && !empty($form['sort_order'])) {
+      $show_apply = TRUE;
+
+      // If selected, collect all sort-related form elements and put them
+      // in a collapsible fieldset
+      $collapse = $settings['sort']['advanced']['collapsible']
+        && !empty($settings['sort']['advanced']['collapsible_label']);
+      $sort_elems = array();
+
+      // Check for combined sort_by and sort_order
+      if ($settings['sort']['advanced']['combine']) {
+        // Combine sort_by and sort_order into a single element
+        $form['sort_bef_combine'] = array(
+          '#type' => 'radios',
+          '#title' => $form['sort_by']['#title'],   // Already sanitized by Views
+        );
+        $options = array();
+
+        // Add reset sort option at the top of the list
+        if ($settings['sort']['advanced']['reset']) {
+          $options[' '] = t($settings['sort']['advanced']['reset_label']);
+        }
+        else {
+          $form['sort_bef_combine']['#default_value'] = '';
+        }
+
+        $selected = '';
+        foreach ($form['sort_by']['#options'] as $by_key => $by_val) {
+          foreach ($form['sort_order']['#options'] as $order_key => $order_val) {
+            // Use a space to separate the two keys, we'll unpack them in our submit handler
+            $options["$by_key $order_key"] = "$by_val $order_val";
+
+            if ($form['sort_order']['#default_value'] == $order_key && empty($selected)) {
+              // Respect default sort order set in Views. The default sort field
+              // will be the first one if there are multiple sort criteria.
+              $selected = "$by_key $order_key";
+            }
+          }
+        }
+
+        // Rewrite the option values if any were specified
+        if (!empty($settings['sort']['advanced']['combine_rewrite'])) {
+          $lines = explode("\n", $settings['sort']['advanced']['combine_rewrite']);
+          $rewrite = array();
+          foreach ($lines as $line) {
+            list($search, $replace) = explode('|', $line);
+            $rewrite[$search] = $replace;
+          }
+          foreach ($options as $index => $option) {
+            if (isset($rewrite[$option])) {
+              if ('' == $rewrite[$option]) {
+                unset($options[$index]);
+              }
+              else {
+                $options[$index] = $rewrite[$option];
+              }
+            }
+          }
+        }
+
+        $form['sort_bef_combine'] = array(
+          '#type' => 'radios',
+          '#options' => $options,
+          '#default_value' => $selected,
+          '#title' => $form['sort_by']['#title'],   // Already sanitized by Views
+        );
+
+        // Handle display-specific details
+        switch ($settings['sort']['bef_format']) {
+          case 'bef':
+            $form['sort_bef_combine']['#prefix'] = '<div class="bef-sort-combined bef-select-as-radios">';
+            $form['sort_bef_combine']['#suffix'] = '</div>';
+            break;
+
+          case 'bef_links':
+            $form['sort_bef_combine']['#theme'] = 'select_as_links';
+            break;
+
+          case 'default':
+            $form['sort_bef_combine']['#type'] = 'select';
+            break;
+        }
+
+        // Add our submit routine to process
+        $form['#submit'][] = 'bef_sort_combine_submit';
+
+        // Remove the existing sort_by and sort_order elements
+        unset($form['sort_by']);
+        unset($form['sort_order']);
+
+        if ($collapse) {
+          $sort_elems[] = 'sort_bef_combine';
+        }
+
+      } // if ($settings['sort']['advanced']['combine']) {
+      else {
+        // Leave sort_by and sort_order as separate elements
+        if ('bef' == $settings['sort']['bef_format']) {
+          $form['sort_by']['#type'] = 'radios';
+          if (empty($form['sort_by']['#process'])) {
+            $form['sort_by']['#process'] = array();
+          }
+          array_unshift($form['sort_by']['#process'], 'form_process_radios');
+          $form['sort_by']['#prefix'] = '<div class="bef-sortby bef-select-as-radios">';
+          $form['sort_by']['#suffix'] = '</div>';
+
+          $form['sort_order']['#type'] = 'radios';
+          if (empty($form['sort_order']['#process'])) {
+            $form['sort_order']['#process'] = array();
+          }
+          array_unshift($form['sort_order']['#process'], 'form_process_radios');
+          $form['sort_order']['#prefix'] = '<div class="bef-sortorder bef-select-as-radios">';
+          $form['sort_order']['#suffix'] = '</div>';
+        }
+        elseif ('bef_links' == $settings['sort']['bef_format']) {
+          $form['sort_by']['#theme'] = 'select_as_links';
+          $form['sort_order']['#theme'] = 'select_as_links';
+        }
+
+        if ($collapse) {
+          $sort_elems[] = 'sort_by';
+          $sort_elems[] = 'sort_order';
+        }
+
+        // Add reset sort option if selected
+        if ($settings['sort']['advanced']['reset']) {
+          array_unshift($form['sort_by']['#options'], $settings['sort']['advanced']['reset_label']);
+        }
+      } // if ($settings['sort']['advanced']['combine']) { ... } else {
+
+      if ($collapse) {
+        $form['bef_sort_options'] = array(
+          '#type' => 'fieldset',
+          '#collapsible' => TRUE,
+          '#collapsed' => TRUE,
+          '#title' => $settings['sort']['advanced']['collapsible_label'],
+        );
+        foreach ($sort_elems as $elem) {
+          $form['bef_sort_options'][$elem] = $form[$elem];
+          unset($form[$elem]);
+        }
+      }
+
+      // Check if this is a secondary form element
+      if ($allow_secondary && $settings['sort']['advanced']['is_secondary']) {
+        foreach (array('sort_bef_combine', 'sort_by', 'sort_order') as $elem) {
+          if (!empty($form[$elem])) {
+            $secondary[$elem] = $form[$elem];
+            unset($form[$elem]);
+          }
+        }
+      }
+    }   // if (isset($settings['sort'])) {
+
+    /*
+     * Handle exposed pager elements
+     */
+    if (isset($settings['pager'])) {
+      $show_apply = TRUE;
+
+      switch ($settings['pager']['bef_format']) {
+        case 'bef':
+          $form['items_per_page']['#type'] = 'radios';
+          if (empty($form['items_per_page']['#process'])) {
+            $form['items_per_page']['#process'] = array();
+          }
+          array_unshift($form['items_per_page']['#process'], 'form_process_radios');
+          $form['items_per_page']['#prefix'] = '<div class="bef-sortby bef-select-as-radios">';
+          $form['items_per_page']['#suffix'] = '</div>';
+          break;
+
+        case 'bef_links':
+          if (count($form['items_per_page']['#options']) > 1) {
+            $form['items_per_page']['#theme'] = 'select_as_links';
+            $form['items_per_page']['#items_per_page'] = max($form['items_per_page']['#default_value'], key($form['items_per_page']['#options']));
+          }
+          break;
+      }
+
+      // Check if this is a secondary form element
+      if ($allow_secondary && $settings['pager']['is_secondary']) {
+        foreach (array('items_per_page', 'offset') as $elem) {
+          if (!empty($form[$elem])) {
+            $secondary[$elem] = $form[$elem];
+            unset($form[$elem]);
+          }
+        }
+      }
+    }
+
+    // Shorthand for all filters in this view
+    $filters = $form_state['view']->display_handler->handlers['filter'];
+
+    // Go through each saved option looking for Better Exposed Filter settings
+    foreach ($settings as $label => $options) {
+
+      // Sanity check: Ensure this filter is an exposed filter
+      if (empty($filters[$label]) || !$filters[$label]->options['exposed']) {
+        continue;
+      }
+
+      // Form element is designated by the element ID which is user-configurable
+      $field_id = $form['#info']["filter-$label"]['value'];
+
+      // Token replacement on BEF Description fields
+      if (!empty($options['more_options']['bef_filter_description'])) {
+        // Collect replacement data
+        $data = array();
+        $available = $options['more_options']['tokens']['available'];
+        if (in_array('vocabulary', $available)) {
+          $vocabs = taxonomy_get_vocabularies();
+          $data['vocabulary'] = $vocabs[$filters[$label]->options['vid']];
+        }
+        // Others?
+
+        // Replace tokens
+        $options['more_options']['bef_filter_description'] = token_replace(
+          $options['more_options']['bef_filter_description'], $data
+        );
+        $form[$field_id]['#bef_description'] = $options['more_options']['bef_filter_description'];
+      }
+
+      if (!isset($options['bef_format'])) {
+        $options['bef_format'] = '';
+      }
+      switch ($options['bef_format']) {
+        case 'bef_datepicker':
+          $show_apply = TRUE;
+          $add_datepicker = TRUE;
+
+          if ((
+            // Single Date API-based input element
+            isset($form[$field_id]['value']['#type'])
+              && 'date_text' == $form[$field_id]['value']['#type']
+          )
+          || (    // Or ...
+            // Double Date API-based input elements such as "in-between"
+            isset($form[$field_id]['min']) && isset($form[$field_id]['max'])
+            && 'date_text' == $form[$field_id]['min']['#type']
+            && 'date_text' == $form[$field_id]['max']['#type']
+          )) {
+            // Date module date field
+
+            /*
+             * Convert Date API formatting to jQuery formatDate formatting.
+             *
+             * @TODO: To be honest, I'm not sure this is needed.  Can you
+             * set a Date API field to accept anything other than Y-m-d?
+             * Well, better safe than sorry...
+             *
+             * @see
+             *  http://us3.php.net/manual/en/function.date.php
+             * and
+             *  http://docs.jquery.com/UI/Datepicker/formatDate
+             *
+             * Array format: PHP date format => jQuery formatDate format
+             * (comments are for the PHP format, lines that are commented out
+             * do not have a jQuery formatDate equivalent, but maybe someday
+             * they will...)
+             */
+            $convert = array(
+              // Day
+              'd' => 'dd',    // Day of the month, 2 digits with leading zeros 01 to 31
+              'D' => 'D',     // A textual representation of a day, three letters  Mon through Sun
+              'j' => 'd',     // Day of the month without leading zeros  1 to 31
+              'l' => 'DD',    // (lowercase 'L') A full textual representation of the day of the week  Sunday through Saturday
+              // 'N' => ' ',     // ISO-8601 numeric representation of the day of the week (added in PHP 5.1.0) 1 (for Monday) through 7 (for Sunday)
+              // 'S' => ' ',     // English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
+              // 'w' => ' ',     // Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday)
+              'z' => 'o',     // The day of the year (starting from 0) 0 through 365
+
+              // Week
+              // 'W' => ' ',     // ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) Example: 42 (the 42nd week in the year)
+
+              // Month
+              'F' => 'MM',    // A full textual representation of a month, such as January or March  January through December
+              'm' => 'mm',    // Numeric representation of a month, with leading zeros 01 through 12
+              'M' => 'M',     // A short textual representation of a month, three letters  Jan through Dec
+              'n' => 'm',     // Numeric representation of a month, without leading zeros  1 through 12
+              // 't' => ' ',     // Number of days in the given month 28 through 31
+
+              // Year
+              // 'L' => ' ',     // Whether it's a leap year  1 if it is a leap year, 0 otherwise.
+              // 'o' => ' ',     // ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0)  Examples: 1999 or 2003
+              'Y' => 'yy',    // A full numeric representation of a year, 4 digits Examples: 1999 or 2003
+              'y' => 'y',     // A two digit representation of a year  Examples: 99 or 03
+
+              // Time
+              // 'a' => ' ',     // Lowercase Ante meridiem and Post meridiem am or pm
+              // 'A' => ' ',     // Uppercase Ante meridiem and Post meridiem AM or PM
+              // 'B' => ' ',     // Swatch Internet time  000 through 999
+              // 'g' => ' ',     // 12-hour format of an hour without leading zeros 1 through 12
+              // 'G' => ' ',     // 24-hour format of an hour without leading zeros 0 through 23
+              // 'h' => ' ',     // 12-hour format of an hour with leading zeros  01 through 12
+              // 'H' => ' ',     // 24-hour format of an hour with leading zeros  00 through 23
+              // 'i' => ' ',     // Minutes with leading zeros  00 to 59
+              // 's' => ' ',     // Seconds, with leading zeros 00 through 59
+              // 'u' => ' ',     // Microseconds (added in PHP 5.2.2) Example: 654321
+            );
+
+            $format = '';
+            if (isset($form[$field_id]['value'])) {
+              $format = $form[$field_id]['value']['#date_format'];
+              $form[$field_id]['value']['#attributes']['class'][] = 'bef-datepicker';
+            }
+            else {
+              // Both min and max share the same format
+              $format = $form[$field_id]['min']['#date_format'];
+              $form[$field_id]['min']['#attributes']['class'][] = 'bef-datepicker';
+              $form[$field_id]['max']['#attributes']['class'][] = 'bef-datepicker';
+            }
+            $datepicker_format = str_replace(array_keys($convert), array_values($convert), $format);
+          }
+          else {
+            /*
+             * Standard Drupal date field.  Depending on the settings, the field
+             * can be at $form[$field_id] (single field) or $form[$field_id][subfield]
+             * for two-value date fields or filters with exposed operators.
+             */
+            $fields = array('min', 'max', 'value');
+            if (count(array_intersect($fields, array_keys($form[$field_id])))) {
+              foreach ($fields as $field) {
+                if (isset($form[$field_id][$field])) {
+                  $form[$field_id][$field]['#attributes']['class'][] = 'bef-datepicker';
+                }
+              }
+            }
+            else {
+              $form[$field_id]['#attributes']['class'][] = 'bef-datepicker';
+            }
+          }
+          break;
+
+        case 'bef_links':
+          $show_apply = TRUE;
+
+          $form[$field_id]['#theme'] = 'select_as_links';
+          break;
+
+        case 'bef_single':
+          $show_apply = TRUE;
+
+          // Use filter label as checkbox label
+          $form[$field_id]['#title'] = $filters[$label]->options['expose']['label'];
+          $form[$field_id]['#description'] = $options['more_options']['bef_filter_description'];
+          $form[$field_id]['#return_value'] = 1;
+          $form[$field_id]['#type'] = 'checkbox';
+
+          // Handoff to the theme layer
+          $form[$field_id]['#theme'] = 'checkbox';
+          break;
+
+       case 'bef_ul':
+          $show_apply = TRUE;
+
+          $form[$field_id]['#bef_nested'] = TRUE;
+          // Intentionally falling through to case 'bef':
+
+        case 'bef':
+          $show_apply = TRUE;
+
+          if (empty($form[$field_id]['#multiple'])) {
+            // Single-select -- display as radio buttons
+            $form[$field_id]['#type'] = 'radios';
+            if (empty($form[$field_id]['#process'])) {
+              $form[$field_id]['#process'] = array();
+            }
+            array_unshift($form[$field_id]['#process'], 'form_process_radios');
+
+            // Clean up objects from the options array (happens for taxonomy-based filters)
+            $opts = $form[$field_id]['#options'];
+            $form[$field_id]['#options'] = array();
+            foreach ($opts as $index => $opt) {
+              if (is_object($opt)) {
+                list($key, $val) = each($opt->option);
+                $form[$field_id]['#options'][$key] = $val;
+              }
+              else {
+                $form[$field_id]['#options'][$index] = $opt;
+              }
+            }
+
+            if (isset($form[$field_id]['#options']['All'])) {
+              // @TODO: The terms 'All' and 'Any' are customizable in Views
+              if ($filters[$label]->options['expose']['multiple']) {
+                // Some third-party filter handlers still add the "Any" option even if this is not
+                // an optional filter.  Zap it here if they do.
+                unset($form[$field_id]['#options']['All']);
+              }
+              else {
+                // Otherwise, make sure the "Any" text is clean
+                $form[$field_id]['#options']['All'] = check_plain($form[$field_id]['#options']['All']);
+              }
+            }
+
+            // Render as radio buttons or radio buttons in a collapsible fieldset
+            if (!empty($options['more_options']['bef_collapsible'])) {
+              // Pass the description and title along in a way such that it doesn't get rendered
+              // as part of the exposed form widget.  We'll render them as part of the fieldset.
+              if (isset($form['#info']["filter-$label"]['label'])) {
+                $form[$field_id]['#bef_title'] = $form['#info']["filter-$label"]['label'];
+                unset($form['#info']["filter-$label"]['label']);
+              }
+              if (!empty($options['more_options']['bef_filter_description'])) {
+                $form[$field_id]['#bef_description'] = $options['more_options']['bef_filter_description'];
+                if (isset($form[$field_id]['#description'])) {
+                  unset($form[$field_id]['#description']);
+                }
+              }
+
+              // If the operator is exposed as well, put it inside the fieldset
+              if ($filters[$label]->options['expose']['use_operator']) {
+                $operator_id = $filters[$label]->options['expose']['operator_id'];
+                $form[$field_id]['#bef_operator'] = $form[$operator_id];
+                unset ($form[$operator_id]);
+              }
+
+              // Add collapse/expand Javascript and BEF CSS to prevent collapsed
+              // fieldset from disappearing.
+              if (empty($form[$field_id]['#attached']['js'])) {
+                $form[$field_id]['#attached']['js'] = array();
+              }
+              $form[$field_id]['#attached']['js'][] = 'misc/form.js';
+              $form[$field_id]['#attached']['js'][] = 'misc/collapse.js';
+
+              if (empty($form[$field_id]['#attached']['css'])) {
+                $form[$field_id]['#attached']['css'] = array();
+              }
+              $form[$field_id]['#attached']['css'][] = drupal_get_path('module', 'better_exposed_filters') . '/better_exposed_filters.css';
+
+              // Take care of adding the fieldset in the theme layer
+              $form[$field_id]['#theme'] = 'select_as_radios_fieldset';
+            } // if (!empty($options['more_options']['bef_collapsible'])) {
+            else {
+              // Render select element as radio buttons
+              $form[$field_id]['#attributes']['class'][] = 'bef-select-as-radios';
+              $form[$field_id]['#theme'] = 'select_as_radios';
+            }
+          } // if (empty($form[$field_id]['#multiple'])) {
+          else {
+            // Render as checkboxes or checkboxes enclosed in a collapsible fieldset
+            if (!empty($options['more_options']['bef_collapsible'])) {
+              // Pass the description and title along in a way such that it doesn't get rendered
+              // as part of the exposed form widget.  We'll render them as part of the fieldset.
+              if (isset($form['#info']["filter-$label"]['label'])) {
+                $form[$field_id]['#bef_title'] = $form['#info']["filter-$label"]['label'];
+                unset($form['#info']["filter-$label"]['label']);
+              }
+              if (!empty($options['more_options']['bef_filter_description'])) {
+                $form[$field_id]['#bef_description'] = $options['more_options']['bef_filter_description'];
+                if (isset($form[$field_id]['#description'])) {
+                  unset($form[$field_id]['#description']);
+                }
+              }
+
+              // If the operator is exposed as well, put it inside the fieldset
+              if ($filters[$label]->options['expose']['use_operator']) {
+                $operator_id = $filters[$label]->options['expose']['operator_id'];
+                $form[$field_id]['#bef_operator'] = $form[$operator_id];
+                unset ($form[$operator_id]);
+              }
+
+              // Add collapse/expand Javascript and BEF CSS to prevent collapsed
+              // fieldset from disappearing.
+              if (empty($form[$field_id]['#attached']['js'])) {
+                $form[$field_id]['#attached']['js'] = array();
+              }
+              $form[$field_id]['#attached']['js'][] = 'misc/form.js';
+              $form[$field_id]['#attached']['js'][] = 'misc/collapse.js';
+
+              if (empty($form[$field_id]['#attached']['css'])) {
+                $form[$field_id]['#attached']['css'] = array();
+              }
+              $form[$field_id]['#attached']['css'][] = drupal_get_path('module', 'better_exposed_filters') . '/better_exposed_filters.css';
+
+              // Take care of adding the fieldset in the theme layer
+              $form[$field_id]['#theme'] = 'select_as_checkboxes_fieldset';
+            }
+            else {
+              $form[$field_id]['#theme'] = 'select_as_checkboxes';
+            }
+
+            if ($options['more_options']['bef_select_all_none']) {
+              // Add BEF's JavaScript to the mix to handle select all/none functionality
+              // @TODO: move to #attached?
+              drupal_add_js(drupal_get_path('module', 'better_exposed_filters') . '/better_exposed_filters.js');
+
+              // Add select all/none functionality to this filter.
+              if (!isset($form[$field_id]['#attributes']['class'])) {
+                $form[$field_id]['#attributes']['class'] = array();
+              }
+              $form[$field_id]['#bef_select_all_none'] = TRUE;
+            }
+          } // if (empty($form[$field_id]['#multiple'])) { ... } else {
+          break; // case 'bef':
+
+        case 'bef_hidden':
+          $form['#info']["filter-$label"]['label'] = ''; // Hide the label
+          if (empty($form[$field_id]['#multiple'])) {
+            $form[$field_id]['#type'] = 'hidden';
+          }
+          else {
+            $form[$field_id]['#theme'] = 'select_as_hidden';
+          }
+          break;
+
+        default:
+          // Handle functionality for exposed filters that are not limited to BEF only filters
+          $show_apply = TRUE;
+
+          // Add a description to the exposed filter
+          if (!empty($options['more_options']['bef_filter_description'])) {
+            $form[$field_id]['#description'] = t($options['more_options']['bef_filter_description']);
+          }
+          break;
+
+      } // switch ($options['bef_format'])
+
+      // Check if this is a secondary form element
+      if ($allow_secondary && $settings[$label]['more_options']['is_secondary']) {
+        $identifier = $form['#info']["filter-$label"]['value'];
+        if (!empty($form[$identifier])) {
+          $secondary[$identifier] = $form[$identifier];
+          unset($form[$identifier]);
+          $secondary[$identifier]['#title'] = $form['#info']["filter-$label"]['label'];
+          unset($form['#info']["filter-$label"]);
+        }
+      }
+
+    } // foreach ($settings...)
+
+    // If our form has no visible filters, hide the submit button.
+    $form['submit']['#access'] = $show_apply;
+    $form['reset']['#access'] = $show_apply;
+
+    // Only add datepicker code once
+    drupal_add_js(array('better_exposed_filters' => array('bef_datepicker' => FALSE)), 'setting');
+    if ($add_datepicker) {
+       // Add Datepicker JS and CSS
+      drupal_add_library('system', 'ui.datepicker');
+      drupal_add_js(drupal_get_path('module', 'better_exposed_filters') . '/better_exposed_filters.js');
+
+      // Trigger datepicker in better_exposed_filters.js
+      drupal_add_js(array('better_exposed_filters' => array(
+        'bef_datepicker' => TRUE,
+        'bef_dateformat' => $datepicker_format,
+      )), 'setting');
+    }
+
+    // Check for secondary elements
+    if ($allow_secondary && !empty($secondary)) {
+      // Add secondary elements after regular exposed filter elements
+      $remaining = array_splice($form, count($form['#info']) +1);
+      $form['secondary'] = $secondary;
+      $form = array_merge($form, $remaining);
+      $form['#info']['filter-secondary']['value'] = 'secondary';
+    }
+
+  } // function exposed_form_alter(...)
+
+  /**
+   * Similar to array_merge_recursive, but later numeric keys overwrites earlier
+   * values.  Use this to set defaults for missing values in a multi-dimensional
+   * array.  Eg:
+   *
+   *  $existing = $this->_bef_set_defaults($defaults, $existing);
+   *
+   * @return the resulting array
+   */
+  function _bef_set_defaults() {
+    $count = func_num_args();
+    if (!$count) {
+      return;
+    }
+    else if (1 == $count) {
+      return (func_get_arg(0));
+    }
+
+    // First array is the default values
+    $params = func_get_args();
+    $return = array_shift($params);
+
+    // Merge the rest of the arrays onto the default array
+    foreach ($params as $array) {
+      foreach ($array as $key => $value) {
+        // Numeric keyed values are added (unless already there)
+        if (is_numeric($key) && !in_array ($value, $return)) {
+          if (is_array($value)) {
+            $return [] = $this->_bef_set_defaults($return[$key], $value);
+          } else {
+            $return [] = $value;
+          }
+
+        // String keyed values are replaced
+        } else {
+          if (isset($return[$key]) && is_array($value) && is_array($return[$key])) {
+            $return[$key] = $this->_bef_set_defaults($return[$key], $value);
+          } else {
+            $return[$key] = $value;
+          }
+        }
+      }
+    }
+    return $return;
+  }
+
+  /**
+   * Updates legacy settings to their current location
+   */
+  function _bef_update_legacy_settings($settings) {
+    // There has got to be a better way... But for now, this works.
+    if (isset($settings['sort']['collapsible'])) {
+      $settings['sort']['advanced']['collapsible'] = $settings['sort']['collapsible'];
+      unset($settings['sort']['collapsible']);
+    }
+    if (isset($settings['sort']['collapsible_label'])) {
+      $settings['sort']['advanced']['collapsible_label'] = $settings['sort']['collapsible_label'];
+      unset($settings['sort']['collapsible_label']);
+    }
+    if (isset($settings['sort']['combine'])) {
+      $settings['sort']['advanced']['combine'] = $settings['sort']['combine'];
+      unset($settings['sort']['combine']);
+    }
+    if (isset($settings['sort']['reset'])) {
+      $settings['sort']['advanced']['reset'] = $settings['sort']['reset'];
+      unset($settings['sort']['reset']);
+    }
+    if (isset($settings['sort']['reset_label'])) {
+      $settings['sort']['advanced']['reset_label'] = $settings['sort']['reset_label'];
+      unset($settings['sort']['reset_label']);
+    }
+
+    return $settings;
+  }
+
+  /**
+   * Returns an array of default or current existing values for BEF settings.
+   * This helps us as we add new options and prevents a lot of
+   *    if (isset($settings['new_settings'])) { ... }
+   *  as there will be a default value at all positions in the settings array.
+   *  Also updates legacy settings to their new locations via
+   *  _bef_update_legacy_settings().
+   *
+   * @return array - multi-dimensional settings array
+   */
+  function _bef_get_settings() {
+    // General, sort, pagers, etc.
+    $defaults = array(
+      'general' => array(
+        'allow_secondary' => FALSE,
+        'secondary_label' => t('Advanced options'),
+      ),
+      'sort' => array(
+        'bef_format' => 'default',
+        'advanced' => array(
+          'collapsible' => FALSE,
+          'collapsible_label' => '',
+          'combine' => FALSE,
+          'combine_rewrite' => '',
+          'reset' => FALSE,
+          'reset_label' => '',
+          'is_secondary' => FALSE,
+          ),
+      ),
+      'pager' => array(
+        'bef_format' => 'default',
+        'is_secondary' => FALSE,
+      ),
+    );
+
+    // Update legacy settings in the exposed form settings form. This
+    // keep us from losing settings when an option is put into an
+    // 'advanced options' fieldset.
+    $current = $this->_bef_update_legacy_settings($this->options['bef']);
+
+    // Collect existing values or use defaults.  Prevents a lot of
+    // isset($this->options['foo'] ? $this->options['foo'] : ''
+    $settings = $this->_bef_set_defaults($defaults, $current);
+
+    // Filter default values
+    $filter_defaults = array(
+      'bef_format' => 'default',
+      'more_options' => array(
+        'bef_select_all_none' => FALSE,
+        'bef_collapsible' => FALSE,
+        'is_secondary' => FALSE,
+        'bef_filter_description' => '',
+      ),
+    );
+
+    // Go through each exposed filter and collect settings
+    foreach ($this->display->handler->get_handlers('filter') as $label => $filter) {
+      if (!$filter->options['exposed']) {
+        continue;
+      }
+
+      // Get existing values or use defaults
+      if (!isset($this->options['bef'][$label])) {
+        // First time opening the settings form with a new filter
+        $settings[$label] = $filter_defaults;
+      }
+      else {
+        $settings[$label] = $this->_bef_set_defaults($filter_defaults, $this->options['bef'][$label]);
+      }
+    }
+    return $settings;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/better_exposed_filters/tests/better_exposed_filters.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,473 @@
+<?php
+// $Id$
+
+/**
+ * @file Tests for the Better Exposed Filters module
+ * @author mikeker
+ */
+
+/**
+ * Functional test for Better Exposed Filters
+ */
+class BEF_TestCase extends DrupalWebTestCase {
+  protected $view_name;
+  protected $privileged_user;
+  protected $views_version;
+  
+  public static function getInfo() {
+    return array(
+      'name' => 'BEF Basic functionality tests',
+      'description' => 'Basic tests for Better Exposed Filters.',
+      'group' => 'Better Exposed Filters',
+    );
+  }
+  
+  /**
+   * After setup() runs, the test suite will have access to:
+   *
+   *    - $this->privileged_user: User with 'administer views' privileges.
+   *    - $this->view_name: A view with:
+   *        - node->title, node->status and node->type exposed filters
+   *        - node->title as a displayed field
+   */
+  public function setUp() {
+    parent::setUp('views', 'views_ui', 'better_exposed_filters');  // Enable any modules required for the test
+    
+    // @TODO: Is there a better way?  Hopefully...
+    $this->views_version = substr(views_api_version(), 0, 1);
+      
+    // User with edit views perms
+    $this->privileged_user = $this->drupalCreateUser(array('access content', 'administer views'));
+    $this->drupalLogin($this->privileged_user);
+
+    // Build a basic view
+    $this->view_name = $this->randomName(8);
+    $this->drupalPost('admin/build/views/add', array('name' => $this->view_name), 'Next');
+    
+    // Add filters to the default display
+    $this->_befAddFilter('node.title');
+    $this->_befAddFilter('node.status');
+    $this->_befAddFilter('node.type');
+
+    // Add field to default display
+    $this->_befAddField('node.title');
+    
+    $this->_befSaveView();
+  }
+  
+  /**
+   * Verify BEF options display for binary and unlimited option fields
+   */
+  public function testsimpletest_befOptionsExist() {
+    // Check node->status (binary type)
+    $this->drupalGet("admin/build/views/nojs/config-item/$this->view_name/default/filter/status");
+    $this->assertText(
+      t('Display exposed filter as'),
+      'Verify BEF settings dropdown label displays',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldById('edit-options-expose-bef-format');
+
+    // Check node->status (binary type)
+    $this->drupalGet("admin/build/views/nojs/config-item/$this->view_name/default/filter/type");
+    $this->assertText(
+      t('Display exposed filter as'),
+      'Verify BEF settings dropdown label displays',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldById('edit-options-expose-bef-format');
+  }
+
+  /**
+   * Verify BEF options are saved and redisplayed properly
+   *
+   * @TODO: Need to extend this to cover filters in derived vs. default displays as well as editing
+   *        default filter options from derived displays
+   */
+  public function testsimpletest_befOptionsSave() {
+    $edit = array(
+      'options[expose][bef_format]' => 'bef',
+      'options[expose][bef_filter_description]' => $this->randomName(16),
+      'options[expose][bef_select_all_none]' => TRUE,
+      'options[expose][bef_collapsible]' => TRUE,
+    );
+    $this->drupalPost("admin/build/views/nojs/config-item/$this->view_name/default/filter/status", $edit, 'Update');
+    $this->drupalGet("admin/build/views/nojs/config-item/$this->view_name/default/filter/status");
+    foreach ($edit as $name => $expected) {
+      $this->assertFieldByName($name, $expected);
+    }
+  }
+
+  /**
+   * Verify BEF radio buttons are rendered correctly on a page view
+   */
+  public function testsimpletest_befPageDisplayRadios() {
+    $bef_settings = array(
+      'bef_format' => 'bef',
+      'bef_filter_description' => $this->randomName(16),
+      'bef_select_all_none' => TRUE,
+    );
+    $this->_befExposedFilterSettings('status', $bef_settings);
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Published'), 'Verify exposed filter label', 'Better Exposed Filters');
+    $this->assertFieldByXpath(
+      '//input[@name="status" and @type="radio"]',
+      NULL,
+      'Exposed filter is shown as radio buttons',
+      'Better Exposed Filters'
+    );
+  }
+
+  /**
+   * Verify BEF radio buttons are rendered correctly in a fieldset (collapsible == TRUE)
+   */
+  public function testsimpletest_befPageDisplayRadiosFieldset() {
+    $bef_settings = array(
+      'bef_format' => 'bef',
+      'bef_filter_description' => $this->randomName(16),
+      'bef_select_all_none' => TRUE,
+      'bef_collapsible' => TRUE,
+    );
+    $this->_befExposedFilterSettings('status', $bef_settings);
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Published'), 'Verify exposed filter label', 'Better Exposed Filters');
+    $this->assertFieldByXpath(
+      '//fieldset//input[@name="status" and @type="radio"]',
+      NULL,
+      'Radio buttons are enclosed by a fieldset',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldByXpath(
+      '//fieldset/legend',
+      t('Published'),
+      'Filter label is used as the fieldset legend',
+      'Better Exposed Filters'
+    );
+  }
+
+/**
+   * Verify that checkboxes are rendered correctly on a page display
+   */
+  public function testsimpletest_befPageDisplayCheckboxes() {
+    // Exposed the type filter such that it allows multiple selections
+    $bef_settings = array(
+      'bef_format' => 'bef',
+      'bef_filter_description' => $this->randomName(16),
+      'bef_select_all_none' => TRUE,
+      'single' => FALSE,
+    );
+    $this->_befExposedFilterSettings('type', $bef_settings);
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Node: Type'), 'Verify exposed filter label', 'Better Exposed Filters');
+    $this->assertFieldByXpath(
+      '//input[@name="type[]" and @type="checkbox"]',
+      NULL,
+      'Exposed filter is shown as checkboxes',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldByXpath(
+      '//div[contains(@class, "bef-select-all-none")]',
+      NULL,
+      'Class is set correctly for JS to build select all/none links',
+      'Beter Exposed Filters'
+    );
+  }
+
+/**
+  * Verify that checkboxes are rendered correctly on a page display
+  */
+  public function testsimpletest_befPageDisplayCheckboxesFieldset() {
+    // Exposed the type filter such that it allows multiple selections
+    $bef_settings = array(
+      'bef_format' => 'bef',
+      'bef_filter_description' => $this->randomName(16),
+      'bef_select_all_none' => TRUE,
+      'bef_collapsible' => TRUE,
+      'single' => FALSE,
+    );
+    $this->_befExposedFilterSettings('type', $bef_settings);
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Node: Type'), 'Verify exposed filter label', 'Better Exposed Filters');
+
+    $this->assertFieldByXpath(
+      '//fieldset//input[@name="type[]" and @type="checkbox"]',
+      NULL,
+      'Radio buttons are enclosed by a fieldset',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldByXpath(
+      '//fieldset//div[contains(@class, "bef-select-all-none")]',
+      NULL,
+      'Class is set correctly for JS to build select all/none links',
+      'Beter Exposed Filters'
+    );
+    $this->assertFieldByXpath(
+      '//fieldset/legend',
+      t('Node: Type'),
+      'Filter label is used as the fieldset legend',
+      'Better Exposed Filters'
+    );
+  }
+
+  
+
+  /**
+   * Verify hidden exposed filters are rendered correctly on a page display
+   * @TODO: check the functionality of a multi-pass filter using hidden BEF settings.
+   */
+  public function testsimpletest_befPageDisplayHidden() {
+    $this->_befExposedFilterSettings('type', array('bef_format' => 'bef_hidden'));
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    $this->drupalGet($settings['path']['path']);
+    $this->assertNoText(t('Node: Type'), 'Verify hidden label does not appear', 'Better Exposed Filters');
+  }
+
+  /**
+   * Verify taxonomy-based exposed filters display correctly as both radio buttons and checkboxes
+   */
+  public function testsimpletest_befTaxonomyFilters() {
+    $this->taxonomy_user = $this->drupalCreateUser(array('access content', 'administer views', 'administer taxonomy'));
+    $this->drupalLogin($this->taxonomy_user);
+
+    // Add a vocabulary and populate with a few terms
+    $edit = array(
+      'name' => 'BEF test vocab',
+      'nodes[page]' => TRUE,
+      'nodes[story]' => TRUE,
+    );
+    $this->drupalPost('admin/content/taxonomy/add/vocabulary', $edit, 'Save');
+    $terms = array('test1', 'test2', 'test3', 'test4');
+    foreach ($terms as $term) {
+      $this->drupalPost('admin/content/taxonomy/1/add/term', array('name' => $term), 'Save');
+    }
+
+    // Exposed the taxonomy filter
+    $addl = array(
+      'options[vid]' => TRUE,
+      'options[type]' => 'select',
+      'options[hierarchy]' => FALSE,
+    );
+    $this->_befAddFilter('term_node.tid', TRUE, 'default', $addl);
+
+    // Exposed filter settings
+    $bef_settings = array(
+      'bef_format' => 'bef',
+      'bef_filter_description' => $this->randomName(16),
+    );
+    $this->_befExposedFilterSettings('tid', $bef_settings);
+
+    // Add a page view to the default view
+    $settings = array(
+      'path' => array('path' => $this->randomName(8)),
+    );
+    $this->_befCreateDisplay('page', $settings);
+    $this->_befSaveView();
+
+    // Verify taxonomy filter as radio buttons
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Taxonomy: Term'), 'Verify exposed filter label', 'Better Exposed Filters');
+    $this->assertFieldByXpath(
+      '//input[@name="tid" and @type="radio"]',
+      NULL,
+      'Exposed filter is shown as radio buttons',
+      'Better Exposed Filters'
+    );
+
+    // Set Force single to FALSE to display as checkboxes and set select all/none option
+    $bef_settings = array(
+      'bef_select_all_none' => TRUE,
+      'single' => FALSE,
+    );
+    $this->_befExposedFilterSettings('tid', $bef_settings);
+    $this->_befSaveView();
+
+    // Verify taxonomy filter as checkboxes
+    $this->drupalGet($settings['path']['path']);
+    $this->assertText(t('Taxonomy: Term'), 'Verify exposed filter label', 'Better Exposed Filters');
+    $this->assertFieldByXpath(
+      '//input[@name="tid[]" and @type="checkbox"]',
+      NULL,
+      'Exposed filter is shown as checkboxes',
+      'Better Exposed Filters'
+    );
+    $this->assertFieldByXpath(
+      '//div[contains(@class, "bef-select-all-none")]',
+      NULL,
+      'Class is set correctly for JS to build select all/none links',
+      'Beter Exposed Filters'
+    );
+  }
+  
+  
+  /*******************************************************************************
+   * Helper functions -- mostly to deal with differences between Views 2.x and 3.x
+   *******************************************************************************/
+  
+  /**
+   * Creates a display of $type.  Currently supports:
+   *    'page'
+   *
+   * Also, accepts an associative array of settings in the form of:
+   *
+   *      'setting_path' => array('form_element' => value, ...),
+   *      'setting_path' => array('form_element' => value, ...),
+   *      ...
+   *
+   * where 'link_name' is the name of the setting link and the array is settings for
+   * resulting form.
+   *
+   * For example, to create a new page and set the path to a random name:
+   *
+   *      $settings = array('path' => $this->randomName(16);
+   *      $this->_befCreateDisplay('page', $settings);
+   *
+   */
+  protected function _befCreateDisplay($type = 'page', $settings = NULL) {
+    $view_edit_url = "admin/build/views/edit/$this->view_name";
+    
+    // Add a display of $type to the view
+    $this->drupalPost($view_edit_url, array('display' => $type), 'Add display');
+
+    // Grab the name of the newly created view out of the URL anchor text
+    $url = $this->getUrl();
+    preg_match('/(.*)#(.*)/', $url, $matches);
+    $display_name = str_replace('views-tab-', '', $matches[2]);
+
+    $display_edit_url = "admin/build/views/nojs/display/$this->view_name/$display_name";
+    foreach ($settings as $path => $page_settings) {
+      $this->drupalPost("$display_edit_url/$path", $page_settings, 'Update');
+    }
+    
+    // Save the view
+    $this->drupalPost($view_edit_url, array(), 'Save');
+  }
+  
+  /**
+   * Adds a specified filter to the view.
+   *
+   * @param $field in the form of node.field or, for CCK fields ???.CCK_field_name
+   * @param $exposed
+   * @param $display
+   */
+  protected function _befAddFilter($field, $exposed = TRUE, $display = 'default', $additional = array()) {
+    $edit = array(
+      "name[$field]" => TRUE,
+    );
+    $field_name = preg_replace('/.*\./', '', $field);
+    $view = $this->view_name;
+    
+    $this->drupalPost("admin/build/views/nojs/add-item/$view/$display/filter", $edit, 'Add');
+    
+    // For taxonomy filters, use info in $additional to configure the filter.
+    if (0 === strpos($field, 'term_node.')) {
+      $this->drupalPost (
+        "admin/build/views/nojs/config-item-extra/$view/$display/filter/$field_name",
+        $additional,
+        'Update'
+      );
+    }
+    
+    if ($exposed) {
+      $this->drupalPost("admin/build/views/nojs/config-item/$view/$display/filter/$field_name", array(), 'Expose');
+    }
+    $this->drupalPost("admin/build/views/nojs/config-item/$view/$display/filter/$field_name", array(), 'Update');
+  }
+
+  protected function _befAddField($field, $settings = array(), $display = 'default') {
+    $edit = array(
+      "name[$field]" => TRUE,
+    );
+    $field_name = preg_replace('/.*\./', '', $field);
+    $view = $this->view_name;
+    
+    $this->drupalPost("admin/build/views/nojs/add-item/$view/$display/field", $edit, 'Add');
+    $this->drupalPost("admin/build/views/nojs/config-item/$view/$display/field/$field_name", $settings, 'Update');
+  }
+  
+  /**
+   * Specifies specific settings for an exposed filter for a given display
+   *
+   * NOTE: In Views 3.x, some of what used to be in the Configure Filteres dialog has moved to the
+   *       Configure Exposed Form dialog.
+   *
+   * @param string $filter - name of the filter
+   * @param array $settings - array of form elements => value entries
+   * @return $settings array merged with default values
+   */
+  protected function _befExposedFilterSettings($filter, $settings = array(), $display = 'default') {
+    $processed_settings = array();
+    foreach ($settings as $elem => $setting) {
+      $processed_settings["options[expose][$elem]"] = $setting;
+    }
+    
+    //DEBUG:
+//    foreach ($processed_settings as $item) {
+//      $this->verbose("processed_setting: $item");
+//    }
+    //END_DEBUG:
+    
+    if ($this->views_version == 2) {
+//      $this->drupalGet("admin/build/views/nojs/config-item/$this->view_name/$display/filter/$filter");
+      $this->drupalPost(
+        "admin/build/views/nojs/config-item/$this->view_name/$display/filter/$filter",
+        $processed_settings,
+        'Update'
+      );
+      $this->drupalGet("admin/build/views/nojs/config-item/$this->view_name/$display/filter/$filter");
+    }
+    else {
+      // All BEF settings are now in the Exposed Form dialog.
+      
+      //@TODO
+    }
+    return $settings;
+  }
+  
+  /**
+   * Saves the view
+   * @return unknown_type
+   */
+  protected function _befSaveView() {
+    $this->drupalPost("admin/build/views/edit/$this->view_name", array(), 'Save');
+  }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,30 @@
+Readme file for the CAPTCHA module for Drupal
+---------------------------------------------
+
+captcha.module is the basic CAPTCHA module, offering general CAPTCHA
+administration and a simple math challenge.
+
+Submodule image_captcha.module offers an image based challenge.
+
+Installation:
+  Installation is like with all normal drupal modules:
+  extract the 'captcha' folder from the tar ball to the
+  modules directory from your website (typically sites/all/modules).
+
+Dependencies:
+  The basic CAPTCHA module has no dependencies, nothing special is required.
+
+Conflicts/known issues:
+  CAPTCHA and page caching do not work together currently.
+  However, the CAPTCHA module does support the Drupal core page
+  caching mechanism: it just disables the caching of the pages
+  where it has to put its challenges.
+  If you use other caching mechanisms, it is possible that CAPTCHA's
+  won't work, and you get error messages like 'CAPTCHA validation
+  error: unknown CAPTCHA session ID'.
+
+Configuration:
+  The configuration page is at admin/config/people/captcha,
+  where you can configure the CAPTCHA module
+  and enable challenges for the desired forms.
+  You can also tweak the image CAPTCHA to your liking.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,516 @@
+<?php
+
+/**
+ * @file
+ * Functionality and helper functions for CAPTCHA administration.
+ */
+
+/**
+ * Return an array with the available CAPTCHA types, for use as options array
+ * for a select form elements.
+ *
+ * @param $add_special_options if true: also add a 'none' and 'default' option
+ *
+ * @return an associative array mapping "$module/$type" to
+ *   "$type (from module $module)" with $module the module name implementing the CAPTCHA
+ *   and $type the name of the CAPTCHA type.
+ */
+function _captcha_available_challenge_types($add_special_options=TRUE) {
+  $captcha_types = array();
+  if ($add_special_options) {
+    $captcha_types['none'] = t('- No challenge -');
+    $captcha_types['default'] = t('Default challenge type');
+  }
+  // We do our own version of Drupal's module_invoke_all() here because
+  // we want to build an array with custom keys and values.
+  foreach (module_implements('captcha') as $module) {
+    $result = call_user_func_array($module . '_captcha', array('list'));
+    if (is_array($result)) {
+      foreach ($result as $type) {
+        $captcha_types["$module/$type"] = t('@type (from module @module)', array('@type' => $type, '@module' => $module));
+      }
+    }
+  }
+  return $captcha_types;
+}
+
+/**
+ * Form builder function for the general CAPTCHA configuration
+ */
+function captcha_admin_settings() {
+  module_load_include('inc', 'captcha');
+
+  // Use javascript for some added usability on admin form.
+  drupal_add_js(drupal_get_path('module', 'captcha') . '/captcha.js');
+
+  // Configuration of which forms to protect, with what challenge.
+  $form['captcha_form_protection'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Form protection'),
+    '#description' => t("Select the challenge type you want for each of the listed forms (identified by their so called <em>form_id</em>'s). You can easily add arbitrary forms with the textfield at the bottom of the table or with the help of the option <em>Add CAPTCHA administration links to forms</em> below."),
+  );
+  $form['captcha_form_protection']['captcha_default_challenge'] = array(
+    '#type' => 'select',
+    '#title' => t('Default challenge type'),
+    '#description' => t('Select the default challenge type for CAPTCHAs. This can be overriden for each form if desired.'),
+    '#options' => _captcha_available_challenge_types(FALSE),
+    '#default_value' => variable_get('captcha_default_challenge', 'captcha/Math'),
+  );
+  // List known form_ids.
+  $form['captcha_form_protection']['captcha_form_id_overview'] = array(
+    '#theme' => 'captcha_admin_settings_captcha_points',
+    '#tree' => TRUE,
+  );
+  $form['captcha_form_protection']['captcha_form_id_overview']['captcha_captcha_points'] = array();
+  $captcha_type_options = _captcha_available_challenge_types();
+  $result = db_select('captcha_points', 'cp')->fields('cp')->orderBy('form_id')->execute();
+  foreach ($result as $captcha_point) {
+    $form['captcha_form_protection']['captcha_form_id_overview']['captcha_captcha_points'][$captcha_point->form_id] = array();
+    $form['captcha_form_protection']['captcha_form_id_overview']['captcha_captcha_points'][$captcha_point->form_id]['form_id'] = array(
+      '#markup' => $captcha_point->form_id,
+    );
+    // Select widget for CAPTCHA type.
+    if (isset($captcha_point->module) && $captcha_point->module) {
+      $captcha_type = $captcha_point->module . '/' . $captcha_point->captcha_type;
+    }
+    elseif (isset($captcha_point->captcha_type) && ($captcha_point->captcha_type == 'default')) {
+      $captcha_type = 'default';
+    }
+    else {
+      $captcha_type = 'none';
+    }
+    $form['captcha_form_protection']['captcha_form_id_overview']['captcha_captcha_points'][$captcha_point->form_id]['captcha_type'] = array(
+      '#type' => 'select',
+      '#default_value' => $captcha_type,
+      '#options' => $captcha_type_options,
+    );
+    // Additional operations.
+    $form['captcha_form_protection']['captcha_form_id_overview']['captcha_captcha_points'][$captcha_point->form_id]['operations'] = array(
+      '#markup' => implode(", ", array(
+        l(t('delete'), "admin/config/people/captcha/captcha/captcha_point/{$captcha_point->form_id}/delete"),
+      ))
+    );
+  }
+
+  // Form items for new form_id.
+  $form['captcha_form_protection']['captcha_form_id_overview']['captcha_new_captcha_point'] = array();
+  // Textfield for form_id.
+  $form['captcha_form_protection']['captcha_form_id_overview']['captcha_new_captcha_point']['form_id'] = array(
+    '#type' => 'textfield',
+    '#size' => 16,
+  );
+  // Select widget for CAPTCHA type.
+  $form['captcha_form_protection']['captcha_form_id_overview']['captcha_new_captcha_point']['captcha_type'] = array(
+    '#type' => 'select',
+    '#default_value' => 'none',
+    '#options' => $captcha_type_options,
+  );
+
+  // Field for the CAPTCHA administration mode.
+  $form['captcha_form_protection']['captcha_administration_mode'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add CAPTCHA administration links to forms'),
+    '#default_value' => variable_get('captcha_administration_mode', FALSE),
+    '#description' => t('This option makes it easy to manage CAPTCHA settings on forms. When enabled, users with the <em>administer CAPTCHA settings</em> permission will see a fieldset with CAPTCHA administration links on all forms, except on administrative pages.'),
+  );
+  // Field for the CAPTCHAs on admin pages.
+  $form['captcha_form_protection']['captcha_allow_on_admin_pages'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Allow CAPTCHAs and CAPTCHA administration links on administrative pages'),
+    '#default_value' => variable_get('captcha_allow_on_admin_pages', FALSE),
+    '#description' => t("This option makes it possible to add CAPTCHAs to forms on administrative pages. CAPTCHAs are disabled by default on administrative pages (which shouldn't be accessible to untrusted users normally) to avoid the related overhead. In some situations, e.g. in the case of demo sites, it can be usefull to allow CAPTCHAs on administrative pages."),
+  );
+
+  // Button for clearing the CAPTCHA placement cache.
+  // Based on Drupal core's "Clear all caches" (performance settings page).
+  $form['captcha_form_protection']['captcha_placement_caching'] = array(
+    '#type' => 'item',
+    '#title' => t('CAPTCHA placement caching'),
+    '#description' => t('For efficiency, the positions of the CAPTCHA elements in each of the configured forms are cached. Most of the time, the structure of a form does not change and it would be a waste to recalculate the positions every time. Occasionally however, the form structure can change (e.g. during site building) and clearing the CAPTCHA placement cache can be required to fix the CAPTCHA placement.'),
+  );
+  $form['captcha_form_protection']['captcha_placement_caching']['captcha_placement_cache_clear'] = array(
+    '#type' => 'submit',
+    '#value' => t('Clear the CAPTCHA placement cache'),
+    '#submit' => array('captcha_clear_captcha_placement_cache_submit'),
+  );
+
+  // Configuration option for adding a CAPTCHA description.
+  $form['captcha_add_captcha_description'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add a description to the CAPTCHA'),
+    '#description' => t('Add a configurable description to explain the purpose of the CAPTCHA to the visitor.'),
+    '#default_value' => variable_get('captcha_add_captcha_description', TRUE),
+  );
+  // Textfield(s) for the CAPTCHA description.
+  if (module_exists('locale')) {
+    $langs = locale_language_list();
+    $form['captcha_descriptions'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('CAPTCHA description'),
+      '#description' => t('Configurable description of the CAPTCHA. An empty entry will reset the description to default.'),
+      '#attributes' => array('id' => 'edit-captcha-description-wrapper'),
+    );
+    foreach ($langs as $lang_code => $lang_name) {
+      $form['captcha_descriptions']["captcha_description_$lang_code"] = array(
+        '#type' => 'textfield',
+        '#title' => t('For language %lang_name (code %lang_code)', array('%lang_name' => $lang_name, '%lang_code' => $lang_code)),
+        '#default_value' => _captcha_get_description($lang_code),
+        '#maxlength' => 256,
+      );
+    }
+  }
+  else {
+    $form['captcha_description'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Challenge description'),
+      '#description' => t('Configurable description of the CAPTCHA. An empty entry will reset the description to default.'),
+      '#default_value' => _captcha_get_description(),
+      '#maxlength' => 256,
+      '#attributes' => array('id' => 'edit-captcha-description-wrapper'),
+    );
+  }
+
+  // Option for case sensitive/insensitive validation of the responses.
+  $form['captcha_default_validation'] = array(
+    '#type' => 'radios',
+    '#title' => t('Default CAPTCHA validation'),
+    '#description' => t('Define how the response should be processed by default. Note that the modules that provide the actual challenges can override or ignore this.'),
+    '#options' => array(
+      CAPTCHA_DEFAULT_VALIDATION_CASE_SENSITIVE => t('Case sensitive validation: the response has to exactly match the solution.'),
+      CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE => t('Case insensitive validation: lowercase/uppercase errors are ignored.'),
+    ),
+    '#default_value' => variable_get('captcha_default_validation', CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE),
+  );
+
+  // Field for CAPTCHA persistence.
+  // TODO for D7: Rethink/simplify the explanation and UI strings.
+  $form['captcha_persistence'] = array(
+    '#type' => 'radios',
+    '#title' => t('Persistence'),
+    '#default_value' => variable_get('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE),
+    '#options' => array(
+      CAPTCHA_PERSISTENCE_SHOW_ALWAYS =>
+        t('Always add a challenge.'),
+      CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE =>
+        t('Omit challenges in a multi-step/preview workflow once the user successfully responds to a challenge.'),
+      CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_TYPE =>
+        t('Omit challenges on a form type once the user successfully responds to a challenge on a form of that type.'),
+      CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL =>
+        t('Omit challenges on all forms once the user successfully responds to any challenge on the site.'),
+    ),
+    '#description' => t('Define if challenges should be omitted during the rest of a session once the user successfully responds to a challenge.'),
+  );
+
+  // Enable wrong response counter.
+  $form['captcha_enable_stats'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable statistics'),
+    '#description' => t('Keep CAPTCHA related counters in the <a href="!statusreport">status report</a>. Note that this comes with a performance penalty as updating the counters results in clearing the variable cache.', array('!statusreport' => url('admin/reports/status'))),
+    '#default_value' => variable_get('captcha_enable_stats', FALSE),
+  );
+
+  // Option for logging wrong responses.
+  $form['captcha_log_wrong_responses'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Log wrong responses'),
+    '#description' => t('Report information about wrong responses to the <a href="!dblog">log</a>.', array('!dblog' => url('admin/reports/dblog'))),
+    '#default_value' => variable_get('captcha_log_wrong_responses', FALSE),
+  );
+
+  // Submit button.
+  $form['actions'] = array('#type' => 'actions');
+  $form['actions']['submit'] = array(
+    '#type' => 'submit',
+    '#value' => t('Save configuration'),
+  );
+
+  return $form;
+}
+
+/**
+ * Custom theme function for a table of (form_id -> CAPTCHA type) settings
+ */
+function theme_captcha_admin_settings_captcha_points($variables) {
+  $form = $variables['form'];
+  $header = array('form_id', t('Challenge type'), t('Operations'));
+  $rows = array();
+  // Existing CAPTCHA points.
+  foreach (element_children($form['captcha_captcha_points']) as $key) {
+    $row = array();
+    $row[] = drupal_render($form['captcha_captcha_points'][$key]['form_id']);
+    $row[] = drupal_render($form['captcha_captcha_points'][$key]['captcha_type']);
+    $row[] = drupal_render($form['captcha_captcha_points'][$key]['operations']);
+    $rows[] = $row;
+  }
+  // For new CAPTCHA point.
+  $row = array();
+  $row[] = drupal_render($form['captcha_new_captcha_point']['form_id']);
+  $row[] = drupal_render($form['captcha_new_captcha_point']['captcha_type']);
+  $row[] = '';
+  $rows[] = $row;
+
+  $output = theme('table', array('header' => $header, 'rows' => $rows));
+  return $output;
+}
+
+/**
+ * Validation handler for captcha_admin_settings form.
+ */
+function captcha_admin_settings_validate($form, $form_state) {
+  $form_id = $form_state['values']['captcha_form_id_overview']['captcha_new_captcha_point']['form_id'];
+  if (!preg_match('/^[a-z0-9_]*$/', $form_id)) {
+    form_set_error('captcha_form_id_overview][captcha_new_captcha_point][form_id', t('Illegal form_id'));
+  }
+}
+
+/**
+ * Submission function for captcha_admin_settings form.
+ */
+function captcha_admin_settings_submit($form, &$form_state) {
+
+  variable_set('captcha_administration_mode', $form_state['values']['captcha_administration_mode']);
+  variable_set('captcha_allow_on_admin_pages', $form_state['values']['captcha_allow_on_admin_pages']);
+
+  variable_set('captcha_default_challenge', $form_state['values']['captcha_default_challenge']);
+
+  // Process CAPTCHA points
+  if (isset($form_state['values']['captcha_form_id_overview']['captcha_captcha_points'])) {
+    foreach ($form_state['values']['captcha_form_id_overview']['captcha_captcha_points'] as $captcha_point_form_id => $data) {
+      captcha_set_form_id_setting($captcha_point_form_id, $data['captcha_type']);
+    }
+  }
+
+  // Add new CAPTCHA point?
+  $captcha_point_form_id = $form_state['values']['captcha_form_id_overview']['captcha_new_captcha_point']['form_id'];
+  if (!empty($captcha_point_form_id)) {
+    $captcha_type = $form_state['values']['captcha_form_id_overview']['captcha_new_captcha_point']['captcha_type'];
+    captcha_set_form_id_setting($captcha_point_form_id, $captcha_type);
+    drupal_set_message(t('Added CAPTCHA point.'), 'status');
+  }
+
+  // CAPTCHA description stuff.
+  variable_set('captcha_add_captcha_description', $form_state['values']['captcha_add_captcha_description']);
+  // Save (or reset) the CAPTCHA descriptions.
+  if (module_exists('locale')) {
+    $langs = locale_language_list();
+    foreach ($langs as $lang_code => $lang_name) {
+      $description = $form_state['values']["captcha_description_$lang_code"];
+      if ($description) {
+        variable_set("captcha_description_$lang_code", $description);
+      }
+      else {
+        variable_del("captcha_description_$lang_code");
+        drupal_set_message(t('Reset of CAPTCHA description for language %language.', array('%language' => $lang_name)), 'status');
+      }
+    }
+  }
+  else {
+    $description = $form_state['values']['captcha_description'];
+    if ($description) {
+      variable_set('captcha_description', $description);
+    }
+    else {
+      variable_del('captcha_description');
+      drupal_set_message(t('Reset of CAPTCHA description.'), 'status');
+    }
+  }
+
+  variable_set('captcha_default_validation', $form_state['values']['captcha_default_validation']);
+  variable_set('captcha_persistence', $form_state['values']['captcha_persistence']);
+  variable_set('captcha_enable_stats', $form_state['values']['captcha_enable_stats']);
+  variable_set('captcha_log_wrong_responses', $form_state['values']['captcha_log_wrong_responses']);
+
+  drupal_set_message(t('The CAPTCHA settings have been saved.'), 'status');
+}
+
+
+
+
+/**
+ * Submit callback; clear CAPTCHA placement cache.
+ */
+function captcha_clear_captcha_placement_cache_submit($form, &$form_state) {
+  variable_del('captcha_placement_map_cache');
+  drupal_set_message(t('Cleared the CAPTCHA placement cache.'));
+}
+
+
+/**
+ * Central handler for CAPTCHA point administration (adding, disabling, deleting)
+ */
+function captcha_point_admin($captcha_point_form_id=NULL, $op=NULL) {
+  module_load_include('inc', 'captcha');
+
+  // if $captcha_point_form_id and action $op given: do the action
+  if ($captcha_point_form_id) {
+    switch ($op) {
+      case 'disable':
+        return drupal_get_form('captcha_point_disable_confirm', $captcha_point_form_id, FALSE);
+      case 'delete':
+        return drupal_get_form('captcha_point_disable_confirm', $captcha_point_form_id, TRUE);
+    }
+    // return edit form for CAPTCHA point
+    return drupal_get_form('captcha_point_admin_form', $captcha_point_form_id);
+  }
+  // return add form for CAPTCHA point
+  return drupal_get_form('captcha_point_admin_form');
+}
+
+function captcha_point_admin_form($form, $form_state, $captcha_point_form_id=NULL) {
+  $form = array();
+  $default_captcha_type = 'none';
+  if (isset($captcha_point_form_id)) {
+    // use given CAPTCHA point form_id
+    $form['captcha_point_form_id'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Form ID'),
+      '#description' => t('The Drupal form_id of the form to add the CAPTCHA to.'),
+      '#value' => check_plain($captcha_point_form_id),
+      '#disabled' => TRUE,
+    );
+    $captcha_point = captcha_get_form_id_setting($captcha_point_form_id);
+    if ($captcha_point) {
+      $default_captcha_type = "{$captcha_point->module}/{$captcha_point->captcha_type}";
+    }
+  }
+  else {
+    // textfield for CAPTCHA point form_id
+    $form['captcha_point_form_id'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Form ID'),
+      '#description' => t('The Drupal form_id of the form to add the CAPTCHA to.'),
+    );
+  }
+  // select widget for CAPTCHA type
+  $form['captcha_type'] = array(
+    '#type' => 'select',
+    '#title' => t('Challenge type'),
+    '#description' => t('The CAPTCHA type to use for this form.'),
+    '#default_value' => $default_captcha_type,
+    '#options' => _captcha_available_challenge_types(),
+  );
+  // redirect to general CAPTCHA settings page after submission
+  $form['#redirect'] = 'admin/config/people/captcha';
+  // submit button
+  $form['actions'] = array('#type' => 'actions');
+  $form['actions']['submit'] = array(
+    '#type' => 'submit',
+    '#value' => t('Save'),
+  );
+  return $form;
+}
+
+
+/**
+ * validation function for captcha_point_admin_form
+ */
+function captcha_point_admin_form_validate($form, $form_state) {
+  if (!preg_match('/^[a-z0-9_]+$/', $form_state['values']['captcha_point_form_id'])) {
+    form_set_error('captcha_point_form_id', t('Illegal form_id'));
+  }
+}
+
+
+/**
+ * Submit function for captcha_point_admin_form.
+ */
+function captcha_point_admin_form_submit($form, $form_state) {
+  $captcha_point_form_id = $form_state['values']['captcha_point_form_id'];
+  $captcha_type = $form_state['values']['captcha_type'];
+  captcha_set_form_id_setting($captcha_point_form_id, $captcha_type);
+  drupal_set_message(t('Saved CAPTCHA point settings.'), 'status');
+}
+
+/**
+ * Confirm dialog for disabling/deleting a CAPTCHA point
+ */
+function captcha_point_disable_confirm($form, &$form_state, $captcha_point_form_id, $delete) {
+  $form = array();
+  $form['captcha_point_form_id'] = array(
+    '#type' => 'value',
+    '#value' => $captcha_point_form_id,
+  );
+  $form['captcha_point_delete'] = array(
+    '#type' => 'value',
+    '#value' => $delete,
+  );
+  if ($delete) {
+    $message = t('Are you sure you want to delete the CAPTCHA for form_id %form_id?', array('%form_id' => $captcha_point_form_id));
+    $yes = t('Delete');
+  }
+  else {
+    $message = t('Are you sure you want to disable the CAPTCHA for form_id %form_id?', array('%form_id' => $captcha_point_form_id));
+    $yes = t('Disable');
+  }
+  return confirm_form($form, $message, 'admin/config/people/captcha/captcha', '', $yes);
+}
+
+/**
+ * Submission handler of CAPTCHA point disabling/deleting confirm_form.
+ */
+function captcha_point_disable_confirm_submit($form, &$form_state) {
+  $captcha_point_form_id = $form_state['values']['captcha_point_form_id'];
+  $delete = $form_state['values']['captcha_point_delete'];
+  if ($delete) {
+    captcha_set_form_id_setting($captcha_point_form_id, NULL);
+    drupal_set_message(t('Deleted CAPTCHA for form %form_id.', array('%form_id' => $captcha_point_form_id)));
+  }
+  else {
+    captcha_set_form_id_setting($captcha_point_form_id, 'none');
+    drupal_set_message(t('Disabled CAPTCHA for form %form_id.', array('%form_id' => $captcha_point_form_id)));
+  }
+  $form_state['redirect'] = 'admin/config/people/captcha/captcha';
+}
+
+/**
+ * Helper function for generating an example challenge.
+ */
+function _captcha_generate_example_challenge($module, $type) {
+  return array(
+    '#type' => 'captcha',
+    '#captcha_type' => $module . '/' . $type,
+    '#captcha_admin_mode' => TRUE,
+  );
+}
+
+/**
+ * Funtion for generating a page with CAPTCHA examples.
+ *
+ * If the arguments $module and $challenge are not set, generate a list with
+ * examples of the available CAPTCHA types.
+ * If $module and $challenge are set, generate 10 examples of the concerning
+ * CAPTCHA.
+ */
+function captcha_examples($form, $form_state, $module, $challenge) {
+  module_load_include('inc', 'captcha');
+
+  $form = array();
+  if ($module && $challenge) {
+    // Generate 10 example challenges.
+    for ($i=0; $i<10; $i++) {
+      $form["challenge_{$i}"] = _captcha_generate_example_challenge($module, $challenge);
+    }
+  }
+  else {
+    // generate a list with examples of the available CAPTCHA types
+    $form['info'] = array(
+      '#markup' => t('This page gives an overview of all available challenge types, generated with their current settings.'),
+    );
+    foreach (module_implements('captcha') as $mkey => $module) {
+      $challenges = call_user_func_array($module . '_captcha', array('list'));
+      if ($challenges) {
+        foreach ($challenges as $ckey => $challenge) {
+          $form["captcha_{$mkey}_{$ckey}"] = array(
+            '#type' => 'fieldset',
+            '#title' => t('Challenge %challenge by module %module', array('%challenge' => $challenge, '%module' => $module)),
+            'challenge' => _captcha_generate_example_challenge($module, $challenge),
+            'more_examples' => array(
+              '#markup' => l(t('10 more examples of this challenge.'), "admin/config/people/captcha/captcha/examples/$module/$challenge"),
+            ),
+          );
+        }
+      }
+    }
+  }
+  return $form;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,384 @@
+<?php
+
+/**
+ * @file
+ * General CAPTCHA functionality and helper functions.
+ */
+
+/**
+ * Helper function for adding/updating a CAPTCHA point.
+ *
+ * @param $form_id the form ID to configure.
+ * @param captcha_type the setting for the given form_id, can be:
+ *   - 'none' to disable CAPTCHA,
+ *   - 'default' to use the default challenge type
+ *   - NULL to remove the entry for the CAPTCHA type
+ *   - something of the form 'image_captcha/Image'
+ *   - an object with attributes $captcha_type->module and $captcha_type->captcha_type
+ * @return nothing
+ */
+function captcha_set_form_id_setting($form_id, $captcha_type) {
+  // Handle 'none'.
+  if ($captcha_type == 'none') {
+    db_merge('captcha_points')
+      ->key(array('form_id' => $form_id))
+      ->fields(array('module' => NULL, 'captcha_type' => NULL))
+      ->execute();
+  }
+  // Handle 'default'.
+  elseif ($captcha_type == 'default') {
+    db_merge('captcha_points')
+      ->key(array('form_id' => $form_id))
+      ->fields(array('module' => NULL, 'captcha_type' => 'default'))
+      ->execute();
+  }
+  // Handle NULL.
+  elseif ($captcha_type == NULL) {
+    db_delete('captcha_points')->condition('form_id', $form_id)->execute();
+  }
+  // Handle a captcha_type object.
+  elseif (is_object($captcha_type) && isset($captcha_type->module) && isset($captcha_type->captcha_type)) {
+    db_merge('captcha_points')
+      ->key(array('form_id' => $form_id))
+      ->fields(array('module' => $captcha_type->module, 'captcha_type' => $captcha_type->captcha_type))
+      ->execute();
+  }
+  // Handle a captcha_type string.
+  elseif (is_string($captcha_type) && substr_count($captcha_type, '/') == 1) {
+    list($module, $type) = explode('/', $captcha_type);
+    db_merge('captcha_points')
+      ->key(array('form_id' => $form_id))
+      ->fields(array('module' => $module, 'captcha_type' => $type))
+      ->execute();
+  }
+  else {
+    drupal_set_message(t('Failed to set a CAPTCHA type for form %form_id: could not interpret value "@captcha_type"',
+      array('%form_id' => $form_id, '@captcha_type' => (string)$captcha_type)), 'warning');
+  }
+}
+
+/**
+ * Get the CAPTCHA setting for a given form_id.
+ *
+ * @param $form_id the form_id to query for
+ * @param $symbolic flag to return as (symbolic) strings instead of object.
+ *
+ * @return NULL if no setting is known
+ *   or a captcha_point object with fields 'module' and 'captcha_type'.
+ *   If argument $symbolic is true, returns (symbolic) as 'none', 'default'
+ *   or in the form 'captcha/Math'.
+ */
+function captcha_get_form_id_setting($form_id, $symbolic=FALSE) {
+  $result = db_query("SELECT module, captcha_type FROM {captcha_points} WHERE form_id = :form_id",
+    array(':form_id' =>  $form_id));
+  $captcha_point = $result->fetchObject();
+  if (!$captcha_point) {
+    $captcha_point = NULL;
+  }
+  elseif ($captcha_point->captcha_type == 'default') {
+    if (!$symbolic) {
+      list($module, $type) = explode('/', variable_get('captcha_default_challenge', 'captcha/Math'));
+      $captcha_point->module = $module;
+      $captcha_point->captcha_type = $type;
+    }
+    else {
+      $captcha_point = 'default';
+    }
+  }
+  elseif ($captcha_point->module == NULL && $captcha_point->captcha_type == NULL && $symbolic) {
+    $captcha_point = 'none';
+  }
+  elseif ($symbolic) {
+    $captcha_point = $captcha_point->module . '/' . $captcha_point->captcha_type;
+  }
+  return $captcha_point;
+}
+
+
+/**
+ * Helper function for generating a new CAPTCHA session.
+ *
+ * @param $form_id the form_id of the form to add a CAPTCHA to.
+ * @param $status the initial status of the CAPTHCA session.
+ * @return the session ID of the new CAPTCHA session.
+ */
+function _captcha_generate_captcha_session($form_id=NULL, $status=CAPTCHA_STATUS_UNSOLVED) {
+  global $user;
+  // Initialize solution with random data.
+  $solution = md5(mt_rand());
+  // Insert an entry and thankfully receive the value of the autoincrement field 'csid'.
+  $captcha_sid = db_insert('captcha_sessions')
+  ->fields(array(
+    'uid' => $user->uid,
+    'sid' => session_id(),
+    'ip_address' => ip_address(),
+    'timestamp' => REQUEST_TIME,
+    'form_id' => $form_id,
+    'solution' => $solution,
+    'status' => $status,
+    'attempts' => 0,
+  ))
+  ->execute();
+  return $captcha_sid;
+}
+
+/**
+ * Helper function for updating the solution in the CAPTCHA session table.
+ *
+ * @param $captcha_sid the CAPTCHA session ID to update.
+ * @param $solution the new solution to associate with the given CAPTCHA session.
+ */
+function _captcha_update_captcha_session($captcha_sid, $solution) {
+  db_update('captcha_sessions')
+    ->condition('csid', $captcha_sid)
+    ->fields(array(
+      'timestamp' => REQUEST_TIME,
+      'solution' => $solution,
+    ))
+    ->execute();
+}
+
+/**
+ * Helper function for checking if CAPTCHA is required for user,
+ * based on the CAPTCHA persistence setting, the CAPTCHA session ID and
+ * user session info.
+ */
+function _captcha_required_for_user($captcha_sid, $form_id) {
+  // Get the CAPTCHA persistence setting.
+  $captcha_persistence = variable_get('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+
+  // First check: should we always add a CAPTCHA?
+  if ($captcha_persistence == CAPTCHA_PERSISTENCE_SHOW_ALWAYS) {
+    return TRUE;
+  }
+
+  // Get the status of the current CAPTCHA session.
+  $captcha_session_status = db_query('SELECT status FROM {captcha_sessions} WHERE csid = :csid', array(':csid' => $captcha_sid))->fetchField();
+  // Second check: if the current session is already solved: omit further CAPTCHAs.
+  if ($captcha_session_status == CAPTCHA_STATUS_SOLVED) {
+    return FALSE;
+  }
+
+  // Third check: look at the persistence level (per form instance, per form or per user).
+  if ($captcha_persistence == CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE) {
+    return TRUE;
+  }
+  else {
+    $captcha_success_form_ids = isset($_SESSION['captcha_success_form_ids']) ? (array)($_SESSION['captcha_success_form_ids']) : array();
+    switch ($captcha_persistence) {
+      case CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL:
+        return (count($captcha_success_form_ids) == 0);
+      case CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_TYPE:
+        return !isset($captcha_success_form_ids[$form_id]);
+    }
+  }
+
+  // We should never get to this point, but to be sure, we return TRUE.
+  return TRUE;
+}
+
+
+/**
+ * Get the CAPTCHA description as configured on the general CAPTCHA
+ * settings page.
+ *
+ * If the locale module is enabled, the description will be returned
+ * for the current language the page is rendered for. This language
+ * can optionally been overriden with the $lang_code argument.
+ *
+ * @param $lang_code an optional language code to get the descripion for.
+ * @return a string with (localized) CAPTCHA description.
+ */
+function _captcha_get_description($lang_code=NULL) {
+  // If no language code is given: use the language of the current page.
+  global $language;
+  $lang_code = isset($lang_code) ? $lang_code : $language->language;
+  // The hardcoded but localizable default.
+  $default = t('This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.', array(), array('langcode' => $lang_code));
+  // Look up the configured CAPTCHA description or fall back on the (localized) default.
+  if (module_exists('locale')) {
+    $description = variable_get("captcha_description_$lang_code", $default);
+  }
+  else {
+    $description = variable_get('captcha_description', $default);
+  }
+  return filter_xss_admin($description);
+}
+
+/**
+ * Parse or interpret the given captcha_type.
+ * @param $captcha_type string representation of the CAPTCHA type,
+ *      e.g. 'default', 'none', 'captcha/Math', 'image_captcha/Image'
+ * @return list($captcha_module, $captcha_type)
+ */
+function _captcha_parse_captcha_type($captcha_type) {
+  if ($captcha_type == 'none') {
+    return array(NULL, NULL);
+  }
+  if ($captcha_type == 'default') {
+    $captcha_type = variable_get('captcha_default_challenge', 'captcha/Math');
+  }
+  return explode('/', $captcha_type);
+}
+
+/**
+ * Helper function to get placement information for a given form_id.
+ * @param $form_id the form_id to get the placement information for.
+ * @param $form if a form corresponding to the given form_id, if there
+ *   is no placement info for the given form_id, this form is examined to
+ *   guess the placement.
+ * @return placement info array (@see _captcha_insert_captcha_element() for more
+ *   info about the fields 'path', 'key' and 'weight'.
+ */
+function _captcha_get_captcha_placement($form_id, $form) {
+  // Get CAPTCHA placement map from cache. Two levels of cache:
+  // static variable in this function and storage in the variables table.
+  static $placement_map = NULL;
+  // Try first level cache.
+  if ($placement_map === NULL) {
+    // If first level cache missed: try second level cache.
+    $placement_map = variable_get('captcha_placement_map_cache', NULL);
+
+    if ($placement_map === NULL) {
+      // If second level cache missed: initialize the placement map
+      // and let other modules hook into this with the hook_captcha_placement_map hook.
+      // By default however, probably all Drupal core forms are already correctly
+      // handled with the best effort guess based on the 'actions' element (see below).
+      $placement_map = module_invoke_all('captcha_placement_map');
+    }
+  }
+
+  // Query the placement map.
+  if (array_key_exists($form_id, $placement_map)) {
+    $placement = $placement_map[$form_id];
+  }
+  // If no placement info is available in placement map: make a best effort guess.
+  else {
+    // If there is an "actions" button group, a good placement is just before that.
+    if (isset($form['actions']) && isset($form['actions']['#type']) && $form['actions']['#type'] === 'actions') {
+      $placement = array(
+        'path' => array(),
+        'key' => 'actions',
+        // #type 'actions' defaults to 100.
+        'weight' => (isset($form['actions']['#weight']) ? $form['actions']['#weight'] - 1 : 99),
+      );
+    }
+    else {
+      // Search the form for buttons and guess placement from it.
+      $buttons = _captcha_search_buttons($form);
+      if (count($buttons)) {
+        // Pick first button.
+        // TODO: make this more sofisticated? Use cases needed.
+        $placement = $buttons[0];
+      }
+      else {
+        // Use NULL when no buttons were found.
+        $placement = NULL;
+      }
+    }
+
+    // Store calculated placement in cache.
+    $placement_map[$form_id] = $placement;
+    variable_set('captcha_placement_map_cache', $placement_map);
+  }
+
+  return $placement;
+}
+
+/**
+ * Helper function for searching the buttons in a form.
+ *
+ * @param $form the form to search button elements in
+ * @return an array of paths to the buttons.
+ *   A path is an array of keys leading to the button, the last
+ *   item in the path is the weight of the button element
+ *   (or NULL if undefined).
+ */
+function _captcha_search_buttons($form) {
+  $buttons = array();
+  foreach (element_children($form) as $key) {
+    // Look for submit or button type elements.
+    if (isset($form[$key]['#type']) && ($form[$key]['#type'] == 'submit' || $form[$key]['#type'] == 'button')) {
+      $weight = isset($form[$key]['#weight']) ? $form[$key]['#weight'] : NULL;
+      $buttons[] = array(
+        'path' => array(),
+        'key' => $key,
+        'weight' => $weight,
+      );
+    }
+    // Process children recurively.
+    $children_buttons = _captcha_search_buttons($form[$key]);
+    foreach ($children_buttons as $b) {
+      $b['path'] = array_merge(array($key), $b['path']);
+      $buttons[] = $b;
+    }
+  }
+  return $buttons;
+}
+
+/**
+ * Helper function to insert a CAPTCHA element in a form before a given form element.
+ * @param $form the form to add the CAPTCHA element to.
+ * @param $placement information where the CAPTCHA element should be inserted.
+ *   $placement should be an associative array with fields:
+ *     - 'path': path (array of path items) of the container in the form where the
+ *       CAPTCHA element should be inserted.
+ *     - 'key': the key of the element before which the CAPTCHA element
+ *       should be inserted. If the field 'key' is undefined or NULL, the CAPTCHA will
+ *       just be appended in the container.
+ *     - 'weight': if 'key' is not NULL: should be the weight of the element defined by 'key'.
+ *       If 'key' is NULL and weight is not NULL: set the weight property of the CAPTCHA element
+ *       to this value.
+ * @param $captcha_element the CAPTCHA element to insert.
+ */
+function _captcha_insert_captcha_element(&$form, $placement, $captcha_element) {
+  // Get path, target and target weight or use defaults if not available.
+  $target_key = isset($placement['key']) ? $placement['key'] : NULL;
+  $target_weight = isset($placement['weight']) ? $placement['weight'] : NULL;
+  $path = isset($placement['path']) ? $placement['path'] : array();
+
+  // Walk through the form along the path.
+  $form_stepper = &$form;
+  foreach ($path as $step) {
+    if (isset($form_stepper[$step])) {
+      $form_stepper = & $form_stepper[$step];
+    }
+    else {
+      // Given path is invalid: stop stepping and
+      // continue in best effort (append instead of insert).
+      $target_key = NULL;
+      break;
+    }
+  }
+
+  // If no target is available: just append the CAPTCHA element to the container.
+  if ($target_key == NULL || !array_key_exists($target_key, $form_stepper)) {
+    // Optionally, set weight of CAPTCHA element.
+    if ($target_weight != NULL) {
+      $captcha_element['#weight'] = $target_weight;
+    }
+    $form_stepper['captcha'] =  $captcha_element;
+  }
+  // If there is a target available: make sure the CAPTCHA element comes right before it.
+  else {
+    // If target has a weight: set weight of CAPTCHA element a bit smaller
+    // and just append the CAPTCHA: sorting will fix the ordering anyway.
+    if ($target_weight != NULL) {
+      $captcha_element['#weight'] = $target_weight - .1;
+      $form_stepper['captcha'] =  $captcha_element;
+    }
+    else {
+      // If we can't play with weights: insert the CAPTCHA element at the right position.
+      // Because PHP lacks a function for this (array_splice() comes close,
+      // but it does not preserve the key of the inserted element), we do it by hand:
+      // chop of the end, append the CAPTCHA element and put the end back.
+      $offset = array_search($target_key, array_keys($form_stepper));
+      $end = array_splice($form_stepper, $offset);
+      $form_stepper['captcha'] =  $captcha_element;
+      foreach ($end as $k => $v) {
+        $form_stepper[$k] = $v;
+      }
+    }
+  }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+name = CAPTCHA
+description = Base CAPTCHA module for adding challenges to arbitrary forms.
+package = "Spam control"
+core = 7.x
+configure = admin/config/people/captcha
+
+files[] = captcha.module
+files[] = captcha.inc
+files[] = captcha.admin.inc
+files[] = captcha.install
+files[] = captcha.test
+
+; Information added by drupal.org packaging script on 2013-06-25
+version = "7.x-1.0"
+core = "7.x"
+project = "captcha"
+datestamp = "1372203950"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,336 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the CAPTCHA module.
+ */
+
+/**
+ * Implementation of hook_schema().
+ */
+function captcha_schema() {
+  // Table for positions and types of the challenges.
+  $schema['captcha_points'] = array(
+    'description' => 'This table describes which challenges should be added to which forms.',
+    'fields' => array(
+      'form_id' => array(
+        'description' => 'The form_id of the form to add a CAPTCHA to.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'module' => array(
+        'description' => 'The module that provides the challenge.',
+        'type' => 'varchar',
+        'length' => 64,
+      ),
+      'captcha_type' => array(
+        'description' => 'The challenge type to use.',
+        'type' => 'varchar',
+        'length' => 64,
+      ),
+    ),
+    'primary key' => array('form_id'),
+  );
+  // Table for the CAPTCHA sessions.
+  $schema['captcha_sessions'] = array(
+    'description' => 'Stores the data about CAPTCHA sessions (solution, IP address, timestamp, ...).',
+    'fields' => array(
+      'csid' => array(
+        'description' => 'CAPTCHA session ID.',
+        'type' => 'serial',
+        'not null' => TRUE,
+      ),
+      'token' => array(
+        'description' => 'One time CAPTCHA token.',
+        'type' => 'varchar',
+        'length' => 64,
+        'not null' => FALSE,
+      ),
+      'uid' => array(
+        'description' => "User's {users}.uid.",
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'sid' => array(
+        'description' => "Session ID of the user.",
+        'type' => 'varchar',
+        'length' => 64,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'ip_address' => array(
+        'description' => 'IP address of the visitor.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => FALSE,
+      ),
+      'timestamp' => array(
+        'description' => 'A Unix timestamp indicating when the challenge was generated.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'form_id' => array(
+        'description' => 'The form_id of the form where the CAPTCHA is added to.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+      ),
+      'solution' => array(
+        'description' => 'Solution of the challenge.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'status' => array(
+        'description' => 'Status of the CAPTCHA session (unsolved, solved, ...)',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'attempts' => array(
+        'description' => 'The number of attempts.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      )
+    ),
+    'primary key' => array('csid'),
+    'indexes' => array(
+      'csid_ip' => array('csid', 'ip_address'),
+    ),
+  );
+
+  return $schema;
+}
+
+/**
+ * Implementation of hook_requirements().
+ */
+function captcha_requirements($phase) {
+  $requirements = array();
+  $t = get_t();
+  if ($phase == 'runtime' && variable_get('captcha_enable_stats', FALSE)) {
+    // Show the wrong response counter in the status report.
+    $requirements['captcha_wrong_response_counter'] = array(
+      'title' => $t('CAPTCHA'),
+      'value' => format_plural(
+        variable_get('captcha_wrong_response_counter', 0),
+        'Already 1 blocked form submission',
+        'Already @count blocked form submissions'
+      ),
+      'severity' => REQUIREMENT_INFO,
+    );
+  }
+  return $requirements;
+}
+
+/**
+ * Implementation of hook_install().
+ */
+function captcha_install() {
+  $t = get_t();
+  // Insert some default CAPTCHA points.
+  $form_ids = array(
+    'contact_site_form', 'contact_personal_form',
+    'user_register_form', 'user_pass', 'user_login', 'user_login_block',
+    'forum_node_form'
+  );
+  // Add form_ids of all currently known node types too.
+  foreach (node_type_get_names() as $type => $name) {
+    $form_ids[] = 'comment_node_' . $type . '_form';
+  }
+  foreach ($form_ids as $form_id) {
+    db_insert('captcha_points')
+      ->fields(array(
+        'form_id' => $form_id,
+        'module' => NULL,
+        'captcha_type' => NULL,
+      ))
+      ->execute();
+  }
+
+  // Be friendly to your users: what to do after install?
+  drupal_set_message($t('You can now <a href="!captcha_admin">configure the CAPTCHA module</a> for your site.',
+    array('!captcha_admin' => url('admin/config/people/captcha'))), 'status');
+
+  // Explain to users that page caching may be disabled.
+  if (variable_get('cache', 0) != 0) {
+    drupal_set_message($t('Note that the CAPTCHA module disables <a href="!performance_admin">page caching</a> of pages that include a CAPTCHA challenge.',
+      array('!performance_admin' => url('admin/config/development/performance'))), 'warning');
+  }
+
+}
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function captcha_uninstall() {
+  drupal_uninstall_schema('captcha');
+  db_query("DELETE FROM {variable} WHERE name LIKE 'captcha_%'");
+  cache_clear_all('variables', 'cache');
+}
+
+/**
+ * Implementation of hook_update_N()
+ */
+function captcha_update_6200() {
+  $items = array();
+
+  // Table for the CAPTCHA sessions.
+  $schema['captcha_sessions'] = array(
+    'description' => 'Stores the data about CAPTCHA sessions (solution, IP address, timestamp, ...).',
+    'fields' => array(
+      'csid' => array(
+        'description' => 'CAPTCHA session ID.',
+        'type' => 'serial',
+        'not null' => TRUE,
+      ),
+      'uid' => array(
+        'description' => "User's {users}.uid.",
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'sid' => array(
+        'description' => "Session ID of the user.",
+        'type' => 'varchar',
+        'length' => 64,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'ip_address' => array(
+        'description' => 'IP address of the visitor.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => FALSE,
+      ),
+      'timestamp' => array(
+        'description' => 'A Unix timestamp indicating when the challenge was generated.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'form_id' => array(
+        'description' => 'The form_id of the form where the CAPTCHA is added to.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+      ),
+      'solution' => array(
+        'description' => 'Solution of the challenge.',
+        'type' => 'varchar',
+        'length' => 128,
+        'not null' => TRUE,
+        'default' => '',
+      ),
+      'status' => array(
+        'description' => 'Status of the CAPTCHA session (unsolved, solved, ...)',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'attempts' => array(
+        'description' => 'The number of attempts.',
+        'type' => 'int',
+        'not null' => TRUE,
+        'default' => 0,
+      )
+    ),
+    'primary key' => array('csid'),
+    'indexes' => array(
+      'csid_ip' => array('csid', 'ip_address'),
+    ),
+  );
+
+  db_create_table($items, 'captcha_sessions', $schema['captcha_sessions']);
+
+  return $items;
+}
+
+/**
+ * Implementation of hook_update_N()
+ * Change the captcha points with the old text CAPTCHA, which was
+ * removed from the 6.x-2.x branch, to the simple math CAPTCHA.
+ */
+function captcha_update_6201() {
+  $items = array();
+  $items[] = update_sql("UPDATE {captcha_points} SET module = 'captcha', type = 'Math' WHERE module = 'text_captcha' AND type = 'Text';");
+  return $items;
+}
+
+
+/**
+ * Implementation of hook_update_N()
+ * Add a CAPTCHA token column to captcha_sessions table.
+ */
+function captcha_update_6202() {
+  $ret = array();
+  db_add_column($ret, 'captcha_sessions', 'token', 'varchar(64)');
+  return $ret;
+}
+
+
+
+/**
+ * Implementation of hook_update_N()
+ * Rename the type field to captcha_type in captcha_points.
+ */
+function captcha_update_6203() {
+  $ret = array();
+  db_change_field($ret, 'captcha_points', 'type', 'captcha_type', array('type' => 'varchar', 'length' => 64));
+  return $ret;
+}
+
+
+/**
+ * Migrate form configuration for changed form ids in Drupal 7.
+ */
+function captcha_update_7000() {
+  // 'user_register' became 'user_register_form'.
+  db_update('captcha_points')
+    ->fields(array('form_id' => 'user_register_form'))
+    ->condition('form_id', 'user_register')
+    ->execute();
+  // 'contact_mail_page' became 'contact_site_form'.
+  db_update('captcha_points')
+    ->fields(array('form_id' => 'contact_site_form'))
+    ->condition('form_id', 'contact_mail_page')
+    ->execute();
+  // 'contact_mail_user' became 'contact_personal_form'.
+  db_update('captcha_points')
+    ->fields(array('form_id' => 'contact_personal_form'))
+    ->condition('form_id', 'contact_mail_user')
+    ->execute();
+
+  // The D6-style comment_form form_id is split per node type
+  // in D7: comment_node_{type}_form, e.g. comment_node_page_form.
+  // Get the current settings for 'comment_form'.
+  $captcha_point = db_query(
+    "SELECT * FROM {captcha_points} WHERE form_id = :comment_form_id",
+    array(':comment_form_id' => 'comment_form')
+  )->fetchObject();
+  if ($captcha_point !== FALSE) {
+    // Create entries for D7-style node form IDs.
+    $module = $captcha_point->module;
+    $captcha_type = $captcha_point->captcha_type;
+    foreach (node_type_get_names() as $type => $name) {
+      $form_id = 'comment_node_' . $type . '_form';
+      db_insert('captcha_points')
+        ->fields(array(
+          'form_id' => $form_id,
+          'module' => $module,
+          'captcha_type' => $captcha_type,
+        ))
+        ->execute();
+    }
+    // Delete outdated entry.
+    db_delete('captcha_points')
+      ->condition('form_id', 'comment_form')
+      ->execute();
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,40 @@
+(function ($) {
+
+  Drupal.behaviors.captcha = {
+    attach: function (context) {
+
+      // Turn off autocompletion for the CAPTCHA response field.
+      // We do it here with Javascript (instead of directly in the markup)
+      // because this autocomplete attribute is not standard and
+      // it would break (X)HTML compliance.
+      $("#edit-captcha-response").attr("autocomplete", "off");
+
+    }
+  };
+
+  Drupal.behaviors.captchaAdmin = {
+    attach: function (context) {
+    	// Add onclick handler to checkbox for adding a CAPTCHA description
+    	// so that the textfields for the CAPTCHA description are hidden
+    	// when no description should be added.
+      // @todo: div.form-item-captcha-description depends on theming, maybe
+      // it's better to add our own wrapper with id (instead of a class).
+    	$("#edit-captcha-add-captcha-description").click(function() {
+    		if ($("#edit-captcha-add-captcha-description").is(":checked")) {
+    			// Show the CAPTCHA description textfield(s).
+    			$("div.form-item-captcha-description").show('slow');
+    		}
+    		else {
+    			// Hide the CAPTCHA description textfield(s).
+    			$("div.form-item-captcha-description").hide('slow');
+    		}
+    	});
+    	// Hide the CAPTCHA description textfields if option is disabled on page load.
+    	if (!$("#edit-captcha-add-captcha-description").is(":checked")) {
+    		$("div.form-item-captcha-description").hide();
+    	}
+    }
+
+  };
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,743 @@
+<?php
+
+/**
+ * @file
+ * This module enables basic CAPTCHA functionality:
+ * administrators can add a CAPTCHA to desired forms that users without
+ * the 'skip CAPTCHA' permission (typically anonymous visitors) have
+ * to solve.
+ *
+ */
+
+/**
+ * Constants for CAPTCHA persistence.
+ * TODO: change these integers to strings because the CAPTCHA settings form saves them as strings in the variables table anyway?
+ */
+
+// Always add a CAPTCHA (even on every page of a multipage workflow).
+define('CAPTCHA_PERSISTENCE_SHOW_ALWAYS', 0);
+// Only one CAPTCHA has to be solved per form instance/multi-step workflow.
+define('CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE', 1);
+// Once the user answered correctly for a CAPTCHA on a certain form type,
+// no more CAPTCHAs will be offered anymore for that form.
+define('CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_TYPE', 2);
+// Once the user answered correctly for a CAPTCHA on the site,
+// no more CAPTCHAs will be offered anymore.
+define('CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL', 3);
+
+define('CAPTCHA_STATUS_UNSOLVED', 0);
+define('CAPTCHA_STATUS_SOLVED', 1);
+define('CAPTCHA_STATUS_EXAMPLE', 2);
+
+define('CAPTCHA_DEFAULT_VALIDATION_CASE_SENSITIVE', 0);
+define('CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE', 1);
+
+/**
+ * Implementation of hook_help().
+ */
+function captcha_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#captcha':
+      $output = '<p>' . t('"CAPTCHA" is an acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart". It is typically a challenge-response test to determine whether the user is human. The CAPTCHA module is a tool to fight automated submission by malicious users (spamming) of for example comments forms, user registration forms, guestbook forms, etc. You can extend the desired forms with an additional challenge, which should be easy for a human to solve correctly, but hard enough to keep automated scripts and spam bots out.') . '</p>';
+      $output .= '<p>' . t('Note that the CAPTCHA module interacts with page caching (see <a href="!performancesettings">performance settings</a>). Because the challenge should be unique for each generated form, the caching of the page it appears on is prevented. Make sure that these forms do not appear on too many pages or you will lose much caching efficiency. For example, if you put a CAPTCHA on the user login block, which typically appears on each page for anonymous visitors, caching will practically be disabled. The comment submission forms are another example. In this case you should set the <em>Location of comment submission form</em> to <em>Display on separate page</em> in the comment settings of the relevant <a href="!contenttypes">content types</a> for better caching efficiency.',
+        array(
+          '!performancesettings' => url('admin/config/development/performance'),
+          '!contenttypes' => url('admin/structure/types'),
+        )
+      ) . '</p>';
+      $output .= '<p>' . t('CAPTCHA is a trademark of Carnegie Mellon University.') . '</p>';
+      return $output;
+    case 'admin/config/people/captcha':
+    case 'admin/config/people/captcha/captcha':
+    case 'admin/config/people/captcha/captcha/settings':
+      $output = '<p>' . t('A CAPTCHA can be added to virtually each Drupal form. Some default forms are already provided in the form list, but arbitrary forms can be easily added and managed when the option <em>Add CAPTCHA administration links to forms</em> is enabled.') . '</p>';
+      $output .= '<p>' . t('Users with the <em>Skip CAPTCHA</em> <a href="@perm">permission</a> won\'t be offered a challenge. Be sure to grant this permission to the trusted users (e.g. site administrators). If you want to test a protected form, be sure to do it as a user without the <em>Skip CAPTCHA</em> permission (e.g. as anonymous user).', array('@perm' => url('admin/people/permissions'))) . '</p>';
+      return $output;
+  }
+}
+
+/**
+ * Implementation of hook_menu().
+ */
+function captcha_menu() {
+  $items = array();
+  // main configuration page of the basic CAPTCHA module
+  $items['admin/config/people/captcha'] = array(
+    'title' => 'CAPTCHA',
+    'description' => 'Administer how and where CAPTCHAs are used.',
+    'file' => 'captcha.admin.inc',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('captcha_admin_settings'),
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+  // the default local task (needed when other modules want to offer
+  // alternative CAPTCHA types and their own configuration page as local task)
+  $items['admin/config/people/captcha/captcha'] = array(
+    'title' => 'CAPTCHA',
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+    'weight' => -20,
+  );
+  $items['admin/config/people/captcha/captcha/settings'] = array(
+    'title' => 'General settings',
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+    'weight' => 0,
+  );
+  $items['admin/config/people/captcha/captcha/examples'] = array(
+    'title' => 'Examples',
+    'description' => 'An overview of the available challenge types with examples.',
+    'file' => 'captcha.admin.inc',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('captcha_examples', 6, 7),
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_LOCAL_TASK,
+    'weight' => 5,
+  );
+  $items['admin/config/people/captcha/captcha/captcha_point'] = array(
+    'title' => 'CAPTCHA point administration',
+    'file' => 'captcha.admin.inc',
+    'page callback' => 'captcha_point_admin',
+    'page arguments' => array(6, 7),
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_CALLBACK,
+  );
+  return $items;
+}
+
+/**
+ * Implementation of hook_permission().
+ */
+function captcha_permission() {
+  return array(
+    'administer CAPTCHA settings' => array(
+      'title' => t('Administer CAPTCHA settings'),
+    ),
+    'skip CAPTCHA' => array(
+      'title' => t('Skip CAPTCHA'),
+      'description' => t('Users with this permission will not be offered a CAPTCHA.'),
+    ),
+  );
+}
+
+/**
+ * Implementation of hook_theme().
+ */
+function captcha_theme() {
+  return array(
+    'captcha_admin_settings_captcha_points' => array(
+      'render element' => 'form',
+    ),
+    'captcha' => array(
+      'render element' => 'element',
+    ),
+  );
+}
+
+/**
+ * Implementation of hook_cron().
+ *
+ * Remove old entries from captcha_sessions table.
+ */
+function captcha_cron() {
+  // Remove challenges older than 1 day.
+  db_delete('captcha_sessions')
+    ->condition('timestamp', REQUEST_TIME - 60*60*24, '<')
+    ->execute();
+}
+
+
+/**
+ * Implementation of hook_element_info().
+ */
+function captcha_element_info() {
+  // Define the CAPTCHA form element with default properties.
+  $captcha_element = array(
+    '#input' => TRUE,
+    '#process' => array('captcha_element_process'),
+    // The type of challenge: e.g. 'default', 'none', 'captcha/Math', 'image_captcha/Image', ...
+    '#captcha_type' => 'default',
+    '#default_value' => '',
+    // CAPTCHA in admin mode: presolve the CAPTCHA and always show it (despite previous successful responses).
+    '#captcha_admin_mode' => FALSE,
+    // The default CAPTCHA validation function.
+    // TODO: should this be a single string or an array of strings (combined in OR fashion)?
+    '#captcha_validate' => 'captcha_validate_strict_equality',
+  );
+  // Override the default CAPTCHA validation function for case insensitive validation.
+  // TODO: shouldn't this be done somewhere else, e.g. in form_alter?
+  if (CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE == variable_get('captcha_default_validation', CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE)) {
+    $captcha_element['#captcha_validate'] = 'captcha_validate_case_insensitive_equality';
+  }
+  return array('captcha' => $captcha_element);
+}
+
+/**
+ * Process callback for CAPTCHA form element.
+ */
+function captcha_element_process($element, &$form_state, $complete_form) {
+
+  module_load_include('inc', 'captcha');
+
+  // Add Javascript for general CAPTCHA functionality.
+  drupal_add_js(drupal_get_path('module', 'captcha') . '/captcha.js');
+
+  // Prevent caching of the page with CAPTCHA elements.
+  // This needs to be done even if the CAPTCHA will be ommitted later:
+  // other untrusted users should not get a cached page when
+  // the current untrusted user can skip the current CAPTCHA.
+  global $conf;
+  $conf['cache'] = FALSE;
+
+  // Get the form ID of the form we are currently processing (which is not
+  // necessary the same form that is submitted (if any).
+  $this_form_id = $complete_form['form_id']['#value'];
+
+  // Get the CAPTCHA session ID.
+  // If there is a submitted form: try to retrieve and reuse the
+  // CAPTCHA session ID from the posted data.
+  list($posted_form_id, $posted_captcha_sid) = _captcha_get_posted_captcha_info($element, $form_state, $this_form_id);
+  if ($this_form_id == $posted_form_id && isset($posted_captcha_sid)) {
+    $captcha_sid = $posted_captcha_sid;
+  }
+  else {
+    // Generate a new CAPTCHA session if we could not reuse one from a posted form.
+    $captcha_sid = _captcha_generate_captcha_session($this_form_id, CAPTCHA_STATUS_UNSOLVED);
+  }
+
+  // Store CAPTCHA session ID as hidden field.
+  // Strictly speaking, it is not necessary to send the CAPTCHA session id
+  // with the form, as the one time CAPTCHA token (see lower) is enough.
+  // However, we still send it along, because it can help debugging
+  // problems on live sites with only access to the markup.
+  $element['captcha_sid'] = array(
+    '#type' => 'hidden',
+    '#value' => $captcha_sid,
+  );
+
+  // Additional one time CAPTCHA token: store in database and send with form.
+  $captcha_token = md5(mt_rand());
+  db_update('captcha_sessions')
+    ->fields(array('token' => $captcha_token))
+    ->condition('csid', $captcha_sid)
+    ->execute();
+  $element['captcha_token'] = array(
+    '#type' => 'hidden',
+    '#value' => $captcha_token,
+  );
+
+  // Get implementing module and challenge for CAPTCHA.
+  list($captcha_type_module, $captcha_type_challenge) = _captcha_parse_captcha_type($element['#captcha_type']);
+
+  // Store CAPTCHA information for further processing in
+  // - $form_state['captcha_info'], which survives a form rebuild (e.g. node
+  //   preview), useful in _captcha_get_posted_captcha_info().
+  // - $element['#captcha_info'], for post processing functions that do not
+  //   receive a $form_state argument (e.g. the pre_render callback).
+  $form_state['captcha_info'] = array(
+    'this_form_id' => $this_form_id,
+    'posted_form_id' => $posted_form_id,
+    'captcha_sid' => $captcha_sid,
+    'module' => $captcha_type_module,
+    'captcha_type' => $captcha_type_challenge,
+  );
+  $element['#captcha_info'] = array(
+    'form_id' => $this_form_id,
+    'captcha_sid' => $captcha_sid,
+  );
+
+
+  if (_captcha_required_for_user($captcha_sid, $this_form_id) || $element['#captcha_admin_mode']) {
+    // Generate a CAPTCHA and its solution
+    // (note that the CAPTCHA session ID is given as third argument).
+    $captcha = module_invoke($captcha_type_module, 'captcha', 'generate', $captcha_type_challenge, $captcha_sid);
+    if (!isset($captcha['form']) || !isset($captcha['solution'])) {
+      // The selected module did not return what we expected: log about it and quit.
+      watchdog('CAPTCHA',
+        'CAPTCHA problem: unexpected result from hook_captcha() of module %module when trying to retrieve challenge type %type for form %form_id.',
+        array('%type' => $captcha_type_challenge, '%module' => $captcha_type_module, '%form_id' => $this_form_id),
+        WATCHDOG_ERROR);
+      return $element;
+    }
+    // Add form elements from challenge as children to CAPTCHA form element.
+    $element['captcha_widgets'] = $captcha['form'];
+
+    // Add a validation callback for the CAPTCHA form element (when not in admin mode).
+    if (!$element['#captcha_admin_mode']) {
+      $element['#element_validate'] = array('captcha_validate');
+    }
+
+    // Set a custom CAPTCHA validate function if requested.
+    if (isset($captcha['captcha_validate'])) {
+      $element['#captcha_validate'] = $captcha['captcha_validate'];
+    }
+
+    // Set the theme function.
+    $element['#theme'] = 'captcha';
+
+    // Add pre_render callback for additional CAPTCHA processing.
+    if (!isset($element['#pre_render'])) {
+      $element['#pre_render'] = array();
+    }
+    $element['#pre_render'][] = 'captcha_pre_render_process';
+
+    // Store the solution in the #captcha_info array.
+    $element['#captcha_info']['solution'] = $captcha['solution'];
+
+    // Make sure we can use a top level form value $form_state['values']['captcha_response'], even if the form has #tree=true.
+    $element['#tree'] = FALSE;
+
+  }
+
+  return $element;
+}
+
+
+/**
+ * Theme function for a CAPTCHA element.
+ *
+ * Render it in a fieldset if a description of the CAPTCHA
+ * is available. Render it as is otherwise.
+ */
+function theme_captcha($variables) {
+  $element = $variables['element'];
+  if (!empty($element['#description']) && isset($element['captcha_widgets'])) {
+    $fieldset = array(
+      '#type' => 'fieldset',
+      '#title' => t('CAPTCHA'),
+      '#description' => $element['#description'],
+      '#children' => drupal_render_children($element),
+      '#attributes' => array('class' => array('captcha')),
+    );
+    return theme('fieldset', array('element' => $fieldset));
+  }
+  else {
+    return '<div class="captcha">' . drupal_render_children($element) . '</div>';
+  }
+}
+
+
+/**
+ * Implementation of hook_form_alter().
+ *
+ * This function adds a CAPTCHA to forms for untrusted users if needed and adds
+ * CAPTCHA administration links for site administrators if this option is enabled.
+ */
+function captcha_form_alter(&$form, &$form_state, $form_id) {
+
+  if (!user_access('skip CAPTCHA')) {
+    // Visitor does not have permission to skip CAPTCHAs.
+    module_load_include('inc', 'captcha');
+
+    // Get CAPTCHA type and module for given form_id.
+    $captcha_point = captcha_get_form_id_setting($form_id);
+    if ($captcha_point && $captcha_point->captcha_type) {
+      module_load_include('inc', 'captcha');
+      // Build CAPTCHA form element.
+      $captcha_element = array(
+        '#type' => 'captcha',
+        '#captcha_type' => $captcha_point->module . '/' . $captcha_point->captcha_type,
+      );
+      // Add a CAPTCHA description if required.
+      if (variable_get('captcha_add_captcha_description', TRUE)) {
+        $captcha_element['#description'] = _captcha_get_description();
+      }
+
+      // Get placement in form and insert in form.
+      $captcha_placement = _captcha_get_captcha_placement($form_id, $form);
+      _captcha_insert_captcha_element($form, $captcha_placement, $captcha_element);
+    }
+  }
+  else if (
+  variable_get('captcha_administration_mode', FALSE)
+  && user_access('administer CAPTCHA settings')
+  && (arg(0) != 'admin' || variable_get('captcha_allow_on_admin_pages', FALSE))
+  ) {
+    // Add CAPTCHA administration tools.
+    module_load_include('inc', 'captcha');
+
+    $captcha_point = captcha_get_form_id_setting($form_id);
+    // For administrators: show CAPTCHA info and offer link to configure it
+    $captcha_element = array(
+      '#type' => 'fieldset',
+      '#title' => t('CAPTCHA'),
+      '#collapsible' => TRUE,
+      '#collapsed' => TRUE,
+      '#attributes' => array('class' => array('captcha-admin-links')),
+    );
+    if ($captcha_point !== NULL && $captcha_point->captcha_type) {
+      $captcha_element['#title'] = t('CAPTCHA: challenge "@type" enabled', array('@type' => $captcha_point->captcha_type));
+      $captcha_element['#description'] = t('Untrusted users will see a CAPTCHA here (<a href="@settings">general CAPTCHA settings</a>).',
+        array('@settings' => url('admin/config/people/captcha'))
+      );
+      $captcha_element['challenge'] = array(
+        '#type' => 'item',
+        '#title' => t('Enabled challenge'),
+        '#markup' => t('%type by module %module (<a href="@change">change</a>, <a href="@disable">disable</a>)', array(
+          '%type' => $captcha_point->captcha_type,
+          '%module' => $captcha_point->module,
+          '@change' => url("admin/config/people/captcha/captcha/captcha_point/$form_id", array('query' => drupal_get_destination())),
+          '@disable' => url("admin/config/people/captcha/captcha/captcha_point/$form_id/disable", array('query' => drupal_get_destination())),
+        )),
+      );
+      // Add an example challenge with solution.
+      // This does not work with the reCAPTCHA and Egglue challenges as
+      // discussed in http://drupal.org/node/487032 and
+      // http://drupal.org/node/525586. As a temporary workaround, we
+      // blacklist the reCAPTCHA and Egglue challenges and do not show
+      // an example challenge.
+      // TODO: Once the issues mentioned above are fixed, this workaround
+      // should be removed.
+      if ($captcha_point->module != 'recaptcha' && $captcha_point->module != 'egglue_captcha') {
+        $captcha_element['example'] = array(
+          '#type' => 'fieldset',
+          '#title' => t('Example'),
+          '#description' => t('This is a pre-solved, non-blocking example of this challenge.'),
+        );
+        $captcha_element['example']['example_captcha'] = array(
+          '#type' => 'captcha',
+          '#captcha_type' => $captcha_point->module . '/' . $captcha_point->captcha_type,
+          '#captcha_admin_mode' => TRUE,
+        );
+      }
+    }
+    else {
+      $captcha_element['#title'] = t('CAPTCHA: no challenge enabled');
+      $captcha_element['add_captcha'] = array(
+        '#markup' => l(t('Place a CAPTCHA here for untrusted users.'), "admin/config/people/captcha/captcha/captcha_point/$form_id", array('query' => drupal_get_destination()))
+      );
+
+    }
+    // Get placement in form and insert in form.
+    $captcha_placement = _captcha_get_captcha_placement($form_id, $form);
+    _captcha_insert_captcha_element($form, $captcha_placement, $captcha_element);
+
+  }
+
+  // Add a warning about caching on the Perfomance settings page.
+  if ($form_id == 'system_performance_settings') {
+    $icon = theme('image', array('path' => 'misc/watchdog-warning.png', 'width' => 18, 'height' => 18, 'alt' => t('warning'), 'title' => t('warning')));
+    $form['caching']['captcha'] = array(
+      '#type' => 'item',
+      '#title' => t('CAPTCHA'),
+      '#markup' => t('!icon The CAPTCHA module will disable the caching of pages that contain a CAPTCHA element.', array(
+        '!icon' => '<span class="icon">' . $icon . '</span>')
+      ),
+      '#attributes' => array('class' => array('warning')),
+    );
+  }
+
+}
+
+/**
+ * CAPTCHA validation function to tests strict equality.
+ * @param $solution the solution of the test.
+ * @param $response the response to the test.
+ * @return TRUE when strictly equal, FALSE otherwise.
+ */
+function captcha_validate_strict_equality($solution, $response) {
+  return $solution === $response;
+}
+
+/**
+ * CAPTCHA validation function to tests case insensitive equality.
+ * @param $solution the solution of the test.
+ * @param $response the response to the test.
+ * @return TRUE when case insensitive equal, FALSE otherwise.
+ */
+function captcha_validate_case_insensitive_equality($solution, $response) {
+  return drupal_strtolower($solution) === drupal_strtolower($response);
+}
+
+/**
+ * CAPTCHA validation function to tests equality while ignoring spaces.
+ * @param $solution the solution of the test.
+ * @param $response the response to the test.
+ * @return TRUE when equal (ignoring spaces), FALSE otherwise.
+ */
+function captcha_validate_ignore_spaces($solution, $response) {
+  return preg_replace('/\s/', '', $solution) === preg_replace('/\s/', '', $response);
+}
+
+/**
+ * CAPTCHA validation function to tests case insensitive equality while ignoring spaces.
+ * @param $solution the solution of the test.
+ * @param $response the response to the test.
+ * @return TRUE when equal (ignoring spaces), FALSE otherwise.
+ */
+function captcha_validate_case_insensitive_ignore_spaces($solution, $response) {
+  return preg_replace('/\s/', '', drupal_strtolower($solution)) === preg_replace('/\s/', '', drupal_strtolower($response));
+}
+
+/**
+ * Helper function for getting the posted CAPTCHA info (posted form_id and
+ * CAPTCHA sessions ID) from a form in case it is posted.
+ *
+ * This function hides the form processing mess for several use cases an
+ * browser bug workarounds.
+ * For example: $element['#post'] can typically be used to get the posted
+ * form_id and captcha_sid, but in the case of node preview situations
+ * (with correct CAPTCHA response) that does not work and we can get them from
+ * $form_state['clicked_button']['#post'].
+ * However with Internet Explorer 7, the latter does not work either when
+ * submitting the forms (with only one text field) with the enter key
+ * (see http://drupal.org/node/534168), in which case we also have to check
+ * $form_state['buttons']['button']['0']['#post'].
+ *
+ * @todo for Drupal 7 version: is this IE7 workaround still needed?
+ *
+ * @param $element the CAPTCHA element.
+ * @param $form_state the form state structure to extract the info from.
+ * @param $this_form_id the form ID of the form we are currently processing
+ *     (which is not necessarily the form that was posted).
+ *
+ * @return an array with $posted_form_id and $post_captcha_sid (with NULL values
+ *     if the values could not be found, e.g. for a fresh form).
+ */
+function _captcha_get_posted_captcha_info($element, $form_state, $this_form_id) {
+  if ($form_state['submitted'] && isset($form_state['captcha_info'])) {
+    // We are handling (or rebuilding) an already submitted form,
+    // so we already determined the posted form ID and CAPTCHA session ID
+    // for this form (from before submitting). Reuse this info.
+    $posted_form_id = $form_state['captcha_info']['posted_form_id'];
+    $posted_captcha_sid = $form_state['captcha_info']['captcha_sid'];
+  }
+  else {
+    // We have to determine the posted form ID and CAPTCHA session ID
+    // from the post data.
+    // Because we possibly use raw post data here,
+    // we should be extra cautious and filter this data.
+    $posted_form_id = isset($form_state['input']['form_id']) ?
+      preg_replace("/[^a-z0-9_]/", "", (string) $form_state['input']['form_id'])
+      : NULL;
+    $posted_captcha_sid = isset($form_state['input']['captcha_sid']) ?
+      (int) $form_state['input']['captcha_sid']
+      : NULL;
+    $posted_captcha_token = isset($form_state['input']['captcha_token']) ?
+      preg_replace("/[^a-zA-Z0-9]/", "", (string) $form_state['input']['captcha_token'])
+      : NULL;
+
+    if ($posted_form_id == $this_form_id) {
+      // Check if the posted CAPTCHA token is valid for the posted CAPTCHA
+      // session ID. Note that we could just check the validity of the CAPTCHA
+      // token and extract the CAPTCHA session ID from that (without looking at
+      // the actual posted CAPTCHA session ID). However, here we check both
+      // the posted CAPTCHA token and session ID: it is a bit more stringent
+      // and the database query should also be more efficient (because there is
+      // an index on the CAPTCHA session ID).
+      if ($posted_captcha_sid != NULL) {
+        $expected_captcha_token = db_query(
+          "SELECT token FROM {captcha_sessions} WHERE csid = :csid",
+          array(':csid' => $posted_captcha_sid)
+        )->fetchField();
+        if ($expected_captcha_token !== $posted_captcha_token) {
+          drupal_set_message(t('CAPTCHA session reuse attack detected.'), 'error');
+          // Invalidate the CAPTCHA session.
+          $posted_captcha_sid = NULL;
+        }
+        // Invalidate CAPTCHA token to avoid reuse.
+        db_update('captcha_sessions')
+          ->fields(array('token' => NULL))
+          ->condition('csid', $posted_captcha_sid);
+      }
+    }
+    else {
+      // The CAPTCHA session ID is specific to the posted form.
+      // Return NULL, so a new session will be generated for this other form.
+      $posted_captcha_sid = NULL;
+    }
+  }
+  return array($posted_form_id, $posted_captcha_sid);
+}
+
+/**
+ * CAPTCHA validation handler.
+ *
+ * This function is placed in the main captcha.module file to make sure that
+ * it is available (even for cached forms, which don't fire
+ * captcha_form_alter(), and subsequently don't include additional include
+ * files).
+ */
+function captcha_validate($element, &$form_state) {
+
+  $captcha_info = $form_state['captcha_info'];
+  $form_id = $captcha_info['this_form_id'];
+
+  // Get CAPTCHA response.
+  $captcha_response = $form_state['values']['captcha_response'];
+
+  // Get CAPTCHA session from CAPTCHA info
+  // TODO: is this correct in all cases: see comment and code in previous revisions?
+  $csid = $captcha_info['captcha_sid'];
+
+  $solution = db_query(
+    'SELECT solution FROM {captcha_sessions} WHERE csid = :csid',
+    array(':csid' => $csid)
+    )
+    ->fetchField();
+
+  // @todo: what is the result when there is no entry for the captcha_session? in D6 it was FALSE, what in D7?
+  if ($solution === FALSE) {
+    // Unknown challenge_id.
+    // TODO: this probably never happens anymore now that there is detection
+    // for CAPTCHA session reuse attacks in _captcha_get_posted_captcha_info().
+    form_set_error('captcha', t('CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists.'));
+    watchdog('CAPTCHA',
+      'CAPTCHA validation error: unknown CAPTCHA session ID (%csid).',
+      array('%csid' => var_export($csid, TRUE)),
+      WATCHDOG_ERROR);
+  }
+  else {
+    // Get CAPTCHA validate function or fall back on strict equality.
+    $captcha_validate = $element['#captcha_validate'];
+    if (!function_exists($captcha_validate)) {
+       $captcha_validate = 'captcha_validate_strict_equality';
+    }
+    // Check the response with the CAPTCHA validation function.
+    // Apart from the traditional expected $solution and received $response,
+    // we also provide the CAPTCHA $element and $form_state arrays for more advanced use cases.
+    if ($captcha_validate($solution, $captcha_response, $element, $form_state)) {
+      // Correct answer.
+
+      // Store form_id in session (but only if it is useful to do so, avoid setting stuff in session unnecessarily).
+      $captcha_persistence = variable_get('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+      if ($captcha_persistence == CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL || $captcha_persistence == CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_TYPE) {
+        $_SESSION['captcha_success_form_ids'][$form_id] = $form_id;
+      }
+
+      // Record success.
+      db_update('captcha_sessions')
+        ->condition('csid', $csid)
+        ->fields(array('status' => CAPTCHA_STATUS_SOLVED))
+        ->expression('attempts', 'attempts + 1')
+        ->execute();
+    }
+    else {
+      // Wrong answer.
+      db_update('captcha_sessions')
+        ->condition('csid', $csid)
+        ->expression('attempts', 'attempts + 1')
+        ->execute();
+      // set form error
+      form_set_error('captcha_response', t('The answer you entered for the CAPTCHA was not correct.'));
+      // update wrong response counter
+      if (variable_get('captcha_enable_stats', FALSE)) {
+        variable_set('captcha_wrong_response_counter', variable_get('captcha_wrong_response_counter', 0) + 1);
+      }
+      // log to watchdog if needed
+      if (variable_get('captcha_log_wrong_responses', FALSE)) {
+        watchdog('CAPTCHA',
+          '%form_id post blocked by CAPTCHA module: challenge %challenge (by module %module), user answered "@response", but the solution was "@solution".',
+          array('%form_id' => $form_id,
+            '@response' => $captcha_response, '@solution' => $solution,
+            '%challenge' => $captcha_info['captcha_type'], '%module' => $captcha_info['module'],
+          ),
+          WATCHDOG_NOTICE);
+      }
+    }
+  }
+}
+
+/**
+ * Pre-render callback for additional processing of a CAPTCHA form element.
+ *
+ * This encompasses tasks that should happen after the general FAPI processing
+ * (building, submission and validation) but before rendering (e.g. storing the solution).
+ *
+ * @param $element the CAPTCHA form element
+ * @return the manipulated element
+ */
+function captcha_pre_render_process($element) {
+  module_load_include('inc', 'captcha');
+
+  // Get form and CAPTCHA information.
+  $captcha_info = $element['#captcha_info'];
+  $form_id = $captcha_info['form_id'];
+  $captcha_sid = (int)($captcha_info['captcha_sid']);
+  // Check if CAPTCHA is still required.
+  // This check is done in a first phase during the element processing
+  // (@see captcha_process), but it is also done here for better support
+  // of multi-page forms. Take previewing a node submission for example:
+  // when the challenge is solved correctely on preview, the form is still
+  // not completely submitted, but the CAPTCHA can be skipped.
+  if (_captcha_required_for_user($captcha_sid, $form_id) || $element['#captcha_admin_mode']) {
+    // Update captcha_sessions table: store the solution of the generated CAPTCHA.
+    _captcha_update_captcha_session($captcha_sid, $captcha_info['solution']);
+
+    // Handle the response field if it is available and if it is a textfield.
+    if (isset($element['captcha_widgets']['captcha_response']['#type']) && $element['captcha_widgets']['captcha_response']['#type'] == 'textfield') {
+      // Before rendering: presolve an admin mode challenge or
+      // empty the value of the captcha_response form item.
+      $value = $element['#captcha_admin_mode'] ? $captcha_info['solution'] : '';
+      $element['captcha_widgets']['captcha_response']['#value'] = $value;
+    }
+  }
+  else {
+    // Remove CAPTCHA widgets from form.
+    unset($element['captcha_widgets']);
+  }
+
+  return $element;
+}
+
+/**
+ * Default implementation of hook_captcha().
+ */
+function captcha_captcha($op, $captcha_type = '') {
+  switch ($op) {
+    case 'list':
+      return array('Math');
+      break;
+
+    case 'generate':
+      if ($captcha_type == 'Math') {
+        $result = array();
+        $answer = mt_rand(1, 20);
+        $x = mt_rand(1, $answer);
+        $y = $answer - $x;
+        $result['solution'] = "$answer";
+        // Build challenge widget.
+        // Note that we also use t() for the math challenge itself. This makes
+        // it possible to 'rephrase' the challenge a bit through localization
+        // or string overrides.
+        $result['form']['captcha_response'] = array(
+          '#type' => 'textfield',
+          '#title' => t('Math question'),
+          '#description' => t('Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.'),
+          '#field_prefix' => t('@x + @y = ', array('@x' => $x, '@y' => $y)),
+          '#size' => 4,
+          '#maxlength' => 2,
+          '#required' => TRUE,
+        );
+        return $result;
+      }
+      elseif ($captcha_type == 'Test') {
+        // This challenge is not visible through the administrative interface
+        // as it is not listed in captcha_captcha('list'),
+        // but it is meant for debugging and testing purposes.
+        // TODO for Drupal 7 version: This should be done with a mock module,
+        // but Drupal 6 does not support this (mock modules can not be hidden).
+        $result = array(
+          'solution' => 'Test 123',
+          'form' => array(),
+        );
+        $result['form']['captcha_response'] = array(
+          '#type' => 'textfield',
+          '#title' => t('Test one two three'),
+          '#required' => TRUE,
+        );
+        return $result;
+      }
+      break;
+  }
+}
+
+/**
+ * Implements hook_modules_enabled.
+ */
+function captcha_modules_enabled() {
+  // When new modules are enabled: clear the CAPTCHA placement cache, so that
+  // new hook_captcha_placement_map hooks can be triggered.
+  variable_del('captcha_placement_map_cache');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1139 @@
+<?php
+
+/**
+ * @file
+ * Tests for CAPTCHA module.
+ */
+
+// TODO: write test for CAPTCHAs on admin pages
+// TODO: test for default challenge type
+// TODO: test about placement (comment form, node forms, log in form, etc)
+// TODO: test if captcha_cron does it work right
+// TODO: test custom CAPTCHA validation stuff
+// TODO: test if entry on status report (Already X blocked form submissions) works
+// TODO: test space ignoring validation of image CAPTCHA
+
+// TODO: refactor the 'comment_body[' . LANGUAGE_NONE . '][0][value]' stuff
+
+// Some constants for better reuse.
+define('CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE',
+  'The answer you entered for the CAPTCHA was not correct.');
+
+define('CAPTCHA_SESSION_REUSE_ATTACK_ERROR_MESSAGE',
+  'CAPTCHA session reuse attack detected.');
+
+define('CAPTCHA_UNKNOWN_CSID_ERROR_MESSAGE',
+  'CAPTCHA validation error: unknown CAPTCHA session ID. Contact the site administrator if this problem persists.');
+
+
+
+/**
+ * Base class for CAPTCHA tests.
+ *
+ * Provides common setup stuff and various helper functions
+ */
+abstract class CaptchaBaseWebTestCase extends DrupalWebTestCase {
+
+  /**
+   * User with various administrative permissions.
+   * @var Drupal user
+   */
+  protected $admin_user;
+
+  /**
+   * Normal visitor with limited permissions
+   * @var Drupal user;
+   */
+  protected $normal_user;
+
+  /**
+   * Form ID of comment form on standard (page) node
+   * @var string
+   */
+  const COMMENT_FORM_ID = 'comment_node_page_form';
+
+  /**
+   * Drupal path of the (general) CAPTCHA admin page
+   */
+  const CAPTCHA_ADMIN_PATH = 'admin/config/people/captcha';
+
+
+  function setUp() {
+    // Load two modules: the captcha module itself and the comment module for testing anonymous comments.
+    parent::setUp('captcha', 'comment');
+    module_load_include('inc', 'captcha');
+
+    // Create a normal user.
+    $permissions = array(
+      'access comments', 'post comments', 'skip comment approval',
+      'access content', 'create page content', 'edit own page content',
+    );
+    $this->normal_user = $this->drupalCreateUser($permissions);
+
+    // Create an admin user.
+    $permissions[] = 'administer CAPTCHA settings';
+    $permissions[] = 'skip CAPTCHA';
+    $permissions[] = 'administer permissions';
+    $permissions[] = 'administer content types';
+    $this->admin_user = $this->drupalCreateUser($permissions);
+
+    // Put comments on page nodes on a separate page (default in D7: below post).
+    variable_set('comment_form_location_page', COMMENT_FORM_SEPARATE_PAGE);
+
+  }
+
+  /**
+   * Assert that the response is accepted:
+   * no "unknown CSID" message, no "CSID reuse attack detection" message,
+   * no "wrong answer" message.
+   */
+  protected function assertCaptchaResponseAccepted() {
+    // There should be no error message about unknown CAPTCHA session ID.
+    $this->assertNoText(t(CAPTCHA_UNKNOWN_CSID_ERROR_MESSAGE),
+      'CAPTCHA response should be accepted (known CSID).',
+      'CAPTCHA');
+    // There should be no error message about CSID reuse attack.
+    $this->assertNoText(t(CAPTCHA_SESSION_REUSE_ATTACK_ERROR_MESSAGE),
+      'CAPTCHA response should be accepted (no CAPTCHA session reuse attack detection).',
+      'CAPTCHA');
+    // There should be no error message about wrong response.
+    $this->assertNoText(t(CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE),
+      'CAPTCHA response should be accepted (correct response).',
+      'CAPTCHA');
+  }
+
+  /**
+   * Assert that there is a CAPTCHA on the form or not.
+   * @param bool $presence whether there should be a CAPTCHA or not.
+   */
+  protected function assertCaptchaPresence($presence) {
+    if ($presence) {
+      $this->assertText(_captcha_get_description(),
+        'There should be a CAPTCHA on the form.', 'CAPTCHA');
+    }
+    else {
+      $this->assertNoText(_captcha_get_description(),
+        'There should be no CAPTCHA on the form.', 'CAPTCHA');
+    }
+  }
+
+  /**
+   * Helper function to create a node with comments enabled.
+   *
+   * @return
+   *   Created node object.
+   */
+  protected function createNodeWithCommentsEnabled($type='page') {
+    $node_settings = array(
+      'type' => $type,
+      'comment' => COMMENT_NODE_OPEN,
+    );
+    $node = $this->drupalCreateNode($node_settings);
+    return $node;
+  }
+
+  /**
+   * Helper function to generate a form values array for comment forms
+   */
+  protected function getCommentFormValues() {
+    $edit = array(
+      'subject' => 'comment_subject ' . $this->randomName(32),
+      'comment_body[' . LANGUAGE_NONE . '][0][value]' => 'comment_body ' . $this->randomName(256),
+    );
+    return $edit;
+  }
+
+  /**
+   * Helper function to generate a form values array for node forms
+   */
+  protected function getNodeFormValues() {
+    $edit = array(
+      'title' => 'node_title ' . $this->randomName(32),
+      'body[' . LANGUAGE_NONE . '][0][value]' => 'node_body ' . $this->randomName(256),
+    );
+    return $edit;
+  }
+
+
+  /**
+   * Get the CAPTCHA session id from the current form in the browser.
+   */
+  protected function getCaptchaSidFromForm() {
+    $elements = $this->xpath('//input[@name="captcha_sid"]');
+    $captcha_sid = (int) $elements[0]['value'];
+    return $captcha_sid;
+  }
+  /**
+   * Get the CAPTCHA token from the current form in the browser.
+   */
+  protected function getCaptchaTokenFromForm() {
+    $elements = $this->xpath('//input[@name="captcha_token"]');
+    $captcha_token = (int) $elements[0]['value'];
+    return $captcha_token;
+  }
+
+  /**
+   * Get the solution of the math CAPTCHA from the current form in the browser.
+   */
+  protected function getMathCaptchaSolutionFromForm() {
+    // Get the math challenge.
+    $elements = $this->xpath('//div[@class="form-item form-type-textfield form-item-captcha-response"]/span[@class="field-prefix"]');
+    $challenge = (string) $elements[0];
+    // Extract terms and operator from challenge.
+    $matches = array();
+    $ret = preg_match('/\\s*(\\d+)\\s*(-|\\+)\\s*(\\d+)\\s*=\\s*/', $challenge, $matches);
+    // Solve the challenge
+    $a = (int) $matches[1];
+    $b = (int) $matches[3];
+    $solution = $matches[2] == '-' ? $a - $b : $a + $b;
+    return $solution;
+  }
+
+  /**
+   * Helper function to allow comment posting for anonymous users.
+   */
+  protected function allowCommentPostingForAnonymousVisitors() {
+    // Log in as admin.
+    $this->drupalLogin($this->admin_user);
+    // Post user permissions form
+    $edit = array(
+      '1[access comments]' => true,
+      '1[post comments]' => true,
+      '1[skip comment approval]' => true,
+    );
+    $this->drupalPost('admin/people/permissions', $edit, 'Save permissions');
+    $this->assertText('The changes have been saved.');
+    // Log admin out
+    $this->drupalLogout();
+  }
+
+}
+
+
+
+class CaptchaTestCase extends CaptchaBaseWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('General CAPTCHA functionality'),
+      'description' => t('Testing of the basic CAPTCHA functionality.'),
+      'group' => t('CAPTCHA'),
+    );
+  }
+
+  /**
+   * Testing the protection of the user log in form.
+   */
+  function testCaptchaOnLoginForm() {
+    // Create user and test log in without CAPTCHA.
+    $user = $this->drupalCreateUser();
+    $this->drupalLogin($user);
+    // Log out again.
+    $this->drupalLogout();
+
+    // Set a CAPTCHA on login form
+    captcha_set_form_id_setting('user_login', 'captcha/Math');
+
+    // Check if there is a CAPTCHA on the login form (look for the title).
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+
+    // Try to log in, which should fail.
+    $edit = array(
+      'name' => $user->name,
+      'pass' => $user->pass_raw,
+      'captcha_response' => '?',
+    );
+    $this->drupalPost('user', $edit, t('Log in'));
+    // Check for error message.
+    $this->assertText(t(CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE),
+      'CAPTCHA should block user login form', 'CAPTCHA');
+
+    // And make sure that user is not logged in: check for name and password fields on ?q=user
+    $this->drupalGet('user');
+    $this->assertField('name', t('Username field found.'), 'CAPTCHA');
+    $this->assertField('pass', t('Password field found.'), 'CAPTCHA');
+
+  }
+
+
+  /**
+   * Assert function for testing if comment posting works as it should.
+   *
+   * Creates node with comment writing enabled, tries to post comment
+   * with given CAPTCHA response (caller should enable the desired
+   * challenge on page node comment forms) and checks if the result is as expected.
+   *
+   * @param $captcha_response the response on the CAPTCHA
+   * @param $should_pass boolean describing if the posting should pass or should be blocked
+   * @param $message message to prefix to nested asserts
+   */
+  protected function assertCommentPosting($captcha_response, $should_pass, $message) {
+    // Make sure comments on pages can be saved directely without preview.
+    variable_set('comment_preview_page', DRUPAL_OPTIONAL);
+
+    // Create a node with comments enabled.
+    $node = $this->createNodeWithCommentsEnabled();
+
+    // Post comment on node.
+    $edit = $this->getCommentFormValues();
+    $comment_subject = $edit['subject'];
+    $comment_body = $edit['comment_body[' . LANGUAGE_NONE . '][0][value]'];
+    $edit['captcha_response'] = $captcha_response;
+    $this->drupalPost('comment/reply/' . $node->nid, $edit, t('Save'));
+
+    if ($should_pass) {
+      // There should be no error message.
+      $this->assertCaptchaResponseAccepted();
+      // Get node page and check that comment shows up.
+      $this->drupalGet('node/' . $node->nid);
+      $this->assertText($comment_subject, $message .' Comment should show up on node page.', 'CAPTCHA');
+      $this->assertText($comment_body, $message . ' Comment should show up on node page.', 'CAPTCHA');
+    }
+    else {
+      // Check for error message.
+      $this->assertText(t(CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE), $message .' Comment submission should be blocked.', 'CAPTCHA');
+      // Get node page and check that comment is not present.
+      $this->drupalGet('node/' . $node->nid);
+      $this->assertNoText($comment_subject, $message .' Comment should not show up on node page.', 'CAPTCHA');
+      $this->assertNoText($comment_body, $message . ' Comment should not show up on node page.', 'CAPTCHA');
+    }
+  }
+
+  /*
+   * Testing the case sensistive/insensitive validation.
+   */
+  function testCaseInsensitiveValidation() {
+    // Set Test CAPTCHA on comment form
+    captcha_set_form_id_setting(self::COMMENT_FORM_ID, 'captcha/Test');
+
+    // Log in as normal user.
+    $this->drupalLogin($this->normal_user);
+
+    // Test case sensitive posting.
+    variable_set('captcha_default_validation', CAPTCHA_DEFAULT_VALIDATION_CASE_SENSITIVE);
+    $this->assertCommentPosting('Test 123', TRUE, 'Case sensitive validation of right casing.');
+    $this->assertCommentPosting('test 123', FALSE, 'Case sensitive validation of wrong casing.');
+    $this->assertCommentPosting('TEST 123', FALSE, 'Case sensitive validation of wrong casing.');
+
+    // Test case insensitive posting (the default)
+    variable_set('captcha_default_validation', CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE);
+    $this->assertCommentPosting('Test 123', TRUE, 'Case insensitive validation of right casing.');
+    $this->assertCommentPosting('test 123', TRUE, 'Case insensitive validation of wrong casing.');
+    $this->assertCommentPosting('TEST 123', TRUE, 'Case insensitive validation of wrong casing.');
+
+  }
+
+  /**
+   * Test if the CAPTCHA description is only shown if there are challenge widgets to show.
+   * For example, when a comment is previewed with correct CAPTCHA answer,
+   * a challenge is generated and added to the form but removed in the pre_render phase.
+   * The CAPTCHA description should not show up either.
+   *
+   * \see testCaptchaSessionReuseOnNodeForms()
+   */
+  function testCaptchaDescriptionAfterCommentPreview() {
+    // Set Test CAPTCHA on comment form.
+    captcha_set_form_id_setting(self::COMMENT_FORM_ID, 'captcha/Test');
+
+    // Log in as normal user.
+    $this->drupalLogin($this->normal_user);
+
+    // Create a node with comments enabled.
+    $node = $this->createNodeWithCommentsEnabled();
+
+    // Preview comment with correct CAPTCHA answer.
+    $edit = $this->getCommentFormValues();
+    $edit['captcha_response'] = 'Test 123';
+    $this->drupalPost('comment/reply/' . $node->nid, $edit, t('Preview'));
+
+    // Check that there is no CAPTCHA after preview.
+    $this->assertCaptchaPresence(FALSE);
+  }
+
+  /**
+   * Test if the CAPTCHA session ID is reused when previewing nodes:
+   * node preview after correct response should not show CAPTCHA anymore.
+   * The preview functionality of comments and nodes works slightly different under the hood.
+   * CAPTCHA module should be able to handle both.
+   *
+   * \see testCaptchaDescriptionAfterCommentPreview()
+   */
+  function testCaptchaSessionReuseOnNodeForms() {
+    // Set Test CAPTCHA on page form.
+    captcha_set_form_id_setting('page_node_form', 'captcha/Test');
+
+    // Log in as normal user.
+    $this->drupalLogin($this->normal_user);
+
+    // Page settings to post, with correct CAPTCHA answer.
+    $edit = $this->getNodeFormValues();
+    $edit['captcha_response'] = 'Test 123';
+    // Preview the node
+    $this->drupalPost('node/add/page', $edit, t('Preview'));
+
+    // Check that there is no CAPTCHA after preview.
+    $this->assertCaptchaPresence(FALSE);
+  }
+
+
+  /**
+   * CAPTCHA should also be put on admin pages even if visitor
+   * has no access
+   */
+  function testCaptchaOnLoginBlockOnAdminPagesIssue893810() {
+    // Set a CAPTCHA on login block form
+    captcha_set_form_id_setting('user_login_block', 'captcha/Math');
+
+    // Check if there is a CAPTCHA on home page.
+    $this->drupalGet('node');
+    $this->assertCaptchaPresence(TRUE);
+
+    // Check there is a CAPTCHA on "forbidden" admin pages
+    $this->drupalGet('admin');
+    $this->assertCaptchaPresence(TRUE);
+  }
+
+}
+
+
+class CaptchaAdminTestCase extends CaptchaBaseWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('CAPTCHA administration functionality'),
+      'description' => t('Testing of the CAPTCHA administration interface and functionality.'),
+      'group' => t('CAPTCHA'),
+    );
+  }
+
+  /**
+   * Test access to the admin pages.
+   */
+  function testAdminAccess() {
+    $this->drupalLogin($this->normal_user);
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH);
+    file_put_contents('tmp.simpletest.html', $this->drupalGetContent());
+    $this->assertText(t('Access denied'), 'Normal users should not be able to access the CAPTCHA admin pages', 'CAPTCHA');
+
+    $this->drupalLogin($this->admin_user);
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH);
+    $this->assertNoText(t('Access denied'), 'Admin users should be able to access the CAPTCHA admin pages', 'CAPTCHA');
+  }
+
+  /**
+   * Test the CAPTCHA point setting getter/setter.
+   */
+  function testCaptchaPointSettingGetterAndSetter() {
+    $comment_form_id = self::COMMENT_FORM_ID;
+    // Set to 'none'.
+    captcha_set_form_id_setting($comment_form_id, 'none');
+    $result = captcha_get_form_id_setting($comment_form_id);
+    $this->assertNotNull($result, 'Setting and getting CAPTCHA point: none', 'CAPTCHA');
+    $this->assertNull($result->module, 'Setting and getting CAPTCHA point: none', 'CAPTCHA');
+    $this->assertNull($result->captcha_type, 'Setting and getting CAPTCHA point: none', 'CAPTCHA');
+    $result = captcha_get_form_id_setting($comment_form_id, TRUE);
+    $this->assertEqual($result, 'none', 'Setting and symbolic getting CAPTCHA point: "none"', 'CAPTCHA');
+    // Set to 'default'
+    captcha_set_form_id_setting($comment_form_id, 'default');
+    variable_set('captcha_default_challenge', 'foo/bar');
+    $result = captcha_get_form_id_setting($comment_form_id);
+    $this->assertNotNull($result, 'Setting and getting CAPTCHA point: default', 'CAPTCHA');
+    $this->assertEqual($result->module, 'foo', 'Setting and getting CAPTCHA point: default', 'CAPTCHA');
+    $this->assertEqual($result->captcha_type, 'bar', 'Setting and getting CAPTCHA point: default', 'CAPTCHA');
+    $result = captcha_get_form_id_setting($comment_form_id, TRUE);
+    $this->assertEqual($result, 'default', 'Setting and symbolic getting CAPTCHA point: "default"', 'CAPTCHA');
+    // Set to 'baz/boo'.
+    captcha_set_form_id_setting($comment_form_id, 'baz/boo');
+    $result = captcha_get_form_id_setting($comment_form_id);
+    $this->assertNotNull($result, 'Setting and getting CAPTCHA point: baz/boo', 'CAPTCHA');
+    $this->assertEqual($result->module, 'baz', 'Setting and getting CAPTCHA point: baz/boo', 'CAPTCHA');
+    $this->assertEqual($result->captcha_type, 'boo', 'Setting and getting CAPTCHA point: baz/boo', 'CAPTCHA');
+    $result = captcha_get_form_id_setting($comment_form_id, TRUE);
+    $this->assertEqual($result, 'baz/boo', 'Setting and symbolic getting CAPTCHA point: "baz/boo"', 'CAPTCHA');
+    // Set to NULL (which should delete the CAPTCHA point setting entry).
+    captcha_set_form_id_setting($comment_form_id, NULL);
+    $result = captcha_get_form_id_setting($comment_form_id);
+    $this->assertNull($result, 'Setting and getting CAPTCHA point: NULL', 'CAPTCHA');
+    $result = captcha_get_form_id_setting($comment_form_id, TRUE);
+    $this->assertNull($result, 'Setting and symbolic getting CAPTCHA point: NULL', 'CAPTCHA');
+    // Set with object.
+    $captcha_type = new stdClass;
+    $captcha_type->module = 'baba';
+    $captcha_type->captcha_type = 'fofo';
+    captcha_set_form_id_setting($comment_form_id, $captcha_type);
+    $result = captcha_get_form_id_setting($comment_form_id);
+    $this->assertNotNull($result, 'Setting and getting CAPTCHA point: baba/fofo', 'CAPTCHA');
+    $this->assertEqual($result->module, 'baba', 'Setting and getting CAPTCHA point: baba/fofo', 'CAPTCHA');
+    $this->assertEqual($result->captcha_type, 'fofo', 'Setting and getting CAPTCHA point: baba/fofo', 'CAPTCHA');
+    $result = captcha_get_form_id_setting($comment_form_id, TRUE);
+    $this->assertEqual($result, 'baba/fofo', 'Setting and symbolic getting CAPTCHA point: "baba/fofo"', 'CAPTCHA');
+
+  }
+
+
+  /**
+   * Helper function for checking CAPTCHA setting of a form.
+   *
+   * @param $form_id the form_id of the form to investigate.
+   * @param $challenge_type what the challenge type should be:
+   *   NULL, 'none', 'default' or something like 'captcha/Math'
+   */
+  protected function assertCaptchaSetting($form_id, $challenge_type) {
+    $result = captcha_get_form_id_setting(self::COMMENT_FORM_ID, TRUE);
+    $this->assertEqual($result, $challenge_type,
+      t('Check CAPTCHA setting for form: expected: @expected, received: @received.',
+      array('@expected' => var_export($challenge_type, TRUE), '@received' => var_export($result, TRUE))),
+      'CAPTCHA');
+  }
+
+  /**
+   * Testing of the CAPTCHA administration links.
+   */
+  function testCaptchAdminLinks() {
+    // Log in as admin
+    $this->drupalLogin($this->admin_user);
+
+    // Enable CAPTCHA administration links.
+    $edit = array(
+      'captcha_administration_mode' => TRUE,
+    );
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH, $edit, 'Save configuration');
+
+    // Create a node with comments enabled.
+    $node = $this->createNodeWithCommentsEnabled();
+
+    // Go to node page
+    $this->drupalGet('node/' . $node->nid);
+
+    // Click the add new comment link
+    $this->clickLink(t('Add new comment'));
+    $add_comment_url = $this->getUrl();
+    // Remove fragment part from comment URL to avoid problems with later asserts
+    $add_comment_url = strtok($add_comment_url, "#");
+
+    ////////////////////////////////////////////////////////////
+    // Click the CAPTCHA admin link to enable a challenge.
+    $this->clickLink(t('Place a CAPTCHA here for untrusted users.'));
+    // Enable Math CAPTCHA.
+    $edit = array('captcha_type' => 'captcha/Math');
+    $this->drupalPost($this->getUrl(), $edit, t('Save'));
+
+    // Check if returned to original comment form.
+    $this->assertUrl($add_comment_url, array(),
+      'After setting CAPTCHA with CAPTCHA admin links: should return to original form.', 'CAPTCHA');
+    // Check if CAPTCHA was successfully enabled (on CAPTCHA admin links fieldset).
+    $this->assertText(t('CAPTCHA: challenge "@type" enabled', array('@type' => 'Math')),
+      'Enable a challenge through the CAPTCHA admin links', 'CAPTCHA');
+    // Check if CAPTCHA was successfully enabled (through API).
+    $this->assertCaptchaSetting(self::COMMENT_FORM_ID, 'captcha/Math');
+
+    //////////////////////////////////////////////////////
+    // Edit challenge type through CAPTCHA admin links.
+    $this->clickLink(t('change'));
+    // Enable Math CAPTCHA.
+    $edit = array('captcha_type' => 'default');
+    $this->drupalPost($this->getUrl(), $edit, t('Save'));
+
+    // Check if returned to original comment form.
+    $this->assertEqual($add_comment_url, $this->getUrl(),
+      'After editing challenge type CAPTCHA admin links: should return to original form.', 'CAPTCHA');
+    // Check if CAPTCHA was successfully changed (on CAPTCHA admin links fieldset).
+    // This is actually the same as the previous setting because the captcha/Math is the
+    // default for the default challenge. TODO Make sure the edit is a real change.
+    $this->assertText(t('CAPTCHA: challenge "@type" enabled', array('@type' => 'Math')),
+      'Enable a challenge through the CAPTCHA admin links', 'CAPTCHA');
+    // Check if CAPTCHA was successfully edited (through API).
+    $this->assertCaptchaSetting(self::COMMENT_FORM_ID, 'default');
+
+
+
+    //////////////////////////////////////////////////////
+    // Disable challenge through CAPTCHA admin links.
+    $this->clickLink(t('disable'));
+    // And confirm.
+    $this->drupalPost($this->getUrl(), array(), 'Disable');
+
+    // Check if returned to original comment form.
+    $this->assertEqual($add_comment_url, $this->getUrl(),
+      'After disablin challenge with CAPTCHA admin links: should return to original form.', 'CAPTCHA');
+    // Check if CAPTCHA was successfully disabled (on CAPTCHA admin links fieldset).
+    $this->assertText(t('CAPTCHA: no challenge enabled'),
+      'Disable challenge through the CAPTCHA admin links', 'CAPTCHA');
+    // Check if CAPTCHA was successfully disabled (through API).
+    $this->assertCaptchaSetting(self::COMMENT_FORM_ID, 'none');
+
+  }
+
+
+  function testUntrustedUserPosting() {
+    // Set CAPTCHA on comment form.
+    captcha_set_form_id_setting(self::COMMENT_FORM_ID, 'captcha/Math');
+
+    // Create a node with comments enabled.
+    $node = $this->createNodeWithCommentsEnabled();
+
+    // Log in as normal (untrusted) user.
+    $this->drupalLogin($this->normal_user);
+
+    // Go to node page and click the "add comment" link.
+    $this->drupalGet('node/' . $node->nid);
+    $this->clickLink(t('Add new comment'));
+    $add_comment_url = $this->getUrl();
+
+    // Check if CAPTCHA is visible on form.
+    $this->assertCaptchaPresence(TRUE);
+    // Try to post a comment with wrong answer.
+    $edit = $this->getCommentFormValues();
+    $edit['captcha_response'] = 'xx';
+    $this->drupalPost($add_comment_url, $edit, t('Preview'));
+    $this->assertText(t(CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE),
+      'wrong CAPTCHA should block form submission.', 'CAPTCHA');
+
+    //TODO: more testing for untrusted posts.
+  }
+
+
+
+  /**
+   * Test XSS vulnerability on CAPTCHA description.
+   */
+  function testXssOnCaptchaDescription() {
+    // Set CAPTCHA on user register form.
+    captcha_set_form_id_setting('user_register', 'captcha/Math');
+
+    // Put Javascript snippet in CAPTCHA description.
+    $this->drupalLogin($this->admin_user);
+    $xss = '<script type="text/javascript">alert("xss")</script>';
+    $edit = array('captcha_description' => $xss);
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH, $edit, 'Save configuration');
+
+    // Visit user register form and check if Javascript snippet is there.
+    $this->drupalLogout();
+    $this->drupalGet('user/register');
+    $this->assertNoRaw($xss, 'Javascript should not be allowed in CAPTCHA description.', 'CAPTCHA');
+
+  }
+
+  /**
+   * Test the CAPTCHA placement clearing.
+   */
+  function testCaptchaPlacementCacheClearing() {
+    // Set CAPTCHA on user register form.
+    captcha_set_form_id_setting('user_register_form', 'captcha/Math');
+    // Visit user register form to fill the CAPTCHA placement cache.
+    $this->drupalGet('user/register');
+    // Check if there is CAPTCHA placement cache.
+    $placement_map = variable_get('captcha_placement_map_cache', NULL);
+    $this->assertNotNull($placement_map, 'CAPTCHA placement cache should be set.');
+    // Clear the cache
+    $this->drupalLogin($this->admin_user);
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH, array(), t('Clear the CAPTCHA placement cache'));
+    // Check that the placement cache is unset
+    $placement_map = variable_get('captcha_placement_map_cache', NULL);
+    $this->assertNull($placement_map, 'CAPTCHA placement cache should be unset after cache clear.');
+  }
+
+  /**
+   * Helper function to get the CAPTCHA point setting straight from the database.
+   * @param string $form_id
+   * @return stdClass object
+   */
+  private function getCaptchaPointSettingFromDatabase($form_id) {
+    $result = db_query(
+      "SELECT * FROM {captcha_points} WHERE form_id = :form_id",
+      array(':form_id' => $form_id)
+    )->fetchObject();
+    return $result;
+  }
+
+  /**
+   * Method for testing the CAPTCHA point administration
+   */
+  function testCaptchaPointAdministration() {
+    // Generate CAPTCHA point data:
+    // Drupal form ID should consist of lowercase alphanumerics and underscore)
+    $captcha_point_form_id = 'form_' . strtolower($this->randomName(32));
+    // the Math CAPTCHA by the CAPTCHA module is always available, so let's use it
+    $captcha_point_module = 'captcha';
+    $captcha_point_type = 'Math';
+
+    // Log in as admin
+    $this->drupalLogin($this->admin_user);
+
+    // Set CAPTCHA point through admin/user/captcha/captcha/captcha_point
+    $form_values = array(
+      'captcha_point_form_id' => $captcha_point_form_id,
+      'captcha_type' => $captcha_point_module .'/'. $captcha_point_type,
+    );
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point', $form_values, t('Save'));
+    $this->assertText(t('Saved CAPTCHA point settings.'),
+      'Saving of CAPTCHA point settings');
+
+    // Check in database
+    $result = $this->getCaptchaPointSettingFromDatabase($captcha_point_form_id);
+    $this->assertEqual($result->module, $captcha_point_module,
+      'Enabled CAPTCHA point should have module set');
+    $this->assertEqual($result->captcha_type, $captcha_point_type,
+      'Enabled CAPTCHA point should have type set');
+
+    // Disable CAPTCHA point again
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id .'/disable', array(), t('Disable'));
+    $this->assertRaw(t('Disabled CAPTCHA for form %form_id.', array('%form_id' => $captcha_point_form_id)), 'Disabling of CAPTCHA point');
+
+    // Check in database
+    $result = $this->getCaptchaPointSettingFromDatabase($captcha_point_form_id);
+    $this->assertNull($result->module,
+      'Disabled CAPTCHA point should have NULL as module');
+    $this->assertNull($result->captcha_type,
+      'Disabled CAPTCHA point should have NULL as type');
+
+    // Set CAPTCHA point through admin/user/captcha/captcha/captcha_point/$form_id
+    $form_values = array(
+      'captcha_type' => $captcha_point_module .'/'. $captcha_point_type,
+    );
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id, $form_values, t('Save'));
+    $this->assertText(t('Saved CAPTCHA point settings.'),
+      'Saving of CAPTCHA point settings');
+
+    // Check in database
+    $result = $this->getCaptchaPointSettingFromDatabase($captcha_point_form_id);
+    $this->assertEqual($result->module, $captcha_point_module,
+      'Enabled CAPTCHA point should have module set');
+    $this->assertEqual($result->captcha_type, $captcha_point_type,
+      'Enabled CAPTCHA point should have type set');
+
+    // Delete CAPTCHA point
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id .'/delete', array(), t('Delete'));
+    $this->assertRaw(t('Deleted CAPTCHA for form %form_id.', array('%form_id' => $captcha_point_form_id)),
+      'Deleting of CAPTCHA point');
+
+    // Check in database
+    $result = $this->getCaptchaPointSettingFromDatabase($captcha_point_form_id);
+    $this->assertFalse($result, 'Deleted CAPTCHA point should be in database');
+  }
+
+  /**
+   * Method for testing the CAPTCHA point administration
+   */
+  function testCaptchaPointAdministrationByNonAdmin() {
+    // First add a CAPTCHA point (as admin)
+    $this->drupalLogin($this->admin_user);
+    $captcha_point_form_id = 'form_' . strtolower($this->randomName(32));
+    $captcha_point_module = 'captcha';
+    $captcha_point_type = 'Math';
+    $form_values = array(
+      'captcha_point_form_id' => $captcha_point_form_id,
+      'captcha_type' => $captcha_point_module .'/'. $captcha_point_type,
+    );
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/', $form_values, t('Save'));
+    $this->assertText(t('Saved CAPTCHA point settings.'),
+      'Saving of CAPTCHA point settings');
+
+    // Switch from admin to nonadmin
+    $this->drupalGet(url('logout', array('absolute' => TRUE)));
+    $this->drupalLogin($this->normal_user);
+
+
+    // Try to set CAPTCHA point through admin/user/captcha/captcha/captcha_point
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point');
+    $this->assertText(t('You are not authorized to access this page.'),
+      'Non admin should not be able to set a CAPTCHA point');
+
+    // Try to set CAPTCHA point through admin/user/captcha/captcha/captcha_point/$form_id
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/' . 'form_' . strtolower($this->randomName(32)));
+    $this->assertText(t('You are not authorized to access this page.'),
+      'Non admin should not be able to set a CAPTCHA point');
+
+    // Try to disable the CAPTCHA point
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id .'/disable');
+    $this->assertText(t('You are not authorized to access this page.'),
+      'Non admin should not be able to disable a CAPTCHA point');
+
+    // Try to delete the CAPTCHA point
+    $this->drupalGet(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id .'/delete');
+    $this->assertText(t('You are not authorized to access this page.'),
+      'Non admin should not be able to delete a CAPTCHA point');
+
+    // Switch from nonadmin to admin again
+    $this->drupalGet(url('logout', array('absolute' => TRUE)));
+    $this->drupalLogin($this->admin_user);
+
+    // Check if original CAPTCHA point still exists in database
+    $result = $this->getCaptchaPointSettingFromDatabase($captcha_point_form_id);
+    $this->assertEqual($result->module, $captcha_point_module,
+      'Enabled CAPTCHA point should still have module set');
+    $this->assertEqual($result->captcha_type, $captcha_point_type,
+      'Enabled CAPTCHA point should still have type set');
+
+    // Delete CAPTCHA point
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH . '/captcha/captcha_point/'. $captcha_point_form_id .'/delete', array(), t('Delete'));
+    $this->assertRaw(t('Deleted CAPTCHA for form %form_id.', array('%form_id' => $captcha_point_form_id)),
+      'Deleting of CAPTCHA point');
+  }
+
+
+
+}
+
+
+
+class CaptchaPersistenceTestCase extends CaptchaBaseWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('CAPTCHA persistence functionality'),
+      'description' => t('Testing of the CAPTCHA persistence functionality.'),
+      'group' => t('CAPTCHA'),
+    );
+  }
+
+  /**
+   * Set up the persistence and CAPTCHA settings.
+   * @param int $persistence the persistence value.
+   */
+  private function setUpPersistence($persistence) {
+    // Log in as admin
+    $this->drupalLogin($this->admin_user);
+    // Set persistence.
+    $edit = array('captcha_persistence' => $persistence);
+    $this->drupalPost(self::CAPTCHA_ADMIN_PATH, $edit, 'Save configuration');
+    // Log admin out.
+    $this->drupalLogout();
+
+    // Set the Test123 CAPTCHA on user register and comment form.
+    // We have to do this with the function captcha_set_form_id_setting()
+    // (because the CATCHA admin form does not show the Test123 option).
+    // We also have to do this after all usage of the CAPTCHA admin form
+    // (because posting the CAPTCHA admin form would set the CAPTCHA to 'none').
+    captcha_set_form_id_setting('user_login', 'captcha/Test');
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    captcha_set_form_id_setting('user_register_form', 'captcha/Test');
+    $this->drupalGet('user/register');
+    $this->assertCaptchaPresence(TRUE);
+  }
+
+  protected function assertPreservedCsid($captcha_sid_initial) {
+    $captcha_sid = $this->getCaptchaSidFromForm();
+    $this->assertEqual($captcha_sid_initial, $captcha_sid,
+      "CAPTCHA session ID should be preserved (expected: $captcha_sid_initial, found: $captcha_sid).");
+  }
+
+  protected function assertDifferentCsid($captcha_sid_initial) {
+    $captcha_sid = $this->getCaptchaSidFromForm();
+    $this->assertNotEqual($captcha_sid_initial, $captcha_sid,
+      "CAPTCHA session ID should be different.");
+  }
+
+  function testPersistenceAlways(){
+    // Set up of persistence and CAPTCHAs.
+    $this->setUpPersistence(CAPTCHA_PERSISTENCE_SHOW_ALWAYS);
+
+    // Go to login form and check if there is a CAPTCHA on the login form (look for the title).
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    $captcha_sid_initial = $this->getCaptchaSidFromForm();
+
+    // Try to with wrong user name and password, but correct CAPTCHA.
+    $edit = array(
+      'name' => 'foobar',
+      'pass' => 'bazlaz',
+      'captcha_response' => 'Test 123',
+    );
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    // Check that there was no error message for the CAPTCHA.
+    $this->assertCaptchaResponseAccepted();
+
+    // Name and password were wrong, we should get an updated form with a fresh CAPTCHA.
+    $this->assertCaptchaPresence(TRUE);
+    $this->assertPreservedCsid($captcha_sid_initial);
+
+    // Post from again.
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    // Check that there was no error message for the CAPTCHA.
+    $this->assertCaptchaResponseAccepted();
+    $this->assertPreservedCsid($captcha_sid_initial);
+
+  }
+
+  function testPersistencePerFormInstance(){
+    // Set up of persistence and CAPTCHAs.
+    $this->setUpPersistence(CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+
+    // Go to login form and check if there is a CAPTCHA on the login form.
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    $captcha_sid_initial = $this->getCaptchaSidFromForm();
+
+    // Try to with wrong user name and password, but correct CAPTCHA.
+    $edit = array(
+      'name' => 'foobar',
+      'pass' => 'bazlaz',
+      'captcha_response' => 'Test 123',
+    );
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    // Check that there was no error message for the CAPTCHA.
+    $this->assertCaptchaResponseAccepted();
+    // There shouldn't be a CAPTCHA on the new form.
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertPreservedCsid($captcha_sid_initial);
+
+    // Start a new form instance/session
+    $this->drupalGet('node');
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+
+    // Check another form
+    $this->drupalGet('user/register');
+    $this->assertCaptchaPresence(TRUE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+
+  }
+
+  function testPersistencePerFormType(){
+    // Set up of persistence and CAPTCHAs.
+    $this->setUpPersistence(CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_TYPE);
+
+    // Go to login form and check if there is a CAPTCHA on the login form.
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    $captcha_sid_initial = $this->getCaptchaSidFromForm();
+
+    // Try to with wrong user name and password, but correct CAPTCHA.
+    $edit = array(
+      'name' => 'foobar',
+      'pass' => 'bazlaz',
+      'captcha_response' => 'Test 123',
+    );
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    // Check that there was no error message for the CAPTCHA.
+    $this->assertCaptchaResponseAccepted();
+    // There shouldn't be a CAPTCHA on the new form.
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertPreservedCsid($captcha_sid_initial);
+
+    // Start a new form instance/session
+    $this->drupalGet('node');
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+
+    // Check another form
+    $this->drupalGet('user/register');
+    $this->assertCaptchaPresence(TRUE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+  }
+
+  function testPersistenceOnlyOnce(){
+    // Set up of persistence and CAPTCHAs.
+    $this->setUpPersistence(CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL);
+
+    // Go to login form and check if there is a CAPTCHA on the login form.
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+    $captcha_sid_initial = $this->getCaptchaSidFromForm();
+
+    // Try to with wrong user name and password, but correct CAPTCHA.
+    $edit = array(
+      'name' => 'foobar',
+      'pass' => 'bazlaz',
+      'captcha_response' => 'Test 123',
+    );
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    // Check that there was no error message for the CAPTCHA.
+    $this->assertCaptchaResponseAccepted();
+    // There shouldn't be a CAPTCHA on the new form.
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertPreservedCsid($captcha_sid_initial);
+
+    // Start a new form instance/session
+    $this->drupalGet('node');
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+
+    // Check another form
+    $this->drupalGet('user/register');
+    $this->assertCaptchaPresence(FALSE);
+    $this->assertDifferentCsid($captcha_sid_initial);
+  }
+
+}
+
+
+class CaptchaSessionReuseAttackTestCase extends CaptchaBaseWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('CAPTCHA session reuse attack tests'),
+      'description' => t('Testing of the protection against CAPTCHA session reuse attacks.'),
+      'group' => t('CAPTCHA'),
+    );
+  }
+
+  /**
+   * Assert that the CAPTCHA session ID reuse attack was detected.
+   */
+  protected function assertCaptchaSessionIdReuseAttackDetection() {
+    $this->assertText(t(CAPTCHA_SESSION_REUSE_ATTACK_ERROR_MESSAGE),
+      'CAPTCHA session ID reuse attack should be detected.',
+      'CAPTCHA');
+    // There should be an error message about wrong response.
+    $this->assertText(t(CAPTCHA_WRONG_RESPONSE_ERROR_MESSAGE),
+      'CAPTCHA response should flagged as wrong.',
+      'CAPTCHA');
+  }
+
+  function testCaptchaSessionReuseAttackDetectionOnCommentPreview() {
+    // Create commentable node
+    $node = $this->createNodeWithCommentsEnabled();
+    // Set Test CAPTCHA on comment form.
+    captcha_set_form_id_setting(self::COMMENT_FORM_ID, 'captcha/Math');
+    variable_set('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+
+    // Log in as normal user.
+    $this->drupalLogin($this->normal_user);
+
+    // Go to comment form of commentable node.
+    $this->drupalGet('comment/reply/' . $node->nid);
+    $this->assertCaptchaPresence(TRUE);
+
+    // Get CAPTCHA session ID and solution of the challenge.
+    $captcha_sid = $this->getCaptchaSidFromForm();
+    $captcha_token = $this->getCaptchaTokenFromForm();
+    $solution = $this->getMathCaptchaSolutionFromForm();
+
+    // Post the form with the solution.
+    $edit = $this->getCommentFormValues();
+    $edit['captcha_response'] = $solution;
+    $this->drupalPost(NULL, $edit, t('Preview'));
+    // Answer should be accepted and further CAPTCHA ommitted.
+    $this->assertCaptchaResponseAccepted();
+    $this->assertCaptchaPresence(FALSE);
+
+    // Post a new comment, reusing the previous CAPTCHA session.
+    $edit = $this->getCommentFormValues();
+    $edit['captcha_sid'] = $captcha_sid;
+    $edit['captcha_token'] = $captcha_token;
+    $edit['captcha_response'] = $solution;
+    $this->drupalPost('comment/reply/' . $node->nid, $edit, t('Preview'));
+    // CAPTCHA session reuse attack should be detected.
+    $this->assertCaptchaSessionIdReuseAttackDetection();
+    // There should be a CAPTCHA.
+    $this->assertCaptchaPresence(TRUE);
+
+  }
+
+  function testCaptchaSessionReuseAttackDetectionOnNodeForm() {
+    // Set CAPTCHA on page form.
+    captcha_set_form_id_setting('page_node_form', 'captcha/Math');
+    variable_set('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+
+    // Log in as normal user.
+    $this->drupalLogin($this->normal_user);
+
+    // Go to node add form.
+    $this->drupalGet('node/add/page');
+    $this->assertCaptchaPresence(TRUE);
+
+    // Get CAPTCHA session ID and solution of the challenge.
+    $captcha_sid = $this->getCaptchaSidFromForm();
+    $captcha_token = $this->getCaptchaTokenFromForm();
+    $solution = $this->getMathCaptchaSolutionFromForm();
+
+    // Page settings to post, with correct CAPTCHA answer.
+    $edit = $this->getNodeFormValues();
+    $edit['captcha_response'] = $solution;
+    // Preview the node
+    $this->drupalPost(NULL, $edit, t('Preview'));
+    // Answer should be accepted.
+    $this->assertCaptchaResponseAccepted();
+    // Check that there is no CAPTCHA after preview.
+    $this->assertCaptchaPresence(FALSE);
+
+    // Post a new comment, reusing the previous CAPTCHA session.
+    $edit = $this->getNodeFormValues();
+    $edit['captcha_sid'] = $captcha_sid;
+    $edit['captcha_token'] = $captcha_token;
+    $edit['captcha_response'] = $solution;
+    $this->drupalPost('node/add/page', $edit, t('Preview'));
+    // CAPTCHA session reuse attack should be detected.
+    $this->assertCaptchaSessionIdReuseAttackDetection();
+    // There should be a CAPTCHA.
+    $this->assertCaptchaPresence(TRUE);
+
+  }
+
+  function testCaptchaSessionReuseAttackDetectionOnLoginForm() {
+    // Set CAPTCHA on login form.
+    captcha_set_form_id_setting('user_login', 'captcha/Math');
+    variable_set('captcha_persistence', CAPTCHA_PERSISTENCE_SKIP_ONCE_SUCCESSFUL_PER_FORM_INSTANCE);
+
+    // Go to log in form.
+    $this->drupalGet('user');
+    $this->assertCaptchaPresence(TRUE);
+
+    // Get CAPTCHA session ID and solution of the challenge.
+    $captcha_sid = $this->getCaptchaSidFromForm();
+    $captcha_token = $this->getCaptchaTokenFromForm();
+    $solution = $this->getMathCaptchaSolutionFromForm();
+
+    // Log in through form.
+    $edit = array(
+      'name' => $this->normal_user->name,
+      'pass' => $this->normal_user->pass_raw,
+      'captcha_response' => $solution,
+    );
+    $this->drupalPost(NULL, $edit, t('Log in'));
+    $this->assertCaptchaResponseAccepted();
+    $this->assertCaptchaPresence(FALSE);
+    // If a "log out" link appears on the page, it is almost certainly because
+    // the login was successful.
+    $pass = $this->assertLink(t('Log out'), 0, t('User %name successfully logged in.', array('%name' => $this->normal_user->name)), t('User login'));
+
+    // Log out again.
+    $this->drupalLogout();
+
+    // Try to log in again, reusing the previous CAPTCHA session.
+    $edit += array(
+      'captcha_sid' => $captcha_sid,
+      'captcha_token' => $captcha_token,
+    );
+    $this->drupalPost('user', $edit, t('Log in'));
+    // CAPTCHA session reuse attack should be detected.
+    $this->assertCaptchaSessionIdReuseAttackDetection();
+    // There should be a CAPTCHA.
+    $this->assertCaptchaPresence(TRUE);
+  }
+
+
+  public function testMultipleCaptchaProtectedFormsOnOnePage()
+  {
+    // Set Test CAPTCHA on comment form and login block
+    captcha_set_form_id_setting(self::COMMENT_FORM_ID, 'captcha/Test');
+    captcha_set_form_id_setting('user_login_block', 'captcha/Math');
+    $this->allowCommentPostingForAnonymousVisitors();
+
+    // Create a node with comments enabled.
+    $node = $this->createNodeWithCommentsEnabled();
+
+    // Preview comment with correct CAPTCHA answer.
+    $edit = $this->getCommentFormValues();
+    $comment_subject = $edit['subject'];
+    $edit['captcha_response'] = 'Test 123';
+    $this->drupalPost('comment/reply/' . $node->nid, $edit, t('Preview'));
+    // Post should be accepted: no warnings,
+    // no CAPTCHA reuse detection (which could be used by user log in block).
+    $this->assertCaptchaResponseAccepted();
+    $this->assertText($comment_subject);
+
+  }
+
+}
+
+
+// Some tricks to debug:
+// drupal_debug($data) // from devel module
+// file_put_contents('tmp.simpletest.html', $this->drupalGetContent());
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/captcha_api.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,219 @@
+
+This documentation is for developers that want to implement their own
+challenge type and integrate it with the base CAPTCHA module.
+
+
+=== Required: hook_captcha($op, $captcha_type='') ===
+
+The hook_captcha() hook is the only required function if you want to integrate
+with the base CAPTCHA module.
+Functionality depends on the first argument $op:
+  * 'list': you should return an array of possible challenge types
+    that your module implements.
+  * 'generate': generate a challenge.
+    You should return an array that offers form elements and the solution
+    of your challenge, defined by the second argument $captcha_type.
+    The returned array $captcha should have the following items:
+    $captcha['solution']: this is the solution of your challenge
+    $captcha['form']: an array of the form elements you want to add to the form.
+      There should be a key 'captcha_response' in this array, which points to
+      the form element where the user enters his answer.
+    An optional additional argument $captcha_sid with the captcha session ID is
+    available for more advanced challenges (e.g. the image CAPTCHA uses this
+    argument, see image_captcha_captcha()).
+
+Let's give a simple example to make this more clear.
+We create the challenge 'Foo CAPTCHA', which requires the user to
+enter "foo" in a textfield.
+
+"""
+/**
+ * Implementation of hook_captcha().
+ */
+function foo_captcha_captcha($op, $captcha_type='') {
+  switch ($op) {
+    case 'list':
+      return array('Foo CAPTCHA');
+    case 'generate':
+      if ($captcha_type == 'Foo CAPTCHA') {
+        $captcha = array();
+        $captcha['solution'] = 'foo';
+        $captcha['form']['captcha_response'] = array(
+          '#type' => 'textfield',
+          '#title' => t('Enter "foo"'),
+          '#required' => TRUE,
+        );
+        return $captcha;
+      }
+      break;
+  }
+}
+"""
+
+Validation of the answer against the solution and other stuff is done by the
+base CAPTCHA module.
+
+
+
+
+=== Required: the .info file ===
+
+You should specify that your module depends on the base CAPTCHA module.
+Optionally you could put your module in the "Spam control" package.
+
+For our simple foo CAPTCHA module this would mean the following lines in the
+file foo_captcha.info:
+
+"""
+name = "Foo CAPTCHA"
+description = "The foo CAPTCHA requires the user to enter the word 'foo'."
+package = "Spam control"
+dependencies[] = captcha
+core = 6.x
+"""
+
+
+
+
+=== Recommended: hook_menu($may_cache) ===
+
+More advanced CAPTCHA modules probably want some configuration page.
+To integrate nicely with the base CAPTCHA module you should offer your
+configuration page as a MENU_LOCAL_TASK menu entry under 'admin/config/people/captcha/'.
+
+For our simple foo CAPTCHA module this would mean:
+
+"""
+/**
+ * Implementation of hook_menu().
+ */
+function foo_captcha_menu($may_cache) {
+  $items = array();
+  if ($may_cache) {
+    $items['admin/config/people/captcha/foo_captcha'] = array(
+      'title' => t('Foo CAPTCHA'),
+      'page callback' => 'drupal_get_form',
+      'page arguments' => array('foo_captcha_settings_form'),
+      'type' => MENU_LOCAL_TASK,
+    );
+  }
+  return $items;
+}
+"""
+
+You should of course implement a function foo_captcha_settings_form() which
+returns the form of your configuration page.
+
+
+
+
+=== Optional: hook_help($section) ===
+To offer a description/explanation of your challenge, you can use the
+normal hook_help() system.
+
+For our simple foo CAPTCHA module this would mean:
+
+"""
+/**
+ * Implementation of hook_help().
+ */
+function foo_captcha_help($path, $arg) {
+  switch ($path) {
+    case 'admin/config/people/captcha/foo_captcha':
+      return '<p>'. t('This is a very simple challenge, which requires users to enter "foo" in a textfield.') .'</p>';
+  }
+}
+"""
+
+
+
+=== Optional: custom response validation ===
+The CAPTCHA module provides an option for case sensitive and case insensitve
+validation of the responses. If this is not sufficient, you can provide
+your own validation function with the 'captcha_validate' field, illustrated
+by the following example:
+
+"""
+/**
+ * Implementation of hook_captcha().
+ */
+function foo_captcha_captcha($op, $captcha_type='') {
+  switch ($op) {
+    ...
+    case 'generate':
+      if ($captcha_type == 'Foo CAPTCHA') {
+        $captcha = array();
+        $captcha['solution'] = ...
+        $captcha['form'] = ...
+        $captcha['captcha_validate'] = 'foo_captcha_custom_validation';
+        return $captcha;
+      }
+      break;
+  }
+}
+
+/**
+ * Custom CAPTCHA validation function.
+ *
+ * @param solution the solution for the challenge as reported by hook_captcha('generate', ...).
+ * @param response the answer given by the user.
+ * @return TRUE on succes and FALSE on failure.
+ */
+function foo_captcha_custom_validation($solution, $response) {
+  return $response == "foo" || $response == "bar";
+}
+"""
+
+Previous example shows the basic usage for custom validation with only a $solution
+and $response argument, which should be sufficient for most CAPTCHA modules.
+More advanced CAPTCHA modules can also use extra provided arguments $element
+and $form_state:
+"""
+function foo_captcha_custom_validation($solution, $response, $element, $form_state) {
+  return $form_state['foo']['#bar'] = 'baz';
+}
+"""
+These extra arguments are the $element and $form_state arguments of the validation function
+of the #captcha element. See captcha_validate() in captcha.module for more info about this.
+
+
+
+=== Hook into CAPTCHA placement ===
+The CAPTCHA module attempts to place the CAPTCHA element in an appropriate spot
+at the bottom of the targeted form, but this automatic detection may be insufficient
+for complex forms.
+The hook_captcha_placement_map hook allows to define the placement of the CAPTCHA element
+as desired. The hook should return an array, mapping form IDs to placement arrays, which are
+associative arrays with the following fields:
+  - 'path': path (array of path items) of the form's container element in which the
+    CAPTCHA element should be inserted.
+  - 'key': the key of the element before which the CAPTCHA element
+    should be inserted. If the field 'key' is undefined or NULL, the CAPTCHA will
+    just be appended in the container.
+  - 'weight': if 'key' is not NULL: should be the weight of the element defined by 'key'.
+    If 'key' is NULL and weight is not NULL/unset: set the weight property of the CAPTCHA element
+    to this value.
+
+For example:
+"""
+/**
+ * Implementation of hook_captcha_placement_map
+ */
+function hook_captcha_placement_map() {
+  return array(
+    'my_fancy_form' => array(
+      'path' => array('items', 'buttons'),
+      'key' => 'savebutton',
+    ),
+    'another_form' => array(
+      'path' => array(),
+      'weight' => 34,
+    ),
+  );
+}
+"""
+This will place the CAPTCHA element
+  - in the 'my_fancy_form' form inside the container $form['items']['buttons'],
+    just before the element $form['items']['buttons']['sacebutton'].
+  - in the 'another_form' form at the toplevel of the form, with a weight 34.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/fonts/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+
+It possible to put your own fonts for the Image CAPTCHA in this folder.
+However, this is not the recommended way, as they can get lost easily during
+a module update. The recommended way to provide your own fonts is putting them
+in the files directory of your Drupal setup or, just like with contributed
+modules and themes, in the "libraries" folders sites/all/libraries/fonts
+or sites/<site>/libraries/fonts. 
Binary file sites/all/modules/captcha/image_captcha/fonts/Tesox/tesox.ttf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/fonts/Tesox/tesox_readme.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+
+The Tesox typeface
+==================
+
+The Tesox typeface is created by Stefaan Lippens (also known as soxofaan on
+drupal.org, http://drupal.org/user/41478).
+It is based on hand drawn characters, converted to a TrueType font with the
+FontCapture web service (http://www.fontcapture.com).
+
+Background
+----------
+The Tesox typeface is created specifically for the image CAPTCHA module
+for Drupal (http://drupal.org/project/captcha). For a better out-of-the-box
+experience it was desired to include one or more typefaces with the CAPTCHA
+module package by default. However, this redistribution raised licensing issues.
+For example, according the code hosting policy of drupal.org, only GPL licensed
+code and resources are allowed in the drupal.org code repository (CVS).
+To avoid licensing and redistribution issues, it was decided to create a
+dedicated typeface for the image CAPTCHA module from scratch.
+
+Licencing
+---------
+The Tesox typeface is GPLv2 licenced to be compatible with the drupal.org code
+hosting and packaging policies, as explained above.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/fonts/Tuffy/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+
+This directory contains a subset (Regular and Bold) of the Tuffy typeface
+created by Thatcher Ulrich (http://tulrich.com/fonts) and released in the
+public domain.
+
+Original licensing statement of the creator
+-------------------------------------------
+Here are my dabblings in font design. I have placed them in the Public Domain. 
+This is all 100% my own work. Usage is totally unrestricted. 
+If you want to make derivative works for any purpose, please go ahead.
+
+I welcome comments & constructive criticism.
+
+Put another way, a la PD-self (http://en.wikipedia.org/wiki/Template:PD-self):
+  I, the copyright holder of this work, hereby release it into the public 
+  domain. This applies worldwide.
+
+  In case this is not legally possible,
+
+  I grant any entity the right to use this work for any purpose, 
+  without any conditions, unless such conditions are required by law.
+
+-Thatcher Ulrich <tu@tulrich.com> http://tulrich.com
Binary file sites/all/modules/captcha/image_captcha/fonts/Tuffy/Tuffy.ttf has changed
Binary file sites/all/modules/captcha/image_captcha/fonts/Tuffy/Tuffy_Bold.ttf has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,442 @@
+<?php
+
+/**
+ * @file
+ * Functions for administration/settings interface.
+ *
+ */
+
+
+/**
+ * Configuration form for image_captcha.
+ */
+function image_captcha_settings_form() {
+
+  $form = array();
+
+  // Add CSS for theming of admin form.
+  $form['#attached']['css'] = array(drupal_get_path('module', 'image_captcha') . '/image_captcha.css');
+  // Use javascript for some added usability on admin form.
+  $form['#attached']['js'] = array(drupal_get_path('module', 'image_captcha') . '/image_captcha.js');
+
+
+  // First some error checking.
+  $setup_status = _image_captcha_check_setup(FALSE);
+  if ($setup_status & IMAGE_CAPTCHA_ERROR_NO_GDLIB) {
+    drupal_set_message(t(
+      'The Image CAPTCHA module can not generate images because your PHP setup does not support it (no <a href="!gdlib">GD library</a> with JPEG support).',
+      array('!gdlib' => 'http://php.net/manual/en/book.image.php')
+    ), 'error');
+    // It is no use to continue building the rest of the settings form.
+    return $form;
+  }
+
+  $form['image_captcha_example'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Example'),
+    '#description' => t('Presolved image CAPTCHA example, generated with the current settings.'),
+  );
+  $form['image_captcha_example']['image'] = array(
+    '#type' => 'captcha',
+    '#captcha_type' => 'image_captcha/Image',
+    '#captcha_admin_mode' => TRUE,
+  );
+
+  // General code settings.
+  $form['image_captcha_code_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Code settings'),
+  );
+  $form['image_captcha_code_settings']['image_captcha_image_allowed_chars'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Characters to use in the code'),
+    '#default_value' => variable_get('image_captcha_image_allowed_chars', IMAGE_CAPTCHA_ALLOWED_CHARACTERS),
+  );
+  $form['image_captcha_code_settings']['image_captcha_code_length'] = array(
+    '#type' => 'select',
+    '#title' => t('Code length'),
+    '#options' => array(2 => 2, 3, 4, 5, 6, 7, 8, 9, 10),
+    '#default_value' => (int) variable_get('image_captcha_code_length', 5),
+    '#description' => t('The code length influences the size of the image. Note that larger values make the image generation more CPU intensive.'),
+  );
+  // RTL support option (only show this option when there are RTL languages).
+  $languages = language_list('direction');
+  if (isset($languages[LANGUAGE_RTL])) {
+    $form['image_captcha_code_settings']['image_captcha_rtl_support'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('RTL support'),
+      '#default_value' => variable_get('image_captcha_rtl_support', 0),
+      '#description' => t('Enable this option to render the code from right to left for right to left languages.'),
+    );
+  }
+
+
+  // Font related stuff.
+  $form['image_captcha_font_settings'] = _image_captcha_settings_form_font_section();
+
+    // Color and file format settings.
+  $form['image_captcha_color_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Color and image settings'),
+    '#description' => t('Configuration of the background, text colors and file format of the image CAPTCHA.'),
+  );
+  $form['image_captcha_color_settings']['image_captcha_background_color'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Background color'),
+    '#description' => t('Enter the hexadecimal code for the background color (e.g. #FFF or #FFCE90). When using the PNG file format with transparent background, it is recommended to set this close to the underlying background color.'),
+    '#default_value' => variable_get('image_captcha_background_color', '#ffffff'),
+    '#maxlength' => 7,
+    '#size' => 8,
+  );
+  $form['image_captcha_color_settings']['image_captcha_foreground_color'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Text color'),
+    '#description' => t('Enter the hexadecimal code for the text color (e.g. #000 or #004283).'),
+    '#default_value' => variable_get('image_captcha_foreground_color', '#000000'),
+    '#maxlength' => 7,
+    '#size' => 8,
+  );
+  $form['image_captcha_color_settings']['image_captcha_foreground_color_randomness'] = array(
+    '#type' => 'select',
+    '#title' => t('Additional variation of text color'),
+    '#options' => array(
+      0 => t('No variation'),
+      50 => t('Little variation'),
+      100 => t('Medium variation'),
+      150 => t('High variation'),
+      200 => t('Very high variation'),
+    ),
+    '#default_value' => (int) variable_get('image_captcha_foreground_color_randomness', 100),
+    '#description' => t('The different characters will have randomized colors in the specified range around the text color.'),
+  );
+  $form['image_captcha_color_settings']['image_captcha_file_format'] = array(
+    '#type' => 'select',
+    '#title' => t('File format'),
+    '#description' => t('Select the file format for the image. JPEG usually results in smaller files, PNG allows tranparency.'),
+    '#default_value' => variable_get('image_captcha_file_format', IMAGE_CAPTCHA_FILE_FORMAT_JPG),
+    '#options' => array(
+      IMAGE_CAPTCHA_FILE_FORMAT_JPG => t('JPEG'),
+      IMAGE_CAPTCHA_FILE_FORMAT_PNG => t('PNG'),
+      IMAGE_CAPTCHA_FILE_FORMAT_TRANSPARENT_PNG => t('PNG with transparent background'),
+    ),
+  );
+
+  // distortion and noise settings
+  $form['image_captcha_distortion_and_noise'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Distortion and noise'),
+    '#description' => t('With these settings you can control the degree of obfuscation by distortion and added noise. Do not exaggerate the obfuscation and assure that the code in the image is reasonably readable. For example, do not combine high levels of distortion and noise.'),
+  );
+  // distortion
+  $form['image_captcha_distortion_and_noise']['image_captcha_distortion_amplitude'] = array(
+    '#type' => 'select',
+    '#title' => t('Distortion level'),
+    '#options' => array(
+      0 => t('@level - no distortion', array('@level' => '0')),
+      1 => t('@level - low', array('@level' => '1')),
+      2 => '2',
+      3 => '3',
+      4 => '4',
+      5 => t('@level - medium', array('@level' => '5')),
+      6 => '6',
+      7 => '7',
+      8 => '8',
+      9 => '9',
+      10 => t('@level - high', array('@level' => '10')),
+    ),
+    '#default_value' => (int) variable_get('image_captcha_distortion_amplitude', 0),
+    '#description' => t('Set the degree of wave distortion in the image.'),
+  );
+  $form['image_captcha_distortion_and_noise']['image_captcha_bilinear_interpolation'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Smooth distortion'),
+    '#default_value' => variable_get('image_captcha_bilinear_interpolation', FALSE),
+    '#description' => t('This option enables bilinear interpolation of the distortion which makes the image look smoother, but it is more CPU intensive.'),
+  );
+  // noise
+  $form['image_captcha_distortion_and_noise']['image_captcha_dot_noise'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add salt and pepper noise'),
+    '#default_value' => variable_get('image_captcha_dot_noise', 0),
+    '#description' => t('This option adds randomly colored point noise.'),
+  );
+  $form['image_captcha_distortion_and_noise']['image_captcha_line_noise'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add line noise'),
+    '#default_value' => variable_get('image_captcha_line_noise', 0),
+    '#description' => t('This option enables lines randomly drawn on top of the text code.'),
+  );
+  $form['image_captcha_distortion_and_noise']['image_captcha_noise_level'] = array(
+    '#type' => 'select',
+    '#title' => t('Noise level'),
+    '#options' => array(
+      1 => '1 - ' . t('low'),
+      2 => '2',
+      3 => '3 - ' . t('medium'),
+      4 => '4',
+      5 => '5 - ' . t('high'),
+      7 => '7',
+      10 => '10 - ' . t('severe'),
+    ),
+    '#default_value' => (int) variable_get('image_captcha_noise_level', 5),
+  );
+
+  // Add a validation handler.
+  $form['#validate'] = array('image_captcha_settings_form_validate');
+
+  // Make it a settings form.
+  $form = system_settings_form($form);
+  // But also do some custom submission handling.
+  $form['#submit'][] = 'image_captcha_settings_form_submit';
+
+  return $form;
+}
+
+
+/**
+ * Form elements for the font specific setting.
+ *
+ * This is refactored to a separate function to avoid poluting the
+ * general form function image_captcha_settings_form with some
+ * specific logic.
+ *
+ * @return $form, the font settings specific form elements.
+ */
+function _image_captcha_settings_form_font_section() {
+  // Put it all in a fieldset.
+  $form = array(
+    '#type' => 'fieldset',
+    '#title' => t('Font settings'),
+  );
+
+  // First check if there is TrueType support.
+  $setup_status = _image_captcha_check_setup(FALSE);
+  if ($setup_status & IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT) {
+    // Show a warning that there is no TrueType support
+    $form['no_ttf_support'] = array(
+      '#type' => 'item',
+      '#title' => t('No TrueType support'),
+      '#markup' => t('The Image CAPTCHA module can not use TrueType fonts because your PHP setup does not support it. You can only use a PHP built-in bitmap font of fixed size.'),
+    );
+
+  }
+  else {
+
+    // Build a list of  all available fonts.
+    $available_fonts = array();
+
+    // List of folders to search through for TrueType fonts.
+    $fonts = _image_captcha_get_available_fonts_from_directories();
+    // Cache the list of previewable fonts. All the previews are done
+    // in separate requests, and we don't want to rescan the filesystem
+    // every time, so we cache the result.
+    variable_set('image_captcha_fonts_preview_map_cache', $fonts);
+    // Put these fonts with preview image in the list
+    foreach ($fonts as $token => $font) {
+      $img_src = check_url(url('admin/config/people/captcha/image_captcha/font_preview/' . $token));
+      $title = t('Font preview of @font (@file)', array('@font' => $font->name, '@file' => $font->uri));
+      $available_fonts[$font->uri] = '<img src="' . $img_src . '" alt="' . $title . '" title="' . $title . '" />';
+    }
+
+    // Append the PHP built-in font at the end.
+    $img_src = check_url(url('admin/config/people/captcha/image_captcha/font_preview/BUILTIN'));
+    $title = t('Preview of built-in font');
+    $available_fonts['BUILTIN'] = t('PHP built-in font: !font_preview',
+      array('!font_preview' => '<img src="' . $img_src . '" alt="' . $title . '" title="' . $title . '" />')
+    );
+
+    $default_fonts = _image_captcha_get_enabled_fonts();
+    $form['image_captcha_fonts'] = array(
+      '#type' => 'checkboxes',
+      '#title' => t('Fonts'),
+      '#default_value' => $default_fonts,
+      '#description' => t('Select the fonts to use for the text in the image CAPTCHA. Apart from the provided defaults, you can also use your own TrueType fonts (filename extension .ttf) by putting them in %fonts_library_general or %fonts_library_specific.',
+        array(
+          '%fonts_library_general' => 'sites/all/libraries/fonts',
+          '%fonts_library_specific' => conf_path() . '/libraries/fonts',
+        )
+      ),
+      '#options' => $available_fonts,
+      '#attributes' => array('class' => array('image_captcha_admin_fonts_selection')),
+      '#process' => array('form_process_checkboxes'),
+    );
+
+
+    // Font size.
+    $form['image_captcha_font_size'] = array(
+      '#type' => 'select',
+      '#title' => t('Font size'),
+      '#options' => array(
+        9 => '9 pt - ' . t('tiny'),
+        12 => '12 pt - ' . t('small'),
+        18 => '18 pt',
+        24 => '24 pt - ' . t('normal'),
+        30 => '30 pt',
+        36 => '36 pt - ' . t('large'),
+        48 => '48 pt',
+        64 => '64 pt - ' . t('extra large'),
+      ),
+      '#default_value' => (int) variable_get('image_captcha_font_size', 30),
+      '#description' => t('The font size influences the size of the image. Note that larger values make the image generation more CPU intensive.'),
+    );
+
+  }
+
+  // Character spacing (available for both the TrueType fonts and the builtin font.
+  $form['image_captcha_font_settings']['image_captcha_character_spacing'] = array(
+    '#type' => 'select',
+    '#title' => t('Character spacing'),
+    '#description' => t('Define the average spacing between characters. Note that larger values make the image generation more CPU intensive.'),
+    '#default_value' => variable_get('image_captcha_character_spacing', '1.2'),
+    '#options' => array(
+      '0.75' => t('tight'),
+      '1' => t('normal'),
+      '1.2' => t('wide'),
+      '1.5' => t('extra wide'),
+    ),
+  );
+
+  return $form;
+}
+
+/**
+ * Helper function to get fonts from the given directories.
+ *
+ * @param $directories (optional) an array of directories
+ *   to recursively search through, if not given, the default
+ *   directories will be used.
+ *
+ * @return an array of fonts file objects (with fields 'name',
+ *   'basename' and 'filename'), keyed on the md5 hash of the font
+ *   path (to have an easy token that can be used in an url
+ *   without en/decoding issues).
+ */
+function _image_captcha_get_available_fonts_from_directories($directories=NULL) {
+  // If no fonts directories are given: use the default.
+  if ($directories === NULL) {
+    $directories = array(
+      drupal_get_path('module', 'image_captcha') . '/fonts',
+      'sites/all/libraries/fonts',
+      conf_path() . '/libraries/fonts',
+    );
+  }
+  // Collect the font information.
+  $fonts = array();
+  foreach ($directories as $directory) {
+    foreach (file_scan_directory($directory, '/\.[tT][tT][fF]$/') as $filename => $font) {
+      $fonts[md5($filename)] = $font;
+    }
+  }
+
+  return $fonts;
+}
+
+
+/**
+ * Validation function for image_captcha configuration form
+ */
+function image_captcha_settings_form_validate($form, &$form_state) {
+  // Check image_captcha_image_allowed_chars for spaces.
+  if (preg_match('/\s/', $form_state['values']['image_captcha_image_allowed_chars'])) {
+    form_set_error('image_captcha_image_allowed_chars', t('The list of characters to use should not contain spaces.'));
+  }
+
+  if (!isset($form['image_captcha_font_settings']['no_ttf_support'])) {
+    // Check the selected fonts.
+    // Filter the image_captcha fonts array to pick out the selected ones.
+    $fonts = array_filter($form_state['values']['image_captcha_fonts']);
+    if (count($fonts) < 1) {
+      form_set_error('image_captcha_fonts', t('You need to select at least one font.'));
+    }
+    if ($form_state['values']['image_captcha_fonts']['BUILTIN']) {
+      // With the built in font, only latin2 characters should be used.
+      if (preg_match('/[^a-zA-Z0-9]/', $form_state['values']['image_captcha_image_allowed_chars'])) {
+        form_set_error('image_captcha_image_allowed_chars', t('The built-in font only supports Latin2 characters. Only use "a" to "z" and numbers.'));
+      }
+    }
+    list($readable_fonts, $problem_fonts) = _image_captcha_check_fonts($fonts);
+    if (count($problem_fonts) > 0) {
+      form_set_error('image_captcha_fonts', t('The following fonts are not readable: %fonts.', array('%fonts' => implode(', ', $problem_fonts))));
+    }
+  }
+
+  // check color settings
+  if (!preg_match('/^#([0-9a-fA-F]{3}){1,2}$/', $form_state['values']['image_captcha_background_color'])) {
+    form_set_error('image_captcha_background_color', t('Background color is not a valid hexadecimal color value.'));
+  }
+  if (!preg_match('/^#([0-9a-fA-F]{3}){1,2}$/', $form_state['values']['image_captcha_foreground_color'])) {
+    form_set_error('image_captcha_foreground_color', t('Text color is not a valid hexadecimal color value.'));
+  }
+}
+
+/**
+ * Submit function for image_captcha configuration form.
+ */
+function image_captcha_settings_form_submit($form, &$form_state) {
+  if (!isset($form['image_captcha_font_settings']['no_ttf_support'])) {
+    // Filter the image_captcha fonts array to pick out the selected ones.
+    $fonts = array_filter($form_state['values']['image_captcha_fonts']);
+    variable_set('image_captcha_fonts', $fonts);
+  }
+}
+
+/**
+ * Menu handler for font preview request.
+ *
+ */
+function image_captcha_font_preview($font_token) {
+
+  // Get the font from the given font token.
+  if ($font_token == 'BUILTIN') {
+    $font = 'BUILTIN';
+  }
+  else {
+    // Get the mapping of font tokens to font file objects.
+    $fonts = variable_get('image_captcha_fonts_preview_map_cache', array());
+    if (!isset($fonts[$font_token])) {
+      echo('bad token');
+      exit();
+    }
+    // Get the font path.
+    $font = $fonts[$font_token]->uri;
+    // Some sanity checks if the given font is valid.
+    if (!is_file($font) || !is_readable($font)) {
+      echo('bad font');
+      exit();
+    }
+  }
+
+  // Settings of the font preview.
+  $width = 120;
+  $text = 'AaBbCc123';
+  $font_size = 14;
+  $height = 2 * $font_size;
+
+  // Allocate image resource.
+  $image = imagecreatetruecolor($width, $height);
+  if (!$image) {
+    exit();
+  }
+  // White background and black foreground.
+  $background_color = imagecolorallocate($image, 255, 255, 255);
+  $color = imagecolorallocate($image, 0, 0, 0);
+  imagefilledrectangle($image, 0, 0, $width, $height, $background_color);
+
+  // Draw preview text
+  if ($font == 'BUILTIN') {
+    imagestring($image, 5, 1, .5*$height-10, $text, $color);
+  }
+  else {
+    imagettftext($image, $font_size, 0, 1, 1.5*$font_size, $color, realpath($font), $text);
+  }
+
+  // Set content type.
+  drupal_add_http_header('Content-Type', 'image/png');
+  // Dump image data to client.
+  imagepng($image);
+  // Release image memory.
+  imagedestroy($image);
+
+  // Close connection.
+  exit();
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,30 @@
+/**
+ * Styling of the font selection list (with previews)
+ * on the Image CAPTCHA settings page.
+ */
+
+/**
+ * Float the fonts with preview (with a fixed width)
+ * to create a multi-column layout.
+ */
+.image_captcha_admin_fonts_selection .form-item {
+  float: left;
+  width: 160px;
+}
+
+/**
+ * Stop floating with the item for the built in font.
+ */
+.image_captcha_admin_fonts_selection .form-item-image-captcha-fonts-BUILTIN {
+  clear: both;
+  float: none;
+  width: 100%;
+}
+
+/**
+ * Center the font previews vertically to the text.
+ */
+.image_captcha_admin_fonts_selection img {
+  vertical-align: middle;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+name = "Image CAPTCHA"
+description = "Provides an image based CAPTCHA."
+package = "Spam control"
+dependencies[] = captcha
+core = 7.x
+configure = admin/config/people/captcha/image_captcha
+
+files[] = image_captcha.install
+files[] = image_captcha.module
+files[] = image_captcha.admin.inc
+files[] = image_captcha.user.inc
+
+; Information added by drupal.org packaging script on 2013-06-25
+version = "7.x-1.0"
+core = "7.x"
+project = "captcha"
+datestamp = "1372203950"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Installation/uninstallation related functions for the image_captcha module.
+ */
+
+/**
+ * Implements hook_requirements().
+ */
+function image_captcha_requirements($phase) {
+  $requirements = array();
+  $t = get_t();
+  if ($phase == 'install') {
+    // _image_captcha_check_setup() is defined in image_captcha.module.
+    module_load_include('module', 'image_captcha');
+    // Check if the GD library is available and raise an error when not.
+    if (_image_captcha_check_setup(FALSE) & IMAGE_CAPTCHA_ERROR_NO_GDLIB) {
+      $requirements['image_captcha_requires_gd'] = array(
+        'title' => $t('Image CAPTCHA requires GD library'),
+        'description' =>
+          $t('The Image CAPTCHA module can not be installed because your PHP setup does not provide the <a href="!gddoc">GD library</a>, which is required to generate images.',
+            array('!gddoc' => 'http://www.php.net/manual/en/book.image.php',)
+          ),
+        'severity' => REQUIREMENT_ERROR,
+      );
+    }
+  }
+  return $requirements;
+}
+
+/**
+ * On uninstall: remove module variables and clear variable cache
+ */
+function image_captcha_uninstall() {
+  db_delete('variable')
+    ->condition('name', db_like('image_captcha_') . '%', 'LIKE')
+    ->execute();
+  cache_clear_all('variables', 'cache');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,40 @@
+(function($) {
+
+  Drupal.behaviors.captchaAdmin = {
+    attach : function(context) {
+
+      // Helper function to show/hide noise level widget.
+      var noise_level_shower = function(speed) {
+        speed = (typeof speed == 'undefined') ? 'slow' : speed;
+        if ($("#edit-image-captcha-dot-noise").is(":checked")
+            || $("#edit-image-captcha-line-noise").is(":checked")) {
+          $(".form-item-image-captcha-noise-level").show(speed);
+        } else {
+          $(".form-item-image-captcha-noise-level").hide(speed);
+        }
+      }
+      // Add onclick handler to the dot and line noise check boxes.
+      $("#edit-image-captcha-dot-noise").click(noise_level_shower);
+      $("#edit-image-captcha-line-noise").click(noise_level_shower);
+      // Show or hide appropriately on page load.
+      noise_level_shower(0);
+
+      // Helper function to show/hide smooth distortion widget.
+      var smooth_distortion_shower = function(speed) {
+        speed = (typeof speed == 'undefined') ? 'slow' : speed;
+        if ($("#edit-image-captcha-distortion-amplitude").val() > 0) {
+          $(".form-item-image-captcha-bilinear-interpolation").show(speed);
+        } else {
+          $(".form-item-image-captcha-bilinear-interpolation").hide(speed);
+        }
+      }
+      // Add onchange handler to the distortion level select widget.
+      $("#edit-image-captcha-distortion-amplitude").change(
+          smooth_distortion_shower);
+      // Show or hide appropriately on page load.
+      smooth_distortion_shower(0)
+
+    }
+  };
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,272 @@
+<?php
+
+/**
+ * @file
+ * Implements image CAPTCHA for use with the CAPTCHA module
+ */
+
+define('IMAGE_CAPTCHA_ALLOWED_CHARACTERS', 'aAbBCdEeFfGHhijKLMmNPQRrSTtWXYZ23456789');
+
+// Setup status flags.
+define('IMAGE_CAPTCHA_ERROR_NO_GDLIB', 1);
+define('IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT', 2);
+define('IMAGE_CAPTCHA_ERROR_TTF_FILE_READ_PROBLEM', 4);
+
+define('IMAGE_CAPTCHA_FILE_FORMAT_JPG', 1);
+define('IMAGE_CAPTCHA_FILE_FORMAT_PNG', 2);
+define('IMAGE_CAPTCHA_FILE_FORMAT_TRANSPARENT_PNG', 3);
+
+
+/**
+ * Implements hook_help().
+ */
+function image_captcha_help($path, $arg) {
+  switch ($path) {
+    case 'admin/config/people/captcha/image_captcha':
+      $output = '<p>' . t('The image CAPTCHA is a popular challenge where a random textual code is obfuscated in an image. The image is generated on the fly for each request, which is rather CPU intensive for the server. Be careful with the size and computation related settings.') . '</p>';
+      return $output;
+  }
+}
+
+/**
+ * Implements hook_menu().
+ */
+function image_captcha_menu() {
+  $items = array();
+  // add an administration tab for image_captcha
+  $items['admin/config/people/captcha/image_captcha'] = array(
+    'title' => 'Image CAPTCHA',
+    'file' => 'image_captcha.admin.inc',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('image_captcha_settings_form'),
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_LOCAL_TASK,
+  );
+  // Menu path for generating font example.
+  $items['admin/config/people/captcha/image_captcha/font_preview'] = array(
+    'title' => 'Font example',
+    'file' => 'image_captcha.admin.inc',
+    'page callback' => 'image_captcha_font_preview',
+    'access arguments' => array('administer CAPTCHA settings'),
+    'type' => MENU_CALLBACK,
+  );
+  // callback for generating an image
+  $items['image_captcha'] = array(
+    'file' => 'image_captcha.user.inc',
+    'page callback' => 'image_captcha_image',
+    'access callback' => TRUE,
+    'type' => MENU_CALLBACK,
+  );
+  return $items;
+}
+
+/**
+ * Helper function for getting the fonts to use in the image CAPTCHA.
+ *
+ * @return a list of font paths.
+ */
+function _image_captcha_get_enabled_fonts() {
+  if (IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT & _image_captcha_check_setup(FALSE)) {
+    return array('BUILTIN');
+  }
+  else {
+    $default = array(
+      drupal_get_path('module', 'image_captcha') . '/fonts/Tesox/tesox.ttf',
+      drupal_get_path('module', 'image_captcha') . '/fonts/Tuffy/Tuffy.ttf',
+    );
+    return variable_get('image_captcha_fonts', $default);
+  }
+}
+
+/**
+ * Helper function for checking if the specified fonts are available.
+ *
+ * @param $fonts paths of fonts to check.
+ * @return list($readable_fonts, $problem_fonts)
+ */
+function _image_captcha_check_fonts($fonts) {
+  $readable_fonts = array();
+  $problem_fonts = array();
+  foreach ($fonts as $font) {
+    if ($font != 'BUILTIN' && (!is_file($font) || !is_readable($font))) {
+      $problem_fonts[] = $font;
+    }
+    else {
+      $readable_fonts[] = $font;
+    }
+  }
+  return array($readable_fonts, $problem_fonts);
+}
+
+/**
+ * Helper function for splitting an utf8 string correctly in characters.
+ * Assumes the given utf8 string is well formed.
+ * See http://en.wikipedia.org/wiki/Utf8 for more info
+ */
+function _image_captcha_utf8_split($str) {
+  $characters = array();
+  $len = strlen($str);
+  for ($i=0; $i < $len; ) {
+    $chr = ord($str[$i]);
+    if (($chr & 0x80) == 0x00) { // one byte character (0zzzzzzz)
+      $width = 1;
+    }
+    else {
+      if (($chr & 0xE0) == 0xC0) { // two byte character (first byte: 110yyyyy)
+        $width = 2;
+      }
+      elseif (($chr & 0xF0) == 0xE0) { // three byte character (first byte: 1110xxxx)
+        $width = 3;
+      }
+      elseif (($chr & 0xF8) == 0xF0) { // four byte character (first byte: 11110www)
+        $width = 4;
+      }
+      else {
+        watchdog('CAPTCHA', 'Encountered an illegal byte while splitting an utf8 string in characters.', array(), WATCHDOG_ERROR);
+        return $characters;
+      }
+    }
+    $characters[] = substr($str, $i, $width);
+    $i += $width;
+  }
+  return $characters;
+}
+
+/**
+ * Helper function for checking the setup of the Image CAPTCHA.
+ *
+ * The image CAPTCHA requires at least the GD PHP library.
+ * Support for TTF is recommended and the enabled
+ * font files should be readable.
+ * This functions checks these things.
+ *
+ * @param $check_fonts whether or not the enabled fonts should be checked.
+ *
+ * @return status code: bitwise 'OR' of status flags like
+ *   IMAGE_CAPTCHA_ERROR_NO_GDLIB, IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT,
+ *   IMAGE_CAPTCHA_ERROR_TTF_FILE_READ_PROBLEM.
+ */
+function _image_captcha_check_setup($check_fonts=TRUE) {
+  // Start clean.
+  $status = 0;
+  // Check if we can use the GD library.
+  // We need at least the imagepng function (for font previews on the settings page).
+  // Note that the imagejpg function is optionally also used, but not required.
+  if (!function_exists('imagepng')) {
+    $status = $status | IMAGE_CAPTCHA_ERROR_NO_GDLIB;
+  }
+  if (!function_exists('imagettftext')) {
+    $status = $status | IMAGE_CAPTCHA_ERROR_NO_TTF_SUPPORT;
+  }
+  if ($check_fonts) {
+    // Check availability of enabled fonts.
+    $fonts = _image_captcha_get_enabled_fonts();
+    list($readable_fonts, $problem_fonts) = _image_captcha_check_fonts($fonts);
+    if (count($problem_fonts) != 0) {
+      $status = $status | IMAGE_CAPTCHA_ERROR_TTF_FILE_READ_PROBLEM;
+    }
+  }
+  return $status;
+}
+
+/**
+ * Helper function for calculating image height and width
+ * based on given code and current font/spacing settings.
+ *
+ * @return array($width, $heigh)
+ */
+function _image_captcha_image_size($code) {
+  // Get settings
+  $font_size = (int) variable_get('image_captcha_font_size', 30);
+  $character_spacing = (float) variable_get('image_captcha_character_spacing', '1.2');
+  $characters = _image_captcha_utf8_split($code);
+  $character_quantity = count($characters);
+
+  // Calculate height and width
+  $width = $character_spacing * $font_size * $character_quantity;
+  $height = 2 * $font_size;
+
+  return array($width, $height);
+}
+
+
+/**
+ * Implements hook_captcha().
+ */
+function image_captcha_captcha($op, $captcha_type='', $captcha_sid=NULL) {
+  switch ($op) {
+    case 'list':
+      // Only offer the image CAPTCHA if it is possible to generate an image on this setup.
+      if (!(_image_captcha_check_setup() & IMAGE_CAPTCHA_ERROR_NO_GDLIB)) {
+        return array('Image');
+      }
+      else {
+        return array();
+      }
+      break;
+
+    case 'generate':
+      if ($captcha_type == 'Image') {
+        // In maintenance mode, the image CAPTCHA does not work because the request
+        // for the image itself won't succeed (only ?q=user is permitted for
+        // unauthenticated users). We fall back to the Math CAPTCHA in that case.
+        global $user;
+        if (variable_get('maintenance_mode', 0) && $user->uid == 0) {
+          return captcha_captcha('generate', 'Math');
+        }
+        // generate a CAPTCHA code
+        $allowed_chars = _image_captcha_utf8_split(variable_get('image_captcha_image_allowed_chars', IMAGE_CAPTCHA_ALLOWED_CHARACTERS));
+        $code_length = (int)variable_get('image_captcha_code_length', 5);
+        $code = '';
+        for ($i = 0; $i < $code_length; $i++) {
+          $code .= $allowed_chars[array_rand($allowed_chars)];
+        }
+
+        // build the result to return
+        $result = array();
+
+        $result['solution'] = $code;
+        // Generate image source URL (add timestamp to avoid problems with
+        // client side caching: subsequent images of the same CAPTCHA session
+        // have the same URL, but should display a different code).
+        $options = array(
+          'query' => array(
+            'sid' => $captcha_sid,
+            'ts' => REQUEST_TIME,
+          ),
+        );
+        $img_src = check_url(url("image_captcha", $options));
+        list($width, $height) = _image_captcha_image_size($code);
+        // TODO: start using a theming funtion for generating the image markup?
+        $result['form']['captcha_image'] = array(
+          '#type' => 'markup',
+          '#markup' => '<img src="' . $img_src
+            . '" width="'. $width . '" height="' . $height
+            . '" alt="' . t('Image CAPTCHA') . '" title="' . t('Image CAPTCHA') . '" />',
+          '#weight' => -2,
+        );
+        $result['form']['captcha_response'] = array(
+          '#type' => 'textfield',
+          '#title' => t('What code is in the image?'),
+          '#description' => t('Enter the characters shown in the image.'),
+          '#weight' => 0,
+          '#required' => TRUE,
+          '#size' => 15,
+        );
+
+        // Handle the case insensitive validation option combined with ignoring spaces.
+        switch (variable_get('captcha_default_validation', CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE)) {
+          case CAPTCHA_DEFAULT_VALIDATION_CASE_SENSITIVE:
+            $result['captcha_validate'] = 'captcha_validate_ignore_spaces';
+            break;
+          case CAPTCHA_DEFAULT_VALIDATION_CASE_INSENSITIVE:
+            $result['captcha_validate'] = 'captcha_validate_case_insensitive_ignore_spaces';
+            break;
+        }
+
+        return $result;
+      }
+      break;
+
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/captcha/image_captcha/image_captcha.user.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,343 @@
+<?php
+
+/**
+ * @file
+ * Functions for the generation of the CAPTCHA image.
+ *
+ * Loosely Based on MyCaptcha by Heine Deelstra
+ * (http://heine.familiedeelstra.com/mycaptcha-download)
+ */
+
+/**
+ * Menu callback function that generates the CAPTCHA image.
+ */
+function image_captcha_image() {
+  // If output buffering is on: discard current content and disable further buffering
+  if (ob_get_level()) {
+    ob_end_clean();
+  }
+
+  if (!isset($_GET['sid'])) {
+    exit();
+  }
+  $captcha_sid = $_GET['sid'];
+
+  // Get solution (the code to show).
+  $code = db_query("SELECT solution FROM {captcha_sessions} WHERE csid = :csid",
+    array(':csid' => $captcha_sid)
+  )->fetchField();
+
+  // Only generate captcha if code exists in the session.
+  if ($code !== FALSE) {
+    // generate the image
+    $image = @_image_captcha_generate_image($code);
+    // check of generation was successful
+    if (!$image) {
+      watchdog('CAPTCHA', 'Generation of image CAPTCHA failed. Check your image CAPTCHA configuration and especially the used font.', array(), WATCHDOG_ERROR);
+      exit();
+    }
+    // Send the image resource as an image file to the client.
+    $file_format = variable_get('image_captcha_file_format', IMAGE_CAPTCHA_FILE_FORMAT_JPG);
+    if ($file_format == IMAGE_CAPTCHA_FILE_FORMAT_JPG) {
+      drupal_add_http_header('Content-Type', 'image/jpeg');
+      imagejpeg($image);
+    }
+    else {
+      drupal_add_http_header('Content-Type', 'image/png');
+      imagepng($image);
+    }
+    // Clean up the image resource.
+    imagedestroy($image);
+  }
+  exit();
+}
+
+
+/**
+ * Small helper function for parsing a hexadecimal color to a RGB tuple.
+ */
+function _image_captcha_hex_to_rgb($hex) {
+  // handle #RGB format
+  if (strlen($hex) == 4) {
+    $hex = $hex[1] . $hex[1] . $hex[2] . $hex[2] . $hex[3] . $hex[3];
+  }
+  $c = hexdec($hex);
+  $rgb = array();
+  for ($i = 16; $i >= 0; $i -= 8) {
+    $rgb[] = ($c >> $i) & 0xFF;
+  }
+  return $rgb;
+}
+
+
+/**
+ * Base function for generating a image CAPTCHA.
+ */
+function _image_captcha_generate_image($code) {
+  // Get font.
+  $fonts = _image_captcha_get_enabled_fonts();
+
+  // get other settings
+  $font_size = (int) variable_get('image_captcha_font_size', 30);
+  list($width, $height) = _image_captcha_image_size($code);
+
+  // create image resource
+  $image = imagecreatetruecolor($width, $height);
+  if (!$image) {
+    return FALSE;
+  }
+
+  // Get the background color and paint the background.
+  $background_rgb = _image_captcha_hex_to_rgb(variable_get('image_captcha_background_color', '#ffffff'));
+  $background_color = imagecolorallocate($image, $background_rgb[0], $background_rgb[1], $background_rgb[2]);
+  // Set transparency if needed.
+  $file_format = variable_get('image_captcha_file_format', IMAGE_CAPTCHA_FILE_FORMAT_JPG);
+  if ($file_format == IMAGE_CAPTCHA_FILE_FORMAT_TRANSPARENT_PNG) {
+    imagecolortransparent($image, $background_color);
+  }
+  imagefilledrectangle($image, 0, 0, $width, $height, $background_color);
+
+  // Do we need to draw in RTL mode?
+  global $language;
+  $rtl = $language->direction && ((bool) variable_get('image_captcha_rtl_support', 0));
+
+  // draw text
+  $result = _image_captcha_image_generator_print_string($image, $width, $height, $fonts, $font_size, $code, $rtl);
+  if (!$result) {
+    return FALSE;
+  }
+
+  // add noise
+  $noise_colors = array();
+  for ($i = 0; $i < 20; $i++) {
+    $noise_colors[] = imagecolorallocate($image, mt_rand(0, 255), mt_rand(0, 255), mt_rand(0, 255));
+  }
+  // Add additional noise.
+  if (variable_get('image_captcha_dot_noise', 0)) {
+    _image_captcha_image_generator_add_dots($image, $width, $height, $noise_colors);
+  }
+  if (variable_get('image_captcha_line_noise', 0)) {
+    _image_captcha_image_generator_add_lines($image, $width, $height, $noise_colors);
+  }
+
+  // Distort the image.
+  $distortion_amplitude = .25 * $font_size * variable_get('image_captcha_distortion_amplitude', 0) / 10.0;
+  if ($distortion_amplitude > 1) {
+    // distortion parameters
+    $wavelength_xr = (2+3*lcg_value())*$font_size;
+    $wavelength_yr = (2+3*lcg_value())*$font_size;
+    $freq_xr = 2 * 3.141592 / $wavelength_xr;
+    $freq_yr = 2 * 3.141592 / $wavelength_yr;
+    $wavelength_xt = (2+3*lcg_value())*$font_size;
+    $wavelength_yt = (2+3*lcg_value())*$font_size;
+    $freq_xt = 2 * 3.141592 / $wavelength_xt;
+    $freq_yt = 2 * 3.141592 / $wavelength_yt;
+
+    $distorted_image = imagecreatetruecolor($width, $height);
+    if ($file_format == IMAGE_CAPTCHA_FILE_FORMAT_TRANSPARENT_PNG) {
+      imagecolortransparent($distorted_image, $background_color);
+    }
+    if (!$distorted_image) {
+      return FALSE;
+    }
+
+    if (variable_get('image_captcha_bilinear_interpolation', FALSE)) {
+      // distortion with bilinear interpolation
+      for ($x = 0; $x < $width; $x++) {
+        for ($y = 0; $y < $height; $y++) {
+          // get distorted sample point in source image
+          $r = $distortion_amplitude * sin($x * $freq_xr + $y * $freq_yr);
+          $theta = $x * $freq_xt + $y * $freq_yt;
+          $sx = $x + $r * cos($theta);
+          $sy = $y + $r * sin($theta);
+          $sxf = (int)floor($sx);
+          $syf = (int)floor($sy);
+          if ($sxf < 0 || $syf < 0 || $sxf >= $width - 1 || $syf >= $height - 1) {
+            $color = $background_color;
+          }
+          else {
+            // bilinear interpolation: sample at four corners
+            $color_00 = imagecolorat($image, $sxf  , $syf  );
+            $color_00_r = ($color_00 >> 16) & 0xFF;
+            $color_00_g = ($color_00 >> 8) & 0xFF;
+            $color_00_b = $color_00 & 0xFF;
+            $color_10 = imagecolorat($image, $sxf+1, $syf  );
+            $color_10_r = ($color_10 >> 16) & 0xFF;
+            $color_10_g = ($color_10 >> 8) & 0xFF;
+            $color_10_b = $color_10 & 0xFF;
+            $color_01 = imagecolorat($image, $sxf  , $syf+1);
+            $color_01_r = ($color_01 >> 16) & 0xFF;
+            $color_01_g = ($color_01 >> 8) & 0xFF;
+            $color_01_b = $color_01 & 0xFF;
+            $color_11 = imagecolorat($image, $sxf+1, $syf+1);
+            $color_11_r = ($color_11 >> 16) & 0xFF;
+            $color_11_g = ($color_11 >> 8) & 0xFF;
+            $color_11_b = $color_11 & 0xFF;
+            // interpolation factors
+            $u  = $sx - $sxf;
+            $v  = $sy - $syf;
+            // interpolate
+            $r = (int)((1-$v)*((1-$u)*$color_00_r + $u*$color_10_r) + $v*((1-$u)*$color_01_r + $u*$color_11_r));
+            $g = (int)((1-$v)*((1-$u)*$color_00_g + $u*$color_10_g) + $v*((1-$u)*$color_01_g + $u*$color_11_g));
+            $b = (int)((1-$v)*((1-$u)*$color_00_b + $u*$color_10_b) + $v*((1-$u)*$color_01_b + $u*$color_11_b));
+            // build color
+            $color = ($r<<16) + ($g<<8) + $b;
+          }
+          imagesetpixel($distorted_image, $x, $y, $color);
+        }
+      }
+    }
+    else {
+      // distortion with nearest neighbor interpolation
+      for ($x = 0; $x < $width; $x++) {
+        for ($y = 0; $y < $height; $y++) {
+          // get distorted sample point in source image
+          $r = $distortion_amplitude * sin($x * $freq_xr + $y * $freq_yr);
+          $theta = $x * $freq_xt + $y * $freq_yt;
+          $sx = $x + $r * cos($theta);
+          $sy = $y + $r * sin($theta);
+          $sxf = (int)floor($sx);
+          $syf = (int)floor($sy);
+          if ($sxf < 0 || $syf < 0 || $sxf >= $width - 1 || $syf >= $height - 1) {
+            $color = $background_color;
+          }
+          else {
+            $color = imagecolorat($image, $sxf, $syf);
+          }
+          imagesetpixel($distorted_image, $x, $y, $color);
+        }
+      }
+    }
+    // release undistorted image
+    imagedestroy($image);
+    // return distorted image
+    return $distorted_image;
+  }
+  else {
+    return $image;
+  }
+}
+
+function _image_captcha_image_generator_add_lines(&$image, $width, $height, $colors) {
+  $line_quantity = $width * $height/200.0 * ((int) variable_get('image_captcha_noise_level', 5)) / 10.0;
+  for ($i = 0; $i <  $line_quantity; $i++) {
+    imageline($image, mt_rand(0, $width), mt_rand(0, $height), mt_rand(0, $width), mt_rand(0, $height), $colors[array_rand($colors)]);
+  }
+}
+
+function _image_captcha_image_generator_add_dots(&$image, $width, $height, $colors) {
+  $noise_quantity = $width * $height * ((int) variable_get('image_captcha_noise_level', 5)) / 10.0;
+  for ($i = 0; $i < $noise_quantity; $i++ ) {
+    imagesetpixel($image, mt_rand(0, $width), mt_rand(0, $height), $colors[array_rand($colors)]);
+  }
+}
+
+/**
+ * Helper function for drawing text on the image.
+ */
+function _image_captcha_image_generator_print_string(&$image, $width, $height, $fonts, $font_size, $text, $rtl=FALSE) {
+  // get characters
+  $characters = _image_captcha_utf8_split($text);
+  $character_quantity = count($characters);
+
+  // get colors
+  $background_rgb = _image_captcha_hex_to_rgb(variable_get('image_captcha_background_color', '#ffffff'));
+  $foreground_rgb = _image_captcha_hex_to_rgb(variable_get('image_captcha_foreground_color', '#000000'));
+  $background_color = imagecolorallocate($image, $background_rgb[0], $background_rgb[1], $background_rgb[2]);
+  $foreground_color = imagecolorallocate($image, $foreground_rgb[0], $foreground_rgb[1], $foreground_rgb[2]);
+  // precalculate the value ranges for color randomness
+  $foreground_randomness = (int)(variable_get('image_captcha_foreground_color_randomness', 100));
+  if ($foreground_randomness) {
+    $foreground_color_range = array();
+    for ($i=0; $i<3; $i++) {
+      $foreground_color_range[$i] = array(max(0, $foreground_rgb[$i] - $foreground_randomness), min(255, $foreground_rgb[$i] + $foreground_randomness));
+    }
+  }
+
+  // set default text color
+  $color = $foreground_color;
+
+  // the image is seperated in different character cages, one for each character
+  // each character will be somewhere inside that cage
+  $ccage_width = $width / $character_quantity;
+  $ccage_height = $height;
+
+  foreach ($characters as $c => $character) {
+    // initial position of character: in the center of its cage
+    $center_x = ($c + 0.5) * $ccage_width;
+    if ($rtl) {
+      $center_x = $width - $center_x;
+    }
+    $center_y = 0.5 * $height;
+
+    // Pick a random font from the list.
+    $font = $fonts[array_rand($fonts)];
+
+    // Get character dimensions for TrueType fonts.
+    if ($font != 'BUILTIN') {
+      $bbox = imagettfbbox($font_size, 0, drupal_realpath($font), $character);
+      // In very rare cases with some versions of the GD library, the x-value
+      // of the left side of the bounding box as returned by the first call of
+      // imagettfbbox is corrupt (value -2147483648 = 0x80000000).
+      // The weird thing is that calling the function a second time
+      // can be used as workaround.
+      // This issue is discussed at http://drupal.org/node/349218.
+      if ($bbox[2] < 0) {
+        $bbox = imagettfbbox($font_size, 0, drupal_realpath($font), $character);
+      }
+    }
+    else {
+      $character_width = imagefontwidth(5);
+      $character_height = imagefontheight(5);
+      $bbox = array(0, $character_height, $character_width, $character_height, $character_width, 0, 0, 0);
+    }
+
+    // Random (but small) rotation of the character.
+    // TODO: add a setting for this?
+    $angle = mt_rand(-10, 10);
+
+    // Determine print position: at what coordinate should the character be
+    // printed so that the bounding box would be nicely centered in the cage?
+    $bb_center_x = .5 * ($bbox[0] + $bbox[2]);
+    $bb_center_y = .5 * ($bbox[1] + $bbox[7]);
+    $angle_cos = cos($angle*3.1415/180);
+    $angle_sin = sin($angle*3.1415/180);
+    $pos_x = $center_x - ($angle_cos * $bb_center_x + $angle_sin * $bb_center_y);
+    $pos_y = $center_y - (-$angle_sin * $bb_center_x + $angle_cos * $bb_center_y);
+
+    // Calculate available room to jitter: how much can the character be moved
+    // so that it stays inside its cage?
+    $bb_width = $bbox[2] - $bbox[0];
+    $bb_height = $bbox[1] - $bbox[7];
+    $dev_x = .5 * max(0, $ccage_width - abs($angle_cos) * $bb_width - abs($angle_sin) * $bb_height);
+    $dev_y = .5 * max(0, $ccage_height - abs($angle_cos) * $bb_height - abs($angle_sin) * $bb_width);
+
+    // add jitter to position
+    $pos_x = $pos_x + mt_rand(-$dev_x, $dev_x);
+    $pos_y = $pos_y + mt_rand(-$dev_y, $dev_y);
+
+    // calculate text color in case of randomness
+    if ($foreground_randomness) {
+      $color = imagecolorallocate($image,
+        mt_rand($foreground_color_range[0][0], $foreground_color_range[0][1]),
+        mt_rand($foreground_color_range[1][0], $foreground_color_range[1][1]),
+        mt_rand($foreground_color_range[2][0], $foreground_color_range[2][1])
+      );
+    }
+
+    // draw character
+    if ($font == 'BUILTIN') {
+      imagestring($image, 5, $pos_x, $pos_y, $character, $color);
+    }
+    else {
+      imagettftext($image, $font_size, $angle, $pos_x, $pos_y, $color, drupal_realpath($font), $character);
+    }
+
+    // For debugging purposes: draw character bounding box (only valid when rotation is disabled).
+    // imagerectangle($image, $pos_x + $bbox[0], $pos_y + $bbox[1], $pos_x + $bbox[2], $pos_y + $bbox[7], $color);
+
+  }
+
+  // return a sign of success
+  return TRUE;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,110 @@
+About
+=====
+Integrates the FlexSlider library into Drupal.
+
+Known Issues
+------------
+
+- IE10 requires an updated version of jQuery to work properly with FlexSlider. Please see http://drupal.org/project/jquery_update
+
+Current Options
+---------------
+Allows you to use FlexSlider in a few different ways
+
+- As a library to be used with any other theme or module by calling flexslider_add() (N.B. You may also use libraries_load('flexslider') or drupal_add_library('flexslider', 'flexslider'), but only if you want to control everything manually).
+- Integrates with Fields (flexslider_fields)
+- Adds a Views display mode (flexslider_views)
+
+About FlexSlider
+----------------
+
+Library available at https://github.com/woothemes/FlexSlider
+
+- Simple, semantic markup
+- Supported in all major browsers
+- Horizontal/vertical slide and fade animations
+- Multiple slider support, Callback API, and more
+- Hardware accelerated touch swipe support
+- Custom navigation options
+- Use any html elements in the slides
+- Built for beginners and pros, alike
+- Free to use under the MIT license
+
+Installation
+============
+
+Dependencies
+------------
+
+- [Libraries API 2.x](http://drupal.org/project/libraries)
+- [FlexSlider Library](https://github.com/woothemes/FlexSlider)
+
+Tasks
+-----
+
+1. Download the FlexSlider library from https://github.com/woothemes/FlexSlider
+2. Unzip the file and rename the folder to "flexslider" (pay attention to the case of the letters)
+3. Put the folder in a libraries directory
+    - Ex: sites/all/libraries
+4. The following files are required (last file is required for javascript debugging)
+    - jquery.flexslider-min.js
+    - flexslider.css
+    - jquery.flexslider.js
+5. Ensure you have a valid path similar to this one for all files
+    - Ex: sites/all/libraries/flexslider/jquery.flexslider-min.js
+
+That's it!
+
+Drush Make
+----------
+
+You can also use Drush Make to download the library automatically. Simply copy/paste the 'flexslider.make.example' to 'flexslider.make' or copy the contents of the make file into your own make file.
+
+Usage
+======
+
+Option Sets
+-----------
+
+No matter how you want to use FlexSlider (with fields or views) you need to define "option sets" to tell FlexSlider how you want it to display. An option set defines all the settings for displaying the slider. Things like slide direction, speed, starting slide, etc... You can define as many option sets as you like and on top of that they're all exportable! Which means you can carry configuration of your Flex Slider instances from one site to the next or create features.
+
+Go to admin/config/media/flexslider
+
+From there you can edit the default option set and define new ones. These will be listed as options in the various forms where you setup FlexSlider to display.  NOTE: under advanced options, you can set a namespace prefix for the optionset.  This will allow you to build custom CSS for each optionset.  Start by copying the flexslider_img.css from the assets subfolder to your theme.  Build new custom CSS for each prefix in your optionsets.
+
+Carousels
+---------
+
+Carousels can be created with Flexslider2 by setting an Item Width for images and a Margin Width in the optionset.  Use the flexslider_thumbnail image style and set your item width to fit the desired number of images into the div space available.  NOTE: the margin width setting should correspond IN PIXELS to the margin widths set by your img CSS in your theme.  This will allow Flexslider to properly calculate the "total width" of the image+margins so that horizontal scrolling behaves properly.
+
+Flexslider Views
+----------------
+
+Flex Slider Views allows you to build views which display their results in Flex Slider. Similarly to how you can output fields as an "HTML List" or "Table", you can now select "Flex Slider" as an option.
+
+Create or edit a view and ensure it can load a content type which contain image fields. Set your display fields to include an image field. In the field settings, DO NOT SET THE FORMATTER TO FLEXSLIDER. This will attempt to put Flex Sliders inside other Flex Sliders and will just get messy. Ensure you don't include any wrapper markup, labels or container markup for the field value itself. Save your field.
+
+Next, go to "Format" in the main Views windows. Click and select "Flex Slider", then select your option set. Save your view and you should see your results displayed in Flex Slider.
+
+Debugging
+---------
+
+You can toggle the development version of the library in the administrative settings page. This will load the unminified version of the library.  Uncheck this when moving to a production site to load the smaller minified version.
+
+### Image Width/Height Attributes
+
+If your images aren't resizing, ensure the width and height attributes are removed. The module will attempt to remove them automatically on any image matching the pattern 
+
+    ul.slides > li > img
+    
+
+
+Export API
+==========
+
+You can export your FlexSlider option presets using CTools exportables. So either using the Bulk Export module or Features.
+
+External Links
+==============
+
+- [Wiki Documentation for FlexSlider 2](https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties)
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/assets/css/flexslider_img.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+/* Avoid scroll bar issues when the slider is next to the edge of the page */
+.flexslider .flex-direction-nav a,
+.flexslider .flex-direction-nav a {
+  display: none;
+}
+.flexslider:hover .flex-direction-nav a,
+.flexslider:hover .flex-direction-nav a {
+  display: block;
+}
\ No newline at end of file
Binary file sites/all/modules/flexslider/assets/images/flexslider-sample-1.JPG has changed
Binary file sites/all/modules/flexslider/assets/images/flexslider-sample-2.JPG has changed
Binary file sites/all/modules/flexslider/assets/images/flexslider-sample-3.JPG has changed
Binary file sites/all/modules/flexslider/assets/images/flexslider-sample-4.JPG has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/assets/js/flexslider.load.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,67 @@
+(function($) {
+
+  // Behavior to load FlexSlider
+  Drupal.behaviors.flexslider = {
+    attach: function(context, settings) {
+      var sliders = [];
+      if ($.type(settings.flexslider) !== 'undefined' && $.type(settings.flexslider.instances) !== 'undefined') {
+
+        for (id in settings.flexslider.instances) {
+
+          if (settings.flexslider.optionsets[settings.flexslider.instances[id]] !== undefined) {
+            if (settings.flexslider.optionsets[settings.flexslider.instances[id]].asNavFor !== '') {
+              // We have to initialize all the sliders which are "asNavFor" first.
+              _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context);
+            } else {
+              // Everyone else is second
+              sliders[id] = settings.flexslider.optionsets[settings.flexslider.instances[id]];
+            }
+          }
+        }
+      }
+      // Slider set
+      for (id in sliders) {
+        _flexslider_init(id, settings.flexslider.optionsets[settings.flexslider.instances[id]], context);
+      }
+    }
+  };
+
+  /**
+   * Initialize the flexslider instance
+   */
+
+  function _flexslider_init(id, optionset, context) {
+    $('#' + id, context).once('flexslider', function() {
+      // Remove width/height attributes
+      // @todo load the css path from the settings
+      $(this).find('ul.slides > li > *').removeAttr('width').removeAttr('height');
+
+      if (optionset) {
+        // Add events that developers can use to interact.
+        $(this).flexslider($.extend(optionset, {
+          start: function(slider) {
+            slider.trigger('start');
+          },
+          before: function(slider) {
+            slider.trigger('before');
+          },
+          after: function(slider) {
+            slider.trigger('after');
+          },
+          end: function(slider) {
+            slider.trigger('end');
+          },
+          added: function(slider) {
+            slider.trigger('added');
+          },
+          removed: function(slider) {
+            slider.trigger('removed');
+          }
+        }));
+      } else {
+        $(this).flexslider();
+      }
+    });
+  }
+
+}(jQuery));
Binary file sites/all/modules/flexslider/flexslider-logo.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,519 @@
+<?php
+/**
+ * @file
+ * Administrative page callbacks for the flexslider module.
+ */
+
+/**
+ * Submit handler for adding a new option set.
+ */
+function flexslider_form_optionset_add_submit($form, &$form_state) {
+  $optionset = flexslider_optionset_create(array('name' => $form_state['values']['name'], 'title' => $form_state['values']['title']));
+
+  $saved = flexslider_optionset_save($optionset, TRUE);
+
+  if ($saved) {
+    drupal_set_message(t('Option set %name was created.', array('%name' => $optionset->name)));
+    $form_state['redirect'] = 'admin/config/media/flexslider/edit/' . $optionset->name;
+  }
+  else {
+    drupal_set_message(t('Failed to create option set. Please verify your settings.'), 'error');
+  }
+}
+
+/**
+ * Defines the form elements used to edit the FlexSlider library options
+ *
+ * @param array $options [optional]
+ *  Pass in a set of default values for the options
+ * @return array
+ *  Returns the option set array
+ */
+function flexslider_option_elements($options = array()) {
+  $form = array();
+
+  // General Slideshow and Animiation Settings
+  $form['animation_slideshow'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('General Slideshow and Animation Settings'),
+  );
+
+  $form['animation_slideshow']['animation'] = array(
+    '#type' => 'select',
+    '#title' => t('Animation'),
+    '#description' => t('Select your animation type'),
+    '#options' => array(
+      'fade'   => t('Fade'),
+      'slide'  => t('Slide'),
+    ),
+    '#default_value' => isset($options['animation']) ? $options['animation'] : _flexslider_optionset_defaults('animation'),
+    // @todo add states to enable/disable the direction
+  );
+
+  $form['animation_slideshow']['animationSpeed'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Animation Speed'),
+    '#description' => t('Set the speed of animations, in milliseconds'),
+    '#element_validate' => array('_flexslider_validate_positive_integer'),
+    '#default_value' => isset($options['animationSpeed']) ? $options['animationSpeed'] : _flexslider_optionset_defaults('animationSpeed'),
+    '#size' => 30,
+  );
+
+  $form['animation_slideshow']['direction'] = array(
+    '#type' => 'select',
+    '#title' => t('Slide Direction'),
+    '#description' => t('Select the sliding direction, "horizontal" or "vertical"'),
+    '#options' => array(
+      'horizontal'   => t('Horizontal'),
+      'vertical'  => t('Vertical'),
+    ),
+    '#default_value' =>  isset($options['direction']) ? $options['direction'] : _flexslider_optionset_defaults('direction'),
+  );
+
+  $form['animation_slideshow']['slideshow'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Slideshow'),
+    '#description' => t('Animate the slides automatically'),
+    '#default_value' => isset($options['slideshow']) ? $options['slideshow'] : _flexslider_optionset_defaults('slideshow'),
+  );
+
+  // Build in support for easing plugin
+  $easing_options = array('swing' => t('Swing'), 'linear' => t('Linear'));
+  if (module_exists('jqeasing')) {
+    $easing_options = array_merge($easing_options, _flexslider_jqeasing_options());
+    
+  }
+
+  $form['animation_slideshow']['easing'] = array(
+    '#type' => 'select',
+    '#title' => t('Easing'),
+    '#multiple' => FALSE,
+    '#description' => t('The description appears usually below the item.'),
+    '#options' => $easing_options,
+    '#default_value' => isset($options['easing']) ? $options['easing'] : _flexslider_optionset_defaults('easing'),
+  );
+
+  $form['animation_slideshow']['smoothHeight'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Smooth Height'),
+    '#description' => t('Animate the height of the slider smoothly for slides of varying height.'),
+    '#default_value' => isset($options['smoothHeight']) ? $options['smoothHeight'] : _flexslider_optionset_defaults('smoothHeight'),
+  );
+
+  $form['animation_slideshow']['reverse'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Reverse'),
+    '#description' => t('Animate the slides in reverse'),
+    '#default_value' => isset($options['reverse']) ? $options['reverse'] : _flexslider_optionset_defaults('reverse'),
+  );
+
+  $form['animation_slideshow']['slideshowSpeed'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Slideshow speed'),
+    '#description' => t('Set the speed of the slideshow cycling, in milliseconds'),
+    '#element_validate' => array('_flexslider_validate_positive_integer'),
+    '#default_value' => isset($options['slideshowSpeed']) ? $options['slideshowSpeed'] : _flexslider_optionset_defaults('slideshowSpeed'),
+    '#size' => 30,
+  );
+
+  $form['animation_slideshow']['animationLoop'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Loop Slideshow'),
+    '#description' => t('Loop the slideshow once it reaches the last slide.'),
+    '#default_value' => isset($options['animationLoop']) ? $options['animationLoop'] : _flexslider_optionset_defaults('animationLoop'),
+  );
+
+  $form['animation_slideshow']['randomize'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Randomize Slide Order'),
+    '#description' => t('Randomize the order the slides play back.'),
+    '#default_value' => isset($options['randomize']) ? $options['randomize'] : _flexslider_optionset_defaults('randomize'),
+  );
+  $form['animation_slideshow']['startAt'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Starting Slide'),
+    '#description' => t('The slide that the slider should start on. Ex: For the first slide enter "0", for the second enter "1", etc. If you enter a value which is greater than the number of slides, the slider will default to the first slide.'),
+    '#element_validate' => array('_flexslider_validate_positive_integer'),
+    '#default_value' => isset($options['startAt']) ? $options['startAt'] : _flexslider_optionset_defaults('startAt'),
+    '#size' => 30,
+    // @todo add states to disable if randomize is set
+  );
+
+  $form['animation_slideshow']['itemWidth'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Item Width'),
+    '#description' => t('Box-model width of individual carousel items, including horizontal borders and padding.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['itemWidth']) ? $options['itemWidth'] : _flexslider_optionset_defaults('itemWidth'),
+  );
+  $form['animation_slideshow']['itemMargin'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Item Margin'),
+    '#description' => t('Margin between carousel items. (NB: the margin must be set in your CSS styles. This property merely informs FlexSlider of the margin.)'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['itemMargin']) ? $options['itemMargin'] : _flexslider_optionset_defaults('itemMargin'),
+  );
+  $form['animation_slideshow']['minItems'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Minimum Items'),
+    '#description' => t('Minimum number of carousel items that should be visible.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['minItems']) ? $options['minItems'] : _flexslider_optionset_defaults('minItems'),
+  );
+  $form['animation_slideshow']['maxItems'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Max Items'),
+    '#description' => t('Maximum number of carousel items that should be visible.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['maxItems']) ? $options['maxItems'] : _flexslider_optionset_defaults('maxItems'),
+  );
+  $form['animation_slideshow']['move'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Move'),
+    '#description' => t('Number of carousel items that should move on animation. If 0, slider will move all visible items.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['move']) ? $options['move'] : _flexslider_optionset_defaults('move'),
+  );
+
+  // Navigation and Control Settings
+  $form['nav_controls'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Navigation and Control Settings'),
+  );
+  $form['nav_controls']['directionNav'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Next/Previous Controls'),
+    '#description' => t('Add controls for previous/next navigation'),
+    '#default_value' => isset($options['directionNav']) ? $options['directionNav'] : _flexslider_optionset_defaults('directionNav'),
+  );
+  $form['nav_controls']['controlNav'] = array(
+    '#type' => 'select',
+    '#title' => t('Paging Controls'),
+    '#description' => t('Add controls to jump to individual slides. (Note: set to "On" if using Manual Controls)'),
+    '#default_value' => isset($options['controlNav']) ? $options['controlNav'] : _flexslider_optionset_defaults('controlNav'),
+    '#options' => array(
+      0 => t('Off'),
+      1 => t('On'),
+      'thumbnails' => t('Thumbnails'),
+    )
+  );
+  $form['nav_controls']['keyboard'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Keyboard Navigation'),
+    '#description' => t('Allow slider navigating via keyboard left/right keys'),
+    '#default_value' => isset($options['keyboard']) ? $options['keyboard'] : _flexslider_optionset_defaults('keyboard'),
+  );
+  $form['nav_controls']['multipleKeyboard'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Multiple Keyboard'),
+    '#description' => t('Allow keyboard navigation to affect multiple sliders.'),
+    '#default_value' => isset($options['multipleKeyboard']) ? $options['multipleKeyboard'] : _flexslider_optionset_defaults('multipleKeyboard'),
+  );
+  $form['nav_controls']['mousewheel'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Mousewheel Navigation'),
+    '#description' => t('Allow slider navigating via mousewheel'),
+    '#default_value' => isset($options['mousewheel']) ? $options['mousewheel'] : _flexslider_optionset_defaults('mousewheel'),
+    // @todo add check for jquery mousewheel library
+  );
+  $form['nav_controls']['touch'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Touch'),
+    '#description' => t('Allow touch swipe navigation.'),
+    '#default_value' => isset($options['touch']) ? $options['touch'] : _flexslider_optionset_defaults('touch'),
+  );
+  $form['nav_controls']['prevText'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Previous Link Text'),
+    '#description' => t('Set the text for the "previous" control item. <em>Text translation can be controlled using the <a href="http://drupal.org/project/stringoverrides">String Overrides module</a>.</em>'),
+    '#default_value' => isset($options['prevText']) ? $options['prevText'] : _flexslider_optionset_defaults('prevText'),
+  );
+  $form['nav_controls']['nextText'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Next Link Text'),
+    '#description' => t('Set the text for the "next" control item. <em>Text translation can be controlled using the <a href="http://drupal.org/project/stringoverrides">String Overrides module</a>.</em>'),
+    '#default_value' => isset($options['nextText']) ? $options['nextText'] : _flexslider_optionset_defaults('nextText'),
+  );
+
+  // Advanced Options
+  $form['advanced'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Advanced Options'),
+  );
+  $form['advanced']['namespace'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Namespace'),
+    '#description' => t('Prefix string attached to the classes of all elements generated by the plugin.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#element_validate' => array('_flexslider_validate_namespace'),
+    '#default_value' => isset($options['namespace']) ? $options['namespace'] : _flexslider_optionset_defaults('namespace'),
+  );
+  $form['advanced']['selector'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Selector'),
+    '#description' => t('Must match a simple pattern. "{container} > {slide}".'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#element_validate' => array('_flexslider_validate_selector'),
+    '#default_value' => isset($options['selector']) ? $options['selector'] : _flexslider_optionset_defaults('selector'),
+  );
+  $form['advanced']['sync'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Sync'),
+    '#description' => t('Mirror the actions performed on this slider with another slider.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['sync']) ? $options['sync'] : _flexslider_optionset_defaults('sync'),
+  );
+  $form['advanced']['asNavFor'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Use as navigation'),
+    '#description' => t('Turn the slider into a thumbnail navigation for another slider.'),
+    '#size' => 40,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['asNavFor']) ? $options['asNavFor'] : _flexslider_optionset_defaults('asNavFor'),
+  );
+
+  $form['advanced']['initDelay'] =  array(
+    '#type' => 'textfield',
+    '#title' => t('Initialize Delay'),
+    '#description' => t('Set an initialization delay, in milliseconds.'),
+    '#size' => 20,
+    '#maxlength' => 255,
+    '#default_value' => isset($options['initDelay']) ? $options['initDelay'] : _flexslider_optionset_defaults('initDelay'),
+    //'#element_validate' => add validate on zero or greater integer
+  );
+  $form['advanced']['useCSS'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Use CSS'),
+    '#description' => t('Slider will use CSS3 transitions, if available.'),
+    '#default_value' => isset($options['useCSS']) ? $options['useCSS'] : _flexslider_optionset_defaults('useCSS'),
+  );
+  $form['advanced']['video'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Video'),
+    '#description' => t('Will prevent use of CSS3 3D Transforms, avoiding graphical glitches.'),
+    '#default_value' => isset($options['video']) ? $options['video'] : _flexslider_optionset_defaults('video'),
+  );
+  $form['advanced']['pausePlay'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Add Pause/Play Indicator'),
+    '#description' => t('Have FlexSlider add an element indicating the current state of the slideshow (i.e. "pause" or "play").'),
+    '#default_value' => isset($options['pausePlay']) ? $options['pausePlay'] : _flexslider_optionset_defaults('pausePlay'),
+    // @todo add states value for pause/play text
+  );
+  $form['advanced']['pauseText'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Pause State Text'),
+    '#description' => t('Set the text for the "pause" state indicator. <em>Text translation can be controlled using the <a href="http://drupal.org/project/stringoverrides">String Overrides module</a>.</em>'),
+    '#default_value' => isset($options['pauseText']) ? $options['pauseText'] : _flexslider_optionset_defaults('pauseText'),
+  );
+  $form['advanced']['playText'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Play State Text'),
+    '#description' => t('Set the text for the "play" state indicator. <em>Text translation can be controlled using the <a href="http://drupal.org/project/stringoverrides">String Overrides module</a>.</em>'),
+    '#default_value' => isset($options['playText']) ? $options['playText'] : _flexslider_optionset_defaults('playText'),
+  );
+  $form['advanced']['pauseOnAction'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Pause On Controls'),
+    '#description' => t('Pause the slideshow when interacting with control elements.'),
+    '#default_value' => isset($options['pauseOnAction']) ? $options['pauseOnAction'] : _flexslider_optionset_defaults('pauseOnAction'),
+  );
+  $form['advanced']['pauseOnHover'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Pause On Hover'),
+    '#description' => t('Pause the slideshow when hovering over slider, then resume when no longer hovering.'),
+    '#default_value' => isset($options['pauseOnHover']) ? $options['pauseOnHover'] : _flexslider_optionset_defaults('pauseOnHover'),
+  );
+  $form['advanced']['controlsContainer'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Controls container (Advanced)'),
+    '#description' => t('Declare which container the navigation elements should be appended too. Default container is the flexSlider element. Example use would be ".flexslider-container", "#container", etc. If the given element is not found, the default action will be taken.'),
+    '#default_value' => isset($options['controlsContainer']) ? $options['controlsContainer'] : _flexslider_optionset_defaults('controlsContainer'),
+  );
+  $form['advanced']['manualControls'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Manual controls (Advanced)'),
+    '#description' => t('Declare custom control navigation. Example would be ".flex-control-nav li" or "#tabs-nav li img", etc. The number of elements in your controlNav should match the number of slides/tabs.'),
+    '#default_value' => isset($options['manualControls']) ? $options['manualControls'] : _flexslider_optionset_defaults('manualControls'),
+  );
+
+  return $form;
+}
+
+/**
+ * Form builder; Form to edit a given option set.
+ */
+function flexslider_form_optionset_edit($form, &$form_state) {
+
+  if (empty($form_state['optionset'])) {
+    $optionset = flexslider_optionset_create();
+  }
+  else {
+    $optionset = $form_state['optionset'];
+  }
+
+  // Title
+  $form['title'] = array(
+    '#type' => 'textfield',
+    '#maxlength' => '255',
+    '#title' => t('Title'),
+    '#description' => t('A human-readable title for this option set.'),
+    '#required' => TRUE,
+    '#default_value' => $optionset->title,
+  );
+  $form['name'] = array(
+    '#type' => 'machine_name',
+    '#maxlength' => '255',
+    '#machine_name' => array(
+      'source' => array('title'),
+      'exists' => 'flexslider_optionset_exists',
+    ),
+    '#required' => TRUE,
+    '#default_value' => $optionset->name,
+  );
+
+  // Show select boxes for the various image styles (thumbnail, normal, big)
+  $image_style = image_style_options(FALSE);
+  $form['image_style'] = array(
+    '#type' => 'fieldset',
+    '#title' => 'Image style',
+    '#tree' => TRUE,
+  );
+  $form['image_style']['normal'] = array(
+    '#type' => 'select',
+    '#title' => t('Normal image style'),
+    '#description' => t('Image style for the main stage images.'),
+    '#empty_option' => t('None (original image)'),
+    '#options' => $image_style,
+    '#default_value' => $optionset->imagestyle_normal,
+  );
+  $form['image_style']['thumbnail'] = array(
+    '#type' => 'select',
+    '#title' => t('Thumbnail image style'),
+    '#description' => t('Image style for the thumbnail images.'),
+    '#empty_option' => t('None (original image)'),
+    '#options' => $image_style,
+    '#default_value' => $optionset->imagestyle_thumbnail,
+    // @todo enable/disable this option based on the type of options selected
+    // Ex: Thumbnails should be enabled
+  );
+
+  // Options Vertical Tab Group table
+  $form['options'] = array(
+    '#type' => 'vertical_tabs',
+  );
+
+  $default_options = flexslider_option_elements($optionset->options);
+  // Add the options to the vertical tabs section
+  foreach ($default_options as $key => $value) {
+    $form['options'][] = $value;
+  }
+
+  return $form;
+}
+
+/**
+ * Validate a form element that should have an integer value.
+ */
+function _flexslider_validate_positive_integer($element, &$form_state) {
+  $value = $element['#value'];
+  if ($value !== '' && (!is_numeric($value) || intval($value) != $value || $value < 0)) {
+    form_error($element, t('%name must be a positive integer.', array('%name' => $element['#title'])));
+  }
+}
+
+/**
+ * Validate a form element that should have a number as value.
+ */
+function _flexslider_validate_number($element, &$form_state) {
+  $value = $element['#value'];
+  if ($value !== '' && !is_numeric($value)) {
+    form_error($element, t('%name must be a number.', array('%name' => $element['#option_name'])));
+  }
+}
+
+/**
+ * Form builder; Form to delete a given option set.
+ */
+function flexslider_optionset_form_delete($form, &$form_state, $optionset) {
+  $form_state['optionset'] = &$optionset;
+
+  // Deleting an export in code will revert it.
+  $op = ($optionset->export_type & EXPORT_IN_CODE) ? 'Revert' : 'Delete';
+
+  return confirm_form(
+    $form,
+    t('Are you sure you want to @action the option set %name?', array('@action' => t(drupal_strtolower($op)), '%name' => $optionset->name)),
+    'admin/config/media/flexslider',
+    NULL,
+    t($op),  t('Cancel')
+  );
+}
+
+/**
+ * Submit handler for deleting an option set.
+ */
+function flexslider_optionset_form_delete_submit($form, &$form_state) {
+  $optionset = &$form_state['optionset'];
+  $op = ($optionset->export_type & EXPORT_IN_CODE) ? 'reverted' : 'deleted';
+
+  ctools_include('export');
+  ctools_export_crud_delete('flexslider_optionset', $optionset);
+
+  drupal_set_message(t('Option set %name was ' . $op . '.', array('%name' => $optionset->name)));
+  $form_state['redirect'] = 'admin/config/media/flexslider';
+}
+
+
+/**
+ * Form builder; Form for advanced module settings.
+ */
+function flexslider_form_settings() {
+  $form = array();
+
+  $form['library'] = array(
+    '#type' => 'fieldset',
+    '#title' => 'Library',
+  );
+
+  // Debug mode toggle
+  $form['library']['flexslider_debug'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Enable debug mode'),
+    '#description' => t('Load the human-readable version of the FlexSlider library.'),
+    '#default_value' => variable_get('flexslider_debug', FALSE),
+    '#access' => user_access('administer flexslider'),
+  );
+
+  return system_settings_form($form);
+}
+
+/**
+ * Submit handler for the advanced module settings.
+ */
+function flexslider_form_settings_submit($form, &$form_state) {
+  // Do nothing for now
+}
+
+/**
+ * Validation functions
+ */
+function _flexslider_validate_namespace($element, &$form_state) {
+  // @todo
+  // @see form_error()
+  return TRUE;
+}
+
+function _flexslider_validate_selector($element, &$form_state) {
+  // @todo
+  // @see form_error()
+  return TRUE;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.api.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+<?php
+
+/**
+ * @file
+ * API documentation for FlexSlider
+ */
+
+/**
+ * By design, FlexSlider should be entirely configurable from the web interface.
+ * However some implementations may require to access the FlexSlider library
+ * directly by using flexslider_add().
+ *
+ * Here are some sample uses of flexslider_add().
+ */
+
+/**
+ * This call will look for an HTML element with and id attribute of "my_image_list"
+ * and initialize FlexSlider on it using the option set named "default".
+ */
+flexslider_add('my_image_list', 'default');
+
+/**
+ * You also have the option of skipping the option set parameter if you want
+ * to run with the library defaults or plan on adding the settings array
+ * into the page manually using drupal_add_js().
+ */
+flexslider_add('my_image_list');
+
+/**
+ * Finally, you can simply have Drupal include the library in the list of
+ * javascript libraries. This method would assume you would take care of
+ * initializing a FlexSlider instance in your theme or custom javascript
+ * file.
+ *
+ * Ex: $('#slider').flexslider();
+ */
+flexslider_add();
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.flexslider_default_preset.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Bulk export of default_flexslider_presets objects generated by Bulk export module.
+ */
+
+/**
+ * Implements hook_flexslider_default_presets().
+ */
+function flexslider_flexslider_default_presets() {
+  $presets = array();
+
+  $preset = flexslider_optionset_create();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'default';
+  $preset->title = 'Default';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $presets['default'] = $preset;
+
+  return $presets;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+name = FlexSlider
+description = Integrate the FlexSlider 2 library with Drupal
+core = 7.x
+package = FlexSlider
+
+; Dependencies
+dependencies[] = libraries (>=2.x)
+dependencies[] = ctools
+dependencies[] = image
+
+; Files
+files[] = theme/flexslider.theme.inc
+files[] = flexslider.test
+
+; Configuration link
+configure = admin/config/media/flexslider
+
+; Information added by drupal.org packaging script on 2013-08-19
+version = "7.x-2.0-alpha2"
+core = "7.x"
+project = "flexslider"
+datestamp = "1376925141"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,237 @@
+<?php
+/**
+ * @file
+ * Installation actions for FlexSlider
+ */
+
+/**
+ * Implements hook_schema().
+ */
+function flexslider_schema() {
+  $schema = array();
+
+  $schema['flexslider_optionset'] = array(
+    'description' => 'Store option sets for flexslider instances.',
+    'export' => array(
+      'key' => 'name',
+      'identifier' => 'preset',
+      'default hook' => 'flexslider_default_presets',
+      'api' => array(
+        'owner' => 'flexslider',
+        'api' => 'flexslider_default_preset',
+        'minimum_version' => 1,
+        'current_version' => 1,
+      ),
+    ),
+    'fields' => array(
+      'name' => array(
+        'description' => 'The machine-readable option set name.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'title' => array(
+        'description' => 'The human-readable title for this option set.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'theme' => array(
+        'description' => 'The flexslider theme.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => 'classic',
+      ),
+      'imagestyle_normal' => array(
+        'description' => 'The image style for normal images.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => 'flexslider_full',
+      ),
+      'imagestyle_thumbnail' => array(
+        'description' => 'The image style for thumbnail images.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+        'default' => 'flexslider_thumbnail',
+      ),
+      'options' => array(
+        'description' => 'The options array.',
+        'type' => 'blob',
+        'size' => 'big',
+        'serialize' => TRUE,
+      ),
+    ),
+    'primary key' => array('name'),
+  );
+
+  return $schema;
+}
+
+/**
+ * Implements hook_install().
+ *
+ * Adds a 'default' option set for fresh installs.
+ */
+function flexslider_install() {
+  // Do nothing for now
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function flexslider_uninstall() {
+  variable_del('flexslider_debug');
+  variable_del('flexslider_version');
+}
+
+/**
+ * Implements hook_requirements().
+ */
+function flexslider_requirements($phase) {
+  $requirements = array();
+  // Ensure translations don't break at install time
+  $t = get_t();
+
+  // Check to see if the flexslider library is available
+  if ($phase == 'runtime') {
+    $requirements['flexslider'] = array(
+      'title' => $t('FlexSlider'),
+      // @todo have the version automatically detected
+      'description' => $t('Version 2.0 installed'),
+      'severity' => REQUIREMENT_OK,
+    );
+    _flexslider_requirements_library_installed($requirements);
+  }
+  return $requirements;
+}
+
+/**
+ * Implements hook_update_N().
+ *
+ * Remove/Update table fields to better suit FlexSlider
+ */
+function flexslider_update_7001(&$sandbox) {
+  $field_new = array(
+    'description' => 'The image style for normal images.',
+    'type' => 'varchar',
+    'length' => 255,
+    'not null' => TRUE,
+    'default' => 'flexslider_full',
+  );
+  // Change the default image style
+  db_change_field('flexslider_optionset', 'imagestyle_normal', $field_new, array());
+  // Drop the unused table column
+  db_drop_field('flexslider_optionset', 'imagestyle_thumb');
+}
+
+/**
+ * Implements hook_update_N().
+ *
+ * Enables the Image module since it is now explicitly listed as a
+ * dependency.
+ */
+function flexslider_update_7002(&$sandbox) {
+  module_enable(array('image'));
+}
+
+/**
+ * Implements hook_update_N().
+ *
+ * Migrate settings from FlexSlider v1 to v2
+ */
+function flexslider_update_7200(&$sandbox) {
+  $t = get_t();
+
+  $optionsets = flexslider_optionset_load_all();
+
+  foreach ($optionsets as $optionset) {
+    // Map old options to new keys/values
+    $optionset->options['animationSpeed'] = $optionset->options['animationDuration'];
+    $optionset->options['direction'] = $optionset->options['slidedirection'];
+    $optionset->options['keyboard'] = $optionset->options['keyboardnav'];
+    $optionset->options['startAt'] = $optionset->options['slidetostart'];
+    $optionset->options['start'] = $optionset->options['startCallback'];
+    $optionset->options['before'] = $optionset->options['beforeCallback'];
+    $optionset->options['after'] = $optionset->options['afterCallback'];
+    $optionset->options['end'] = $optionset->options['endCallback'];
+
+    // Delete any options which no longer exist
+    unset($optionset->options['animationDuration']);
+    unset($optionset->options['slidedirection']);
+    unset($optionset->options['keyboardnav']);
+    unset($optionset->options['startCallback']);
+    unset($optionset->options['beforeCallback']);
+    unset($optionset->options['afterCallback']);
+    unset($optionset->options['endCallback']);
+    unset($optionset->options['controlsContainer']); // This value changed in the new version. We have to reset it to the default value
+
+    // Merge in defaults for new options
+    $optionset->options += _flexslider_optionset_defaults();
+
+    // Save the updated optionset
+    flexslider_optionset_save($optionset);
+  }
+  drupal_set_message($t('Optionsets migrated. However it is recommended to go validate all your settings manually. Especially if you have callback functions defined. They may reference functions which no longer exist.'), 'warning');
+}
+
+function flexslider_update_7201(&$sandbox) {
+  $field_new = array(
+    'description' => 'The image style for thumbnail images.',
+    'type' => 'varchar',
+    'length' => 255,
+    'not null' => TRUE,
+    'default' => 'flexslider_thumbnail',
+  );
+  // Change the default image style
+  db_add_field('flexslider_optionset', 'imagestyle_thumbnail', $field_new, array());
+}
+
+/**
+ * Check if the library is available
+ *
+ * @param array $requirements
+ *  Requirements definition
+ */
+function _flexslider_requirements_library_installed(&$requirements) {
+  $t = get_t();
+
+  $path = libraries_get_path('flexslider');
+  $installed = file_exists($path . '/jquery.flexslider-min.js') && file_exists($path . '/jquery.flexslider.js');
+
+  // Check the results of the test
+  if (!$installed) {
+    $requirements['flexslider']['description'] = $t('FlexSlider library not found. Please consult the README.txt for installation instructions.');
+    $requirements['flexslider']['severity'] = REQUIREMENT_ERROR;
+    $requirements['flexslider']['value'] = $t('FlexSlider library not found.');
+    return;
+  }
+
+  $js = file_exists($path . '/jquery.flexslider-min.js') ? fopen($path . '/jquery.flexslider-min.js', 'r') : fopen($path . '/jquery.flexslider.js', 'r');
+  $header = fread($js, 64);
+  $matches = array();
+  if (preg_match("/ v([0-9]+)\.([0-9]+)/", $header, $matches)) {
+    if (!($matches[1] == 2 and $matches[2] >= 0)) {
+      $requirements['flexslider']['description'] = $t('FlexSlider must be version 2.0 or higher, but lower than version 3.0.  Please consult the README.txt for installation instructions.');
+      $requirements['flexslider']['severity'] = REQUIREMENT_WARNING;
+      $requirements['flexslider']['value'] = $t('Incorrect version detected.');
+      return;
+    }
+    else {
+      $version = $matches[1] . "." . $matches[2];
+      variable_set('flexslider_version', $version);
+      $requirements['flexslider']['description'] = $t('Version %version installed', array( '%version' => $version));
+      $requirements['flexslider']['value'] = $t('FlexSlider library installed.');
+      return;
+    }
+  }
+  else {
+    $requirements['flexslider']['description'] = $t('FlexSlider version could not be determined.  Please consult the README.txt for installation instructions.');
+    $requirements['flexslider']['severity'] = REQUIREMENT_WARNING;
+    $requirements['flexslider']['value'] = $t('Unable to detect version.');
+  }
+}
+
+// @todo add hook_update_N function to migrate old option set data to new values
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.make.example	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+; FlexSlider
+
+api = 2
+core = 7.x
+
+libraries[flexslider][download][type] = "get"
+libraries[flexslider][download][url] = "https://github.com/woothemes/FlexSlider/zipball/master"
+libraries[flexslider][directory_name] = "flexslider"
+libraries[flexslider][type] = "library"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,588 @@
+<?php
+/**
+ * @file
+ * A light-weight, customizable image gallery plugin for Drupal based on jQuery
+ */
+
+define("FLEXSLIDER_VERSION", variable_get('flexslider_version', '2.0'));
+define("FLEXSLIDER_DEBUG", variable_get('flexslider_debug', FALSE));
+
+/**
+ * Implements hook_libraries_info().
+ */
+function flexslider_libraries_info() {
+  $libraries['flexslider'] = array(
+    'name' => 'FlexSlider',
+    'vendor url' => 'http://www.woothemes.com/flexslider/',
+    'download url' => 'https://github.com/woothemes/FlexSlider',
+    'version arguments' => array(
+      'file' => 'jquery.flexslider-min.js',
+      // jQuery FlexSlider v2.1
+      'pattern' => '/jQuery FlexSlider v(\d+\.+\d+)/',
+      'lines' => 2,
+    ),
+    'files' => array(
+      'js' => array(
+        'jquery.flexslider-min.js',
+      ),
+      'css' => array(
+        'flexslider.css',
+      ),
+    ),
+    'integration files' => array(
+      'flexslider' => array(
+        'css' => array('assets/css/flexslider_img.css'),
+      ),
+    ),
+  );
+
+  return $libraries;
+}
+
+/**
+ * Implements hook_libraries_info_alter().
+ */
+function flexslider_libraries_info_alter(&$libraries) {
+  $debug = variable_get('flexslider_debug', FALSE);
+  if ($debug) {
+    // Switch to the unminified version of the library
+    if (isset($libraries['flexslider'])) {
+      $libraries['flexslider']['files']['js'] = array(
+        'jquery.flexslider.js',
+      );
+    }
+  }
+
+  // Add support for jQuery Easing module
+  if (module_exists('jqeasing')) {
+    $libraries['flexslider']['dependencies'][] = 'easing (>=1.3)';
+  }
+}
+
+/**
+ * Implements hook_library().
+ *
+ * We also define FlexSlider through the core library callbacks
+ */
+function flexslider_library() {
+  $module_path = drupal_get_path('module', 'flexslider');
+  $library_path = libraries_get_path('flexslider');
+  
+  $libraries['flexslider'] = array(
+    'title' => 'FlexSlider',
+    'website' => 'http://flexslider.woothemes.com',
+    'version' => FLEXSLIDER_VERSION,
+    'js' => array(
+      $library_path . '/jquery.flexslider-min.js' => array(
+        'scope' => 'footer',
+      ),
+    ),
+    'css' => array(
+      $library_path . '/flexslider.css' => array(
+        'type' => 'file',
+        'media' => 'screen',
+      ),
+      $module_path . '/assets/css/flexslider_img.css' => array(
+        'type' => 'file',
+        'media' => 'screen',
+      ),
+    ),
+  );
+  return $libraries;
+}
+
+/**
+ * Implements hook_library_alter().
+ */
+function flexslider_library_alter(&$libraries, $module) {
+  // Enable debug mode
+  if (FLEXSLIDER_DEBUG) {
+    if ($module == 'flexslider' and isset($libraries['flexslider'])) {
+      $libraries['flexslider']['js'] = array(
+        libraries_get_path() . '/jquery.flexslider.js' => array(
+          'scope' => 'footer',
+        ),
+      );
+    }
+  }
+}
+
+/**
+ * Implements hook_permission().
+ */
+function flexslider_permission() {
+  return array(
+    'administer flexslider' =>  array(
+      'title' => t('Administer the FlexSlider module'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_menu().
+ */
+function flexslider_menu() {
+  $items = array();
+
+  $items['admin/config/media/flexslider/advanced'] = array(
+    'title' => 'Advanced settings',
+    'description' => 'Configure the advanced flexslider module settings.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('flexslider_form_settings'),
+    'access arguments' => array('administer flexslider'),
+    'type' => MENU_LOCAL_TASK,
+    'weight' => 2,
+    'file' => 'flexslider.admin.inc',
+  );
+
+  return $items;
+}
+
+/**
+ * Implements hook_help().
+ */
+function flexslider_help($path, $arg) {
+  switch ($path) {
+    case 'admin/config/media/flexslider/edit/%':
+      return
+          '<p>'
+        . t('An <em>option set</em> defines exactly how a flexslider image gallery looks like on your site. '
+          . 'It is s a combination of <a href="@styles">image styles</a> for the various image sizes and FlexSlider library options.', array('@styles' => url('admin/config/media/image-styles'))) . '<br />'
+        . t('For a full documentation of all options, refer to the official @docs.', array('@docs' => l(t('FlexSlider documentation'), 'http://www.woothemes.com/flexslider/')))
+        . '</p>';
+  }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function flexslider_theme() {
+  return array(
+    // Container for nav elements (arrows)
+    'flexslider' => array(
+      'variables' => array('items' => array(), 'settings' => array()),
+      'template' => 'theme/flexslider',
+      'file' => 'theme/flexslider.theme.inc',
+    ),
+    'flexslider_list' => array(
+      'variables' => array('items' => array(), 'settings' => array()),
+      'file' => 'theme/flexslider.theme.inc',
+    ),
+    'flexslider_list_item' => array(
+      'variables' => array('item' => array(), 'settings' => array()),
+      'file' => 'theme/flexslider.theme.inc',
+    ),
+  );
+}
+
+/**
+ * Implements hook_image_default_styles().
+ */
+function flexslider_image_default_styles() {
+  $styles = array();
+
+  // Default image preset for FlexSlider
+  $styles['flexslider_full'] = array(
+    'effects' => array(
+      array(
+        'name' => 'image_scale_and_crop',
+        'data' => array('width' => 800, 'height' => 500),
+        'weight' => 0,
+      ),
+    ),
+  );
+
+  // Default image preset for FlexSlider thumbnails
+  $styles['flexslider_thumbnail'] = array(
+    'effects' => array(
+      array(
+        'name' => 'image_scale_and_crop',
+        'data' => array('width' => 160, 'height' => 100),
+        'weight' => 0,
+      ),
+    ),
+  );
+
+  return $styles;
+}
+
+/**
+ * Implements hook_ctools_plugin_api().
+ */
+function flexslider_ctools_plugin_api($owner, $api) {
+  if ($owner == 'flexslider' && $api == 'flexslider_default_preset') {
+    return array('version' => 1);
+  }
+}
+
+/**
+ * Implements hook_ctools_plugin_directory().
+ */
+function flexslider_ctools_plugin_directory($module, $type) {
+  if ($type == 'export_ui') {
+    return 'plugins/export_ui';
+  }
+}
+
+/**
+ * Create a new optionset object
+ *
+ * Note that this function does not save the optionset to the database.
+ * @see flexslider_optionset_save()
+ */
+function flexslider_optionset_create($values = array()) {
+  ctools_include('export');
+  $optionset = ctools_export_crud_new('flexslider_optionset');
+
+  // Set the options to an array
+  $optionset->options = array();
+
+  // Assign specified values
+  if (isset($values['name'])) {
+    $optionset->name = $values['name'];
+  }
+  if (isset($values['title'])) {
+    $optionset->title = $values['title'];
+  }
+  if (isset($values['options']) and is_array($values['options'])) {
+    $optionset->options = $values['options'];
+  }
+
+  // Merge default settings with any given settings
+  $optionset_defaults = _flexslider_optionset_defaults();
+  $optionset->options = $optionset_defaults += $optionset->options;
+
+  return $optionset;
+}
+
+/**
+ * Fetches all option sets from the database and returns them as an associative array.
+ */
+function flexslider_optionset_load_all() {
+  ctools_include('export');
+  $optionsets = ctools_export_crud_load_all('flexslider_optionset');
+  foreach ($optionsets as $optionset) {
+    // Ensure the optionset is typecast after being loaded from DB
+    _flexslider_typecast_optionset($optionset->options);
+  }
+  return $optionsets;
+}
+
+/**
+ * Fetches the given option set and returns it as an object or NULL, if no set could be found.
+ */
+function flexslider_optionset_load($optionset_name) {
+  ctools_include('export');
+  $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name);
+    // Ensure the optionset is typecast after being loaded from DB
+  _flexslider_typecast_optionset($optionset->options);
+  return $optionset;
+}
+
+/**
+ * Checks whether an option set with the given name already exists.
+ */
+function flexslider_optionset_exists($optionset_name) {
+  ctools_include('export');
+  $optionset = ctools_export_crud_load('flexslider_optionset', $optionset_name);
+  return isset($optionset->name);
+}
+
+/**
+ * Saves the given option set to the database.
+ * Set the $new flag if this set has not been written before.
+ *
+ * @return object|boolean
+ *  Returns the newly saved object, FALSE otherwise.
+ */
+function flexslider_optionset_save($optionset, $new = FALSE) {
+  // If the machine name is missing or already in use, return an error.
+  if (empty($optionset->name) or (FALSE != flexslider_optionset_exists($optionset->name) and $new)) {
+    return FALSE;
+  }
+
+  // Check for an invalid list of options
+  if (isset($optionset->options) and !is_array($optionset->options)) {
+    return FALSE;
+  }
+
+
+  // If the title is missing, default to the name
+  if (empty($optionset->title)) {
+    $optionset->title = $optionset->name;
+  }
+
+  // Merge default settings with any given settings
+  $optionset_defaults = _flexslider_optionset_defaults();
+  $optionset->options = $optionset_defaults += $optionset->options;
+
+  // Prepare the database values.
+  $db_values = array(
+    'name' => $optionset->name,
+    'title' => $optionset->title,
+    'options' => _flexslider_typecast_optionset($optionset->options),
+  );
+
+  if ($new) {
+    $result = drupal_write_record('flexslider_optionset', $db_values);
+  }
+  else {
+    $result = drupal_write_record('flexslider_optionset', $db_values, 'name');
+  }
+
+  // Return the object if the values were saved successfully.
+  if (($new and SAVED_NEW == $result) or (!$new and SAVED_UPDATED == $result)) {
+    return $optionset;
+  }
+
+  // Otherwise, an error occured
+  return FALSE;
+}
+
+/**
+ * Deletes the given option set from the database.
+ *
+ * @param object|string $optionset
+ *  Optionset object or machine name
+ */
+function flexslider_optionset_delete($optionset) {
+  if (isset($optionset->name)) {
+    $name = $optionset->name;
+  }
+  else {
+    $name = $optionset;
+  }
+  db_delete('flexslider_optionset')->condition('name', $name)->execute();
+}
+
+/*
+ * This function loads the required JavaScripts and settings for a flexslider
+ * instance.
+ *
+ * @param string $id [optional]
+ *  ID Attribute for FlexSlider container
+ * @param object|strong $optionset [optional]
+ *  Option set to load or the machine name of an existing optionset
+ */
+function flexslider_add($id = NULL, $optionset = NULL) {
+  // Check optionset value
+  if (is_string($optionset)) {
+    $name = $optionset;
+    $optionset = flexslider_optionset_load($name);
+    if (empty($optionset)) {
+      watchdog('flexslider', 'Invalid optionset name supplied to flexslider_add: @name', array('@name' => $name), WATCHDOG_WARNING);
+      return;
+    }
+  }
+
+  // Static array to remember which scripts are already attached.
+  // @todo not currently in use
+  $cache = &drupal_static(__FUNCTION__, array());
+
+  // @todo investigate the best way to cache data loaded from libraries_load()
+  libraries_load('flexslider');
+
+  // If the ID or optionset aren't set, it is assumed the settings will be set
+  // manually via the calling module/theme
+  if (!empty($id) && !empty($optionset)) {
+    // JavaScript settings
+    $js_settings = array(
+      'optionsets' => array(
+        $optionset->name => $optionset->options,
+      ),
+      'instances' => array(
+        $id => $optionset->name,
+      ),
+    );
+    // @todo add alter hook for optionset
+    drupal_add_js(array('flexslider' => $js_settings), 'setting');
+  }
+  // Loader JavaScript
+  drupal_add_js(drupal_get_path('module', 'flexslider') . '/assets/js/flexslider.load.js', array('type' => 'file', 'scope' => 'footer'));
+}
+
+/**
+ * Default settings for a newly created option set
+ *
+ * @param string $key [optional]
+ *  Get specific default value
+ *
+ * @see https://github.com/woothemes/FlexSlider/blob/master/README.mdown
+ * @see https://github.com/woothemes/FlexSlider/wiki/FlexSlider-Properties
+ */
+function _flexslider_optionset_defaults($key = NULL) {
+
+  // We add typecasts to ensure the variables get json encoded properly
+
+  $defaults = array(
+    // v2.x options
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => FALSE,  // @todo verify data value
+    'smoothHeight' => FALSE, // @todo verify data value
+    'startAt' => 0,
+    'animationSpeed' => 600,
+    'initDelay' => 0,
+    'useCSS' => TRUE,
+    'touch' => TRUE,
+    'video' => FALSE,
+    'keyboard' => TRUE,
+    'multipleKeyboard' => FALSE,
+    'mousewheel' => FALSE, // requires https://github.com/brandonaaron/jquery-mousewheel @todo add to make file
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '',
+    'asNavFor' => '',
+    'itemWidth' => 0,
+    'itemMargin' => 0,
+    'minItems' => 0,
+    'maxItems' => 0,
+    'move' => 0,
+    //'start' => '',
+    //'before' => '',
+    //'after' => '',
+    //'end' => '',
+    //'added' => '',
+    //'removed' => '',
+
+    // @todo verify the 1.x options are still valid
+    // v1.x options
+    'animation' => 'fade',
+    //'animationDuration' => 6000, -- replaced by 'animationSpeed'
+    //'slidedirection' => 'horizontal', -- replaced by "direction"
+    'slideshow' => TRUE,
+    'slideshowSpeed' => 7000,
+    'directionNav' => TRUE,
+    'controlNav' => TRUE,
+    //'keyboardnav' => TRUE, --  replaced by 'keyboard'
+    //'mousewheel' => FALSE,
+    'prevText' => t('Previous'),
+    'nextText' => t('Next'),
+    'pausePlay' => FALSE,
+    'pauseText' => t('Pause'),
+    'playText' => t('Play'),
+    'randomize' => FALSE,
+    //'slidetostart' => 0, // integer value, not boolean --  replace by "startAt"
+    'animationLoop' => TRUE,
+    'pauseOnAction' => TRUE,
+    'pauseOnHover' => FALSE,
+    //'controlscontainer' => '.flex-nav-container', -- updated in v2
+    'manualControls' => '',
+    //'startCallback' => 'function() {}', -- replace by 'start'
+    //'beforeCallback' => 'function() {}', -- replaced by 'before'
+    //'afterCallback' => 'function() {}', -- replaced by 'after'
+    //'endCallback' => 'function() {}', -- replaced by 'end'
+  );
+
+  // Typecast the values
+  _flexslider_typecast_optionset($defaults);
+
+  // Return the specific item
+  if (isset($key) and array_key_exists($key, $defaults)) {
+    return $defaults[$key];
+  }
+
+  // Return all items
+  return $defaults;
+}
+
+/**
+ * Adds the typecasting to the values so that the generated
+ * json array keeps the right values
+ */
+function _flexslider_typecast_optionset(&$options) {
+  if (isset($options) && !empty($options)) {
+    foreach ($options as $key => $value) {
+      switch ($key) {
+        case 'namespace':
+        case 'selector':
+        case 'easing':
+        case 'direction':
+        case 'controlsContainer':
+        case 'sync':
+        case 'asNavFor':
+        case 'fade':
+        case 'prevText':
+        case 'nextText':
+        case 'pauseText':
+        case 'playText':
+        case 'manualControls':
+          $options[$key] = (string)$value;
+          break;
+        case 'startAt':
+        case 'animationSpeed':
+        case 'initDelay':
+        case 'itemWidth':
+        case 'itemMargin':
+        case 'minItems':
+        case 'maxItems':
+        case 'move':
+          $options[$key] = (int)$value;
+          break;
+        case 'controlNav':
+          if ($value == 'thumbnails') {
+            $options[$key] = (string)$value;
+            break;
+          }
+        case 'reverse':
+        case 'smoothHeight':
+        case 'useCSS':
+        case 'touch':
+        case 'video':
+        case 'keyboard':
+        case 'multipleKeyboard':
+        case 'mouseWheel':
+        case 'slideshow':
+        case 'directionNav':
+        case 'pausePlay':
+        case 'randomize':
+        case 'animationLoop':
+        case 'pauseOnAction':
+        case 'pauseOnHover':
+          $options[$key] = (boolean)$value;
+          break;
+      }
+    }
+  }
+}
+
+/**
+ * List of all easing methods available from jQuery Easing v1.3
+ */
+function _flexslider_jqeasing_options() {
+  return array(
+    "jswing" => "jswing",
+    "def" => "def",
+    "easeInQuad" => "easeInQuad",
+    "easeOutQuad" => "easeOutQuad",
+    "easeInOutQuad" => "easeInOutQuad",
+    "easeInCubic" => "easeInCubic",
+    "easeOutCubic" => "easeOutCubic",
+    "easeInOutCubic" => "easeInOutCubic",
+    "easeInQuart" => "easeInQuart",
+    "easeOutQuart" => "easeOutQuart",
+    "easeInOutQuart" => "easeInOutQuart",
+    "easeInQuint" => "easeInQuint",
+    "easeOutQuint" => "easeOutQuint",
+    "easeInOutQuint" => "easeInOutQuint",
+    "easeInSine" => "easeInSine",
+    "easeOutSine" => "easeOutSine",
+    "easeInOutSine" => "easeInOutSine",
+    "easeInExpo" => "easeInExpo",
+    "easeOutExpo" => "easeOutExpo",
+    "easeInOutExpo" => "easeInOutExpo",
+    "easeInCirc" => "easeInCirc",
+    "easeOutCirc" => "easeOutCirc",
+    "easeInOutCirc" => "easeInOutCirc",
+    "easeInElastic" => "easeInElastic",
+    "easeOutElastic" => "easeOutElastic",
+    "easeInOutElastic" => "easeInOutElastic",
+    "easeInBack" => "easeInBack",
+    "easeOutBack" => "easeOutBack",
+    "easeInOutBack" => "easeInOutBack",
+    "easeInBounce" => "easeInBounce",
+    "easeOutBounce" => "easeOutBounce",
+    "easeInOutBounce" => "easeInOutBounce",
+  );
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,195 @@
+<?php
+
+/**
+ * @file
+ * Test cases for FlexSlider
+ *
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+
+class FlexsliderTestCase extends DrupalWebTestCase {
+  protected $admin_user;
+  protected $any_user;
+
+  public static function getInfo() {
+    return array(
+      'name' => t('FlexSlider tests'),
+      'description' => t('Test the FlexSlider presets, configuration options and permission controls.'),
+      'group' => t('FlexSlider'),
+    );
+  }
+
+  function setUp() {
+    parent::setUp('libraries', 'ctools', 'flexslider');
+
+    // Create users
+    $this->admin_user = $this->drupalCreateUser(array('administer flexslider'));
+    $this->any_user = $this->drupalCreateuser(array('access administration pages'));
+  }
+
+  function testAdminAccess() {
+
+    // Login as the admin user
+    $this->drupalLogin($this->admin_user);
+
+    // Load admin page
+    $this->drupalGet('admin/config/media/flexslider');
+    $this->assertResponse(200, t('Administrative permission allows access to administration page.'));
+
+    // Logout as admin user
+    $this->drupalLogout();
+
+    // Login as any user
+    $this->drupalLogin($this->any_user);
+
+    // Attempt to load admin page
+    $this->drupalGet('admin/config/media/flexslider');
+    $this->assertResponse(403, t('Regular users do not have access to administrative pages.'));
+  }
+
+  function testOptionSetCrud() {
+    // Login as the admin user
+    $this->drupalLogin($this->admin_user);
+    $testsets  = array('testset', 'testset2');
+
+    foreach ($testsets as $name) {
+      // Create a new optionset with default settings
+      $optionset = flexslider_optionset_create(array('name' => $name));
+      $this->assertTrue($optionset->name == $name, t('Optionset object created: @name', array('@name' => $optionset->name)));
+      $this->assertFalse(empty($optionset->options), t('Create optionset works.'));
+
+      // Save the optionset to the database
+      $optionset = flexslider_optionset_save($optionset, TRUE);
+      $this->assertFalse(FALSE === $optionset, t('Optionset saved to database.'));
+
+      // Read the values from the database
+      $optionset = flexslider_optionset_load($name);
+
+      $this->assertTrue(is_object($optionset), t('Loaded option set.'));
+      $this->assertEqual($name, $optionset->name, t('Loaded name matches: @name', array('@name' => $optionset->name)));
+
+      $default_optionset = flexslider_optionset_create();
+      foreach ($default_optionset->options as $key => $value) {
+        $this->assertEqual($value, $optionset->options[$key], t('Option @option matches saved value.', array('@option' => $key)));
+      }
+
+    }
+
+    // Load all optionsets
+    $optionsets = flexslider_optionset_load_all();
+    $this->assertTrue(is_array($optionsets), t('Array of optionsets loaded'));
+    $this->assertTrue(count($optionsets) == 3, t('Proper number of optionsets loaded (two created, one default): 3'));
+
+    // Ensure they all loaded correctly
+    foreach ($optionsets as $optionset) {
+      $this->assertTrue(isset($optionset->name), t('Loaded optionsets have a defined machine name'));
+      $this->assertTrue(isset($optionset->title), t('Loaded optionsets have a defined human readable name (title)'));
+      $this->assertTrue(isset($optionset->options), t('Loaded optionsets have a defined array of options'));
+    }
+
+    // Update the optionset
+    $test_options = _flexslider_test_options();
+    $test_options = $test_options['valid'];
+
+    // Load one of the test option sets
+    $optionset = flexslider_optionset_load($testsets[0]);
+
+    // Change the settings
+    $optionset->options += $test_options['set2'];
+
+    // Save the updated values
+    $optionset = flexslider_optionset_save($optionset);
+    $this->assertFalse(FALSE == $optionset, t('Saved updates to optionset to database.'));
+
+    // Load the values from the database again
+    $optionset = flexslider_optionset_load($testsets[0]);
+
+    // Compare settings to the test options
+    foreach ($test_options['set2'] as $key => $value) {
+      $this->assertEqual($optionset->options[$key], $value, t('Saved value matches set value: @key', array('@key' => $key)));
+    }
+
+    // Delete the optionset
+    $this->assertTrue(flexslider_optionset_exists($optionset->name), t('Optionset exists and is ready to be deleted.'));
+    flexslider_optionset_delete($optionset->name);
+
+    // Ensure the delete is successfull
+    $this->assertFalse(flexslider_optionset_exists($optionset->name), t('Optionset successfully deleted: @name', array('@name' => $optionset->name)));
+  }
+
+  function testOptionSetForm() {
+
+    // Login with admin user
+    $this->drupalLogin($this->admin_user);
+
+    // ------------ Test Option Set Add ------------ //
+    // Load create form
+    $this->drupalGet('admin/config/media/flexslider/add');
+    $this->assertResponse(200, t('Administrative user can reach the "Add" form.'));
+
+    // Save new optionset
+    $optionset = array();
+    $optionset['title'] = 'testset';
+    $optionset['name'] = 'testset';
+    $this->drupalPost('admin/config/media/flexslider/add', $optionset, t('Save'));
+    $this->assertResponse(200);
+    $this->assertText('testset has been created.', t('Successfully saved the new optionset "testset"'));
+
+    // Attempt to save option set of the same name again
+    $this->drupalPost('admin/config/media/flexslider/add', $optionset, t('Save'));
+    $this->assertResponse(200);
+    $this->assertText("The machine-readable name is already in use. It must be unique.", t("Blocked the creation of duplicate named optionset."));
+
+    // ------------ Test Option Set Edit ------------ //
+    // Attempt to save each option value
+    $options = _flexslider_test_options();
+
+    foreach ($options['valid'] as $testset) {
+      $this->drupalPost('admin/config/media/flexslider/list/default/edit', $testset, t('Save'));
+      $this->assertResponse(200);
+
+      // Test saved values loaded into form
+      $this->drupalGet('admin/config/media/flexslider/list/default/edit');
+      $this->assertResponse(200, t('Default optionset reloaded.'));
+      foreach ($testset as $key => $option) {
+        $this->assertFieldByName($key, $option, t('Value for @key appears in form correctly.', array('@key' => $key)));
+      }
+    }
+
+    // ------------ Test Option Set Delete ------------ //
+    $testset = flexslider_optionset_load('testset');
+
+    // Test the delete workflow
+    $this->drupalGet("admin/config/media/flexslider/list/$testset->name/delete");
+    $this->assertResponse(200);
+    $this->assertText("Are you sure you want to delete $testset->name?", t('Delete confirmation form loaded.'));
+    $this->drupalPost("admin/config/media/flexslider/list/$testset->name/delete", '', 'Delete');
+    $this->assertResponse(200);
+    $this->assertText("The item has been deleted.", t('Deleted test set using form.'));
+  }
+
+}
+
+/**
+ * Test configuration options
+ *
+ * @return array
+ *  Returns an array of options to test saving.
+ */
+function _flexslider_test_options() {
+  // Valid option set data
+  $valid = array(
+    'set1' => _flexslider_optionset_defaults(),
+    'set2' => array(
+      'animation' => 'slide',
+      'startAt' => 4,
+      // @todo add more option tests
+    ),
+  );
+
+  // Invalid edge cases
+  $error = array();
+
+  return array('valid' => $valid, 'error' => $error);
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+FlexSlider Example
+==================
+
+Contains sample configurations for FlexSlider. You can use these as a starting point for creating your own FlexSlider configurations.
+
+Dependencies
+------------
+
+- FlexSlider Views
+- FlexSlider Fields
+- FlexSlider
+- Context
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.context.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,47 @@
+<?php
+/**
+ * @file
+ * flexslider_example.context.inc
+ */
+
+/**
+ * Implements hook_context_default_contexts().
+ */
+function flexslider_example_context_default_contexts() {
+  $export = array();
+
+  $context = new stdClass();
+  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
+  $context->api_version = 3;
+  $context->name = 'flexslider_example_thumbnail';
+  $context->description = 'Add thumbnail block to thumbnail slideshow';
+  $context->tag = 'FlexSlider Example';
+  $context->conditions = array(
+    'views' => array(
+      'values' => array(
+        'flexslider_views_example:page_2' => 'flexslider_views_example:page_2',
+      ),
+    ),
+  );
+  $context->reactions = array(
+    'block' => array(
+      'blocks' => array(
+        'views-0070a91ad114185c9bacdc9eb0b88ce2' => array(
+          'module' => 'views',
+          'delta' => '0070a91ad114185c9bacdc9eb0b88ce2',
+          'region' => 'content',
+          'weight' => '-10',
+        ),
+      ),
+    ),
+  );
+  $context->condition_mode = 0;
+
+  // Translatables
+  // Included for use with string extractors like potx.
+  t('Add thumbnail block to thumbnail slideshow');
+  t('FlexSlider Example');
+  $export['flexslider_example_thumbnail'] = $context;
+
+  return $export;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.features.field.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,176 @@
+<?php
+/**
+ * @file
+ * flexslider_example.features.field.inc
+ */
+
+/**
+ * Implements hook_field_default_fields().
+ */
+function flexslider_example_field_default_fields() {
+  $fields = array();
+
+  // Exported field: 'node-flexslider_example-field_flexslider_example_image'.
+  $fields['node-flexslider_example-field_flexslider_example_image'] = array(
+    'field_config' => array(
+      'active' => '1',
+      'cardinality' => '-1',
+      'deleted' => '0',
+      'entity_types' => array(),
+      'field_name' => 'field_flexslider_example_image',
+      'foreign keys' => array(
+        'fid' => array(
+          'columns' => array(
+            'fid' => 'fid',
+          ),
+          'table' => 'file_managed',
+        ),
+      ),
+      'indexes' => array(
+        'fid' => array(
+          0 => 'fid',
+        ),
+      ),
+      'locked' => '0',
+      'module' => 'image',
+      'settings' => array(
+        'default_image' => 0,
+        'uri_scheme' => 'public',
+      ),
+      'translatable' => '0',
+      'type' => 'image',
+    ),
+    'field_instance' => array(
+      'bundle' => 'flexslider_example',
+      'deleted' => '0',
+      'description' => '',
+      'display' => array(
+        'default' => array(
+          'label' => 'hidden',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => '0',
+        ),
+        'teaser' => array(
+          'label' => 'above',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => 0,
+        ),
+      ),
+      'entity_type' => 'node',
+      'field_name' => 'field_flexslider_example_image',
+      'label' => 'FlexSlider Example Image',
+      'required' => 0,
+      'settings' => array(
+        'alt_field' => 0,
+        'default_image' => 0,
+        'file_directory' => 'flexslider_example',
+        'file_extensions' => 'png gif jpg jpeg',
+        'max_filesize' => '',
+        'max_resolution' => '',
+        'min_resolution' => '',
+        'title_field' => 0,
+        'user_register_form' => FALSE,
+      ),
+      'widget' => array(
+        'active' => 1,
+        'module' => 'image',
+        'settings' => array(
+          'preview_image_style' => 'thumbnail',
+          'progress_indicator' => 'throbber',
+        ),
+        'type' => 'image_image',
+        'weight' => '-4',
+      ),
+    ),
+  );
+
+  // Exported field: 'node-flexslider_example-field_flexslider_example_slidesh'.
+  $fields['node-flexslider_example-field_flexslider_example_slidesh'] = array(
+    'field_config' => array(
+      'active' => '1',
+      'cardinality' => '-1',
+      'deleted' => '0',
+      'entity_types' => array(),
+      'field_name' => 'field_flexslider_example_slidesh',
+      'foreign keys' => array(
+        'fid' => array(
+          'columns' => array(
+            'fid' => 'fid',
+          ),
+          'table' => 'file_managed',
+        ),
+      ),
+      'indexes' => array(
+        'fid' => array(
+          0 => 'fid',
+        ),
+      ),
+      'locked' => '0',
+      'module' => 'image',
+      'settings' => array(
+        'default_image' => 0,
+        'uri_scheme' => 'public',
+      ),
+      'translatable' => '0',
+      'type' => 'image',
+    ),
+    'field_instance' => array(
+      'bundle' => 'flexslider_example',
+      'deleted' => '0',
+      'description' => '',
+      'display' => array(
+        'default' => array(
+          'label' => 'above',
+          'module' => 'flexslider_fields',
+          'settings' => array(
+            'caption' => FALSE,
+            'flexslider_reference_img_src' => NULL,
+            'optionset' => 'default',
+          ),
+          'type' => 'flexslider',
+          'weight' => '1',
+        ),
+        'teaser' => array(
+          'label' => 'above',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => 0,
+        ),
+      ),
+      'entity_type' => 'node',
+      'field_name' => 'field_flexslider_example_slidesh',
+      'label' => 'FlexSlider Example Slideshow',
+      'required' => 0,
+      'settings' => array(
+        'alt_field' => 0,
+        'default_image' => 0,
+        'file_directory' => 'flexslider_example',
+        'file_extensions' => 'png gif jpg jpeg',
+        'max_filesize' => '',
+        'max_resolution' => '',
+        'min_resolution' => '',
+        'title_field' => 1,
+        'user_register_form' => FALSE,
+      ),
+      'widget' => array(
+        'active' => 1,
+        'module' => 'image',
+        'settings' => array(
+          'preview_image_style' => 'thumbnail',
+          'progress_indicator' => 'throbber',
+        ),
+        'type' => 'image_image',
+        'weight' => '-3',
+      ),
+    ),
+  );
+
+  // Translatables
+  // Included for use with string extractors like potx.
+  t('FlexSlider Example Image');
+  t('FlexSlider Example Slideshow');
+
+  return $fields;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.features.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,47 @@
+<?php
+/**
+ * @file
+ * flexslider_example.features.inc
+ */
+
+/**
+ * Implements hook_ctools_plugin_api().
+ */
+function flexslider_example_ctools_plugin_api() {
+  list($module, $api) = func_get_args();
+  if ($module == "context" && $api == "context") {
+    return array("version" => "3");
+  }
+  list($module, $api) = func_get_args();
+  if ($module == "flexslider" && $api == "flexslider_default_preset") {
+    return array("version" => "1");
+  }
+  list($module, $api) = func_get_args();
+  if ($module == "strongarm" && $api == "strongarm") {
+    return array("version" => "1");
+  }
+}
+
+/**
+ * Implements hook_views_api().
+ */
+function flexslider_example_views_api() {
+  return array("version" => "3.0");
+}
+
+/**
+ * Implements hook_node_info().
+ */
+function flexslider_example_node_info() {
+  $items = array(
+    'flexslider_example' => array(
+      'name' => t('FlexSlider Example'),
+      'base' => 'node_content',
+      'description' => t('Used for generating example FlexSlider implementations'),
+      'has_title' => '1',
+      'title_label' => t('Title'),
+      'help' => '',
+    ),
+  );
+  return $items;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.features.menu_custom.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,26 @@
+<?php
+/**
+ * @file
+ * flexslider_example.features.menu_custom.inc
+ */
+
+/**
+ * Implements hook_menu_default_menu_custom().
+ */
+function flexslider_example_menu_default_menu_custom() {
+  $menus = array();
+
+  // Exported menu: menu-flexslider-example.
+  $menus['menu-flexslider-example'] = array(
+    'menu_name' => 'menu-flexslider-example',
+    'title' => 'FlexSlider Example',
+    'description' => 'Example FlexSlider implementations',
+  );
+  // Translatables
+  // Included for use with string extractors like potx.
+  t('Example FlexSlider implementations');
+  t('FlexSlider Example');
+
+
+  return $menus;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.flexslider_default_preset.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,264 @@
+<?php
+/**
+ * @file
+ * flexslider_example.flexslider_default_preset.inc
+ */
+
+/**
+ * Implements hook_flexslider_default_presets().
+ */
+function flexslider_example_flexslider_default_presets() {
+  $export = array();
+
+  $preset = new stdClass();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'flexslider_carousel_with_min_and_max_ranges';
+  $preset->title = 'FlexSlider carousel with min and max ranges';
+  $preset->theme = 'classic';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $preset->options = array(
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => 0,
+    'smoothHeight' => 0,
+    'startAt' => '0',
+    'animationSpeed' => '600',
+    'initDelay' => '0',
+    'useCSS' => 1,
+    'touch' => 1,
+    'video' => 0,
+    'keyboard' => 1,
+    'multipleKeyboard' => 0,
+    'mousewheel' => 0,
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '',
+    'asNavFor' => '',
+    'itemWidth' => '210',
+    'itemMargin' => '5',
+    'minItems' => '2',
+    'maxItems' => '4',
+    'move' => '0',
+    'animation' => 'slide',
+    'slideshow' => 0,
+    'slideshowSpeed' => '7000',
+    'directionNav' => 1,
+    'controlNav' => '1',
+    'prevText' => 'Previous',
+    'nextText' => 'Next',
+    'pausePlay' => 0,
+    'pauseText' => 'Pause',
+    'playText' => 'Play',
+    'randomize' => 0,
+    'animationLoop' => 0,
+    'pauseOnAction' => 1,
+    'pauseOnHover' => 0,
+    'manualControls' => '',
+  );
+  $export['flexslider_carousel_with_min_and_max_ranges'] = $preset;
+
+  $preset = new stdClass();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'flexslider_default_basic_carousel';
+  $preset->title = 'Basic Carousel';
+  $preset->theme = 'classic';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $preset->options = array(
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => 0,
+    'smoothHeight' => 0,
+    'startAt' => '0',
+    'animationSpeed' => '600',
+    'initDelay' => '0',
+    'useCSS' => 1,
+    'touch' => 1,
+    'video' => 0,
+    'keyboard' => 1,
+    'multipleKeyboard' => 0,
+    'mousewheel' => 0,
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '',
+    'asNavFor' => '',
+    'itemWidth' => '210',
+    'itemMargin' => '5',
+    'minItems' => '2',
+    'maxItems' => '2',
+    'move' => '0',
+    'animation' => 'slide',
+    'slideshow' => 0,
+    'slideshowSpeed' => '7000',
+    'directionNav' => 1,
+    'controlNav' => '1',
+    'prevText' => 'Previous',
+    'nextText' => 'Next',
+    'pausePlay' => 1,
+    'pauseText' => 'Pause',
+    'playText' => 'Play',
+    'randomize' => 0,
+    'animationLoop' => 0,
+    'pauseOnAction' => 1,
+    'pauseOnHover' => 1,
+    'manualControls' => '',
+  );
+  $export['flexslider_default_basic_carousel'] = $preset;
+
+  $preset = new stdClass();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'flexslider_default_slider_thumbnail_controlnav';
+  $preset->title = 'slider w/thumbnail controlnav pattern';
+  $preset->theme = 'classic';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $preset->options = array(
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => 0,
+    'smoothHeight' => 1,
+    'startAt' => '0',
+    'animationSpeed' => '600',
+    'initDelay' => '0',
+    'useCSS' => 1,
+    'touch' => 1,
+    'video' => 0,
+    'keyboard' => 1,
+    'multipleKeyboard' => 0,
+    'mousewheel' => 0,
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '',
+    'asNavFor' => '',
+    'itemWidth' => '0',
+    'itemMargin' => '0',
+    'minItems' => '0',
+    'maxItems' => '0',
+    'move' => '0',
+    'animation' => 'slide',
+    'slideshow' => 1,
+    'slideshowSpeed' => '7000',
+    'directionNav' => 1,
+    'controlNav' => 'thumbnails',
+    'prevText' => 'Previous',
+    'nextText' => 'Next',
+    'pausePlay' => 0,
+    'pauseText' => 'Pause',
+    'playText' => 'Play',
+    'randomize' => 0,
+    'animationLoop' => 1,
+    'pauseOnAction' => 1,
+    'pauseOnHover' => 1,
+    'manualControls' => '',
+  );
+  $export['flexslider_default_slider_thumbnail_controlnav'] = $preset;
+
+  $preset = new stdClass();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'flexslider_default_slider_w_thumbnail_slider';
+  $preset->title = 'Slider w/thumbnail slider';
+  $preset->theme = 'classic';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $preset->options = array(
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => 0,
+    'smoothHeight' => 0,
+    'startAt' => '0',
+    'animationSpeed' => '600',
+    'initDelay' => '0',
+    'useCSS' => 1,
+    'touch' => 1,
+    'video' => 0,
+    'keyboard' => 1,
+    'multipleKeyboard' => 0,
+    'mousewheel' => 0,
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '#flexslider-2',
+    'asNavFor' => '',
+    'itemWidth' => '0',
+    'itemMargin' => '0',
+    'minItems' => '0',
+    'maxItems' => '0',
+    'move' => '0',
+    'animation' => 'slide',
+    'slideshow' => 0,
+    'slideshowSpeed' => '7000',
+    'directionNav' => 1,
+    'controlNav' => '0',
+    'prevText' => 'Previous',
+    'nextText' => 'Next',
+    'pausePlay' => 0,
+    'pauseText' => 'Pause',
+    'playText' => 'Play',
+    'randomize' => 0,
+    'animationLoop' => 0,
+    'pauseOnAction' => 1,
+    'pauseOnHover' => 0,
+    'manualControls' => '',
+  );
+  $export['flexslider_default_slider_w_thumbnail_slider'] = $preset;
+
+  $preset = new stdClass();
+  $preset->disabled = FALSE; /* Edit this to true to make a default preset disabled initially */
+  $preset->api_version = 1;
+  $preset->name = 'flexslider_default_thumbnail_slider';
+  $preset->title = 'Thumbnail Slider';
+  $preset->theme = 'classic';
+  $preset->imagestyle_normal = 'flexslider_full';
+  $preset->imagestyle_thumbnail = 'flexslider_thumbnail';
+  $preset->options = array(
+    'namespace' => 'flex-',
+    'selector' => '.slides > li',
+    'easing' => 'swing',
+    'direction' => 'horizontal',
+    'reverse' => 0,
+    'smoothHeight' => 1,
+    'startAt' => '0',
+    'animationSpeed' => '600',
+    'initDelay' => '0',
+    'useCSS' => 1,
+    'touch' => 1,
+    'video' => 0,
+    'keyboard' => 1,
+    'multipleKeyboard' => 0,
+    'mousewheel' => 0,
+    'controlsContainer' => '.flex-control-nav-container',
+    'sync' => '',
+    'asNavFor' => '#flexslider-1',
+    'itemWidth' => '210',
+    'itemMargin' => '5',
+    'minItems' => '',
+    'maxItems' => '0',
+    'move' => '0',
+    'animation' => 'slide',
+    'slideshow' => 0,
+    'slideshowSpeed' => '7000',
+    'directionNav' => 1,
+    'controlNav' => '0',
+    'prevText' => 'Previous',
+    'nextText' => 'Next',
+    'pausePlay' => 0,
+    'pauseText' => 'Pause',
+    'playText' => 'Play',
+    'randomize' => 0,
+    'animationLoop' => 0,
+    'pauseOnAction' => 1,
+    'pauseOnHover' => 0,
+    'manualControls' => '',
+  );
+  $export['flexslider_default_thumbnail_slider'] = $preset;
+
+  return $export;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,38 @@
+name = FlexSlider Example
+description = Sample implementation of FlexSlider
+core = 7.x
+package = FlexSlider
+php = 5.2.4
+dependencies[] = context
+dependencies[] = features
+dependencies[] = flexslider
+dependencies[] = flexslider_fields
+dependencies[] = flexslider_views
+dependencies[] = image
+dependencies[] = menu
+dependencies[] = strongarm
+dependencies[] = views
+features[context][] = flexslider_example_thumbnail
+features[ctools][] = context:context:3
+features[ctools][] = flexslider:flexslider_default_preset:1
+features[ctools][] = strongarm:strongarm:1
+features[ctools][] = views:views_default:3.0
+features[features_api][] = api:1
+features[field][] = node-flexslider_example-field_flexslider_example_image
+features[field][] = node-flexslider_example-field_flexslider_example_slidesh
+features[flexslider_optionset][] = flexslider_carousel_with_min_and_max_ranges
+features[flexslider_optionset][] = flexslider_default_basic_carousel
+features[flexslider_optionset][] = flexslider_default_slider_thumbnail_controlnav
+features[flexslider_optionset][] = flexslider_default_slider_w_thumbnail_slider
+features[flexslider_optionset][] = flexslider_default_thumbnail_slider
+features[menu_custom][] = menu-flexslider-example
+features[node][] = flexslider_example
+features[variable][] = field_bundle_settings_node__flexslider_example
+features[views_view][] = flexslider_views_example
+
+; Information added by drupal.org packaging script on 2013-08-19
+version = "7.x-2.0-alpha2"
+core = "7.x"
+project = "flexslider"
+datestamp = "1376925141"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,21 @@
+<?php
+
+/**
+ * @file
+ * Install tasks for flexslider_example
+ *
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * Implements hook_update_N().
+ *
+ * Checks for the Context module. Disables if not present.
+ */
+function flexslider_example_update_7001(&$sandbox) {
+  if (!module_exists('context')) {
+    module_disable(array('flexslider_example'));
+      drupal_set_message(t('FlexSlider Example has been disabled as it now requires the !context module which is not currently available. Please download and enable the !context module and re-enable the FlexSlider Example module', array('!context' => l('Context', 'http://drupal.org/project/context'))), 'warning');
+  }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,55 @@
+<?php
+
+/**
+ * @file
+ * Describe the file
+ *
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+@include 'flexslider_example.features.inc';
+
+/**
+ * Generate the sample content
+ */
+function flexslider_example_generate_content() {
+  $images = array(
+    'flexslider-sample-1.jpg',
+    'flexslider-sample-2.jpg',
+    'flexslider-sample-3.jpg',
+    'flexslider-sample-4.jpg',
+  );
+  
+  foreach ($images as $image) {
+    // Add the images using the Drupal File API
+    $path = drupal_get_path('module', 'flexslider') . '/assets/images/' . $image;
+    $filetitle = $image;
+    $filename = $image;
+    
+    $file_temp = file_get_contents($path);
+    $file_temp - file_save_data($file_temp, 'public://' . $filename, FILE_EXISTS_RENAME);
+
+    $node = new stdClass();
+    
+    $node->title = $image;
+    $node->type = 'flexslider_example';
+    
+    node_object_prepare($node);
+    $node->uid = 1;
+    $node->status = 1;
+    $node->promote = 0;
+    $node->comment = 0;
+    
+    $node->field_flexslider_example_image[LANGUAGE_NONE][] = array(
+      'fid' => $file_temp->fid,
+      'filename' => $file_temp->filename,
+      'filemime' => $file_temp->filemime,
+      'uid' => 1,
+      'uri' => $file_temp->uri,
+      'status' => 1,
+      'display' => 1,
+    );
+    
+    node_save($node);
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.strongarm.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,44 @@
+<?php
+/**
+ * @file
+ * flexslider_example.strongarm.inc
+ */
+
+/**
+ * Implements hook_strongarm().
+ */
+function flexslider_example_strongarm() {
+  $export = array();
+
+  $strongarm = new stdClass();
+  $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
+  $strongarm->api_version = 1;
+  $strongarm->name = 'field_bundle_settings_node__flexslider_example';
+  $strongarm->value = array(
+    'view_modes' => array(
+      'teaser' => array(
+        'custom_settings' => TRUE,
+      ),
+      'full' => array(
+        'custom_settings' => FALSE,
+      ),
+      'rss' => array(
+        'custom_settings' => FALSE,
+      ),
+      'token' => array(
+        'custom_settings' => FALSE,
+      ),
+    ),
+    'extra_fields' => array(
+      'form' => array(
+        'title' => array(
+          'weight' => '-5',
+        ),
+      ),
+      'display' => array(),
+    ),
+  );
+  $export['field_bundle_settings_node__flexslider_example'] = $strongarm;
+
+  return $export;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_example/flexslider_example.views_default.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,250 @@
+<?php
+/**
+ * @file
+ * flexslider_example.views_default.inc
+ */
+
+/**
+ * Implements hook_views_default_views().
+ */
+function flexslider_example_views_default_views() {
+  $export = array();
+
+  $view = new view();
+  $view->name = 'flexslider_views_example';
+  $view->description = '';
+  $view->tag = 'default';
+  $view->base_table = 'node';
+  $view->human_name = 'FlexSlider Views Example';
+  $view->core = 7;
+  $view->api_version = '3.0';
+  $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
+
+  /* Display: Master */
+  $handler = $view->new_display('default', 'Master', 'default');
+  $handler->display->display_options['title'] = 'FlexSlider Views Example';
+  $handler->display->display_options['use_more_always'] = FALSE;
+  $handler->display->display_options['access']['type'] = 'perm';
+  $handler->display->display_options['cache']['type'] = 'none';
+  $handler->display->display_options['query']['type'] = 'views_query';
+  $handler->display->display_options['exposed_form']['type'] = 'basic';
+  $handler->display->display_options['pager']['type'] = 'some';
+  $handler->display->display_options['pager']['options']['items_per_page'] = '4';
+  $handler->display->display_options['pager']['options']['offset'] = '0';
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['hide_empty'] = TRUE;
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  /* Field: Content: FlexSlider Example Image */
+  $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = '';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array(
+    'image_style' => 'flexslider_full',
+    'image_link' => '',
+  );
+  $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0';
+  /* Sort criterion: Content: Post date */
+  $handler->display->display_options['sorts']['created']['id'] = 'created';
+  $handler->display->display_options['sorts']['created']['table'] = 'node';
+  $handler->display->display_options['sorts']['created']['field'] = 'created';
+  $handler->display->display_options['sorts']['created']['order'] = 'DESC';
+  /* Filter criterion: Content: Published */
+  $handler->display->display_options['filters']['status']['id'] = 'status';
+  $handler->display->display_options['filters']['status']['table'] = 'node';
+  $handler->display->display_options['filters']['status']['field'] = 'status';
+  $handler->display->display_options['filters']['status']['value'] = 1;
+  $handler->display->display_options['filters']['status']['group'] = 1;
+  $handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
+  /* Filter criterion: Content: Type */
+  $handler->display->display_options['filters']['type']['id'] = 'type';
+  $handler->display->display_options['filters']['type']['table'] = 'node';
+  $handler->display->display_options['filters']['type']['field'] = 'type';
+  $handler->display->display_options['filters']['type']['value'] = array(
+    'flexslider_example' => 'flexslider_example',
+  );
+
+  /* Display: Basic Slider */
+  $handler = $view->new_display('page', 'Basic Slider', 'page');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['title'] = 'Basic Slider';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['fields'] = FALSE;
+  /* Field: Content: FlexSlider Example Image */
+  $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = '';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array(
+    'image_style' => 'flexslider_full',
+    'image_link' => '',
+  );
+  $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0';
+  /* Field: Content: Title */
+  $handler->display->display_options['fields']['title']['id'] = 'title';
+  $handler->display->display_options['fields']['title']['table'] = 'node';
+  $handler->display->display_options['fields']['title']['field'] = 'title';
+  $handler->display->display_options['fields']['title']['label'] = '';
+  $handler->display->display_options['fields']['title']['element_type'] = 'p';
+  $handler->display->display_options['fields']['title']['element_class'] = 'flex-caption';
+  $handler->display->display_options['fields']['title']['element_label_type'] = '0';
+  $handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
+  $handler->display->display_options['fields']['title']['element_wrapper_type'] = '0';
+  $handler->display->display_options['fields']['title']['element_default_classes'] = FALSE;
+  $handler->display->display_options['path'] = 'flexslider-views-example';
+  $handler->display->display_options['menu']['type'] = 'normal';
+  $handler->display->display_options['menu']['title'] = 'Basic Slider (Views)';
+  $handler->display->display_options['menu']['weight'] = '0';
+  $handler->display->display_options['menu']['name'] = 'menu-flexslider-example';
+  $handler->display->display_options['menu']['context'] = 0;
+
+  /* Display: Slide with thumbnail controls */
+  $handler = $view->new_display('page', 'Slide with thumbnail controls', 'page_1');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['title'] = 'slider w/thumbnail controlnav pattern';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_slider_thumbnail_controlnav';
+  $handler->display->display_options['defaults']['style_options'] = FALSE;
+  $handler->display->display_options['defaults']['row_plugin'] = FALSE;
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['hide_empty'] = TRUE;
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  $handler->display->display_options['defaults']['row_options'] = FALSE;
+  $handler->display->display_options['defaults']['fields'] = FALSE;
+  /* Field: Content: FlexSlider Example Image */
+  $handler->display->display_options['fields']['field_flexslider_example_image']['id'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['table'] = 'field_data_field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['field'] = 'field_flexslider_example_image';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['label'] = '';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['element_label_colon'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['click_sort_column'] = 'fid';
+  $handler->display->display_options['fields']['field_flexslider_example_image']['settings'] = array(
+    'image_style' => 'flexslider_full',
+    'image_link' => '',
+  );
+  $handler->display->display_options['fields']['field_flexslider_example_image']['group_rows'] = FALSE;
+  $handler->display->display_options['fields']['field_flexslider_example_image']['delta_offset'] = '0';
+  $handler->display->display_options['path'] = 'flexslider-views-example-with-thumbnail-controls';
+  $handler->display->display_options['menu']['type'] = 'normal';
+  $handler->display->display_options['menu']['title'] = 'slider w/thumbnail controlnav pattern (Views)';
+  $handler->display->display_options['menu']['weight'] = '0';
+  $handler->display->display_options['menu']['name'] = 'menu-flexslider-example';
+  $handler->display->display_options['menu']['context'] = 0;
+
+  /* Display: Slide with thumbnail slider */
+  $handler = $view->new_display('page', 'Slide with thumbnail slider', 'page_2');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['title'] = 'Slider w/thumbnail slider';
+  $handler->display->display_options['display_description'] = 'Slider controlled by another instance of FlexSlider';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_slider_w_thumbnail_slider';
+  $handler->display->display_options['defaults']['style_options'] = FALSE;
+  $handler->display->display_options['defaults']['row_plugin'] = FALSE;
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  $handler->display->display_options['defaults']['row_options'] = FALSE;
+  $handler->display->display_options['path'] = 'flexslider-views-example-with-thumbnail-slider';
+  $handler->display->display_options['menu']['type'] = 'normal';
+  $handler->display->display_options['menu']['title'] = 'slider w/thumbnail slider (Views)';
+  $handler->display->display_options['menu']['weight'] = '0';
+  $handler->display->display_options['menu']['name'] = 'menu-flexslider-example';
+  $handler->display->display_options['menu']['context'] = 0;
+
+  /* Display: Thumbnail Controls */
+  $handler = $view->new_display('block', 'Thumbnail Controls', 'block_1');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['display_description'] = 'Controls another FlexSlider instance';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_thumbnail_slider';
+  $handler->display->display_options['defaults']['style_options'] = FALSE;
+  $handler->display->display_options['defaults']['row_plugin'] = FALSE;
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['hide_empty'] = TRUE;
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  $handler->display->display_options['defaults']['row_options'] = FALSE;
+
+  /* Display: Basic Carousel */
+  $handler = $view->new_display('page', 'Basic Carousel', 'page_3');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['title'] = 'Basic Carousel';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['pager'] = FALSE;
+  $handler->display->display_options['pager']['type'] = 'some';
+  $handler->display->display_options['pager']['options']['items_per_page'] = '10';
+  $handler->display->display_options['pager']['options']['offset'] = '0';
+  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['style_options']['optionset'] = 'flexslider_default_basic_carousel';
+  $handler->display->display_options['defaults']['style_options'] = FALSE;
+  $handler->display->display_options['defaults']['row_plugin'] = FALSE;
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  $handler->display->display_options['defaults']['row_options'] = FALSE;
+  $handler->display->display_options['path'] = 'flexslider-views-example-basic-carousel';
+  $handler->display->display_options['menu']['type'] = 'normal';
+  $handler->display->display_options['menu']['title'] = 'basic carousel (Views)';
+  $handler->display->display_options['menu']['weight'] = '0';
+  $handler->display->display_options['menu']['name'] = 'menu-flexslider-example';
+  $handler->display->display_options['menu']['context'] = 0;
+
+  /* Display: Carousel with min and max ranges */
+  $handler = $view->new_display('page', 'Carousel with min and max ranges', 'page_4');
+  $handler->display->display_options['defaults']['title'] = FALSE;
+  $handler->display->display_options['title'] = 'carousel with min and max ranges';
+  $handler->display->display_options['defaults']['hide_admin_links'] = FALSE;
+  $handler->display->display_options['defaults']['pager'] = FALSE;
+  $handler->display->display_options['pager']['type'] = 'some';
+  $handler->display->display_options['pager']['options']['items_per_page'] = '10';
+  $handler->display->display_options['pager']['options']['offset'] = '0';
+  $handler->display->display_options['defaults']['style_plugin'] = FALSE;
+  $handler->display->display_options['style_plugin'] = 'flexslider';
+  $handler->display->display_options['style_options']['optionset'] = 'flexslider_carousel_with_min_and_max_ranges';
+  $handler->display->display_options['defaults']['style_options'] = FALSE;
+  $handler->display->display_options['defaults']['row_plugin'] = FALSE;
+  $handler->display->display_options['row_plugin'] = 'fields';
+  $handler->display->display_options['row_options']['default_field_elements'] = FALSE;
+  $handler->display->display_options['defaults']['row_options'] = FALSE;
+  $handler->display->display_options['path'] = 'flexslider-views-example-carousel-min-max';
+  $handler->display->display_options['menu']['type'] = 'normal';
+  $handler->display->display_options['menu']['title'] = 'carousel with min and max ranges (Views)';
+  $handler->display->display_options['menu']['weight'] = '0';
+  $handler->display->display_options['menu']['name'] = 'menu-flexslider-example';
+  $handler->display->display_options['menu']['context'] = 0;
+  $translatables['flexslider_views_example'] = array(
+    t('Master'),
+    t('FlexSlider Views Example'),
+    t('more'),
+    t('Apply'),
+    t('Reset'),
+    t('Sort by'),
+    t('Asc'),
+    t('Desc'),
+    t('Basic Slider'),
+    t('Slide with thumbnail controls'),
+    t('slider w/thumbnail controlnav pattern'),
+    t('Slide with thumbnail slider'),
+    t('Slider w/thumbnail slider'),
+    t('Slider controlled by another instance of FlexSlider'),
+    t('Thumbnail Controls'),
+    t('Controls another FlexSlider instance'),
+    t('Basic Carousel'),
+    t('Carousel with min and max ranges'),
+    t('carousel with min and max ranges'),
+  );
+  $export['flexslider_views_example'] = $view;
+
+  return $export;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_fields/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+About
+=====
+
+Adds a field display formatter to allow you to display field content using FlexSlider. The module doesn't require Field UI to be enabled by default (so you can leave it off once everything is configured) but it is recommended to use to setup your display settings.
+
+Usage
+=====
+
+Manage the fields on any entity (ex: node of type Article)
+
+Ex: admin/structure/types/manage/article
+
+Select any field of type "image" or "media" and set the display options to "FlexSlider". Then select your option set in the display formatter settings. That's it!
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_fields/flexslider_fields.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+name = FlexSlider Fields
+description = Adds a display mode in Fields for FlexSlider
+core = 7.x
+package = FlexSlider
+
+dependencies[] = flexslider
+; Information added by drupal.org packaging script on 2013-08-19
+version = "7.x-2.0-alpha2"
+core = "7.x"
+project = "flexslider"
+datestamp = "1376925141"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_fields/flexslider_fields.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,131 @@
+<?php
+
+/**
+ * @file
+ * Adds fields integration with FlexSlider
+ *
+ * @author jepedo
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * Implements hook_field_formatter_info().
+ *
+ * Adds the flexslider format option within the manage display form of
+ * of an image field.
+ */
+function flexslider_fields_field_formatter_info() {
+  return array(
+    'flexslider' => array(
+      'label' => t('flexslider'),
+      'field types' => array('image', 'media'),
+      'settings' => array(
+        'optionset' => 'default',
+        'caption' => FALSE,
+      ),
+    ),
+  );
+}
+
+/**
+ * Implements hook_field_formatter_settings_form().
+ *
+ * Provides display settings form within the manage display page of
+ * an image field with formatter flexslider.
+ */
+function flexslider_fields_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
+  $display = $instance['display'][$view_mode];
+  $settings = $display['settings'];
+
+  $form = array();
+
+  // Show select box for the option set
+  $optionsets = array();
+  ctools_include('export');
+  foreach (flexslider_optionset_load_all() as $name => $optionset) {
+    $optionsets[$name] = check_plain($optionset->title);
+  }
+
+  $form['optionset'] = array(
+    '#title' => t('Option set'),
+    '#type' => 'select',
+    '#options' => $optionsets,
+    '#default_value' => $settings['optionset'],
+  );
+
+  // If the image field doesn't have the Title field enabled, tell the user.
+  if ($instance['settings']['title_field'] == FALSE) {
+    $form['caption'] = array(
+      '#title' => t('Use image title as the caption'),
+      '#type' => 'checkbox',
+      '#disabled' => TRUE,
+      '#description' => t('You need to <a href="@url">enable the Title field</a> for this image field to be able use it as a caption.', array('@url' => url('admin/structure/types/manage/' . $instance['bundle'] . '/fields/' . $instance['field_name'], array('fragment' => 'edit-instance-settings-title-field', 'query' => array('destination' => 'admin/structure/types/manage/' . $instance['bundle'] . '/display'))))),
+    );
+  }
+  else {
+    $form['caption'] = array(
+      '#title' => t('Use image title as the caption'),
+      '#type' => 'checkbox',
+      '#default_value' => $settings['caption'],
+    );
+  }
+
+  return $form;
+}
+
+/**
+ * Implements hook_field_formatter_settings_summary().
+ *
+ * Displays the summary of the set options of a flexslider formatted image field
+ */
+function flexslider_fields_field_formatter_settings_summary($field, $instance, $view_mode) {
+  $display = $instance['display'][$view_mode];
+  $settings = $display['settings'];
+
+  $summary = array();
+
+  // Load option set
+  ctools_include('export');
+  if (!empty($settings['optionset'])) {
+    $o = flexslider_optionset_load($settings['optionset']);
+    if ($o !== NULL) {
+      $optionset = $o;
+    }
+  }
+
+  // Build settings summary
+  $optionset = isset($optionset) ? $optionset->title : t('Default settings');
+  $summary[] = t('Option set: %optionset', array('%optionset' => $optionset));
+
+  return implode('<br />', $summary);
+}
+
+/**
+ * Implements hook_field_formatter_view().
+ *
+ * Prepares a renderable array of images and adds the neccessary JS and CSS
+ */
+function flexslider_fields_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
+  if ($field['type'] == 'media') {
+    $image_items = array();
+    foreach ($items as $item) {
+      if ($item['file']->type == 'image') {
+        $file = (array) $item['file'];
+        $file += array('alt' => '', 'title' => '');
+        $image_items[] = $file;
+      }
+    }
+    $items = $image_items;
+  }
+
+  $element = array();
+  if (count($items) > 0) {
+    $element[] = array(
+      '#theme' => 'flexslider',
+      '#items' => $items,
+      '#settings' => $display['settings'],
+    );
+  }
+
+  return $element;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_views/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+About
+=====
+
+This adds a new display style to views called "FlexSlider". Similar to how you select "HTML List" or "Unformatted List" as display styles.
+
+This module doesn't require Views UI to be enabled but it is required if you want to configure your Views display using FlexSlider through the web interface. This ensures you can leave Views UI off once everything is setup.
+
+Usage
+=====
+
+Go to Views andUse the display mode "FlexSlider"
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_views/flexslider_views.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+name = FlexSlider Views Style
+description = Adds a Views style plugin for FlexSlider
+core = 7.x
+package = FlexSlider
+
+dependencies[] = views
+dependencies[] = flexslider
+
+files[] = flexslider_views.module
+files[] = flexslider_views.views.inc
+files[] = flexslider_views_plugin_style_flexslider.inc
+; Information added by drupal.org packaging script on 2013-08-19
+version = "7.x-2.0-alpha2"
+core = "7.x"
+project = "flexslider"
+datestamp = "1376925141"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_views/flexslider_views.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+<?php
+
+/**
+ * @file
+ * Adds Views plugins for FlexSlider
+ *
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * Implements hook_views_api().
+ */
+function flexslider_views_views_api() {
+  return array(
+    'api' => 3,
+  );
+}
+
+/**
+ * Add a preprocessor for flexslider for dealing with FlexSlider views
+ */
+function flexslider_views_preprocess_flexslider(&$vars) {
+  // Only run the preprocessor if it is a view
+  if (!empty($vars['view'])) {
+    // Prepare all data to be passed to theme_flexslider().
+    $items = array();
+    $view = $vars['view'];
+    $settings = array();
+    $settings['optionset'] = $vars['options']['optionset'];
+
+    $row_plugin = $view->style_plugin->row_plugin;
+
+    foreach ($vars['rows'] as $id => $row) {
+      // Render the row into a slide
+      $view->row_index = $id;
+      $item['slide'] = $row_plugin->render($row);
+
+      $items[] = $item;
+    }
+
+    // Add the slide items to the variables
+    $vars['items'] = $items;
+
+    // Add the attributes
+    $settings['attributes']['id'] = $vars['options']['id'];
+
+    // Reset the options to the processed values
+    $vars['settings'] = $settings;
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_views/flexslider_views.views.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,31 @@
+<?php
+/**
+ * @file
+ * Contains core functions for the Views module support.
+ */
+
+/*
+ * Implements hook_views_plugins().
+ *
+ * This function annnounces the style plugin for flexslider views.
+ */
+function flexslider_views_views_plugins() {
+  return array(
+    'style' => array(
+      // Style plugin for the FlexSlider.
+      'flexslider' => array(
+        'title' => t('FlexSlider'),
+        'help' => t('Display the results in a FlexSlider widget.'),
+        'handler' => 'flexslider_views_plugin_style_flexslider',
+        'theme' => 'flexslider',
+        'theme file' => 'flexslider.theme.inc',
+        'theme path' => drupal_get_path('module', 'flexslider') . '/theme',
+        'uses row plugin' => TRUE,
+        'uses fields' => TRUE,
+        'uses options' => TRUE,
+        'type' => 'normal',
+        'even empty' => FALSE,
+      ),
+    ),
+  );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/flexslider_views/flexslider_views_plugin_style_flexslider.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,96 @@
+<?php
+/**
+ * @file
+ * flexslider style plugin for the Views module.
+ */
+
+/**
+  * Implements a style type plugin for the Views module.
+  */
+class flexslider_views_plugin_style_flexslider extends views_plugin_style {
+
+  /**
+   * Set default options.
+   */
+  function option_definition() {
+    $options = parent::option_definition();
+
+    $options += array(
+      'optionset' => array('default' => 'default'),
+      'id' => array('default' => ''),
+    );
+
+    return $options;
+  }
+
+  /**
+   * Show a form to edit the style options.
+   */
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+
+    $form['flexslider'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('FlexSlider'),
+    );
+
+    $optionsets = array();
+    foreach (flexslider_optionset_load_all() as $name => $optionset) {
+      $optionsets[$name] = check_plain($optionset->title);
+    }
+    $form['flexslider']['optionset'] = array(
+      '#title' => t('Option set'),
+      '#type' => 'select',
+      '#options' => $optionsets,
+      '#default_value' => $this->options['optionset'],
+    );
+
+    $link_options = array('' => t('None'));
+    foreach ($this->view->display_handler->get_handlers('field') as $field => $handler) {
+      $link_options[$field] = $handler->ui_name();
+    }
+
+    $form['flexslider']['id'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Element ID'),
+      '#description' => t("Manually define the FlexSlider container ID attribute <em>Ensure you don't display similar ID elements on the same page</em>."),
+      '#size' => 40,
+      '#maxlength' => 255,
+      '#default_value' => $this->options['id'],
+    );
+  }
+
+  /**
+   * Performs some cleanup tasks on the options array before saving it.
+   */
+  function options_submit(&$form, &$form_state) {
+    $options =& $form_state['values']['style_options'];
+
+    // Pull the fieldset values one level up
+    $options = $options['flexslider'];
+    unset($options['flexslider']);
+  }
+
+  /**
+   * Render the display in this style.
+   */
+  function render() {
+
+    // Group the rows according to the grouping field, if specified.
+    $sets = $this->render_grouping($this->view->result, $this->options['grouping']);
+
+    // Render each group separately and concatenate.
+    $output = '';
+    foreach ($sets as $title => $rows) {
+      $output .= theme($this->theme_functions(),
+        array(
+          'view' => $this->view,
+          'options' => $this->options,
+          'rows' => $rows,
+          'title' => $title)
+        );
+    }
+    
+    return $output;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/plugins/export_ui/flexslider_ctools_export_ui.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,81 @@
+<?php
+
+/**
+ * @file
+ * Export interface plugin
+ *
+ * @author Mathew Winstone <mwinstone@coldfrontlabs.ca>
+ */
+
+
+/**
+ * Define this Export UI plugin.
+ */
+$plugin = array(
+  'schema' => 'flexslider_optionset',  // As defined in hook_schema().
+  'access' => 'administer flexslider',  // Define a permission users must have to access these pages.
+
+  // Define the menu item.
+  'menu' => array(
+    'menu prefix' => 'admin/config/media',
+    'menu item' => 'flexslider',
+    'menu title' => 'FlexSlider',
+    'menu description' => 'Administer FlexSlider presets.',
+  ),
+
+  // Define user interface texts.
+  'title singular' => t('optionset'),
+  'title plural' => t('optionsets'),
+  'title singular proper' => t('FlexSlider optionset'),
+  'title plural proper' => t('FlexSlider optionsets'),
+
+  // Define the names of the functions that provide the add/edit forms.
+  'form' => array(
+    'settings' => 'flexslider_ctools_export_ui_form',
+    'validate' => 'flexslider_ctools_export_ui_form_validate',
+    'submit' => 'flexslider_ctools_export_ui_form_submit',
+  ),
+);
+
+/**
+ * Export UI form
+ */
+function flexslider_ctools_export_ui_form(&$form, &$form_state) {
+  // Load the admin form include
+  module_load_include('inc', 'flexslider', 'flexslider.admin');
+
+  // Make optionset reference in form_state
+  $form_state['optionset'] = &$form_state['item'];
+
+  // Load the configuration form
+  $form = drupal_retrieve_form('flexslider_form_optionset_edit', $form_state);
+}
+
+/**
+ * Validation handler
+ */
+function flexslider_ctools_export_ui_form_validate(&$form, &$form_state) {
+  // @todo
+}
+
+/**
+ * Submit handler
+ */
+function flexslider_ctools_export_ui_form_submit(&$form, &$form_state) {
+  // Edit the reference to $form_state['optionset'] which will in turn
+  // reference $form_state['item'] which is what CTools is looking for.
+  $optionset = &$form_state['optionset'];
+  $optionset->title = $form_state['values']['title'];
+  $optionset->imagestyle_normal = $form_state['values']['image_style']['normal'];
+  $optionset->imagestyle_thumbnail = $form_state['values']['image_style']['thumbnail'];
+
+  // Assign the values to the option set
+  $optionset->options = _flexslider_optionset_defaults();
+
+  // Save all the values for the optionset
+  foreach ($optionset->options as $key => $value) {
+    if (array_key_exists($key, $form_state['values'])) {
+      $optionset->options[$key] = $form_state['values'][$key];
+    }
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/theme/flexslider.theme.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,164 @@
+<?php
+/**
+ * @file
+ * Theming functions for the flexslider module.
+ *
+ * Preprocessor functions fill variables for templates and helper
+ * functions to make theming easier.
+ */
+
+/**
+ * Default theme implementation for flexslider_list
+ */
+function theme_flexslider_list(&$vars) {
+  // Reference configuration variables
+  $optionset = &$vars['settings']['optionset'];
+  $items = &$vars['items'];
+  $attributes = &$vars['settings']['attributes'];
+  $type = &$vars['settings']['type'];
+  $output = '';
+
+  // Build the list
+  if (!empty($items)) {
+    $output .= "<$type" . drupal_attributes($attributes) . '>';
+    foreach ($items as $i => $item) {
+      // If the slide hasn't been set, build the slide using the image
+      // attributes given (assumes we're using a multi-image field)
+      // @todo need to allow for different types of field and collection fields
+      if (!isset($item['slide'])) {
+        $image_options = array(
+          'style_name' => $optionset->imagestyle_normal,
+          'path'       => $item['uri'],
+          'height'     => isset($item['height']) ? $item['height'] : '',
+          'width'      => isset($item['width']) ? $item['width'] : '',
+          'alt'        => $item['alt'],
+          'title'      => $item['title'],
+          'attributes' => array(),
+        );
+      }
+
+      $caption = '';
+      if (!empty($item['title'])) {
+        $caption = $item['title'];
+      }
+      $output .= theme('flexslider_list_item', array(
+        'item' => isset($item['slide']) ? $item['slide'] : theme_image_style($image_options),
+        'item' => isset($item['slide']) ? $item['slide'] : ($optionset->imagestyle_normal ? theme_image_style($image_options) : theme_image($image_options)),
+
+        'thumb' => isset($item['thumb']) ? $item['thumb'] : image_style_url($optionset->imagestyle_thumbnail, $item['uri']),
+        'optionset' => $optionset,
+        'caption' => $caption,
+      ));
+    }
+    $output .= "</$type>";
+  }
+
+  return $output;
+}
+
+/**
+ * Default theme implementation for flexslider_list_item
+ */
+function theme_flexslider_list_item(&$vars) {
+  // Reference configuration variables
+  $item = &$vars['item'];
+  $attributes = &$vars['settings']['attributes'];
+
+  if ($vars['optionset']->options['controlNav'] === "thumbnails" &&
+      isset($vars['thumb'])
+  ) {
+    $attributes['data-thumb'] = $vars['thumb'];
+  }
+
+  $caption = '';
+  if (!empty($vars['caption'])) {
+    $caption = '<p class="flex-caption">' . $vars['caption'] . '</p>';
+  }
+
+  $output = '';
+  $output .= '<li' . drupal_attributes($attributes) . '>' . $item . $caption . "</li>\n";
+
+  return $output;
+}
+
+/**
+ * Template preprocess handler for 'flexslider' theme.
+ */
+function template_process_flexslider(&$vars) {
+
+  // Reference configuration variables
+  $optionset = &$vars['settings']['optionset'];
+  $settings = &$vars['settings'];
+  $items = &$vars['items'];
+
+  // Set the default container type
+  if (empty($settings['type'])) {
+    $settings['type'] = 'ul';    
+  }
+
+  // Load the selected optionset
+  if (!empty($optionset)) {
+    $optionset = flexslider_optionset_load($optionset);
+  }
+
+  // Check if an optionset was loaded
+  if (empty($optionset)) {
+    // Fall back to 'default' option set
+    $optionset = flexslider_optionset_load('default');
+    watchdog('flexslider', 'Fallback to default optionset.', array(), WATCHDOG_WARNING);
+  }
+
+  // Configure attributes for containing elements
+  $attributes = array();
+  // Merge with defined attributes
+  if (isset($settings['attributes']) and is_array($settings['attributes'])) {
+    $attributes += $settings['attributes'];
+  }
+
+  // Set the ID for each flexslider instance if none is provided
+  if (empty($attributes['id'])) {
+    $flexslider_id = &drupal_static('flexslider_id', 0);
+    $attributes['id'] = 'flexslider-' . ++$flexslider_id;
+  }
+
+  // Add the namespace to any classes
+  // @todo figure out what this is supposed to do
+  if (!empty($attributes['class']) && !empty($optionset->options['namespace'])) {
+    foreach ($attributes['class'] as $key => $value) {
+      $attributes['class'][$key] = $optionset->options['namespace'] . $value;
+    }
+  }
+
+  // Add the flexslider class to be namespaced
+  $attributes['class'][] = 'flexslider';
+
+  // Add the attributes to the settings array.
+  $settings['attributes'] = $attributes;
+
+  // Finally, add the configuration to the page
+  flexslider_add($vars['settings']['attributes']['id'], $vars['settings']['optionset']);
+}
+
+/**
+ * Preprocess function for flexslider_list_item
+ */
+function template_preprocess_flexslider_list(&$vars) {
+  // Reset the list of attributes
+  $vars['settings']['attributes'] = array(
+    // @todo find a way to detect the outter container class if possible
+    'class' => array('slides'),
+  );
+
+}
+
+/**
+ * Preprocess function for flexslider_list_item
+ */
+function template_preprocess_flexslider_list_item(&$vars) {
+  // Reset the list of attributes
+  $vars['settings']['attributes'] = array();
+  //dpm($vars);
+
+  //$vars['item'] = implode('', $vars['item']);
+  // @todo add attributes for thumbnails
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider/theme/flexslider.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+<?php
+/**
+ * @file
+ * Default output for a FlexSlider object.
+*/
+?>
+<div <?php print drupal_attributes($settings['attributes'])?>>
+  <?php print theme('flexslider_list', array('items' => $items, 'settings' => $settings)); ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+About
+===========
+
+Adds a new "Slideshow Type" to Views Slideshow called "FlexSlider".
+
+Usage
+======
+
+Enable Views, Views Slideshow and FlexSlider Views Slideshow (note: you do NOT need to enable FlexSlider Views). Create/Edit a View, select a display mode of "Slideshow". In the settings for your display, set the "Slideshow Type" to "FlexSlider", select your option set, set any other options you'd like.
+
+Save your view and you're good to go.
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+name = FlexSlider Views Slideshow
+description = NOT FUNCTIONAL - Integrate the FlexSlider library with Views Slideshow
+core = 7.x
+package = FlexSlider
+
+dependencies[] = flexslider
+dependencies[] = views_slideshow
+
+files[] = flexslider_views_slideshow.module
+files[] = flexslider_views_slideshow.views_slideshow.inc
+files[] = theme/flexslider_views_slideshow.theme.inc
+
+; Information added by drupal.org packaging script on 2013-03-16
+version = "7.x-2.x-dev"
+core = "7.x"
+project = "flexslider_views_slideshow"
+datestamp = "1363463413"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,96 @@
+<?php
+
+/**
+ * @file
+ * Adds FlexSlider as a slideshow option in Views Slideshow
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * Implements hook_help().
+ */
+function flexslider_views_slideshow_help($path, $arg) {
+  switch ($path) {
+    // Main module help for the block module
+    case 'admin/help#flexslider_views_slideshow':
+      return '<p>' . t('More to come. For now see the README.txt file please.') . '</p>';
+  }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function flexslider_views_slideshow_theme($existing, $type, $theme, $path) {
+  return array(
+    'flexslider_views_slideshow' => array(
+      'variables' => array('view' => NULL, 'settings' => array(), 'rows' => array(), 'title' => ''),
+      'template' => 'theme/flexslider-views-slideshow',
+      'file' => 'theme/flexslider_views_slideshow.theme.inc',
+      'pattern' => 'flexslider_views_slideshow__',
+    ),
+    'flexslider_views_slideshow_main_frame' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => NULL, 'rows' => NULL),
+      'template' => 'theme/flexslider-views-slideshow-main-frame',
+    ),
+    'flexslider_views_slideshow_main_frame_row' => array(
+      'variables' => array('vss_id' => NULL, 'items' => NULL, 'count' => NULL, 'view' => NULL),
+      'template' => 'theme/flexslider-views-slideshow-main-frame-row',
+    ),
+    'flexslider_views_slideshow_main_frame_row_item' => array(
+      'variables' => array('item' => NULL, 'item_count' => NULL, 'view' => NULL),
+      'template' => 'theme/flexslider-views-slideshow-main-frame-row-item',
+    ),
+  );
+}
+
+/**
+ * Implements hook_views_pre_render().
+ **/
+function flexslider_views_slideshow_views_pre_render(&$view) {
+ // This used to be where the captions were added. We won't be using that method anymore...
+ /*
+ if (get_class($view->style_plugin) == 'views_slideshow_plugin_style_slideshow' and isset($view->style_options['slideshow_type']) and $view->style_options['slideshow_type'] == 'flexslider_views_slideshow') {
+
+    $fieldname = $view->style_plugin->options['flexslider_views_slideshow']['caption_field'];
+    if ($fieldname == 'none' or !isset($view->field[$fieldname])) {
+      return;
+    }
+    
+    $view->field[$fieldname]->options['element_type'] = 'p';
+    $view->field[$fieldname]->options['element_class'] = empty($view->field[$fieldname]->options['element_class'])? 'flex-caption': $view->field[$fieldname]->options['element_class'] . ' flex-caption';
+    $view->field[$fieldname]->options['element_label_type'] = '';
+    $view->field[$fieldname]->options['element_label_class'] = '';
+    $view->field[$fieldname]->options['element_label_colon'] = FALSE;
+    $view->field[$fieldname]->options['element_wrapper_type'] = '0';
+    $view->field[$fieldname]->options['element_wrapper_class'] = '';
+    $view->field[$fieldname]->options['element_default_classes'] = 0;
+  }*/
+}
+
+/**
+ * Based on notes from views_slideshow_cycle
+ * @see http://drupal.org/project/views_slideshow
+ *
+ * Need to have preprocess functions here because drupal doesn't cache them
+ * correctly in the theme.inc file.
+ *
+ * If you would like to override the preprocess functions make sure to look at
+ * the associated function in theme.inc.
+ */
+
+// Trying to make sure the theme.inc get's loaded.
+include_once('theme/flexslider_views_slideshow.theme.inc');
+
+function template_preprocess_flexslider_views_slideshow_main_frame(&$vars) {
+  _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame($vars);
+}
+
+function template_preprocess_flexslider_views_slideshow_main_frame_row(&$vars) {
+  _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row($vars);
+}
+
+function template_preprocess_flexslider_views_slideshow_main_frame_row_item(&$vars) {
+  _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row_item($vars);
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/flexslider_views_slideshow.views_slideshow.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,84 @@
+<?php
+
+/**
+ * @file
+ * Describe the file
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * Implements hook_views_slideshow_slideshow_info().
+ */
+function flexslider_views_slideshow_views_slideshow_slideshow_info() {
+  $options = array(
+    'flexslider_views_slideshow' => array(
+      'name' => t('FlexSlider'),
+      'accepts' => array(
+//        'goToSlide',
+        'nextSlide',
+        'pause',
+        'play',
+        'previousSlide',
+      ),
+      'calls' => array(
+//        'transitionBegin',
+//        'transitionEnd',
+//        'goToSlide',
+        'pause',
+        'play',
+        'nextSlide',
+        'previousSlide',
+      ),
+    ),
+  );
+
+  // @todo figure out which options to add
+
+  return $options;
+}
+
+/**
+ * Implements hook_views_slideshow_option_definition().
+ */
+function flexslider_views_slideshow_views_slideshow_option_definition() {
+  // Default options for FlexSlider
+  $options['flexslider_views_slideshow'] = array(
+    'contains' => array(
+      'optionset' => array('default' => 'default'),
+    ),
+  );
+  // @todo figure out which options to define
+  // @todo integrate with "optionsets"
+
+  return $options;
+}
+
+/**
+ * Configuration form within the Views Slideshow settings pane
+ */
+function flexslider_views_slideshow_views_slideshow_slideshow_type_form(&$form, &$form_state, &$view) {
+    // For a full list of options
+    // @see http://flex.madebymufffin.com/
+
+    // Load the list of option sets
+    $optionsets = flexslider_optionset_load_all();
+    // Parse out into key/value pairs
+    foreach ($optionsets as $key => $optionset) {
+      $options[$key] = $optionset->title;
+    }
+
+    // Add a select field
+    $form['flexslider_views_slideshow']['optionset'] = array(
+      '#type' => 'select',
+      '#title' => t('Option Set'),
+      '#multiple' => FALSE,
+      '#description' => t('Select a configured option set to use with Flex Slider.'),
+      '#options' => $options,
+      '#default_value' => $view->options['flexslider_views_slideshow']['optionset'],
+    );
+}
+
+function flexslider_views_slideshow_views_slideshow_slideshow_type_form_validate(&$form, &$form_state, &$view) {
+  // @todo add validation for any fields in the settings form
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/js/flexslider_views_slideshow.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,125 @@
+(function ($) {
+  // @todo convert to use Drupal.behaviors
+  // @todo add configuration options
+
+  // Register callback to save references to flexslider instances. Allows
+  // Views Slideshow controls to affect the slider
+  function flexslider_views_slideshow_register(fullId, slider) {
+    Drupal.flexsliderViewsSlideshow.active = Drupal.flexsliderViewsSlideshow.active || {};
+    Drupal.flexsliderViewsSlideshow.active[fullId] = slider;
+  }
+
+  Drupal.behaviors.flexsliderViewsSlideshow = {
+    attach: function (context) {
+      $('.flexslider_views_slideshow_main:not(.flexslider_views_slideshow-processed)', context).addClass('flexslider_views_slideshow-processed').each(function() {
+        // Get the ID of the slideshow
+        var fullId = '#' + $(this).attr('id');
+
+        // Create settings container
+        var settings = Drupal.settings.flexslider_views_slideshow[fullId];
+
+        //console.log(settings);
+
+        // @todo map the settings from the form to their javascript equivalents
+        settings.targetId = fullId;
+        
+        settings.loaded = false;
+
+        // Assign default settings
+		// @todo update the list of options to match the new set
+        settings.opts = {
+          // v2.x options
+          namespace:settings.namespace,
+          selector:settings.selector,
+          easing:settings.easing,
+          direction:settings.direction,
+          reverse:settings.reverse,
+          smoothHeight:settings.smoothHeight,
+          startAt:settings.startAt,
+          animationSpeed:settings.animationSpeed,
+          initDelay:settings.initDelay,
+          useCSS:settings.useCSS,
+          touch:settings.touch,
+          video:settings.video,
+          keyboard:settings.keyboard,
+          multipleKeyboard:settings.multipleKeyboard,
+          mousewheel:settings.mousewheel,
+          controlsContainer:settings.controlsContainer,
+          sync:settings.sync,
+          asNavFor:settings.asNavFor,
+          itemWidth:settings.itemWidth,
+          itemMargin:settings.itemMargin,
+          minItems:settings.minItems,
+          maxItems:settings.maxItems,
+          move:settings.move,
+          // v1.x options
+          animation:settings.animation,
+          slideshow:settings.slideshow,
+          slideshowSpeed:settings.slideshowSpeed,
+          directionNav:settings.directionNav,
+          controlNav:settings.controlNav,
+          prevText:settings.prevText,
+          nextText:settings.nextText,
+          pausePlay:settings.pausePlay,
+          pauseText:settings.pauseText,
+          playText:settings.playText,
+          randomize:settings.randomize,
+          animationLoop:settings.animationLoop,
+          pauseOnAction:settings.pauseOnAction,
+          pauseOnHover:settings.pauseOnHover,
+          manualControls:settings.manualControls,
+          start: function(slider) {
+            flexslider_views_slideshow_register(fullId, slider);
+          }
+          // @todo register other callbacks
+        };
+
+        Drupal.flexsliderViewsSlideshow.load(fullId);
+      });
+    }
+  };
+
+
+  // Initialize the flexslider object
+  Drupal.flexsliderViewsSlideshow = Drupal.flexsliderViewsSlideshow || {};
+
+  // Load mapping from Views Slideshow to FlexSlider
+  Drupal.flexsliderViewsSlideshow.load = function(fullId) {
+    var settings = Drupal.settings.flexslider_views_slideshow[fullId];
+
+    // Ensure the slider isn't already loaded
+    if (!settings.loaded) {
+      $(settings.targetId + " .flexslider").flexslider(settings.opts);
+      settings.loaded = true;
+    }
+  }
+
+  // Pause mapping from Views Slideshow to FlexSlider
+  Drupal.flexsliderViewsSlideshow.pause = function (options) {
+    Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].pause();
+    Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].manualPause = true;
+  }
+
+  // Play mapping from Views Slideshow to FlexSlider
+  Drupal.flexsliderViewsSlideshow.play = function (options) {
+    console.log(Drupal.flexsliderViewsSlideshow);
+    Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].resume();
+    Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].manualPause = false;
+  }
+  
+  Drupal.flexsliderViewsSlideshow.nextSlide = function (options) {
+    var target = Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].getTarget('next');
+
+    if (Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].canAdvance(target)) {
+      Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].flexAnimate(target, Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].vars.pauseOnAction);
+    }
+  }
+  Drupal.flexsliderViewsSlideshow.previousSlide = function (options) {
+    var target = Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].getTarget('prev');
+
+    if (Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].canAdvance(target)) {
+      Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].flexAnimate(target, Drupal.flexsliderViewsSlideshow.active['#flexslider_views_slideshow_main_' + options.slideshowID].vars.pauseOnAction);
+    }
+  }
+  // @todo add support for jquery mobile page init
+})(jQuery);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row-item.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,10 @@
+<?php
+
+/**
+ * @file
+ * Template for the FlexSlider row item
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+
+print $item;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame-row.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Template for the FlexSlider row
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+?>
+  <li class="<?php print $classes; ?>">
+    <?php print $rendered_items; ?>
+  </li>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow-main-frame.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * @file
+ * Template for the FlexSlider row container
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+?>
+<div class="flex-nav-container">
+  <div class="flexslider">
+    <ul id="flexslider_views_slideshow_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>">
+      <?php print $rendered_rows; ?>
+    </ul>
+  </div>
+</div>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/theme/flexslider-views-slideshow.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,15 @@
+<?php
+
+/**
+ * @file
+ * Template for the FlexSlider wrapper
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+
+// @todo get views slideshow to use this template. At the moment it seems to
+// ignore it.
+
+// @todo see if theme_views_slideshow_main_section can be changed to be overridable
+// see line 162 in views_slideshow.theme.inc
+?>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/flexslider_views_slideshow/theme/flexslider_views_slideshow.theme.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,165 @@
+<?php
+
+/**
+ * @file
+ * Theme and preprocess functions for Flexslider Views
+ *
+ * @author Mathew Winstone (minorOffense) <mwinstone@coldfrontlabs.ca>
+ */
+
+/**
+ * FlexSlider Views theme for the main wrapper element
+ *
+ * @ingroup themeable
+ */
+function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame(&$vars) {
+  // @todo see if we can get this to call theme('flexslider') instead.
+//  return 
+  // Load the settings, row information, view data and views slideshow ID into
+  // more conveniently named variables.
+  $settings = $vars['settings'];
+  $rows = $vars['rows'];
+  $view = $vars['view'];
+  $vss_id = $vars['vss_id'];
+
+  // Load the option set data
+  $optionset = $settings['optionset'];
+  $settings = flexslider_optionset_load($settings['optionset']);
+  $settings = $settings->options;
+
+
+  // Cast the strings into int or bool as necessary
+  $new_settings = array();
+  foreach ($settings as $key => $value) {
+    if (is_string($value)) {
+
+      $value = str_ireplace("\n", ' ', $value);
+      $value = trim($value);
+
+      // Check for numbers and/or boolean values
+      if (is_numeric($value)) {
+        $value = (int)$value;
+      }
+      elseif (drupal_strtolower($value) == 'true') {
+        $value = TRUE;
+      }
+      elseif (drupal_strtolower($value) == 'false') {
+        $value = FALSE;
+      }
+    }
+
+    $new_settings[$key] = $value;
+  }
+
+  // Merge the existing settings with the generated ones
+  $settings = array_merge(
+    array(
+      'num_divs' => sizeof($rows),
+      'id_prefix' => '#flexslider_views_slideshow_main_',
+      //'div_prefix' => '#'
+      // @todo figure out what the div prefix is used for
+      'vss_id' => $vss_id,
+    ),
+    $new_settings
+  );
+
+  // We need to go through the current js setting values to make sure the one we
+  // want to add is not already there. If it is already there then append -[num]
+  // to the id to make it unique.
+  $slideshow_count = 1;
+  $current_settings = drupal_add_js();
+  foreach ($current_settings['settings']['data'] AS $current_setting) {
+    if (isset($current_setting['flexslider_views_slideshow'])) {
+      $current_keys = array_keys($current_setting['flexslider_views_slideshow']);
+      if (stristr($current_keys[0], '#flexslider_views_slideshow_main_' . $vss_id)) {
+        $slideshow_count++;
+      }
+    }
+  }
+
+  // Append the new unique IDs if required
+  if ($slideshow_count > 1) {
+    $vss_id .= '-' . $slideshow_count;
+    $settings['vss_id'] = $vss_id;
+  }
+
+  // Load the FlexSlider library for use.
+  libraries_load('flexslider');
+
+  // Create the settings container
+  // Due to a limitation inside of views_slideshow, the ID for the settings container
+  // must end with _main
+  //
+  // see lines 162 through 169 in views_slideshow.theme.inc
+  drupal_add_js(array('flexslider_views_slideshow' => array('#flexslider_views_slideshow_main_' . $vss_id => $settings)), 'setting');
+
+  // Load the initilization javascript
+  drupal_add_js(drupal_get_path('module', 'flexslider_views_slideshow') . '/js/flexslider_views_slideshow.js');
+
+  // Required container class for FlexSlider
+  $vars['classes_array'][] = 'slides';
+
+  // Render the rows
+  $rendered_rows = '';
+  $slideshow_count = 0;
+  foreach ($rows as $count => $row) {
+    $items[] = $row;
+    // @todo see if we can group multiple items per slide
+    $rendered_rows .= theme('flexslider_views_slideshow_main_frame_row', array('vss_id' => $vss_id, 'items' => $items, 'count' => $count, 'view' => $view));
+
+    // Clear the items array
+    $items = array();
+    // Count the number of slides created
+    $slideshow_count++;
+  }
+
+  // Save the rendered rows
+  $vars['rendered_rows'] = $rendered_rows;
+}
+
+/**
+ * FlexSlider Views Slideshow theme for the row element
+ *
+ * @ingroup themeable
+ */
+function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row(&$vars) {
+  $current = $vars['count'] + 1;
+  $vars['classes_array'][] = 'flexslider_views_slideshow_slide views-row-' . $current;
+
+  // @todo figure out why this if statement is here
+  if ($vars['count']) {
+    $vars['classes_array'][] =  'views_slideshow_cycle_hidden';
+  }
+  // @todo add option to toggle views rows counters on/off
+  $vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
+
+  $vars['rendered_items'] = '';
+  foreach ($vars['items'] as $item_count => $item) {
+    $vars['rendered_items'] .= theme('flexslider_views_slideshow_main_frame_row_item', array('item' => $item, 'item_count' => $item_count, 'view' => $vars['view']));
+  }
+}
+
+/**
+ * FlexSlider Views Slideshow theme for an item within a row
+ *
+ * @ingroup themeable
+ */
+function _flexslider_views_slideshow_preprocess_flexslider_views_slideshow_main_frame_row_item(&$vars) {
+  $vars['classes_array'][] = 'views-row views-row-' . $vars['item_count'];
+  if (!$vars['item_count']) {
+    $vars['classes_array'][] = 'views-row-first';
+  }
+  if ($vars['item_count'] % 2) {
+    $vars['classes_array'][] = 'views-row-even';
+  }
+  else {
+    $vars['classes_array'][] = 'views-row-odd';
+  }
+
+  /**
+   * Support custom row classes.
+   */
+  if ($row_class = $vars['view']->style_plugin->get_row_class($vars['item_count'])) {
+    $vars['classes_array'][] = $row_class;
+  }
+}
Binary file sites/all/modules/google_analytics/.DS_Store has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,76 @@
+
+Module: Google Analytics
+Author: Alexander Hass <http://drupal.org/user/85918>
+
+
+Description
+===========
+Adds the Google Analytics tracking system to your website.
+
+Requirements
+============
+
+* Google Analytics user account
+
+
+Installation
+============
+* Copy the 'googleanalytics' module directory in to your Drupal
+sites/all/modules directory as usual.
+
+
+Usage
+=====
+In the settings page enter your Google Analytics account number.
+
+All pages will now have the required JavaScript added to the
+HTML footer can confirm this by viewing the page source from
+your browser.
+
+New approach to page tracking in 5.x-1.5 and 6.x-1.1
+====================================================
+With 5.x-1.5 and 6.x-1.1 there are new settings on the settings page at
+admin/config/system/googleanalytics. The "Page specific tracking" area now
+comes with an interface that copies Drupal's block visibility settings.
+
+The default is set to "Add to every page except the listed pages". By
+default the following pages are listed for exclusion:
+
+admin
+admin/*
+batch
+node/add*
+node/*/*
+user/*/*
+
+These defaults are changeable by the website administrator or any other
+user with 'administer google analytics' permission.
+
+Like the blocks visibility settings in Drupal core, there is now a
+choice for "Add if the following PHP code returns TRUE." Sample PHP snippets
+that can be used in this textarea can be found on the handbook page
+"Overview-approach to block visibility" at http://drupal.org/node/64135.
+
+Custom variables
+=================
+One example for custom variables tracking is the "User roles" tracking. Enter
+the below configuration data into the custom variables settings form under
+admin/config/system/googleanalytics.
+
+Slot: 1
+Name: User roles
+Value: [current-user:role-names]
+Scope: Visitor
+
+More details about Custom variables can be found in the Google API documentation at
+http://code.google.com/intl/en/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
+
+Advanced Settings
+=================
+You can include additional JavaScript snippets in the custom javascript
+code textarea. These can be found on the official Google Analytics pages
+and a few examples at http://drupal.org/node/248699. Support is not
+provided for any customisations you include.
+
+To speed up page loading you may also cache the Analytics ga.js
+file locally.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,601 @@
+<?php
+
+/**
+ * @file
+ * Administrative page callbacks for the googleanalytics module.
+ */
+
+/**
+ * Implements hook_admin_settings() for module settings configuration.
+ */
+function googleanalytics_admin_settings_form($form_state) {
+  $form['account'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('General settings'),
+  );
+
+  $form['account']['googleanalytics_account'] = array(
+    '#title' => t('Web Property ID'),
+    '#type' => 'textfield',
+    '#default_value' => variable_get('googleanalytics_account', 'UA-'),
+    '#size' => 15,
+    '#maxlength' => 20,
+    '#required' => TRUE,
+    '#description' => t('This ID is unique to each site you want to track separately, and is in the form of UA-xxxxxxx-yy. To get a Web Property ID, <a href="@analytics">register your site with Google Analytics</a>, or if you already have registered your site, go to your Google Analytics Settings page to see the ID next to every site profile. <a href="@webpropertyid">Find more information in the documentation</a>.', array('@analytics' => 'http://www.google.com/analytics/', '@webpropertyid' => url('https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts', array('fragment' => 'webProperty')))),
+  );
+
+  // Visibility settings.
+  $form['tracking_title'] = array(
+    '#type' => 'item',
+    '#title' => t('Tracking scope'),
+  );
+  $form['tracking'] = array(
+    '#type' => 'vertical_tabs',
+    '#attached' => array(
+      'js' => array(drupal_get_path('module', 'googleanalytics') . '/googleanalytics.admin.js'),
+    ),
+  );
+
+  $form['tracking']['domain_tracking'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Domains'),
+  );
+
+  global $cookie_domain;
+  $multiple_sub_domains = array();
+  foreach (array('www', 'app', 'shop') as $subdomain) {
+    if (count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) {
+      $multiple_sub_domains[] = $subdomain . $cookie_domain;
+    }
+    // IP addresses or localhost.
+    else {
+      $multiple_sub_domains[] = $subdomain . '.example.com';
+    }
+  }
+
+  $multiple_toplevel_domains = array();
+  foreach (array('.com', '.net', '.org') as $tldomain) {
+    $host = $_SERVER['HTTP_HOST'];
+    $domain = substr($host, 0, strrpos($host, '.'));
+    if (count(explode('.', $host)) > 2 && !is_numeric(str_replace('.', '', $host))) {
+      $multiple_toplevel_domains[] = $domain . $tldomain;
+    }
+    // IP addresses or localhost
+    else {
+      $multiple_toplevel_domains[] = 'www.example' . $tldomain;
+    }
+  }
+
+  $form['tracking']['domain_tracking']['googleanalytics_domain_mode'] = array(
+    '#type' => 'radios',
+    '#title' => t('What are you tracking?'),
+    '#options' => array(
+      0 => t('A single domain (default)') . '<div class="description">' . t('Domain: @domain', array('@domain' => $_SERVER['HTTP_HOST'])) . '</div>',
+      1 => t('One domain with multiple subdomains') . '<div class="description">' . t('Examples: @domains', array('@domains' => implode(', ', $multiple_sub_domains))) . '</div>',
+      2 => t('Multiple top-level domains') . '<div class="description">' . t('Examples: @domains', array('@domains' => implode(', ', $multiple_toplevel_domains))) . '</div>',
+    ),
+    '#default_value' => variable_get('googleanalytics_domain_mode', 0),
+  );
+  $form['tracking']['domain_tracking']['googleanalytics_cross_domains'] = array(
+    '#title' => t('List of top-level domains'),
+    '#type' => 'textarea',
+    '#default_value' => variable_get('googleanalytics_cross_domains', ''),
+    '#description' => t('If you selected "Multiple top-level domains" above, enter all related top-level domains. Add one domain per line. By default, the data in your reports only includes the path and name of the page, and not the domain name. For more information see section <em>Show separate domain names</em> in <a href="@url">Tracking Multiple Domains</a>.', array('@url' => url('http://support.google.com/analytics/bin/answer.py', array('query' => array('answer' => '1034342'))))),
+  );
+
+  // Page specific visibility configurations.
+  $php_access = user_access('use PHP for tracking visibility');
+  $visibility = variable_get('googleanalytics_visibility_pages', 0);
+  $pages = variable_get('googleanalytics_pages', GOOGLEANALYTICS_PAGES);
+
+  $form['tracking']['page_vis_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Pages'),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+  );
+
+  if ($visibility == 2 && !$php_access) {
+    $form['tracking']['page_vis_settings'] = array();
+    $form['tracking']['page_vis_settings']['visibility'] = array('#type' => 'value', '#value' => 2);
+    $form['tracking']['page_vis_settings']['pages'] = array('#type' => 'value', '#value' => $pages);
+  }
+  else {
+    $options = array(
+      t('Every page except the listed pages'),
+      t('The listed pages only'),
+    );
+    $description = t("Specify pages by using their paths. Enter one path per line. The '*' character is a wildcard. Example paths are %blog for the blog page and %blog-wildcard for every personal blog. %front is the front page.", array('%blog' => 'blog', '%blog-wildcard' => 'blog/*', '%front' => '<front>'));
+
+    if (module_exists('php') && $php_access) {
+      $options[] = t('Pages on which this PHP code returns <code>TRUE</code> (experts only)');
+      $title = t('Pages or PHP code');
+      $description .= ' ' . t('If the PHP option is chosen, enter PHP code between %php. Note that executing incorrect PHP code can break your Drupal site.', array('%php' => '<?php ?>'));
+    }
+    else {
+      $title = t('Pages');
+    }
+    $form['tracking']['page_vis_settings']['googleanalytics_visibility_pages'] = array(
+      '#type' => 'radios',
+      '#title' => t('Add tracking to specific pages'),
+      '#options' => $options,
+      '#default_value' => $visibility,
+    );
+    $form['tracking']['page_vis_settings']['googleanalytics_pages'] = array(
+      '#type' => 'textarea',
+      '#title' => $title,
+      '#title_display' => 'invisible',
+      '#default_value' => $pages,
+      '#description' => $description,
+      '#rows' => 10,
+    );
+  }
+
+  // Render the role overview.
+  $form['tracking']['role_vis_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Roles'),
+  );
+
+  $form['tracking']['role_vis_settings']['googleanalytics_visibility_roles'] = array(
+    '#type' => 'radios',
+    '#title' => t('Add tracking for specific roles'),
+    '#options' => array(
+      t('Add to the selected roles only'),
+      t('Add to every role except the selected ones'),
+    ),
+    '#default_value' => variable_get('googleanalytics_visibility_roles', 0),
+  );
+
+  $role_options = array_map('check_plain', user_roles());
+  $form['tracking']['role_vis_settings']['googleanalytics_roles'] = array(
+    '#type' => 'checkboxes',
+    '#title' => t('Roles'),
+    '#default_value' => variable_get('googleanalytics_roles', array()),
+    '#options' => $role_options,
+    '#description' => t('If none of the roles are selected, all users will be tracked. If a user has any of the roles checked, that user will be tracked (or excluded, depending on the setting above).'),
+  );
+
+  // Standard tracking configurations.
+  $form['tracking']['user_vis_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Users'),
+  );
+  $t_permission = array('%permission' => t('opt-in or out of tracking'));
+  $form['tracking']['user_vis_settings']['googleanalytics_custom'] = array(
+    '#type' => 'radios',
+    '#title' => t('Allow users to customize tracking on their account page'),
+    '#options' => array(
+      t('No customization allowed'),
+      t('Tracking on by default, users with %permission permission can opt out', $t_permission),
+      t('Tracking off by default, users with %permission permission can opt in', $t_permission),
+    ),
+    '#default_value' => variable_get('googleanalytics_custom', 0),
+  );
+
+  // Link specific configurations.
+  $form['tracking']['linktracking'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Links and downloads'),
+  );
+  $form['tracking']['linktracking']['googleanalytics_trackoutbound'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track clicks on outbound links'),
+    '#default_value' => variable_get('googleanalytics_trackoutbound', 1),
+  );
+  $form['tracking']['linktracking']['googleanalytics_trackmailto'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track clicks on mailto links'),
+    '#default_value' => variable_get('googleanalytics_trackmailto', 1),
+  );
+  $form['tracking']['linktracking']['googleanalytics_trackfiles'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track downloads (clicks on file links) for the following extensions'),
+    '#default_value' => variable_get('googleanalytics_trackfiles', 1),
+  );
+  $form['tracking']['linktracking']['googleanalytics_trackfiles_extensions'] = array(
+    '#title' => t('List of download file extensions'),
+    '#title_display' => 'invisible',
+    '#type' => 'textfield',
+    '#default_value' => variable_get('googleanalytics_trackfiles_extensions', GOOGLEANALYTICS_TRACKFILES_EXTENSIONS),
+    '#description' => t('A file extension list separated by the | character that will be tracked as download when clicked. Regular expressions are supported. For example: !extensions', array('!extensions' => GOOGLEANALYTICS_TRACKFILES_EXTENSIONS)),
+    '#maxlength' => 255,
+  );
+
+  // Message specific configurations.
+  $form['tracking']['messagetracking'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Messages'),
+  );
+  $form['tracking']['messagetracking']['googleanalytics_trackmessages'] = array(
+    '#type' => 'checkboxes',
+    '#title' => t('Track messages of type'),
+    '#default_value' => variable_get('googleanalytics_trackmessages', array()),
+    '#description' => t('This will track the selected message types shown to users. Tracking of form validation errors may help you identifying usability issues in your site. Keep in mind that Google allows a maximum of 500 events per session only and every message is tracked as one individual event. If the limit has been exceeded no further events are tracked, but normal page tracking is not effected. Messages from excluded pages cannot tracked.'),
+    '#options' => array(
+      'status' => t('Status message'),
+      'warning' => t('Warning message'),
+      'error' => t('Error message'),
+    ),
+  );
+
+  // Google already have many translations, if not - they display a note to change the language.
+  global $language;
+  $form['tracking']['search_and_advertising'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Search and Advertising'),
+  );
+
+  $site_search_dependencies = '<div class="admin-dependencies">';
+  $site_search_dependencies .= t('Depends on: !dependencies', array('!dependencies' => (module_exists('search') ? t('@module (<span class="admin-enabled">enabled</span>)', array('@module' => 'Search')) : t('@module (<span class="admin-disabled">disabled</span>)', array('@module' => 'Search')))));
+  $site_search_dependencies .= '</div>';
+
+  $form['tracking']['search_and_advertising']['googleanalytics_site_search'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track internal search'),
+    '#description' => t('If checked, internal search keywords are tracked. You must configure your Google account to use the internal query parameter <strong>search</strong>. For more information see <a href="@url">Setting Up Site Search for a Profile</a>.', array('@url' => url('http://support.google.com/analytics/bin/answer.py', array('query' => array('answer' => '1012264'))))) . $site_search_dependencies,
+    '#default_value' => variable_get('googleanalytics_site_search', FALSE),
+    '#disabled' => (module_exists('search') ? FALSE : TRUE),
+  );
+  $form['tracking']['search_and_advertising']['googleanalytics_trackadsense'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track AdSense ads'),
+    '#description' => t('If checked, your AdSense ads will be tracked in your Google Analytics account.'),
+    '#default_value' => variable_get('googleanalytics_trackadsense', FALSE),
+  );
+  $form['tracking']['search_and_advertising']['googleanalytics_trackdoubleclick'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Track DoubleClick data'),
+    '#description' => t('If checked, the alternative Google <a href="@doubleclick">DoubleClick data tracking</a> is used to enable AdWords remarketing features. If you choose this option you will need to <a href="@privacy">update your privacy policy</a>.', array('@doubleclick' => url('http://support.google.com/analytics/bin/answer.py', array('query' => array('answer' => '2444872'))), '@privacy' => url('http://support.google.com/analytics/bin/answer.py', array('query' => array('answer' => '2636405'))))),
+    '#default_value' => variable_get('googleanalytics_trackdoubleclick', FALSE),
+  );
+
+  // Privacy specific configurations.
+  $form['tracking']['privacy'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Privacy'),
+  );
+  $form['tracking']['privacy']['googleanalytics_tracker_anonymizeip'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Anonymize visitors IP address'),
+    '#description' => t('Tell Google Analytics to anonymize the information sent by the tracker objects by removing the last octet of the IP address prior to its storage. Note that this will slightly reduce the accuracy of geographic reporting. In some countries it is not allowed to collect personally identifying information for privacy reasons and this setting may help you to comply with the local laws.'),
+    '#default_value' => variable_get('googleanalytics_tracker_anonymizeip', 0),
+  );
+  $form['tracking']['privacy']['googleanalytics_privacy_donottrack'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Universal web tracking opt-out'),
+    '#description' => t('If enabled and your server receives the <a href="@donottrack">Do-Not-Track</a> header from the client browser, the Google Analytics module will not embed any tracking code into your site. Compliance with Do Not Track could be purely voluntary, enforced by industry self-regulation, or mandated by state or federal law. Please accept your visitors privacy. If they have opt-out from tracking and advertising, you should accept their personal decision. This feature is currently limited to logged in users and disabled page caching.', array('@donottrack' => 'http://donottrack.us/')),
+    '#default_value' => variable_get('googleanalytics_privacy_donottrack', 1),
+  );
+
+  // Custom variables.
+  $form['googleanalytics_custom_var'] = array(
+    '#collapsed' => TRUE,
+    '#collapsible' => TRUE,
+    '#description' => t('You can add Google Analytics <a href="@custom_var_documentation">Custom Variables</a> here. These will be added to every page that Google Analytics tracking code appears on. Google Analytics will only accept custom variables if the <em>name</em> and <em>value</em> combined are less than 128 bytes after URL encoding. Keep the names as short as possible and expect long values to get trimmed. You may use tokens in custom variable names and values. Global and user tokens are always available; on node pages, node tokens are also available.', array('@custom_var_documentation' => 'https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables')),
+    '#theme' => 'googleanalytics_admin_custom_var_table',
+    '#title' => t('Custom variables'),
+    '#tree' => TRUE,
+    '#type' => 'fieldset',
+  );
+
+  $googleanalytics_custom_vars = variable_get('googleanalytics_custom_var', array());
+
+  // Google Analytics supports up to 5 custom variables.
+  for ($i = 1; $i < 6; $i++) {
+    $form['googleanalytics_custom_var']['slots'][$i]['slot'] = array(
+      '#default_value' => $i,
+      '#description' => t('Slot number'),
+      '#disabled' => TRUE,
+      '#size' => 1,
+      '#title' => t('Custom variable slot #@slot', array('@slot' => $i)),
+      '#title_display' => 'invisible',
+      '#type' => 'textfield',
+    );
+    $form['googleanalytics_custom_var']['slots'][$i]['name'] = array(
+      '#default_value' => !empty($googleanalytics_custom_vars['slots'][$i]['name']) ? $googleanalytics_custom_vars['slots'][$i]['name'] : '',
+      '#description' => t('The custom variable name.'),
+      '#maxlength' => 255,
+      '#size' => 20,
+      '#title' => t('Custom variable name #@slot', array('@slot' => $i)),
+      '#title_display' => 'invisible',
+      '#type' => 'textfield',
+      '#element_validate' => array('googleanalytics_token_element_validate'),
+      '#token_types' => array('node'),
+    );
+    $form['googleanalytics_custom_var']['slots'][$i]['value'] = array(
+      '#default_value' => !empty($googleanalytics_custom_vars['slots'][$i]['value']) ? $googleanalytics_custom_vars['slots'][$i]['value'] : '',
+      '#description' => t('The custom variable value.'),
+      '#maxlength' => 255,
+      '#title' => t('Custom variable value #@slot', array('@slot' => $i)),
+      '#title_display' => 'invisible',
+      '#type' => 'textfield',
+      '#element_validate' => array('googleanalytics_token_element_validate'),
+      '#token_types' => array('node'),
+    );
+    if (module_exists('token')) {
+      $form['googleanalytics_custom_var']['slots'][$i]['name']['#element_validate'][] = 'token_element_validate';
+      $form['googleanalytics_custom_var']['slots'][$i]['value']['#element_validate'][] = 'token_element_validate';
+    }
+    $form['googleanalytics_custom_var']['slots'][$i]['scope'] = array(
+      '#default_value' => !empty($googleanalytics_custom_vars['slots'][$i]['scope']) ? $googleanalytics_custom_vars['slots'][$i]['scope'] : 3,
+      '#description' => t('The scope for the custom variable.'),
+      '#title' => t('Custom variable slot #@slot', array('@slot' => $i)),
+      '#title_display' => 'invisible',
+      '#type' => 'select',
+      '#options' => array(
+        1 => t('Visitor'),
+        2 => t('Session'),
+        3 => t('Page'),
+      ),
+    );
+  }
+
+  $form['googleanalytics_custom_var']['googleanalytics_custom_var_description'] = array(
+    '#type' => 'item',
+    '#description' => t('You can supplement Google Analytics\' basic IP address tracking of visitors by segmenting users based on custom variables. Section 7 of the <a href="@ga_tos">Google Analytics terms of service</a> requires that You will not (and will not allow any third party to) use the Service to track, collect or upload any data that personally identifies an individual (such as a name, email address or billing information), or other data which can be reasonably linked to such information by Google. You will have and abide by an appropriate Privacy Policy and will comply with all applicable laws and regulations relating to the collection of information from Visitors. You must post a Privacy Policy and that Privacy Policy must provide notice of Your use of cookies that are used to collect traffic data, and You must not circumvent any privacy features (e.g., an opt-out) that are part of the Service.', array('@ga_tos' => 'http://www.google.com/analytics/terms/gb.html')),
+  );
+  $form['googleanalytics_custom_var']['googleanalytics_custom_var_token_tree'] = array(
+    '#theme' => 'token_tree',
+    '#token_types' => array('node'),
+    '#dialog' => TRUE,
+  );
+
+
+  // Advanced feature configurations.
+  $form['advanced'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Advanced settings'),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+  );
+
+  $form['advanced']['googleanalytics_cache'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Locally cache tracking code file'),
+    '#description' => t("If checked, the tracking code file is retrieved from Google Analytics and cached locally. It is updated daily from Google's servers to ensure updates to tracking code are reflected in the local copy. Do not activate this until after Google Analytics has confirmed that site tracking is working!"),
+    '#default_value' => variable_get('googleanalytics_cache', 0),
+  );
+
+  // Allow for tracking of the originating node when viewing translation sets.
+  if (module_exists('translation')) {
+    $form['advanced']['googleanalytics_translation_set'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Track translation sets as one unit'),
+      '#description' => t('When a node is part of a translation set, record statistics for the originating node instead. This allows for a translation set to be treated as a single unit.'),
+      '#default_value' => variable_get('googleanalytics_translation_set', 0),
+    );
+  }
+
+  $form['advanced']['codesnippet'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Custom JavaScript code'),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+    '#description' => t('You can add custom Google Analytics <a href="@snippets">code snippets</a> here. These will be added every time tracking is in effect. Before you add your custom code, you should read the <a href="@ga_concepts_overview">Google Analytics Tracking Code - Functional Overview</a> and the <a href="@ga_js_api">Google Analytics Tracking API</a> documentation. <strong>Do not include the &lt;script&gt; tags</strong>, and always end your code with a semicolon (;).', array('@snippets' => 'http://drupal.org/node/248699', '@ga_concepts_overview' => 'https://developers.google.com/analytics/resources/concepts/gaConceptsTrackingOverview', '@ga_js_api' => 'https://developers.google.com/analytics/devguides/collection/gajs/methods/')),
+  );
+  $form['advanced']['codesnippet']['googleanalytics_codesnippet_before'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Code snippet (before)'),
+    '#default_value' => variable_get('googleanalytics_codesnippet_before', ''),
+    '#rows' => 5,
+    '#description' => t("Code in this textarea will be added <strong>before</strong> _gaq.push(['_trackPageview'])."),
+  );
+  $form['advanced']['codesnippet']['googleanalytics_codesnippet_after'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Code snippet (after)'),
+    '#default_value' => variable_get('googleanalytics_codesnippet_after', ''),
+    '#rows' => 5,
+    '#description' => t("Code in this textarea will be added <strong>after</strong> _gaq.push(['_trackPageview']). This is useful if you'd like to track a site in two accounts."),
+  );
+
+  $form['advanced']['googleanalytics_js_scope'] = array(
+    '#type' => 'select',
+    '#title' => t('JavaScript scope'),
+    '#description' => t('Google recommends adding the external JavaScript files to the header for performance reasons. If <em>Multiple top-level domains</em> has been selected, this setting will be forced to header.'),
+    '#options' => array(
+      'footer' => t('Footer'),
+      'header' => t('Header'),
+    ),
+    '#default_value' => variable_get('googleanalytics_js_scope', 'header'),
+    '#disabled' => (variable_get('googleanalytics_domain_mode', 0) == 2) ? TRUE : FALSE,
+  );
+
+  return system_settings_form($form);
+}
+
+/**
+ * Implements _form_validate().
+ */
+function googleanalytics_admin_settings_form_validate($form, &$form_state) {
+  // Custom variables validation.
+  foreach ($form_state['values']['googleanalytics_custom_var']['slots'] as $custom_var) {
+    $form_state['values']['googleanalytics_custom_var']['slots'][$custom_var['slot']]['name'] = trim($custom_var['name']);
+    $form_state['values']['googleanalytics_custom_var']['slots'][$custom_var['slot']]['value'] = trim($custom_var['value']);
+
+    // Validate empty names/values.
+    if (empty($custom_var['name']) && !empty($custom_var['value'])) {
+      form_set_error("googleanalytics_custom_var][slots][" . $custom_var['slot'] . "][name", t('The custom variable @slot-number requires a <em>Name</em> if a <em>Value</em> has been provided.', array('@slot-number' =>  $custom_var['slot'])));
+    }
+    elseif (!empty($custom_var['name']) && empty($custom_var['value'])) {
+      form_set_error("googleanalytics_custom_var][slots][" . $custom_var['slot'] . "][value", t('The custom variable @slot-number requires a <em>Value</em> if a <em>Name</em> has been provided.', array('@slot-number' =>  $custom_var['slot'])));
+    }
+  }
+
+  // Trim some text values.
+  $form_state['values']['googleanalytics_account'] = trim($form_state['values']['googleanalytics_account']);
+  $form_state['values']['googleanalytics_pages'] = trim($form_state['values']['googleanalytics_pages']);
+  $form_state['values']['googleanalytics_cross_domains'] = trim($form_state['values']['googleanalytics_cross_domains']);
+  $form_state['values']['googleanalytics_codesnippet_before'] = trim($form_state['values']['googleanalytics_codesnippet_before']);
+  $form_state['values']['googleanalytics_codesnippet_after'] = trim($form_state['values']['googleanalytics_codesnippet_after']);
+
+  // Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
+  $form_state['values']['googleanalytics_account'] = str_replace(array('–', '—', '−'), '-', $form_state['values']['googleanalytics_account']);
+
+  if (!preg_match('/^UA-\d{4,}-\d+$/', $form_state['values']['googleanalytics_account'])) {
+    form_set_error('googleanalytics_account', t('A valid Google Analytics Web Property ID is case sensitive and formatted like UA-xxxxxxx-yy.'));
+  }
+
+  // If multiple top-level domains has been selected, a domain names list is required.
+  if ($form_state['values']['googleanalytics_domain_mode'] == 2 && empty($form_state['values']['googleanalytics_cross_domains'])) {
+    form_set_error('googleanalytics_cross_domains', t('A list of top-level domains is required if <em>Multiple top-level domains</em> has been selected.'));
+  }
+  // Clear obsolete local cache if cache has been disabled.
+  if (empty($form_state['values']['googleanalytics_cache']) && $form['advanced']['googleanalytics_cache']['#default_value']) {
+    googleanalytics_clear_js_cache();
+  }
+
+  // This is for the Newbie's who cannot read a text area description.
+  if (stristr($form_state['values']['googleanalytics_codesnippet_before'], 'google-analytics.com/ga.js')) {
+    form_set_error('googleanalytics_codesnippet_before', t('Do not add the tracker code provided by Google into the javascript code snippets! This module already builds the tracker code based on your Google Analytics account number and settings.'));
+  }
+  if (stristr($form_state['values']['googleanalytics_codesnippet_after'], 'google-analytics.com/ga.js')) {
+    form_set_error('googleanalytics_codesnippet_after', t('Do not add the tracker code provided by Google into the javascript code snippets! This module already builds the tracker code based on your Google Analytics account number and settings.'));
+  }
+  if (preg_match('/(.*)<\/?script(.*)>(.*)/i', $form_state['values']['googleanalytics_codesnippet_before'])) {
+    form_set_error('googleanalytics_codesnippet_before', t('Do not include the &lt;script&gt; tags in the javascript code snippets.'));
+  }
+  if (preg_match('/(.*)<\/?script(.*)>(.*)/i', $form_state['values']['googleanalytics_codesnippet_after'])) {
+    form_set_error('googleanalytics_codesnippet_after', t('Do not include the &lt;script&gt; tags in the javascript code snippets.'));
+  }
+
+  // Header section must be forced for multiple top-level domains.
+  if ($form_state['values']['googleanalytics_domain_mode'] == 2) {
+    $form_state['values']['googleanalytics_js_scope'] = 'header';
+  }
+}
+
+/**
+ * Layout for the custom variables table in the admin settings form.
+ */
+function theme_googleanalytics_admin_custom_var_table($variables) {
+  $form = $variables['form'];
+
+  $header = array(
+    array('data' => t('Slot')),
+    array('data' => t('Name')),
+    array('data' => t('Value')),
+    array('data' => t('Scope')),
+  );
+
+  $rows = array();
+  foreach (element_children($form['slots']) as $key => $id) {
+    $rows[] = array(
+      'data' => array(
+        drupal_render($form['slots'][$id]['slot']),
+        drupal_render($form['slots'][$id]['name']),
+        drupal_render($form['slots'][$id]['value']),
+        drupal_render($form['slots'][$id]['scope']),
+      ),
+    );
+  }
+
+  $output = theme('table', array('header' => $header, 'rows' => $rows));
+  $output .= drupal_render($form['googleanalytics_custom_var_description']);
+  $output .= drupal_render($form['googleanalytics_custom_var_token_tree']);
+
+  return $output;
+}
+
+/**
+ * Validate a form element that should have tokens in it.
+ *
+ * For example:
+ * @code
+ * $form['my_node_text_element'] = array(
+ *   '#type' => 'textfield',
+ *   '#title' => t('Some text to token-ize that has a node context.'),
+ *   '#default_value' => 'The title of this node is [node:title].',
+ *   '#element_validate' => array('googleanalytics_token_element_validate'),
+ * );
+ * @endcode
+ */
+function googleanalytics_token_element_validate(&$element, &$form_state) {
+  $value = isset($element['#value']) ? $element['#value'] : $element['#default_value'];
+
+  if (!drupal_strlen($value)) {
+    // Empty value needs no further validation since the element should depend
+    // on using the '#required' FAPI property.
+    return $element;
+  }
+
+  $tokens = token_scan($value);
+  $invalid_tokens = _googleanalytics_get_forbidden_tokens($tokens);
+  if ($invalid_tokens) {
+    form_error($element, t('The %element-title is using the following forbidden tokens with personal identifying information: @invalid-tokens.', array('%element-title' => $element['#title'], '@invalid-tokens' => implode(', ', $invalid_tokens))));
+  }
+
+  return $element;
+}
+
+function _googleanalytics_get_forbidden_tokens($value) {
+  $invalid_tokens = array();
+  $value_tokens = is_string($value) ? token_scan($value) : $value;
+
+  foreach ($value_tokens as $type => $tokens) {
+    if (array_filter($tokens, '_googleanalytics_contains_forbidden_token')) {
+      $invalid_tokens = array_merge($invalid_tokens, array_values($tokens));
+    }
+  }
+
+  array_unique($invalid_tokens);
+  return $invalid_tokens;
+}
+
+/**
+ * Validate if a string contains forbidden tokens not allowed by privacy rules.
+ *
+ * @param $token_string
+ *   A string with one or more tokens to be validated.
+ * @return boolean
+ *   TRUE if blacklisted token has been found, otherwise FALSE.
+ */
+function _googleanalytics_contains_forbidden_token($token_string) {
+  // List of strings in tokens with personal identifying information not allowed
+  // for privacy reasons. See section 8.1 of the Google Analytics terms of use
+  // for more detailed information.
+  //
+  // This list can never ever be complete. For this reason it tries to use a
+  // regex and may kill a few other valid tokens, but it's the only way to
+  // protect users as much as possible from admins with illegal ideas.
+  //
+  // User tokens are not prefixed with colon to catch 'current-user' and 'user'.
+  //
+  // TODO: If someone have better ideas, share them, please!
+  $token_blacklist = array(
+    ':author]',
+    ':author:edit-url]',
+    ':author:url]',
+    ':author:path]',
+    ':current-user]',
+    ':current-user:original]',
+    ':fid]',
+    ':mail]',
+    ':name]',
+    ':uid]',
+    ':one-time-login-url]',
+    ':owner]',
+    ':owner:cancel-url]',
+    ':owner:edit-url]',
+    ':owner:url]',
+    ':owner:path]',
+    'user:cancel-url]',
+    'user:edit-url]',
+    'user:url]',
+    'user:path]',
+    'user:picture]',
+    // addressfield_tokens.module
+    ':first-name]',
+    ':last-name]',
+    ':name-line]',
+    ':mc-address]',
+    ':thoroughfare]',
+    ':premise]',
+    // realname.module
+    ':name-raw]',
+    // token.module
+    ':ip-address]',
+  );
+
+  return preg_match('/' . implode('|', array_map('preg_quote', $token_blacklist)) . '/i', $token_string);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.admin.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,131 @@
+(function ($) {
+
+/**
+ * Provide the summary information for the tracking settings vertical tabs.
+ */
+Drupal.behaviors.trackingSettingsSummary = {
+  attach: function (context) {
+    // Make sure this behavior is processed only if drupalSetSummary is defined.
+    if (typeof jQuery.fn.drupalSetSummary == 'undefined') {
+      return;
+    }
+
+    $('fieldset#edit-page-vis-settings', context).drupalSetSummary(function (context) {
+      var $radio = $('input[name="googleanalytics_visibility_pages"]:checked', context);
+      if ($radio.val() == 0) {
+        if (!$('textarea[name="googleanalytics_pages"]', context).val()) {
+          return Drupal.t('Not restricted');
+        }
+        else {
+          return Drupal.t('All pages with exceptions');
+        }
+      }
+      else {
+        return Drupal.t('Restricted to certain pages');
+      }
+    });
+
+    $('fieldset#edit-role-vis-settings', context).drupalSetSummary(function (context) {
+      var vals = [];
+      $('input[type="checkbox"]:checked', context).each(function () {
+        vals.push($.trim($(this).next('label').text()));
+      });
+      if (!vals.length) {
+        return Drupal.t('Not restricted');
+      }
+      else if ($('input[name="googleanalytics_visibility_roles"]:checked', context).val() == 1) {
+        return Drupal.t('Excepted: @roles', {'@roles' : vals.join(', ')});
+      }
+      else {
+        return vals.join(', ');
+      }
+    });
+
+    $('fieldset#edit-user-vis-settings', context).drupalSetSummary(function (context) {
+      var $radio = $('input[name="googleanalytics_custom"]:checked', context);
+      if ($radio.val() == 0) {
+        return Drupal.t('Not customizable');
+      }
+      else if ($radio.val() == 1) {
+        return Drupal.t('On by default with opt out');
+      }
+      else {
+        return Drupal.t('Off by default with opt in');
+      }
+    });
+
+    $('fieldset#edit-linktracking', context).drupalSetSummary(function (context) {
+      var vals = [];
+      if ($('input#edit-googleanalytics-trackoutbound', context).is(':checked')) {
+        vals.push(Drupal.t('Outbound links'));
+      }
+      if ($('input#edit-googleanalytics-trackmailto', context).is(':checked')) {
+        vals.push(Drupal.t('Mailto links'));
+      }
+      if ($('input#edit-googleanalytics-trackfiles', context).is(':checked')) {
+        vals.push(Drupal.t('Downloads'));
+      }
+      if (!vals.length) {
+        return Drupal.t('Not tracked');
+      }
+      return Drupal.t('@items enabled', {'@items' : vals.join(', ')});
+    });
+
+    $('fieldset#edit-messagetracking', context).drupalSetSummary(function (context) {
+      var vals = [];
+      $('input[type="checkbox"]:checked', context).each(function () {
+        vals.push($.trim($(this).next('label').text()));
+      });
+      if (!vals.length) {
+        return Drupal.t('Not tracked');
+      }
+      return Drupal.t('@items enabled', {'@items' : vals.join(', ')});
+    });
+
+    $('fieldset#edit-search-and-advertising', context).drupalSetSummary(function (context) {
+      var vals = [];
+      if ($('input#edit-googleanalytics-site-search', context).is(':checked')) {
+        vals.push(Drupal.t('Site search'));
+      }
+      if ($('input#edit-googleanalytics-trackadsense', context).is(':checked')) {
+        vals.push(Drupal.t('AdSense ads'));
+      }
+      if ($('input#edit-googleanalytics-trackdoubleclick', context).is(':checked')) {
+        vals.push(Drupal.t('DoubleClick data'));
+      }
+      if (!vals.length) {
+        return Drupal.t('Not tracked');
+      }
+      return Drupal.t('@items enabled', {'@items' : vals.join(', ')});
+    });
+
+    $('fieldset#edit-domain-tracking', context).drupalSetSummary(function (context) {
+      var $radio = $('input[name="googleanalytics_domain_mode"]:checked', context);
+      if ($radio.val() == 0) {
+        return Drupal.t('A single domain');
+      }
+      else if ($radio.val() == 1) {
+        return Drupal.t('One domain with multiple subdomains');
+      }
+      else {
+        return Drupal.t('Multiple top-level domains');
+      }
+    });
+
+    $('fieldset#edit-privacy', context).drupalSetSummary(function (context) {
+      var vals = [];
+      if ($('input#edit-googleanalytics-tracker-anonymizeip', context).is(':checked')) {
+        vals.push(Drupal.t('Anonymize IP'));
+      }
+      if ($('input#edit-googleanalytics-privacy-donottrack', context).is(':checked')) {
+        vals.push(Drupal.t('Universal web tracking opt-out'));
+      }
+      if (!vals.length) {
+        return Drupal.t('No privacy');
+      }
+      return Drupal.t('@items enabled', {'@items' : vals.join(', ')});
+    });
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,13 @@
+name = Google Analytics
+description = Allows your site to be tracked by Google Analytics by adding a Javascript tracking code to every page.
+core = 7.x
+package = Statistics
+configure = admin/config/system/googleanalytics
+files[] = googleanalytics.test
+
+; Information added by drupal.org packaging script on 2012-11-01
+version = "7.x-1.3"
+core = "7.x"
+project = "google_analytics"
+datestamp = "1351810914"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,434 @@
+<?php
+
+/**
+ * @file
+ * Installation file for Google Analytics module.
+ */
+
+/**
+ * Implements hook_install().
+ */
+function googleanalytics_install() {
+  // By German laws it's always best to enable the anonymizing of IP addresses.
+  // NOTE: If this is also an important default setting in other countries, please let us know!
+  $countries = array(
+    'DE',
+  );
+  if (in_array(variable_get('site_default_country', ''), $countries)) {
+    variable_set('googleanalytics_tracker_anonymizeip', 1);
+  }
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function googleanalytics_uninstall() {
+  variable_del('googleanalytics_account');
+  variable_del('googleanalytics_cache');
+  variable_del('googleanalytics_codesnippet_before');
+  variable_del('googleanalytics_codesnippet_after');
+  variable_del('googleanalytics_cross_domains');
+  variable_del('googleanalytics_custom');
+  variable_del('googleanalytics_custom_var');
+  variable_del('googleanalytics_domain_mode');
+  variable_del('googleanalytics_js_scope');
+  variable_del('googleanalytics_last_cache');
+  variable_del('googleanalytics_pages');
+  variable_del('googleanalytics_roles');
+  variable_del('googleanalytics_site_search');
+  variable_del('googleanalytics_trackadsense');
+  variable_del('googleanalytics_trackdoubleclick');
+  variable_del('googleanalytics_tracker_anonymizeip');
+  variable_del('googleanalytics_trackfiles');
+  variable_del('googleanalytics_trackfiles_extensions');
+  variable_del('googleanalytics_trackmailto');
+  variable_del('googleanalytics_trackoutbound');
+  variable_del('googleanalytics_translation_set');
+  variable_del('googleanalytics_visibility_pages');
+  variable_del('googleanalytics_visibility_roles');
+
+  // Remove backup variables if exist. Remove this code in D8.
+  variable_del('googleanalytics_codesnippet_after_backup_6300');
+  variable_del('googleanalytics_codesnippet_before_backup_6300');
+  variable_del('googleanalytics_segmentation');
+}
+
+/**
+ * Implements hook_disable().
+ *
+ * Remove cache directory if module is disabled (or uninstalled).
+ */
+function googleanalytics_disable() {
+  googleanalytics_clear_js_cache();
+}
+
+/**
+ * Implements hook_requirements().
+ */
+function googleanalytics_requirements($phase) {
+  $requirements = array();
+  $t = get_t();
+
+  if ($phase == 'runtime') {
+    // Raise warning if Google user account has not been set yet.
+    if (!preg_match('/^UA-\d{4,}-\d+$/', variable_get('googleanalytics_account', 'UA-'))) {
+      $requirements['googleanalytics'] = array(
+        'title' => $t('Google Analytics module'),
+        'description' => $t('Google Analytics module has not been configured yet. Please configure its settings from the <a href="@url">Google Analytics settings page</a>.', array('@url' => url('admin/config/system/googleanalytics'))),
+        'severity' => REQUIREMENT_WARNING,
+        'value' => $t('Not configured'),
+      );
+    }
+  }
+
+  return $requirements;
+}
+
+/**
+ * Upgrade old extension variable to new and use old name as enabled/disabled flag.
+ */
+function googleanalytics_update_6000() {
+  variable_set('googleanalytics_trackfiles_extensions', variable_get('googleanalytics_trackfiles', '7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip'));
+  $trackfiles = variable_get('googleanalytics_trackfiles', '7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip') ? TRUE : FALSE;
+  variable_set('googleanalytics_trackfiles', $trackfiles);
+
+  return t('Updated download tracking file extensions.');
+}
+
+function googleanalytics_update_6001() {
+  variable_set('googleanalytics_visibility', 0);
+
+  // Remove tracking from all administrative pages, see http://drupal.org/node/34970.
+  $pages = array(
+    'admin*',
+    'user*',
+    'node/add*',
+    'node/*/*',
+  );
+  variable_set('googleanalytics_pages', implode("\n", $pages));
+
+  return t('Added page tracking to every page except the listed pages: @pages.', array('@pages' => implode(', ', $pages)));
+}
+
+/**
+ * Upgrade role settings and per user tracking settings
+ * of "User 1" and remove outdated tracking variables.
+ */
+function googleanalytics_update_6002() {
+  // Upgrade enabled/disabled roles to new logic (correct for upgrades from 5.x-1.4 and 6.x-1.0).
+  $roles = array();
+  $messages = array();
+  foreach (user_roles() as $rid => $name) {
+    if (variable_get('googleanalytics_track_' . $rid, FALSE)) {
+      // Role ID is activated for user tracking.
+      $roles[$rid] = $rid;
+      $messages[] = t('Enabled page tracking for role: @name.', array('@name' => $name));
+    }
+    else {
+      $messages[] = t('Disabled page tracking for role: @name.', array('@name' => $name));
+    }
+  }
+  variable_set('googleanalytics_roles', $roles);
+
+  // Upgrade disabled tracking of "user 1" to new logic.
+  if (!$track_user1 = variable_get('googleanalytics_track__user1', 1)) {
+    variable_set('googleanalytics_custom', 1);
+
+    // Load user 1 object, set appropriate value and save new user settings back.
+    $account = user_load(1);
+    $account = user_save($account, array('data' => array('googleanalytics' => array('custom' => 0))), 'account');
+    $messages[] = t('Disabled user specific page tracking for site administrator.');
+  }
+
+  // Delete outdated tracking settings.
+  db_delete('variable')
+    ->condition('name', db_like('googleanalytics_track_') . '%', 'LIKE')
+    ->execute();
+
+  return implode(', ', $messages);
+}
+
+/**
+ * #262468: Clear menu cache to solve stale menu data in 5.x-1.5 and 6.x-1.1
+ */
+function googleanalytics_update_6003() {
+  menu_rebuild();
+  return t('Menu has been rebuild.');
+}
+
+/**
+ * Change visibility setting for path "user/*".
+ */
+function googleanalytics_update_6004() {
+  // Original pages setting.
+  $pages = array(
+    'admin*',
+    'user*',
+    'node/add*',
+    'node/*/*',
+  );
+
+  $diff = array_diff($pages, preg_split('/(\r\n?|\n)/', variable_get('googleanalytics_pages', implode("\n", $pages))));
+  if (empty($diff)) {
+    // No diff to original settings found. Update with new settings.
+    $pages = array(
+      'admin*',
+      'user/*/*',
+      'node/add*',
+      'node/*/*',
+    );
+    variable_set('googleanalytics_pages', implode("\n", $pages));
+    return t('Path visibility filter setting changed from "user*" to "user/*/*".');
+  }
+  else {
+    return t('Custom path visibility filter setting found. Update skipped!');
+  }
+}
+
+/**
+ * Change visibility setting for path "admin*".
+ */
+function googleanalytics_update_6005() {
+  // Original pages setting.
+  $pages = array(
+    'admin*',
+    'user/*/*',
+    'node/add*',
+    'node/*/*',
+  );
+
+  $diff = array_diff($pages, preg_split('/(\r\n?|\n)/', variable_get('googleanalytics_pages', implode("\n", $pages))));
+  if (empty($diff)) {
+    // No diff to original settings found. Update with new settings.
+    $pages = array(
+      'admin',
+      'admin/*',
+      'user/*/*',
+      'node/add*',
+      'node/*/*',
+    );
+    variable_set('googleanalytics_pages', implode("\n", $pages));
+    return t('Path visibility filter setting changed from "admin*" to "admin" and "admin/*".');
+  }
+  else {
+    return t('Custom path visibility filter setting found. Update skipped!');
+  }
+}
+
+/**
+ * Upgrade custom javascript settings.
+ */
+function googleanalytics_update_6006() {
+  variable_set('googleanalytics_codesnippet_before', variable_get('googleanalytics_codesnippet', ''));
+  variable_del('googleanalytics_codesnippet');
+
+  return t('Upgraded custom javascript codesnippet setting.');
+}
+
+/**
+ * Remove "User identifier" and "User name" from segmentation fields.
+ *
+ * This is a data protection and privacy law change. For more information see Google Analytics
+ * terms of use section 8.1 (http://www.google.com/analytics/en-GB/tos.html).
+ */
+function googleanalytics_update_6007() {
+  $profile_fields = variable_get('googleanalytics_segmentation', array());
+  unset($profile_fields['uid']);
+  unset($profile_fields['name']);
+  variable_set('googleanalytics_segmentation', $profile_fields);
+
+  return t('Removed "User identifier" and "User name" from segmentation fields.');
+}
+
+/**
+ * Remove outdated legacy support variables and files.
+ */
+function googleanalytics_update_6200() {
+  $path = 'public://googleanalytics';
+  if (file_exists($path)) {
+    file_unmanaged_delete($path . '/urchin.js');
+  }
+  variable_del('googleanalytics_legacy_version');
+
+  return t('Removed outdated legacy tracker stuff.');
+}
+
+/**
+ * Update list of default file extensions.
+ */
+function googleanalytics_update_6201() {
+  if (variable_get('googleanalytics_trackfiles_extensions', '') == '7z|aac|avi|csv|doc|exe|flv|gif|gz|jpe?g|js|mp(3|4|e?g)|mov|pdf|phps|png|ppt|rar|sit|tar|torrent|txt|wma|wmv|xls|xml|zip') {
+    variable_set('googleanalytics_trackfiles_extensions', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip');
+  }
+
+  return t('The default extensions for download tracking have been updated.');
+}
+
+/**
+ * Try to update Google Analytics custom code snippet to async version.
+ */
+function googleanalytics_update_6300() {
+  $messages = array();
+
+  // TODO: Backup synchronous code snippets. Remove variables in D8.
+  variable_set('googleanalytics_codesnippet_before_backup_6300', variable_get('googleanalytics_codesnippet_before', ''));
+  variable_set('googleanalytics_codesnippet_after_backup_6300', variable_get('googleanalytics_codesnippet_after', ''));
+
+  // Upgrade of BEFORE code snippet.
+  $code_before = variable_get('googleanalytics_codesnippet_before', '');
+  if (!empty($code_before)) {
+    // No value, e.g. _setLocalRemoteServerMode()
+    $code_before = preg_replace('/(.*)pageTracker\.(\w+)\(\);(.*)/i', '$1_gaq.push(["$2"]);$3', $code_before);
+    // One value, e.g. _setCookiePath()
+    $code_before = preg_replace('/(.*)pageTracker\.(\w+)\(("|\'?)(\w+)("|\'?)\);(.*)/i', '$1_gaq.push(["$2", $3$4$5]);$6', $code_before);
+    // Multiple values e.g. _trackEvent()
+    $code_before = preg_replace('/(.*)pageTracker\.(\w+)\((.*)\);(.*)/i', '$1_gaq.push(["$2", $3]);$4', $code_before);
+
+    variable_set('googleanalytics_codesnippet_before', $code_before);
+
+    drupal_set_message(Database::getConnection()->prefixTables("<strong>Attempted</strong> to upgrade Google Analytics custom 'before' code snippet. Backup of previous code snippet has been saved in database table '{variable}' as 'googleanalytics_codesnippet_before_backup_6300'. Please consult Google's <a href='https://developers.google.com/analytics/devguides/collection/gajs/'>Asynchronous Tracking Usage Guide</a> if the upgrade was successfully."), 'warning');
+    $messages[] = t('Upgraded custom "before" code snippet.');
+  }
+
+  // Upgrade of AFTER code snippet.
+  // We cannot update this code snippet automatically. Show message that the upgrade has been skipped.
+  $code_after = variable_get('googleanalytics_codesnippet_after', '');
+  if (!empty($code_after)) {
+    drupal_set_message(Database::getConnection()->prefixTables("Automatic upgrade of Google Analytics custom 'after' code snippet has been skipped. Backup of previous code snippet has been saved in database table '{variable}' as 'googleanalytics_codesnippet_after_backup_6300'. You need to manually upgrade the custom 'after' code snippet."), 'error');
+    $messages[] = t('Skipped custom "after" code snippet.');
+  }
+
+  return empty($messages) ? t('No custom code snipped found. Nothing to do.') : implode(' ', $messages);
+}
+
+/**
+ * Run D6 -> D7 upgrades.
+ */
+function googleanalytics_update_7000() {
+  // Update JavaScript scope to 'header'.
+  variable_set('googleanalytics_js_scope', 'header');
+  $messages[] = t('Google tracking code has been moved to header.');
+
+  // Upgrade D6 token placeholder to D7. update_6301 is not required.
+  $googleanalytics_custom_vars = variable_get('googleanalytics_custom_var', array());
+  if (!empty($googleanalytics_custom_vars['slots'][1]) && $googleanalytics_custom_vars['slots'][1]['name'] == 'User roles' && $googleanalytics_custom_vars['slots'][1]['value'] = '[user-role-names]') {
+    $googleanalytics_custom_vars['slots'][1]['value'] = '[current-user:role-names]';
+    variable_set('googleanalytics_custom_var', $googleanalytics_custom_vars);
+    $messages[] = t("The D6 token placeholder [user-role-names] used in the custom variable 'User roles' has been replaced with [current-user:role-names].");
+  }
+
+  return implode(' ', $messages);
+}
+
+/**
+ * Automatically enable anonymizing of IP addresses for Germany.
+ */
+function googleanalytics_update_7001() {
+  // By German law it's always best to enable the anonymizing of IP addresses.
+  $countries = array(
+    'DE',
+  );
+  if (in_array(variable_get('site_default_country', ''), $countries)) {
+    variable_set('googleanalytics_tracker_anonymizeip', 1);
+    return t('The default country in your regional settings is Germany. Anonymizing of IP addresses has been enabled for privacy reasons.');
+  }
+  else {
+    return t('The default country in your regional settings is <em>not</em> Germany. The anonymizing of IP addresses setting has not been changed. Make sure your site settings comply with the local privacy rules.');
+  }
+}
+
+/**
+ * Upgrade "User roles" tracking to custom variables.
+ */
+function googleanalytics_update_7002() {
+
+  // Read previous segmentation settings.
+  $segmentation = variable_get('googleanalytics_segmentation', array());
+
+  // If this is an upgrade from D6 the slot 1 may not empty.
+  if (empty($googleanalytics_custom_vars['slots'][1]) && in_array('roles', $segmentation)) {
+    // Upgrade previous segmentation settings to new custom variables settings.
+    $googleanalytics_custom_vars = variable_get('googleanalytics_custom_var', array());
+
+    $googleanalytics_custom_vars['slots'][1]['slot'] = 1;
+    $googleanalytics_custom_vars['slots'][1]['name'] = 'User roles';
+    $googleanalytics_custom_vars['slots'][1]['value'] = '[current-user:role-names]';
+    $googleanalytics_custom_vars['slots'][1]['scope'] = 1; // Sets the scope to visitor-level.
+
+    variable_set('googleanalytics_custom_var', $googleanalytics_custom_vars);
+    return t('The deprecated profile segmentation setting for "User roles" has been added to custom variables. You need to deselect all selected profile fields in <a href="@admin">Google Analytics settings</a> and upgrade other profile fields manually or you may loose tracking data in future! See Google Analytics <a href="@customvar">Custom Variables</a> for more information.', array('@customvar' => 'https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables', '@admin' => url('admin/config/system/googleanalytics')));
+  }
+  else {
+    return t('You need to deselect all selected profile fields in <a href="@admin">Google Analytics settings</a> and upgrade other profile fields manually or you may loose tracking data in future! See Google Analytics <a href="@customvar">Custom Variables</a> for more information.', array('@customvar' => 'https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCustomVariables', '@admin' => url('admin/config/system/googleanalytics')));
+  }
+}
+
+/**
+ * Rename googleanalytics_trackoutgoing variable to googleanalytics_trackoutbound.
+ */
+function googleanalytics_update_7003() {
+  variable_set('googleanalytics_trackoutbound', variable_get('googleanalytics_trackoutgoing', 1));
+  variable_del('googleanalytics_trackoutgoing');
+
+  return t('Renamed "googleanalytics_trackoutgoing" settings variable to googleanalytics_trackoutbound.');
+}
+
+/**
+ * Rename googleanalytics_visibility variable to googleanalytics_visibility_pages for consistency.
+ */
+function googleanalytics_update_7004() {
+  variable_set('googleanalytics_visibility_pages', variable_get('googleanalytics_visibility', 1));
+  variable_del('googleanalytics_visibility');
+
+  return t('Renamed "googleanalytics_visibility" settings variable to googleanalytics_visibility_pages.');
+}
+
+/**
+ * Path visibility filter setting should hide "batch" path.
+ */
+function googleanalytics_update_7005() {
+  // Current pages setting.
+  $pages = array(
+    'admin',
+    'admin/*',
+    'user/*/*',
+    'node/add*',
+    'node/*/*',
+  );
+
+  $diff = array_diff($pages, preg_split('/(\r\n?|\n)/', variable_get('googleanalytics_pages', implode("\n", $pages))));
+  if (empty($diff)) {
+    // No diff to previous settings found. Update with new settings.
+    $pages = array(
+      'admin',
+      'admin/*',
+      'batch',
+      'node/add*',
+      'node/*/*',
+      'user/*/*',
+    );
+    variable_set('googleanalytics_pages', implode("\n", $pages));
+    return t('Added "batch" to path visibility filter setting.');
+  }
+  else {
+    return t('Custom path visibility filter setting found. Update skipped!');
+  }
+}
+
+/**
+ * Delete obsolete trackOutboundAsPageview variable.
+ */
+function googleanalytics_update_7006() {
+  variable_del('googleanalytics_trackoutboundaspageview');
+
+  return t('Deleted obsolete trackOutboundAsPageview variable.');
+}
+
+/**
+* Delete obsolete googleanalytics_trackpageloadtime variable.
+*/
+function googleanalytics_update_7007() {
+  variable_del('googleanalytics_trackpageloadtime');
+
+  return t('Deleted obsolete googleanalytics_trackpageloadtime variable.');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,93 @@
+(function ($) {
+
+$(document).ready(function() {
+
+  // Expression to check for absolute internal links.
+  var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
+
+  // Attach onclick event to document only and catch clicks on all elements.
+  $(document.body).click(function(event) {
+    // Catch the closest surrounding link of a clicked element.
+    $(event.target).closest("a,area").each(function() {
+
+      var ga = Drupal.settings.googleanalytics;
+      // Expression to check for special links like gotwo.module /go/* links.
+      var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
+      // Expression to check for download links.
+      var isDownload = new RegExp("\\.(" + ga.trackDownloadExtensions + ")$", "i");
+
+      // Is the clicked URL internal?
+      if (isInternal.test(this.href)) {
+        // Skip 'click' tracking, if custom tracking events are bound.
+        if ($(this).is('.colorbox')) {
+          // Do nothing here. The custom event will handle all tracking.
+        }
+        // Is download tracking activated and the file extension configured for download tracking?
+        else if (ga.trackDownload && isDownload.test(this.href)) {
+          // Download link clicked.
+          var extension = isDownload.exec(this.href);
+          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
+        }
+        else if (isInternalSpecial.test(this.href)) {
+          // Keep the internal URL for Google Analytics website overlay intact.
+          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
+        }
+      }
+      else {
+        if (ga.trackMailto && $(this).is("a[href^='mailto:'],area[href^='mailto:']")) {
+          // Mailto link clicked.
+          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
+        }
+        else if (ga.trackOutbound && this.href.match(/^\w+:\/\//i)) {
+          if (ga.trackDomainMode == 2 && isCrossDomain($(this).attr('hostname'), ga.trackCrossDomains)) {
+            // Top-level cross domain clicked. document.location is handled by _link internally.
+            event.preventDefault();
+            _gaq.push(["_link", this.href]);
+          }
+          else {
+            // External link clicked.
+            _gaq.push(["_trackEvent", "Outbound links", "Click", this.href]);
+          }
+        }
+      }
+    });
+  });
+
+  // Colorbox: This event triggers when the transition has completed and the
+  // newly loaded content has been revealed.
+  $(document).bind("cbox_complete", function() {
+    var href = $.colorbox.element().attr("href");
+    if (href) {
+      _gaq.push(["_trackPageview", href.replace(isInternal, '')]);
+    }
+  });
+
+});
+
+/**
+ * Check whether the hostname is part of the cross domains or not.
+ *
+ * @param string hostname
+ *   The hostname of the clicked URL.
+ * @param array crossDomains
+ *   All cross domain hostnames as JS array.
+ *
+ * @return boolean
+ */
+function isCrossDomain(hostname, crossDomains) {
+  /**
+   * jQuery < 1.6.3 bug: $.inArray crushes IE6 and Chrome if second argument is
+   * `null` or `undefined`, http://bugs.jquery.com/ticket/10076,
+   * https://github.com/jquery/jquery/commit/a839af034db2bd934e4d4fa6758a3fed8de74174
+   *
+   * @todo: Remove/Refactor in D8
+   */
+  if (!crossDomains) {
+    return false;
+  }
+  else {
+    return $.inArray(hostname, crossDomains) > -1 ? true : false;
+  }
+}
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,616 @@
+<?php
+
+/*
+ * @file
+ * Drupal Module: GoogleAnalytics
+ * Adds the required Javascript to the bottom of all your Drupal pages
+ * to allow tracking by the Google Analytics statistics package.
+ *
+ * @author: Alexander Hass <http://drupal.org/user/85918>
+ */
+
+define('GOOGLEANALYTICS_TRACKFILES_EXTENSIONS', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls|xml|z|zip');
+
+// Remove tracking from all administrative pages, see http://drupal.org/node/34970.
+define('GOOGLEANALYTICS_PAGES', "admin\nadmin/*\nbatch\nnode/add*\nnode/*/*\nuser/*/*");
+
+/**
+ * Implements hook_help().
+ */
+function googleanalytics_help($path, $arg) {
+  switch ($path) {
+    case 'admin/config/system/googleanalytics':
+      return t('<a href="@ga_url">Google Analytics</a> is a free (registration required) website traffic and marketing effectiveness service.', array('@ga_url' => 'http://www.google.com/analytics/'));
+  }
+}
+
+/**
+ * Implements hook_theme().
+ */
+function googleanalytics_theme() {
+  return array(
+    'googleanalytics_admin_custom_var_table' => array(
+      'render element' => 'form',
+    ),
+  );
+}
+
+/**
+ * Implements hook_permission().
+ */
+function googleanalytics_permission() {
+  return array(
+    'administer google analytics' => array(
+      'title' => t('Administer Google Analytics'),
+      'description' => t('Perform maintenance tasks for Google Analytics.'),
+    ),
+    'opt-in or out of tracking' => array(
+      'title' => t('Opt-in or out of tracking'),
+      'description' => t('Allow users to decide if tracking code will be added to pages or not.'),
+    ),
+    'use PHP for tracking visibility' => array(
+      'title' => t('Use PHP for tracking visibility'),
+      'description' => t('Enter PHP code in the field for tracking visibility settings.'),
+      'restrict access' => TRUE,
+    ),
+  );
+}
+
+/**
+ * Implements hook_menu().
+ */
+function googleanalytics_menu() {
+  $items['admin/config/system/googleanalytics'] = array(
+    'title' => 'Google Analytics',
+    'description' => 'Configure tracking behavior to get insights into your website traffic and marketing effectiveness.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('googleanalytics_admin_settings_form'),
+    'access arguments' => array('administer google analytics'),
+    'type' => MENU_NORMAL_ITEM,
+    'file' => 'googleanalytics.admin.inc',
+  );
+
+  return $items;
+}
+
+/**
+ * Implements hook_page_alter() to insert JavaScript to the appropriate scope/region of the page.
+ */
+function googleanalytics_page_alter(&$page) {
+  global $user;
+
+  $id = variable_get('googleanalytics_account', '');
+
+  // Get page status code for visibility filtering.
+  $status = drupal_get_http_header('Status');
+  $trackable_status_codes = array(
+    '403 Forbidden',
+    '404 Not Found',
+  );
+
+  // 1. Check if the GA account number has a value.
+  // 2. Track page views based on visibility value.
+  // 3. Check if we should track the currently active user's role.
+  // 4. Ignore pages visibility filter for 404 or 403 status codes.
+  if (!empty($id) && (_googleanalytics_visibility_pages() || in_array($status, $trackable_status_codes)) && _googleanalytics_visibility_user($user)) {
+
+    // We allow different scopes. Default to 'header' but allow user to override if they really need to.
+    $scope = variable_get('googleanalytics_js_scope', 'header');
+
+    if (variable_get('googleanalytics_trackadsense', FALSE)) {
+      // Custom tracking. Prepend before all other JavaScript.
+      drupal_add_js('window.google_analytics_uacct = ' . drupal_json_encode($id) . ';', array('type' => 'inline', 'group' => JS_LIBRARY-1));
+    }
+
+    // Add link tracking.
+    $link_settings = array();
+    if ($track_outbound = variable_get('googleanalytics_trackoutbound', 1)) {
+      $link_settings['trackOutbound'] = $track_outbound;
+    }
+    if ($track_mailto = variable_get('googleanalytics_trackmailto', 1)) {
+      $link_settings['trackMailto'] = $track_mailto;
+    }
+    if (($track_download = variable_get('googleanalytics_trackfiles', 1)) && ($trackfiles_extensions = variable_get('googleanalytics_trackfiles_extensions', GOOGLEANALYTICS_TRACKFILES_EXTENSIONS))) {
+      $link_settings['trackDownload'] = $track_download;
+      $link_settings['trackDownloadExtensions'] = $trackfiles_extensions;
+    }
+    if ($track_domain_mode = variable_get('googleanalytics_domain_mode', 0)) {
+      $link_settings['trackDomainMode'] = $track_domain_mode;
+    }
+    if ($track_cross_domains = variable_get('googleanalytics_cross_domains', '')) {
+      $link_settings['trackCrossDomains'] = preg_split('/(\r\n?|\n)/', $track_cross_domains);
+    }
+
+    if (!empty($link_settings)) {
+      drupal_add_js(array('googleanalytics' => $link_settings), 'setting');
+      drupal_add_js(drupal_get_path('module', 'googleanalytics') . '/googleanalytics.js');
+    }
+
+    // Add messages tracking.
+    $message_events = '';
+    if ($message_types = variable_get('googleanalytics_trackmessages', array())) {
+      $message_types = array_values(array_filter($message_types));
+      $status_heading = array(
+        'status' => t('Status message'),
+        'warning' => t('Warning message'),
+        'error' => t('Error message'),
+      );
+
+      foreach (drupal_get_messages(NULL, FALSE) as $type => $messages) {
+        // Track only the selected message types.
+        if (in_array($type, $message_types)) {
+          foreach ($messages as $message) {
+            $message_events .= '_gaq.push(["_trackEvent", ' . drupal_json_encode(t('Messages')) . ', ' . drupal_json_encode($status_heading[$type]) . ', ' . drupal_json_encode(strip_tags($message)) . ']);';
+          }
+        }
+      }
+    }
+
+    // Site search tracking support.
+    $url_custom = '';
+    if (module_exists('search') && variable_get('googleanalytics_site_search', FALSE) && arg(0) == 'search' && $keys = googleanalytics_search_get_keys()) {
+      $url_custom = '(window.googleanalytics_search_results) ? ' . drupal_json_encode(url('search/' . arg(1), array('query' => array('search' => $keys)))) . ' : ' . drupal_json_encode(url('search/' . arg(1), array('query' => array('search' => 'no-results:' . $keys, 'cat' => 'no-results'))));
+    }
+
+    // If this node is a translation of another node, pass the original
+    // node instead.
+    if (module_exists('translation') && variable_get('googleanalytics_translation_set', 0)) {
+      // Check we have a node object, it supports translation, and its
+      // translated node ID (tnid) doesn't match its own node ID.
+      $node = menu_get_object();
+      if ($node && translation_supported_type($node->type) && !empty($node->tnid) && ($node->tnid != $node->nid)) {
+        $source_node = node_load($node->tnid);
+        $languages = language_list();
+        $url_custom = drupal_json_encode(url('node/' . $source_node->nid, array('language' => $languages[$source_node->language])));
+      }
+    }
+
+    // Track access denied (403) and file not found (404) pages.
+    if ($status == '403 Forbidden') {
+      // See http://www.google.com/support/analytics/bin/answer.py?answer=86927
+      $url_custom = '"/403.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer';
+    }
+    elseif ($status == '404 Not Found') {
+      $url_custom = '"/404.html?page=" + document.location.pathname + document.location.search + "&from=" + document.referrer';
+    }
+
+    // Add any custom code snippets if specified.
+    $codesnippet_before = variable_get('googleanalytics_codesnippet_before', '');
+    $codesnippet_after = variable_get('googleanalytics_codesnippet_after', '');
+
+    // Add custom variables.
+    $googleanalytics_custom_vars = variable_get('googleanalytics_custom_var', array());
+    $custom_var = '';
+    for ($i = 1; $i < 6; $i++) {
+      $custom_var_name = !empty($googleanalytics_custom_vars['slots'][$i]['name']) ? $googleanalytics_custom_vars['slots'][$i]['name'] : '';
+      if (!empty($custom_var_name)) {
+        $custom_var_value = !empty($googleanalytics_custom_vars['slots'][$i]['value']) ? $googleanalytics_custom_vars['slots'][$i]['value'] : '';
+        $custom_var_scope = !empty($googleanalytics_custom_vars['slots'][$i]['scope']) ? $googleanalytics_custom_vars['slots'][$i]['scope'] : 3;
+
+        $types = array();
+        $node = menu_get_object();
+        if (is_object($node)) {
+          $types += array('node' => $node);
+        }
+        $custom_var_name = token_replace($custom_var_name, $types, array('clear' => TRUE));
+        $custom_var_value = token_replace($custom_var_value, $types, array('clear' => TRUE));
+
+        // Suppress empty custom names and/or variables.
+        if (!drupal_strlen(trim($custom_var_name)) || !drupal_strlen(trim($custom_var_value))) {
+          continue;
+        }
+
+        // The length of the string used for the 'name' and the length of the
+        // string used for the 'value' must not exceed 128 bytes after url encoding.
+        $name_length = drupal_strlen(rawurlencode($custom_var_name));
+        $tmp_value = rawurlencode($custom_var_value);
+        $value_length = drupal_strlen($tmp_value);
+        if ($name_length + $value_length > 128) {
+          // Trim value and remove fragments of url encoding.
+          $tmp_value = rtrim(substr($tmp_value, 0, 127 - $name_length), '%0..9A..F');
+          $custom_var_value = urldecode($tmp_value);
+        }
+
+        $custom_var_name = drupal_json_encode($custom_var_name);
+        $custom_var_value = drupal_json_encode($custom_var_value);
+        $custom_var .= "_gaq.push(['_setCustomVar', $i, $custom_var_name, $custom_var_value, $custom_var_scope]);";
+      }
+    }
+
+    // Build tracker code.
+    $script = 'var _gaq = _gaq || [];';
+    $script .= '_gaq.push(["_setAccount", ' . drupal_json_encode($id) . ']);';
+    if (variable_get('googleanalytics_tracker_anonymizeip', 0)) {
+      // FIXME: The Google API is currently broken and "_gat._anonymizeIp" is only
+      // a workaround until "_anonymizeIp" has been implemented/fixed.
+      $script .= '_gaq.push(["_gat._anonymizeIp"]);';
+    }
+
+    // Domain tracking type.
+    global $cookie_domain;
+    $domain_mode = variable_get('googleanalytics_domain_mode', 0);
+
+    // Per RFC 2109, cookie domains must contain at least one dot other than the
+    // first. For hosts such as 'localhost' or IP Addresses we don't set a cookie domain.
+    if ($domain_mode == 1 && count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) {
+      $script .= '_gaq.push(["_setDomainName", ' . drupal_json_encode($cookie_domain) . ']);';
+    }
+    elseif ($domain_mode == 2) {
+      $script .= '_gaq.push(["_setDomainName", "none"]);';
+      $script .= '_gaq.push(["_setAllowLinker", true]);';
+    }
+
+    if (!empty($custom_var)) {
+      $script .= $custom_var;
+    }
+    if (!empty($codesnippet_before)) {
+      $script .= $codesnippet_before;
+    }
+    if (empty($url_custom)) {
+      $script .= '_gaq.push(["_trackPageview"]);';
+    }
+    else {
+      $script .= '_gaq.push(["_trackPageview", ' . $url_custom . ']);';
+    }
+    if (!empty($message_events)) {
+      $script .= $message_events;
+    }
+    if (!empty($codesnippet_after)) {
+      $script .= $codesnippet_after;
+    }
+
+    $script .= '(function() {';
+    $script .= 'var ga = document.createElement("script");';
+    $script .= 'ga.type = "text/javascript";';
+    $script .= 'ga.async = true;';
+
+    // Which version of the tracking library should be used?
+    if ($trackdoubleclick = variable_get('googleanalytics_trackdoubleclick', FALSE)) {
+      $library_tracker_url = 'stats.g.doubleclick.net/dc.js';
+      $library_cache_url = 'http://' . $library_tracker_url;
+    }
+    else {
+      $library_tracker_url = '.google-analytics.com/ga.js';
+      $library_cache_url = 'http://www' . $library_tracker_url;
+    }
+
+    // Should a local cached copy of ga.js be used?
+    if (variable_get('googleanalytics_cache', 0) && $url = _googleanalytics_cache($library_cache_url)) {
+      // A dummy query-string is added to filenames, to gain control over
+      // browser-caching. The string changes on every update or full cache
+      // flush, forcing browsers to load a new copy of the files, as the
+      // URL changed.
+      $query_string = '?' . variable_get('css_js_query_string', '0');
+
+      $script .= 'ga.src = "' . $url . $query_string . '";';
+    }
+    else {
+      // Library paths do not follow the same naming convention.
+      if ($trackdoubleclick) {
+        $script .= 'ga.src = ("https:" == document.location.protocol ? "https://" : "http://") + "' . $library_tracker_url . '";';
+      }
+      else {
+        $script .= 'ga.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + "' . $library_tracker_url . '";';
+      }
+    }
+    $script .= 'var s = document.getElementsByTagName("script")[0];';
+    $script .= 's.parentNode.insertBefore(ga, s);';
+    $script .= '})();';
+
+    drupal_add_js($script, array('scope' => $scope, 'type' => 'inline'));
+  }
+}
+
+/**
+ * Implements hook_field_extra_fields().
+ */
+function googleanalytics_field_extra_fields() {
+  $extra['user']['user']['form']['googleanalytics'] = array(
+    'label' => t('Google Analytics configuration'),
+    'description' => t('Google Analytics module form element.'),
+    'weight' => 3,
+  );
+
+  return $extra;
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ *
+ * Allow users to decide if tracking code will be added to pages or not.
+ */
+function googleanalytics_form_user_profile_form_alter(&$form, &$form_state) {
+  $account = $form['#user'];
+  $category = $form['#user_category'];
+
+  if ($category == 'account' && user_access('opt-in or out of tracking') && ($custom = variable_get('googleanalytics_custom', 0)) != 0 && _googleanalytics_visibility_roles($account)) {
+    $form['googleanalytics'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('Google Analytics configuration'),
+      '#weight' => 3,
+      '#collapsible' => TRUE,
+      '#tree' => TRUE
+    );
+
+    switch ($custom) {
+      case 1:
+        $description = t('Users are tracked by default, but you are able to opt out.');
+        break;
+
+      case 2:
+        $description = t('Users are <em>not</em> tracked by default, but you are able to opt in.');
+        break;
+    }
+
+    // Disable tracking for visitors who have opted out from tracking via DNT (Do-Not-Track) header.
+    $disabled = FALSE;
+    if (variable_get('googleanalytics_privacy_donottrack', 1) && !empty($_SERVER['HTTP_DNT'])) {
+      $disabled = TRUE;
+
+      // Override settings value.
+      $account->data['googleanalytics']['custom'] = FALSE;
+
+      $description .= '<span class="admin-disabled">';
+      $description .= ' ' . t('You have opted out from tracking via browser privacy settings.');
+      $description .= '</span>';
+    }
+
+    $form['googleanalytics']['custom'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Enable user tracking'),
+      '#description' => $description,
+      '#default_value' => isset($account->data['googleanalytics']['custom']) ? $account->data['googleanalytics']['custom'] : ($custom == 1),
+      '#disabled' => $disabled,
+    );
+
+    return $form;
+  }
+}
+
+/**
+ * Implements hook_user_presave().
+ */
+function googleanalytics_user_presave(&$edit, $account, $category) {
+  if (isset($edit['googleanalytics']['custom'])) {
+    $edit['data']['googleanalytics']['custom'] = $edit['googleanalytics']['custom'];
+  }
+}
+
+/**
+ * Implements hook_cron().
+ */
+function googleanalytics_cron() {
+  // Regenerate the tracking code file every day.
+  if (REQUEST_TIME - variable_get('googleanalytics_last_cache', 0) >= 86400 && variable_get('googleanalytics_cache', 0)) {
+    // Which version of the tracking library should be used?
+    if (variable_get('googleanalytics_trackdoubleclick', FALSE)) {
+      _googleanalytics_cache('http://stats.g.doubleclick.net/dc.js', TRUE);
+    }
+    else {
+      _googleanalytics_cache('http://www.google-analytics.com/ga.js', TRUE);
+    }
+    variable_set('googleanalytics_last_cache', REQUEST_TIME);
+  }
+}
+
+/**
+ * Implements hook_preprocess_search_results().
+ *
+ * Collects and adds the number of search results to the head.
+ */
+function googleanalytics_preprocess_search_results(&$variables) {
+  // There is no search result $variable available that hold the number of items
+  // found. But the pager item mumber can tell the number of search results.
+  global $pager_total_items;
+
+  drupal_add_js('window.googleanalytics_search_results = ' . intval($pager_total_items[0]) . ';', array('type' => 'inline', 'group' => JS_LIBRARY-1));
+}
+
+/**
+ * Helper function for grabbing search keys. Function is missing in D7.
+ *
+ * http://api.drupal.org/api/function/search_get_keys/6
+ */
+function googleanalytics_search_get_keys() {
+  static $return;
+  if (!isset($return)) {
+    // Extract keys as remainder of path
+    // Note: support old GET format of searches for existing links.
+    $path = explode('/', $_GET['q'], 3);
+    $keys = empty($_REQUEST['keys']) ? '' : $_REQUEST['keys'];
+    $return = count($path) == 3 ? $path[2] : $keys;
+  }
+  return $return;
+}
+
+/**
+ * Download/Synchronize/Cache tracking code file locally.
+ *
+ * @param $location
+ *   The full URL to the external javascript file.
+ * @param $sync_cached_file
+ *   Synchronize tracking code and update if remote file have changed.
+ * @return mixed
+ *   The path to the local javascript file on success, boolean FALSE on failure.
+ */
+function _googleanalytics_cache($location, $sync_cached_file = FALSE) {
+  $path = 'public://googleanalytics';
+  $file_destination = $path . '/' . basename($location);
+
+  if (!file_exists($file_destination) || $sync_cached_file) {
+    // Download the latest tracking code.
+    $result = drupal_http_request($location);
+
+    if ($result->code == 200) {
+      if (file_exists($file_destination)) {
+        // Synchronize tracking code and and replace local file if outdated.
+        $data_hash_local = drupal_hash_base64(file_get_contents($file_destination));
+        $data_hash_remote = drupal_hash_base64($result->data);
+        // Check that the files directory is writable.
+        if ($data_hash_local != $data_hash_remote && file_prepare_directory($path)) {
+          // Save updated tracking code file to disk.
+          file_unmanaged_save_data($result->data, $file_destination, FILE_EXISTS_REPLACE);
+          watchdog('googleanalytics', 'Locally cached tracking code file has been updated.', array(), WATCHDOG_INFO);
+
+          // Change query-strings on css/js files to enforce reload for all users.
+          _drupal_flush_css_js();
+        }
+      }
+      else {
+        // Check that the files directory is writable.
+        if (file_prepare_directory($path, FILE_CREATE_DIRECTORY)) {
+          // There is no need to flush JS here as core refreshes JS caches
+          // automatically, if new files are added.
+          file_unmanaged_save_data($result->data, $file_destination, FILE_EXISTS_REPLACE);
+          watchdog('googleanalytics', 'Locally cached tracking code file has been saved.', array(), WATCHDOG_INFO);
+
+          // Return the local JS file path.
+          return file_create_url($file_destination);
+        }
+      }
+    }
+  }
+  else {
+    // Return the local JS file path.
+    return file_create_url($file_destination);
+  }
+}
+
+/**
+ * Delete cached files and directory.
+ */
+function googleanalytics_clear_js_cache() {
+  $path = 'public://googleanalytics';
+  if (file_prepare_directory($path)) {
+    file_scan_directory($path, '/.*/', array('callback' => 'file_unmanaged_delete'));
+    drupal_rmdir($path);
+
+    // Change query-strings on css/js files to enforce reload for all users.
+    _drupal_flush_css_js();
+
+    watchdog('googleanalytics', 'Local cache has been purged.', array(), WATCHDOG_INFO);
+  }
+}
+
+/**
+ * Tracking visibility check for an user object.
+ *
+ * @param $account
+ *   A user object containing an array of roles to check.
+ * @return boolean
+ *   A decision on if the current user is being tracked by Google Analytics.
+ */
+function _googleanalytics_visibility_user($account) {
+
+  $enabled = FALSE;
+
+  // Is current user a member of a role that should be tracked?
+  if (_googleanalytics_visibility_header($account) && _googleanalytics_visibility_roles($account)) {
+
+    // Use the user's block visibility setting, if necessary.
+    if (($custom = variable_get('googleanalytics_custom', 0)) != 0) {
+      if ($account->uid && isset($account->data['googleanalytics']['custom'])) {
+        $enabled = $account->data['googleanalytics']['custom'];
+      }
+      else {
+        $enabled = ($custom == 1);
+      }
+    }
+    else {
+      $enabled = TRUE;
+    }
+
+  }
+
+  return $enabled;
+}
+
+/**
+ * Based on visibility setting this function returns TRUE if GA code should
+ * be added for the current role and otherwise FALSE.
+ */
+function _googleanalytics_visibility_roles($account) {
+
+  $visibility = variable_get('googleanalytics_visibility_roles', 0);
+  $enabled = $visibility;
+  $roles = variable_get('googleanalytics_roles', array());
+
+  if (array_sum($roles) > 0) {
+    // One or more roles are selected.
+    foreach (array_keys($account->roles) as $rid) {
+      // Is the current user a member of one of these roles?
+      if (isset($roles[$rid]) && $rid == $roles[$rid]) {
+        // Current user is a member of a role that should be tracked/excluded from tracking.
+        $enabled = !$visibility;
+        break;
+      }
+    }
+  }
+  else {
+    // No role is selected for tracking, therefore all roles should be tracked.
+    $enabled = TRUE;
+  }
+
+  return $enabled;
+}
+
+/**
+ * Based on visibility setting this function returns TRUE if GA code should
+ * be added to the current page and otherwise FALSE.
+ */
+function _googleanalytics_visibility_pages() {
+  static $page_match;
+
+  // Cache visibility result if function is called more than once.
+  if (!isset($page_match)) {
+
+    $visibility = variable_get('googleanalytics_visibility_pages', 0);
+    $setting_pages = variable_get('googleanalytics_pages', GOOGLEANALYTICS_PAGES);
+
+    // Match path if necessary.
+    if (!empty($setting_pages)) {
+      // Convert path to lowercase. This allows comparison of the same path
+      // with different case. Ex: /Page, /page, /PAGE.
+      $pages = drupal_strtolower($setting_pages);
+      if ($visibility < 2) {
+        // Convert the Drupal path to lowercase
+        $path = drupal_strtolower(drupal_get_path_alias($_GET['q']));
+        // Compare the lowercase internal and lowercase path alias (if any).
+        $page_match = drupal_match_path($path, $pages);
+        if ($path != $_GET['q']) {
+          $page_match = $page_match || drupal_match_path($_GET['q'], $pages);
+        }
+        // When $visibility has a value of 0, the tracking code is displayed on
+        // all pages except those listed in $pages. When set to 1, it
+        // is displayed only on those pages listed in $pages.
+        $page_match = !($visibility xor $page_match);
+      }
+      elseif (module_exists('php')) {
+        $page_match = php_eval($setting_pages);
+      }
+      else {
+        $page_match = FALSE;
+      }
+    }
+    else {
+      $page_match = TRUE;
+    }
+
+  }
+  return $page_match;
+}
+
+/**
+ * Based on headers send by clients this function returns TRUE if GA code should
+ * be added to the current page and otherwise FALSE.
+ */
+function _googleanalytics_visibility_header($account) {
+
+  if (($account->uid || variable_get('cache', 0) == 0) && variable_get('googleanalytics_privacy_donottrack', 1) && !empty($_SERVER['HTTP_DNT'])) {
+    // Disable tracking if caching is disabled or a visitors is logged in and
+    // have opted out from tracking via DNT (Do-Not-Track) header.
+    return FALSE;
+  }
+
+  return TRUE;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,442 @@
+<?php
+
+/**
+ * @file
+ * Test file for Google Analytics module.
+ */
+class GoogleAnalyticsBasicTest extends DrupalWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('Google Analytics basic tests'),
+      'description' => t('Test basic functionality of Google Analytics module.'),
+      'group' => 'Google Analytics',
+    );
+  }
+
+  function setUp() {
+    parent::setUp('googleanalytics');
+
+    $permissions = array(
+      'access administration pages',
+      'administer google analytics',
+    );
+
+    // User to set up google_analytics.
+    $this->admin_user = $this->drupalCreateUser($permissions);
+    $this->drupalLogin($this->admin_user);
+  }
+
+  function testGoogleAnalyticsConfiguration() {
+    // Check for setting page's presence.
+    $this->drupalGet('admin/config/system/googleanalytics');
+    $this->assertRaw(t('Web Property ID'), '[testGoogleAnalyticsConfiguration]: Settings page displayed.');
+
+    // Check for account code validation.
+    $edit['googleanalytics_account'] = $this->randomName(2);
+    $this->drupalPost('admin/config/system/googleanalytics', $edit, 'Save configuration');
+    $this->assertRaw(t('A valid Google Analytics Web Property ID is case sensitive and formatted like UA-xxxxxxx-yy.'), '[testGoogleAnalyticsConfiguration]: Invalid Web Property ID number validated.');
+  }
+
+  function testGoogleAnalyticsPageVisibility() {
+    $ua_code = 'UA-123456-1';
+    variable_set('googleanalytics_account', $ua_code);
+
+    // Show tracking on "every page except the listed pages".
+    variable_set('googleanalytics_visibility_pages', 0);
+    // Disable tracking one "admin*" pages only.
+    variable_set('googleanalytics_pages', "admin\nadmin/*");
+    // Enable tracking only for authenticated users only.
+    variable_set('googleanalytics_roles', array(DRUPAL_AUTHENTICATED_RID => DRUPAL_AUTHENTICATED_RID));
+
+    // Check tracking code visibility.
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsPageVisibility]: Tracking code is displayed for authenticated users.');
+
+    // Test whether tracking code is not included on pages to omit.
+    $this->drupalGet('admin');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsPageVisibility]: Tracking code is not displayed on admin page.');
+    $this->drupalGet('admin/config/system/googleanalytics');
+    // Checking for tracking code URI here, as $ua_code is displayed in the form.
+    $this->assertNoRaw('google-analytics.com/ga.js', '[testGoogleAnalyticsPageVisibility]: Tracking code is not displayed on admin subpage.');
+
+    // Test whether tracking code display is properly flipped.
+    variable_set('googleanalytics_visibility_pages', 1);
+    $this->drupalGet('admin');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsPageVisibility]: Tracking code is displayed on admin page.');
+    $this->drupalGet('admin/config/system/googleanalytics');
+    // Checking for tracking code URI here, as $ua_code is displayed in the form.
+    $this->assertRaw('google-analytics.com/ga.js', '[testGoogleAnalyticsPageVisibility]: Tracking code is displayed on admin subpage.');
+    $this->drupalGet('');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsPageVisibility]: Tracking code is NOT displayed on front page.');
+
+    // Test whether tracking code is not display for anonymous.
+    $this->drupalLogout();
+    $this->drupalGet('');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsPageVisibility]: Tracking code is NOT displayed for anonymous.');
+
+    // Switch back to every page except the listed pages.
+    variable_set('googleanalytics_visibility_pages', 0);
+    // Enable tracking code for all user roles.
+    variable_set('googleanalytics_roles', array());
+
+    // Test whether 403 forbidden tracking code is shown if user has no access.
+    $this->drupalGet('admin');
+    $this->assertRaw('/403.html', '[testGoogleAnalyticsPageVisibility]: 403 Forbidden tracking code shown if user has no access.');
+
+    // Test whether 404 not found tracking code is shown on non-existent pages.
+    $this->drupalGet($this->randomName(64));
+    $this->assertRaw('/404.html', '[testGoogleAnalyticsPageVisibility]: 404 Not Found tracking code shown on non-existent page.');
+
+    // DNT Tests:
+    // Enable caching of pages for anonymous users.
+    variable_set('cache', 1);
+    // Test whether DNT headers will fail to disable embedding of tracking code.
+    $this->drupalGet('', array(), array('DNT: 1'));
+    $this->assertRaw('_gaq.push(["_trackPageview"]);', '[testGoogleAnalyticsDNTVisibility]: DNT header send from client, but page caching is enabled and tracker cannot removed.');
+    // DNT works only with caching of pages for anonymous users disabled.
+    variable_set('cache', 0);
+    $this->drupalGet('');
+    $this->assertRaw('_gaq.push(["_trackPageview"]);', '[testGoogleAnalyticsDNTVisibility]: Tracking is enabled without DNT header.');
+    // Test whether DNT header is able to remove the tracking code.
+    $this->drupalGet('', array(), array('DNT: 1'));
+    $this->assertNoRaw('_gaq.push(["_trackPageview"]);', '[testGoogleAnalyticsDNTVisibility]: DNT header received from client. Tracking has been disabled by browser.');
+    // Disable DNT feature and see if tracker is still embedded.
+    variable_set('googleanalytics_privacy_donottrack', 0);
+    $this->drupalGet('', array(), array('DNT: 1'));
+    $this->assertRaw('_gaq.push(["_trackPageview"]);', '[testGoogleAnalyticsDNTVisibility]: DNT feature is disabled, DNT header from browser has been ignored.');
+  }
+
+  function testGoogleAnalyticsTrackingCode() {
+    $ua_code = 'UA-123456-2';
+    variable_set('googleanalytics_account', $ua_code);
+
+    // Show tracking code on every page except the listed pages.
+    variable_set('googleanalytics_visibility_pages', 0);
+    // Enable tracking code for all user roles.
+    variable_set('googleanalytics_roles', array());
+
+    /* Sample JS code as added to page:
+    <script type="text/javascript" src="/sites/all/modules/google_analytics/googleanalytics.js?w"></script>
+    <script type="text/javascript">
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-123456-7']);
+      _gaq.push(['_trackPageview']);
+
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+      })();
+    </script>
+    */
+
+    // Test whether tracking code uses latest JS.
+    variable_set('googleanalytics_cache', 0);
+    $this->drupalGet('');
+    $this->assertRaw('google-analytics.com/ga.js', '[testGoogleAnalyticsTrackingCode]: Latest tracking code used.');
+
+    // Test whether the alternate doubleclick library is used
+    variable_set('googleanalytics_trackdoubleclick', 1);
+    $this->drupalGet('');
+    $this->assertRaw('stats.g.doubleclick.net/dc.js', '[testGoogleAnalyticsTrackingCode]: Doubleclick tracking code used.');
+
+    // Test whether anonymize visitors IP address feature has been enabled.
+    $this->drupalGet('');
+    $this->assertNoRaw('_gaq.push(["_gat._anonymizeIp"]);', '[testGoogleAnalyticsTrackingCode]: Anonymize visitors IP address not found on frontpage.');
+    // Enable anonymizing of IP addresses.
+    variable_set('googleanalytics_tracker_anonymizeip', 1);
+    $this->drupalGet('');
+    $this->assertRaw('_gaq.push(["_gat._anonymizeIp"]);', '[testGoogleAnalyticsTrackingCode]: Anonymize visitors IP address found on frontpage.');
+
+    // Test whether single domain tracking is active.
+    $this->drupalGet('');
+    $this->assertNoRaw('_gaq.push(["_setDomainName"', '[testGoogleAnalyticsTrackingCode]: Single domain tracking is active.');
+
+    // Enable "One domain with multiple subdomains".
+    variable_set('googleanalytics_domain_mode', 1);
+    $this->drupalGet('');
+
+    // Test may run on localhost, an ipaddress or real domain name.
+    // TODO: Workaround to run tests successfully. This feature cannot tested reliable.
+    global $cookie_domain;
+    if (count(explode('.', $cookie_domain)) > 2 && !is_numeric(str_replace('.', '', $cookie_domain))) {
+      $this->assertRaw('_gaq.push(["_setDomainName",', '[testGoogleAnalyticsTrackingCode]: One domain with multiple subdomains is active on real host.');
+    }
+    else {
+      // Special cases, Localhost and IP addresses don't show '_setDomainName'.
+      $this->assertNoRaw('_gaq.push(["_setDomainName",', '[testGoogleAnalyticsTrackingCode]: One domain with multiple subdomains may be active on localhost (test result is not reliable).');
+    }
+
+    // Enable "Multiple top-level domains" tracking.
+    variable_set('googleanalytics_domain_mode', 2);
+    variable_set('googleanalytics_cross_domains', "www.example.com\nwww.example.net");
+    $this->drupalGet('');
+    $this->assertRaw('_gaq.push(["_setDomainName", "none"]);', '[testGoogleAnalyticsTrackingCode]: _setDomainName: "none" found. Cross domain tracking is active.');
+    $this->assertRaw('_gaq.push(["_setAllowLinker", true]);', '[testGoogleAnalyticsTrackingCode]: _setAllowLinker: true found. Cross domain tracking is active.');
+    $this->assertRaw('"trackCrossDomains":["www.example.com","www.example.net"]', '[testGoogleAnalyticsTrackingCode]: Cross domain tracking with www.example.com and www.example.net is active.');
+
+    // Test whether the BEFORE and AFTER code is added to the tracker.
+    variable_set('googleanalytics_codesnippet_before', '_setDetectFlash(false);');
+    variable_set('googleanalytics_codesnippet_after', '_gaq.push(["t2._setAccount", "UA-123456-3"]);_gaq.push(["t2._trackPageview"]);');
+    $this->drupalGet('');
+    $this->assertRaw('_setDetectFlash(false);', '[testGoogleAnalyticsTrackingCode]: Before codesnippet has been found with "Flash" detection disabled.');
+    $this->assertRaw('t2._setAccount', '[testGoogleAnalyticsTrackingCode]: After codesnippet with "t2" tracker has been found.');
+  }
+}
+
+class GoogleAnalyticsCustomVariablesTest extends DrupalWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('Google Analytics Custom Variables tests'),
+      'description' => t('Test custom variables functionality of Google Analytics module.'),
+      'group' => 'Google Analytics',
+      'dependencies' => array('token'),
+    );
+  }
+
+  function setUp() {
+    parent::setUp('googleanalytics', 'token');
+
+    $permissions = array(
+      'access administration pages',
+      'administer google analytics',
+    );
+
+    // User to set up google_analytics.
+    $this->admin_user = $this->drupalCreateUser($permissions);
+  }
+
+  function testGoogleAnalyticsCustomVariables() {
+    $ua_code = 'UA-123456-3';
+    variable_set('googleanalytics_account', $ua_code);
+
+    // Basic test if the feature works.
+    $custom_vars = array(
+      'slots' => array(
+        1 => array(
+          'slot' => 1,
+          'name' => 'Foo 1',
+          'value' => 'Bar 1',
+          'scope' => 3,
+        ),
+        2 => array(
+          'slot' => 2,
+          'name' => 'Foo 2',
+          'value' => 'Bar 2',
+          'scope' => 2,
+        ),
+        3 => array(
+          'slot' => 3,
+          'name' => 'Foo 3',
+          'value' => 'Bar 3',
+          'scope' => 3,
+        ),
+        4 => array(
+          'slot' => 4,
+          'name' => 'Foo 4',
+          'value' => 'Bar 4',
+          'scope' => 2,
+        ),
+        5 => array(
+          'slot' => 5,
+          'name' => 'Foo 5',
+          'value' => 'Bar 5',
+          'scope' => 1,
+        ),
+      )
+    );
+    variable_set('googleanalytics_custom_var', $custom_vars);
+    $this->drupalGet('');
+
+    foreach ($custom_vars['slots'] as $slot) {
+      $this->assertRaw("_gaq.push(['_setCustomVar', " . $slot['slot'] . ", \"" . $slot['name'] . "\", \"" . $slot['value'] . "\", " . $slot['scope'] . "]);", '[testGoogleAnalyticsCustomVariables]: _setCustomVar ' . $slot['slot'] . ' is shown.');
+    }
+
+    // Test whether tokens are replaced in custom variable names.
+    $site_slogan = $this->randomName(16);
+    variable_set('site_slogan', $site_slogan);
+
+    $custom_vars = array(
+      'slots' => array(
+        1 => array(
+          'slot' => 1,
+          'name' => 'Name: [site:slogan]',
+          'value' => 'Value: [site:slogan]',
+          'scope' => 3,
+        ),
+        2 => array(
+          'slot' => 2,
+          'name' => '',
+          'value' => $this->randomName(16),
+          'scope' => 1,
+        ),
+        3 => array(
+          'slot' => 3,
+          'name' => $this->randomName(16),
+          'value' => '',
+          'scope' => 2,
+        ),
+        4 => array(
+          'slot' => 4,
+          'name' => '',
+          'value' => '',
+          'scope' => 3,
+        ),
+        5 => array(
+          'slot' => 5,
+          'name' => '',
+          'value' => '',
+          'scope' => 3,
+        ),
+      )
+    );
+    variable_set('googleanalytics_custom_var', $custom_vars);
+    $this->verbose('<pre>' . print_r($custom_vars, TRUE) . '</pre>');
+
+    $this->drupalGet('');
+    $this->assertRaw("_gaq.push(['_setCustomVar', 1, \"Name: $site_slogan\", \"Value: $site_slogan\", 3]", '[testGoogleAnalyticsCustomVariables]: Tokens have been replaced in custom variable.');
+    $this->assertNoRaw("_gaq.push(['_setCustomVar', 2,", '[testGoogleAnalyticsCustomVariables]: Value with empty name is not shown.');
+    $this->assertNoRaw("_gaq.push(['_setCustomVar', 3,", '[testGoogleAnalyticsCustomVariables]: Name with empty value is not shown.');
+    $this->assertNoRaw("_gaq.push(['_setCustomVar', 4,", '[testGoogleAnalyticsCustomVariables]: Empty name and value is not shown.');
+    $this->assertNoRaw("_gaq.push(['_setCustomVar', 5,", '[testGoogleAnalyticsCustomVariables]: Empty name and value is not shown.');
+  }
+}
+
+class GoogleAnalyticsStatusMessagesTest extends DrupalWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('Google Analytics status messages tests'),
+      'description' => t('Test status messages functionality of Google Analytics module.'),
+      'group' => 'Google Analytics',
+    );
+  }
+
+  function setUp() {
+    parent::setUp('googleanalytics');
+
+    $permissions = array(
+      'access administration pages',
+      'administer google analytics',
+    );
+
+    // User to set up google_analytics.
+    $this->admin_user = $this->drupalCreateUser($permissions);
+  }
+
+  function testGoogleAnalyticsStatusMessages() {
+    $ua_code = 'UA-123456-4';
+    variable_set('googleanalytics_account', $ua_code);
+
+    // Enable logging of errors only.
+    variable_set('googleanalytics_trackmessages', array('error' => 'error'));
+
+    $this->drupalPost('user/login', array(), 'Log in');
+    $this->assertRaw('_gaq.push(["_trackEvent", "Messages", "Error message", "Username field is required."]);', '[testGoogleAnalyticsStatusMessages]: _trackEvent "Username field is required." is shown.');
+    $this->assertRaw('_gaq.push(["_trackEvent", "Messages", "Error message", "Password field is required."]);', '[testGoogleAnalyticsStatusMessages]: _trackEvent "Password field is required." is shown.');
+
+    // @todo: investigate why drupal_set_message() fails.
+    //drupal_set_message('Example status message.', 'status');
+    //drupal_set_message('Example warning message.', 'warning');
+    //drupal_set_message('Example error message.', 'error');
+    //drupal_set_message('Example error <em>message</em> with html tags and <a href="http://example.com/">link</a>.', 'error');
+    //$this->drupalGet('');
+    //$this->assertNoRaw('_gaq.push(["_trackEvent", "Messages", "Status message", "Example status message."]);', '[testGoogleAnalyticsStatusMessages]: Example status message is not enabled for tracking.');
+    //$this->assertNoRaw('_gaq.push(["_trackEvent", "Messages", "Warning message", "Example warning message."]);', '[testGoogleAnalyticsStatusMessages]: Example warning message is not enabled for tracking.');
+    //$this->assertRaw('_gaq.push(["_trackEvent", "Messages", "Error message", "Example error message."]);', '[testGoogleAnalyticsStatusMessages]: Example error message is shown.');
+    //$this->assertRaw('_gaq.push(["_trackEvent", "Messages", "Error message", "Example error message with html tags and link."]);', '[testGoogleAnalyticsStatusMessages]: HTML has been stripped successful from Example error message with html tags and link.');
+  }
+}
+
+class GoogleAnalyticsRolesTest extends DrupalWebTestCase {
+
+  public static function getInfo() {
+    return array(
+      'name' => t('Google Analytics role tests'),
+      'description' => t('Test roles functionality of Google Analytics module.'),
+      'group' => 'Google Analytics',
+    );
+  }
+
+  function setUp() {
+    parent::setUp('googleanalytics');
+
+    $permissions = array(
+      'access administration pages',
+      'administer google analytics',
+    );
+
+    // User to set up google_analytics.
+    $this->admin_user = $this->drupalCreateUser($permissions);
+  }
+
+  function testGoogleAnalyticsRolesTracking() {
+    $ua_code = 'UA-123456-4';
+    variable_set('googleanalytics_account', $ua_code);
+
+    // Test if the default settings are working as expected.
+
+    // Add to the selected roles only.
+    variable_set('googleanalytics_visibility_roles', 0);
+    // Enable tracking for all users.
+    variable_set('googleanalytics_roles', array());
+
+    // Check tracking code visibility.
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is displayed for anonymous users on frontpage with default settings.');
+    $this->drupalGet('admin');
+    $this->assertRaw('/403.html', '[testGoogleAnalyticsRoleVisibility]: 403 Forbidden tracking code is displayed for anonymous users in admin section with default settings.');
+
+    $this->drupalLogin($this->admin_user);
+
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is displayed for authenticated users on frontpage with default settings.');
+    $this->drupalGet('admin');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is NOT displayed for authenticated users in admin section with default settings.');
+
+    // Test if the non-default settings are working as expected.
+
+    // Enable tracking only for authenticated users.
+    variable_set('googleanalytics_roles', array(DRUPAL_AUTHENTICATED_RID => DRUPAL_AUTHENTICATED_RID));
+
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is displayed for authenticated users only on frontpage.');
+
+    $this->drupalLogout();
+    $this->drupalGet('');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is NOT displayed for anonymous users on frontpage.');
+
+    // Add to every role except the selected ones.
+    variable_set('googleanalytics_visibility_roles', 1);
+    // Enable tracking for all users.
+    variable_set('googleanalytics_roles', array());
+
+    // Check tracking code visibility.
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is added to every role and displayed for anonymous users.');
+    $this->drupalGet('admin');
+    $this->assertRaw('/403.html', '[testGoogleAnalyticsRoleVisibility]: 403 Forbidden tracking code is shown for anonymous users if every role except the selected ones is selected.');
+
+    $this->drupalLogin($this->admin_user);
+
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is added to every role and displayed on frontpage for authenticated users.');
+    $this->drupalGet('admin');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is added to every role and NOT displayed in admin section for authenticated users.');
+
+    // Disable tracking for authenticated users.
+    variable_set('googleanalytics_roles', array(DRUPAL_AUTHENTICATED_RID => DRUPAL_AUTHENTICATED_RID));
+
+    $this->drupalGet('');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is NOT displayed on frontpage for excluded authenticated users.');
+    $this->drupalGet('admin');
+    $this->assertNoRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is NOT displayed in admin section for excluded authenticated users.');
+
+    $this->drupalLogout();
+    $this->drupalGet('');
+    $this->assertRaw($ua_code, '[testGoogleAnalyticsRoleVisibility]: Tracking code is displayed on frontpage for included anonymous users.');
+  }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.tokens.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,55 @@
+<?php
+
+/**
+ * @file
+ * Builds placeholder replacement tokens for user-related data.
+ */
+
+/**
+ * Implements hook_token_info().
+ */
+function googleanalytics_token_info() {
+  $user['role-names'] = array(
+    'name' => t('User role names'),
+    'description' => t('The role names the user account is a member of as comma separated list.'),
+    'needs-data' => 'user',
+  );
+  $user['role-ids'] = array(
+    'name' => t('User role ids'),
+    'description' => t('The role ids the user account is a member of as comma separated list.'),
+    'needs-data' => 'user',
+  );
+
+  return array(
+    'tokens' => array('user' => $user),
+  );
+}
+
+/**
+ * Implements hook_tokens().
+ */
+function googleanalytics_tokens($type, $tokens, array $data = array(), array $options = array()) {
+  $sanitize = !empty($options['sanitize']);
+  $replacements = array();
+
+  if ($type == 'user' && !empty($data['user']->roles)) {
+    $account = $data['user'];
+
+    foreach ($tokens as $name => $original) {
+      switch ($name) {
+        // Basic user account information.
+        case 'role-names':
+          $names = implode(',', $account->roles);
+          $replacements[$original] = $sanitize ? check_plain($names) : $names;
+          break;
+
+        case 'role-ids':
+          $ids = implode(',', array_keys($account->roles));
+          $replacements[$original] = $sanitize ? check_plain($ids) : $ids;
+          break;
+      }
+    }
+  }
+
+  return $replacements;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/google_analytics/googleanalytics.variable.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+<?php
+
+/**
+ * @file
+ * Definition of variables for Variable API module.
+ */
+
+/**
+ * Implements hook_variable_info().
+ */
+function googleanalytics_variable_info($options) {
+  $variables['googleanalytics_account'] = array(
+    'type' => 'string',
+    'title' => t('Web Property ID', array(), $options),
+    'default' => 'UA-',
+    'description' => t('This ID is unique to each site you want to track separately, and is in the form of UA-xxxxxxx-yy. To get a Web Property ID, <a href="@analytics">register your site with Google Analytics</a>, or if you already have registered your site, go to your Google Analytics Settings page to see the ID next to every site profile. <a href="@webpropertyid">Find more information in the documentation</a>.', array('@analytics' => 'http://www.google.com/analytics/', '@webpropertyid' => url('https://developers.google.com/analytics/resources/concepts/gaConceptsAccounts', array('fragment' => 'webProperty'))), $options),
+    'required' => TRUE,
+    'group' => 'googleanalytics',
+    'localize' => TRUE,
+    'validate callback' => 'googleanalytics_validate_googleanalytics_account',
+  );
+
+  return $variables;
+}
+
+/**
+ * Implements hook_variable_group_info().
+ */
+function googleanalytics_variable_group_info() {
+  $groups['googleanalytics'] = array(
+    'title' => t('Google Analytics'),
+    'description' => t('Configure tracking behavior to get insights into your website traffic and marketing effectiveness.'),
+    'access' => 'administer google analytics',
+    'path' => array('admin/config/system/googleanalytics'),
+  );
+
+  return $groups;
+}
+
+/**
+ * Validate Web Property ID variable.
+ */
+function googleanalytics_validate_googleanalytics_account($variable) {
+  // Replace all type of dashes (n-dash, m-dash, minus) with the normal dashes.
+  $variable['value'] = str_replace(array('–', '—', '−'), '-', $variable['value']);
+
+  if (!preg_match('/^UA-\d{4,}-\d+$/', $variable['value'])) {
+    return t('A valid Google Analytics Web Property ID is case sensitive and formatted like UA-xxxxxxx-yy.');
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/CHANGELOG.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,84 @@
+
+Libraries 7.x-2.1, 2013-03-09
+-----------------------------
+#1937446 by Pol, tstoeckler: Add a 'pre-dependencies-load' callback group.
+#1775668 by tstoeckler: Fix bogus assertion message in assertLibraryFiles().
+#1773640 by tstoeckler: Use drupal_get_path() to find the profile directory.
+#1565426 by tstoeckler: Invoke hook_libraries_info() in enabled themes.
+
+Libraries 7.x-2.0, 2012-07-29
+-----------------------------
+#1606018 by chemical: Tests fail if the module is downloaded from Drupal.org.
+#1386250 by tstoeckler: Clarify module and library installation in README.txt.
+#1578618 by iamEAP: Fixed Fatal cache flush failure on major version upgrades.
+#1449346 by tstoeckler, sun: Clean-up libraries.test
+
+
+Libraries 7.x-2.0-alpha2, 2011-12-15
+------------------------------------
+#1299076 by tstoeckler: Improve testing of JS, CSS, and PHP files.
+#1347214 by rfay: Improve update function 7200.
+#1323530 by tstoeckler: Document libraries_get_version() pattern matching.
+#1325524 by sun, Rob Loach, tstoeckler: Statically cache libraries_detect().
+#1321372 by Rob Loach: Provide a 'post-load' callback group.
+#1205854 by tstoeckler, sun: Test library caching.
+
+
+Libraries 7.x-2.0-alpha1, 2011-10-01
+------------------------------------
+#1268342 by tstoeckler: Clean up drush libraries-list command.
+#962214 by tstoeckler, sun: Add support for library dependencies.
+#1224838 by sun, mjpa: Fix library path not being prepended to JS/CSS files.
+#1023258 by tstoeckler: Make 'files' consistently keyed by filename.
+#958162 by sun, tstoeckler: Add pre-detect callback group.
+#958162 by sun, tstoeckler: Make tests debuggable and provide libraries_info_defaults().
+#961476 by tstoeckler: Changed libraries_get_path() to return FALSE by default.
+#958162 by tstoeckler, sun, good_man: Allow to apply callbacks to libraries.
+#1125904 by tstoeckler, boombatower: Fix drush libraries-list.
+#1050076 by tstoeckler: Re-utilize libraries_detect() and remove libraries_detect_library().
+#466090 by tstoeckler: Add update function.
+#466090 by tstoeckler: Allow cache to be flushed.
+#466090 by tstoeckler, sun: Cache library information.
+#1064008 by tstoeckler, bfroehle: Fix outdated API examples in libraries.api.php.
+#1028744 by tstoeckler: Code clean-up.
+#1023322 by tstoeckler, sun: Fixed libraries shouldn't be loaded multiple times.
+#1024080 by hswong3i, tstoeckler: Fixed installation profile retrieval.
+#995988 by good_man: Wrong default install profile.
+#975498 by Gábor Hojtsy: Update JS/CSS-loading to new drupal_add_js/css() API.
+#958162 by tsteoeckler, sun: Consistent variable naming.
+#924130 by aaronbauman: Fixed libraries_get_path() should use drupal_static().
+#958162 by tstoeckler, sun: Code clean-up, tests revamp, more robust loading.
+#919632 by tstoeckler, sun: Allow library information to be stored in info files.
+by sun: Fixed testbot breaks upon directory name/info file name mismatch.
+#864376 by tstoeckler, sun: Code-cleanup, allow hard-coded 'version'.
+#939174 by sun, tstoeckler: Rename example.info to libraries_example.info.
+by sun: Fixed testbot breaks upon .info file without .module file.
+#542940 by tstoeckler, sun: Add libraries-list command.
+#919632 by tstoeckler: Add example library info file for testing purposes.
+#719896 by tstoeckler, sun: Documentation clean-up and tests improvement.
+#542940 by sun: Added initial Drush integration file.
+#719896 by tstoeckler, sun: Improved library detection and library loading.
+#855050 by Gábor Hojtsy: Avoid call-time pass by reference in libraries_detect().
+#719896 by tstoeckler, sun: Added starting point for hook_libraries_info().
+
+
+Libraries 7.x-1.x, xxxx-xx-xx
+-----------------------------
+
+
+Libraries 7.x-1.0, 2010-01-27
+-----------------------------
+#743522 by sun: Ported to D7.
+
+
+Libraries 6.x-1.0, 2010-01-27
+-----------------------------
+#1028744 by tstoeckler: Code clean-up.
+#496732 by tstoeckler, robphillips: Allow placing libraries in root directory.
+
+
+Libraries 6.x-1.0-ALPHA1, 2009-12-30
+------------------------------------
+#480440 by markus_petrux: Fixed base_path() not applied to default library path.
+#320562 by sun: Added basic functions.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+
+-- SUMMARY --
+
+Libraries API provides external library handling for Drupal modules.
+
+For a full description visit the project page:
+  http://drupal.org/project/libraries
+Bug reports, feature suggestions and latest developments:
+  http://drupal.org/project/issues/libraries
+
+
+-- REQUIREMENTS --
+
+* None.
+
+
+-- INSTALLATION --
+
+* Install as usual, see http://drupal.org/node/70151 for further information.
+  Note that installing external libraries is separate from installing this
+  module and should happen in the sites/all/libraries directory. See
+  http://drupal.org/node/1440066 for more information.
+
+
+-- CONTACT --
+
+Current maintainers:
+* Daniel F. Kudwien (sun) - http://drupal.org/user/54136
+* Tobias Stöckler (tstoeckler) - http://drupal.org/user/107158
+
+
+This project has been sponsored by:
+* UNLEASHED MIND
+  Specialized in consulting and planning of Drupal powered sites, UNLEASHED
+  MIND offers installation, development, theming, customization, and hosting
+  to get you started. Visit http://www.unleashedmind.com for more information.
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/libraries.api.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,450 @@
+<?php
+
+/**
+ * @file
+ * Documents API functions for Libraries module.
+ */
+
+/**
+ * Return information about external libraries.
+ *
+ * @return
+ *   An associative array whose keys are internal names of libraries and whose
+ *   values are describing each library. Each key is the directory name below
+ *   the 'libraries' directory, in which the library may be found. Each value is
+ *   an associative array containing:
+ *   - name: The official, human-readable name of the library.
+ *   - vendor url: The URL of the homepage of the library.
+ *   - download url: The URL of a web page on which the library can be obtained.
+ *   - path: (optional) A relative path from the directory of the library to the
+ *     actual library. Only required if the extracted download package contains
+ *     the actual library files in a sub-directory.
+ *   - library path: (optional) The absolute path to the library directory. This
+ *     should not be declared normally, as it is automatically detected, to
+ *     allow for multiple possible library locations. A valid use-case is an
+ *     external library, in which case the full URL to the library should be
+ *     specified here.
+ *   - version: (optional) The version of the library. This should not be
+ *     declared normally, as it is automatically detected (see 'version
+ *     callback' below) to allow for version changes of libraries without code
+ *     changes of implementing modules and to support different versions of a
+ *     library simultaneously (though only one version can be installed per
+ *     site). A valid use-case is an external library whose version cannot be
+ *     determined programatically.
+ *   - version callback: (optional) The name of a function that detects and
+ *     returns the full version string of the library. The first argument is
+ *     always $library, an array containing all library information as described
+ *     here. There are two ways to declare the version callback's additional
+ *     arguments, either as a single $options parameter or as multiple
+ *     parameters, which correspond to the two ways to specify the argument
+ *     values (see 'version arguments'). Defaults to libraries_get_version().
+ *   - version arguments: A list of arguments to pass to the version callback.
+ *     Version arguments can be declared either as an associative array whose
+ *     keys are the argument names or as an indexed array without specifying
+ *     keys. If declared as an associative array, the arguments get passed to
+ *     the version callback as a single $options parameter whose keys are the
+ *     argument names (i.e. $options is identical to the specified array). If
+ *     declared as an indexed array, the array values get passed to the version
+ *     callback as seperate arguments in the order they were declared. The
+ *     default version callback libraries_get_version() expects a single,
+ *     associative array with named keys:
+ *     - file: The filename to parse for the version, relative to the library
+ *       path. For example: 'docs/changelog.txt'.
+ *     - pattern: A string containing a regular expression (PCRE) to match the
+ *       library version. For example: '@version\s+([0-9a-zA-Z\.-]+)@'. Note
+ *       that the returned version is not the match of the entire pattern (i.e.
+ *       '@version 1.2.3' in the above example) but the match of the first
+ *       sub-pattern (i.e. '1.2.3' in the above example).
+ *     - lines: (optional) The maximum number of lines to search the pattern in.
+ *       Defaults to 20.
+ *     - cols: (optional) The maximum number of characters per line to take into
+ *       account. Defaults to 200. In case of minified or compressed files, this
+ *       prevents reading the entire file into memory.
+ *   - files: An associative array of library files to load. Supported keys are:
+ *     - js: A list of JavaScript files to load, using the same syntax as Drupal
+ *       core's hook_library().
+ *     - css: A list of CSS files to load, using the same syntax as Drupal
+ *       core's hook_library().
+ *     - php: A list of PHP files to load.
+ *   - dependencies: An array of libraries this library depends on. Similar to
+ *     declaring module dependencies, the dependency declaration may contain
+ *     information on the supported version. Examples of supported declarations:
+ *     @code
+ *     $libraries['dependencies'] = array(
+ *       // Load the 'example' library, regardless of the version available:
+ *       'example',
+ *       // Only load the 'example' library, if version 1.2 is available:
+ *       'example (1.2)',
+ *       // Only load a version later than 1.3-beta2 of the 'example' library:
+ *       'example (>1.3-beta2)'
+ *       // Only load a version equal to or later than 1.3-beta3:
+ *       'example (>=1.3-beta3)',
+ *       // Only load a version earlier than 1.5:
+ *       'example (<1.5)',
+ *       // Only load a version equal to or earlier than 1.4:
+ *       'example (<=1.4)',
+ *       // Combinations of the above are allowed as well:
+ *       'example (>=1.3-beta2, <1.5)',
+ *     );
+ *     @endcode
+ *   - variants: (optional) An associative array of available library variants.
+ *     For example, the top-level 'files' property may refer to a default
+ *     variant that is compressed. If the library also ships with a minified and
+ *     uncompressed/source variant, those can be defined here. Each key should
+ *     describe the variant type, e.g. 'minified' or 'source'. Each value is an
+ *     associative array of top-level properties that are entirely overridden by
+ *     the variant, most often just 'files'. Additionally, each variant can
+ *     contain following properties:
+ *     - variant callback: (optional) The name of a function that detects the
+ *       variant and returns TRUE or FALSE, depending on whether the variant is
+ *       available or not. The first argument is always $library, an array
+ *       containing all library information as described here. The second
+ *       argument is always a string containing the variant name. There are two
+ *       ways to declare the variant callback's additinal arguments, either as a
+ *       single $options parameter or as multiple parameters, which correspond
+ *       to the two ways to specify the argument values (see 'variant
+ *       arguments'). If ommitted, the variant is expected to always be
+ *       available.
+ *     - variant arguments: A list of arguments to pass to the variant callback.
+ *       Variant arguments can be declared either as an associative array whose
+ *       keys are the argument names or as an indexed array without specifying
+ *       keys. If declared as an associative array, the arguments get passed to
+ *       the variant callback as a single $options parameter whose keys are the
+ *       argument names (i.e. $options is identical to the specified array). If
+ *       declared as an indexed array, the array values get passed to the
+ *       variant callback as seperate arguments in the order they were declared.
+ *     Variants can be version-specific (see 'versions').
+ *   - versions: (optional) An associative array of supported library versions.
+ *     Naturally, libraries evolve over time and so do their APIs. In case a
+ *     library changes between versions, different 'files' may need to be
+ *     loaded, different 'variants' may become available, or Drupal modules need
+ *     to load different integration files adapted to the new version. Each key
+ *     is a version *string* (PHP does not support floats as keys). Each value
+ *     is an associative array of top-level properties that are entirely
+ *     overridden by the version.
+ *   - integration files: (optional) An associative array whose keys are module
+ *     names and whose values are sets of files to load for the module, using
+ *     the same notion as the top-level 'files' property. Each specified file
+ *     should contain the path to the file relative to the module it belongs to.
+ *   - callbacks: An associative array whose keys are callback groups and whose
+ *     values are arrays of callbacks to apply to the library in that group.
+ *     Each callback receives the following arguments:
+ *     - $library: An array of library information belonging to the top-level
+ *       library, a specific version, a specific variant or a specific variant
+ *       of a specific version. Because library information such as the 'files'
+ *       property (see above) can be declared in all these different locations
+ *       of the library array, but a callback may have to act on all these
+ *       different parts of the library, it is called recursively for each
+ *       library with a certain part of the libraries array passed as $library
+ *       each time.
+ *     - $version: If the $library array belongs to a certain version (see
+ *       above), a string containing the version. This argument may be empty, so
+ *       NULL should be specified as the default value.
+ *     - $variant: If the $library array belongs to a certain variant (see
+ *       above), a string containing the variant name. This argument may be
+ *       empty, so NULL should be specified as the default value.
+ *     Valid callback groups are:
+ *     - info: Callbacks registered in this group are applied after the library
+ *       information has been retrieved via hook_libraries_info() or info files.
+ *     - pre-detect: Callbacks registered in this group are applied after the
+ *       library path has been determined and before the version callback is
+ *       invoked. At this point the following additional information is available:
+ *       - $library['library path']: The path on the file system to the library.
+ *     - post-detect: Callbacks registered in this group are applied after the
+ *       library has been successfully detected. At this point the library
+ *       contains the version-specific information, if specified, and following
+ *       additional information is available:
+ *       - $library['installed']: A boolean indicating whether the library is
+ *         installed or not.
+ *       - $library['version']: If it could be detected, a string containing the
+ *         version of the library.
+ *       - $library['variants'][$variant]['installed']: For each specified
+ *         variant, a boolean indicating whether the variant is installed or
+ *         not.
+ *       Note that in this group the 'versions' property is no longer available.
+ *     - pre-dependencies-load: Callbacks registered in this group are applied
+ *       directly before the library's dependencies are loaded. At this point
+ *       the library contains variant-specific information, if specified. Note
+ *       that in this group the 'variants' property is no longer available.
+ *     - pre-load: Callbacks registered in this group are applied directly after
+ *       the library's dependencies are loaded and before the library itself is
+ *       loaded.
+ *     - post-load: Callbacks registered in this group are applied directly
+ *       after this library is loaded. At this point, the library contains a
+ *       'loaded' key, which contains the number of files that were loaded.
+ *   Additional top-level properties can be registered as needed.
+ *
+ * @see hook_library()
+ */
+function hook_libraries_info() {
+  // The following is a full explanation of all properties. See below for more
+  // concrete example implementations.
+
+  // This array key lets Libraries API search for 'sites/all/libraries/example'
+  // directory, which should contain the entire, original extracted library.
+  $libraries['example'] = array(
+    // Only used in administrative UI of Libraries API.
+    'name' => 'Example library',
+    'vendor url' => 'http://example.com',
+    'download url' => 'http://example.com/download',
+    // Optional: If, after extraction, the actual library files are contained in
+    // 'sites/all/libraries/example/lib', specify the relative path here.
+    'path' => 'lib',
+    // Optional: Define a custom version detection callback, if required.
+    'version callback' => 'mymodule_get_version',
+    // Specify arguments for the version callback. By default,
+    // libraries_get_version() takes a named argument array:
+    'version arguments' => array(
+      'file' => 'docs/CHANGELOG.txt',
+      'pattern' => '@version\s+([0-9a-zA-Z\.-]+)@',
+      'lines' => 5,
+      'cols' => 20,
+    ),
+    // Default list of files of the library to load. Important: Only specify
+    // third-party files belonging to the library here, not integration files of
+    // your module.
+    'files' => array(
+      // 'js' and 'css' follow the syntax of hook_library(), but file paths are
+      // relative to the library path.
+      'js' => array(
+        'exlib.js',
+        'gadgets/foo.js',
+      ),
+      'css' => array(
+        'lib_style.css',
+        'skin/example.css',
+      ),
+      // For PHP libraries, specify include files here, still relative to the
+      // library path.
+      'php' => array(
+        'exlib.php',
+        'exlib.inc',
+      ),
+    ),
+    // Optional: Specify alternative variants of the library, if available.
+    'variants' => array(
+      // All properties defined for 'minified' override top-level properties.
+      'minified' => array(
+        'files' => array(
+          'js' => array(
+            'exlib.min.js',
+            'gadgets/foo.min.js',
+          ),
+          'css' => array(
+            'lib_style.css',
+            'skin/example.css',
+          ),
+        ),
+        'variant callback' => 'mymodule_check_variant',
+        'variant arguments' => array(
+          'variant' => 'minified',
+        ),
+      ),
+    ),
+    // Optional, but usually required: Override top-level properties for later
+    // versions of the library. The properties of the minimum version that is
+    // matched override the top-level properties. Note:
+    // - When registering 'versions', it usually does not make sense to register
+    //   'files', 'variants', and 'integration files' on the top-level, as most
+    //   of those likely need to be different per version and there are no
+    //   defaults.
+    // - The array keys have to be strings, as PHP does not support floats for
+    //   array keys.
+    'versions' => array(
+      '2' => array(
+        'files' => array(
+          'js' => array('exlib.js'),
+          'css' => array('exlib_style.css'),
+        ),
+      ),
+      '3.0' => array(
+        'files' => array(
+          'js' => array('exlib.js'),
+          'css' => array('lib_style.css'),
+        ),
+      ),
+      '3.2' => array(
+        'files' => array(
+          'js' => array(
+            'exlib.js',
+            'gadgets/foo.js',
+          ),
+          'css' => array(
+            'lib_style.css',
+            'skin/example.css',
+          ),
+        ),
+      ),
+    ),
+    // Optional: Register files to auto-load for your module. All files must be
+    // keyed by module, and follow the syntax of the 'files' property.
+    'integration files' => array(
+      'mymodule' => array(
+        'js' => array('ex_lib.inc'),
+      ),
+    ),
+    // Optionally register callbacks to apply to the library during different
+    // stages of its lifetime ('callback groups').
+    'callbacks' => array(
+      // Used to alter the info associated with the library.
+      'info' => array(
+        'mymodule_example_libraries_info_callback',
+      ),
+      // Called before detecting the given library.
+      'pre-detect' => array(
+        'mymodule_example_libraries_predetect_callback',
+      ),
+      // Called after detecting the library.
+      'post-detect' => array(
+        'mymodule_example_libraries_postdetect_callback',
+      ),
+      // Called before the library's dependencies are loaded.
+      'pre-dependencie-load' => array(
+        'mymodule_example_libraries_pre_dependencies_load_callback',
+      ),
+      // Called before the library is loaded.
+      'pre-load' => array(
+        'mymodule_example_libraries_preload_callback',
+      ),
+      // Called after the library is loaded.
+      'post-load' => array(
+        'mymodule_example_libraries_postload_callback',
+      ),
+    ),
+  );
+
+  // A very simple library. No changing APIs (hence, no versions), no variants.
+  // Expected to be extracted into 'sites/all/libraries/simple'.
+  $libraries['simple'] = array(
+    'name' => 'Simple library',
+    'vendor url' => 'http://example.com/simple',
+    'download url' => 'http://example.com/simple',
+    'version arguments' => array(
+      'file' => 'readme.txt',
+      // Best practice: Document the actual version strings for later reference.
+      // 1.x: Version 1.0
+      'pattern' => '/Version (\d+)/',
+      'lines' => 5,
+    ),
+    'files' => array(
+      'js' => array('simple.js'),
+    ),
+  );
+
+  // A library that (naturally) evolves over time with API changes.
+  $libraries['tinymce'] = array(
+    'name' => 'TinyMCE',
+    'vendor url' => 'http://tinymce.moxiecode.com',
+    'download url' => 'http://tinymce.moxiecode.com/download.php',
+    'path' => 'jscripts/tiny_mce',
+    // The regular expression catches two parts (the major and the minor
+    // version), which libraries_get_version() doesn't allow.
+    'version callback' => 'tinymce_get_version',
+    'version arguments' => array(
+      // It can be easier to parse the first characters of a minified file
+      // instead of doing a multi-line pattern matching in a source file. See
+      // 'lines' and 'cols' below.
+      'file' => 'jscripts/tiny_mce/tiny_mce.js',
+      // Best practice: Document the actual version strings for later reference.
+      // 2.x: this.majorVersion="2";this.minorVersion="1.3"
+      // 3.x: majorVersion:'3',minorVersion:'2.0.1'
+      'pattern' => '@majorVersion[=:]["\'](\d).+?minorVersion[=:]["\']([\d\.]+)@',
+      'lines' => 1,
+      'cols' => 100,
+    ),
+    'versions' => array(
+      '2.1' => array(
+        'files' => array(
+          'js' => array('tiny_mce.js'),
+        ),
+        'variants' => array(
+          'source' => array(
+            'files' => array(
+              'js' => array('tiny_mce_src.js'),
+            ),
+          ),
+        ),
+        'integration files' => array(
+          'wysiwyg' => array(
+            'js' => array('editors/js/tinymce-2.js'),
+            'css' => array('editors/js/tinymce-2.css'),
+          ),
+        ),
+      ),
+      // Definition used if 3.1 or above is detected.
+      '3.1' => array(
+        // Does not support JS aggregation.
+        'files' => array(
+          'js' => array(
+            'tiny_mce.js' => array('preprocess' => FALSE),
+          ),
+        ),
+        'variants' => array(
+          // New variant leveraging jQuery. Not stable yet; therefore not the
+          // default variant.
+          'jquery' => array(
+            'files' => array(
+              'js' => array(
+                'tiny_mce_jquery.js' => array('preprocess' => FALSE),
+              ),
+            ),
+          ),
+          'source' => array(
+            'files' => array(
+              'js' => array(
+                'tiny_mce_src.js' => array('preprocess' => FALSE),
+              ),
+            ),
+          ),
+        ),
+        'integration files' => array(
+          'wysiwyg' => array(
+            'js' => array('editors/js/tinymce-3.js'),
+            'css' => array('editors/js/tinymce-3.css'),
+          ),
+        ),
+      ),
+    ),
+  );
+  return $libraries;
+}
+
+/**
+ * Alter the library information before detection and caching takes place.
+ *
+ * The library definitions are passed by reference. A common use-case is adding
+ * a module's integration files to the library array, so that the files are
+ * loaded whenever the library is. As noted above, it is important to declare
+ * integration files inside of an array, whose key is the module name.
+ *
+ * @see hook_libraries_info()
+ */
+function hook_libraries_info_alter(&$libraries) {
+  $files = array(
+    'php' => array('example_module.php_spellchecker.inc'),
+  );
+  $libraries['php_spellchecker']['integration files']['example_module'] = $files;
+}
+
+/**
+ * Specify paths to look for library info files.
+ *
+ * Libraries API looks in the following directories for library info files by
+ * default:
+ * - libraries
+ * - profiles/$profile/libraries
+ * - sites/all/libraries
+ * - sites/$site/libraries
+ * This hook allows you to specify additional locations to look for library info
+ * files. This should only be used for modules that declare many libraries.
+ * Modules that only implement a few libraries should implement
+ * hook_libraries_info().
+ *
+ * @return
+ *   An array of paths.
+ */
+function hook_libraries_paths() {
+  // Taken from the Libraries test module, which needs to specify the path to
+  // the test library.
+  return array(drupal_get_path('module', 'libraries_test') . '/example');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/libraries.drush.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,151 @@
+<?php
+
+/**
+ * @file
+ * Drush integration for Libraries API.
+ */
+
+/**
+ * Implements hook_drush_command().
+ */
+function libraries_drush_command() {
+  $items['libraries-list'] = array(
+    'callback' => 'libraries_drush_list',
+    'description' => dt('Lists registered library information.'),
+    'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
+  );
+  /**$items['libraries-download'] = array(
+    'callback' => 'libraries_drush_download',
+    'description' => dt('Downloads a registered library into the libraries directory for the active site.'),
+    'arguments' => array(
+      'name' => dt('The internal name of the registered library.'),
+    ),
+  );*/
+  return $items;
+}
+
+/**
+ * Implements hook_drush_help().
+ */
+function libraries_drush_help($section) {
+  switch ($section) {
+    case 'drush:libraries-list':
+      return dt('Lists registered library information.');
+
+    case 'drush:libraries-download':
+      return dt('Downloads a registered library into the libraries directory for the active site.
+
+See libraries-list for a list of registered libraries.');
+  }
+}
+
+/**
+ * Lists registered library information.
+ */
+function libraries_drush_list() {
+  $libraries = array();
+  foreach (libraries_info() as $name => $info) {
+    $libraries[$name] = libraries_detect($name);
+  }
+  ksort($libraries);
+
+  if (empty($libraries)) {
+    drush_print('There are no registered libraries.');
+  }
+
+  else {
+    $rows = array();
+    // drush_print_table() automatically treats the first row as the header, if
+    // $header is TRUE.
+    $rows[] = array(dt('Name'), dt('Status'), dt('Version'), dt('Variants'), dt('Dependencies'));
+    foreach ($libraries as $name => $library) {
+      $status = ($library['installed'] ? dt('OK') : drupal_ucfirst($library['error']));
+      $version = (($library['installed'] && !empty($library['version'])) ? $library['version'] : '-');
+
+      // Only list installed variants.
+      $variants = array();
+      foreach ($library['variants'] as $variant_name => $variant) {
+        if ($variant['installed']) {
+          $variants[] = $variant_name;
+        }
+      }
+      $variants = (empty($variants) ? '-' : implode(', ', $variants));
+
+      $dependencies = (!empty($library['dependencies']) ? implode(', ', $library['dependencies']) : '-');
+
+      $rows[] = array($name, $status, $version, $variants, $dependencies);
+    }
+    // Make the possible values for the 'Status' column and the 'Version' header
+    // wrap nicely.
+    $widths = array(0, 12, 7, 0, 0);
+    drush_print_table($rows, TRUE, $widths);
+  }
+}
+
+/**
+ * Downloads a library.
+ *
+ * @param $name
+ *   The internal name of the library to download.
+ */
+function libraries_drush_download($name) {
+  return;
+
+  // @todo Looks wonky?
+  if (!drush_shell_exec('type unzip')) {
+    return drush_set_error(dt('Missing dependency: unzip. Install it before using this command.'));
+  }
+
+  // @todo Simply use current drush site.
+  $args = func_get_args();
+  if ($args[0]) {
+    $path = $args[0];
+  }
+  else {
+    $path = 'sites/all/libraries';
+  }
+
+  // Create the path if it does not exist.
+  if (!is_dir($path)) {
+    drush_op('mkdir', $path);
+    drush_log(dt('Directory @path was created', array('@path' => $path)), 'notice');
+  }
+
+  // Set the directory to the download location.
+  $olddir = getcwd();
+  chdir($path);
+
+  $filename = basename(COLORBOX_DOWNLOAD_URI);
+  $dirname = basename(COLORBOX_DOWNLOAD_URI, '.zip');
+
+  // Remove any existing Colorbox plugin directory
+  if (is_dir($dirname)) {
+    drush_log(dt('A existing Colorbox plugin was overwritten at @path', array('@path' => $path)), 'notice');
+  }
+  // Remove any existing Colorbox plugin zip archive
+  if (is_file($filename)) {
+    drush_op('unlink', $filename);
+  }
+
+  // Download the zip archive
+  if (!drush_shell_exec('wget '. COLORBOX_DOWNLOAD_URI)) {
+    drush_shell_exec('curl -O '. COLORBOX_DOWNLOAD_URI);
+  }
+
+  if (is_file($filename)) {
+    // Decompress the zip archive
+    drush_shell_exec('unzip -qq -o '. $filename);
+    // Remove the zip archive
+    drush_op('unlink', $filename);
+  }
+
+  // Set working directory back to the previous working directory.
+  chdir($olddir);
+
+  if (is_dir($path .'/'. $dirname)) {
+    drush_log(dt('Colorbox plugin has been downloaded to @path', array('@path' => $path)), 'success');
+  }
+  else {
+    drush_log(dt('Drush was unable to download the Colorbox plugin to @path', array('@path' => $path)), 'error');
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/libraries.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+name = Libraries
+description = Allows version-dependent and shared usage of external libraries.
+core = 7.x
+files[] = tests/libraries.test
+
+; Information added by drupal.org packaging script on 2013-03-09
+version = "7.x-2.1"
+core = "7.x"
+project = "libraries"
+datestamp = "1362848412"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/libraries.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+<?php
+
+/**
+ * @file
+ * Install, uninstall, and update functions for libraries.module.
+ */
+
+/**
+ * Implements hook_schema().
+ */
+function libraries_schema() {
+  $schema['cache_libraries'] = drupal_get_schema_unprocessed('system', 'cache');
+  $schema['cache_libraries']['description'] = 'Cache table to store library information.';
+  return $schema;
+}
+
+/**
+ * Create the 'cache_libraries' table.
+ */
+function libraries_update_7200() {
+  // Note that previous versions of this function created the table with a
+  // different table comment.
+  if (!db_table_exists('cache_libraries')) {
+    $specs = libraries_schema();
+    db_create_table('cache_libraries', $specs['cache_libraries']);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/libraries.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,765 @@
+<?php
+
+/**
+ * @file
+ * External library handling for Drupal modules.
+ */
+
+/**
+ * Implements hook_flush_caches().
+ */
+function libraries_flush_caches() {
+  // @todo When upgrading from 1.x, update.php attempts to flush caches before
+  //   the cache table has been created.
+  // @see http://drupal.org/node/1477932
+  if (db_table_exists('cache_libraries')) {
+    return array('cache_libraries');
+  }
+}
+
+/**
+ * Gets the path of a library.
+ *
+ * @param $name
+ *   The machine name of a library to return the path for.
+ * @param $base_path
+ *   Whether to prefix the resulting path with base_path().
+ *
+ * @return
+ *   The path to the specified library or FALSE if the library wasn't found.
+ *
+ * @ingroup libraries
+ */
+function libraries_get_path($name, $base_path = FALSE) {
+  $libraries = &drupal_static(__FUNCTION__);
+
+  if (!isset($libraries)) {
+    $libraries = libraries_get_libraries();
+  }
+
+  $path = ($base_path ? base_path() : '');
+  if (!isset($libraries[$name])) {
+    return FALSE;
+  }
+  else {
+    $path .= $libraries[$name];
+  }
+
+  return $path;
+}
+
+/**
+ * Returns an array of library directories.
+ *
+ * Returns an array of library directories from the all-sites directory
+ * (i.e. sites/all/libraries/), the profiles directory, and site-specific
+ * directory (i.e. sites/somesite/libraries/). The returned array will be keyed
+ * by the library name. Site-specific libraries are prioritized over libraries
+ * in the default directories. That is, if a library with the same name appears
+ * in both the site-wide directory and site-specific directory, only the
+ * site-specific version will be listed.
+ *
+ * @return
+ *   A list of library directories.
+ *
+ * @ingroup libraries
+ */
+function libraries_get_libraries() {
+  $searchdir = array();
+  $profile = drupal_get_path('profile', drupal_get_profile());
+  $config = conf_path();
+
+  // Similar to 'modules' and 'themes' directories in the root directory,
+  // certain distributions may want to place libraries into a 'libraries'
+  // directory in Drupal's root directory.
+  $searchdir[] = 'libraries';
+
+  // Similar to 'modules' and 'themes' directories inside an installation
+  // profile, installation profiles may want to place libraries into a
+  // 'libraries' directory.
+  $searchdir[] = "$profile/libraries";
+
+  // Always search sites/all/libraries.
+  $searchdir[] = 'sites/all/libraries';
+
+  // Also search sites/<domain>/*.
+  $searchdir[] = "$config/libraries";
+
+  // Retrieve list of directories.
+  $directories = array();
+  $nomask = array('CVS');
+  foreach ($searchdir as $dir) {
+    if (is_dir($dir) && $handle = opendir($dir)) {
+      while (FALSE !== ($file = readdir($handle))) {
+        if (!in_array($file, $nomask) && $file[0] != '.') {
+          if (is_dir("$dir/$file")) {
+            $directories[$file] = "$dir/$file";
+          }
+        }
+      }
+      closedir($handle);
+    }
+  }
+
+  return $directories;
+}
+
+/**
+ * Looks for library info files.
+ *
+ * This function scans the following directories for info files:
+ * - libraries
+ * - profiles/$profilename/libraries
+ * - sites/all/libraries
+ * - sites/$sitename/libraries
+ * - any directories specified via hook_libraries_info_file_paths()
+ *
+ * @return
+ *   An array of info files, keyed by library name. The values are the paths of
+ *   the files.
+ */
+function libraries_scan_info_files() {
+  $profile = drupal_get_path('profile', drupal_get_profile());
+  $config = conf_path();
+
+  // Build a list of directories.
+  $directories = module_invoke_all('libraries_info_file_paths');
+  $directories[] = 'libraries';
+  $directories[] = "$profile/libraries";
+  $directories[] = 'sites/all/libraries';
+  $directories[] = "$config/libraries";
+
+  // Scan for info files.
+  $files = array();
+  foreach ($directories as $dir) {
+    if (file_exists($dir)) {
+      $files = array_merge($files, file_scan_directory($dir, '@^[a-z0-9._-]+\.libraries\.info$@', array(
+        'key' => 'name',
+        'recurse' => FALSE,
+      )));
+    }
+  }
+
+  foreach ($files as $filename => $file) {
+    $files[basename($filename, '.libraries')] = $file;
+    unset($files[$filename]);
+  }
+
+  return $files;
+}
+
+/**
+ * Invokes library callbacks.
+ *
+ * @param $group
+ *   A string containing the group of callbacks that is to be applied. Should be
+ *   either 'info', 'pre-detect', 'post-detect', or 'load'.
+ * @param $library
+ *   An array of library information, passed by reference.
+ */
+function libraries_invoke($group, &$library) {
+  foreach ($library['callbacks'][$group] as $callback) {
+    libraries_traverse_library($library, $callback);
+  }
+}
+
+/**
+ * Helper function to apply a callback to all parts of a library.
+ *
+ * Because library declarations can include variants and versions, and those
+ * version declarations can in turn include variants, modifying e.g. the 'files'
+ * property everywhere it is declared can be quite cumbersome, in which case
+ * this helper function is useful.
+ *
+ * @param $library
+ *   An array of library information, passed by reference.
+ * @param $callback
+ *   A string containing the callback to apply to all parts of a library.
+ */
+function libraries_traverse_library(&$library, $callback) {
+  // Always apply the callback to the top-level library.
+  $callback($library, NULL, NULL);
+
+  // Apply the callback to versions.
+  if (isset($library['versions'])) {
+    foreach ($library['versions'] as $version_string => &$version) {
+      $callback($version, $version_string, NULL);
+      // Versions can include variants as well.
+      if (isset($version['variants'])) {
+        foreach ($version['variants'] as $version_variant_name => &$version_variant) {
+          $callback($version_variant, $version_string, $version_variant_name);
+        }
+      }
+    }
+  }
+
+  // Apply the callback to variants.
+  if (isset($library['variants'])) {
+    foreach ($library['variants'] as $variant_name => &$variant) {
+      $callback($variant, NULL, $variant_name);
+    }
+  }
+}
+
+/**
+ * Library info callback to make all 'files' properties consistent.
+ *
+ * This turns libraries' file information declared as e.g.
+ * @code
+ * $library['files']['js'] = array('example_1.js', 'example_2.js');
+ * @endcode
+ * into
+ * @code
+ * $library['files']['js'] = array(
+ *   'example_1.js' => array(),
+ *   'example_2.js' => array(),
+ * );
+ * @endcode
+ * It does the same for the 'integration files' property.
+ *
+ * @param $library
+ *   An associative array of library information or a part of it, passed by
+ *   reference.
+ * @param $version
+ *   If the library information belongs to a specific version, the version
+ *   string. NULL otherwise.
+ * @param $variant
+ *   If the library information belongs to a specific variant, the variant name.
+ *   NULL otherwise.
+ *
+ * @see libraries_info()
+ * @see libraries_invoke()
+ */
+function libraries_prepare_files(&$library, $version = NULL, $variant = NULL) {
+  // Both the 'files' property and the 'integration files' property contain file
+  // declarations, and we want to make both consistent.
+  $file_types = array();
+  if (isset($library['files'])) {
+    $file_types[] = &$library['files'];
+  }
+  if (isset($library['integration files'])) {
+    // Integration files are additionally keyed by module.
+    foreach ($library['integration files'] as &$integration_files) {
+      $file_types[] = &$integration_files;
+    }
+  }
+  foreach ($file_types as &$files) {
+    // Go through all supported types of files.
+    foreach (array('js', 'css', 'php') as $type) {
+      if (isset($files[$type])) {
+        foreach ($files[$type] as $key => $value) {
+          // Unset numeric keys and turn the respective values into keys.
+          if (is_numeric($key)) {
+            $files[$type][$value] = array();
+            unset($files[$type][$key]);
+          }
+        }
+      }
+    }
+  }
+}
+
+/**
+ * Library post-detect callback to process and detect dependencies.
+ *
+ * It checks whether each of the dependencies of a library are installed and
+ * available in a compatible version.
+ *
+ * @param $library
+ *   An associative array of library information or a part of it, passed by
+ *   reference.
+ * @param $version
+ *   If the library information belongs to a specific version, the version
+ *   string. NULL otherwise.
+ * @param $variant
+ *   If the library information belongs to a specific variant, the variant name.
+ *   NULL otherwise.
+ *
+ * @see libraries_info()
+ * @see libraries_invoke()
+ */
+function libraries_detect_dependencies(&$library, $version = NULL, $variant = NULL) {
+  if (isset($library['dependencies'])) {
+    foreach ($library['dependencies'] as &$dependency_string) {
+      $dependency_info = drupal_parse_dependency($dependency_string);
+      $dependency = libraries_detect($dependency_info['name']);
+      if (!$dependency['installed']) {
+        $library['installed'] = FALSE;
+        $library['error'] = 'missing dependency';
+        $library['error message'] = t('The %dependency library, which the %library library depends on, is not installed.', array(
+          '%dependency' => $dependency['name'],
+          '%library' => $library['name'],
+        ));
+      }
+      elseif (drupal_check_incompatibility($dependency_info, $dependency['version'])) {
+        $library['installed'] = FALSE;
+        $library['error'] = 'incompatible dependency';
+        $library['error message'] = t('The version %dependency_version of the %dependency library is not compatible with the %library library.', array(
+          '%dependency_version' => $dependency['version'],
+          '%dependency' => $dependency['name'],
+          '%library' => $library['name'],
+        ));
+      }
+
+      // Remove the version string from the dependency, so libraries_load() can
+      // load the libraries directly.
+      $dependency_string = $dependency_info['name'];
+    }
+  }
+}
+
+/**
+ * Returns information about registered libraries.
+ *
+ * The returned information is unprocessed; i.e., as registered by modules.
+ *
+ * @param $name
+ *   (optional) The machine name of a library to return registered information
+ *   for. If omitted, information about all registered libraries is returned.
+ *
+ * @return array|false
+ *   An associative array containing registered information for all libraries,
+ *   the registered information for the library specified by $name, or FALSE if
+ *   the library $name is not registered.
+ *
+ * @see hook_libraries_info()
+ *
+ * @todo Re-introduce support for include file plugin system - either by copying
+ *   Wysiwyg's code, or directly switching to CTools.
+ */
+function &libraries_info($name = NULL) {
+  // This static cache is re-used by libraries_detect() to save memory.
+  $libraries = &drupal_static(__FUNCTION__);
+
+  if (!isset($libraries)) {
+    $libraries = array();
+    // Gather information from hook_libraries_info().
+    foreach (module_implements('libraries_info') as $module) {
+      foreach (module_invoke($module, 'libraries_info') as $machine_name => $properties) {
+        $properties['module'] = $module;
+        $libraries[$machine_name] = $properties;
+      }
+    }
+    // Gather information from hook_libraries_info() in enabled themes.
+    // @see drupal_alter()
+    global $theme, $base_theme_info;
+    if (isset($theme)) {
+      $theme_keys = array();
+      foreach ($base_theme_info as $base) {
+        $theme_keys[] = $base->name;
+      }
+      $theme_keys[] = $theme;
+      foreach ($theme_keys as $theme_key) {
+        $function = $theme_key . '_' . 'libraries_info';
+        if (function_exists($function)) {
+          foreach ($function() as $machine_name => $properties) {
+            $properties['theme'] = $theme_key;
+            $libraries[$machine_name] = $properties;
+          }
+        }
+      }
+    }
+
+    // Gather information from .info files.
+    // .info files override module definitions.
+    foreach (libraries_scan_info_files() as $machine_name => $file) {
+      $properties = drupal_parse_info_file($file->uri);
+      $properties['info file'] = $file->uri;
+      $libraries[$machine_name] = $properties;
+    }
+
+    // Provide defaults.
+    foreach ($libraries as $machine_name => &$properties) {
+      libraries_info_defaults($properties, $machine_name);
+    }
+
+    // Allow modules to alter the registered libraries.
+    drupal_alter('libraries_info', $libraries);
+
+    // Invoke callbacks in the 'info' group.
+    foreach ($libraries as &$properties) {
+      libraries_invoke('info', $properties);
+    }
+  }
+
+  if (isset($name)) {
+    if (!empty($libraries[$name])) {
+      return $libraries[$name];
+    }
+    else {
+      $false = FALSE;
+      return $false;
+    }
+  }
+  return $libraries;
+}
+
+/**
+ * Applies default properties to a library definition.
+ *
+ * @library
+ *   An array of library information, passed by reference.
+ * @name
+ *   The machine name of the passed-in library.
+ */
+function libraries_info_defaults(&$library, $name) {
+  $library += array(
+    'machine name' => $name,
+    'name' => $name,
+    'vendor url' => '',
+    'download url' => '',
+    'path' => '',
+    'library path' => NULL,
+    'version callback' => 'libraries_get_version',
+    'version arguments' => array(),
+    'files' => array(),
+    'dependencies' => array(),
+    'variants' => array(),
+    'versions' => array(),
+    'integration files' => array(),
+    'callbacks' => array(),
+  );
+  $library['callbacks'] += array(
+    'info' => array(),
+    'pre-detect' => array(),
+    'post-detect' => array(),
+    'pre-dependencies-load' => array(),
+    'pre-load' => array(),
+    'post-load' => array(),
+  );
+
+  // Add our own callbacks before any others.
+  array_unshift($library['callbacks']['info'], 'libraries_prepare_files');
+  array_unshift($library['callbacks']['post-detect'], 'libraries_detect_dependencies');
+
+  return $library;
+}
+
+/**
+ * Tries to detect a library and its installed version.
+ *
+ * @param $name
+ *   The machine name of a library to return registered information for.
+ *
+ * @return array|false
+ *   An associative array containing registered information for the library
+ *   specified by $name, or FALSE if the library $name is not registered.
+ *   In addition to the keys returned by libraries_info(), the following keys
+ *   are contained:
+ *   - installed: A boolean indicating whether the library is installed. Note
+ *     that not only the top-level library, but also each variant contains this
+ *     key.
+ *   - version: If the version could be detected, the full version string.
+ *   - error: If an error occurred during library detection, one of the
+ *     following error statuses: "not found", "not detected", "not supported".
+ *   - error message: If an error occurred during library detection, a detailed
+ *     error message.
+ *
+ * @see libraries_info()
+ */
+function libraries_detect($name) {
+  // Re-use the statically cached value of libraries_info() to save memory.
+  $library = &libraries_info($name);
+
+  if ($library === FALSE) {
+    return $library;
+  }
+  // If 'installed' is set, library detection ran already.
+  if (isset($library['installed'])) {
+    return $library;
+  }
+
+  $library['installed'] = FALSE;
+
+  // Check whether the library exists.
+  if (!isset($library['library path'])) {
+    $library['library path'] = libraries_get_path($library['machine name']);
+  }
+  if ($library['library path'] === FALSE || !file_exists($library['library path'])) {
+    $library['error'] = 'not found';
+    $library['error message'] = t('The %library library could not be found.', array(
+      '%library' => $library['name'],
+    ));
+    return $library;
+  }
+
+  // Invoke callbacks in the 'pre-detect' group.
+  libraries_invoke('pre-detect', $library);
+
+  // Detect library version, if not hardcoded.
+  if (!isset($library['version'])) {
+    // We support both a single parameter, which is an associative array, and an
+    // indexed array of multiple parameters.
+    if (isset($library['version arguments'][0])) {
+      // Add the library as the first argument.
+      $library['version'] = call_user_func_array($library['version callback'], array_merge(array($library), $library['version arguments']));
+    }
+    else {
+      $library['version'] = $library['version callback']($library, $library['version arguments']);
+    }
+    if (empty($library['version'])) {
+      $library['error'] = 'not detected';
+      $library['error message'] = t('The version of the %library library could not be detected.', array(
+        '%library' => $library['name'],
+      ));
+      return $library;
+    }
+  }
+
+  // Determine to which supported version the installed version maps.
+  if (!empty($library['versions'])) {
+    ksort($library['versions']);
+    $version = 0;
+    foreach ($library['versions'] as $supported_version => $version_properties) {
+      if (version_compare($library['version'], $supported_version, '>=')) {
+        $version = $supported_version;
+      }
+    }
+    if (!$version) {
+      $library['error'] = 'not supported';
+      $library['error message'] = t('The installed version %version of the %library library is not supported.', array(
+        '%version' => $library['version'],
+        '%library' => $library['name'],
+      ));
+      return $library;
+    }
+
+    // Apply version specific definitions and overrides.
+    $library = array_merge($library, $library['versions'][$version]);
+    unset($library['versions']);
+  }
+
+  // Check each variant if it is installed.
+  if (!empty($library['variants'])) {
+    foreach ($library['variants'] as $variant_name => &$variant) {
+      // If no variant callback has been set, assume the variant to be
+      // installed.
+      if (!isset($variant['variant callback'])) {
+        $variant['installed'] = TRUE;
+      }
+      else {
+        // We support both a single parameter, which is an associative array,
+        // and an indexed array of multiple parameters.
+        if (isset($variant['variant arguments'][0])) {
+          // Add the library as the first argument, and the variant name as the second.
+          $variant['installed'] = call_user_func_array($variant['variant callback'], array_merge(array($library, $variant_name), $variant['variant arguments']));
+        }
+        else {
+          $variant['installed'] = $variant['variant callback']($library, $variant_name, $variant['variant arguments']);
+        }
+        if (!$variant['installed']) {
+          $variant['error'] = 'not found';
+          $variant['error message'] = t('The %variant variant of the %library library could not be found.', array(
+            '%variant' => $variant_name,
+            '%library' => $library['name'],
+          ));
+        }
+      }
+    }
+  }
+
+  // If we end up here, the library should be usable.
+  $library['installed'] = TRUE;
+
+  // Invoke callbacks in the 'post-detect' group.
+  libraries_invoke('post-detect', $library);
+
+  return $library;
+}
+
+/**
+ * Loads a library.
+ *
+ * @param $name
+ *   The name of the library to load.
+ * @param $variant
+ *   The name of the variant to load. Note that only one variant of a library
+ *   can be loaded within a single request. The variant that has been passed
+ *   first is used; different variant names in subsequent calls are ignored.
+ *
+ * @return
+ *   An associative array of the library information as returned from
+ *   libraries_info(). The top-level properties contain the effective definition
+ *   of the library (variant) that has been loaded. Additionally:
+ *   - installed: Whether the library is installed, as determined by
+ *     libraries_detect_library().
+ *   - loaded: Either the amount of library files that have been loaded, or
+ *     FALSE if the library could not be loaded.
+ *   See hook_libraries_info() for more information.
+ */
+function libraries_load($name, $variant = NULL) {
+  $loaded = &drupal_static(__FUNCTION__, array());
+
+  if (!isset($loaded[$name])) {
+    $library = cache_get($name, 'cache_libraries');
+    if ($library) {
+      $library = $library->data;
+    }
+    else {
+      $library = libraries_detect($name);
+      cache_set($name, $library, 'cache_libraries');
+    }
+
+    // If a variant was specified, override the top-level properties with the
+    // variant properties.
+    if (isset($variant)) {
+      // Ensure that the $variant key exists, and if it does not, set its
+      // 'installed' property to FALSE by default. This will prevent the loading
+      // of the library files below.
+      $library['variants'] += array($variant => array('installed' => FALSE));
+      $library = array_merge($library, $library['variants'][$variant]);
+    }
+    // Regardless of whether a specific variant was requested or not, there can
+    // only be one variant of a library within a single request.
+    unset($library['variants']);
+
+    // Invoke callbacks in the 'pre-dependencies-load' group.
+    libraries_invoke('pre-dependencies-load', $library);
+
+    // If the library (variant) is installed, load it.
+    $library['loaded'] = FALSE;
+    if ($library['installed']) {
+      // Load library dependencies.
+      if (isset($library['dependencies'])) {
+        foreach ($library['dependencies'] as $dependency) {
+          libraries_load($dependency);
+        }
+      }
+
+      // Invoke callbacks in the 'pre-load' group.
+      libraries_invoke('pre-load', $library);
+
+      // Load all the files associated with the library.
+      $library['loaded'] = libraries_load_files($library);
+
+      // Invoke callbacks in the 'post-load' group.
+      libraries_invoke('post-load', $library);
+    }
+    $loaded[$name] = $library;
+  }
+
+  return $loaded[$name];
+}
+
+/**
+ * Loads a library's files.
+ *
+ * @param $library
+ *   An array of library information as returned by libraries_info().
+ *
+ * @return
+ *   The number of loaded files.
+ */
+function libraries_load_files($library) {
+  // Load integration files.
+  if (!empty($library['integration files'])) {
+    foreach ($library['integration files'] as $module => $files) {
+      libraries_load_files(array(
+        'files' => $files,
+        'path' => '',
+        'library path' => drupal_get_path('module', $module),
+      ));
+    }
+  }
+
+  // Construct the full path to the library for later use.
+  $path = $library['library path'];
+  $path = ($library['path'] !== '' ? $path . '/' . $library['path'] : $path);
+
+  // Count the number of loaded files for the return value.
+  $count = 0;
+
+  // Load both the JavaScript and the CSS files.
+  // The parameters for drupal_add_js() and drupal_add_css() require special
+  // handling.
+  // @see drupal_process_attached()
+  foreach (array('js', 'css') as $type) {
+    if (!empty($library['files'][$type])) {
+      foreach ($library['files'][$type] as $data => $options) {
+        // If the value is not an array, it's a filename and passed as first
+        // (and only) argument.
+        if (!is_array($options)) {
+          $data = $options;
+          $options = array();
+        }
+        // In some cases, the first parameter ($data) is an array. Arrays can't
+        // be passed as keys in PHP, so we have to get $data from the value
+        // array.
+        if (is_numeric($data)) {
+          $data = $options['data'];
+          unset($options['data']);
+        }
+        // Prepend the library path to the file name.
+        $data = "$path/$data";
+        // Apply the default group if the group isn't explicitly given.
+        if (!isset($options['group'])) {
+          $options['group'] = ($type == 'js') ? JS_DEFAULT : CSS_DEFAULT;
+        }
+        call_user_func('drupal_add_' . $type, $data, $options);
+        $count++;
+      }
+    }
+  }
+
+  // Load PHP files.
+  if (!empty($library['files']['php'])) {
+    foreach ($library['files']['php'] as $file => $array) {
+      $file_path = DRUPAL_ROOT . '/' . $path . '/' . $file;
+      if (file_exists($file_path)) {
+        require_once $file_path;
+        $count++;
+      }
+    }
+  }
+
+  return $count;
+}
+
+/**
+ * Gets the version information from an arbitrary library.
+ *
+ * @param $library
+ *   An associative array containing all information about the library.
+ * @param $options
+ *   An associative array containing with the following keys:
+ *   - file: The filename to parse for the version, relative to the library
+ *     path. For example: 'docs/changelog.txt'.
+ *   - pattern: A string containing a regular expression (PCRE) to match the
+ *     library version. For example: '@version\s+([0-9a-zA-Z\.-]+)@'. Note that
+ *     the returned version is not the match of the entire pattern (i.e.
+ *     '@version 1.2.3' in the above example) but the match of the first
+ *     sub-pattern (i.e. '1.2.3' in the above example).
+ *   - lines: (optional) The maximum number of lines to search the pattern in.
+ *     Defaults to 20.
+ *   - cols: (optional) The maximum number of characters per line to take into
+ *     account. Defaults to 200. In case of minified or compressed files, this
+ *     prevents reading the entire file into memory.
+ *
+ * @return
+ *   A string containing the version of the library.
+ *
+ * @see libraries_get_path()
+ */
+function libraries_get_version($library, $options) {
+  // Provide defaults.
+  $options += array(
+    'file' => '',
+    'pattern' => '',
+    'lines' => 20,
+    'cols' => 200,
+  );
+
+  $file = DRUPAL_ROOT . '/' . $library['library path'] . '/' . $options['file'];
+  if (empty($options['file']) || !file_exists($file)) {
+    return;
+  }
+  $file = fopen($file, 'r');
+  while ($options['lines'] && $line = fgets($file, $options['cols'])) {
+    if (preg_match($options['pattern'], $line, $version)) {
+      fclose($file);
+      return $version[1];
+    }
+    $options['lines']--;
+  }
+  fclose($file);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,42 @@
+
+Example library
+
+Version 1
+
+This file is an example file to test version detection.
+
+The various other files in this directory are to test the loading of JavaScript,
+CSS and PHP files.
+- JavaScript: The filenames of the JavaScript files are asserted to be in the
+  raw HTML via SimpleTest. Since the filename could appear, for instance, in an
+  error message, this is not very robust. Explicit testing of JavaScript,
+  though, is not yet possible with SimpleTest. To allow for easier debugging, we
+  place the following text on the page:
+  "If this text shows up, no JavaScript test file was loaded."
+  This text is replaced via JavaScript by a text of the form:
+  "If this text shows up, [[file] was loaded successfully."
+  [file] is either 'example_1.js', 'example_2.js', 'example_3.js',
+  'example_4.js' or 'libraries_test.js'. If you have SimpleTest's verbose mode
+  enabled and see the above text in one of the debug pages, the noted JavaScript
+  file was loaded successfully.
+- CSS: The filenames of the CSS files are asserted to be in the raw HTML via
+  SimpleTest. Since the filename could appear, for instance, in an error
+  message, this is not very robust. Explicit testing of CSS, though, is not yet
+  possible with SimpleTest. Hence, the CSS files, if loaded, make the following
+  text a certain color:
+  "If one of the CSS test files has been loaded, this text will be colored:
+  - example_1: red
+  - example_2: green
+  - example_3: orange
+  - example_4: blue
+  - libraries_test: purple"
+  If you have SimpleTest's verbose mode enabled, and see the above text in a
+  certain color (i.e. not in black), a CSS file was loaded successfully. Which
+  file depends on the color as referenced in the text above.
+- PHP: The loading of PHP files is tested by defining a dummy function in the
+  PHP files and then checking whether this function was defined using
+  function_exists(). This can be checked programatically with SimpleTest.
+The loading of integration files is tested with the same method. The integration
+files are libraries_test.js, libraries_test.css, libraries_test.inc and are
+located in the tests directory alongside libraries_test.module (i.e. they are
+not in the same directory as this file).
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_1.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+
+/**
+ * @file
+ * Test CSS file for Libraries loading.
+ *
+ * Color the 'libraries-test-css' div red. See README.txt for more information.
+ */
+
+.libraries-test-css {
+  color: red;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_1.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+
+/**
+ * @file
+ * Test JavaScript file for Libraries loading.
+ *
+ * Replace the text in the 'libraries-test-javascript' div. See README.txt for
+ * more information.
+ */
+
+(function ($) {
+
+Drupal.behaviors.librariesTest = {
+  attach: function(context, settings) {
+    $('.libraries-test-javascript').text('If this text shows up, example_1.js was loaded successfully.')
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_1.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Test PHP file for Libraries loading.
+ */
+
+/**
+ * Dummy function to see if this file was loaded.
+ */
+function _libraries_test_example_1() {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_2.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+
+/**
+ * @file
+ * Test CSS file for Libraries loading.
+ *
+ * Color the 'libraries-test-css' div green. See README.txt for more information.
+ */
+
+.libraries-test-css {
+  color: green;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_2.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+
+/**
+ * @file
+ * Test JavaScript file for Libraries loading.
+ *
+ * Replace the text in the 'libraries-test-javascript' div. See README.txt for
+ * more information.
+ */
+
+(function ($) {
+
+Drupal.behaviors.librariesTest = {
+  attach: function(context, settings) {
+    $('.libraries-test-javascript').text('If this text shows up, example_2.js was loaded successfully.')
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_2.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Test PHP file for Libraries loading.
+ */
+
+/**
+ * Dummy function to see if this file was loaded.
+ */
+function _libraries_test_example_2() {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_3.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+
+/**
+ * @file
+ * Test CSS file for Libraries loading.
+ *
+ * Color the 'libraries-test-css' div orange. See README.txt for more information.
+ */
+
+.libraries-test-css {
+  color: orange;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_3.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+
+/**
+ * @file
+ * Test JavaScript file for Libraries loading.
+ *
+ * Replace the text in the 'libraries-test-javascript' div. See README.txt for
+ * more information.
+ */
+
+(function ($) {
+
+Drupal.behaviors.librariesTest = {
+  attach: function(context, settings) {
+    $('.libraries-test-javascript').text('If this text shows up, example_3.js was loaded successfully.')
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_3.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Test PHP file for Libraries loading.
+ */
+
+/**
+ * Dummy function to see if this file was loaded.
+ */
+function _libraries_test_example_3() {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_4.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+
+/**
+ * @file
+ * Test CSS file for Libraries loading.
+ *
+ * Color the 'libraries-test-css' div blue. See README.txt for more information.
+ */
+
+.libraries-test-css {
+  color: blue;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_4.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+
+/**
+ * @file
+ * Test JavaScript file for Libraries loading.
+ *
+ * Replace the text in the 'libraries-test-javascript' div. See README.txt for
+ * more information.
+ */
+
+(function ($) {
+
+Drupal.behaviors.librariesTest = {
+  attach: function(context, settings) {
+    $('.libraries-test-javascript').text('If this text shows up, example_4.js was loaded successfully.')
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_4.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+<?php
+
+/**
+ * @file
+ * Test PHP file for Libraries loading.
+ */
+
+/**
+ * Dummy function to see if this file was loaded.
+ */
+function _libraries_test_example_4() {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/example/example_info_file.libraries.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+
+; This is an example info file of a library used for testing purposes.
+name = Example info file
+
+
+; Information added by drupal.org packaging script on 2013-03-09
+version = "7.x-2.1"
+core = "7.x"
+project = "libraries"
+datestamp = "1362848412"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,537 @@
+<?php
+
+/**
+ * @file
+ * Tests for Libraries API.
+ */
+
+/**
+ * Tests basic Libraries API functions.
+ */
+class LibrariesUnitTestCase extends DrupalUnitTestCase {
+  public static function getInfo() {
+    return array(
+      'name' => 'Libraries API unit tests',
+      'description' => 'Tests basic functions provided by Libraries API.',
+      'group' => 'Libraries API',
+    );
+  }
+
+  function setUp() {
+    drupal_load('module', 'libraries');
+    parent::setUp();
+  }
+
+  /**
+   * Tests libraries_get_path().
+   */
+  function testLibrariesGetPath() {
+    // Note that, even though libraries_get_path() doesn't find the 'example'
+    // library, we are able to make it 'installed' by specifying the 'library
+    // path' up-front. This is only used for testing purposed and is strongly
+    // discouraged as it defeats the purpose of Libraries API in the first
+    // place.
+    $this->assertEqual(libraries_get_path('example'), FALSE, 'libraries_get_path() returns FALSE for a missing library.');
+  }
+
+  /**
+   * Tests libraries_prepare_files().
+   */
+  function testLibrariesPrepareFiles() {
+    $expected = array(
+      'files' => array(
+        'js' => array('example.js' => array()),
+        'css' => array('example.css' => array()),
+        'php' => array('example.php' => array()),
+      ),
+    );
+    $library = array(
+      'files' => array(
+        'js' => array('example.js'),
+        'css' => array('example.css'),
+        'php' => array('example.php'),
+      ),
+    );
+    libraries_prepare_files($library, NULL, NULL);
+    $this->assertEqual($expected, $library, 'libraries_prepare_files() works correctly.');
+  }
+}
+
+/**
+ * Tests basic detection and loading of libraries.
+ */
+class LibrariesTestCase extends DrupalWebTestCase {
+  protected $profile = 'testing';
+
+  public static function getInfo() {
+    return array(
+      'name' => 'Libraries detection and loading',
+      'description' => 'Tests detection and loading of libraries.',
+      'group' => 'Libraries API',
+    );
+  }
+
+  function setUp() {
+    parent::setUp('libraries', 'libraries_test');
+  }
+
+  /**
+   * Tests libraries_detect_dependencies().
+   */
+  function testLibrariesDetectDependencies() {
+    $library = array(
+      'name' => 'Example',
+      'dependencies' => array('example_missing'),
+    );
+    libraries_detect_dependencies($library);
+    $this->assertEqual($library['error'], 'missing dependency', 'libraries_detect_dependencies() detects missing dependency');
+    $error_message = t('The %dependency library, which the %library library depends on, is not installed.', array(
+      '%dependency' => 'Example missing',
+      '%library' => $library['name'],
+    ));
+    $this->verbose("Expected:<br>$error_message");
+    $this->verbose('Actual:<br>' . $library['error message']);
+    $this->assertEqual($library['error message'], $error_message, 'Correct error message for a missing dependency');
+    // Test versioned dependencies.
+    $version = '1.1';
+    $compatible = array(
+      '1.1',
+      '<=1.1',
+      '>=1.1',
+      '<1.2',
+      '<2.0',
+      '>1.0',
+      '>1.0-rc1',
+      '>1.0-beta2',
+      '>1.0-alpha3',
+      '>0.1',
+      '<1.2, >1.0',
+      '>0.1, <=1.1',
+    );
+    $incompatible = array(
+      '1.2',
+      '2.0',
+      '<1.1',
+      '>1.1',
+      '<=1.0',
+      '<=1.0-rc1',
+      '<=1.0-beta2',
+      '<=1.0-alpha3',
+      '>=1.2',
+      '<1.1, >0.9',
+      '>=0.1, <1.1',
+    );
+    $library = array(
+      'name' => 'Example',
+    );
+    foreach ($compatible as $version_string) {
+      $library['dependencies'][0] = "example_dependency ($version_string)";
+      // libraries_detect_dependencies() is a post-detect callback, so
+      // 'installed' is already set, when it is called. It sets the value to
+      // FALSE for missing or incompatible dependencies.
+      $library['installed'] = TRUE;
+      libraries_detect_dependencies($library);
+      $this->assertTrue($library['installed'], "libraries_detect_dependencies() detects compatible version string: '$version_string' is compatible with '$version'");
+    }
+    foreach ($incompatible as $version_string) {
+      $library['dependencies'][0] = "example_dependency ($version_string)";
+      $library['installed'] = TRUE;
+      unset($library['error'], $library['error message']);
+      libraries_detect_dependencies($library);
+      $this->assertEqual($library['error'], 'incompatible dependency', "libraries_detect_dependencies() detects incompatible version strings: '$version_string' is incompatible with '$version'");
+    }
+    // Instead of repeating this assertion for each version string, we just
+    // re-use the $library variable from the foreach loop.
+    $error_message = t('The version %dependency_version of the %dependency library is not compatible with the %library library.', array(
+      '%dependency_version' => $version,
+      '%dependency' => 'Example dependency',
+      '%library' => $library['name'],
+    ));
+    $this->verbose("Expected:<br>$error_message");
+    $this->verbose('Actual:<br>' . $library['error message']);
+    $this->assertEqual($library['error message'], $error_message, 'Correct error message for an incompatible dependency');
+  }
+
+  /**
+   * Tests libraries_scan_info_files().
+   */
+  function testLibrariesScanInfoFiles() {
+    $expected = array('example_info_file' => (object) array(
+      'uri' => drupal_get_path('module', 'libraries') . '/tests/example/example_info_file.libraries.info',
+      'filename' => 'example_info_file.libraries.info',
+      'name' => 'example_info_file.libraries',
+    ));
+    $this->assertEqual(libraries_scan_info_files(), $expected, 'libraries_scan_info_files() correctly finds the example info file.');
+    $this->verbose('<pre>' . var_export(libraries_scan_info_files(), TRUE) . '</pre>');
+  }
+
+  /**
+   * Tests libraries_info().
+   */
+  function testLibrariesInfo() {
+    // Test that library information is found correctly.
+    $expected = array(
+      'name' => 'Example files',
+      'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+      'version' => '1',
+      'files' => array(
+        'js' => array('example_1.js' => array()),
+        'css' => array('example_1.css' => array()),
+        'php' => array('example_1.php' => array()),
+      ),
+      'module' => 'libraries_test',
+    );
+    libraries_info_defaults($expected, 'example_files');
+    $library = libraries_info('example_files');
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Library information is correctly gathered.');
+
+    // Test a library specified with an .info file gets detected.
+    $expected = array(
+      'name' => 'Example info file',
+      'info file' => drupal_get_path('module', 'libraries_test') . '/example/example_info_file.libraries.info',
+    );
+    libraries_info_defaults($expected, 'example_info_file');
+    $library = libraries_info('example_info_file');
+    // If this module was downloaded from Drupal.org, the Drupal.org packaging
+    // system has corrupted the test info file.
+    // @see http://drupal.org/node/1606606
+    unset($library['core'], $library['datestamp'], $library['project'], $library['version']);
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Library specified with an .info file found');
+  }
+
+  /**
+   * Tests libraries_detect().
+   */
+  function testLibrariesDetect() {
+    // Test missing library.
+    $library = libraries_detect('example_missing');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['error'], 'not found', 'Missing library not found.');
+    $error_message = t('The %library library could not be found.', array(
+      '%library' => $library['name'],
+    ));
+    $this->assertEqual($library['error message'], $error_message, 'Correct error message for a missing library.');
+
+    // Test unknown library version.
+    $library = libraries_detect('example_undetected_version');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['error'], 'not detected', 'Undetected version detected as such.');
+    $error_message = t('The version of the %library library could not be detected.', array(
+      '%library' => $library['name'],
+    ));
+    $this->assertEqual($library['error message'], $error_message, 'Correct error message for a library with an undetected version.');
+
+    // Test unsupported library version.
+    $library = libraries_detect('example_unsupported_version');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['error'], 'not supported', 'Unsupported version detected as such.');
+    $error_message = t('The installed version %version of the %library library is not supported.', array(
+      '%version' => $library['version'],
+      '%library' => $library['name'],
+    ));
+    $this->assertEqual($library['error message'], $error_message, 'Correct error message for a library with an unsupported version.');
+
+    // Test supported library version.
+    $library = libraries_detect('example_supported_version');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['installed'], TRUE, 'Supported library version found.');
+
+    // Test libraries_get_version().
+    $library = libraries_detect('example_default_version_callback');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['version'], '1', 'Expected version returned by default version callback.');
+
+    // Test a multiple-parameter version callback.
+    $library = libraries_detect('example_multiple_parameter_version_callback');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['version'], '1', 'Expected version returned by multiple parameter version callback.');
+
+    // Test a top-level files property.
+    $library = libraries_detect('example_files');
+    $files = array(
+      'js' => array('example_1.js' => array()),
+      'css' => array('example_1.css' => array()),
+      'php' => array('example_1.php' => array()),
+    );
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['files'], $files, 'Top-level files property works.');
+
+    // Test version-specific library files.
+    $library = libraries_detect('example_versions');
+    $files = array(
+      'js' => array('example_2.js' => array()),
+      'css' => array('example_2.css' => array()),
+      'php' => array('example_2.php' => array()),
+    );
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['files'], $files, 'Version-specific library files found.');
+
+    // Test missing variant.
+    $library = libraries_detect('example_variant_missing');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['variants']['example_variant']['error'], 'not found', 'Missing variant not found');
+    $error_message = t('The %variant variant of the %library library could not be found.', array(
+      '%variant' => 'example_variant',
+      '%library' => 'Example variant missing',
+    ));
+    $this->assertEqual($library['variants']['example_variant']['error message'], $error_message, 'Correct error message for a missing variant.');
+
+    // Test existing variant.
+    $library = libraries_detect('example_variant');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['variants']['example_variant']['installed'], TRUE, 'Existing variant found.');
+  }
+
+  /**
+   * Tests libraries_load().
+   */
+  function testLibrariesLoad() {
+    // Test dependencies.
+    $library = libraries_load('example_dependency_missing');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertFalse($library['loaded'], 'Library with missing dependency cannot be loaded');
+    $library = libraries_load('example_dependency_incompatible');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertFalse($library['loaded'], 'Library with incompatible dependency cannot be loaded');
+    $library = libraries_load('example_dependency_compatible');
+    $this->verbose('<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library['loaded'], 1, 'Library with compatible dependency is loaded');
+    $loaded = &drupal_static('libraries_load');
+    $this->verbose('<pre>' . var_export($loaded, TRUE) . '</pre>');
+    $this->assertEqual($loaded['example_dependency']['loaded'], 1, 'Dependency library is also loaded');
+  }
+
+  /**
+   * Tests the applying of callbacks.
+   */
+  function testCallbacks() {
+    $expected = array(
+      'name' => 'Example callback',
+      'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+      'version' => '1',
+      'versions' => array(
+        '1' => array(
+          'variants' => array(
+            'example_variant' => array(
+              'info callback' => 'not applied',
+              'pre-detect callback' => 'not applied',
+              'post-detect callback' => 'not applied',
+              'pre-dependencies-load callback' => 'not applied',
+              'pre-load callback' => 'not applied',
+              'post-load callback' => 'not applied',
+            ),
+          ),
+          'info callback' => 'not applied',
+          'pre-detect callback' => 'not applied',
+          'post-detect callback' => 'not applied',
+          'pre-dependencies-load callback' => 'not applied',
+          'pre-load callback' => 'not applied',
+          'post-load callback' => 'not applied',
+        ),
+      ),
+      'variants' => array(
+        'example_variant' => array(
+          'info callback' => 'not applied',
+          'pre-detect callback' => 'not applied',
+          'post-detect callback' => 'not applied',
+          'pre-dependencies-load callback' => 'not applied',
+          'pre-load callback' => 'not applied',
+          'post-load callback' => 'not applied',
+        ),
+      ),
+      'callbacks' => array(
+        'info' => array('_libraries_test_info_callback'),
+        'pre-detect' => array('_libraries_test_pre_detect_callback'),
+        'post-detect' => array('_libraries_test_post_detect_callback'),
+        'pre-dependencies-load' => array('_libraries_test_pre_dependencies_load_callback'),
+        'pre-load' => array('_libraries_test_pre_load_callback'),
+        'post-load' => array('_libraries_test_post_load_callback'),
+      ),
+      'info callback' => 'not applied',
+      'pre-detect callback' => 'not applied',
+      'post-detect callback' => 'not applied',
+      'pre-dependencies-load callback' => 'not applied',
+      'pre-load callback' => 'not applied',
+      'post-load callback' => 'not applied',
+      'module' => 'libraries_test',
+    );
+    libraries_info_defaults($expected, 'example_callback');
+
+    // Test a callback in the 'info' group.
+    $expected['info callback'] = 'applied (top-level)';
+    $expected['versions']['1']['info callback'] = 'applied (version 1)';
+    $expected['versions']['1']['variants']['example_variant']['info callback'] = 'applied (version 1, variant example_variant)';
+    $expected['variants']['example_variant']['info callback'] = 'applied (variant example_variant)';
+    $library = libraries_info('example_callback');
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Prepare callback was applied correctly.');
+
+    // Test a callback in the 'pre-detect' and 'post-detect' phases.
+    // Successfully detected libraries should only contain version information
+    // for the detected version and thus, be marked as installed.
+    unset($expected['versions']);
+    $expected['installed'] = TRUE;
+    // Additionally, version-specific properties of the detected version are
+    // supposed to override the corresponding top-level properties.
+    $expected['info callback'] = 'applied (version 1)';
+    $expected['variants']['example_variant']['installed'] = TRUE;
+    $expected['variants']['example_variant']['info callback'] = 'applied (version 1, variant example_variant)';
+    // Version-overloading takes place after the 'pre-detect' callbacks have
+    // been applied.
+    $expected['pre-detect callback'] = 'applied (version 1)';
+    $expected['post-detect callback'] = 'applied (top-level)';
+    $expected['variants']['example_variant']['pre-detect callback'] = 'applied (version 1, variant example_variant)';
+    $expected['variants']['example_variant']['post-detect callback'] = 'applied (variant example_variant)';
+    $library = libraries_detect('example_callback');
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Detect callback was applied correctly.');
+
+    // Test a callback in the 'pre-dependencies-load', 'pre-load' and
+    // 'post-load' phases.
+    // Successfully loaded libraries should only contain information about the
+    // already loaded variant.
+    unset($expected['variants']);
+    $expected['loaded'] = 0;
+    $expected['pre-dependencies-load callback'] = 'applied (top-level)';
+    $expected['pre-load callback'] = 'applied (top-level)';
+    $expected['post-load callback'] = 'applied (top-level)';
+    $library = libraries_load('example_callback');
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Pre-load and post-load callbacks were applied correctly.');
+    // This is not recommended usually and is only used for testing purposes.
+    drupal_static_reset('libraries_load');
+    // Successfully loaded library variants are supposed to contain the specific
+    // variant information only.
+    $expected['info callback'] = 'applied (version 1, variant example_variant)';
+    $expected['pre-detect callback'] = 'applied (version 1, variant example_variant)';
+    $expected['post-detect callback'] = 'applied (variant example_variant)';
+    $library = libraries_load('example_callback', 'example_variant');
+    $this->verbose('Expected:<pre>' . var_export($expected, TRUE) . '</pre>');
+    $this->verbose('Actual:<pre>' . var_export($library, TRUE) . '</pre>');
+    $this->assertEqual($library, $expected, 'Pre-detect and post-detect callbacks were applied correctly to a variant.');
+  }
+
+  /**
+   * Tests that library files are properly added to the page output.
+   *
+   * We check for JavaScript and CSS files directly in the DOM and add a list of
+   * included PHP files manually to the page output.
+   *
+   * @see _libraries_test_load()
+   */
+  function testLibrariesOutput() {
+    // Test loading of a simple library with a top-level files property.
+    $this->drupalGet('libraries_test/files');
+    $this->assertLibraryFiles('example_1', 'File loading');
+
+    // Test loading of integration files.
+    $this->drupalGet('libraries_test/integration_files');
+    $this->assertRaw('libraries_test.js', 'Integration file loading: libraries_test.js found');
+    $this->assertRaw('libraries_test.css', 'Integration file loading: libraries_test.css found');
+    $this->assertRaw('libraries_test.inc', 'Integration file loading: libraries_test.inc found');
+
+    // Test version overloading.
+    $this->drupalGet('libraries_test/versions');
+    $this->assertLibraryFiles('example_2', 'Version overloading');
+
+    // Test variant loading.
+    $this->drupalGet('libraries_test/variant');
+    $this->assertLibraryFiles('example_3', 'Variant loading');
+
+    // Test version overloading and variant loading.
+    $this->drupalGet('libraries_test/versions_and_variants');
+    $this->assertLibraryFiles('example_4', 'Concurrent version and variant overloading');
+
+    // Test caching.
+    variable_set('libraries_test_cache', TRUE);
+    cache_clear_all('example_callback', 'cache_libraries');
+    // When the library information is not cached, all callback groups should be
+    // invoked.
+    $this->drupalGet('libraries_test/cache');
+    $this->assertRaw('The <em>info</em> callback group was invoked.', 'Info callback invoked for uncached libraries.');
+    $this->assertRaw('The <em>pre-detect</em> callback group was invoked.', 'Pre-detect callback invoked for uncached libraries.');
+    $this->assertRaw('The <em>post-detect</em> callback group was invoked.', 'Post-detect callback invoked for uncached libraries.');
+    $this->assertRaw('The <em>pre-load</em> callback group was invoked.', 'Pre-load callback invoked for uncached libraries.');
+    $this->assertRaw('The <em>post-load</em> callback group was invoked.', 'Post-load callback invoked for uncached libraries.');
+    // When the library information is cached only the 'pre-load' and
+    // 'post-load' callback groups should be invoked.
+    $this->drupalGet('libraries_test/cache');
+    $this->assertNoRaw('The <em>info</em> callback group was not invoked.', 'Info callback not invoked for cached libraries.');
+    $this->assertNoRaw('The <em>pre-detect</em> callback group was not invoked.', 'Pre-detect callback not invoked for cached libraries.');
+    $this->assertNoRaw('The <em>post-detect</em> callback group was not invoked.', 'Post-detect callback not invoked for cached libraries.');
+    $this->assertRaw('The <em>pre-load</em> callback group was invoked.', 'Pre-load callback invoked for cached libraries.');
+    $this->assertRaw('The <em>post-load</em> callback group was invoked.', 'Post-load callback invoked for cached libraries.');
+    variable_set('libraries_test_cache', FALSE);
+  }
+
+  /**
+   * Helper function to assert that a library was correctly loaded.
+   *
+   * Asserts that all the correct files were loaded and all the incorrect ones
+   * were not.
+   *
+   * @param $name
+   *   The name of the files that should be loaded. The current testing system
+   *   knows of 'example_1', 'example_2', 'example_3' and 'example_4'. Each name
+   *   has an associated JavaScript, CSS and PHP file that will be asserted. All
+   *   other files will be asserted to not be loaded. See
+   *   tests/example/README.txt for more information on how the loading of the
+   *   files is tested.
+   * @param $label
+   *   (optional) A label to prepend to the assertion messages, to make them
+   *   less ambiguous.
+   * @param $extensions
+   *   (optional) The expected file extensions of $name. Defaults to
+   *   array('js', 'css', 'php').
+   */
+  function assertLibraryFiles($name, $label = '', $extensions = array('js', 'css', 'php')) {
+    $label = ($label !== '' ? "$label: " : '');
+
+    // Test that the wrong files are not loaded...
+    $names = array(
+      'example_1' => FALSE,
+      'example_2' => FALSE,
+      'example_3' => FALSE,
+      'example_4' => FALSE,
+    );
+    // ...and the correct ones are.
+    $names[$name] = TRUE;
+
+    // Test for the specific HTML that the different file types appear as in the
+    // DOM.
+    $html = array(
+      'js' => array('<script type="text/javascript" src="', '"></script>'),
+      'css' => array('@import url("', '");'),
+      // PHP files do not get added to the DOM directly.
+      // @see _libraries_test_load()
+      'php' => array('<li>', '</li>'),
+    );
+
+    foreach ($names as $name => $expected) {
+      foreach ($extensions as $extension) {
+        $filepath = drupal_get_path('module', 'libraries_test') . "/example/$name.$extension";
+        // JavaScript and CSS files appear as full URLs and with an appended
+        // query string.
+        if (in_array($extension, array('js', 'css'))) {
+          $filepath = url('', array('absolute' => TRUE)) . $filepath . '?' . variable_get('css_js_query_string');
+        }
+        $raw = $html[$extension][0] . $filepath . $html[$extension][1];
+        if ($expected) {
+          $this->assertRaw($raw, "$label$name.$extension found.");
+        }
+        else {
+          $this->assertNoRaw($raw, "$label$name.$extension not found.");
+        }
+      }
+    }
+  }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries_test.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+
+/**
+ * @file
+ * Test CSS file for Libraries loading.
+ *
+ * Color the 'libraries-test-css' div purple. See README.txt for more
+ * information.
+ */
+
+.libraries-test-css {
+  color: purple;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries_test.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+<?php
+
+/**
+ * @file
+ * Test PHP file for Libraries loading.
+
+/**
+ * Dummy function to see if this file was loaded.
+ */
+function _libraries_test_integration_file() {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries_test.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+name = Libraries test module
+description = Tests library detection and loading.
+core = 7.x
+dependencies[] = libraries
+hidden = TRUE
+
+; Information added by drupal.org packaging script on 2013-03-09
+version = "7.x-2.1"
+core = "7.x"
+project = "libraries"
+datestamp = "1362848412"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries_test.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+
+/**
+ * @file
+ * Test JavaScript file for Libraries loading.
+ *
+ * Replace the text in the 'libraries-test-javascript' div. See README.txt for
+ * more information.
+ */
+
+(function ($) {
+
+Drupal.behaviors.librariesTest = {
+  attach: function(context, settings) {
+    $('.libraries-test-javascript').text('If this text shows up, libraries_test.js was loaded successfully.')
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/libraries/tests/libraries_test.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,569 @@
+<?php
+
+/**
+ * @file
+ * Tests the library detection and loading.
+ */
+
+/**
+ * Implements hook_libraries_info().
+ */
+function libraries_test_libraries_info() {
+  // Test library detection.
+  $libraries['example_missing'] = array(
+    'name' => 'Example missing',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/missing',
+  );
+  $libraries['example_undetected_version'] = array(
+    'name' => 'Example undetected version',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests',
+    'version callback' => '_libraries_test_return_version',
+    'version arguments' => array(FALSE),
+  );
+  $libraries['example_unsupported_version'] = array(
+    'name' => 'Example unsupported version',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests',
+    'version callback' => '_libraries_test_return_version',
+    'version arguments' => array('1'),
+    'versions' => array(
+      '2' => array(),
+    ),
+  );
+
+  $libraries['example_supported_version'] = array(
+    'name' => 'Example supported version',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests',
+    'version callback' => '_libraries_test_return_version',
+    'version arguments' => array('1'),
+    'versions' => array(
+      '1' => array(),
+    ),
+  );
+
+  // Test the default version callback.
+  $libraries['example_default_version_callback'] = array(
+    'name' => 'Example default version callback',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version arguments' => array(
+      'file' => 'README.txt',
+      // Version 1
+      'pattern' => '/Version (\d+)/',
+      'lines' => 5,
+    ),
+  );
+
+  // Test a multiple-parameter version callback.
+  $libraries['example_multiple_parameter_version_callback'] = array(
+    'name' => 'Example multiple parameter version callback',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    // Version 1
+    'version callback' => '_libraries_test_get_version',
+    'version arguments' => array('README.txt', '/Version (\d+)/', 5),
+  );
+
+  // Test a top-level files property.
+  $libraries['example_files'] = array(
+    'name' => 'Example files',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'files' => array(
+      'js' => array('example_1.js'),
+      'css' => array('example_1.css'),
+      'php' => array('example_1.php'),
+    ),
+  );
+
+  // Test loading of integration files.
+  // Normally added by the corresponding module via hook_libraries_info_alter(),
+  // these files should be automatically loaded when the library is loaded.
+  $libraries['example_integration_files'] = array(
+    'name' => 'Example integration files',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'integration files' => array(
+      'libraries_test' => array(
+        'js' => array('libraries_test.js'),
+        'css' => array('libraries_test.css'),
+        'php' => array('libraries_test.inc'),
+      ),
+    ),
+  );
+
+  // Test version overloading.
+  $libraries['example_versions'] = array(
+    'name' => 'Example versions',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '2',
+    'versions' => array(
+      '1' => array(
+        'files' => array(
+          'js' => array('example_1.js'),
+          'css' => array('example_1.css'),
+          'php' => array('example_1.php'),
+        ),
+      ),
+      '2' => array(
+        'files' => array(
+          'js' => array('example_2.js'),
+          'css' => array('example_2.css'),
+          'php' => array('example_2.php'),
+        ),
+      ),
+    ),
+  );
+
+  // Test variant detection.
+  $libraries['example_variant_missing'] = array(
+    'name' => 'Example variant missing',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'variants' => array(
+      'example_variant' => array(
+        'files' => array(
+          'js' => array('example_3.js'),
+          'css' => array('example_3.css'),
+          'php' => array('example_3.php'),
+        ),
+        'variant callback' => '_libraries_test_return_installed',
+        'variant arguments' => array(FALSE),
+      ),
+    ),
+  );
+
+  $libraries['example_variant'] = array(
+    'name' => 'Example variant',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'variants' => array(
+      'example_variant' => array(
+        'files' => array(
+          'js' => array('example_3.js'),
+          'css' => array('example_3.css'),
+          'php' => array('example_3.php'),
+        ),
+        'variant callback' => '_libraries_test_return_installed',
+        'variant arguments' => array(TRUE),
+      ),
+    ),
+  );
+
+  // Test correct behaviour with multiple versions and multiple variants.
+  $libraries['example_versions_and_variants'] = array(
+    'name' => 'Example versions and variants',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '2',
+    'versions' => array(
+      '1' => array(
+        'variants' => array(
+          'example_variant_1' => array(
+            'files' => array(
+              'js' => array('example_1.js'),
+              'css' => array('example_1.css'),
+              'php' => array('example_1.php'),
+            ),
+            'variant callback' => '_libraries_test_return_installed',
+            'variant arguments' => array(TRUE),
+          ),
+          'example_variant_2' => array(
+            'files' => array(
+              'js' => array('example_2.js'),
+              'css' => array('example_2.css'),
+              'php' => array('example_2.php'),
+            ),
+            'variant callback' => '_libraries_test_return_installed',
+            'variant arguments' => array(TRUE),
+          ),
+        ),
+      ),
+      '2' => array(
+        'variants' => array(
+          'example_variant_1' => array(
+            'files' => array(
+              'js' => array('example_3.js'),
+              'css' => array('example_3.css'),
+              'php' => array('example_3.php'),
+            ),
+            'variant callback' => '_libraries_test_return_installed',
+            'variant arguments' => array(TRUE),
+          ),
+          'example_variant_2' => array(
+            'files' => array(
+              'js' => array('example_4.js'),
+              'css' => array('example_4.css'),
+              'php' => array('example_4.php'),
+            ),
+            'variant callback' => '_libraries_test_return_installed',
+            'variant arguments' => array(TRUE),
+          ),
+        ),
+      ),
+    ),
+  );
+
+  // Test dependency loading.
+  // We add one file to each library to be able to verify if it was loaded with
+  // libraries_load().
+  // This library acts as a dependency for the libraries below.
+  $libraries['example_dependency'] = array(
+    'name' => 'Example dependency',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1.1',
+    'files' => array('js' => array('example_1.js')),
+  );
+  $libraries['example_dependency_missing'] = array(
+    'name' => 'Example dependency missing',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'dependencies' => array('example_missing'),
+    'files' => array('js' => array('example_1.js')),
+  );
+  $libraries['example_dependency_incompatible'] = array(
+    'name' => 'Example dependency incompatible',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'dependencies' => array('example_dependency (>1.1)'),
+    'files' => array('js' => array('example_1.js')),
+  );
+  $libraries['example_dependency_compatible'] = array(
+    'name' => 'Example dependency compatible',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'dependencies' => array('example_dependency (>=1.1)'),
+    'files' => array('js' => array('example_1.js')),
+  );
+
+  // Test the applying of callbacks.
+  $libraries['example_callback'] = array(
+    'name' => 'Example callback',
+    'library path' => drupal_get_path('module', 'libraries') . '/tests/example',
+    'version' => '1',
+    'versions' => array(
+      '1' => array(
+        'variants' => array(
+          'example_variant' => array(
+            // These keys are for testing purposes only.
+            'info callback' => 'not applied',
+            'pre-detect callback' => 'not applied',
+            'post-detect callback' => 'not applied',
+            'pre-dependencies-load callback' => 'not applied',
+            'pre-load callback' => 'not applied',
+            'post-load callback' => 'not applied',
+          ),
+        ),
+        // These keys are for testing purposes only.
+        'info callback' => 'not applied',
+        'pre-detect callback' => 'not applied',
+        'post-detect callback' => 'not applied',
+        'pre-dependencies-load callback' => 'not applied',
+        'pre-load callback' => 'not applied',
+        'post-load callback' => 'not applied',
+      ),
+    ),
+    'variants' => array(
+      'example_variant' => array(
+        // These keys are for testing purposes only.
+        'info callback' => 'not applied',
+        'pre-detect callback' => 'not applied',
+        'post-detect callback' => 'not applied',
+        'pre-dependencies-load callback' => 'not applied',
+        'pre-load callback' => 'not applied',
+        'post-load callback' => 'not applied',
+      ),
+    ),
+    'callbacks' => array(
+      'info' => array('_libraries_test_info_callback'),
+      'pre-detect' => array('_libraries_test_pre_detect_callback'),
+      'post-detect' => array('_libraries_test_post_detect_callback'),
+      'pre-dependencies-load' => array('_libraries_test_pre_dependencies_load_callback'),
+      'pre-load' => array('_libraries_test_pre_load_callback'),
+      'post-load' => array('_libraries_test_post_load_callback'),
+    ),
+    // These keys are for testing purposes only.
+    'info callback' => 'not applied',
+    'pre-detect callback' => 'not applied',
+    'post-detect callback' => 'not applied',
+    'pre-dependencies-load callback' => 'not applied',
+    'pre-load callback' => 'not applied',
+    'post-load callback' => 'not applied',
+  );
+
+  return $libraries;
+}
+
+/**
+ * Implements hook_libraries_info_file_paths()
+ */
+function libraries_test_libraries_info_file_paths() {
+  return array(drupal_get_path('module', 'libraries_test') . '/example');
+}
+
+/**
+ * Gets the version of an example library.
+ *
+ * Returns exactly the version string entered as the $version parameter. This
+ * function cannot be collapsed with _libraries_test_return_installed(), because
+ * of the different arguments that are passed automatically.
+ */
+function _libraries_test_return_version($library, $version) {
+  return $version;
+}
+
+/**
+ * Gets the version information from an arbitrary library.
+ *
+ * Test function for a version callback with multiple arguments. This is an
+ * exact copy of libraries_get_version(), which uses a single $option argument,
+ * except for the fact that it uses multiple arguments. Since we support both
+ * type of version callbacks, detecting the version of a test library with this
+ * function ensures that the arguments are passed correctly. This function might
+ * be a useful reference for a custom version callback that uses multiple
+ * parameters.
+ *
+ * @param $library
+ *   An associative array containing all information about the library.
+ * @param $file
+ *   The filename to parse for the version, relative to the library path. For
+ *   example: 'docs/changelog.txt'.
+ * @param pattern
+ *   A string containing a regular expression (PCRE) to match the library
+ *   version. For example: '/@version (\d+)\.(\d+)/'.
+ * @param lines
+ *   (optional) The maximum number of lines to search the pattern in. Defaults
+ *   to 20.
+ * @param cols
+ *   (optional) The maximum number of characters per line to take into account.
+ *   Defaults to 200. In case of minified or compressed files, this prevents
+ *   reading the entire file into memory.
+ *
+ * @return
+ *   A string containing the version of the library.
+ *
+ * @see libraries_get_version()
+ */
+function _libraries_test_get_version($library, $file, $pattern, $lines = 20, $cols = 200) {
+
+  $file = DRUPAL_ROOT . '/' . $library['library path'] . '/' . $file;
+  if (!file_exists($file)) {
+    return;
+  }
+  $file = fopen($file, 'r');
+  while ($lines && $line = fgets($file, $cols)) {
+    if (preg_match($pattern, $line, $version)) {
+      fclose($file);
+      return $version[1];
+    }
+    $lines--;
+  }
+  fclose($file);
+}
+
+/**
+ * Detects the variant of an example library.
+ *
+ * Returns exactly the value of $installed, either TRUE or FALSE. This function
+ * cannot be collapsed with _libraries_test_return_version(), because of the
+ * different arguments that are passed automatically.
+ */
+function _libraries_test_return_installed($library, $name, $installed) {
+  return $installed;
+}
+
+/**
+ * Sets the 'info callback' key.
+ *
+ * This function is used as a test callback for the 'info' callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_info_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'info');
+}
+
+/**
+ * Sets the 'pre-detect callback' key.
+ *
+ * This function is used as a test callback for the 'pre-detect' callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_pre_detect_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'pre-detect');
+}
+
+/**
+ * Sets the 'post-detect callback' key.
+ *
+ * This function is used as a test callback for the 'post-detect callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_post_detect_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'post-detect');
+}
+
+/**
+ * Sets the 'pre-dependencies-load callback' key.
+ *
+ * This function is used as a test callback for the 'pre-dependencies-load'
+ * callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_pre_dependencies_load_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'pre-dependencies-load');
+}
+
+/**
+ * Sets the 'pre-load callback' key.
+ *
+ * This function is used as a test callback for the 'pre-load' callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_pre_load_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'pre-load');
+}
+
+/**
+ * Sets the 'post-load callback' key.
+ *
+ * This function is used as a test callback for the 'post-load' callback group.
+ *
+ * @see _libraries_test_callback()
+ */
+function _libraries_test_post_load_callback(&$library, $version, $variant) {
+  _libraries_test_callback($library, $version, $variant, 'post-load');
+}
+
+/**
+ * Sets the '[group] callback' key, where [group] is prepare, detect, or load.
+ *
+ * This function is used as a test callback for the all callback groups.
+ *
+ * It sets the '[group] callback' (see above) key to 'applied ([part])' where
+ * [part] is either 'top-level', 'version x.y' (where x.y is the passed-in
+ * version string), 'variant example' (where example is the passed-in variant
+ * name), or 'version x.y, variant example' (see above), depending on the part
+ * of the library the passed-in library information belongs to.
+ *
+ * @param $library
+ *   An array of library information, which may be version- or variant-specific.
+ *   Passed by reference.
+ * @param $version
+ *   The version the library information passed in $library belongs to, or NULL
+ *   if the passed library information is not version-specific.
+ * @param $variant
+ *   The variant the library information passed in $library belongs to, or NULL
+ *   if the passed library information is not variant-specific.
+ */
+function _libraries_test_callback(&$library, $version, $variant, $group) {
+  $string = 'applied';
+  if (isset($version) && isset($variant)) {
+    $string .= " (version $version, variant $variant)";
+  }
+  elseif (isset($version)) {
+    $string .= " (version $version)";
+  }
+  elseif (isset($variant)) {
+    $string .= " (variant $variant)";
+  }
+  else {
+    $string .= ' (top-level)';
+  }
+  $library["$group callback"] = $string;
+
+  // The following is used to test caching of library information.
+  // Only set the message for the top-level library to prevent confusing,
+  // duplicate messages.
+  if (!isset($version) && !isset($variant) && variable_get('libraries_test_cache', FALSE)) {
+    drupal_set_message("The <em>$group</em> callback group was invoked.");
+  }
+}
+
+/**
+ * Implements hook_menu().
+ */
+function libraries_test_menu() {
+  $base = array(
+    'page callback' => '_libraries_test_load',
+    'access callback' => TRUE,
+  );
+  $items['libraries_test/files'] = $base + array(
+    'title' => 'Test files',
+    'page arguments' => array('example_files'),
+  );
+  $items['libraries_test/integration_files'] = $base + array(
+    'title' => 'Test integration files',
+    'page arguments' => array('example_integration_files'),
+  );
+  $items['libraries_test/versions'] = $base + array(
+    'title' => 'Test version loading',
+    'page arguments' => array('example_versions'),
+  );
+  $items['libraries_test/variant'] = $base + array(
+    'title' => 'Test variant loading',
+    'page arguments' => array('example_variant', 'example_variant'),
+  );
+  $items['libraries_test/versions_and_variants'] = $base + array(
+    'title' => 'Test concurrent version and variant loading',
+    'page arguments' => array('example_versions_and_variants', 'example_variant_2'),
+  );
+  $items['libraries_test/cache'] = $base + array(
+    'title' => 'Test caching of library information',
+    'page arguments' => array('example_callback'),
+  );
+  return $items;
+}
+
+/**
+ * Loads a specified library (variant) for testing.
+ *
+ * JavaScript and CSS files can be checked directly by SimpleTest, so we only
+ * need to manually check for PHP files. We provide information about the loaded
+ * JavaScript and CSS files for easier debugging. See example/README.txt for
+ * more information.
+ */
+function _libraries_test_load($library, $variant = NULL) {
+  libraries_load($library, $variant);
+  // JavaScript and CSS files can be checked directly by SimpleTest, so we only
+  // need to manually check for PHP files.
+  $output = '';
+
+  // For easer debugging of JS loading, a text is shown that the JavaScript will
+  // replace.
+  $output .= '<h2>JavaScript</h2>';
+  $output .= '<div class="libraries-test-javascript">';
+  $output .= 'If this text shows up, no JavaScript test file was loaded.';
+  $output .= '</div>';
+
+  // For easier debugging of CSS loading, the loaded CSS files will color the
+  // following text.
+  $output .= '<h2>CSS</h2>';
+  $output .= '<div class="libraries-test-css">';
+  $output .= 'If one of the CSS test files has been loaded, this text will be colored:';
+  $output .= '<ul>';
+  // Do not reference the actual CSS files (i.e. including '.css'), because that
+  // breaks testing.
+  $output .= '<li>example_1: red</li>';
+  $output .= '<li>example_2: green</li>';
+  $output .= '<li>example_3: orange</li>';
+  $output .= '<li>example_4: blue</li>';
+  $output .= '<li>libraries_test: purple</li>';
+  $output .= '</ul>';
+  $output .= '</div>';
+
+  $output .= '<h2>PHP</h2>';
+  $output .= '<div class="libraries-test-php">';
+  $output .= 'The following is a list of all loaded test PHP files:';
+  $output .= '<ul>';
+  $files = get_included_files();
+  foreach ($files as $file) {
+    if (strpos($file, 'libraries/test') && !strpos($file, 'libraries_test.module')) {
+      $output .= '<li>' . str_replace(DRUPAL_ROOT . '/', '', $file) . '</li>';
+    }
+  }
+  $output .= '</ul>';
+  $output .= '</div>';
+
+  return $output;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.api.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,36 @@
+<?php
+
+/**
+ * @file
+ * Documentation for Menu Attributes API.
+ */
+
+/**
+ * Alter the list of menu item attributes.
+ *
+ * @param $attributes
+ *   An array of attributes to be controlled by Menu Attributes, keyed by
+ *   attribute name. Each attribute record should be an array with the following
+ *   key/value pairs:
+ *   - label: The human-readable name of the attribute.
+ *   - description: The attribute description.
+ *   - form: A Form API array. Some default values for this array are provided
+ *     in menu_attributes_get_menu_attribute_info().
+ *
+ * @see menu_attributes_menu_attribute_info()
+ * @see menu_attributes_get_menu_attribute_info()
+ */
+function hook_menu_attribute_info(array &$attributes) {
+  // Add a Tabindex attribute.
+  $info['tabindex'] = array(
+    'label' => t('Tabindex'),
+    'description' => t('Specifies the tab order for the link.'),
+    'form' => array(
+      '#maxlength' => 3,
+      '#size' => 2,
+    ),
+  );
+
+  // Remove the Access Key attribute.
+  unset($attributes['accesskey']);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+name = Menu attributes
+description = "Allows administrators to specify custom attributes for menu items."
+dependencies[] = menu
+core = 7.x
+configure = admin/structure/menu/settings
+
+files[] = menu_attributes.test
+
+; Information added by drupal.org packaging script on 2012-06-01
+version = "7.x-1.0-rc2"
+core = "7.x"
+project = "menu_attributes"
+datestamp = "1338541556"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,98 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the menu_attributes module.
+ */
+
+/**
+ * Implements hook_install().
+ */
+function menu_attributes_install() {
+  db_update('system')
+    ->fields(array(
+      'weight' => 10,
+    ))
+    ->condition('type', 'module')
+    ->condition('name', 'menu_attributes')
+    ->execute();
+}
+
+/**
+ * Implements hook_uninstall().
+ */
+function menu_attributes_uninstall() {
+  drupal_load('module', 'menu_attributes');
+  $attributes = menu_attributes_menu_attribute_info();
+  foreach (array_keys($attributes) as $attribute) {
+    variable_del("menu_attributes_{$attribute}_enable");
+    variable_del("menu_attributes_{$attribute}_default");
+  }
+}
+
+/**
+ * Update the module weight.
+ */
+function menu_attributes_update_1() {
+  db_update('system')
+    ->fields(array(
+      'weight' => 10,
+    ))
+    ->condition('type', 'module')
+    ->condition('name', 'menu_attributes')
+    ->execute();
+}
+
+/**
+ * Fix any menu links that had the class attribute saved as an string.
+ */
+function menu_attributes_update_7000(&$sandbox) {
+  if (!isset($sandbox['progress'])) {
+    $sandbox['progress'] = 0;
+    $sandbox['current_mlid'] = 0;
+    // Only count links that possibly have a key class with a string value in
+    // its serialized options array.
+    $sandbox['max'] = db_query("SELECT COUNT(DISTINCT mlid) FROM {menu_links} WHERE options LIKE '%s:5:\"class\";s:%'")->fetchField();
+  }
+
+  // Process twenty links at a time.
+  $limit = 20;
+
+  $links = db_query_range("SELECT mlid, options FROM {menu_links} WHERE mlid > :mlid AND options LIKE '%s:5:\"class\";s:%' ORDER BY mlid", 0, $limit, array(':mlid' => $sandbox['current_mlid']))->fetchAllKeyed();
+  foreach ($links as $mlid => $options) {
+    $options = unserialize($options);
+
+    if (isset($options['attributes']['class']) && is_string($options['attributes']['class'])) {
+      // Convert classes to an array.
+      $options['attributes']['class'] = explode(' ', $options['attributes']['class']);
+      db_update('menu_links')
+        ->fields(array(
+          'options' => serialize($options),
+        ))
+        ->condition('mlid', $mlid)
+        ->execute();
+    }
+
+    $sandbox['progress']++;
+    $sandbox['current_mlid'] = $mlid;
+  }
+
+  $sandbox['#finished'] = empty($sandbox['max']) ? 1 : ($sandbox['progress'] / $sandbox['max']);
+
+  // To display a message to the user when the update is completed, return it.
+  // If you do not want to display a completion message, simply return nothing.
+  return t('All menu links with non-array value for class attribute have been fixed.');
+}
+
+/**
+ * Grant the 'administer menu attributes' permission to roles that currently
+ * have the 'administer menu' permission.
+ */
+function menu_attributes_update_7001() {
+  $roles = user_roles(FALSE, 'administer menu');
+  foreach ($roles as $rid => $role) {
+    user_role_grant_permissions($rid, array('administer menu attributes'));
+  }
+
+  return t("Every role with the 'administer menu' permission has also received the 'administer menu attributes' permission.");
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,119 @@
+(function ($) {
+
+/**
+ * Provide the summary information for the menu attributes vertical tabs.
+ */
+Drupal.behaviors.menuAttributesOptionsSummary = {
+  attach: function (context) {
+    // Menu item title.
+    $('fieldset#edit-title', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-textarea', context).val();
+      if (!value) {
+        return Drupal.t('No title');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+    // Menu item ID.
+    $('fieldset#edit-id', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No ID');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+    // Menu item name.
+    $('fieldset#edit-name', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No name');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+    // Menu item relationship.
+    $('fieldset#edit-rel', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No relationship');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+    // Menu item classes.
+    $('fieldset#edit-class', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No classes');
+      }
+      else {
+        return Drupal.checkPlain(value.replace(/\s/g, ', '));
+      }
+    });
+
+    // Menu item style.
+    $('fieldset#edit-style', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No style');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+    // Menu item target.
+    $('fieldset#edit-target', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+
+      var value = $('.form-select option:selected', context).text();
+      return Drupal.checkPlain(value);
+    });
+
+    // Menu item access key.
+    $('fieldset#edit-accesskey', context).drupalSetSummary(function (context) {
+      if (!$('input[type="checkbox"]:checked', context).val()) {
+        return Drupal.t('Disabled');
+      }
+      var value = $('.form-text', context).val();
+      if (!value) {
+        return Drupal.t('No access key');
+      }
+      else {
+        return Drupal.checkPlain(value);
+      }
+    });
+
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,291 @@
+<?php
+
+/**
+ * @file
+ * Alters the menu item form to allow the administrator to specify additional
+ * attributes for the menu link
+ */
+
+/**
+ * Implements hook_permission().
+ */
+function menu_attributes_permission() {
+  return array(
+    'administer menu attributes' => array(
+      'title' => t('Administer menu attributes'),
+      'description' => t('Administer menu attributes.'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_menu_link_alter().
+ */
+function menu_attributes_menu_link_alter(&$item, $menu) {
+  if (isset($item['options']['attributes']) && is_array($item['options']['attributes'])) {
+    // Filter out blank attributes.
+    foreach ($item['options']['attributes'] as $key => $value) {
+      if ((is_array($value) && empty($value)) || is_string($value) && !drupal_strlen($value)) {
+        unset($item['options']['attributes'][$key]);
+      }
+    }
+
+    // Convert classes to an array.
+    if (isset($item['options']['attributes']['class']) && is_string($item['options']['attributes']['class'])) {
+      $item['options']['attributes']['class'] = explode(' ', $item['options']['attributes']['class']);
+    }
+  }
+}
+
+/**
+ * Implements hook_menu_attriute_info().
+ */
+function menu_attributes_menu_attribute_info() {
+  $info['title'] = array(
+    'label' => t('Title'),
+    'description' => t('The description displayed when hovering over the link.'),
+    'form' => array(
+      '#type' => 'textarea',
+      '#rows' => 2,
+    ),
+  );
+  $info['id'] = array(
+    'label' => t('ID'),
+    'description' => t('Specifies a unique ID for the link.'),
+  );
+  $info['name'] = array(
+    'label' => t('Name'),
+  );
+  $info['rel'] = array(
+    'label' => t('Relationship'),
+    'description' => t("Specifies the relationship between the current page and the link. Enter 'nofollow' here to nofollow this link."),
+  );
+  $info['class'] = array(
+    'label' => t('Classes'),
+    'description' => t('Enter additional classes to be added to the link.'),
+  );
+  $info['style'] = array(
+    'label' => t('Style'),
+    'description' => t('Enter additional styles to be applied to the link.'),
+  );
+  $info['target'] = array(
+    'label' => t('Target'),
+    'description' => t('Specifies where to open the link. Using this attribute breaks XHTML validation.'),
+    'form' => array(
+      '#type' => 'select',
+      '#options' => array(
+        '' => 'None (i.e. same window)',
+        '_blank' => 'New window (_blank)',
+        '_top' => 'Top window (_top)',
+        '_self' => 'Same window (_self)',
+        '_parent' => 'Parent window (_parent)',
+      ),
+    ),
+  );
+  $info['accesskey'] = array(
+    'label' => t('Access Key'),
+    'description' => t('Specifies a <a href="@accesskey">keyboard shortcut</a> to access this link.', array('@accesskey' => url('http://en.wikipedia.org/wiki/Access_keys'))),
+    'form' => array(
+      '#maxlength' => 1,
+      '#size' => 1,
+    ),
+  );
+  return $info;
+}
+
+/**
+ * Fetch an array of menu attributes.
+ */
+function menu_attributes_get_menu_attribute_info() {
+  $attributes = module_invoke_all('menu_attribute_info');
+  drupal_alter('menu_attribute_info', $attributes);
+
+  // Merge in defaul values.
+  foreach ($attributes as $attribute => &$info) {
+    $info += array(
+      'form' => array(),
+      'enabled' => variable_get("menu_attributes_{$attribute}_enable", 1),
+      'default' => '',
+    );
+    $info['form'] += array(
+      '#type' => 'textfield',
+      '#title' => $info['label'],
+      '#description' => isset($info['description']) ? $info['description'] : '',
+      '#default_value' => variable_get("menu_attributes_{$attribute}_default", $info['default']),
+    );
+  }
+
+  return $attributes;
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ *
+ * Adds menu attribute options to the edit menu item form.
+ *
+ * @see menu_edit_item()
+ * @see _menu_attributes_form_alter()
+ * @see menu_attributes_form_menu_edit_item_submit()
+ */
+function menu_attributes_form_menu_edit_item_alter(&$form, $form_state) {
+  $item = $form['original_item']['#value'];
+  _menu_attributes_form_alter($form, $item, $form);
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ *
+ * Adds menu attribute options to the node's edit menu item form.
+ *
+ * @see _menu_attributes_form_alter()
+ */
+function menu_attributes_form_node_form_alter(&$form, $form_state) {
+  if (isset($form['menu']['link'])) {
+    $item = $form['#node']->menu;
+    _menu_attributes_form_alter($form['menu']['link'], $item, $form);
+    $form['menu']['link']['options']['attributes']['#type'] = 'container';
+  }
+}
+
+/**
+ * Add the menu attributes to a menu item edit form.
+ *
+ * @param $form
+ *   The menu item edit form passed by reference.
+ * @param $item
+ *   The optional existing menu item for context.
+ */
+function _menu_attributes_form_alter(array &$form, array $item = array(), array &$complete_form) {
+  // Restrict access to the new form elements.
+  $form['options']['attributes']['#access'] = user_access('administer menu attributes');
+
+  $form['options']['#tree'] = TRUE;
+  $form['options']['#weight'] = 50;
+
+  // Unset the previous value so that the new values get saved.
+  unset($form['options']['#value']['attributes']);
+
+  $form['options']['attributes'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Menu item attributes'),
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE,
+    '#tree' => TRUE,
+  );
+
+  $attributes = menu_attributes_get_menu_attribute_info();
+  foreach ($attributes as $attribute => $info) {
+    // Merge in the proper default value.
+    if (isset($item['options']['attributes'][$attribute])) {
+      // If the menu link already has this attribute, use it.
+      $info['form']['#default_value'] = $item['options']['attributes'][$attribute];
+      // Convert the classes array to a string for the form.
+      if ($attribute == 'class' && is_array($info['form']['#default_value'])) {
+        $info['form']['#default_value'] = implode(' ', $info['form']['#default_value']);
+      }
+    }
+    elseif ($item['mlid']) {
+      // If this is an existing link, use the raw default (usually empty).
+      $info['form']['#default_value'] = $info['default'];
+    }
+    $form['options']['attributes'][$attribute] = $info['form'] + array(
+      '#access' => $info['enabled'],
+    );
+  }
+
+  // Add form values for the reset of $item['options'] and
+  // $item['options']['attributes'] so the values will carry over during save.
+  foreach ($item['options'] as $key => $value) {
+    if ($key !== 'attributes' && !isset($form['options'][$key])) {
+      $form['options'][$key] = array(
+        '#type' => 'value',
+        '#value' => $value,
+      );
+    }
+  }
+  if (isset($item['options']['attributes'])) {
+    foreach ($item['options']['attributes'] as $key => $value) {
+      if (!isset($form['options']['attributes'][$key])) {
+        $form['options']['attributes'][$key] = array(
+          '#type' => 'value',
+          '#value' => $value,
+        );
+      }
+    }
+  }
+
+  // Hide the 'description' field since we will be using our own 'title' field.
+  if (isset($form['description'])) {
+    $form['description']['#access'] = FALSE;
+
+    // Because this form uses a special $form['description'] field which is
+    // really the 'title' attribute, we need to add special pre-submit handling
+    // to ensure our field gets saved as the title attribute.
+    array_unshift($complete_form['#submit'], '_menu_attributes_form_submit');
+  }
+
+  $form['options']['attributes']['#access'] = (bool) element_get_visible_children($form['options']['attributes']);
+}
+
+/**
+ * Form submit handler for menu item links.
+ *
+ * Move the title attributes value into the 'description' value so that it
+ * will get properly saved.
+ */
+function _menu_attributes_form_submit($form, &$form_state) {
+  if (isset($form_state['values']['menu']['options']['attributes']['title'])) {
+    $form_state['values']['menu']['description'] = $form_state['values']['menu']['options']['attributes']['title'];
+  }
+  elseif (isset($form_state['values']['options']['attributes']['title'])) {
+    $form_state['values']['description'] = $form_state['values']['options']['attributes']['title'];
+  }
+}
+
+/**
+ * Implements hook_form_FORM_ID_alter().
+ *
+ * Alters the menu settings form with our menu attribute settings.
+ *
+ * @see menu_configure_form()
+ */
+function menu_attributes_form_menu_configure_alter(&$form, $form_state) {
+  if (!user_access('administer menu attributes')) {
+    return;
+  }
+
+  $form['attributes_title'] = array(
+    '#type' => 'item',
+    '#title' => t('Menu item attribute options'),
+  );
+  $form['attributes_vertical_tabs'] = array(
+    '#type' => 'vertical_tabs',
+    '#attached' => array(
+      'js' => array(drupal_get_path('module', 'menu_attributes') . '/menu_attributes.js'),
+    ),
+  );
+
+  $attributes = menu_attributes_get_menu_attribute_info();
+  foreach ($attributes as $attribute => $info) {
+    $form['attributes'][$attribute] = array(
+      '#type' => 'fieldset',
+      '#title' => $info['label'],
+      '#group' => 'attributes_vertical_tabs',
+      '#description' => $info['form']['#description'],
+    );
+    $form['attributes'][$attribute]["menu_attributes_{$attribute}_enable"] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Enable the @attribute attribute.', array('@attribute' => drupal_strtolower($info['label']))),
+      '#default_value' => $info['enabled'],
+    );
+    $form['attributes'][$attribute]["menu_attributes_{$attribute}_default"] = array(
+      '#title' => t('Default'),
+      '#description' => '',
+      '#states' => array(
+        'invisible' => array(
+          'input[name="menu_attributes_' . $attribute . '_enable"]' => array('checked' => FALSE),
+        ),
+      ),
+    ) + $info['form'];
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/menu_attributes/menu_attributes.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,266 @@
+<?php
+
+/**
+ * @file
+ * Functionality tests for Menu attributes.
+ *
+ * @ingroup menu_attributes
+ */
+
+/**
+ * Helper test class with some added functions for testing.
+ */
+class MenuAttributesTestHelper extends DrupalWebTestCase {
+  protected $admin_user;
+  protected $menu_attributes_new;
+  protected $menu_attributes_edit;
+
+  function setUp(array $modules = array()) {
+    $modules[] = 'menu';
+    $modules[] = 'menu_attributes';
+    parent::setUp($modules);
+
+    // Create and login user.
+    $this->admin_user = $this->drupalCreateUser(array(
+      'access administration pages',
+      'administer content types',
+      'administer menu',
+      'create page content',
+      'edit any page content',
+      'delete any page content',
+    ));
+
+    $this->menu_attributes_new = array(
+      'title' => $this->randomName(10),
+      'id' => $this->randomName(10),
+      'name' => $this->randomName(10),
+      'rel' => $this->randomName(10),
+      'class' => $this->randomName(10),
+      'style' => $this->randomName(10),
+      'target' => '_top',
+      'accesskey' => $this->randomName(1),
+    );
+
+    $this->menu_attributes_edit = array(
+      'title' => $this->randomName(10),
+      'id' => $this->randomName(10),
+      'name' => $this->randomName(10),
+      'rel' => $this->randomName(10),
+      'class' => $this->randomName(10),
+      'style' => $this->randomName(10),
+      'target' => '_self',
+      'accesskey' => $this->randomName(1),
+    );
+  }
+
+  /**
+   * Add or edit a menu link using the menu module UI.
+   *
+   * @param integer $plid Parent menu link id.
+   * @param string $link Link path.
+   * @param string $menu_name Menu name.
+   *
+   * @return array Menu link created.
+   */
+  function crudMenuLink($mlid = 0, $plid = 0, $link = '<front>', $menu_name = 'navigation') {
+    // View add/edit menu link page.
+    if (empty($mlid)) {
+      $this->drupalGet("admin/structure/menu/manage/$menu_name/add");
+      $menu_attributes = $this->menu_attributes_new;
+    }
+    else {
+      $this->drupalGet("admin/structure/menu/item/$mlid/edit");
+      $menu_attributes = $this->menu_attributes_edit;
+    }
+    $this->assertResponse(200);
+
+    $title = '!link_' . $this->randomName(16);
+    $edit = array(
+      'link_path' => $link,
+      'link_title' => $title,
+      'enabled' => TRUE, // Use this to disable the menu and test.
+      'expanded' => TRUE, // Setting this to true should test whether it works when we do the std_user tests.
+      'parent' =>  $menu_name . ':' . $plid,
+      'weight' => '0',
+      'options[attributes][title]' => $menu_attributes['title'],
+      'options[attributes][id]' => $menu_attributes['id'],
+      'options[attributes][name]' => $menu_attributes['name'],
+      'options[attributes][rel]' => $menu_attributes['rel'],
+      'options[attributes][class]' => $menu_attributes['class'],
+      'options[attributes][style]' => $menu_attributes['style'],
+      'options[attributes][target]' => $menu_attributes['target'],
+      'options[attributes][accesskey]' => $menu_attributes['accesskey'],
+    );
+
+    // Add menu link.
+    $this->drupalPost(NULL, $edit, t('Save'));
+
+    $item = db_query('SELECT * FROM {menu_links} WHERE link_title = :title', array(':title' => $title))->fetchAssoc();
+
+    return $item;
+  }
+
+  function assertMenuAttributes($form_parent, $action = 'new') {
+    if ($action == 'new') {
+      foreach ($this->menu_attributes_new as $attribute => $value) {
+        $this->assertFieldByName($form_parent . '[' . $attribute . ']', $value, t("'$attribute' attribute correct in edit form."));
+      }
+    }
+    else {
+      foreach ($this->menu_attributes_edit as $attribute => $value) {
+        $this->assertFieldByName($form_parent . '[' . $attribute . ']', $value, t("New '$attribute' attribute correct in edit form."));
+      }
+    }
+  }
+}
+
+/**
+ * Test basic functionality.
+ */
+class MenuAttributesTestCase extends MenuAttributesTestHelper {
+  public static function getInfo() {
+    return array(
+      'name' => 'Menu attributes',
+      'description' => 'Tests menu attributes functionality.',
+      'group' => 'Menu',
+    );
+  }
+
+  function setUp(array $modules = array()) {
+    parent::setUp($modules);
+  }
+
+  /**
+   * Tests menu attributes functionality.
+   */
+  function testMenuAttributes() {
+    // Login the user.
+    $this->drupalLogin($this->admin_user);
+
+    $menu_name = 'navigation';
+
+    // Add a node to be used as a link for menu links.
+    $node = $this->drupalCreateNode(array('type' => 'page'));
+
+    // Add a menu link.
+    $item = $this->crudMenuLink(0, 0, 'node/' . $node->nid, $menu_name);
+
+    $this->drupalGet('admin/structure/menu/item/' . $item['mlid'] . '/edit');
+    $this->assertMenuAttributes('options[attributes]', 'new');
+
+    // Edit the previously created menu link.
+    $item = $this->crudMenuLink($item['mlid'], 0, 'node/' . $node->nid, $menu_name);
+
+    $this->drupalGet('admin/structure/menu/item/' . $item['mlid'] . '/edit');
+    $this->assertMenuAttributes('options[attributes]', 'edit');
+  }
+}
+
+/**
+ * Test menu attributes settings for nodes.
+ */
+class MenuAttributesNodeTestCase extends MenuAttributesTestHelper {
+  public static function getInfo() {
+    return array(
+      'name' => 'Menu attributes settings for nodes',
+      'description' => 'Add, edit, and delete a node with menu link.',
+      'group' => 'Menu',
+    );
+  }
+
+  function setUp(array $modules = array()) {
+    parent::setUp($modules);
+    $this->drupalLogin($this->admin_user);
+  }
+
+  /**
+   * Test creating, editing, deleting menu links via node form widget.
+   */
+  function testMenuNodeFormWidget() {
+    // Enable Navigation menu as available menu.
+    $edit = array(
+      'menu_options[navigation]' => 1,
+    );
+    $this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type'));
+    // Change default parent item to Navigation menu, so we can assert more
+    // easily.
+    $edit = array(
+      'menu_parent' => 'navigation:0',
+    );
+    $this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type'));
+
+    // Create a node.
+    $node_title = $this->randomName();
+    $language = LANGUAGE_NONE;
+    $edit = array(
+      "title" => $node_title,
+      "body[$language][0][value]" => $this->randomString(),
+    );
+    $this->drupalPost('node/add/page', $edit, t('Save'));
+    $node = $this->drupalGetNodeByTitle($node_title);
+    // Assert that there is no link for the node.
+    $this->drupalGet('');
+    $this->assertNoLink($node_title);
+
+    // Edit the node, enable the menu link setting, but skip the link title.
+    $edit = array(
+      'menu[enabled]' => 1,
+    );
+    $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+    // Assert that there is no link for the node.
+    $this->drupalGet('');
+    $this->assertNoLink($node_title);
+
+    // Edit the node and create a menu link with attributes.
+    $edit = array(
+      'menu[enabled]' => 1,
+      'menu[link_title]' => $node_title,
+      'menu[weight]' => 17,
+      'menu[options][attributes][title]' => $this->menu_attributes_new['title'],
+      'menu[options][attributes][id]' => $this->menu_attributes_new['id'],
+      'menu[options][attributes][name]' => $this->menu_attributes_new['name'],
+      'menu[options][attributes][rel]' => $this->menu_attributes_new['rel'],
+      'menu[options][attributes][class]' => $this->menu_attributes_new['class'],
+      'menu[options][attributes][style]' => $this->menu_attributes_new['style'],
+      'menu[options][attributes][target]' => $this->menu_attributes_new['target'],
+      'menu[options][attributes][accesskey]' => $this->menu_attributes_new['accesskey'],
+    );
+    $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+    // Assert that the link exists.
+    $this->drupalGet('');
+    $this->assertLink($node_title);
+
+    // Assert that the link attributes exist.
+    $this->drupalGet('node/' . $node->nid . '/edit');
+    $this->assertMenuAttributes('menu[options][attributes]', 'new');
+
+    // Edit the node again and change the menu link attributes.
+    $edit = array(
+      'menu[enabled]' => 1,
+      'menu[link_title]' => $node_title,
+      'menu[weight]' => 17,
+      'menu[options][attributes][title]' => $this->menu_attributes_edit['title'],
+      'menu[options][attributes][id]' => $this->menu_attributes_edit['id'],
+      'menu[options][attributes][name]' => $this->menu_attributes_edit['name'],
+      'menu[options][attributes][rel]' => $this->menu_attributes_edit['rel'],
+      'menu[options][attributes][class]' => $this->menu_attributes_edit['class'],
+      'menu[options][attributes][style]' => $this->menu_attributes_edit['style'],
+      'menu[options][attributes][target]' => $this->menu_attributes_edit['target'],
+      'menu[options][attributes][accesskey]' => $this->menu_attributes_edit['accesskey'],
+    );
+    $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+
+    // Assert that the link attributes exist.
+    $this->drupalGet('node/' . $node->nid . '/edit');
+    $this->assertMenuAttributes('menu[options][attributes]', 'edit');
+
+    // Edit the node and remove the menu link.
+    $edit = array(
+      'menu[enabled]' => FALSE,
+    );
+    $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
+    // Assert that there is no link for the node.
+    $this->drupalGet('');
+    $this->assertNoLink($node_title);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/CHANGELOG.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+Module Filter 7.x-1.8, 2013-08-08
+---------------------------------
+by greenSkin: Changed the title for the 'module_filter_dynamic_save_position'
+  checkbox to make it clearer what it does.
+#1933384 by kaidjohnson: Fixed jQuery UI button breaks functionality.
+#1166414 by greenSkin: Fixed module filter + tabs disabled = broken modules
+  page.
+
+
+Module Filter 7.x-1.7, 2012-07-05
+---------------------------------
+#1033012 by greenSkin: Hide incompatible module rows when the 'Unavailable'
+  checkbox is unchecked.
+#1170388 by greenSkin: Fixed conflict with Overlay module. Added class
+  "overlay-exclude" to tab links.
+#1124218 by jyee, greenSkin: Suppress form submission when hitting the enter
+  key while the filter input is focused.
+
+
+Module Filter 7.x-1.6, 2011-09-15
+---------------------------------
+#1241662 by Niklas Fiekas: Sort modules by display name.
+#1254140 by greenSkin: No longer return anything in hook_update_7100.
+by greenSkin: Fixed bug with visual aids sometimes not updating correctly.
+
+
+Module Filter 7.x-1.5, 2011-08-16
+---------------------------------
+by greenSkin: Brought the 7.x branch current with the 6.x branch features.
+
+
+Module Filter 7.x-1.3, 2011-03-07
+---------------------------------
+by realityloop: Updated CHANGELOG.txt
+
+
+Module Filter 7.x-1.2, 2011-03-07
+---------------------------------
+by realityloop: Changed placement of Submit buttons for other languages
+
+
+Module Filter 7.x-1.1, 2011-03-07
+---------------------------------
+by realityloop: first commit via git, broke the release somehow :/
+
+
+Module Filter 7.x-1.0, 2011-01-04
+---------------------------------
+by realityloop: Fixed Undefined index error.
+by greenSkin: Removed unused .css and .js files.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/css/module_filter.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+
+#module-filter-show-wrapper .form-item {
+  display: inline;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/css/module_filter_tab.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,136 @@
+
+#module-filter-wrapper .form-item {
+  border: 0px none;
+  margin: 0;
+  padding: 9px;
+}
+#module-filter-wrapper .form-item:after {
+/*  display: block;*/
+  clear: none;
+}
+#module-filter-left {
+  float: left;
+  background-color: #F6F6F6;
+  border: 1px solid #D6DBDE;
+  margin-right: -1px;
+  width: 185px;
+}
+#module-filter-left ul {
+  margin: 0px;
+  padding: 0px;
+  list-style: none;
+}
+#module-filter-left ul li {
+  background: #EFEFEF none repeat scroll 0 0;;
+  border-bottom: 1px solid #D6DBDE;
+  margin: 0px;
+  padding: 0px;
+  list-style-image: none;
+}
+#module-filter-left ul li.active {
+  margin-right: -1px;
+  width: 186px;
+  background-color: #FFFFFF;
+  position: relative;
+}
+#module-filter-left ul li a {
+  color: #777777;
+  display: block;
+  padding: 0.5em;
+  line-height: 100%;
+  font-size: 90%;
+  outline: none;
+}
+#module-filter-left ul li.active a {
+  background-color: #FFFFFF;
+  color: #000000;
+  font-weight: bold;
+}
+#module-filter-left ul li a:hover {
+  background-color: #F6F6F6;
+  text-decoration: none;
+}
+#module-filter-left ul li.active a:hover {
+  background-color: #FFFFFF;
+}
+#module-filter-left ul li a span.visual-aid {
+  font-size: 8px;
+  float: right;
+}
+#module-filter-left ul li a span.enabling {
+  color: green;
+}
+#module-filter-left ul li a span.disabling {
+  color: red;
+  margin-left: 5px;
+}
+#module-filter-left ul li a span.counts {
+  font-weight: normal;
+  display: none;
+  font-size: 0.8em;
+  color: #333333;
+  padding: 2px 0 0;
+}
+#module-filter-left ul li.active a span.counts {
+  display: block;
+}
+#module-filter-submit {
+  margin: 0;
+}
+#module-filter-submit .form-actions {
+  text-align: center;
+}
+#module-filter-submit input.form-submit {
+  margin: 1em 0 0;
+}
+#module-filter-submit.fixed {
+  position: fixed;
+  background-color: #F6F6F6;
+  border: 1px solid #D6DBDE;
+  margin-left: -1px;
+  width: 185px;
+}
+#module-filter-submit.fixed-top {
+  top: 0;
+}
+#module-filter-submit.fixed-bottom {
+  bottom: 0;
+}
+#module-filter-right {
+  display: block;
+}
+#module-filter-squeeze {
+  margin-left: 186px;
+  background-color: #FFFFFF;
+  border: 1px solid #D6DBDE;
+  height: auto !important;
+}
+.form-item-module-filter-name {
+  text-align: center;
+}
+.form-item-module-filter-name label {
+  display: inline;
+}
+#module-filter-show-wrapper .form-checkboxes {
+  text-align: center;
+}
+#module-filter-show-wrapper .form-item:after {
+  display: inline;
+}
+table.package {
+  margin: 1em 0;
+}
+table.package,
+table.package thead,
+table.package tbody,
+table.package tbody tr,
+table.package td:last-child {
+  border-right: 0 none;
+  border-left: 0 none;
+}
+table.package tr.enabling {
+  background-color: #dfd;
+}
+table.package tr.disabling {
+  background-color: #fcc;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/js/dynamic_position.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,33 @@
+(function($) {
+  Drupal.behaviors.moduleFilterDynamicPosition = {
+    attach: function() {
+      $(window).scroll(function() {
+        // Vertical movement.
+        var top = $('#module-filter-tabs').offset().top;
+        var bottom = top + $('#module-filter-tabs').height();
+        var windowHeight = $(window).height();
+        if (((bottom - windowHeight) > ($(window).scrollTop() - $('#module-filter-submit').height())) && $(window).scrollTop() + windowHeight - $('#module-filter-submit').height() - $('#all-tab').height() > top) {
+          $('#module-filter-submit').removeClass('fixed-top').addClass('fixed fixed-bottom');
+        }
+        else if (bottom < $(window).scrollTop()) {
+          $('#module-filter-submit').removeClass('fixed-bottom').addClass('fixed fixed-top');
+        }
+        else {
+          $('#module-filter-submit').removeClass('fixed fixed-bottom fixed-top');
+        }
+
+        // Horizontal movement.
+        if ($('#module-filter-submit').hasClass('fixed-bottom') || $('#module-filter-submit').hasClass('fixed-top')) {
+          var left = $('#module-filter-tabs').offset().left - $(window).scrollLeft();
+          if (left != $('#module-filter-submit').offset().left - $(window).scrollLeft()) {
+            $('#module-filter-submit').css('left', left);
+          }
+        }
+      });
+      $(window).trigger('scroll');
+      $(window).resize(function() {
+        $(window).trigger('scroll');
+      });
+    }
+  }
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/js/module_filter.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,120 @@
+
+(function ($) {
+  var moduleFilterTimeOut;
+  var moduleFilterTextFilter = '';
+
+  Drupal.behaviors.moduleFilter = {
+    attach: function() {
+      $("#module-filter-wrapper").show();
+      $('input[name="module_filter[name]"]').focus();
+      $('input[name="module_filter[name]"]').keyup(function(e) {
+        switch (e.which) {
+          case 13:
+            if (moduleFilterTimeOut) {
+              clearTimeout(moduleFilterTimeOut);
+            }
+
+            moduleFilter(moduleFilterTextFilter);
+            break;
+          default:
+            if (moduleFilterTextFilter != $(this).val()) {
+              moduleFilterTextFilter = this.value;
+              if (moduleFilterTimeOut) {
+                clearTimeout(moduleFilterTimeOut);
+              }
+
+              moduleFilterTimeOut = setTimeout('moduleFilter("' + moduleFilterTextFilter + '")', 500);
+            }
+            break;
+        }
+      });
+      $('input[name="module_filter[name]"]').keypress(function(e) {
+        if (e.which == 13) e.preventDefault();
+      });
+
+      $('#edit-module-filter-show-enabled').change(function() {
+        moduleFilter($('input[name="module_filter[name]"]').val());
+      });
+      $('#edit-module-filter-show-disabled').change(function() {
+        moduleFilter($('input[name="module_filter[name]"]').val());
+      });
+      $('#edit-module-filter-show-required').change(function() {
+        moduleFilter($('input[name="module_filter[name]"]').val());
+      });
+      $('#edit-module-filter-show-unavailable').change(function() {
+        moduleFilter($('input[name="module_filter[name]"]').val());
+      });
+    }
+  }
+
+  moduleFilter = function(string) {
+    stringLowerCase = string.toLowerCase();
+
+    $("fieldset table tbody tr td label strong").each(function(i) {
+      var $row = $(this).parents('tr');
+      var module = $(this).text();
+      var moduleLowerCase = module.toLowerCase();
+      var $fieldset = $row.parents('fieldset');
+
+      if (string != '') {
+        if ($fieldset.hasClass('collapsed')) {
+          $fieldset.removeClass('collapsed');
+        }
+      }
+
+      if (moduleLowerCase.match(stringLowerCase)) {
+        if (moduleFilterVisible($('td.checkbox input', $row))) {
+          if (!$row.is(':visible')) {
+            $row.show();
+            if ($fieldset.hasClass('collapsed')) {
+              $fieldset.removeClass('collapsed');
+            }
+            if (!$fieldset.is(':visible')) {
+              $fieldset.show();
+            }
+          }
+        }
+        else {
+          $row.hide();
+          if ($row.siblings(':visible').html() == null) {
+            $fieldset.hide();
+          }
+        }
+      }
+      else {
+        if ($row.is(':visible')) {
+          $row.hide();
+          if ($row.siblings(':visible').html() == null) {
+            $fieldset.hide();
+          }
+        }
+      }
+    });
+  }
+
+  moduleFilterVisible = function(checkbox) {
+    if (checkbox.length > 0) {
+      if ($('#edit-module-filter-show-enabled').is(':checked')) {
+        if ($(checkbox).is(':checked') && !$(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+      if ($('#edit-module-filter-show-disabled').is(':checked')) {
+        if (!$(checkbox).is(':checked') && !$(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+      if ($('#edit-module-filter-show-required').is(':checked')) {
+        if ($(checkbox).is(':checked') && $(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+    }
+    if ($('#edit-module-filter-show-unavailable').is(':checked')) {
+      if (checkbox.length == 0 || ($(checkbox).size() > 0 && !$(checkbox).is(':checked') && $(checkbox).is(':disabled'))) {
+        return true;
+      }
+    }
+    return false;
+  }
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/js/module_filter_tab.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,281 @@
+
+(function ($) {
+  Drupal.ModuleFilter = Drupal.ModuleFilter || {};
+  Drupal.ModuleFilter.textFilter = '';
+  Drupal.ModuleFilter.timeout;
+  Drupal.ModuleFilter.tabs = {};
+  Drupal.ModuleFilter.enabling = {};
+  Drupal.ModuleFilter.disabling = {};
+
+  Drupal.behaviors.moduleFilter = {
+    attach: function() {
+      // Set the focus on the module filter textfield.
+      $('input[name="module_filter[name]"]').focus();
+
+      $('#module-filter-squeeze').css('min-height', $('#module-filter-tabs').height());
+
+      $('#module-filter-left a.project-tab').each(function(i) {
+        Drupal.ModuleFilter.tabs[$(this).attr('id')] = new Drupal.ModuleFilter.Tab(this);
+      });
+
+      // Move anchors to top of tabs.
+      $('a.anchor', $('#module-filter-left')).remove().prependTo('#module-filter-tabs');
+
+      $('input[name="module_filter[name]"]').keyup(function(e) {
+        switch (e.which) {
+          case 13:
+            if (Drupal.ModuleFilter.timeout) {
+              clearTimeout(Drupal.ModuleFilter.timeout);
+            }
+
+            Drupal.ModuleFilter.filter(Drupal.ModuleFilter.textFilter);
+            break;
+          default:
+            if (Drupal.ModuleFilter.textFilter != $(this).val()) {
+              Drupal.ModuleFilter.textFilter = this.value;
+              if (Drupal.ModuleFilter.timeout) {
+                clearTimeout(Drupal.ModuleFilter.timeout);
+              }
+              Drupal.ModuleFilter.timeout = setTimeout('Drupal.ModuleFilter.filter("' + Drupal.ModuleFilter.textFilter + '")', 500);
+            }
+            break;
+        }
+      });
+      $('input[name="module_filter[name]"]').keypress(function(e) {
+        if (e.which == 13) e.preventDefault();
+      });
+
+      Drupal.ModuleFilter.showEnabled = $('#edit-module-filter-show-enabled').is(':checked');
+      $('#edit-module-filter-show-enabled').change(function() {
+        Drupal.ModuleFilter.showEnabled = $(this).is(':checked');
+        Drupal.ModuleFilter.filter($('input[name="module_filter[name]"]').val());
+      });
+      Drupal.ModuleFilter.showDisabled = $('#edit-module-filter-show-disabled').is(':checked');
+      $('#edit-module-filter-show-disabled').change(function() {
+        Drupal.ModuleFilter.showDisabled = $(this).is(':checked');
+        Drupal.ModuleFilter.filter($('input[name="module_filter[name]"]').val());
+      });
+      Drupal.ModuleFilter.showRequired = $('#edit-module-filter-show-required').is(':checked');
+      $('#edit-module-filter-show-required').change(function() {
+        Drupal.ModuleFilter.showRequired = $(this).is(':checked');
+        Drupal.ModuleFilter.filter($('input[name="module_filter[name]"]').val());
+      });
+      Drupal.ModuleFilter.showUnavailable = $('#edit-module-filter-show-unavailable').is(':checked');
+      $('#edit-module-filter-show-unavailable').change(function() {
+        Drupal.ModuleFilter.showUnavailable = $(this).is(':checked');
+        Drupal.ModuleFilter.filter($('input[name="module_filter[name]"]').val());
+      });
+
+      if (Drupal.settings.moduleFilter.visualAid == 1) {
+        $('table.package tbody td.checkbox input').change(function() {
+          if ($(this).is(':checked')) {
+            Drupal.ModuleFilter.updateVisualAid('enable', $(this).parents('tr'));
+          }
+          else {
+            Drupal.ModuleFilter.updateVisualAid('disable', $(this).parents('tr'));
+          }
+        });
+      }
+
+      // Check for anchor.
+      var url = document.location.toString();
+      if (url.match('#')) {
+        // Make tab active based on anchor.
+        var anchor = '#' + url.split('#')[1];
+        $('a[href="' + anchor + '"]').click();
+      }
+      // Else if no active tab is defined, set it to the all tab.
+      else if (Drupal.ModuleFilter.activeTab == undefined) {
+        Drupal.ModuleFilter.activeTab = Drupal.ModuleFilter.tabs['all-tab'];
+      }
+    }
+  }
+
+  Drupal.ModuleFilter.visible = function(checkbox) {
+    if (checkbox.length > 0) {
+      if (Drupal.ModuleFilter.showEnabled) {
+        if ($(checkbox).is(':checked') && !$(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+      if (Drupal.ModuleFilter.showDisabled) {
+        if (!$(checkbox).is(':checked') && !$(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+      if (Drupal.ModuleFilter.showRequired) {
+        if ($(checkbox).is(':checked') && $(checkbox).is(':disabled')) {
+          return true;
+        }
+      }
+    }
+    if (Drupal.ModuleFilter.showUnavailable) {
+      if (checkbox.length == 0 || (!$(checkbox).is(':checked') && $(checkbox).is(':disabled'))) {
+        return true;
+      }
+    }
+    return false;
+  }
+
+  Drupal.ModuleFilter.filter = function(string) {
+    var stringLowerCase = string.toLowerCase();
+    var flip = 'odd';
+
+    if (Drupal.ModuleFilter.activeTab.id == 'all-tab') {
+      var selector = 'table.package tbody tr td label > strong';
+    }
+    else {
+      var selector = 'table.package tbody tr.' + Drupal.ModuleFilter.activeTab.id + '-content td label strong';
+    }
+
+    $(selector).each(function(i) {
+      var $row = $(this).parents('tr');
+      var module = $(this).text();
+      var moduleLowerCase = module.toLowerCase();
+
+      if (moduleLowerCase.match(stringLowerCase)) {
+        if (Drupal.ModuleFilter.visible($('td.checkbox :checkbox', $row))) {
+          $row.removeClass('odd even');
+          $row.addClass(flip);
+          $row.show();
+          flip = (flip == 'odd') ? 'even' : 'odd';
+        }
+        else {
+          $row.hide();
+        }
+      }
+      else {
+        $row.hide();
+      }
+    });
+  }
+
+  Drupal.ModuleFilter.Tab = function(element) {
+    this.id = $(element).attr('id');
+    this.element = element;
+
+    $(this.element).click(function() {
+      Drupal.ModuleFilter.tabs[$(this).attr('id')].setActive();
+    });
+  }
+
+  Drupal.ModuleFilter.Tab.prototype.setActive = function() {
+    if (Drupal.ModuleFilter.activeTab) {
+      $(Drupal.ModuleFilter.activeTab.element).parent().removeClass('active');
+    }
+    // Assume the default active tab is #all-tab. Remove its active class.
+    else {
+      $('#all-tab').parent().removeClass('active');
+    }
+
+    Drupal.ModuleFilter.activeTab = this;
+    $(Drupal.ModuleFilter.activeTab.element).parent().addClass('active');
+    Drupal.ModuleFilter.activeTab.displayRows();
+
+    // Clear filter textfield and refocus on it.
+    $('input[name="module_filter[name]"]').val('');
+    $('input[name="module_filter[name]"]').focus();
+  }
+
+  Drupal.ModuleFilter.Tab.prototype.displayRows = function() {
+    var flip = 'odd';
+    var selector = (Drupal.ModuleFilter.activeTab.id == 'all-tab') ? 'table.package tbody tr' : 'table.package tbody tr.' + this.id + '-content';
+    $('table.package tbody tr').hide();
+    $('table.package tbody tr').removeClass('odd even');
+    $(selector).each(function(i) {
+      if (Drupal.ModuleFilter.visible($('td.checkbox input', $(this)))) {
+        $(this).addClass(flip);
+        flip = (flip == 'odd') ? 'even' : 'odd';
+        $(this).show();
+      }
+    });
+  }
+
+  Drupal.ModuleFilter.Tab.prototype.updateEnabling = function(amount) {
+    this.enabling = this.enabling || 0;
+    this.enabling += amount;
+    if (this.enabling == 0) {
+      delete(this.enabling);
+    }
+  }
+
+  Drupal.ModuleFilter.Tab.prototype.updateDisabling = function(amount) {
+    this.disabling = this.disabling || 0;
+    this.disabling += amount;
+    if (this.disabling == 0) {
+      delete(this.disabling);
+    }
+  }
+
+  Drupal.ModuleFilter.Tab.prototype.updateVisualAid = function() {
+    var visualAid = '';
+    if (this.enabling != undefined) {
+      visualAid += '<span class="enabling">' + Drupal.t('+@count', { '@count': this.enabling }) + '</span>';
+    }
+    if (this.disabling != undefined) {
+      visualAid += '<span class="disabling">' + Drupal.t('-@count', { '@count': this.disabling }) + '</span>';
+    }
+
+    if (!$('span.visual-aid', $(this.element)).size() && visualAid != '') {
+      $(this.element).prepend('<span class="visual-aid"></span>');
+    }
+
+    $('span.visual-aid', $(this.element)).empty().append(visualAid);
+  }
+
+  Drupal.ModuleFilter.updateVisualAid = function(type, row) {
+    // Find row class.
+    var classes = row.attr('class').split(' ');
+    for (var i in classes) {
+      // Remove '-content' so we can use as id.
+      var id = classes[i].substring(0, classes[i].length - 8);
+      if (Drupal.ModuleFilter.tabs[id] != undefined) {
+        break;
+      }
+    }
+
+    if (Drupal.ModuleFilter.activeTab.id == 'all-tab') {
+      var allTab = Drupal.ModuleFilter.activeTab;
+      var projectTab = Drupal.ModuleFilter.tabs[id];
+    }
+    else {
+      var allTab = Drupal.ModuleFilter.tabs['all-tab'];
+      var projectTab = Drupal.ModuleFilter.activeTab;
+    }
+
+    var name = $('td label strong', row).text();
+    switch (type) {
+      case 'enable':
+        if (Drupal.ModuleFilter.disabling[id + name] != undefined) {
+          delete(Drupal.ModuleFilter.disabling[id + name]);
+          allTab.updateDisabling(-1);
+          projectTab.updateDisabling(-1);
+          row.removeClass('disabling');
+        }
+        else {
+          Drupal.ModuleFilter.enabling[id + name] = name;
+          allTab.updateEnabling(1);
+          projectTab.updateEnabling(1);
+          row.addClass('enabling');
+        }
+        break;
+      case 'disable':
+        if (Drupal.ModuleFilter.enabling[id + name] != undefined) {
+          delete(Drupal.ModuleFilter.enabling[id + name]);
+          allTab.updateEnabling(-1);
+          projectTab.updateEnabling(-1);
+          row.removeClass('enabling');
+        }
+        else {
+          Drupal.ModuleFilter.disabling[id + name] = name;
+          allTab.updateDisabling(1);
+          projectTab.updateDisabling(1);
+          row.addClass('disabling');
+        }
+        break;
+    }
+
+    allTab.updateVisualAid();
+    projectTab.updateVisualAid();
+  }
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/module_filter.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,49 @@
+<?php
+
+/**
+ * @file
+ *
+ * @author greenSkin
+ */
+
+/*******************************************************************************
+ * Callback Functions, Forms, and Tables
+ ******************************************************************************/
+
+/**
+ * Settings form for module filter.
+ */
+function module_filter_settings() {
+  $form['module_filter_tabs'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Tabs'),
+    '#description' => t('Divide module groups into tabbed list.'),
+    '#default_value' => variable_get('module_filter_tabs', 1)
+  );
+  $form['tabs'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Tabs'),
+    '#description' => t('Settings used with the tabs view of the modules page.'),
+    '#collapsible' => TRUE,
+    '#collapsed' => FALSE
+  );
+  $form['tabs']['module_filter_count_enabled'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Number of enabled modules'),
+    '#description' => t('Display the number of enabled modules in the active tab along with the total number of modules.'),
+    '#default_value' => variable_get('module_filter_count_enabled', 1)
+  );
+  $form['tabs']['module_filter_visual_aid'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Visuals for newly enabled and disabled modules'),
+    '#description' => t("Adds a basic count to tabs of modules being enabled/disabled and colors the module row pending it's being enabled or disabled"),
+    '#default_value' => variable_get('module_filter_visual_aid', 1)
+  );
+  $form['tabs']['module_filter_dynamic_save_position'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Dynamically position save button'),
+    '#description' => t("DEVELOPMENTAL: For sites with lots of tabs, enable to help keep the 'Save configuration' button more accessible."),
+    '#default_value' => variable_get('module_filter_dynamic_save_position', 0)
+  );
+  return system_settings_form($form);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/module_filter.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+name = Module filter
+description = "Filter the modules list."
+core = 7.x
+
+files[] = module_filter.install
+files[] = module_filter.js
+files[] = module_filter.module
+files[] = module_filter.admin.inc
+files[] = module_filter.theme.inc
+
+files[] = css/module_filter.css
+files[] = css/module_filter_tab.css
+
+files[] = js/module_filter.js
+files[] = js/module_filter_tab.js
+
+configure = admin/config/user-interface/modulefilter
+
+; Information added by drupal.org packaging script on 2013-08-08
+version = "7.x-1.8"
+core = "7.x"
+project = "module_filter"
+datestamp = "1375995220"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/module_filter.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+<?php
+
+/**
+ * @file
+ */
+
+/**
+ * Implementation of hook_uninstall().
+ */
+function module_filter_uninstall() {
+  variable_del('module_filter_tabs');
+  variable_del('module_filter_count_enabled');
+  variable_del('module_filter_visual_aid');
+  variable_del('module_filter_dynamic_save_position');
+}
+
+/**
+ * Remove the 'module_filter_autocomplete' variable.
+ */
+function module_filter_update_7100() {
+  variable_del('module_filter_autocomplete');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/module_filter.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,168 @@
+<?php
+
+/**
+ * @file
+ * This is the file description for Module Filter module.
+ *
+ * In this more verbose, multi-line description, you can specify what this
+ * file does exactly. Make sure to wrap your documentation in column 78 so
+ * that the file can be displayed nicely in default-sized consoles.
+ *
+ * @author greenSkin
+ */
+
+/**
+ * Implementation of hook_perm().
+ */
+function module_filter_permission() {
+  return array(
+    'administer module filter' => array(
+      'title' => t('Administer Module Filter'),
+      'description' => t('Configure how Module Filter performs.')
+    )
+  );
+}
+
+/**
+ * Implementation of hook_menu().
+ */
+function module_filter_menu() {
+  $items['admin/config/user-interface/modulefilter'] = array(
+    'title' => 'Module filter',
+    'description' => 'Configure settings for Module Filter.',
+    'access arguments' => array('administer module filter'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('module_filter_settings'),
+    'file' => 'module_filter.admin.inc'
+  );
+  return $items;
+}
+
+/**
+ * Implementation of hook_form_FORM_ID_alter().
+ */
+function module_filter_form_system_modules_alter(&$form, &$form_state, $form_id) {
+  // Don't alter the form when confirming.
+  if (isset($form['confirm'])) {
+    return;
+  }
+
+  $form['module_filter'] = array(
+    '#tree' => TRUE,
+    '#weight' => -1,
+    '#attached' => array(
+      'css' => array(
+        drupal_get_path('module', 'module_filter') .'/css/module_filter.css',
+      ),
+    ),
+  );
+  $form['module_filter']['name'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Filter list')
+  );
+
+  $form['module_filter']['show'] = array(
+    '#type' => 'checkboxes',
+    '#default_value' => array('enabled', 'disabled', 'required', 'unavailable'),
+    '#options' => array('enabled' => t('Enabled'), 'disabled' => t('Disabled'), 'required' => t('Required'), 'unavailable' => t('Unavailable')),
+    '#prefix' => '<div id="module-filter-show-wrapper">',
+    '#suffix' => '</div>'
+  );
+
+  if (variable_get('module_filter_tabs', 1)) {
+    $form['module_filter']['#attached']['css'][] = drupal_get_path('module', 'module_filter') .'/css/module_filter_tab.css';
+    $form['module_filter']['#attached']['js'][] = drupal_get_path('module', 'module_filter') .'/js/module_filter_tab.js';
+    $form['module_filter']['#attached']['js'][] = array(
+      'data' => array('moduleFilter' => array('visualAid' => variable_get('module_filter_visual_aid', 1))),
+      'type' => 'setting',
+    );
+
+    if (variable_get('module_filter_dynamic_save_position', 0)) {
+      $form['module_filter']['#attached']['js'][] = drupal_get_path('module', 'module_filter') .'/js/dynamic_position.js';
+    }
+
+    $form['module_filter']['#size'] = 45;
+
+    // Remove the fieldsets for each package since we will be using tabs
+    // instead. Put all modules into one array.
+    $modules = array(
+      '#theme' => 'module_filter_modules_table',
+      '#header' => array(
+        array('data' => t('Enabled'), 'class' => 'checkbox'),
+        t('Name'),
+        t('Version'),
+        t('Description'),
+        array('data' => t('Operations'), 'colspan' => 3)
+      )
+    );
+
+    $all = t('All');
+    $tab_counts = array($all => array('id' => 'all', 'enabled' => 0, 'total' => 0));
+    $form['#packages'] = array();
+    foreach (element_children($form['modules']) as $package) {
+      // Add the package to $form['#packages']. Tabs are built from this.
+      $form['#packages'][$package] = $package;
+
+      if (!isset($tab_counts[$package])) {
+        $tab_counts[$package] = array('enabled' => 0, 'total' => 0);
+      }
+
+      foreach (element_children($form['modules'][$package]) as $module) {
+        $tab_counts[$all]['total']++;
+        $tab_counts[$package]['total']++;
+        if (!empty($form['modules'][$package][$module]['enable']['#default_value'])) {
+          $tab_counts[$all]['enabled']++;
+          $tab_counts[$package]['enabled']++;
+        }
+
+        $modules[$module] = $form['modules'][$package][$module];
+        $modules[$module]['#package'] = $package;
+        $modules[$module]['#parents'] = array('modules', $package, $module);
+      }
+    }
+
+    // Sort the array of modules alphabetically.
+    uasort($modules, 'module_filter_sort_modules_by_display_name');
+
+    // Replace the $form['modules'] with our $modules array.
+    $form['modules'] = $modules;
+
+    // Add our $tab_counts array to the form.
+    $form['#tab_counts'] = $tab_counts;
+
+    $form['#theme'] = 'module_filter_system_modules_tabs';
+  }
+  else {
+    $form['module_filter']['#attached']['js'][] = drupal_get_path('module', 'module_filter') .'/js/module_filter.js';
+    $form['module_filter']['#prefix'] = '<div id="module-filter-wrapper" style="display: none;">';
+    $form['module_filter']['#suffix'] = '</div>';
+  }
+}
+
+/**
+ * Implementation of hook_theme().
+ */
+function module_filter_theme() {
+  return array(
+    'module_filter_modules_table' => array(
+      'render element' => 'form',
+      'file' => 'module_filter.theme.inc',
+    ),
+    'module_filter_system_modules_tabs' => array(
+      'render element' => 'form',
+      'file' => 'module_filter.theme.inc'
+    )
+  );
+}
+
+function module_filter_sort_modules_by_display_name($a, $b) {
+  if (is_array($a) && is_array($b) && isset($a['#package'], $b['#package'])) {
+    return strcasecmp($a['name']['#markup'], $b['name']['#markup']);
+  }
+  return 0;
+}
+
+function module_filter_get_id($text) {
+  $id = strtolower($text);
+  return preg_replace('/([^a-z])([\/(  )])*/', '-', $id);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/module_filter/module_filter.theme.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,81 @@
+<?php
+
+/**
+ * @file
+ *
+ * @author greenSkin
+ */
+
+function theme_module_filter_modules_table($variables) {
+  $form = $variables['form'];
+
+  // Individual table headers.
+  $rows = array();
+  // Iterate through all the modules, which are
+  // children of this fieldset.
+  foreach (element_children($form) as $key) {
+    // Stick it into $module for easier accessing.
+    $module = $form[$key];
+    $row = array();
+    unset($module['enable']['#title']);
+    $row[] = array('class' => array('checkbox'), 'data' => drupal_render($module['enable']));
+    $label = '<label';
+    if (isset($module['enable']['#id'])) {
+      $label .= ' for="'. $module['enable']['#id'] .'"';
+    }
+    $row[] = $label .'><strong>' . drupal_render($module['name']) . '</strong></label>';
+    $row[] = drupal_render($module['version']);
+    // Add the description, along with any modules it requires.
+    $description = drupal_render($module['description']);
+    if ($module['#requires']) {
+      $description .= '<div class="admin-requirements">' . t('Requires: !module-list', array('!module-list' => implode(', ', $module['#requires']))) . '</div>';
+    }
+    if ($module['#required_by']) {
+      $description .= '<div class="admin-requirements">' . t('Required by: !module-list', array('!module-list' => implode(', ', $module['#required_by']))) . '</div>';
+    }
+    $row[] = array('data' => $description, 'class' => array('description'));
+    // Display links (such as help or permissions) in their own columns.
+    foreach (array('help', 'permissions', 'configure') as $key) {
+      $row[] = array('data' => drupal_render($module['links'][$key]), 'class' => array($key));
+    }
+
+    $id = module_filter_get_id($module['#package']);
+    $rows[] = array(
+      'data' => $row,
+      'class' => array($id .'-tab-content')
+    );
+  }
+
+  return theme('table', array('header' => $form['#header'], 'rows' => $rows, 'attributes' => array('class' => array('package'))));
+}
+
+/**
+ * Theme callback for the modules tabbed form.
+ */
+function theme_module_filter_system_modules_tabs($variables) {
+  $form = $variables['form'];
+
+  $count_enabled = variable_get('module_filter_count_enabled', 1);
+
+  // Display packages.
+  $all = t('All');
+  $all_count = ($count_enabled) ? '<span class="counts">' . t('!enabled of !total', array('!enabled' => $form['#tab_counts'][$all]['enabled'], '!total' => $form['#tab_counts'][$all]['total'])) . '</span>' : '';
+  $tabs = array('all' => '<li class="active"><a id="all-tab" class="project-tab overlay-exclude" href="#all">' . $all . $all_count . '</a></li>');
+  foreach ($form['#packages'] as $package) {
+    $id = module_filter_get_id($package);
+
+    $count = ($count_enabled) ? '<span class="counts">' . t('!enabled of !total', array('!enabled' => $form['#tab_counts'][$package]['enabled'], '!total' => $form['#tab_counts'][$package]['total'])) . '</span>' : '';
+    $tabs[$id] = '<li><a id="' . $id . '-tab" class="project-tab overlay-exclude" href="#' . str_replace('-', '_', $id) . '">' . $package . $count . '</a></li>';
+  }
+
+  $output = '<div id="module-filter-wrapper">';
+  $output .= '<div id="module-filter-left">';
+  $output .= '<div id="module-filter-tabs"><ul>'. implode($tabs) . '</ul></div>';
+  $output .= '<div id="module-filter-submit">' . drupal_render($form['actions']) . '</div></div>';
+  $output .= '<div id="module-filter-right"><div id="module-filter-squeeze">' . drupal_render($form['module_filter']);
+  $output .= drupal_render($form['modules']) . '</div></div>';
+  $output .= '<div class="clear-block"></div>';
+  $output .= '</div>';
+  $output .= drupal_render_children($form);
+  return $output;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,78 @@
+*******************************************************************************
+
+Quicktabs
+
+Description:
+-------------------------------------------------------------------------------
+
+This module provides a form for admins to create a block of tabbed content by
+selecting a view, a node, a block or an existing Quicktabs instance as the content
+of each tab.
+The module can be extended to display other types of content.
+
+
+Installation & Use:
+-------------------------------------------------------------------------------
+
+1.  Enable module in module list located at administer > structure > modules.
+2.  Go to admin/structure/quicktabs and click on "Add Quicktabs Instance".
+3.  Add a title (this will be the block title) and start entering information for your tabs
+4.  Use the Add another tab button to add more tabs.
+5.  Use the drag handles on the left to re-arrange tabs.
+6.  Once you have defined all the tabs, click 'Save'.
+7.  You new block will be available at admin/structure/blocks.
+8.  Configure & enable it as required.
+9.  To add tab styles to your Quicktabs instances, enable the quicktabs_tabstyles module
+10. Edit the default style at admin/structure/quicktabs/styles
+11. Control the style of individual Quicktabs instances by editing the instance in
+question and selecting from the style dropdown.
+
+Note:
+-------------------------------------------------------------------------------
+Because Quicktabs allows your tabbed content to be pulled via ajax, it has its
+own menu callback for getting this content and returning it in JSON format. For
+node content, it uses the standard node_access check to make sure the user has
+access to this content. It is important to note that ANY node can be viewed
+from this menu callback; if you go to it directly at quicktabs/ajax/node/[nid]
+it will return a JSON text string of the node information. If there are certain 
+fields in ANY of your nodes that are supposed to be private, these MUST be 
+controlled at admin/content/node-type/MY_NODE_TYPE/display by setting them to 
+be excluded on teaser and node view. Setting them as private through some other 
+mechanism, e.g. Panels, will not affect their being displayed in an ajax Quicktab.
+
+For Developers:
+-------------------------------------------------------------------------------
+The basic Quicktabs functionality can be extended in several ways. The most basic is
+to use the quicktabs_build_quicktabs() function to create Quicktabs instances 
+programmatically, putting whatever you want into the Quicktabs instance. This function
+takes 3 parameters:
+$name - the name of an existing Quicktabs instance (i.e. existing in the database or
+in code), or a new name if creating an instance from scratch
+$overrides - an array of options to override the settings for the existing instance, or
+to override the default settings if creating an instance from scratch
+$custom_tabs - an array of tab content arrays. A very basic tab content array would be
+array('title' => 'My Custom Tab', 'contents' => 'Some text').
+One example of where this might prove useful is in a hook_page_alter implementation,
+where you could essentially put any render array that's part of the page into a
+Quicktabs instance. The contents property of a cusom tab can be a render array or
+a string of html.
+
+Another way to extend Quicktabs is to add a renderer plugin. Quicktabs comes with
+3 renderer plugins: jQuery UI Tabs, jQuery UI Accordion, and classic Quicktabs. A
+renderer plugin is a class that extends the QuickRenderer class and implements the 
+render() method, returning a render array that can be passed to drupal_render().
+See any of the existing renderer plugins for examples. Also see Quicktabs' implement-
+ation of hook_quicktabs_renderers().
+
+Lastly, Quicktabs can be extended by adding new types of entities that can be loaded
+as tab content. Quicktabs itself provides the node, block, view, qtabs and callback
+tab content types. Your contents plugins should extend the QuickContent class. See
+the existing plugins and the hook_quicktabs_contents implementation for guidance.
+
+
+
+Author:
+-------------------------------------------------------------------------------
+Katherine Bailey <katherine@katbailey.net>
+http://drupal.org/user/172987
+
Binary file sites/all/modules/quicktabs/add-tab.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/css/quicktabs-admin.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,79 @@
+
+/* Admin form */
+
+#qt-tablist-table .form-type-select label,
+#qt-tablist-table .form-type-textfield label {
+  float: left;
+  clear: left;
+  min-width: 120px;
+  margin-right: 10px;
+}
+#qt-tablist-table .form-item {
+  margin-bottom: 5px;
+}
+#qt-tablist-table .form-item .description {
+  margin-top: 3px;
+}
+#qt-tablist-table .qt-tab-title {
+  width: 130px;
+  height: 125px;
+}
+#qt-tablist-table .qt-tab-type,
+#qt-tablist-table .qt-tab-remove {
+  width: 100px;
+}
+
+#qt-tablist-table .description {
+  white-space: normal;
+}
+
+#qt-tablist-table .qt-tab-title .form-item .form-text {
+  width: 80px;
+}
+#qt-tablist-table .qt-tab-type label.option {
+  width: auto;
+}
+#qt-tablist-table .qt-tab-content .form-item .form-text {
+  width: 150px;
+}
+#qt-tablist-table .qt-tab-options-form {
+  border-bottom: 1px solid #999;
+  padding: 5px;
+}
+html.js #qt-tablist-table .qt-tab-options-form {
+  display: none;
+  border-bottom: none;
+  padding: 0px;
+}
+#qt-tablist-table .qt-tab-remove label,
+#quicktabs-form #add-more-tabs-button label {
+  font-weight: bold;
+  float: left;
+  clear: left;
+  width: auto;
+}
+#quicktabs-form #add-more-tabs-button {
+  width: 100px;
+  display: block;
+  margin-top: 20px;
+  float: right;
+}
+#quicktabs-form .add-tab,
+#qt-tablist-table .delete-tab {
+  display: block;
+  overflow: hidden;
+  width: 39px;
+  height: 23px;
+  padding: 0;
+  margin: 0;
+  border: 0;
+  text-indent: -9999px;
+  cursor: pointer;
+}
+
+#quicktabs-form .add-tab {
+  background: transparent url(../add-tab.gif) no-repeat 0 -3px;
+}
+#quicktabs-form .delete-tab {
+  background: transparent url(../delete-tab.gif) no-repeat 0 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/css/quicktabs.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+.quicktabs-hide {
+  display: none;
+}
+
+ul.quicktabs-tabs {
+  margin-top: 0;
+}
+ul.quicktabs-tabs li {
+  display: inline;
+  background: none;
+  list-style-type: none;
+  padding: 2px;
+  white-space: nowrap;
+}
+ul.quicktabs-tabs li a:focus {
+  outline: none;
+}
Binary file sites/all/modules/quicktabs/delete-tab.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/includes/quicktabs_style_plugin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,166 @@
+<?php
+// Id:$
+
+/**
+ * @file Add Quicktabs style plugins to Views.
+ */
+
+/**
+ * Style plugin to display Quicktabs.
+ */
+class quicktabs_style_plugin extends views_plugin_style {
+
+  // Allow some options for the style.
+  function option_definition() {
+    $options = parent::option_definition();
+    $options['tab_style'] = array('default' => 'default');
+    $options['tab_title_field'] = array('default' => NULL);
+
+    return $options;
+  }
+
+  // Create the options form.
+  function options_form(&$form, &$form_state) {
+    parent::options_form($form, $form_state);
+    $options = array();
+    $styles = module_invoke_all('quicktabs_tabstyles');
+    // The keys used for options must be valid html id-s.
+    // Removing the css file path, because that can't be used.
+    foreach ($styles as $style) {
+      $options[$style] = $style;
+    }
+    ksort($options);
+    $form['tab_style'] = array(
+      '#type' => 'select',
+      '#title' => t('Tab style'),
+      '#options' => array('nostyle' => t('No style'), 'default' => t('Default style')) + $options,
+      '#default_value' => $this->options['tab_style'],
+      '#description' => t('The tab style that will be applied to this set of tabs. Note that this style may not show in the live preview.'),
+      '#weight' => -5,
+    );
+
+    if (isset($form['grouping'])) {
+      $options = array();
+      foreach (element_children($form['grouping']) as $key => $value) {
+        if (!empty($form['grouping'][$key]['field']['#options']) && is_array($form['grouping'][$key]['field']['#options'])) {
+          $options = array_merge($options, $form['grouping'][$key]['field']['#options']);
+        }
+      }
+
+      unset($options['']);
+      $form['tab_title_field'] = array(
+        '#type' => 'select',
+        '#title' => t('Title field'),
+        '#options' => $options,
+        '#required' => TRUE,
+        '#default_value' => $this->options['tab_title_field'],
+        '#description' => t('Select the field that will be used as the tab title.'),
+        '#weight' => -3,
+      );
+    }
+  }
+
+  // Ensure we have all the settings necessary to render into tabs.
+  function validate() {
+    $errors = parent::validate();
+
+    // Ensure that we're using the field row style.
+    if (!$this->row_plugin->uses_fields()) {
+      $errors[] = t('Display "@display" uses the "@style" row style, but the Quicktabs display style requires use of the "Fields" row style.', array('@display' => $this->display->display_title, '@style' => $this->row_plugin->definition['title']));
+    }
+
+    // Ensure that a valid tab title field is selected.
+    $fields = $this->display->handler->get_handlers('field');
+    if (empty($this->options['tab_title_field']) || !isset($fields[$this->options['tab_title_field']])) {
+      $errors[] = t('The Quicktabs display style requires that a field be configured to be used as the tab title.');
+    }
+
+    return $errors;
+  }
+
+  // Override the render functionality.
+  function render() {
+    if (empty($this->row_plugin)) {
+      vpr('views_plugin_style_default: Missing row plugin');
+      return;
+    }
+
+    $view = $this->view;
+    $qt_name = 'view__' . $view->name .'__'. $view->current_display;
+
+    // Group the rows according to the grouping field, if specified.
+    $sets = $this->render_grouping($this->view->result, $this->options['grouping']);
+    $tabs = array();
+
+    foreach ($sets as $title => $records) {
+      if ($this->uses_row_plugin()) {
+        $rows = array();
+        foreach ($records as $row_index => $row) {
+          $this->view->row_index = $row_index;
+          $rows[] = $this->row_plugin->render($row);
+        }
+      }
+      else {
+        $rows = $records;
+      }
+
+      // If grouped, we'll be using the group title for each tab.
+      if ($this->options['grouping']) {
+
+        // Remove labels from titles.
+        foreach (element_children($this->options['grouping']) as $key => $value) {
+          if (!empty($this->view->field[$this->options['grouping'][$key]['field']]->options['label'])) {
+            $title = str_replace($this->view->field[$this->options['grouping'][$key]['field']]->options['label'] . ': ', '', $title);
+          }
+        }
+
+        $contents = '';
+        foreach ($rows as $row) {
+          $contents .= '<div class="quicktabs-views-group">' . $row . '</div>';
+        }
+        $tabs[] = array(
+          'title' => $title,
+          'contents' => array('#markup' => $contents),
+        );
+      }
+
+      // If not grouped, there's just one set of rows that we loop through.
+      else {
+        foreach ($rows as $index => $row) {
+          $title = $this->get_field($index, $this->options['tab_title_field']);
+          $tabs[] = array(
+            'title' => $title,
+            'contents' => array('#markup' => $row),
+          );
+        }
+      }
+    }
+
+    $overrides = array('style' => $view->style_options['tab_style'], 'sorted' => TRUE);
+    $quicktabs = quicktabs_build_quicktabs($qt_name, $overrides, $tabs);
+
+    $output = drupal_render($quicktabs);
+
+    // If doing a live preview, add the JavaScript directly to the output.
+    if (isset($view->live_preview) && $view->live_preview) {
+      $js = drupal_add_js();
+      $qtsettings = array();
+      foreach ($js['settings']['data'] as $settings) {
+        if (isset($settings['quicktabs']['qt_'. $qt_name])) {
+          $qtsettings = $settings['quicktabs']['qt_'. $qt_name];
+          break;
+        }
+      }
+
+      $output .= "<script type=\"text/javascript\">\n";
+      $output .= "Drupal.settings.quicktabs = Drupal.settings.quicktabs || {};\n";
+      $output .= "jQuery.extend(Drupal.settings.quicktabs, ". json_encode(array('qt_'. $qt_name => $qtsettings)) .");\n";
+      $output .= "</script>\n";
+    }
+
+    unset($view->row_index);
+
+    return $output;
+  }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/js/qt_accordion.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+(function ($) {
+
+Drupal.behaviors.qt_accordion = {
+  attach: function (context, settings) {
+    $('.quick-accordion', context).once(function(){
+      var id = $(this).attr('id');
+      var qtKey = 'qt_' + this.id.substring(this.id.indexOf('-') +1);
+      var options = settings.quicktabs[qtKey].options;
+
+      options.active = parseInt(settings.quicktabs[qtKey].active_tab);
+      if (settings.quicktabs[qtKey].history) {
+        options.event = 'change';
+        $(this).accordion(options);
+        Drupal.quicktabsBbq($(this), 'h3 a', 'h3');
+      }
+      else {
+        $(this).accordion(options);
+      }
+    });
+  }
+}
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/js/qt_ui_tabs.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,21 @@
+(function ($) {
+
+Drupal.behaviors.qt_ui_tabs = {
+  attach: function (context, settings) {
+
+    $('.quicktabs-ui-wrapper').once('qt-ui-tabs-processed', function() {
+      var id = $(this).attr('id');
+      var qtKey = 'qt_' + id.substring(id.indexOf('-') +1);
+      if (!settings.quicktabs[qtKey].history) {
+        $(this).tabs();
+      }
+      else {
+        $(this).tabs({event: 'change'});
+        Drupal.quicktabsBbq($(this), 'ul.ui-tabs-nav a');
+      }
+    });
+
+  }
+}
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/js/quicktabs.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,119 @@
+(function ($) {
+Drupal.settings.views = Drupal.settings.views || {'ajax_path': '/views/ajax'};
+
+Drupal.quicktabs = Drupal.quicktabs || {};
+
+Drupal.quicktabs.getQTName = function (el) {
+  return el.id.substring(el.id.indexOf('-') +1);
+}
+
+Drupal.behaviors.quicktabs = {
+  attach: function (context, settings) {
+    $.extend(true, Drupal.settings, settings);
+    $('.quicktabs-wrapper', context).once(function(){
+      Drupal.quicktabs.prepare(this);
+    });
+  }
+}
+
+// Setting up the inital behaviours
+Drupal.quicktabs.prepare = function(el) {
+  // el.id format: "quicktabs-$name"
+  var qt_name = Drupal.quicktabs.getQTName(el);
+  var $ul = $(el).find('ul.quicktabs-tabs:first');
+  $ul.find('li a').each(function(i, element){
+    element.myTabIndex = i;
+    element.qt_name = qt_name;
+    var tab = new Drupal.quicktabs.tab(element);
+    var parent_li = $(element).parents('li').get(0);
+    if ($(parent_li).hasClass('active')) {
+      $(element).addClass('quicktabs-loaded');
+    }
+    $(element).once(function() {$(this).bind('click', {tab: tab}, Drupal.quicktabs.clickHandler);});
+  });
+}
+
+Drupal.quicktabs.clickHandler = function(event) {
+  var tab = event.data.tab;
+  var element = this;
+  // Set clicked tab to active.
+  $(this).parents('li').siblings().removeClass('active');
+  $(this).parents('li').addClass('active');
+
+  // Hide all tabpages.
+  tab.container.children().addClass('quicktabs-hide');
+  
+  if (!tab.tabpage.hasClass("quicktabs-tabpage")) {
+    tab = new Drupal.quicktabs.tab(element);
+  }
+
+  tab.tabpage.removeClass('quicktabs-hide');
+  return false;
+}
+
+// Constructor for an individual tab
+Drupal.quicktabs.tab = function (el) {
+  this.element = el;
+  this.tabIndex = el.myTabIndex;
+  var qtKey = 'qt_' + el.qt_name;
+  var i = 0;
+  for (var key in Drupal.settings.quicktabs[qtKey].tabs) {
+    if (i == this.tabIndex) {
+      this.tabObj = Drupal.settings.quicktabs[qtKey].tabs[key];
+      this.tabKey = key;
+    }
+    i++;
+  }
+  this.tabpage_id = 'quicktabs-tabpage-' + el.qt_name + '-' + this.tabKey;
+  this.container = $('#quicktabs-container-' + el.qt_name);
+  this.tabpage = this.container.find('#' + this.tabpage_id);
+}
+
+if (Drupal.ajax) {
+  /**
+   * Handle an event that triggers an AJAX response.
+   *
+   * We unfortunately need to override this function, which originally comes from
+   * misc/ajax.js, in order to be able to cache loaded tabs, i.e. once a tab
+   * content has loaded it should not need to be loaded again.
+   *
+   * I have removed all comments that were in the original core function, so that
+   * the only comments inside this function relate to the Quicktabs modification
+   * of it.
+   */
+  Drupal.ajax.prototype.eventResponse = function (element, event) {
+    var ajax = this;
+
+    if (ajax.ajaxing) {
+      return false;
+    }
+  
+    try {
+      if (ajax.form) {
+        if (ajax.setClick) {
+          element.form.clk = element;
+        }
+  
+        ajax.form.ajaxSubmit(ajax.options);
+      }
+      else {
+        // Do not perform an ajax request for already loaded Quicktabs content.
+        if (!$(element).hasClass('quicktabs-loaded')) {
+          ajax.beforeSerialize(ajax.element, ajax.options);
+          $.ajax(ajax.options);
+          if ($(element).parents('ul').hasClass('quicktabs-tabs')) {
+            $(element).addClass('quicktabs-loaded');
+          }
+        }
+      }
+    }
+    catch (e) {
+      ajax.ajaxing = false;
+      alert("An error occurred while attempting to process " + ajax.options.url + ": " + e.message);
+    }
+    return false;
+  };
+}
+
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/js/quicktabs_bbq.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * Implements history using the BBQ plugin.
+ * See http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui-tabs
+ */
+(function($) {
+
+Drupal.quicktabsBbq = function($tabset, clickSelector, changeSelector) {
+
+  changeSelector = changeSelector || clickSelector;
+
+  // Define our own click handler for the tabs, overriding the default.
+  $(clickSelector, $tabset).each(function(i, el){
+    this.tabIndex = i;
+    $(this).click(function(e){
+      e.preventDefault();
+      var state = {},
+        id = $tabset.attr('id'), // qt container id
+        idx = this.tabIndex; // tab index
+
+      state[id] = idx;
+      $.bbq.pushState(state);
+    });
+  });
+
+  $(window).bind('hashchange', function(e) {
+    $tabset.each(function() {
+      var idx = $.bbq.getState(this.id, true);
+      var $active_link = $(this).find(changeSelector).eq(idx);
+      $active_link.triggerHandler('change');
+    });
+  });
+
+  $(window).trigger('hashchange');
+}
+
+})(jQuery);
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/js/quicktabs_form.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+(function ($) {
+
+Drupal.quicktabsShowHide = function() {
+  $(this).parents('tr').find('div.qt-tab-' + this.value + '-options-form').show().siblings('div.qt-tab-options-form').hide();
+};
+
+Drupal.behaviors.quicktabsform = {
+  attach: function (context, settings) {
+    $('#quicktabs-form tr').once(function(){
+      var currentRow = $(this);
+      currentRow.find('div.form-item :input[name*="type"]').bind('click', Drupal.quicktabsShowHide);
+      $(':input[name*="type"]:checked', this).trigger('click');
+    })
+  }
+};
+
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickAccordion.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,98 @@
+<?php
+
+/**
+ * Renders the content using the jQuery UI Accordion widget.
+ */
+class QuickAccordion extends QuickRenderer {
+  
+  public static function optionsForm($qt) {
+    $form = array();
+    $form['history'] = array(
+      '#type' => 'checkbox',
+      '#title' => 'History',
+      '#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'),
+      '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['history']) && $qt->options['history']),
+    );
+    $form['jquery_ui'] = array(
+      '#type' => 'fieldset',
+      '#title' => t('JQuery UI options'),
+    );
+    $form['jquery_ui']['autoHeight'] = array(
+      '#type' => 'checkbox',
+      '#title' => 'Autoheight',
+      '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['autoHeight']) && $qt->options['jquery_ui']['autoHeight']),
+    );
+    $form['jquery_ui']['collapsible'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Collapsible'),
+      '#default_value' => (isset($qt->renderer) && $qt->renderer == 'accordion' && isset($qt->options['jquery_ui']['collapsible']) && $qt->options['jquery_ui']['collapsible']),
+    );
+    return $form;
+  }
+  
+  public function render() {
+    $quickset = $this->quickset;
+    $qsid = 'quickset-' . $quickset->getName();
+    // Build our render array...
+    $render_array = array();
+    $render_array['#attached'] = $this->add_attached();
+    $render_array['content'] = array(
+      '#theme' => 'qt_accordion',
+      '#options' => array('attributes' => array(
+        'id' => $qsid,
+        'class' => array('quick-accordion'),
+      )),
+      'divs' => array(),
+    );
+
+    // Render all tab content.
+    foreach ($quickset->getContents() as $key => $item) {
+      if (!empty($item)) {
+        $render_array['content']['divs'][] = array(
+          '#prefix' => '<h3><a href= "#'. $qsid . '_' . $key .'">'. check_plain($quickset->translateString($item->getTitle(), 'tab', $key)) .'</a></h3><div>',
+          '#suffix' => '</div>',
+          'content' => $item->render(),
+        );
+      }
+    }
+    return $render_array;
+  }
+  
+  /**
+   * Add any necessary js, css and libraries for the render array.
+   */
+  protected function add_attached() {
+    $settings = $this->quickset->getSettings();
+    $options = $settings['options'];
+
+    $attached = array(
+      'library' => array(
+        array('system', 'ui.accordion'),
+      ),
+      'js' => array(
+        array('data' => drupal_get_path('module', 'quicktabs') . '/js/qt_accordion.js'),
+      ),
+    );
+
+    $javascript = drupal_add_js();
+    foreach ($javascript['settings']['data'] as $key => $settings) {
+      if (key($settings) == 'quicktabs') {
+        $qtkey = $key;
+        break;
+      }
+    }
+
+    if ($options['history']) {
+      $attached['library'][] = array('system', 'jquery.bbq');
+      $attached['js'][] = array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs_bbq.js');
+    }
+
+    $name = $this->quickset->getName();
+    if (!isset($qtkey) || !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs'])) {
+      $quicktabs_array = array('name' => $name, 'active_tab' => $this->quickset->getActiveTab(), 'options' => $options['jquery_ui'], 'history' => $options['history']);
+      $attached['js'][] = array('data' => array('quicktabs' => array('qt_'. $name => $quicktabs_array)), 'type' => 'setting');
+    }
+    return $attached;
+  }
+
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickBlockContent.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,93 @@
+<?php
+
+/**
+ * Class for tab content of type "block" - this is for rendering a block as tab
+ * content.
+ */
+class QuickBlockContent extends QuickContent {
+  
+  public static function getType() {
+    return 'block';
+  }
+
+  public function optionsForm($delta, $qt) {
+    $tab = $this->settings;
+    $form = array();
+    $form['block']['bid'] = array(
+      '#type' => 'select',
+      '#options' => quicktabs_get_blocks(),
+      '#default_value' => isset($tab['bid']) ? $tab['bid'] : '',
+      '#title' => t('Select a block'),
+    );
+    $form['block']['hide_title'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Hide the title of this block'),
+      '#default_value' => isset($tab['hide_title']) ? $tab['hide_title'] : 1,
+    );
+    return $form;
+  }
+
+  public function render($hide_empty = FALSE, $args = array()) {
+    if ($this->rendered_content) {
+      return $this->rendered_content;
+    }
+    $output = array();
+    $item = $this->settings;
+    if (!empty($args)) {
+      // The args have been passed in from an ajax request.
+      $qt_name = array_shift($args);
+      list($item['bid'], $item['hide_title']) = $args;
+
+      // Ensure the block is assigned to the requested quicktabs block. This test prevents
+      // AJAX access to blocks that have not been added to an AJAX-enabled quicktabs block.
+      $break = TRUE;
+      $quicktabs = quicktabs_load($qt_name);
+      // Ensure AJAX is enabled for the quicktabs block.
+      if (!empty($quicktabs) && $quicktabs->ajax == 1) {
+        // Ensure the requested tab has been added to the quicktabs block.
+        foreach ($quicktabs->tabs as $quicktab) {
+          if (isset($quicktab['bid']) && ($quicktab['bid'] == $item['bid'])) {
+            $break = FALSE;
+            break;
+          }
+        }
+      }
+      if ($break == TRUE) {
+        if (!$hide_empty) {
+          $output['#markup'] = theme('quicktabs_tab_access_denied', $item);
+        }
+        return $output;
+      }
+    }
+
+    if (isset($item['bid'])) {
+      if (module_exists('block')) {
+        $pos = strpos($item['bid'], '_delta_');
+        $module = drupal_substr($item['bid'], 0, $pos);
+        $delta = drupal_substr($item['bid'], $pos + 7);
+  
+        $block = block_load($module, $delta);
+        $block->region = 'quicktabs_tabpage';
+  
+        if ($block_arr = _block_render_blocks(array($block))) {
+          if ($item['hide_title']) {
+            $block_arr["{$block->module}_{$block->delta}"]->subject = FALSE;
+          }
+          if (!empty($block_arr["{$block->module}_{$block->delta}"]->content)) {
+            $build = _block_get_renderable_array($block_arr);
+            $output = $build;
+          }
+        }
+      }
+      elseif (!$hide_empty) {
+        $output['#markup'] = t('Block module is not enabled, cannot display content.');
+      }
+    }
+    $this->rendered_content = $output;
+    return $output;
+  }
+
+  public function getAjaxKeys() {
+    return array('bid', 'hide_title');
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickCallbackContent.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,92 @@
+<?php
+
+/**
+ * Class for tab content of type "callback" - this is for rendering the contents
+ * of some menu callback function as tab content.
+ */
+class QuickCallbackContent extends QuickContent {
+  
+  public static function getType() {
+    return 'callback';
+  }
+  
+  public function __construct($item) {
+    parent::__construct($item);
+
+    if (isset($item['path'])) {
+      $url_args = arg();
+      $path = $item['path'];
+  
+      foreach ($url_args as $id => $arg) {
+        $path = str_replace("%$id", $arg, $path);
+      }
+      $path = preg_replace(',/?(%\d),', '', $path);
+      if (!empty($path)) {
+        $this->settings['ajax_path'] = rawurlencode($path);
+      }
+      else {
+        $this->settings['ajax_path'] = '';
+      }
+      $this->settings['actual_path'] = $path;
+    }
+  }
+
+  public function optionsForm($delta, $qt) {
+    $tab = $this->settings;
+    $form = array();
+    $form['callback']['path'] = array(
+      '#type' => 'textfield',
+      '#default_value' => isset($tab['path']) ? $tab['path'] : '',
+      '#title' => t('Path'),
+      '#element_validate' => array('quicktabs_callback_element_validate'),
+    );
+    return $form;
+  }
+
+  public function render($hide_empty = FALSE, $args = array()) {
+    if ($this->rendered_content) {
+      return $this->rendered_content;
+    }
+    $item = $this->settings;
+    if (!empty($args)) {
+      // The args have been passed in from an ajax request.
+      // The first element of the args array is the qt_name, which we don't need
+      // for this content type.
+      array_shift($args);
+      $item['actual_path'] = rawurldecode($args[0]);
+      $_GET['q'] = $item['actual_path'];
+    }
+    
+    $output = array();
+    if (isset($item['actual_path'])) {
+      // Retain the current page title as we'll need to set it back after
+      // calling menu_execute_active_handler().
+      $page_title = drupal_get_title();
+      $response = menu_execute_active_handler($item['actual_path'], FALSE);
+      // Revert the page title.
+      drupal_set_title($page_title);
+
+      if (!is_array($response)) {
+        if (is_int($response)) {
+          if (MENU_ACCESS_DENIED == $response && !$hide_empty) {
+            $output['#markup'] = theme('quicktabs_tab_access_denied', array('tab' => $item));
+          }
+          // For any other integer response form the menu callback, we'll just
+          // return an empty array.
+        }
+        else {
+          $output = array('#markup' => $response);
+        }
+      }
+      else {
+        $output = $response;
+      }
+    }
+    $this->rendered_content = $output;
+    return $output;
+  }
+
+  public function getAjaxKeys() {
+    return array('ajax_path');
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickNodeContent.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,72 @@
+<?php
+
+/**
+ * Class for tab content of type "node" - this is for rendering a node as tab
+ * content.
+ */
+class QuickNodeContent extends QuickContent {
+  
+  public static function getType() {
+    return 'node';
+  }
+
+  public function optionsForm($delta, $qt) {
+    $tab = $this->settings;
+    $form = array();
+    $form['node']['nid'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Node'),
+      '#description' => t('The node ID of the node.'),
+      '#maxlength' => 10,
+      '#size' => 20,
+      '#default_value' => isset($tab['nid']) ? $tab['nid'] : '',
+    );
+    $form['node']['teaser'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Teaser view'),
+      '#default_value' => isset($tab['teaser']) ? $tab['teaser'] : 0,
+    );
+    $form['node']['hide_title'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Hide the title of this node'),
+      '#default_value' => isset($tab['hide_title']) ? $tab['hide_title'] : 1,
+    );
+    return $form;
+  }
+
+  public function render($hide_empty = FALSE, $args = array()) {
+    if ($this->rendered_content) {
+      return $this->rendered_content;
+    }
+    $item = $this->settings;
+    if (!empty($args)) {
+      // The args have been passed in from an ajax request.
+      // The first element of the args array is the qt_name, which we don't need
+      // for this content type.
+      array_shift($args);
+      list($item['nid'], $item['teaser'], $item['hide_title']) = $args;
+    }
+    $output = array();
+    if (isset($item['nid'])) {
+      $node = node_load($item['nid']);
+      if (!empty($node)) {
+        if (node_access('view', $node)) {
+          $buildmode = $item['teaser'] ? 'teaser' : 'full';
+          $nstruct = node_view($node, $buildmode);
+          if ($item['hide_title']) {
+            $nstruct['#node']->title = NULL;
+          }
+          $output = $nstruct;
+        }
+        elseif (!$hide_empty) {
+          $output = array('#markup' => theme('quicktabs_tab_access_denied', array('tab' => $item)));
+        }
+      }
+    }
+    return $output;
+  }
+  
+  public function getAjaxKeys() {
+    return array('nid', 'teaser', 'hide_title');
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickQtabsContent.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,65 @@
+<?php
+
+/**
+ * Class for tab content of type "qtabs" - this is for rendering a QuickSet instance
+ * as the tab content of another QuickSet instance.
+ */
+class QuickQtabsContent extends QuickContent {
+  
+  public static function getType() {
+    return 'qtabs';
+  }
+  
+  public function optionsForm($delta, $qt) {
+    $tab = $this->settings;
+    $form = array();
+    $tab_options = array();
+    foreach (quicktabs_load_multiple() as $machine_name => $info) {
+      // Do not offer the option to put a tab inside itself.
+      if (!isset($qt->machine_name) || $machine_name != $qt->machine_name) {
+        $tab_options[$machine_name] = $info->title;
+      }
+    }
+    $form['qtabs']['machine_name'] = array(
+      '#type' => 'select',
+      '#title' => t('Quicktabs instance'),
+      '#description' => t('The Quicktabs instance to put inside this tab.'),
+      '#options' => $tab_options,
+      '#default_value' => isset($tab['machine_name']) ? $tab['machine_name'] : '',
+    );
+    return $form;
+  }
+
+  public function render($hide_empty = FALSE, $args = array()) {
+    if ($this->rendered_content) {
+      return $this->rendered_content;
+    }
+    $item = $this->settings;
+    if (!empty($args)) {
+      // The args have been passed in from an ajax request.
+      // The first element of the args array is the qt_name, which we don't need
+      // for this content type.
+      array_shift($args);
+      $item['machine_name'] = $args[0];
+    }
+
+    $output = array();
+    if (isset($item['machine_name'])) {
+      if ($quicktabs = quicktabs_load($item['machine_name'])) {
+        $contents = $quicktabs->tabs;
+        $name = $quicktabs->machine_name;
+        unset($quicktabs->tabs, $quicktabs->machine_name);
+        $options = (array) $quicktabs;
+        if ($qt = QuickSet::QuickSetRendererFactory($name, $contents, $quicktabs->renderer, $options)) {
+          $output = $qt->render();
+        }
+      }
+    }
+    $this->rendered_content = $output;
+    return $output;
+  }
+
+  public function getAjaxKeys() {
+    return array('machine_name');
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickQuicktabs.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,156 @@
+<?php
+
+/**
+ * Renders the content using the original Quicktabs mechanism of previous versions.
+ * Includes support for ajax rendered content.
+ */
+class QuickQuicktabs extends QuickRenderer {
+  
+  public function render() {
+    $quickset = $this->quickset;
+    
+    $render_array = array();
+
+    $active_tab = $quickset->getActiveTab();
+    if ($tabs = $this->build_tablinks($active_tab)) {
+      $render_array['#attached'] = $this->add_attached();
+
+      $qt_name = $quickset->getName();
+      $settings = $quickset->getSettings();
+      $contents = $quickset->getContents();
+
+      $render_array['content'] = array(
+        '#theme' => 'qt_quicktabs',
+        '#options' => array('attributes' => array(
+          'id' => 'quicktabs-' . $qt_name,
+          'class' => 'quicktabs-wrapper quicktabs-style-' . drupal_strtolower($settings['style']),
+        )),
+        'tabs' => array('#theme' => 'qt_quicktabs_tabset', '#options' => array('active' => $active_tab, 'style' => drupal_strtolower($settings['style'])), 'tablinks' => $tabs),
+        // The main content area, each quicktab container needs a unique id.
+        'container' => array(
+          '#prefix' => '<div id="quicktabs-container-' . $qt_name .'" class="quicktabs_main quicktabs-style-' . drupal_strtolower($settings['style']) .'">',
+          '#suffix' => '</div>',
+          'divs' => array(),
+        ),
+      );
+
+      // If in ajax mode, we'll only be rendering one tab, otherwise all of them.
+      $tabs_to_render = $settings['ajax'] ? array($active_tab => $contents[$active_tab]) : $contents;
+      foreach ($tabs_to_render as $key => $tab) {
+        if (!empty($tab)) {
+          $attribs = array(
+            'id' => 'quicktabs-tabpage-'. $qt_name . '-'. $key,
+            'class' => array('quicktabs-tabpage', ($active_tab == $key ? '' : 'quicktabs-hide')),
+          );
+          $render_array['content']['container']['divs'][] = array(
+            '#prefix' => '<div '. drupal_attributes($attribs) .'>',
+            '#suffix' => '</div>',
+            'content' => $tab->render(),
+          );
+        }
+      }
+    }
+    return $render_array;
+  }
+
+  /**
+   * Build the actual tab links, with appropriate href, title and attributes.
+   * 
+   * @param $active_tab The index of the active tab.
+   */
+  protected function build_tablinks($active_tab) {
+    $quickset = $this->quickset;
+    $settings = $quickset->getSettings();
+    $tabs = array();
+    foreach ($quickset->getContents() as $i => $tab) {
+      if (!empty($tab)) {
+        $tablink = array(
+          '#type' => 'link',
+          '#title' => $quickset->translateString($tab->getTitle(), 'tab', $i),
+          '#href' =>  $_GET['q'],
+          '#options' => $this->construct_link_options($i),
+        );
+        if ($settings['ajax']) {
+          $tab_settings = $tab->getSettings();
+          $ajax_keys = $tab->getAjaxKeys();
+          $ajax_args = array();
+          foreach ($ajax_keys as $key) {
+            $ajax_args[] = $tab_settings[$key];
+          }
+          $ajax_path = $quickset->getAjaxPath($i, $tab->getType());
+          $ajax_href = $ajax_path . '/'. implode('/', $ajax_args);
+          $tablink['#ajax'] = array(
+            'progress' => array('message' => '', 'type' => 'throbber'),
+            'path' => $ajax_href,
+          );
+        }
+        $tabs[$i] = $tablink;
+      }
+    }
+    return $tabs;
+  }
+
+  /**
+   * Add any necessary js, css and libraries for the render array.
+   */
+  protected function add_attached() {
+    $attached = array(
+      'css' => array(
+        array('data' => drupal_get_path('module', 'quicktabs') .'/css/quicktabs.css'),
+      ),
+      'js' => array(
+        array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs.js'),
+        array('data' => 'misc/progress.js', 'weight' => JS_LIBRARY),
+      ),
+    );
+    $settings = $this->quickset->getSettings();
+    // Add the custom style css if a custom style has been set.
+    $style_css = quicktabs_get_css($settings['style']);
+    if (!empty($style_css)) {
+      $attached['css'][] = $style_css;
+    }
+    // Prepare a tab_settings array for passing the tab info to our JavaScript.
+    $tab_settings = array();
+    foreach ($this->quickset->getContents() as $i => $content) {
+      if (!empty($content)) {
+        $tab_settings[$i] = $content->getSettings();
+      }
+    }
+    // Add our JS settings
+    $javascript = drupal_add_js();
+    foreach ($javascript['settings']['data'] as $key => $settings) {
+      if (key($settings) == 'quicktabs') {
+        $qtkey = $key;
+        break;
+      }
+    }
+    $name = $this->quickset->getName();
+    if (!isset($qtkey) || (isset($javascript['settings']['data'][$qtkey]['quicktabs'])
+      && !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs']))) {
+      $quicktabs_array = array_merge(array('name' => $name, 'tabs' => $tab_settings), $settings);
+      $attached['js'][] = array('data' => array('quicktabs' => array('qt_' . $name => $quicktabs_array)), 'type' => 'setting');
+    }
+    return $attached;
+  }
+  
+  /**
+   * Helper function to construct link options for tab links.
+   */
+  protected function construct_link_options($tabkey) {
+    $qt_name = $this->quickset->getName();
+    $id = 'quicktabs-tab-' . implode('-', array($qt_name, $tabkey));
+  
+    // Need to construct the correct querystring for the tab links.
+    $query = drupal_get_query_parameters(NULL, array("qt-$qt_name", 'q', 'page'));
+    $query["qt-{$qt_name}"] = $tabkey;
+  
+    $link_options = array(
+      'attributes' => array(
+        'id' => $id,
+      ),
+      'query' => $query,
+      'fragment' => 'qt-' . $qt_name,
+    );
+    return $link_options;
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickUiTabs.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,113 @@
+<?php
+
+/**
+ * Renders the content using the jQuery UI Tabs widget.
+ */
+class QuickUiTabs extends QuickRenderer {
+  
+  public static function optionsForm($qt) {
+    $form = array();
+    $form['history'] = array(
+      '#type' => 'checkbox',
+      '#title' => 'History',
+      '#description' => t('Store tab state in the URL allowing for browser back / forward and bookmarks.'),
+      '#default_value' => (isset($qt->renderer) && $qt->renderer == 'ui_tabs' && isset($qt->options['history']) && $qt->options['history']),
+    );
+    return $form;
+  }
+
+  public function render() {
+    $quickset = $this->quickset;
+
+    $active_tab = $quickset->getActiveTab();
+    $tabs = $this->build_tablinks($active_tab);
+    $qt_name = $quickset->getName();
+    $render_array = array(
+      '#attached' => $this->add_attached(),
+      'content' => array(
+        '#theme' => 'qt_ui_tabs',
+        '#options' => array('attributes' => array(
+          'id' => 'quicktabs-' . $qt_name,
+          'class' => 'quicktabs-ui-wrapper',
+        )),
+        'tabs' => array('#theme' => 'qt_ui_tabs_tabset', '#options' => array('active' => $active_tab), 'tablinks' => $tabs),
+        'divs' => array(),
+      ),
+    );
+    foreach ($quickset->getContents() as $key => $tab) {
+      if (!empty($tab)) {
+        $attribs = array(
+          'id' => 'qt-'. $qt_name .'-ui-tabs' . ($key+1),
+        );
+        $render_array['content']['divs'][] = array(
+          '#prefix' => '<div '. drupal_attributes($attribs) .'>',
+          '#suffix' => '</div>',
+          'content' => $tab->render(),
+        );
+      }
+    }
+    return $render_array;
+  }
+
+  
+  /**
+   * Build the actual tab links, with appropriate href, title and attributes.
+   * 
+   * @param $active_tab The index of the active tab.
+   */
+  protected function build_tablinks($active_tab) {
+    $tabs = array();
+    $qt_name = $this->quickset->getName();
+    foreach ($this->quickset->getContents() as $i => $tab) {
+      if (!empty($tab)) {
+	// If we use l() here or a render array of type 'link', the '#' symbol will
+	// be escaped. Sad panda is sad.
+	$href = '#qt-'. $qt_name .'-ui-tabs' . ($i+1);
+	$tablink = array(
+	  '#markup' => '<a href="'. $href .'">'. check_plain($this->quickset->translateString($tab->getTitle(), 'tab', $i)) .'</a>',
+	);
+	$tabs[$i] = $tablink;
+      }
+    }
+    return $tabs;
+  }
+
+  /**
+   * Add any necessary js, css and libraries for the render array.
+   */
+  protected function add_attached() {
+    $active_tab = $this->quickset->getActiveTab();
+    $settings = $this->quickset->getSettings();
+    $options = $settings['options'];
+
+    $attached = array(
+      'library' => array(
+        array('system', 'ui.tabs'),
+	array('system', 'jquery.bbq'),
+      ),
+      'js' => array(
+        array('data' => drupal_get_path('module', 'quicktabs') . '/js/qt_ui_tabs.js', 'weight' => JS_DEFAULT + 1),
+      ),
+    );
+
+    $javascript = drupal_add_js();
+    foreach ($javascript['settings']['data'] as $key => $settings) {
+      if (key($settings) == 'quicktabs') {
+        $qtkey = $key;
+        break;
+      }
+    }
+
+    if ($options['history']) {
+      $attached['library'][] = array('system', 'jquery.bbq');
+      $attached['js'][] = array('data' => drupal_get_path('module', 'quicktabs') . '/js/quicktabs_bbq.js', 'weight' => JS_DEFAULT);
+    }
+
+    $name = $this->quickset->getName();
+    if (!isset($qtkey) || !array_key_exists('qt_' . $name, $javascript['settings']['data'][$qtkey]['quicktabs'])) {
+      $quicktabs_array = array('name' => $name, 'active_tab' => $this->quickset->getActiveTab(), 'history' => $options['history']);
+      $attached['js'][] = array('data' => array('quicktabs' => array('qt_'. $name => $quicktabs_array)), 'type' => 'setting');
+    }
+    return $attached;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/plugins/QuickViewContent.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,141 @@
+<?php
+
+/**
+ * Class for tab content of type "view" - this is for rendering a view as tab
+ * content.
+ */
+class QuickViewContent extends QuickContent {
+
+  // Each view that we render, whether via ajax or not, will need a unique DOM
+  // id. Unfortunately we can only control the ones that Quicktabs is responsible
+  // for, so if there are other views on the page, there may be duplicate ids.
+  static $view_dom_id = 1;
+  
+  public static function getType() {
+    return 'view';
+  }
+  
+  public function optionsForm($delta, $qt) {
+    $tab = $this->settings;
+    $form = array();
+    $views = quicktabs_get_views();
+    $views_keys = array_keys($views);
+
+    $selected_view = (isset($tab['vid']) ? $tab['vid'] : (isset($views_keys[0]) ? $views_keys[0] : ''));
+    $form['view']['vid'] = array(
+      '#type' => 'select',
+      '#options' => $views,
+      '#default_value' => $selected_view,
+      '#title' => t('Select a view'),
+      '#ajax' => array(
+        'callback' => '_quicktabs_replace_view_displays_callback',
+      ),
+    );
+    $form['view']['display'] = array(
+      '#type' => 'select',
+      '#title' => 'display',
+      '#options' => _quicktabs_get_views_displays($selected_view),
+      '#default_value' => isset($tab['display']) ? $tab['display'] : '',
+      '#prefix' => '<div id="view-display-dropdown-' . $delta . '">',
+      '#suffix' => '</div>'
+    );
+    $form['view']['args'] = array(
+      '#type' => 'textfield',
+      '#title' => 'arguments',
+      '#size' => '40',
+      '#required' => FALSE,
+      '#default_value' => isset($tab['args']) ? $tab['args'] : '',
+      '#description' => t('Additional arguments to send to the view as if they were part of the URL in the form of arg1/arg2/arg3. You may use %0, %1, ..., %N to grab arguments from the URL.'),
+    );
+    return $form;
+  }
+  
+  public function __construct($item) {
+    parent::__construct($item);
+    if (module_exists('views')) views_add_js('ajax_view');
+    $this->settings['view_path'] = rawurlencode($_GET['q']);
+    $this->settings['view_dom_id'] = self::$view_dom_id++;
+    if (isset($item['args'])) {
+      $url_args = arg();
+      $args = $item['args'];
+  
+      foreach ($url_args as $id => $arg) {
+        $args = str_replace("%$id", $arg, $args);
+      }
+      $args = preg_replace(',/?(%\d),', '', $args);
+      if (!empty($args)) {
+        $this->settings['ajax_args'] = rawurlencode($args);
+        $args_array = explode('/', $args);
+      }
+      else {
+        $this->settings['ajax_args'] = '';
+        $args_array = array();
+      }
+      $this->settings['actual_args'] = $args_array;
+    }
+  }
+
+  public function render($hide_empty = FALSE, $args = array()) {
+    if (!empty($args)) {
+      // The args have been passed in from an ajax request. We use Views' own
+      // ajax functionality to get the view.
+      // The first element of the args array is the qt_name, which we don't need
+      // for this content type.
+      array_shift($args);
+      // The order of these arguments corresponds to the array returned in
+      // $this->getAjaxKeys().
+      $_REQUEST['view_name'] = array_shift($args);
+      $_REQUEST['view_display_id'] = array_shift($args);
+      $_REQUEST['view_dom_id'] = array_shift($args);
+      $view_path = array_shift($args);
+      $_REQUEST['view_path'] = rawurldecode($view_path);
+      if (!empty($args)) {
+        $view_args = array_shift($args);
+        $_REQUEST['view_args'] = rawurldecode($view_args);
+      }
+
+      module_load_include('inc', 'views', 'includes/ajax');
+      $view = views_ajax();
+      foreach ($view['#commands'] as $command) {
+        if ($command['command'] == 'insert') {
+          return array('#markup' => trim($command['data']));
+        }
+      }
+      return array();
+    }
+
+    // Non-ajax rendering of a view.
+    if ($this->rendered_content) {
+      return $this->rendered_content;
+    }
+    $item = $this->settings;
+    $output = array();
+    if (isset($item['vid'])) {
+      if (module_exists('views')) {
+        if ($view = views_get_view($item['vid'])) {
+          if ($view->access($item['display'])) {
+            $view->set_display($item['display']);
+            $view->set_arguments($item['actual_args']);
+            $view_output = $view->preview();
+            if (!empty($view->result) || $view->display_handler->get_option('empty') || !empty($view->style_plugin->definition['even empty'])) {
+              $output['#markup'] = $view_output;
+            }
+          }
+          elseif (!$hide_empty) {
+            $output['#markup'] = theme('quicktabs_tab_access_denied', array('tab' => $item));
+          }
+          $view->destroy();
+        }
+      }
+      elseif (!$hide_empty) {
+        $output['#markup'] = t('Views module is not enabled, cannot display content.');
+      }
+    }
+    $this->rendered_content = $output;
+    return $output;
+  }
+
+  public function getAjaxKeys() {
+    return array('vid', 'display', 'view_dom_id', 'view_path', 'ajax_args');
+  }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,658 @@
+<?php
+/**
+ * @file
+ * Provides the Quicktabs administrative interface.
+ */
+
+/**
+ * Page callback to list quicktabs in the system.
+ */
+function quicktabs_list() {
+  $header = array(
+    array('data' => t('QuickSet')),
+    array('data' => t('Storage')),
+    array('data' => t('Operations'), 'colspan' => 4),
+  );
+  $rows = array();
+
+  foreach (quicktabs_load_multiple() as $qt) {
+    // Determine storage
+    switch ($qt->export_type) {
+      case EXPORT_IN_DATABASE | EXPORT_IN_CODE:
+        $storage = t('Overridden');
+        $delete = l(t('Revert'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/delete');
+        break;
+      case EXPORT_IN_DATABASE:
+        $storage = t('Normal');
+        $delete = l(t('Delete'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/delete');
+        break;
+      case EXPORT_IN_CODE:
+        $storage = t('Default');
+        $delete = '';
+        break;
+    }
+
+    $tablerow = array(
+      array('data' => check_plain($qt->title)),
+      array('data' => $storage),
+      array('data' => l(t('Edit'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/edit')),
+      array('data' => l(t('Export'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/export')),
+      array('data' => l(t('Clone'), 'admin/structure/quicktabs/manage/'. $qt->machine_name .'/clone')),
+      array('data' => $delete),
+    );
+    $rows[] = $tablerow;
+  }
+
+  if (empty($rows)) {
+    $rows[] = array(array('data' => t('No quicktabs instances available.'), 'colspan' => 6));
+  }
+
+  $build = array(
+    '#theme' => 'table',
+    '#header' => $header,
+    '#rows' => $rows,
+    '#attributes' => array('id' => 'quicktabs'),
+  );
+  return $build;
+}
+
+/**
+ * Clone QuickTabs.
+ */
+function quicktabs_clone($qt) {
+  unset($qt->machine_name);
+  $qt->title = '';
+  return drupal_get_form('quicktabs_form', 'clone', $qt);
+}
+
+/**
+ * Build the quicktab creation and edit form.
+ */
+function quicktabs_form($form, $form_state, $formtype, $qt = NULL) {
+  if (!isset($qt)) {
+    $qt = new stdClass;
+  }
+  $form = _quicktabs_admin_main_form($form_state, $qt);
+
+  // If creating a new Quicktabs instance, start off with 2 empty tabs.
+  if (empty($qt->tabs)) {
+    $qt->tabs = array(
+      0 => array(),
+      1 => array(),
+    );
+  }
+
+  // If the "Add another" button was clicked, we need to increment the number of
+  // tabs by one.
+  if (isset($form_state['num_tabs']) && $form_state['num_tabs'] > count($qt->tabs)) {
+    $qt->tabs[] = array();
+  }
+  $form_state['num_tabs'] = count($qt->tabs);
+  
+  // If the "Remove" button was clicked for a tab, we need to remove that tab
+  // from the form.
+  if (isset($form_state['to_remove'])) {
+    unset($qt->tabs[$form_state['to_remove']]);
+    unset($form_state['to_remove']);
+    $form_state['num_tabs']--;
+  }
+
+  $tab_titles = array();
+  // Add current tabs to the form.
+  foreach ($qt->tabs as $delta => $tab) {
+    $tab['delta'] = $delta;
+    $form['qt_wrapper']['tabs'][$delta] = _quicktabs_form($tab, $qt);
+    if (isset($tab['title'])) {
+      $tab_titles[$delta] = $tab['title'];
+    }
+  }
+  // If there's only one tab, it shouldn't be removeable.
+  if (count($qt->tabs) == 1) $form['qt_wrapper']['tabs'][$delta]['remove']['#access'] = FALSE;
+
+  $form['default_tab'] = array(
+    '#type' => 'select',
+    '#title' => t('Default tab'),
+    '#options' => $tab_titles,
+    '#default_value' => isset($qt->default_tab) ? $qt->default_tab : 0,
+    '#access' => !empty($tab_titles),
+    '#weight' => -5,
+  );
+
+  return $form;
+}
+
+/**
+ * The main section of admin page.
+ */
+function _quicktabs_admin_main_form($form_state, &$qt) {
+
+  // The contents of $qt will either come from the db or from $form_state.
+  if (isset($form_state['values']['title'])) {
+    $qt = _quicktabs_convert_form_to_quicktabs($form_state);
+  }
+  
+  $form['title'] = array(
+    '#title' => t('Title'),
+    '#description' => t('This will appear as the block title.'),
+    '#type' => 'textfield',
+    '#default_value' => isset($qt->title) ? $qt->title : '',
+    '#weight' => -9,
+    '#required' => TRUE,
+  );
+  
+  $form['machine_name'] = array(
+    '#type' => 'machine_name',
+    '#maxlength' => 32,
+    '#machine_name' => array(
+      'exists' => 'quicktabs_machine_name_exists',
+      'source' => array('title'),
+    ),
+    '#description' => t('A unique machine-readable name for this Quicktabs instance. It must only contain lowercase letters, numbers, and underscores. The machine name will be used internally by Quicktabs and will be used in the CSS ID of your Quicktabs block.'),
+    '#weight' => -8,
+  );
+
+  if (!empty($qt->machine_name)) {
+    $form['machine_name']['#default_value'] = $qt->machine_name;
+    $form['machine_name']['#disabled'] = TRUE;
+    $form['machine_name']['#value'] = $qt->machine_name;
+  }
+
+  ctools_include('plugins');
+  $renderers = ctools_get_plugins('quicktabs', 'renderers');
+  $renderer_options = array();
+  foreach ($renderers as $name => $info) {
+    if ($class = ctools_plugin_load_class('quicktabs', 'renderers', $name, 'handler')) {
+      // Add the renderer to the dropdown list of renderers
+      $renderer_options[$name] = $name;
+      // Get the renderer's options form elements
+      
+      // PHP 5.2 doesn't support $class::staticMethod() syntax, so we have to
+      // use call_user_func_array() until PHP 5.3 is required.
+      $renderer_form_options[$name] = call_user_func_array(array($class, 'optionsForm'), array($qt));
+    }
+  }
+  ksort($renderer_options);
+  $form['renderer'] = array(
+    '#type' => 'select',
+    '#title' => t('Renderer'),
+    '#options' => $renderer_options,
+    '#default_value' => isset($qt->renderer) ? $qt->renderer : 'quicktabs',
+    '#description' => t('Choose how to render the content.'),
+    '#weight' => -7,
+  );
+  // Add the renderer options form elements to the form, to be shown only if the
+  // renderer in question is selected.
+  $form['options'] = array('#tree' => TRUE, '#weight' => -6);
+  foreach ($renderer_form_options as $renderer => $options) {
+    foreach ($options as &$option) {
+      $option['#states'] = array('visible' => array(':input[name="renderer"]' => array('value' => $renderer)));
+    }
+    $form['options'][$renderer] = $options;
+  }
+  
+  $styles = module_invoke_all('quicktabs_tabstyles');
+  if (count($styles)) {
+    $style_options = array();
+    // The keys used for options must be valid html IDs.
+    foreach ($styles as $style) {
+      $style_options[$style] = $style;
+    }
+    ksort($style_options);
+    $form['style'] = array(
+      '#type' => 'select',
+      '#title' => t('Style'),
+      '#options' => array('nostyle' => t('No style')) + array('default' => t('Default style')) + $style_options,
+      '#default_value' => isset($qt->style) ? $qt->style : 'default',
+      '#description' => t('Choose the quicktab style.'),
+      '#states' => array('visible' => array(':input[name="renderer"]' => array('value' => 'quicktabs'))),
+      '#weight' => -6,
+    );
+  }
+  else {
+    $form['style'] = array(
+      '#type' => 'value',
+      '#value' => 'nostyle',
+    );
+  }
+
+  $form['ajax'] = array(
+    '#type' => 'radios',
+    '#title' => t('Ajax'),
+    '#options' => array(
+      TRUE => t('Yes') . ': ' . t('Load only the first tab on page view'),
+      FALSE => t('No') . ': ' . t('Load all tabs on page view.'),
+    ),
+    '#default_value' => isset($qt->ajax) ? $qt->ajax : 0,
+    '#description' => t('Choose how the content of tabs should be loaded.<p>By choosing "Yes", only the first tab will be loaded when the page first viewed. Content for other tabs will be loaded only when the user clicks the other tab. This will provide faster initial page loading, but subsequent tab clicks will be slower. This can place less load on a server.</p><p>By choosing "No", all tabs will be loaded when the page is first viewed. This will provide slower initial page loading, and more server load, but subsequent tab clicks will be faster for the user. Use with care if you have heavy views.</p><p>Warning: if you enable Ajax, any block you add to this quicktabs block will be accessible to anonymous users, even if you place role restrictions on the quicktabs block. Do not enable Ajax if the quicktabs block includes any blocks with potentially sensitive information.</p>'),
+    '#states' => array('visible' => array(':input[name="renderer"]' => array('value' => 'quicktabs'))),
+    '#weight' => -5,
+  );
+
+  $form['hide_empty_tabs'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Hide empty tabs'),
+    '#default_value' => isset($qt->hide_empty_tabs) ? $qt->hide_empty_tabs : 0,
+    '#description' => t('Empty and restricted tabs will not be displayed. Could be useful when the tab content is not accessible.<br />This option does not work in ajax mode.'),
+    '#weight' => -4,
+  );
+
+  // Add a wrapper for the tabs and Add Another Tab button.
+  $form['qt_wrapper'] = array(
+    '#tree' => FALSE,
+    '#weight' => -3,
+    '#prefix' => '<div class="clear-block" id="quicktabs-tabs-wrapper">',
+    '#suffix' => '</div>',
+  );
+
+  $form['qt_wrapper']['tabs'] = array(
+    '#tree' => TRUE,
+    '#prefix' => '<div id="quicktab-tabs">',
+    '#suffix' => '</div>',
+    '#theme' => 'quicktabs_admin_form_tabs',
+  );
+
+  $form['qt_wrapper']['tabs_more'] = array(
+    '#type' => 'submit',
+    '#prefix' => '<div id="add-more-tabs-button">',
+    '#suffix' => '<label for="edit-tabs-more">' . t('Add tab') . '</label></div>',
+    '#value' => t('More tabs'),
+    '#attributes' => array('class' => array('add-tab'), 'title' => t('Click here to add more tabs.')),
+    '#weight' => 1,
+    '#submit' => array('quicktabs_more_tabs_submit'),
+    '#ajax' => array(
+      'callback' => 'quicktabs_ajax_callback',
+      'wrapper' => 'quicktab-tabs',
+      'effect' => 'fade',
+    ),
+    '#limit_validation_errors' => array(),
+  );
+
+  $form['actions'] = array('#type' => 'actions');
+  $form['actions']['submit_form'] = array(
+    '#type' => 'submit',
+    '#value' => t('Save'),
+  );
+
+  return $form;
+}
+
+/*
+ * Build one row (one tabpage) on the QT admin form.
+ * 
+ * @param array $tab
+ *  An array containing the details of this particular tabpage.
+ * 
+ * @param object $qt
+ *  An object representing the Quicktabs instance that the tabs are
+ *  being built for. 
+ */
+function _quicktabs_form(array $tab, $qt) {
+  $form['#tree'] = TRUE;
+  $delta = $tab['delta'];
+
+  $form['weight'] = array(
+    '#type' => 'weight',
+    '#default_value' => isset($tab['weight']) ? $tab['weight'] : $delta-100,
+    '#delta' => 100,
+  );
+
+  $form['title'] = array(
+    '#type' => 'textfield',
+    '#size' => '10',
+    '#default_value' => isset($tab['title']) ? $tab['title'] : '',
+  );
+
+  // Load all "contents" plugins to display a choice of content types.
+  ctools_include('plugins');
+  $contents = ctools_get_plugins('quicktabs', 'contents');
+  foreach ($contents as $name => $info) {
+    if (isset($info['dependencies'])) {
+      foreach ($info['dependencies'] as $dep) {
+        // Do not load the options form for any plugin that is missing dependencies.
+        if (!module_exists($dep)) continue 2;
+      }
+    }
+    $tabtypes[$name] = $name;
+    $content_provider = quick_content_factory($name, $tab);
+    $form = array_merge_recursive($form, $content_provider->optionsForm($delta, $qt));
+  }
+
+  $form['type'] = array(
+    '#type' => 'radios',
+    '#options' => $tabtypes,
+    '#default_value' => isset($tab['type']) ? $tab['type'] : key($tabtypes),
+  );
+
+  $form['remove'] = array(
+    '#type' => 'submit',
+    '#prefix' => '<div>',
+    '#suffix' => '<label for="edit-remove">' . t('Delete') . '</label></div>',
+    '#value' => 'remove_' . $delta,
+    '#attributes' => array('class' => array('delete-tab'), 'title' => t('Click here to delete this tab.')),
+    '#submit' => array('quicktabs_remove_tab_submit'),
+    '#ajax' => array(
+      'callback' => 'quicktabs_ajax_callback',
+      'wrapper' => 'quicktab-tabs',
+      'method' => 'replace',
+      'effect' => 'fade',
+    ),
+    '#limit_validation_errors' => array(),
+  );
+
+  return $form;
+}
+
+/**
+ * Theme function for quicktabs admin page.
+ * Theme the form elements for the tabs as draggable table rows.
+ *
+ * @ingroup themeable
+ */
+function theme_quicktabs_admin_form_tabs($variables) {
+  $tabs = $variables['tabs'];
+
+  drupal_add_tabledrag('qt-tablist-table', 'order', 'sibling', 'qt-tabs-weight');
+  $rows = array();
+  $header = array(
+    t('Tab title'),
+    t('Tab weight'),
+    t('Tab type'),
+    t('Tab content'),
+    t('Operations'),
+  );
+
+  foreach (element_children($tabs) as $key) {
+    $tab = &$tabs[$key];
+    $tab['weight']['#attributes']['class'] = array('qt-tabs-weight');
+
+    // tab settings fields
+    $tab_fields = array(
+      array('data' => drupal_render($tab['title']), 'class' => array('qt-tab-title')),
+      array('data' => drupal_render($tab['weight']), 'class' => array('qt-tab-weight')),
+      array('data' => drupal_render($tab['type']), 'class' => array('qt-tab-type')),
+    );
+
+    // content plugins
+    $content_plugins = '';
+    foreach ($tab['type']['#options'] as $content_provider ) {
+      $tab[$content_provider]['#prefix'] = '<div class="qt-tab-options-form qt-tab-'. $content_provider .'-options-form">';
+      $tab[$content_provider]['#suffix'] = '</div>';
+      $content_plugins .= drupal_render($tab[$content_provider]);
+    }
+    $tab_fields[] = array('data' => $content_plugins);
+    $tab_fields[] = array('data' => drupal_render($tab['remove']), 'class' => array('qt-tab-remove'));
+
+    // Build the table row.
+    $row = array(
+      'data' => $tab_fields,
+      'class' => array('draggable'),
+    );
+
+    // Add additional attributes to the row, such as a class for this row.
+    if (isset($tab['#attributes'])) {
+      $row = array_merge($row, $tab['#attributes']);
+    }
+    $rows[] = $row;
+  }
+
+  $build['quicktab'] = array(
+    '#theme' => 'table',
+    '#header' => $header,
+    '#rows' => $rows,
+    '#attributes' => array('id' => 'qt-tablist-table'),
+    '#weight' => -1,
+  );
+  $build['#attached']['css'][] = drupal_get_path('module', 'quicktabs') . '/css/quicktabs-admin.css';
+  $build['#attached']['js'][] = drupal_get_path('module', 'quicktabs') . '/js/quicktabs_form.js';
+
+  $output = drupal_render($build);
+  return $output;
+}
+
+/**
+ * Ajax callback for the add tab and remove tab buttons.
+ */
+function quicktabs_ajax_callback($form, $form_state) {
+  $form_tabs = $form['qt_wrapper']['tabs'];
+  return $form_tabs;
+}
+
+/**
+ * Submit handler for the "Add Tab" button.
+ */
+function quicktabs_more_tabs_submit($form, &$form_state) {
+  // Increment the number of tabs to be rendered.
+  $form_state['num_tabs']++;
+  $form_state['rebuild'] = TRUE;
+}
+
+/**
+ * Submit handler for the "Remove Tab" button.
+ */
+function quicktabs_remove_tab_submit($form, &$form_state) {
+  // Get the tab delta for the clicked button.
+  $delta = $form_state['clicked_button']['#parents'][1];
+  $form_state['to_remove'] = $delta;
+  $form_state['rebuild'] = TRUE;
+}
+
+/**
+ * Validation handler for quicktabs admin page.
+ */
+function quicktabs_form_validate($form, &$form_state) {
+  if (empty($form_state['values']['machine_name'])) {
+    form_set_error('machine_name', t('The quicktabs machine name is required.'));
+  }
+  elseif (!preg_match('!^[a-z0-9_]+$!', $form_state['values']['machine_name'])) {
+    form_set_error('machine_name', t('The quicktabs machine name must contain only lowercase letters, numbers, and underscores.'));
+  }
+
+  if (!isset($form_state['values']['tabs'])) {
+    form_set_error('', t('At least one tab should be created.'));
+  }
+  else {
+    foreach ($form_state['values']['tabs'] as $j => $tab) {
+      if (empty($tab['title'])) {
+        form_set_error('tabs][' . $j . '][title', t('Title is required for each tab.'));
+      }
+    }
+  }
+}
+
+function quicktabs_callback_element_validate($element, &$form_state, $form) {
+  // We can tell which tab delta the element is for from the element's #parents
+  // property, which is an array based on the tree structure.
+  $delta = $element['#parents'][1];
+  if ($form_state['values']['tabs'][$delta]['type'] == 'callback') {
+    if (empty($element['#value']) || url_is_external($element['#value'])) {
+      form_error($element, t('You must specify a valid path.'));
+    }
+    if (strpos($element['#value'], '%') === 0) {
+      form_error($element, t('"%" may not be used for the first segment of a path.'));
+    }
+    // automatically remove '/' from path.
+    $form_state['values']['tabs'][$delta]['callback']['path'] = trim($form_state['values']['tabs'][$delta]['callback']['path'], '/');
+  }
+}
+
+
+/**
+ * Submit handler for quicktabs admin page.
+ */
+function quicktabs_form_submit($form, &$form_state) {
+  if ($form_state['clicked_button']['#id'] == 'edit-submit-form') {
+    $qt = _quicktabs_convert_form_to_quicktabs($form_state);
+
+    $exists = quicktabs_load($qt->machine_name);
+    if ($exists && empty($exists->in_code_only)) {
+      $ret = drupal_write_record('quicktabs', $qt, 'machine_name');
+      if ($ret == SAVED_UPDATED) {
+        drupal_set_message(t('The Quicktabs instance has been updated.'));
+      }
+    }
+    else {
+      $ret = drupal_write_record('quicktabs', $qt);
+      if ($ret == SAVED_NEW) {
+        drupal_set_message(t('The Quicktabs instance has been created.'));
+      }
+    }
+    quicktabs_i18n_update_strings(array($qt->machine_name));
+    drupal_goto('admin/structure/quicktabs');
+  }
+}
+
+/**
+ * Deletion of quicktab block.
+ */
+function quicktabs_block_delete($form, $form_state, $qt) {
+  $form['machine_name'] = array('#type' => 'hidden', '#value' => $qt->machine_name);
+  $form['title'] = array('#type' => 'hidden', '#value' => $qt->title);
+  return confirm_form($form, t('Are you sure you want to delete the quicktab block %title?', array('%title' => $qt->title)), 'admin/structure/quicktabs', '', t('Delete'), t('Cancel'));
+}
+
+/**
+ * Submit handler for quicktab block deletion.
+ */
+function quicktabs_block_delete_submit($form, &$form_state) {
+  db_query('DELETE FROM {quicktabs} WHERE machine_name = :machine_name', array(':machine_name' => $form_state['values']['machine_name']));
+  drupal_set_message(t('The Quicktabs instance %name has been removed.', array('%name' => $form_state['values']['title'])));
+  cache_clear_all();
+  $form_state['redirect'] = 'admin/structure/quicktabs';
+};
+
+/**
+ * Export form for quicktabs.
+ */
+function quicktabs_export_form($form, &$form_state, $qt) {
+  ctools_include('export');
+  // Generate export code
+  $code = '$items = array();' ."\n";
+  $code .= ctools_export_object('quicktabs', $qt, '');
+  $code .= '$items["'. $qt->machine_name .'"] = $quicktabs;' ."\n";
+  $code .= 'return $items;';
+
+  // Create form
+  $form = array();
+  $form['export'] = array(
+    '#type' => 'textarea',
+    '#default_value' => $code,
+    '#rows' => substr_count($code, "\n") + 1,
+    '#resizable' => FALSE,
+    '#description' => t('Place this code in your module\'s implementation of <code>hook_quicktabs_default_quicktabs()</code> to provide it as a default quicktab.'),
+  );
+  $form['done'] = array(
+    '#type' => 'submit',
+    '#value' => t('Done'),
+  );
+  $form['#redirect'] = 'admin/structure/quicktabs';
+
+  return $form;
+}
+
+/**
+ * Helper function to get all blocks.
+ */
+function quicktabs_get_blocks() {
+  $blocksarray = &drupal_static(__FUNCTION__, array());
+  if (empty($blocksarray)) {
+    $blocks = _block_rehash();
+    $blocksarray = array();
+    foreach ($blocks as $block) {
+      if ($block['module'] != 'quicktabs') {
+        $key = $block['module'] . '_delta_' . $block['delta'];
+        $blocksarray[$key] = $block['info'] . ' (' . $block['module'] . ':' . $block['delta'] . ')';
+      }
+    }
+  }
+  return $blocksarray;
+}
+
+/**
+ * Ajax callback, triggered when view is changed.
+ */
+function _quicktabs_replace_view_displays_callback($form, $form_state) {
+  $view_name = $form_state['triggering_element']['#value'];
+  $delta = $form_state['triggering_element']['#parents'][1];
+  $display_options = _quicktabs_get_views_displays($view_name);
+  $form['qt_wrapper']['tabs'][$delta]['view']['display']['#options'] = $display_options;
+
+  $commands = array();
+  // Replace the view display dropdown.
+  $commands[] = ajax_command_replace("#view-display-dropdown-$delta", drupal_render($form['qt_wrapper']['tabs'][$delta]['view']['display']));
+  return array('#type' => 'ajax', '#commands' => $commands);
+}
+
+/**
+ * Helper function to get all views.
+ */
+function quicktabs_get_views() {
+  $enabled_views = array();
+  $views = views_get_all_views();
+
+  foreach ($views as $view) {
+    // Skip disabled views.
+    if (!empty($views[$view->name]->disabled)) {
+      continue;
+    }
+    $enabled_views[$view->name] = $view->name;
+  }
+  ksort($enabled_views);
+  return $enabled_views;
+}
+
+/**
+ * Helper function to get all view displays.
+ */
+function _quicktabs_get_views_displays($view_name) {
+  $displays = array();
+  if (empty($view_name)) {
+    // No view.
+    return $displays;
+  }
+
+  $views = views_get_all_views();
+  $view = $views[$view_name];
+
+  if (empty($view->display)) {
+    // This view is broken.
+    return $displays;
+  }
+
+  foreach ($view->display as $id => $display) {
+    $displays[$id] = $id .': '. $display->display_title;
+  }
+  return $displays;
+}
+
+/**
+ * Helper function to convert the data on admin form into quicktab presentation.
+ */
+function _quicktabs_convert_form_to_quicktabs($form_state) {
+  $formvalues_tabs = array();
+  if (!empty($form_state['values']['tabs'])) {
+    foreach ($form_state['values']['tabs'] as $j => $tab) {
+      $formvalues_tabs[$j] = $tab[$tab['type']];
+      $formvalues_tabs[$j]['title'] = $tab['title'];
+      $formvalues_tabs[$j]['weight'] = $tab['weight'];
+      $formvalues_tabs[$j]['type'] = $tab['type'];
+      $weight[$j] = $tab['weight'];
+    }
+    array_multisort($weight, SORT_ASC, $formvalues_tabs);
+  }
+  $renderer = $form_state['values']['renderer'];
+  $qt = new stdClass();
+  $qt->title = $form_state['values']['title'];
+  $qt->ajax = $form_state['values']['ajax'];
+  $qt->default_tab = isset($form_state['values']['default_tab']) ? $form_state['values']['default_tab'] : 0;
+  $qt->hide_empty_tabs = $form_state['values']['hide_empty_tabs'];
+  $qt->renderer = $renderer;
+  $qt->style = $form_state['values']['style'];
+  $qt->tabs = $formvalues_tabs;
+  $qt->options = isset($form_state['values']['options'][$renderer]) ? $form_state['values']['options'][$renderer] : array();
+
+  if (isset($form_state['values']['machine_name'])) {
+    $qt->machine_name = $form_state['values']['machine_name'];
+  }
+
+  return $qt;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.api.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * Alter the Quicktabs instance before it gets rendered.
+ *
+ * @param &$quicktabs
+ *   A loaded Quicktabs object, either from the database or from code.
+ */
+function hook_quicktabs_alter(&$quicktabs) {
+}
+
+/**
+ * This hook allows other modules to create additional tab styles for
+ * the quicktabs module.
+ *
+ * @return array
+ *   An array of key => value pairs suitable for inclusion as the #options in a
+ *   select or radios form element. Each key must be the location of a css
+ *   file for a quick tabs style. Each value should be the name of the style.
+ */
+function hook_quicktabs_tabstyles() {
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.classes.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,516 @@
+<?php
+
+/**
+ * A QuickSet object is an unrendered Quicktabs instance, essentially just a
+ * container of content items, as defined by its configuration settings and the
+ * array of content items it contains.
+ */
+class QuickSet {
+  
+  /**
+   * The unique name of the QuickSet object.
+   * This corresponds to the machine name as stored in the database or as defined
+   * in code.
+   * @var string
+   */
+  protected $name;
+  
+  /**
+   * The contents array.
+   * An array of objects that implement the QuickContentRenderable interface.
+   * @var array
+   */
+  protected $contents;
+  
+  /**
+   * An array of settings controlling the behaviour of the QuickSet object. See
+   * the getDefaultSettings() static function of this class for the full list of
+   * settings.
+   * @var array
+   */
+  protected $settings;
+  
+
+  /**
+   * Accessors.
+   */
+  
+  public function getName() {
+    return $this->name;
+  }
+  
+  public function getContents() {
+    return $this->contents;
+  }
+  
+  public function getSettings() {
+    return $this->settings;
+  }
+
+  public function getTitle() {
+    return isset($this->settings['title']) ? $this->translateString($this->settings['title'], 'title') : $this->name;
+  }
+
+  /**
+   * Instantiate, populate and return a QuickSet object wrapped in a renderer.
+   *
+   * @param $name
+   *   The unique name (machine name) of the QuickSet instance.
+   *
+   * @param $contents
+   *   The array of content items, each one itself an array with at least a 'type'
+   *   key, a 'title' key, and the other info necessary for that type.
+   *
+   * @param $renderer
+   *   The plugin key for this renderer plugin
+   *
+   * @param $settings
+   *   An array of settings determining the behaviour of this QuickSet instance.
+   *  
+   */
+  public static function QuickSetRendererFactory($name, $contents, $renderer, $settings) {
+    ctools_include('plugins');
+    if ($class = ctools_plugin_load_class('quicktabs', 'renderers', $renderer, 'handler')) {
+      try {
+        $qs = new self($name, $contents, $settings);
+      }
+      catch (InvalidQuickSetException $e) {
+        watchdog('Quicktabs', $e->getMessage());
+        return NULL;
+      }
+      return new $class($qs);
+    }
+  }
+  
+  /**
+   * Returns a reference to an object that implements the QuickContentRenderable
+   * interface.
+   */
+  public static function getContentRenderer($tab) {
+    if ($tab['type'] == 'prerendered') {
+      return new QuickPreRenderedContent($tab);
+    }
+    if ($content = QuickContent::factory($tab['type'], $tab)) {
+      return $content;
+    }
+    return NULL;
+  }
+  
+  /**
+   * Static method to retrieve content from an ajax call. This is called by the
+   * quicktabs_ajax() callback in quicktabs.module.
+   */
+  public static function ajaxRenderContent($type, $args) {
+    if ($renderer = self::getContentRenderer(array('type' => $type))) {
+      $output = $renderer->render(FALSE, $args);
+      return !empty($output) ? drupal_render($output) : '';
+    }
+    return '';
+  }
+  
+  /**
+   * Ensure sensible default settings for each QuickSet object.
+   */
+  private static function getDefaultSettings() {
+    return array(
+      'title' => '<none>',
+      'style' => 'nostyle',
+      'hide_empty_tabs' => 0,
+      'ajax' => 0,
+      'default_tab' => 0,
+      'options' => array(),
+    );
+  }
+  
+  /**
+   * Constructor
+   */
+  public function __construct($name, $contents, $settings) {
+    $this->name = $name;
+    $this->contents = array();
+    foreach ($contents as $key => $item) {
+      // Instantiate a content renderer object and add it to the contents array.
+      if ($renderer = self::getContentRenderer($item)) {
+        $this->contents[$key] = $renderer;
+      }
+    }
+    $default_settings = self::getDefaultSettings();
+    $this->settings = array_merge($default_settings, $settings);
+
+    $this->prepareContents();
+    // Set the default style if necessary.
+    if ($this->settings['style'] == 'default') {
+      $this->settings['style'] = variable_get('quicktabs_tabstyle', 'nostyle');
+    }
+  }
+
+  /**
+   * Returns an ajax path to be used on ajax-enabled tab links.
+   *
+   * @param $index The index of the tab, i.e where it fits into the QuickSet
+   * instance.
+   *
+   * @param $type The type of content we are providing an ajax path for.
+   */
+  public function getAjaxPath($index, $type) {
+    return 'quicktabs/ajax/'. $this->name .'/'. $index . '/'. $type;
+  }
+
+  /**
+   * Translates Quicktabs user-defined strings if the i18n module is
+   * enabled.
+   */
+  public function translateString($string, $type = 'tab', $index = 0) {
+    switch ($type) {
+      case 'tab':
+        $name = "tab:{$this->name}-{$index}:title";
+        break;
+      case 'title':
+        $name = "title:{$this->name}";
+        break;
+    }
+    return quicktabs_translate($name, $string);
+  }
+
+  /**
+   * This method does some initial set-up of the tab contents, such as hiding
+   * tabs with no content if the hide_empty_tabs option is set. It also makes sure
+   * that prerendered contents are never attempted to be loaded via ajax.
+   *
+   * @throws InvalidQuickSetException if there are no contents to render.
+   */
+  protected function prepareContents() {
+    if (!count($this->contents))  {
+      throw new InvalidQuickSetException('There are no contents to render.');
+    }
+    if ($this->settings['hide_empty_tabs'] && !$this->settings['ajax']) {
+      // Check if any tabs need to be hidden because of empty content.
+      $renderable_contents = 0;
+      foreach ($this->contents as $key => $tab) {
+        $contents = $tab->render(TRUE);
+        if (empty($contents)) {
+          // Rather than removing the item, we set it to NULL. This way we retain
+          // the same indices across tabs, so that permanent links to particular
+          // tabs can be relied upon.
+          $this->contents[$key] = NULL;
+          // The default tab must not be a hidden tab.
+          if ($this->settings['default_tab'] == $key) {
+            $this->settings['default_tab'] = ($key + 1) % count($this->contents);
+          }
+        }
+        else {
+          $renderable_contents++;
+        }
+      }
+      if (!$renderable_contents)  {
+        throw new InvalidQuickSetException('There are no contents to render.');
+      }
+    }
+    elseif ($this->settings['ajax']) {
+      // Make sure that there is at most 1 prerendered tab and it is the default tab.
+      // Prerendered content cannot be rendered via ajax.
+      $has_prerendered = FALSE; // keep track of whether we have found a prerendered tab.
+      foreach ($this->contents as $key => $tab) {
+        $type = $tab->getType();
+        if ($type == 'prerendered') {
+          if (!$has_prerendered) {
+            $has_prerendered = TRUE;
+            $this->settings['default_tab'] = $key;
+            // In the case of a direct link to a different tab, the 'default_tab'
+            // will be overridden, so we need to make sure it does not attempt
+            // to load a pre-rendered tab via ajax. Turn ajax option off.
+            if ($this->getActiveTab() !== $key) {
+              $this->settings['ajax'] = 0;
+            }
+          }
+          else {
+            // We are on a second custom tab and the ajax option is set, we cannot
+            // render custom tabs via ajax, so we skip out of the loop, set the
+            // ajax option to off, and call the method again.
+            $this->settings['ajax'] = 0;
+            $this->prepareContents();
+            return;
+          }
+        }
+      }
+    }
+  }
+  
+  /**
+   * Returns the active tab for a given Quicktabs instance. This could be coming
+   * from the URL or just from the settings for this instance. If neither, it
+   * defaults to 0.
+   */
+  public function getActiveTab() {
+    $active_tab = isset($this->settings['default_tab']) ? $this->settings['default_tab'] : key($this->contents);
+    $active_tab = isset($_GET['qt-' . $this->name]) ? $_GET['qt-' . $this->name] : $active_tab;
+    $active_tab = (isset($active_tab) && isset($this->contents[$active_tab])) ? $active_tab : 0;
+    return $active_tab;
+  }
+}
+
+/**
+ * Abstract base class for QuickSet Renderers.
+ *
+ * A renderer object contains a reference to a QuickSet object, which it can
+ * then render.
+ */
+abstract class QuickRenderer {
+  
+  /**
+   * @var QuickSet
+   */
+  protected $quickset;
+
+  /**
+   * Constructor
+   */
+  public function __construct($quickset) {
+    $this->quickset = $quickset;
+  }
+  
+  /**
+   * Accessor method for the title.
+   */
+  public function getTitle() {
+    return $this->quickset->getTitle();
+  }
+  
+  /**
+   * The only method that renderer plugins must implement.
+   * 
+   * @return A render array to be passed to drupal_render().
+   */
+  abstract public function render();
+  
+
+  /**
+   * Method for returning the form elements to display for this renderer type on
+   * the admin form.
+
+   * @param $qt An object representing the Quicktabs instance that the tabs are
+   * being built for.
+   */
+  public static function optionsForm($qt) {
+    return array();
+  }
+  
+}
+
+/*******************************************************
+ * The classes below relate to individual tab content  *
+ *******************************************************/
+
+/**
+ * Each QuickSet object has a "contents" property which is an array of objects
+ * that implement the QuickContentRenderable interface.
+ */
+interface QuickContentRenderable {
+  
+  /**
+   * Returns the short type name of the content plugin, e.g. 'block', 'node', 
+   * 'prerendered'.
+   */
+  public static function getType();
+  
+  /**
+   * Returns the tab title.
+   */
+  public function getTitle();
+
+  /**
+   * Returns an array of settings specific to the type of content.
+   */
+  public function getSettings();
+  
+  /**
+   * Renders the content.
+   *
+   * @param $hide_emtpy If set to true, then the renderer should return an empty
+   * array if there is no content to display, for example if the user does not
+   * have access to the requested content.
+   *
+   * @param $args Used during an ajax call to pass in the settings necessary to
+   * render this type of content.
+   */
+  public function render($hide_empty = FALSE, $args = array());
+
+  /**
+   * Returns an array of keys to use for constructing the correct arguments for
+   * an ajax callback to retrieve content of this type. The order of the keys
+   * returned affects the order of the args passed in to the render method when
+   * called via ajax (see the render() method above).
+   */
+  public function getAjaxKeys();
+  
+}
+
+/**
+ * Abstract base class for content plugins.
+ */
+abstract class QuickContent implements QuickContentRenderable {
+
+  /**
+   * Used as the title of the tab.
+   * @var string
+   */
+  protected $title;
+
+  /**
+   * An array containing the information that defines the tab content, specific
+   * to its type.
+   * @var array
+   */
+  protected $settings;
+  
+  /**
+   * A render array of the contents.
+   * @var array
+   */
+  protected $rendered_content;
+  
+
+  /**
+   * Constructor
+   */
+  public function __construct($item) {
+    $this->title = isset($item['title']) ? $item['title'] : '';
+    // We do not need to store title, type or weight in the settings array, which
+    // is for type-specific settings.
+    unset($item['title'], $item['type'], $item['weight']);
+    $this->settings = $item;
+  }
+  
+  
+  /**
+   * Accessor for the tab title.
+   */
+  public function getTitle() {
+    return $this->title;
+  }
+
+  /**
+   * Accessor for the tab settings.
+   */
+  public function getSettings() {
+    return $this->settings;
+  }
+
+  /**
+   * Instantiate a content type object.
+   *
+   * @param $name
+   *   The type name of the plugin.
+   *
+   * @param $item
+   *   An array containing the item definition
+   *  
+   */
+  public static function factory($name, $item) {
+    ctools_include('plugins');
+    if ($class = ctools_plugin_load_class('quicktabs', 'contents', $name, 'handler')) {
+      // We now need to check the plugin's dependencies, to make sure they're installed.
+      // This info has already been statically cached at this point so there's no
+      // harm in making a call to ctools_get_plugins().
+      $plugin = ctools_get_plugins('quicktabs', 'contents', $name);
+      if (isset($plugin['dependencies'])) {
+        foreach ($plugin['dependencies'] as $dep) {
+          // If any dependency is missing we cannot instantiate our class.
+          if (!module_exists($dep)) return NULL;
+        }
+      }
+      return new $class($item);
+    }
+    return NULL;
+  }
+
+  /**
+   * Method for returning the form elements to display for this tab type on
+   * the admin form.
+   *
+   * @param $delta Integer representing this tab's position in the tabs array.
+   *
+   * @param $qt An object representing the Quicktabs instance that the tabs are
+   * being built for.
+   */
+  abstract public function optionsForm($delta, $qt);
+  
+}
+
+/**
+ * This class implements the same interface that content plugins do but it is not
+ * a content plugin. It is a special class for pre-rendered content which is used
+ * when "custom" tabs are added to existing Quicktabs instances in a call to
+ * quicktabs_build_quicktabs().
+ */
+class QuickPreRenderedContent implements QuickContentRenderable {
+  
+  public static function getType() {
+    return 'prerendered';
+  }
+  
+  /**
+   * Used as the title of the tab.
+   * @var title
+   */
+  protected $title;
+  
+  /**
+   * A render array of the contents.
+   * @var array
+   */
+  protected $rendered_content;
+
+
+  /**
+   * Constructor
+   */
+  public function __construct($item) {
+
+    $contents = isset($item['contents']) ? $item['contents'] : array();
+    if (!is_array($contents)) {
+      $contents = array('#markup' => $contents);
+    }
+    $this->rendered_content = $contents;
+
+    $this->title = isset($item['title']) ? $item['title'] : '';
+  }
+  
+  /**
+   * Accessor for the tab title.
+   */
+  public function getTitle() {
+    return $this->title;
+  }
+
+  /**
+   * Prerendered content doesn't need any extra settings.
+   */
+  public function getSettings() {
+    return array();
+  }
+
+
+  /**
+   * The render method simply returns the contents that were passed in and
+   * stored during construction.
+   */
+  public function render($hide_empty = FALSE, $args = array()) {
+    return $this->rendered_content;
+  }
+  
+  /**
+   * This content cannot be rendered via ajax so we don't return any ajax keys.
+   */
+  public function getAjaxKeys() {
+    return array();
+  }
+
+}
+
+/**
+ * Create our own exception class.
+ */
+class InvalidQuickSetException extends Exception {
+  
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+name = Quicktabs
+description = Render content with tabs and other display styles
+core = 7.x
+files[] = quicktabs.module
+files[] = quicktabs.classes.inc
+files[] = includes/quicktabs_style_plugin.inc
+files[] = tests/quicktabs.test
+configure = admin/structure/quicktabs
+dependencies[] = "ctools"
+
+; Information added by drupal.org packaging script on 2012-03-29
+version = "7.x-3.4"
+core = "7.x"
+project = "quicktabs"
+datestamp = "1332980461"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,177 @@
+<?php
+
+/**
+ * @file
+ *   Install, update and uninstall functions for the quicktabs module.
+ */
+
+/**
+ * Implements hook_schema().
+ */
+function quicktabs_schema() {
+  $schema['quicktabs'] = array(
+    'description' => 'The quicktabs table.',
+    'export' => array(
+      'key' => 'machine_name',
+      'identifier' => 'quicktabs',
+      'default hook' => 'quicktabs_default_quicktabs',
+      'api' => array(
+        'owner' => 'quicktabs',
+        'api' => 'quicktabs',
+        'minimum_version' => 1,
+        'current_version' => 1,
+      ),
+      'export callback' => 'quicktabs_export',
+    ),
+    'fields' => array(
+      'machine_name' => array(
+        'description' => 'The primary identifier for a qt block.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'ajax' => array(
+        'description' => 'Whether this is an ajax views block.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'hide_empty_tabs' => array(
+        'description' => 'Whether this tabset hides empty tabs.',
+        'type' => 'int',
+        'size' => 'tiny',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'default_tab' => array(
+        'description' => 'Default tab.',
+        'type' => 'int',
+        'unsigned' => TRUE,
+        'not null' => TRUE,
+        'default' => 0,
+      ),
+      'title' => array(
+        'description' => 'The title of this quicktabs block.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'tabs' => array(
+        'description' => 'A serialized array of the contents of this qt block.',
+        'type' => 'text',
+        'size' => 'medium',
+        'not null' => TRUE,
+        'serialize' => TRUE,
+      ),
+      'renderer' => array(
+        'description' => 'The rendering mechanism.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'style' => array(
+        'description' => 'The tab style.',
+        'type' => 'varchar',
+        'length' => 255,
+        'not null' => TRUE,
+      ),
+      'options' => array(
+        'description' => 'A serialized array of the options for this qt instance.',
+        'type' => 'text',
+        'size' => 'medium',
+        'not null' => FALSE,
+        'serialize' => TRUE,
+      ),
+    ),
+    'primary key' => array('machine_name'),
+  );
+  return $schema;
+}
+
+
+/**
+ * Update to 7.x-3.x
+ */
+function quicktabs_update_7300() {
+
+  if (!db_field_exists('quicktabs', 'machine_name')) {
+    // Pull all existing quicktabs, and then delete existing quicktabs. We will reinsert.
+    $result = db_query("SELECT * FROM {quicktabs}");
+    if (!db_query("DELETE FROM {quicktabs}")) {
+      throw new DrupalUpdateException(t('Could not complete the update.'));
+    }
+  
+    db_drop_field('quicktabs', 'qtid');
+    $name_field = array(
+      'description' => 'The primary identifier for a qt block.',
+      'type' => 'varchar',
+      'length' => 255,
+      'not null' => TRUE,
+    );
+    db_add_field('quicktabs', 'machine_name', $name_field);
+    db_add_primary_key('quicktabs', array('machine_name'));
+  
+    $output = $used = array();
+    foreach ($result as $qt) {
+      $row = (array)$qt;
+      // Generate a machine-readable string
+      $qt_name = strtolower(preg_replace('/[^a-zA-Z0-9_]+/', '_', $row['title']));
+      $i = 0;
+      while (in_array($i == 0 ? $qt_name : "{$qt_name}_{$i}", $used)) {
+        $i++;
+      }
+      $row['machine_name'] = $used[] = $i == 0 ? $qt_name : "{$qt_name}_{$i}";
+      unset($row['qtid']);
+      unset($row['style']);
+      $row['renderer'] = 'tabs';
+      $placeholders = implode(', ', array_keys($row));
+      $values = array();
+      // Ugh - really?? Somebody tell me there's a better way to do this :-/
+      foreach ($row as $name => $value) {
+        $values[':' . $name] = $value;
+      }
+      $tokens = implode(', ', array_keys($values));
+      db_query("INSERT INTO {quicktabs} ($placeholders) VALUES($tokens)", $values);
+  
+      $output[] = "Converted quicktab {$row['machine_name']}.";
+    }
+  }
+
+  // Add the renderer field
+  $renderer_field = array(
+    'description' => 'The rendering mechanism.',
+    'type' => 'varchar',
+    'length' => 255,
+    'not null' => TRUE,
+    'default' => 'quicktabs',
+  );
+  db_add_field('quicktabs', 'renderer', $renderer_field);
+  $output[] = "Added the renderer field";
+
+  
+  return implode('<br />', $output);
+}
+
+/**
+ * Add the options field which will hold renderer-specific options.
+ */
+function quicktabs_update_7301() {
+  $options_field = array(
+    'description' => 'A serialized array of the options for this qt instance.',
+    'type' => 'text',
+    'size' => 'medium',
+    'not null' => FALSE,
+    'serialize' => TRUE,
+  );
+  db_add_field('quicktabs', 'options', $options_field);
+  return "Added the options field";
+}
+
+/**
+ * Rebuild the registry because of changed method name.
+ */
+function quicktabs_update_7302() {
+  registry_rebuild();
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,630 @@
+<?php
+
+/**
+ * Implements hook_help().
+ */
+function quicktabs_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#quicktabs':
+      $output = '<p>' . t('The Quicktabs module allows you to create blocks of tabbed content. Clicking on the tabs makes the corresponding content display instantly (it uses jQuery). The content for each tabbed section can be a node, view, block or another Quicktabs instance. You can create an unlimited number of Quicktabs instances, each of which will automatically have an associated block.') . '</p>';
+      $output .= '<p>' . t('The <a href="@quicktabs">quicktabs page</a> displays all quicktabs currently available on your site. Create new quicktabs using the <a href="@add-quicktab">add quicktab page</a> (the block containing a new quicktab must also be enabled on the <a href="@blocks">blocks administration page</a>).', array('@quicktabs' => url('admin/structure/quicktabs'), '@add-quicktab' => url('admin/structure/quicktab/add'), '@blocks' => url('admin/structure/block'))) . '</p>';
+      return $output;
+  }
+  if ($path == 'admin/structure/quicktabs' && module_exists('block')) {
+    return '<p>' . t('Each Quicktabs instance has a corresponding block that is managed on the <a href="@blocks">blocks administration page</a>.', array('@blocks' => url('admin/structure/block'))) . '</p>';
+  }
+}
+
+/**
+ * Implements hook_menu().
+ */
+function quicktabs_menu() {
+  $items['admin/structure/quicktabs'] = array(
+    'title' => 'Quicktabs',
+    'description' => 'Create blocks of tabbed content.',
+    'page callback' => 'quicktabs_list',
+    'access callback' => 'user_access',
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_NORMAL_ITEM,
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['admin/structure/quicktabs/list'] = array(
+    'title' => 'List quicktabs',
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+  );
+  $items['admin/structure/quicktabs/add'] = array(
+    'title' => 'Add Quicktabs Instance',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('quicktabs_form', 'add'),
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_LOCAL_ACTION,
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['admin/structure/quicktabs/manage/%quicktabs'] = array(
+    'title' => 'Edit quicktab',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('quicktabs_form', 'edit', 4),
+    'access arguments' => array('administer quicktabs'),
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['admin/structure/quicktabs/manage/%quicktabs/edit'] = array(
+    'title' => 'Edit quicktab',
+    'type' => MENU_DEFAULT_LOCAL_TASK,
+    'context' => MENU_CONTEXT_INLINE,
+  );
+  $items['admin/structure/quicktabs/manage/%quicktabs/delete'] = array(
+    'title' => 'Delete quicktab',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('quicktabs_block_delete', 4),
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_LOCAL_TASK,
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['admin/structure/quicktabs/manage/%quicktabs/clone'] = array(
+    'title' => 'Clone quicktab',
+    'page callback' => 'quicktabs_clone',
+    'page arguments' => array(4),
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_LOCAL_TASK,
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['admin/structure/quicktabs/manage/%quicktabs/export'] = array(
+    'title' => 'Export',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('quicktabs_export_form', 4),
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_LOCAL_TASK,
+    'file' => 'quicktabs.admin.inc',
+  );
+  $items['quicktabs/ajax'] = array(
+    'page callback' => 'quicktabs_ajax',
+    'access callback' => 'user_access',
+    'access arguments' => array('access content'),
+    'type' => MENU_CALLBACK,
+  );
+  return $items;
+}
+
+
+/**
+ * Implements hook_permission().
+ */
+function quicktabs_permission() {
+  return array(
+    'administer quicktabs' => array(
+      'title' => t('Administer Quicktabs'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_theme().
+ */
+function quicktabs_theme() {
+  return array(
+    'quicktabs_admin_form_tabs' => array(
+      'render element' => 'tabs',
+      'file' => 'quicktabs.admin.inc',
+    ),
+    'qt_ui_tabs' => array(
+      'render element' => 'element',
+    ),
+    'qt_ui_tabs_tabset' => array(
+      'render element' => 'tabset',
+    ),
+    'qt_quicktabs' => array(
+      'render element' => 'element',
+    ),
+    'qt_quicktabs_tabset' => array(
+      'render element' => 'tabset',
+    ),
+    'qt_accordion' => array(
+      'render element' => 'element',
+    ),
+    'quicktabs_tab_access_denied' => array(
+      'variables' => array('tab'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_block_info().
+ */
+function quicktabs_block_info() {
+  $blocks = array();
+  foreach (quicktabs_load_multiple() as $qt_name => $quicktabs) {
+    $blocks[$qt_name]['info'] = $quicktabs->title;
+  }
+  return $blocks;
+}
+
+/**
+ * Implements hook_block_view().
+ */
+function quicktabs_block_view($delta = '') {
+  $block = array();
+  if ($qt = quicktabs_build_quicktabs($delta)) {
+    if (isset($qt['content']) && !empty($qt['content'])) {
+      $block['content'] = $qt['content'];
+      $block['content']['#contextual_links']['quicktabs'] = array('admin/structure/quicktabs/manage', array($delta));
+      $block['subject'] = check_plain($qt['#title']);
+    }
+  }
+  return $block;
+}
+
+/**
+ * Constructs a Quicktabs instance.
+ *
+ * This function can be called by other modules to programmatically build a
+ * quicktabs instance.
+ *
+ * @param name. The machine name of the Quicktabs instance to build - if a name
+ *  is passed that does not correspond to an existing instance, then it is taken
+ *  to be a completely custom instance and is built from only the custom tabs
+ *  that are passed in.
+ *
+ * @param settings. An array of settings that will override the options of the Quicktabs
+ *  instance from the database, or if no existing instance is being used, these
+ *  will override the default settings. Possible keys are 'style', 'hide_empty_tabs',
+ *  ajax', 'default_tab', 'renderer', 'title' and 'options'.
+ *
+ * @param custom_tabs. An array representing custom tab contents, which will be
+ *  appended to the Quicktabs instance from the database, or if no existing instance
+ *  is being used, the custom tabs will be the entire contents. An example custom_tabs
+ *  array would be array(array('title' => 'custom', 'contents' => array('#markup' =>
+ *  t('Some markup'), 'weight' => 5));
+ *
+ * @return A render array that can be used as block content in hook_block_view 
+ *  (see quicktabs_block_view()), but can also just be added to the page array
+ *  during hook_page_alter, or output anywhere else where it's sure to get
+ *  passed through drupal_render().
+ */
+function quicktabs_build_quicktabs($name, $settings = array(), $custom_tabs = array()) {
+  if ($info = quicktabs_load($name)) {
+    // Allow other modules to alter the Quicktabs instance before it gets output.
+    drupal_alter('quicktabs', $info);
+    $info = (array) $info;
+    $settings = array_merge($info, $settings);
+    $contents = $settings['tabs'];
+    unset($settings['tabs'], $settings['machine_name']);
+  }
+  elseif (!empty($custom_tabs)) {
+    // We'll be creating a custom Quicktabs instance. Make sure we're using an
+    // alphanumeric name.
+    $name = preg_replace('/[^[a-zA-Z]_]/', '_', $name);
+    $contents = array();
+  }
+  else {
+    // If $name doesn't correspond to an existing Quicktabs instance, and there
+    // are no custom tabs to render, then we have nothing to do.
+    return array();
+  }
+  $renderer = isset($settings['renderer']) ? $settings['renderer'] : 'quicktabs';
+  unset($settings['renderer']);
+  foreach ($custom_tabs as &$tab) {
+    $tab += array(
+      'type' => 'prerendered',
+      'weight' => 0,
+    );
+  }
+  $contents = array_merge($custom_tabs, $contents);
+  $weight = array();
+  foreach ($contents as $key => $item) {
+    // Load the plugin responsible for rendering this item, if it is not a
+    // prerendered tab.
+    if ($item['type'] != 'prerendered') {
+      ctools_plugin_load_class('quicktabs', 'contents', $item['type'], 'handler');
+    }
+  
+    // Add item's weight to our weights array so that we can then sort by weight.
+    $weight[$key] = $item['weight'];
+    
+    // Make sure we're not going to try to load the same QuickSet instance
+    // inside itself.
+    if ($item['type'] == 'qtabs' && $item['machine_name'] == $name) {
+      unset($contents[$key]);
+      unset($weight[$key]);
+    }
+  }
+  // Only sort by weight if the tabs haven't already been sorted by some other
+  // mechanism, e.g. Views in the case of the Views style plugin.
+  if (!isset($settings['sorted']) || !$settings['sorted']) {
+    array_multisort($weight, SORT_ASC, $contents);
+  }
+  else {
+    unset($settings['sorted']);
+  }
+  if ($qt = quickset_renderer_factory($name, $contents, $renderer, $settings)) {
+    $renderable_qt = array('#title' => $qt->getTitle(), 'content' => $qt->render());
+    return $renderable_qt;
+  }
+  return array();
+}
+
+/**
+ * Ajax callback for tab content.
+ *
+ * @param name The machine name of the quicktabs instance.
+ *
+ * @param index The tab index we're returning content for.
+ *
+ * @param type The type of content we're rendering.
+ *
+ * @return a json-formatted ajax commands array.
+ */
+function quicktabs_ajax($name, $index, $type) {
+
+  $args = func_get_args();
+  $variable_args = array_slice($args, 3);
+  // Add the Quicktabs machine name to the args we pass to the content renderer
+  array_unshift($variable_args, $name);
+
+  $data = QuickSet::ajaxRenderContent($type, $variable_args);
+  
+  $commands = array();
+  $tabpage_id = 'quicktabs-tabpage-'. $name .'-' . $index;
+  $commands[] = ajax_command_append('#quicktabs-container-'. $name, '<div id="' . $tabpage_id .'" class="quicktabs-tabpage">'. $data .'</div>');
+  $page = array('#type' => 'ajax', '#commands' => $commands);
+  ajax_deliver($page);
+}
+
+/**
+ * Load the quicktabs data for a particular instance.
+ */
+function quicktabs_load($name) {
+  $qts = quicktabs_load_multiple(array($name));
+  return isset($qts[$name]) ? $qts[$name] : NULL;
+}
+
+/**
+ * Load the quicktabs data.
+ */
+function quicktabs_load_multiple($names = array()) {
+  ctools_include('export');
+  $defaults = empty($names) ? ctools_export_load_object('quicktabs', 'all') : ctools_export_load_object('quicktabs', 'names', $names);
+  return $defaults;
+}
+
+/**
+ * Exports the specified Quicktabs instance with translatable strings.
+ */
+function quicktabs_export($qt, $indent = '') {
+  $output = ctools_export_object('quicktabs', $qt, $indent);
+  $translatables = array();
+  if (!empty($qt->title)) {
+    $translatables[] = $qt->title;
+  }
+  foreach ($qt->tabs as $tab) {
+    $translatables[] = $tab['title'];
+  }
+  $translatables = array_filter(array_unique($translatables));
+  if (!empty($translatables)) {
+    $output .= "\n";
+    $output .= "{$indent}// Translatables\n";
+    $output .= "{$indent}// Included for use with string extractors like potx.\n";
+    sort($translatables);
+    foreach ($translatables as $string) {
+      $output .= "{$indent}t(" . ctools_var_export($string) . ");\n";
+    }
+    $output .= "\n";
+  }
+  return $output;
+}
+
+/**
+* Implements hook_i18n_string_info()
+*/
+function quicktabs_i18n_string_info() {
+  $groups['quicktabs'] = array(
+    'title' => t('Quicktabs'),
+    'description' => t('Vocabulary titles and term names for localizable quicktabs.'),
+    'format' => FALSE, // This group doesn't have strings with format
+    'list' => TRUE, // This group can list all strings
+  );
+  return $groups;
+}
+
+function quicktabs_translate($name, $string, $langcode = NULL, $textgroup = 'quicktabs') {
+  return function_exists('i18n_string') ? i18n_string($textgroup . ':' . $name, $string, array('langcode' => $langcode)) : $string; 
+}
+
+/**
+ * Update translatable strings.
+ */
+function quicktabs_i18n_update_strings($names = array()) {
+  if (!function_exists('i18n_string_update')) return;
+  $qts = quicktabs_load_multiple($names);
+  foreach ($qts as $name => $quicktabs) {
+    i18n_string_update("quicktabs:title:$name", $quicktabs->title);
+    foreach ($quicktabs->tabs as $tabkey => $tab) {
+      i18n_string_update("quicktabs:tab:$name-$tabkey:title", $tab['title']);
+    }
+  }
+}
+
+/**
+ * Implements hook_i18n_string_refresh().
+ *
+ * Refresh translations for all user-generated strings managed by quicktabs.
+ * This will load all strings inputted via the quicktabs user interface and
+ * register them (and their translations, if there are any) with the
+ * i18n_strings system.
+ */
+function quicktabs_i18n_string_refresh($group) {
+  if ($group === 'quicktabs') {
+    quicktabs_i18n_update_strings();
+  }
+  return TRUE;
+}
+
+/**
+ * Implements hook_ctools_plugin_type().
+ */
+function quicktabs_ctools_plugin_type() {
+  return array(
+    // Renderer plugins control the display of sets of items, e.g. as tabs.
+    'renderers' => array(
+      'cache' => TRUE,
+      'use hooks' => TRUE,
+      'classes' => array('handler'),
+    ),
+    // Content plugins control the display of individual items.
+    'contents' => array(
+      'cache' => TRUE,
+      'use hooks' => TRUE,
+      'classes' => array('handler'),
+    )
+  );
+}
+
+/**
+ * Implements hook_quicktabs_renderers().
+ */
+function quicktabs_quicktabs_renderers() {
+  $info = array();
+  $path = drupal_get_path('module', 'quicktabs') . '/plugins';
+  $info['quicktabs'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickQuicktabs.inc',
+      'class' => 'QuickQuicktabs',
+    ),
+  );
+  $info['ui_tabs'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickUiTabs.inc',
+      'class' => 'QuickUitabs',
+    ),
+  );
+  $info['accordion'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickAccordion.inc',
+      'class' => 'QuickAccordion',
+    ),
+  );
+  return $info;
+}
+
+/**
+ * Implements hook_quicktabs_contents().
+ */
+function quicktabs_quicktabs_contents() {
+  $info = array();
+  $path = drupal_get_path('module', 'quicktabs') . '/plugins';
+  $info['block'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickBlockContent.inc',
+      'class' => 'QuickBlockContent',
+    ),
+    'dependencies' => array('block'),
+  );
+  $info['view'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickViewContent.inc',
+      'class' => 'QuickViewContent',
+    ),
+    'dependencies' => array('views'),
+  );
+  $info['node'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickNodeContent.inc',
+      'class' => 'QuickNodeContent',
+    ),
+  );
+  $info['qtabs'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickQtabsContent.inc',
+      'class' => 'QuickQtabsContent',
+    ),
+  );
+  $info['callback'] = array(
+    'path' => $path,
+    'handler' => array(
+      'file' => 'QuickCallbackContent.inc',
+      'class' => 'QuickCallbackContent',
+    ),
+  );
+  return $info;
+}
+
+/**
+ * Returns a renderered QuickSet.
+ */
+function quickset_renderer_factory($name, $contents, $renderer, $settings) {
+  return QuickSet::QuickSetRendererFactory($name, $contents, $renderer, $settings);
+}
+
+/**
+ * Returns an object that implements the QuickContent interface.
+ */
+function quick_content_factory($name, $item) {
+  return QuickContent::factory($name, $item);
+}
+
+/**
+ * Determine if the machine name is in use.
+ */
+function quicktabs_machine_name_exists($machine_name) {
+  $qt_exists = db_query_range('SELECT 1 FROM {quicktabs} WHERE machine_name = :name', 0, 1, array(':name' => $machine_name))->fetchField();
+  return $qt_exists;
+}
+
+/**
+ * Implementation of hook_views_api().
+ */
+function quicktabs_views_api() {
+  return array(
+    'api' => 3,
+  );
+}
+
+/**
+ * Theme function to display the access denied tab.
+ *
+ * @ingroup themeable
+ */
+function theme_quicktabs_tab_access_denied($variables) {
+  return t('You are not authorized to access this content.');
+}
+
+
+/**
+ * Fetch the necessary CSS files for the tab style.
+ */
+function quicktabs_get_css($style) {
+  if ($style == 'default') {
+    // Get the default style.
+    $style = variable_get('quicktabs_tabstyle', 'nostyle');
+  }
+  if ($style == 'nostyle') return array();
+  $style_css = _quicktabs_get_style_css($style);
+  return $style_css;
+}
+
+/**
+ * Helper function to get the css file for given style.
+ */
+function _quicktabs_get_style_css($style) {
+  $tabstyles = &drupal_static(__FUNCTION__);
+  if (empty($tabstyles)) {
+    $cid = 'quicktabs_tabstyles';
+    $cache = cache_get($cid);
+    if (!$cache) {
+      $tabstyles = module_invoke_all('quicktabs_tabstyles');
+      cache_set($cid, $tabstyles);
+    }
+    else {
+      $tabstyles = $cache->data;
+    }
+  }
+  if ($css_file = array_search($style, $tabstyles)) {
+    return array('data' => $css_file);
+  }
+  return array();
+}
+
+/**
+ * Theme function to output tablinks for jQuery UI style tabs.
+ *
+ * @ingroup themeable
+ */
+function theme_qt_ui_tabs_tabset($vars) {
+
+  $output = '<ul>';
+  foreach ($vars['tabset']['tablinks'] as $i => $tab) {
+    if (is_array($tab)) {
+      $output .= '<li>'. drupal_render($tab) .'</li>';
+    }
+  }
+  $output .= '</ul>';
+  return $output;
+}
+
+/**
+ * Theme function to output content for jQuery UI style tabs.
+ *
+ * @ingroup themeable
+ */
+function theme_qt_ui_tabs($variables) {
+  $element = $variables['element'];
+  $output = '<div '. drupal_attributes($element['#options']['attributes']) .'>';
+  $output .= drupal_render($element['tabs']);
+
+  if (isset($element['active'])) {
+    $output .= drupal_render($element['active']);
+  }
+  else {
+    foreach ($element['divs'] as $div) {
+      $output .= drupal_render($div);
+    }
+  }
+
+  $output .= '</div>';
+  return $output;
+}
+
+/**
+ * Theme function to output tablinks for classic Quicktabs style tabs.
+ *
+ * @ingroup themeable
+ */
+function theme_qt_quicktabs_tabset($vars) {
+  $variables = array(
+    'attributes' => array(
+      'class' => 'quicktabs-tabs quicktabs-style-' . $vars['tabset']['#options']['style'],
+    ),
+    'items' => array(),
+  );
+  foreach (element_children($vars['tabset']['tablinks']) as $key) {
+    $item = array();
+    if (is_array($vars['tabset']['tablinks'][$key])) {
+      $tab = $vars['tabset']['tablinks'][$key];
+      if ($key == $vars['tabset']['#options']['active']) {
+        $item['class'] = array('active');
+      }
+      $item['data'] = drupal_render($tab);
+      $variables['items'][] = $item;
+    }
+  }
+  return theme('item_list', $variables);
+}
+
+/**
+ * Theme function to output content for classic Quicktabs style tabs.
+ *
+ * @ingroup themeable
+ */
+function theme_qt_quicktabs($variables) {
+  $element = $variables['element'];
+  $output = '<div '. drupal_attributes($element['#options']['attributes']) .'>';
+  $output .= drupal_render($element['tabs']);
+  
+  $output .= drupal_render($element['container']);
+
+  $output .= '</div>';
+  return $output;
+}
+
+
+/**
+ * Theme function to output markup for the accordion style.
+ *
+ * @ingroup themeable
+ */
+function theme_qt_accordion($variables) {
+  $element = $variables['element'];
+  $output = '<div '. drupal_attributes($element['#options']['attributes']) .'>';
+  foreach ($element['divs'] as $div) {
+    $output .= drupal_render($div);
+  }
+
+  $output .= '</div>';
+  return $output;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs.views.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,28 @@
+<?php
+// Id:$
+
+/**
+ * @file Add Views module hooks to Quicktabs.
+ */
+ 
+/**
+ * Implementation of hook_views_plugins().
+ */
+function quicktabs_views_plugins() {
+  $path = drupal_get_path('module', 'quicktabs');
+  
+  return array(
+    'style' => array(
+      'quicktabs' => array(
+        'title' => t('Quicktabs'),
+        'help' => t('Display view in Quicktabs.'),
+        'handler' => 'quicktabs_style_plugin',
+        'path' => "$path/includes",
+        'theme' => 'quicktabs_view',
+        'uses row plugin' => TRUE,
+        'uses options' => TRUE,
+        'type' => 'normal',
+      ),
+    ),
+  );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/css/quicktabs-tabstyles-admin.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+/* QT style selection form */
+
+div.quicktabs-preview {
+  border: none;
+  width: 250px;
+  height: 80px;
+}
+
+#quicktabs-styles .quicktabs-tabstyles .form-item {
+  width: 280px;
+  float: left;
+  margin: 0 10px 10px 0;
+  border: 1px solid #ccc;
+  background-color: #fff;
+}
+#quicktabs-styles .quicktabs-tabstyles .form-item .option {
+  display: block;
+  background-color: #bfe3ff;
+  font: bold 12px/18px verdana;
+  color: #0a5793;
+}
+#quicktabs-styles .quicktabs-tabstyles .form-item .option:hover {
+  background-color: #aadaff;
+  cursor: pointer;
+  color: #003863;
+}
+#quicktabs-styles .quicktabs-tabstyles .form-item .option .form-radio {
+  margin-right: 5px;
+  float: left;
+  height: 15px;
+  margin-top: 2px;
+}
+#quicktabs-styles .quicktabs_wrapper {
+  margin: 5px;
+  font: bold 12px/170% Verdana;
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+name = Quicktabs Styles
+description = Adds predefined tab styles to choose from per Quicktabs instance.
+core = 7.x
+configure=admin/structure/quicktabs/styles
+dependencies[] = "quicktabs"
+; Information added by drupal.org packaging script on 2012-03-29
+version = "7.x-3.4"
+core = "7.x"
+project = "quicktabs"
+datestamp = "1332980461"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/quicktabs_tabstyles.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,113 @@
+<?php
+
+/**
+ * Implements hook_theme().
+ */
+function quicktabs_tabstyles_theme() {
+  return array(
+    'quicktabs_style_options' => array(
+      'render element' => 'quicktabs_tabstyle',
+    ),
+  );
+}
+
+/**
+ * Implements hook_menu().
+ */
+function quicktabs_tabstyles_menu() {
+  $items['admin/structure/quicktabs/styles'] = array(
+    'title' => 'Styles',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('quicktabs_tabstyles_styles'),
+    'access arguments' => array('administer quicktabs'),
+    'type' => MENU_LOCAL_TASK,
+  );
+  return $items;
+}
+
+/**
+ * Callback function for admin/structure/quicktabs/styles. The style chooser form.
+ */
+function quicktabs_tabstyles_styles() {
+  $options = array();
+  $styles = module_invoke_all('quicktabs_tabstyles');
+  // The keys used for options must be valid html id-s.
+  // Removing the css file path, because that can't be used.
+  foreach ($styles as $style) {
+    $options[$style] = $style;
+  }
+  ksort($options);
+
+  $form['quicktabs_tabstyle'] = array(
+    '#type' => 'radios',
+    '#title' => t('Quicktab styles'),
+    '#options' => array('nostyle' => t('No style')) + $options,
+    '#default_value' => variable_get('quicktabs_tabstyle', 'nostyle'),
+    '#description' => t('Select the default style for quicktabs.'),
+    '#attributes' => array('class' => array('quicktabs-tabstyles', 'clear-block')),
+    '#theme' => 'quicktabs_style_options',
+  );
+  
+  $form['submit'] = array(
+    '#type' => 'submit',
+    '#value' => t('Save'),
+  );
+  return $form;
+}
+
+/**
+ * Submit handler for QuickTabs styles.
+ */
+function quicktabs_tabstyles_styles_submit($form, &$form_state) {
+  variable_set('quicktabs_tabstyle', $form_state['values']['quicktabs_tabstyle']);
+  drupal_set_message(t('The default quicktab style has been saved.'));
+}
+
+/**
+ * Theme function for quicktabs style radio options.
+ *
+ * @ingroup themeable
+ */
+function theme_quicktabs_style_options($variables) {
+  $style_element = $variables['quicktabs_tabstyle'];
+  $markup = '';
+
+  $tabs = array(
+    array('title' => t('One'), 'contents' => array('#markup' => t('First tab')), 'weight' => 0),
+    array('title' => t('Two'), 'contents' => array('#markup' => t('Second tab')), 'weight' => 1),
+    array('title' => t('Three'), 'contents' => array('#markup' => t('Third tab')), 'weight' => 2)
+  );
+
+  $options = array('renderer' => 'quicktabs', 'hide_empty_tabs' => 0, 'ajax' => 0);
+  // Preview for each style.
+  foreach (element_children($style_element) as $style) {
+    $element = $style_element[$style];
+    $options['style'] = $style;
+    $quicktabs = quicktabs_build_quicktabs(drupal_strtolower($style), $options, $tabs);
+    $preview = '<div class="quicktabs-preview">'. drupal_render($quicktabs['content']) .'</div>';
+    $element['#description'] = t('%style preview', array('%style' => $element['#title'])) .':<br />'. $preview;
+    $markup .= drupal_render($element);
+  }
+  $build = array(
+    'style' => array('#markup' => $markup),
+    '#attached' => array('css' => array(drupal_get_path('module', 'quicktabs_tabstyles') . '/css/quicktabs-tabstyles-admin.css')),
+  );
+  return drupal_render($build);
+}
+
+
+/**
+ * Implements hook_quicktabs_tabstyles().
+ */
+function quicktabs_tabstyles_quicktabs_tabstyles() {
+  $tabstyles_directory = drupal_get_path('module', 'quicktabs_tabstyles') . '/tabstyles';
+  $files = file_scan_directory($tabstyles_directory, '/\.css$/');
+  $tabstyles = array();
+  foreach ($files as $file) {
+    // Skip RTL files.
+    if (!strpos($file->name, '-rtl')) {
+      $tabstyles[$file->uri] = drupal_ucfirst($file->name);
+    }
+  }
+  return $tabstyles;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+
+ul.quicktabs-tabs.quicktabs-style-arrows{
+  padding:0 0 0 10px!important;
+  height:25px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-arrows li{
+  float:right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/arrows.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+
+.quicktabs_main.quicktabs-style-arrows{
+  clear:both;
+}
+
+ul.quicktabs-tabs.quicktabs-style-arrows{
+  font:bold 12px/170% Verdana;
+  border-bottom:1px solid #ccc;
+  padding:0 10px 0 0!important;
+  line-height:22px;
+  margin:0 0 10px 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-arrows a{
+  text-decoration:none;
+  background:transparent url(images/arrows.gif) no-repeat center 17px;
+  padding:2px 10px 4px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-arrows li.active a,
+ul.quicktabs-tabs.quicktabs-style-arrows li a:hover{
+  text-decoration:none;
+  background:transparent url(images/arrows.gif) no-repeat center bottom;
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/arrows/images/arrows.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,12 @@
+
+.quicktabs_main.quicktabs-style-basic{
+  border:1px solid #aaa;
+}
+ul.quicktabs-tabs.quicktabs-style-basic{
+  border-bottom:none;
+  padding:0 0 0 5px;
+}
+ul.quicktabs-tabs.quicktabs-style-basic li{
+  float:right;
+  margin:0 0 0 3px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/basic/basic.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,43 @@
+
+.quicktabs_main.quicktabs-style-basic{
+  background-color:#fff;
+  border:1px solid #aaa;
+  border-top:none;
+  padding:10px;
+  clear:both;
+}
+ul.quicktabs-tabs.quicktabs-style-basic{
+  border-bottom:1px solid #aaa;
+  padding:0 5px 0 0;
+  font:bold 12px/19px Verdana !important;
+  font-weight:bold;
+  height:19px;
+  margin:0;
+}
+ul.quicktabs-tabs.quicktabs-style-basic a{
+  font:bold 12px/19px Verdana !important;
+  text-decoration:none;
+  color:#aaa;
+}
+ul.quicktabs-tabs.quicktabs-style-basic a:hover{
+  color:#555;
+}
+ul.quicktabs-tabs.quicktabs-style-basic li{
+  border:1px solid #e5e5e5;
+  border-bottom:none;
+  padding:2px 5px;
+  margin:0 3px 0 0;
+  position:relative;
+}
+ul.quicktabs-tabs.quicktabs-style-basic li:hover{
+  border:1px solid #ccc;
+  border-bottom:none;
+}
+ul.quicktabs-tabs.quicktabs-style-basic li.active{
+  border:1px solid #aaa;
+  border-bottom:1px solid #fff;
+  background-color:#fff;
+}
+ul.quicktabs-tabs.quicktabs-style-basic li.active a{
+  color:#027AC6;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+
+ul.quicktabs-tabs.quicktabs-style-bullets li{
+  float: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/bullets.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,49 @@
+
+.quicktabs_main.quicktabs-style-bullets{
+  clear:both;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets{
+  margin:0 0 10px 0;
+  font-size:11px;
+  list-style: none;
+  padding:3px 0 23px 0;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li{
+  float: left;
+  height:20px;
+  margin:0 5px;
+  padding: 0 0 0 10px;
+  background:transparent url(images/bullets.png) no-repeat 0 -80px;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li a{
+  font:bold 12px/170% Verdana;
+  margin: 0;
+  display:block;
+  padding:0px 17px 0px 7px;
+  text-decoration:none;
+  color: #777 !important;
+  background:transparent url(images/bullets.png) no-repeat right -100px ;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li:hover a{
+  background-position: right -60px ;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li:hover{
+  background-position: 0 -40px;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li.active a,
+ul.quicktabs-tabs.quicktabs-style-bullets li.active a:hover{
+  color: #0372d9 !important;
+  background-position:right -20px;
+}
+ul.quicktabs-tabs.quicktabs-style-bullets li.active{
+  background-position: 0 0;
+}
+
+/* IE6 Gif (no PNGs) */
+
+*html ul.quicktabs-tabs.quicktabs-style-bullets li a{
+  background:transparent url(images/bullets.gif) no-repeat right -100px ;
+}
+*html ul.quicktabs-tabs.quicktabs-style-bullets li{  /* image for IE6  */
+  background:transparent url(images/bullets.gif) no-repeat 0 -80px;
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/bullets/images/bullets.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,38 @@
+
+/* RTL support */
+ul.quicktabs-tabs.quicktabs-style-excel li {
+  float: right;
+  padding: 0 10px 0 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li a {
+  padding: 4px 12px 0px 22px;
+  background: transparent url(images/tab-right-sep-rtl.png) no-repeat left -38px;
+}
+
+/*override active tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.active {
+  background: transparent url(images/tab-left-sep-rtl.png) no-repeat right 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.active a {
+  background: transparent url(images/tab-right-sep-rtl.png) no-repeat left 0;
+}
+
+/*override first (most right) tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.first {
+  background: transparent url(images/tab-left-rtl.png) no-repeat right -38px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.first.active {
+  background: transparent url(images/tab-left-rtl.png) no-repeat right 0px;
+}
+
+/*override last (most left) tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.last a {
+  background: transparent url(images/tab-right-rtl.png) no-repeat left -38px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.last.active a {
+  background:transparent url(images/tab-right-rtl.png) no-repeat left 0px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/excel.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,79 @@
+
+/* Excel style tabs */
+
+.quicktabs_main.quicktabs-style-excel {
+  border-bottom: 1px solid #EEEEEE;
+  padding: 10px 5px 2px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel {
+  margin: 0;
+  padding: 0 15px;
+  font-size: 1em;
+  list-style: none;
+  height: 24px;
+  background: transparent url(images/tab-bar.png) repeat-x left bottom;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li {
+  float: left;
+  margin: 0 -5px -5px -5px;
+  padding: 0 0 0 10px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li a {
+  font: bold 12px/170% Verdana;
+  font-size-adjust: none;
+  display: block;
+  margin: 0;
+  padding: 4px 22px 0px 12px;
+  border-width: 0;
+  font-weight: bold;
+  text-decoration: none;
+  background: transparent url(images/tab-right-sep.png) no-repeat right -38px;
+}
+
+/*override hover*/
+ul.quicktabs-tabs.quicktabs-style-excel li:hover {
+  /*background: transparent url(images/tab-left-sep.png) no-repeat left -76px;*/
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li a:hover {
+  color: #000;
+  /*background: transparent url(images/tab-right-sep.png) no-repeat right -76px;*/
+}
+
+/*override active tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.active {
+  background: transparent url(images/tab-left-sep.png) no-repeat left 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.active a {
+  background: transparent url(images/tab-right-sep.png) no-repeat right 0;
+}
+
+/*override first tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.first {
+  background: transparent url(images/tab-left.png) no-repeat left -38px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.first:hover {
+  /*background: transparent url(images/tab-left.png) no-repeat left -76px;*/
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.first.active {
+  background: transparent url(images/tab-left.png) no-repeat left 0px;
+}
+
+/*override last tab*/
+ul.quicktabs-tabs.quicktabs-style-excel li.last a {
+  background: transparent url(images/tab-right.png) no-repeat right -38px;
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.last a:hover {
+  /*background: transparent url(images/tab-right.png) no-repeat right -76px;*/
+}
+
+ul.quicktabs-tabs.quicktabs-style-excel li.last.active a {
+  background:transparent url(images/tab-right.png) no-repeat right 0px;
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-bar.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-rtl.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep-rtl.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left-sep.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-left.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-rtl.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep-rtl.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right-sep.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/excel/images/tab-right.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+
+ul.quicktabs-tabs.quicktabs-style-garland li {
+  float: right;
+}
+
+ul.quicktabs-tabs.quicktabs-style-garland li a:link,
+ul.quicktabs-tabs.quicktabs-style-garland li a:visited {
+  padding: 8px 11px 4px 12px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/garland.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,71 @@
+
+.quicktabs_main.quicktabs-style-garland {
+  clear:both;
+}
+
+ul.quicktabs-tabs.quicktabs-style-garland {
+  background: #bcd6eb url('images/bg.gif') repeat-x bottom;
+  font:bold 12px/20px Verdana;
+  padding: 3px 0px 3px;
+  height: 20px;
+  margin:0 0 10px 0;
+}
+
+.sidebar ul.quicktabs-tabs.quicktabs-style-garland {
+  padding:0 0 3px 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-garland li {
+  margin:0;
+  padding:0;
+  display: block;
+  float: left;
+  padding: 2px 0 1px !important;
+  list-style-type: none;
+  background: none;
+}
+
+.sidebar ul.quicktabs-tabs.quicktabs-style-garland li {
+  margin:0;
+  display: block;
+  float: left;
+  padding: 2px 0 1px;
+  list-style-type: none;
+  background: none;
+}
+
+ul.quicktabs-tabs.quicktabs-style-garland li a:link,
+ul.quicktabs-tabs.quicktabs-style-garland li a:visited {
+  color: #fff;
+  padding: 8px 12px 4px 11px;
+  margin:0;
+  font:bold 12px/20px Verdana;
+}
+
+ul.quicktabs-tabs.quicktabs-style-garland li.active a {
+  color: #027AC6 !important;
+  background: url('images/tab-right.gif') no-repeat right bottom;
+}
+ul.quicktabs-tabs.quicktabs-style-garland li.active {
+  background: url('images/tab-left.gif') no-repeat left bottom;
+}
+
+.sidebar ul.quicktabs-tabs.quicktabs-style-garland li.active a {
+  color: #027AC6 !important;
+  background: url('images/tab-right-sidebar.gif') no-repeat right bottom;
+}
+.sidebar ul.quicktabs-tabs.quicktabs-style-garland li.active {
+  background: url('images/tab-left-sidebar.gif') no-repeat left bottom;
+}
+
+/* IE 6 Debug */
+* html ul.quicktabs-tabs.quicktabs-style-garland,
+* html .sidebar ul.quicktabs-tabs.quicktabs-style-garland {
+  padding-bottom: 0px;
+}
+
+/* IE 7 Debug */
+*+html .sidebar ul.quicktabs-tabs.quicktabs-style-garland li a:link {
+  padding-bottom: 4px;
+}
+
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/bg.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left-sidebar.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-left.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right-sidebar.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/garland/images/tab-right.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/images/mac.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+
+ul.quicktabs-tabs.quicktabs-style-mac li{
+  float: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/mac/mac.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+
+.quicktabs_main.quicktabs-style-mac{
+  clear:both;
+}
+ul.quicktabs-tabs.quicktabs-style-mac{
+  margin:0 0 10px 0;
+  font-size:11px;
+  list-style: none;
+  padding:3px 0 23px 0;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li{
+  float: left;
+  height:24px;
+  margin:0 5px;
+  padding: 0 0 0 15px;
+  background:transparent url(images/mac.png) no-repeat 0 0px;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li a{
+  font:bold 12px/170% Verdana;
+  margin: 0;
+  display:block;
+  padding:0px 15px 5px 0px;
+  font-weight:bold;
+  text-decoration:none;
+  color: #fff;
+  background:transparent url(images/mac.png) no-repeat right -25px ;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li:hover a{
+  background-position: right -75px ;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li:hover{
+  background-position: 0 -50px;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li.active a,
+ul.quicktabs-tabs.quicktabs-style-mac li.active a:hover{
+  background-position:right -125px;
+}
+ul.quicktabs-tabs.quicktabs-style-mac li.active{
+  background-position: 0 -100px;
+}
+
+/* IE6 Gif (no PNGs) */
+
+*html ul.quicktabs-tabs.quicktabs-style-mac li a{
+  color:#fff!important;
+  background:transparent url(images/mac.gif) no-repeat right -25px ;
+}
+*html ul.quicktabs-tabs.quicktabs-style-mac li{  /* image for IE6  */
+  background:transparent url(images/mac.gif) no-repeat 0 0px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/navlist/navlist.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+
+.quicktabs_wrapper.quicktabs-style-navlist {
+  margin: 0;
+  width: 100%;
+  display: block;
+}
+
+ul.quicktabs-tabs.quicktabs-style-navlist {
+  float: left;
+  padding: 4px 0;
+  margin: 0;
+  position: relative;
+  z-index: 2;
+  width: 20%;
+}
+ul.quicktabs-tabs.quicktabs-style-navlist li {
+  display: block;
+  margin-right: -1px;
+  padding: 0;
+}
+ul.quicktabs-tabs.quicktabs-style-navlist li a {
+  display: block;
+  color: #404040;
+  text-align: right;
+  text-decoration: none;
+  margin: 0;
+  padding: 0 10px 0 0;
+  height: 23px;
+  font-weight: normal;
+}
+ul.quicktabs-tabs.quicktabs-style-navlist li.active {
+  background: #F0F8FC;
+  border-top: 1px solid #BFD0FF;
+  border-bottom: 1px solid #BFD0FF;
+}
+ul.quicktabs-tabs.quicktabs-style-navlist li.active a {
+  color: #007734;
+  font-weight: bold;
+}
+
+.quicktabs_main.quicktabs-style-navlist {
+  float: left;
+  border: 1px solid #BFD0FF;
+  background: #F0F8FC;
+  padding: 10px;
+  min-height: 64px;
+  position: relative;
+  z-index: 1;
+  width: 70%;
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/phy.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.gif has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/images/shade.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+
+ul.quicktabs-tabs.quicktabs-style-phylactere li{
+  float: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/phylactere/phylactere.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,53 @@
+
+.quicktabs_main.quicktabs-style-phylactere{
+  clear:both;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere{
+  margin:0 0 10px 0;
+  padding:0;
+  font-size:12px;
+  list-style: none;
+  background:transparent url(images/shade.png) repeat-x bottom left;
+  height:28px;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere li{
+  float: left;
+  margin:0 5px;
+  padding:0 0 8px 23px;
+  background:transparent url(images/phy.png) no-repeat 0 -59px;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere li a{
+  font:bold 12px/170% Verdana;
+  margin: 0;
+  display:block;
+  padding:2px 21px 1px 0;
+  text-decoration:none;
+  color: #bbb !important;
+  background:transparent url(images/phy.png) no-repeat right -35px ;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere li a:hover{
+  text-decoration:none;
+  color:#888 !important;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere li.active a{
+  color: #0372d9 !important;
+}
+ul.quicktabs-tabs.quicktabs-style-phylactere li.active{
+  background-position: 0 0;
+  padding-bottom:11px;
+  position:relative;
+  top:-2px;
+}
+
+/* IE6 */
+
+*html ul.quicktabs-tabs.quicktabs-style-phylactere{
+  background: transparent url(images/shade.gif) repeat-x 0 25px;
+}
+*html ul.quicktabs-tabs.quicktabs-style-phylactere li a{
+  padding:0px 21px 3px 0;
+  background-image: url(images/phy.gif);
+}
+*html ul.quicktabs-tabs.quicktabs-style-phylactere li{  /* image for IE6  */
+  background-image: url(images/phy.gif);
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-dark.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-light.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/images/bg-shade-medium.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,9 @@
+
+ul.quicktabs-tabs.quicktabs-style-sky li {
+  float: right;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li a,
+ul.quicktabs-tabs.quicktabs-style-sky li a:visited {
+  float: right;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/sky/sky.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,94 @@
+
+/* Quicktabs - Sky theme style
+ * http://drupal.org/project/sky
+ */
+
+.quicktabs_main.quicktabs-style-sky {
+  border: 1px solid #eee;
+  clear: both;
+  padding: 10px 5px 0 5px;
+  position: relative;
+  top: -0.1em;
+  background: #fff;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky {
+  margin: 0;
+  padding: 0;
+  width: 100%;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li {
+  float: left;
+  font-weight: normal;
+  list-style: none;
+  margin: 0.3em 0 0 0;
+  height: 2.65em;
+  min-height: 2.95em;
+  padding: 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li.active {
+  margin: -0.2em 0 0 0;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li a,
+ul.quicktabs-tabs.quicktabs-style-sky li a:visited {
+  float: left;
+  display: block;
+  height: 2.65em;
+  min-height: 2.95em;
+  line-height: 2.95em;
+  padding: 0 8px;
+  text-decoration: none;
+  border-right: 1px solid #eee;
+  border-top: 1px solid #eee;
+  font-size: .95em;
+  background: #fff url('images/bg-shade-light.png') repeat-x bottom left;
+  color: #777;
+  position: relative;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li a:hover,
+ul.quicktabs-tabs.quicktabs-style-sky li.active a:hover {
+  text-decoration: none;
+  border-color: #B3B3B3;
+  background: #B3B3B3 url('images/bg-shade-medium.png') repeat-x bottom left;
+  color: #fff;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li.active a,
+ul.quicktabs-tabs.quicktabs-style-sky li.active a:visited {
+  height: 3.05em;
+  min-height: 3.35em;
+  line-height: 3.35em;
+  font-weight: normal;
+  border: 1px solid #eee;
+  background: #858585 url('images/bg-shade-dark.png') repeat-x bottom left;
+  border-color: #555;
+  color: #fff;
+  font-size: .95em;
+  font-weight: normal;
+  top: -0.025em;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li:first-child a {
+  border-left: solid 1px #eee;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li.active a {
+  border-left: solid 1px #777;
+}
+
+ul.quicktabs-tabs.quicktabs-style-sky li a:focus,
+ul.quicktabs-tabs.quicktabs-style-sky li a:active {
+  outline: none;
+  
+}
+
+/* Opera */
+@media all and (min-width: 0px) {
+  body .quicktabs_main.quicktabs-style-sky {
+    top: -0.2em;
+  }
+}
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-bar.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-left-ie6.png has changed
Binary file sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/images/tab-right-ie6.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+
+/* RTL support */
+
+ul.quicktabs-tabs.quicktabs-style-zen li{
+  float: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/quicktabs_tabstyles/tabstyles/zen/zen.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,53 @@
+
+/**
+ *  Style from the new (great!) ZEN THEME for Drupal 
+ * http://drupal.org/project/zen
+ */
+
+.quicktabs_main.quicktabs-style-zen{
+  clear:both;
+}
+ul.quicktabs-tabs.quicktabs-style-zen{
+  margin:0 0 10px 0;
+  padding:0 0 3px;
+  font-size:1em;
+  list-style: none;
+  height:21px;
+  background:transparent url(images/tab-bar.png) repeat-x left bottom;
+}
+*html ul.quicktabs-tabs.quicktabs-style-zen li{
+  margin-bottom:-5px;
+}
+ul.quicktabs-tabs.quicktabs-style-zen li{
+  float: left;
+  margin:0 5px;
+  padding: 0 0 0 5px;
+  background:transparent url(images/tab-left-ie6.png) no-repeat left -38px;
+}
+ul.quicktabs-tabs.quicktabs-style-zen li a{
+  font:bold 12px/170% Verdana;
+  font-size-adjust:none;
+  display: block;
+  margin: 0;
+  padding:4px 17px 0px 12px;
+  border-width: 0;
+  font-weight:bold;
+  text-decoration:none;
+  background: transparent url(images/tab-right-ie6.png) no-repeat right -38px;
+}
+ul.quicktabs-tabs.quicktabs-style-zen li:hover a{
+  border-width: 0;
+  background:transparent url(images/tab-right-ie6.png) no-repeat right -76px;
+}
+quicktabs-tabs.quicktabs-style-zen li:hover{
+  background:transparent url(images/tab-left-ie6.png) no-repeat left -76px;
+}
+ul.quicktabs-tabs.quicktabs-style-zen li.active a,
+ul.quicktabs-tabs.quicktabs-style-zen li.active a:hover{
+  text-decoration:none;
+  border-width: 0;
+  background:transparent url(images/tab-right-ie6.png) no-repeat right 0;
+}
+ul.quicktabs-tabs.quicktabs-style-zen li.active{
+  background:transparent url(images/tab-left-ie6.png) no-repeat left 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/quicktabs/tests/quicktabs.test	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,134 @@
+<?php
+
+class QuicktabsAdminTestCase extends DrupalWebTestCase {
+
+  /**
+   * Implementation of getInfo().
+   */
+  function getInfo() {
+    return array(
+      'name' => t('Quicktabs tests'),
+      'description' => t('Add, edit and delete quicktabs.'),
+      'group' => t('Quicktabs'),
+    );
+  }
+
+  /**
+   * Implementation of setUp().
+   */
+  function setUp() {
+    parent::setUp('ctools','quicktabs');
+
+    // Create and login user
+    $admin_user = $this->drupalCreateUser(array('access administration pages', 'administer quicktabs', 'administer nodes'));
+    $this->drupalLogin($admin_user);
+    
+    // Create some nodes that we can populate our tabs with.
+    for ($i = 0; $i < 5; $i++) {
+      $node = new stdClass();
+      $node->type = 'page';
+      $node->title = 'This is node number '. ($i+1);
+      $node->body[LANGUAGE_NONE][0]['value'] = $this->randomString(255);
+      node_object_prepare($node);
+      node_save($node);
+    }
+  }
+
+  /**
+   * Create a Quicktabs instance through the UI and ensure that it is saved properly.
+   */
+  function testQuicktabsAdmin() {
+    // Add a new Quicktabs instance using the UI.
+    $edit = array(
+      'machine_name' => strtolower($this->randomName()),
+      'title' => $this->randomName(),
+      'ajax' => 0,
+      'hide_empty_tabs' => FALSE,
+      'renderer' => 'quicktabs',
+    );
+    
+    $saved = $edit;
+    // We'll be using the $saved array to compare against the Quicktabs instance
+    // that gets created. However, hierarchical form elements are dealt with
+    // differenly so we can't include them in the $saved array like this.
+    $tab_title_first = $this->randomName();
+    $tab_title_second = $this->randomName();
+    $edit += array(
+      'tabs[0][type]' => 'node',
+      'tabs[0][node][nid]' => 1,
+      'tabs[0][title]' => $tab_title_first,
+      'tabs[0][weight]' => 0,
+      'tabs[1][type]' => 'node',
+      'tabs[1][node][nid]' => 2,
+      'tabs[1][title]' => $tab_title_second,
+      'tabs[1][weight]' => 1,
+    );
+    // Now add on the tabs info to the $saved array - it's the same as what we
+    // put in the edit form but we need it in proper array format.
+    $saved['tabs'] = array(0 => array('type' => 'node', 'nid' => 1, 'title' => $tab_title_first, 'weight' => 0), 1 => array('type' => 'node', 'nid' => 2, 'title' => $tab_title_second, 'weight' => 1));
+    $this->drupalPost('admin/structure/quicktabs/add', $edit, t('Save'));
+
+    // Check that the quicktabs object is in the database.
+    $quicktabs = quicktabs_load($edit['machine_name']);
+    $this->assertTrue($quicktabs != FALSE, t('Quicktabs instance found in database'));
+  
+    // Check each individual property of the quicktabs and make sure it was set.
+    foreach ($saved as $property => $value) {
+      if ($property == 'tabs') {
+        // Add some extra default values that we didn't include on the form, for
+        // the sake of comparing the two tabs arrays.
+        foreach ($value as &$val) {
+          $val += array('teaser' => 0, 'hide_title' => 1);
+        }
+      }
+      $this->assertEqual($quicktabs->$property, $value, t('Quicktabs property %property properly saved.', array('%property' => $property)));
+    }
+    
+    // Edit the Quicktabs instance through the UI.
+    $edit = array(
+      'title' => $this->randomName(),
+      'ajax' => 1,
+      'hide_empty_tabs' => TRUE,
+      'renderer' => 'ui_tabs',
+      'default_tab' => 1,
+    );
+    
+    $saved = $edit;
+    $tab_title_first = $this->randomName();
+    $tab_title_second = $this->randomName();
+    $edit += array(
+      'tabs[0][title]' => $tab_title_first,
+      'tabs[0][weight]' => 1,
+      'tabs[0][node][nid]' => 3,
+      'tabs[0][node][teaser]' => 1,
+      'tabs[0][node][hide_title]' => FALSE,
+      'tabs[1][title]' => $tab_title_second,
+      'tabs[1][weight]' => 0,
+      'tabs[1][node][nid]' => 4,
+      'tabs[1][node][teaser]' => FALSE,
+      'tabs[1][node][hide_title]' => 1,
+    );
+    $saved['tabs'] = array(0 => array('type' => 'node', 'nid' => 4, 'title' => $tab_title_second, 'weight' => 0, 'teaser' => 0, 'hide_title' => 1), 1 => array('type' => 'node', 'nid' => 3, 'title' => $tab_title_first, 'weight' => 1, 'teaser' => 1, 'hide_title' => 0));
+    $this->drupalPost('admin/structure/quicktabs/manage/'. $quicktabs->machine_name .'/edit', $edit, t('Save'));
+    
+    // Reset static vars because ctools will have cached the original $quicktabs object
+    drupal_static_reset();
+    // Check that the quicktabs object is in the database.
+    $edited_qt = quicktabs_load($quicktabs->machine_name);
+    $this->assertTrue($edited_qt != FALSE, t('Quicktabs instance found in database'));
+  
+    // Check each individual property of the quicktabs and make sure it was set.
+    foreach ($saved as $property => $value) {
+      $this->assertEqual($edited_qt->$property, $value, t('Quicktabs property %property properly saved.', array('%property' => $property)));
+    }
+
+    // Delete the Quicktabs instance through the UI.
+    $this->drupalPost('admin/structure/quicktabs/manage/'. $quicktabs->machine_name .'/delete', array(), t('Delete'));
+    // Reset static vars because ctools will have cached the original $quicktabs object
+    drupal_static_reset();
+    // Check that the quicktabs object is no longer in the database.
+    $this->assertNull(quicktabs_load($quicktabs->machine_name), t('Quicktabs instance not found in database'));
+  }
+
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,106 @@
+reCAPTCHA for Drupal
+====================
+
+The reCAPTCHA module uses the reCAPTCHA web service to
+improve the CAPTCHA system and protect email addresses. For
+more information on what reCAPTCHA is, please visit:
+    https://www.google.com/recaptcha
+
+
+INSTALLATION
+------------
+
+1. Extract the reCAPTCHA module to your local favourite
+   modules directory (sites/all/modules).
+
+
+CONFIGURATION
+-------------
+
+1. Enable reCAPTCHA and CAPTCHA modules in:
+       admin/build/modules
+
+2. You'll now find a reCAPTCHA tab in the CAPTCHA
+   administration page available at:
+       admin/config/people/captcha/recaptcha
+
+3. Register for a public and private reCAPTCHA key at:
+       https://www.google.com/recaptcha/whyrecaptcha
+
+4. Input the keys into the reCAPTCHA settings. The rest of
+   the settings should be fine as their defaults.
+
+5. Visit the Captcha administration page and set where you
+   want the reCAPTCHA form to be presented:
+       admin/user/captcha
+
+
+MAILHIDE INPUT FORMAT
+---------------------
+
+The reCAPTCHA module also comes with an input format to
+protect email addresses. This, of course, is optional to
+use and is only there if you want it. The following is how
+you use that input filter:
+
+1. Enable the reCAPTCHA Mailhide module:
+       admin/build/modules
+
+2. Head over to your input format settings:
+       admin/settings/filters
+
+3. Edit your default input format and add the reCAPTCHA
+   Mailhide filter.
+
+4. Click on the Configure tab and put in a public and
+   private Mailhide key obtained from:
+       https://www.google.com/recaptcha/mailhide/apikey
+
+5. Use the Rearrange tab to rearrange the weight of the
+   filter depending on what filters already exist.  Make
+   sure it is before the URL Filter.
+
+Note: You will require the installation of the mcrypt
+      PHP module in your web server for Mailhide to work:
+         http://php.net/manual/en/ref.mcrypt.php
+
+
+MULTI-DOMAIN SUPPORT
+--------------------
+
+Since reCAPTCHA uses API keys that are unique to each
+domain, if you're using a multi-domain system using the
+same database, the reCAPTCHA module won't work when
+querying the reCAPTCHA web service.  If you put the
+following into your sites/mysite/settings.php file for
+each domain, it will override the API key values and make
+it so multi-domain systems are capable.
+
+  $conf = array(
+    'recaptcha_public_key' =>  'my other public key',
+    'recaptcha_private_key' =>  'my other private key',
+  );
+
+
+CUSTOM RECAPTCHA THEME
+----------------------
+
+You can create a custom reCAPTCHA theme widget by setting
+the theme of the reCAPTCHA form to "custom" in the
+reCAPTCHA administration page.  This will output a custom
+form that is themeable through the theme function:
+  theme_recaptcha_custom_widget().
+
+If you don't implement this function, it is still quite
+easily customizable through manipulating the CSS.
+
+For more information on this, visit:
+https://developers.google.com/recaptcha/docs/customization
+
+
+THANK YOU
+---------
+
+ * Thank you goes to the reCAPTCHA team for all their
+   help, support and their amazing Captcha solution
+       https://www.google.com/recaptcha
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha-php-1.11/LICENSE	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net
+AUTHORS:
+  Mike Crawford
+  Ben Maurer
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha-php-1.11/README	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+reCAPTCHA README
+================
+
+The reCAPTCHA PHP Lirary helps you use the reCAPTCHA API. Documentation
+for this library can be found at
+
+	http://recaptcha.net/plugins/php
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha-php-1.11/example-captcha.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+<html>
+  <body>
+    <form action="" method="post">
+<?php
+
+require_once('recaptchalib.php');
+
+// Get a key from https://www.google.com/recaptcha/admin/create
+$publickey = "";
+$privatekey = "";
+
+# the response from reCAPTCHA
+$resp = null;
+# the error code from reCAPTCHA, if any
+$error = null;
+
+# was there a reCAPTCHA response?
+if ($_POST["recaptcha_response_field"]) {
+        $resp = recaptcha_check_answer ($privatekey,
+                                        $_SERVER["REMOTE_ADDR"],
+                                        $_POST["recaptcha_challenge_field"],
+                                        $_POST["recaptcha_response_field"]);
+
+        if ($resp->is_valid) {
+                echo "You got it!";
+        } else {
+                # set the error code so that we can display it
+                $error = $resp->error;
+        }
+}
+echo recaptcha_get_html($publickey, $error);
+?>
+    <br/>
+    <input type="submit" value="submit" />
+    </form>
+  </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha-php-1.11/example-mailhide.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+<html><body>
+<?
+require_once ("recaptchalib.php");
+
+// get a key at http://www.google.com/recaptcha/mailhide/apikey
+$mailhide_pubkey = '';
+$mailhide_privkey = '';
+
+?>
+
+The Mailhide version of example@example.com is
+<? echo recaptcha_mailhide_html ($mailhide_pubkey, $mailhide_privkey, "example@example.com"); ?>. <br>
+
+The url for the email is:
+<? echo recaptcha_mailhide_url ($mailhide_pubkey, $mailhide_privkey, "example@example.com"); ?> <br>
+
+</body></html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha-php-1.11/recaptchalib.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,277 @@
+<?php
+/*
+ * This is a PHP library that handles calling reCAPTCHA.
+ *    - Documentation and latest version
+ *          http://recaptcha.net/plugins/php/
+ *    - Get a reCAPTCHA API Key
+ *          https://www.google.com/recaptcha/admin/create
+ *    - Discussion group
+ *          http://groups.google.com/group/recaptcha
+ *
+ * Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net
+ * AUTHORS:
+ *   Mike Crawford
+ *   Ben Maurer
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+
+/**
+ * The reCAPTCHA server URL's
+ */
+define("RECAPTCHA_API_SERVER", "http://www.google.com/recaptcha/api");
+define("RECAPTCHA_API_SECURE_SERVER", "https://www.google.com/recaptcha/api");
+define("RECAPTCHA_VERIFY_SERVER", "www.google.com");
+
+/**
+ * Encodes the given data into a query string format
+ * @param $data - array of string elements to be encoded
+ * @return string - encoded request
+ */
+function _recaptcha_qsencode ($data) {
+        $req = "";
+        foreach ( $data as $key => $value )
+                $req .= $key . '=' . urlencode( stripslashes($value) ) . '&';
+
+        // Cut the last '&'
+        $req=substr($req,0,strlen($req)-1);
+        return $req;
+}
+
+
+
+/**
+ * Submits an HTTP POST to a reCAPTCHA server
+ * @param string $host
+ * @param string $path
+ * @param array $data
+ * @param int port
+ * @return array response
+ */
+function _recaptcha_http_post($host, $path, $data, $port = 80) {
+
+        $req = _recaptcha_qsencode ($data);
+
+        $http_request  = "POST $path HTTP/1.0\r\n";
+        $http_request .= "Host: $host\r\n";
+        $http_request .= "Content-Type: application/x-www-form-urlencoded;\r\n";
+        $http_request .= "Content-Length: " . strlen($req) . "\r\n";
+        $http_request .= "User-Agent: reCAPTCHA/PHP\r\n";
+        $http_request .= "\r\n";
+        $http_request .= $req;
+
+        $response = '';
+        if( false == ( $fs = @fsockopen($host, $port, $errno, $errstr, 10) ) ) {
+                die ('Could not open socket');
+        }
+
+        fwrite($fs, $http_request);
+
+        while ( !feof($fs) )
+                $response .= fgets($fs, 1160); // One TCP-IP packet
+        fclose($fs);
+        $response = explode("\r\n\r\n", $response, 2);
+
+        return $response;
+}
+
+
+
+/**
+ * Gets the challenge HTML (javascript and non-javascript version).
+ * This is called from the browser, and the resulting reCAPTCHA HTML widget
+ * is embedded within the HTML form it was called from.
+ * @param string $pubkey A public key for reCAPTCHA
+ * @param string $error The error given by reCAPTCHA (optional, default is null)
+ * @param boolean $use_ssl Should the request be made over ssl? (optional, default is false)
+
+ * @return string - The HTML to be embedded in the user's form.
+ */
+function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
+{
+	if ($pubkey == null || $pubkey == '') {
+		die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
+	}
+	
+	if ($use_ssl) {
+                $server = RECAPTCHA_API_SECURE_SERVER;
+        } else {
+                $server = RECAPTCHA_API_SERVER;
+        }
+
+        $errorpart = "";
+        if ($error) {
+           $errorpart = "&amp;error=" . $error;
+        }
+        return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>
+
+	<noscript>
+  		<iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
+  		<textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea>
+  		<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
+	</noscript>';
+}
+
+
+
+
+/**
+ * A ReCaptchaResponse is returned from recaptcha_check_answer()
+ */
+class ReCaptchaResponse {
+        var $is_valid;
+        var $error;
+}
+
+
+/**
+  * Calls an HTTP POST function to verify if the user's guess was correct
+  * @param string $privkey
+  * @param string $remoteip
+  * @param string $challenge
+  * @param string $response
+  * @param array $extra_params an array of extra variables to post to the server
+  * @return ReCaptchaResponse
+  */
+function recaptcha_check_answer ($privkey, $remoteip, $challenge, $response, $extra_params = array())
+{
+	if ($privkey == null || $privkey == '') {
+		die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
+	}
+
+	if ($remoteip == null || $remoteip == '') {
+		die ("For security reasons, you must pass the remote ip to reCAPTCHA");
+	}
+
+	
+	
+        //discard spam submissions
+        if ($challenge == null || strlen($challenge) == 0 || $response == null || strlen($response) == 0) {
+                $recaptcha_response = new ReCaptchaResponse();
+                $recaptcha_response->is_valid = false;
+                $recaptcha_response->error = 'incorrect-captcha-sol';
+                return $recaptcha_response;
+        }
+
+        $response = _recaptcha_http_post (RECAPTCHA_VERIFY_SERVER, "/recaptcha/api/verify",
+                                          array (
+                                                 'privatekey' => $privkey,
+                                                 'remoteip' => $remoteip,
+                                                 'challenge' => $challenge,
+                                                 'response' => $response
+                                                 ) + $extra_params
+                                          );
+
+        $answers = explode ("\n", $response [1]);
+        $recaptcha_response = new ReCaptchaResponse();
+
+        if (trim ($answers [0]) == 'true') {
+                $recaptcha_response->is_valid = true;
+        }
+        else {
+                $recaptcha_response->is_valid = false;
+                $recaptcha_response->error = $answers [1];
+        }
+        return $recaptcha_response;
+
+}
+
+/**
+ * gets a URL where the user can sign up for reCAPTCHA. If your application
+ * has a configuration page where you enter a key, you should provide a link
+ * using this function.
+ * @param string $domain The domain where the page is hosted
+ * @param string $appname The name of your application
+ */
+function recaptcha_get_signup_url ($domain = null, $appname = null) {
+	return "https://www.google.com/recaptcha/admin/create?" .  _recaptcha_qsencode (array ('domains' => $domain, 'app' => $appname));
+}
+
+function _recaptcha_aes_pad($val) {
+	$block_size = 16;
+	$numpad = $block_size - (strlen ($val) % $block_size);
+	return str_pad($val, strlen ($val) + $numpad, chr($numpad));
+}
+
+/* Mailhide related code */
+
+function _recaptcha_aes_encrypt($val,$ky) {
+	if (! function_exists ("mcrypt_encrypt")) {
+		die ("To use reCAPTCHA Mailhide, you need to have the mcrypt php module installed.");
+	}
+	$mode=MCRYPT_MODE_CBC;   
+	$enc=MCRYPT_RIJNDAEL_128;
+	$val=_recaptcha_aes_pad($val);
+	return mcrypt_encrypt($enc, $ky, $val, $mode, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0");
+}
+
+
+function _recaptcha_mailhide_urlbase64 ($x) {
+	return strtr(base64_encode ($x), '+/', '-_');
+}
+
+/* gets the reCAPTCHA Mailhide url for a given email, public key and private key */
+function recaptcha_mailhide_url($pubkey, $privkey, $email) {
+	if ($pubkey == '' || $pubkey == null || $privkey == "" || $privkey == null) {
+		die ("To use reCAPTCHA Mailhide, you have to sign up for a public and private key, " .
+		     "you can do so at <a href='http://www.google.com/recaptcha/mailhide/apikey'>http://www.google.com/recaptcha/mailhide/apikey</a>");
+	}
+	
+
+	$ky = pack('H*', $privkey);
+	$cryptmail = _recaptcha_aes_encrypt ($email, $ky);
+	
+	return "http://www.google.com/recaptcha/mailhide/d?k=" . $pubkey . "&c=" . _recaptcha_mailhide_urlbase64 ($cryptmail);
+}
+
+/**
+ * gets the parts of the email to expose to the user.
+ * eg, given johndoe@example,com return ["john", "example.com"].
+ * the email is then displayed as john...@example.com
+ */
+function _recaptcha_mailhide_email_parts ($email) {
+	$arr = preg_split("/@/", $email );
+
+	if (strlen ($arr[0]) <= 4) {
+		$arr[0] = substr ($arr[0], 0, 1);
+	} else if (strlen ($arr[0]) <= 6) {
+		$arr[0] = substr ($arr[0], 0, 3);
+	} else {
+		$arr[0] = substr ($arr[0], 0, 4);
+	}
+	return $arr;
+}
+
+/**
+ * Gets html to display an email address given a public an private key.
+ * to get a key, go to:
+ *
+ * http://www.google.com/recaptcha/mailhide/apikey
+ */
+function recaptcha_mailhide_html($pubkey, $privkey, $email) {
+	$emailparts = _recaptcha_mailhide_email_parts ($email);
+	$url = recaptcha_mailhide_url ($pubkey, $privkey, $email);
+	
+	return htmlentities($emailparts[0]) . "<a href='" . htmlentities ($url) .
+		"' onclick=\"window.open('" . htmlentities ($url) . "', '', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=500,height=300'); return false;\" title=\"Reveal this e-mail address\">...</a>@" . htmlentities ($emailparts [1]);
+
+}
+
+
+?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha.admin.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,85 @@
+<?php
+
+/**
+ * @file
+ * Provides the reCAPTCHA administration settings.
+ */
+
+/**
+ * Form callback; administrative settings for reCaptcha.
+ */
+function recaptcha_admin_settings() {
+  // Load the recaptcha library.
+  _recaptcha_load_library();
+
+  $form = array();
+  $form['recaptcha_public_key'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Public Key'),
+    '#default_value' => variable_get('recaptcha_public_key', ''),
+    '#maxlength' => 40,
+    '#description' => t('The public key given to you when you <a href="@url" target="_blank">registered at reCAPTCHA.net</a>.', array('@url' => url(recaptcha_get_signup_url($_SERVER['SERVER_NAME'], variable_get('site_name', ''))))),
+    '#required' => TRUE,
+  );
+  $form['recaptcha_private_key'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Private Key'),
+    '#default_value' => variable_get('recaptcha_private_key', ''),
+    '#maxlength' => 40,
+    '#description' => t('The private key given to you when you <a href="@url" target="_blank">registered at reCAPTCHA.net</a>.', array('@url' => url(recaptcha_get_signup_url($_SERVER['SERVER_NAME'], variable_get('site_name', ''))))),
+    '#required' => TRUE,
+  );
+  $form['recaptcha_ajax_api'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('AJAX API'),
+    '#default_value' => variable_get('recaptcha_ajax_api', FALSE),
+    '#description' => t('Use the AJAX API to display reCAPTCHA.'),
+  );
+  $form['recaptcha_nocookies'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Disable Client-Side Cookies'),
+    '#default_value' => variable_get('recaptcha_nocookies', FALSE),
+    '#description' => t('Add flag to disable third-party cookies set by reCAPTCHA.'),
+  );
+  $form['recaptcha_theme_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Theme Settings'),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+  );
+  $form['recaptcha_theme_settings']['recaptcha_theme'] = array(
+    '#type' => 'select',
+    '#title' => t('Theme'),
+    '#description' => t('Defines which theme to use for reCAPTCHA.'),
+    '#options' => array(
+      'red' => t('Red'),
+      'white' => t('White'),
+      'blackglass' => t('Black Glass'),
+      'clean' => t('Clean'),
+      'custom' => t('Custom'),
+    ),
+    '#default_value' => variable_get('recaptcha_theme', 'red'),
+    '#required' => TRUE,
+  );
+  $form['recaptcha_theme_settings']['recaptcha_tabindex'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Tab Index'),
+    '#description' => t('Sets a <a href="@tabindex" target="_blank">tabindex</a> for the reCAPTCHA text box. If other elements in the form use a tabindex, this should be set so that navigation is easier for the user.', array('@tabindex' => 'http://www.w3.org/TR/html4/interact/forms.html#adef-tabindex')),
+    '#default_value' => variable_get('recaptcha_tabindex', ''),
+    '#size' => 4,
+  );
+
+  return system_settings_form($form);
+}
+
+/**
+ * Validation function for recaptcha_admin_settings().
+ *
+ * @see recaptcha_admin_settings()
+ */
+function recaptcha_admin_settings_validate($form, &$form_state) {
+  $tabindex = $form_state['values']['recaptcha_tabindex'];
+  if (!empty($tabindex) && !is_numeric($tabindex)) {
+    form_set_error('recaptcha_tabindex', t('The Tab Index must be an integer.'));
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+name = reCAPTCHA
+description = "Uses the reCAPTCHA web service to improve the CAPTCHA system."
+dependencies[] = captcha
+package = "Spam control"
+core = 7.x
+
+files[] = recaptcha.admin.inc
+files[] = recaptcha.module
+files[] = recaptcha.install
+
+; Information added by drupal.org packaging script on 2013-02-04
+version = "7.x-1.9"
+core = "7.x"
+project = "recaptcha"
+datestamp = "1359998293"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha.install	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+<?php
+
+/**
+ * @file
+ * Provides install, updated, and uninstall functions for recaptcha.
+ */
+
+/**
+ * Implements hook_uninstall().
+ */
+function recaptcha_uninstall() {
+  // Delete all the recaptcha variables and then clear the variable cache
+  db_delete('variable')
+    ->condition('name', 'recaptcha_%', 'LIKE')
+    ->execute();
+  cache_clear_all('variables', 'cache');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+(function ($) {
+	Drupal.behaviors.recapcha = {
+		attach: function (context) {
+			$(document).ready(Recaptcha.create(Drupal.settings.recaptcha.public_key, Drupal.settings.recaptcha.container, {theme: Drupal.settings.recaptcha.theme}));
+		},
+		detach: function (context) {}
+	};
+}(jQuery));
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,257 @@
+<?php
+
+/**
+ * @file
+ * Uses the reCAPTCHA web service to improve the CAPTCHA system.
+ */
+
+/**
+ * Implements hook_help().
+ */
+function recaptcha_help($path, $arg) {
+  $output = '';
+  switch ($path) {
+    case 'admin/modules#name':
+      $output .= t('reCAPTCHA');
+      break;
+    case 'admin/modules#description':
+    case 'admin/user/captcha/recaptcha':
+      $output .= t('Uses the <a href="@url" target="_blank">reCAPTCHA</a> web service to improve the CAPTCHA system and protect email addresses.', array('@url' => url('https://www.google.com/recaptcha')));
+      break;
+    case 'admin/help#recaptcha':
+      $output .= '<p>' .
+        t('Uses the reCAPTCHA web service to improve the CAPTCHA module and protect email addresses. For more information on what reCAPTCHA is, visit <a href="@url" target="_blank">the official website</a>.', array('@url' => url('https://www.google.com/recaptcha'))) .
+        '</p><h3>' .
+        t('Configuration') .
+        '</h3><p>' .
+        t('The settings associated with reCAPTCHA can be found in the <a href="@recaptchatab">reCAPTCHA tab</a>, in the <a href="@captchasettings">CAPTCHA settings</a>. You must set your public and private reCAPTCHA keys in order to use the module. Once the public and private keys are set, visit the <a href="@captchasettings">CAPTCHA settings</a>, where you can choose where reCAPTCHA should be displayed.', array('@recaptchatab' => url('admin/user/captcha/recaptcha'), '@captchasettings' => url('admin/user/captcha'))) .
+        '</p>';
+      break;
+  }
+  return $output;
+}
+
+/**
+ * Implements hook_menu().
+ */
+function recaptcha_menu() {
+  $items = array();
+  $items['admin/config/people/captcha/recaptcha'] = array(
+    'title' => 'reCAPTCHA',
+    'description' => 'Administer the reCAPTCHA web service.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('recaptcha_admin_settings'),
+    'access arguments' => array('administer recaptcha'),
+    'type' => MENU_LOCAL_TASK,
+    'file' => 'recaptcha.admin.inc',
+  );
+  return $items;
+}
+
+/**
+ * Implements hook_permission().
+ */
+function recaptcha_permission() {
+  return array(
+    'administer recaptcha' => array(
+      'title' => t('reCaptcha Administration'),
+      'description' => t('Administer reCaptcha settings'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_captcha().
+ */
+function recaptcha_captcha() {
+  $args = func_get_args();
+  $op = array_shift($args);
+  switch ($op) {
+    case 'list':
+      return array('reCAPTCHA');
+
+    case 'generate':
+      $captcha_type = array_shift($args);
+      $captcha = array();
+      if ($captcha_type == 'reCAPTCHA') {
+        // Load the recaptcha library.
+        _recaptcha_load_library();
+
+        // Check if reCAPTCHA is available and show Math if not.
+        $connect = @fsockopen(RECAPTCHA_VERIFY_SERVER, 80);
+        if (!$connect) {
+          return captcha_captcha('generate', 'Math', $args);
+        }
+        fclose($connect);
+
+        // Retrieve configuration variables.
+        $recaptcha_theme = variable_get('recaptcha_theme', 'red');
+        $recaptcha_tabindex = variable_get('recaptcha_tabindex', NULL);
+        $recaptcha_public_key = variable_get('recaptcha_public_key', FALSE);
+        $recaptcha_form_value = NULL;
+        $recaptcha_ajax_api = variable_get('recaptcha_ajax_api', FALSE);
+
+        // Fallback to Math if reCAPTCHA is not configured.
+        if (!$recaptcha_public_key) {
+          return captcha_captcha('generate', 'Math', $args);
+        }
+
+        if ($recaptcha_ajax_api) {
+          // By default CAPTCHA turns off page caching on any page where a
+          // CAPTCHA challenge appears. If recaptcha is using AJAX API, set
+          // caching back to its old state as stored in DB.
+          global $conf;
+          $conf['cache'] = unserialize(db_query("SELECT value FROM {variable} WHERE name = 'cache'")->fetchField());
+        }
+
+        $recaptcha_options = array(
+          'theme' => $recaptcha_theme,
+        );
+
+        // Localization support.
+        global $language;
+        if (isset($language->language)) {
+          // reCAPTCHA uses two-character language codes, so 'pt-br' must be
+          // passed as 'pt'; cf. https://developers.google.com/recaptcha/docs/customization#i18n
+          $recaptcha_options['lang'] = drupal_substr($language->language, 0, 2);
+        }
+
+        // Construct the Javascript, but only display it once.
+        static $_recaptcha_jsadded = FALSE;
+        if ($_recaptcha_jsadded == FALSE && $recaptcha_ajax_api == FALSE) {
+          $_recaptcha_jsadded = TRUE;
+
+          // Add support to display the custom theme.
+          if ($recaptcha_theme == 'custom') {
+            $recaptcha_options['custom_theme_widget'] = 'recaptcha_custom_theme_widget';
+            $recaptcha_form_value = theme('recaptcha_custom_widget');
+          }
+
+          // Set the default tab index.
+          if (!empty($recaptcha_tabindex)) {
+            $recaptcha_options['tabindex'] = $recaptcha_tabindex;
+          }
+          drupal_add_js('var RecaptchaOptions = ' . drupal_json_encode($recaptcha_options) . ';', array('type' => 'inline'));
+        }
+
+        // Create the form. Captcha requires TRUE to be returned in solution.
+        $captcha['solution'] = TRUE;
+        $captcha['captcha_validate'] = 'recaptcha_captcha_validation';
+
+        // If 'Disable Client-Side Cookies' is set, then add query string to
+        // end of the public key string before passing to recaptchalib.
+        if (variable_get('recaptcha_nocookies', FALSE)) {
+          $recaptcha_public_key .= '&nocookie=1';
+        }
+
+        $html = recaptcha_get_html($recaptcha_public_key, NULL, TRUE);
+        $captcha['form']['captcha_response'] = array(
+          '#type' => 'hidden',
+          '#value' => 'reCAPTCHA',
+        );
+
+        // Expose the form, either straight HTML, or using the AJAX API.
+        if ($recaptcha_ajax_api == FALSE) {
+          $captcha['form']['captcha_form'] = array(
+            '#type' => 'item',
+            '#markup' => ($recaptcha_form_value ? '<div id="recaptcha_custom_theme_widget">' . $recaptcha_form_value . '</div>' : '') . $html,
+          );
+        }
+        else {
+          $html = ($recaptcha_theme == 'custom') ? theme('recaptcha_custom_widget') : '';
+          $captcha['form']['captcha_form'] = array(
+            '#type' => 'item',
+            '#markup' => '<div id="recaptcha_ajax_api_container">' . $html . '</div>',
+          );
+          drupal_add_js('https://www.google.com/recaptcha/api/js/recaptcha.js', array('type' => 'external'));
+          $recaptcha_options['public_key'] = $recaptcha_public_key;
+          $recaptcha_options['container'] = 'recaptcha_ajax_api_container';
+          drupal_add_js(array('recaptcha' => $recaptcha_options), 'setting');
+          drupal_add_js(drupal_get_path('module', 'recaptcha') . '/recaptcha.js');
+        }
+      }
+      return $captcha;
+  }
+}
+
+/**
+ * @return boolean
+ *   Whether or not the reCAPTCHA server is up.
+ */
+function _recaptcha_test_recaptcha_server() {
+  $test = TRUE;
+  $fs = @fsockopen(RECAPTCHA_VERIFY_SERVER, 80, $errno, $errstr, 10);
+  if (!$fs) {
+    $test = FALSE;
+    drupal_set_message(t('Unable to connect with the reCAPTCHA server (@server): @errno: @errstr', array(
+      '@server' => RECAPTCHA_VERIFY_SERVER,
+      '@errno' => $errno,
+      '@errstr' => $errstr,
+    )), 'error');
+  }
+  fclose($fs);
+  return $test;
+}
+
+/**
+ * CAPTCHA Callback; Validates the reCAPTCHA code.
+ */
+function recaptcha_captcha_validation($solution = NULL, $response = NULL) {
+  global $user;
+  $recaptcha_private_key = variable_get('recaptcha_private_key', FALSE);
+  $ip_address = ip_address();
+  if ($recaptcha_private_key && $ip_address && $response === 'reCAPTCHA' && !empty($_POST['recaptcha_challenge_field']) && !empty($_POST['recaptcha_response_field']) && _recaptcha_test_recaptcha_server()) {
+    $resp = recaptcha_check_answer(
+      $recaptcha_private_key,
+      $ip_address,
+      check_plain($_POST['recaptcha_challenge_field']),
+      check_plain($_POST['recaptcha_response_field'])
+    );
+    return $resp->is_valid;
+  }
+  return FALSE;
+}
+
+/**
+ * Implements hook_theme().
+ */
+function recaptcha_theme() {
+  return array(
+    'recaptcha_custom_widget' => array(
+      'arguments' => array(),
+    ),
+  );
+}
+
+/**
+ * Theme function: creates the custom themed recaptcha widget.
+ *
+ * @ingroup themeable
+ */
+function theme_recaptcha_custom_widget() {
+  $recaptcha_only_if_incorrect_sol = t('Incorrect please try again');
+  $recaptcha_only_if_image_enter = t('Enter the words above:');
+  $recaptcha_only_if_audio_enter = t('Enter the words you hear:');
+  $recaptcha_get_another_captcha = t('Get another CAPTCHA');
+  $recaptcha_only_if_image = t('Get an audio CAPTCHA');
+  $recaptcha_only_if_audio = t('Get an image CAPTCHA');
+  $help = t('Help');
+  return <<<EOT
+    <div id="recaptcha_image"></div>
+    <div class="recaptcha_only_if_incorrect_sol" style="color:red">$recaptcha_only_if_incorrect_sol</div>
+    <span class="recaptcha_only_if_image">$recaptcha_only_if_image_enter</span>
+    <span class="recaptcha_only_if_audio">$recaptcha_only_if_audio_enter</span>
+    <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
+    <div class="recaptcha_get_another_captcha"><a href="javascript:Recaptcha.reload()">$recaptcha_get_another_captcha</a></div>
+    <div class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">$recaptcha_only_if_image</a></div>
+    <div class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">$recaptcha_only_if_audio</a></div>
+    <div class="recaptcha_help"><a href="javascript:Recaptcha.showhelp()">$help</a></div>
+EOT;
+}
+
+/**
+ * Load the recaptcha library.
+ */
+function _recaptcha_load_library() {
+  module_load_include('php', 'recaptcha', 'recaptcha-php-1.11/recaptchalib');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha_mailhide.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,13 @@
+name = reCAPTCHA Mailhide
+description = "Uses the reCAPTCHA web service to protect email addresses."
+package = "Spam control"
+core = 7.x
+
+files[] = recaptcha_mailhide.module
+
+; Information added by drupal.org packaging script on 2013-02-04
+version = "7.x-1.9"
+core = "7.x"
+project = "recaptcha"
+datestamp = "1359998293"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/recaptcha/recaptcha_mailhide.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,121 @@
+<?php
+
+/**
+ * @file
+ * Protects email addresses using the reCAPTCHA web service.
+ */
+
+/**
+ * Implements hook_help().
+ */
+function recaptcha_mailhide_help($path, $arg) {
+  $output = '';
+  switch ($path) {
+    case 'admin/modules#name':
+      $output .= t('reCAPTCHA');
+      break;
+    case 'admin/modules#description':
+      $output .= t('Uses the <a href="@url" target="_blank">reCAPTCHA</a> web service to protect email addresses.', array('@url' => url('https://www.google.com/recaptcha')));
+      break;
+    case 'admin/help#recaptcha':
+      $output .= '<p>' .
+        t('Uses the reCAPTCHA web service to protect email addresses. For more information on what reCAPTCHA Mailhide is, visit <a href="@url" target="_blank">the official website</a>.', array('@url' => url('https://www.google.com/recaptcha/mailhide/'))) .
+        '</p><h3>' .
+        t('Configuration') .
+        '</h3><p>' .
+        t('Head over to the <a href="@inputformats">input format settings</a> and add the <a href="@url" target="_blank">reCAPTCHA Mailhide</a> input filter to hide posted emails.', array('@inputformats' => url('admin/settings/filter'), '@url' => url('https://www.google.com/recaptcha/mailhide/'))) .
+        '</p>';
+      break;
+  }
+  return $output;
+}
+
+/**
+ * Implements hook_filter_info().
+ */
+function recaptcha_mailhide_filter_info() {
+  $filters['filter_recaptcha_mailhide'] = array(
+    'title' => t('reCAPTCHA Mailhide'),
+    'description' => _filter_recaptcha_mailhide_tips('', ''),
+    'process callback' => '_filter_recaptcha_mailhide',
+    'settings callback' => '_filter_recaptcha_mailhide_settings',
+    'tips callback' => '_filter_recaptcha_mailhide_tips',
+    'cache' => FALSE,
+  );
+  return $filters;
+}
+
+/**
+ * Filter callbacks.
+ */
+function _filter_recaptcha_mailhide($text, $filter, $format) {
+  global $_recaptcha_mailhide_public_key, $_recaptcha_mailhide_private_key, $_recaptcha_mailhide_nokey_warn;
+  _recaptcha_mailhide_load_library();
+  $_recaptcha_mailhide_public_key = $filter->settings['recaptcha_mailhide_public_key'];
+  $_recaptcha_mailhide_private_key = $filter->settings['recaptcha_mailhide_private_key'];
+
+  $text = ' ' . $text . ' ';
+  $text = preg_replace_callback("!(<p>|<li>|<br\s*/?>|[ \n\r\t\(])([A-Za-z0-9._-]+@[A-Za-z0-9._+-]+\.[A-Za-z]{2,4})([.,?]?)(?=(</p>|</li>|<br\s*/?>|[ \n\r\t\)]))!i", '_recaptcha_replace', $text);
+  $text = drupal_substr($text, 1, -1);
+
+  unset($_recaptcha_mailhide_public_key);
+  unset($_recaptcha_mailhide_private_key);
+  unset($_recaptcha_mailhide_nokey_warn);
+  return $text;
+}
+
+function _filter_recaptcha_mailhide_settings($form, &$form_state, $filter, $format, $defaults, $filters) {
+  _recaptcha_mailhide_load_library();
+  $public = isset($filter->settings['recaptcha_mailhide_public_key']) ? $filter->settings['recaptcha_mailhide_public_key'] : '';
+  $private = isset($filter->settings['recaptcha_mailhide_private_key']) ? $filter->settings['recaptcha_mailhide_private_key'] : '';
+  $settings['recaptcha_mailhide_public_key'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Public Key'),
+    '#default_value' => $public,
+    '#maxlength' => 50,
+    '#description' => t('Your public Mailhide key obtained from <a href="@url" target="_blank">reCAPTCHA</a>.', array('@url' => 'https://www.google.com/recaptcha/mailhide/apikey')),
+    );
+  $settings['recaptcha_mailhide_private_key'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Private Key'),
+    '#default_value' => $private,
+    '#maxlength' => 50,
+    '#description' => t('Your private Mailhide key obtained from <a href="@url" target="_blank">reCAPTCHA</a>.', array('@url' => 'https://www.google.com/recaptcha/mailhide/apikey')),
+    );
+  return $settings;
+}
+
+function _filter_recaptcha_mailhide_tips($filter, $format, $long = FALSE) {
+  return t('E-Mail addresses are hidden with <a href="@url" target="_blank">reCAPTCHA Mailhide</a>.', array('@url' => 'https://www.google.com/recaptcha/mailhide/'));
+}
+
+/**
+ * Private reCAPTCHA function to replace an email regex match
+ */
+function _recaptcha_replace($match) {
+  global $_recaptcha_mailhide_public_key, $_recaptcha_mailhide_private_key, $_recaptcha_mailhide_nokey_warn;
+  // recaptchalib will die if we invoke without setting the keys. Fail gracefully in this case.
+  if (empty($_recaptcha_mailhide_public_key) || empty($_recaptcha_mailhide_private_key) || !function_exists('mcrypt_encrypt')) {
+    if ($_recaptcha_mailhide_nokey_warn != TRUE) {
+      if (!function_exists('mcrypt_encrypt')) {
+        drupal_set_message(t('Addresses cannot be hidden because Mcrypt is not installed.'), 'error');
+      }
+      else {
+        drupal_set_message(t('Addresses cannot be hidden because the administrator has not set the reCAPTCHA Mailhide keys.'), 'error');
+      }
+      $_recaptcha_mailhide_nokey_warn = TRUE;
+    }
+    $email = $match[2];
+  }
+  else {
+    $email = recaptcha_mailhide_html($_recaptcha_mailhide_public_key, $_recaptcha_mailhide_private_key, $match[2]);
+  }
+  return $match[1] . $email . $match[3];
+}
+
+/**
+ * Load the recaptcha library.
+ */
+function _recaptcha_mailhide_load_library() {
+  module_load_include('php', 'recaptcha', 'recaptcha-php-1.11/recaptchalib');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,60 @@
+
+Views Slideshow
+===============
+
+The Views Slideshow module is a Views Style Plugin that can be used to output
+Views in a jQuery slideshow.
+
+There are currently 2 modes:
+
+SingleFrame
+
+In SingleFrame mode slideshows are output as single elements and controls can be
+displayed as numbered links or thumbnails of individual fields.
+
+ThumbnailHover
+
+In ThumbnailHover mode slideshows are output as node teasers or full nodes. The
+controls for advancing the slideshow are nodes too.
+
+Further details about each can be found within their respective directories.
+
+
+Requirements
+============
+
+Views 3 is required for this module to be of any use.
+
+
+Description
+===========
+
+This module will create a View type of Slideshow that will display nodes in a
+jQuery slideshow.
+
+Settings are available for fade, timing, mode, and more.
+
+
+Authors/maintainers
+===================
+
+Original Author:
+
+Aaron Winborn (winborn at advomatic dot com)
+http://drupal.org/user/33420
+
+Co-maintainers:
+
+redndahead
+http://drupal.org/user/160320
+
+psynaptic
+http://drupal.org/user/93429
+
+
+Support
+=======
+
+Issues should be posted in the issue queue on drupal.org:
+
+http://drupal.org/project/issues/views_slideshow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+
+Views Slideshow: Cycle
+============================
+
+The original default slideshow mode for Views Slideshow.
+
+
+Description
+===========
+
+The Views Slideshow: Cycle module adds a Views display for showing rows as items
+in a jQuery slideshow. Rows could be single images, full nodes, fields, or
+whatever else that Views can display.
+
+Controls can be added to control the slideshow. And it also has the ability to
+allow modules to create different pagers for it.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/js/formoptions.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,141 @@
+
+/**
+ *  @file
+ *  Javascript to enhance the views slideshow cycle form options.
+ */
+
+/**
+ * This will set our initial behavior, by starting up each individual slideshow.
+ */
+(function ($) {
+  
+  // Since Drupal 7 doesn't support having a field based on one of 3 values of
+  // a select box we need to add our own javascript handling.
+  Drupal.behaviors.viewsSlideshowCycleAmountAllowedVisible = {
+    attach: function (context) {
+      
+      // If necessary at start hide the amount allowed visible box.
+      var type = $(":input[name='style_options[views_slideshow_cycle][pause_when_hidden_type]']").val();
+      if (type == 'full') {
+        $(":input[name='style_options[views_slideshow_cycle][amount_allowed_visible]']").parent().hide();
+      }
+      
+      // Handle dependency on action advanced checkbox.
+      $(":input[name='style_options[views_slideshow_cycle][action_advanced]']").change(function() {
+        processValues('action_advanced');
+      });
+      
+      // Handle dependency on pause when hidden checkbox.
+      $(':input[name="style_options[views_slideshow_cycle][pause_when_hidden]"]').change(function() {
+        processValues('pause_when_hidden');
+      });
+      
+      // Handle dependency on pause when hidden type select box.
+      $(":input[name='style_options[views_slideshow_cycle][pause_when_hidden_type]']").change(function() {
+        processValues('pause_when_hidden_type');
+      });
+      
+      // Process our dependencies.
+      function processValues(field) {
+        switch (field) {
+          case 'action_advanced':
+            if (!$(':input[name="style_options[views_slideshow_cycle][action_advanced]"]').is(':checked')) {
+              $(":input[name='style_options[views_slideshow_cycle][amount_allowed_visible]']").parent().hide();
+              break;
+            }
+          case 'pause_when_hidden':
+            if (!$(':input[name="style_options[views_slideshow_cycle][pause_when_hidden]"]').is(':checked')) {
+              $(":input[name='style_options[views_slideshow_cycle][amount_allowed_visible]']").parent().hide();
+              break;
+            }
+          case 'pause_when_hidden_type':
+            if ($(":input[name='style_options[views_slideshow_cycle][pause_when_hidden_type]']").val() == 'full') {
+              $(":input[name='style_options[views_slideshow_cycle][amount_allowed_visible]']").parent().hide();
+            }
+            else {
+              $(":input[name='style_options[views_slideshow_cycle][amount_allowed_visible]']").parent().show();
+            }
+        }
+      }
+    }
+  }
+  
+  // Manage advanced options 
+  Drupal.behaviors.viewsSlideshowCycleOptions = {
+    attach: function (context) {
+      if ($(":input[name='style_options[views_slideshow_cycle][advanced_options]']").length) {
+        $(":input[name='style_options[views_slideshow_cycle][advanced_options]']").parent().hide();
+        
+        $(":input[name='style_options[views_slideshow_cycle][advanced_options_entry]']").parent().after(
+          '<div style="margin-left: 10px; padding: 10px 0;">' + 
+            '<a id="edit-style-options-views-slideshow-cycle-advanced-options-update-link" href="#">' + Drupal.t('Update Advanced Option') + '</a>' +
+          '</div>'
+        );
+        
+        $("#edit-style-options-views-slideshow-cycle-advanced-options-table").append('<tr><th colspan="2">' + Drupal.t('Applied Options') + '</th><tr>')
+        
+        var initialValue = $(":input[name='style_options[views_slideshow_cycle][advanced_options]']").val();
+        var advancedOptions = JSON.parse(initialValue);
+        for (var option in advancedOptions) {
+          viewsSlideshowCycleAdvancedOptionsAddRow(option);
+        }
+        
+        // Add the remove event to the advanced items.
+        viewsSlideshowCycleAdvancedOptionsRemoveEvent();
+        
+        $(":input[name='style_options[views_slideshow_cycle][advanced_options_choices]']").change(function() {
+          var selectedValue = $(":input[name='style_options[views_slideshow_cycle][advanced_options_choices]'] option:selected").val();
+          if (typeof advancedOptions[selectedValue] !== 'undefined') {
+            $(":input[name='style_options[views_slideshow_cycle][advanced_options_entry]']").val(advancedOptions[selectedValue]);
+          }
+          else {
+            $(":input[name='style_options[views_slideshow_cycle][advanced_options_entry]']").val('');
+          }
+        });
+    
+        $('#edit-style-options-views-slideshow-cycle-advanced-options-update-link').click(function() {
+          var option = $(":input[name='style_options[views_slideshow_cycle][advanced_options_choices]']").val();
+          if (option) {
+            var value = $(":input[name='style_options[views_slideshow_cycle][advanced_options_entry]']").val();
+          
+            if (typeof advancedOptions[option] == 'undefined') {
+              viewsSlideshowCycleAdvancedOptionsAddRow(option);
+              viewsSlideshowCycleAdvancedOptionsRemoveEvent()
+            }
+            advancedOptions[option] = value;
+            viewsSlideshowCycleAdvancedOptionsSave();
+          }
+          
+          return false;
+        });
+      }
+      
+      function viewsSlideshowCycleAdvancedOptionsAddRow(option) {
+        $("#edit-style-options-views-slideshow-cycle-advanced-options-table").append(
+          '<tr id="views-slideshow-cycle-advanced-options-table-row-' + option + '">' +
+            '<td>' + option + '</td>' +
+            '<td style="width: 20px;">' +
+              '<a style="margin-top: 6px" title="Remove ' + option + '" alt="Remove ' + option + '" class="views-hidden views-button-remove views-slideshow-cycle-advanced-options-table-remove" id="views-slideshow-cycle-advanced-options-table-remove-' + option + '" href="#"><span>Remove</span></a>' +
+            '</td>' +
+          '</tr>'
+        );
+      }
+      
+      function viewsSlideshowCycleAdvancedOptionsRemoveEvent() {
+        $('.views-slideshow-cycle-advanced-options-table-remove').unbind().click(function() {
+          var itemID = $(this).attr('id');
+          var uniqueID = itemID.replace('views-slideshow-cycle-advanced-options-table-remove-', '');
+          delete advancedOptions[uniqueID];
+          $('#views-slideshow-cycle-advanced-options-table-row-' + uniqueID).remove();
+          viewsSlideshowCycleAdvancedOptionsSave();
+          return false;
+        });
+      }
+      
+      function viewsSlideshowCycleAdvancedOptionsSave() {
+        var advancedOptionsString = JSON.stringify(advancedOptions);
+        $(":input[name='style_options[views_slideshow_cycle][advanced_options]']").val(advancedOptionsString);
+      }
+    }
+  }
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/js/views_slideshow_cycle.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,576 @@
+
+/**
+ *  @file
+ *  A simple jQuery Cycle Div Slideshow Rotator.
+ */
+
+/**
+ * This will set our initial behavior, by starting up each individual slideshow.
+ */
+(function ($) {
+  Drupal.behaviors.viewsSlideshowCycle = {
+    attach: function (context) {
+      $('.views_slideshow_cycle_main:not(.viewsSlideshowCycle-processed)', context).addClass('viewsSlideshowCycle-processed').each(function() {
+        var fullId = '#' + $(this).attr('id');
+        var settings = Drupal.settings.viewsSlideshowCycle[fullId];
+        settings.targetId = '#' + $(fullId + " :first").attr('id');
+        settings.slideshowId = settings.targetId.replace('#views_slideshow_cycle_teaser_section_', '');
+        settings.loaded = false;
+
+        settings.opts = {
+          speed:settings.speed,
+          timeout:settings.timeout,
+          delay:settings.delay,
+          sync:settings.sync,
+          random:settings.random,
+          nowrap:settings.nowrap,
+          after:function(curr, next, opts) {
+            // Need to do some special handling on first load.
+            var slideNum = opts.currSlide;
+            if (typeof settings.processedAfter == 'undefined' || !settings.processedAfter) {
+              settings.processedAfter = 1;
+              slideNum = (typeof settings.opts.startingSlide == 'undefined') ? 0 : settings.opts.startingSlide;
+            }
+            Drupal.viewsSlideshow.action({ "action": 'transitionEnd', "slideshowID": settings.slideshowId, "slideNum": slideNum });
+          },
+          before:function(curr, next, opts) {
+            // Remember last slide.
+            if (settings.remember_slide) {
+              createCookie(settings.vss_id, opts.currSlide + 1, settings.remember_slide_days);
+            }
+
+            // Make variable height.
+            if (!settings.fixed_height) {
+              //get the height of the current slide
+              var $ht = $(this).height();
+              //set the container's height to that of the current slide
+              $(this).parent().animate({height: $ht});
+            }
+
+            // Need to do some special handling on first load.
+            var slideNum = opts.nextSlide;
+            if (typeof settings.processedBefore == 'undefined' || !settings.processedBefore) {
+              settings.processedBefore = 1;
+              slideNum = (typeof settings.opts.startingSlide == 'undefined') ? 0 : settings.opts.startingSlide;
+            }
+
+            Drupal.viewsSlideshow.action({ "action": 'transitionBegin', "slideshowID": settings.slideshowId, "slideNum": slideNum });
+          },
+          cleartype:(settings.cleartype)? true : false,
+          cleartypeNoBg:(settings.cleartypenobg)? true : false
+        }
+
+        // Set the starting slide if we are supposed to remember the slide
+        if (settings.remember_slide) {
+          var startSlide = readCookie(settings.vss_id);
+          if (startSlide == null) {
+            startSlide = 0;
+          }
+          settings.opts.startingSlide =  startSlide;
+        }
+
+        if (settings.effect == 'none') {
+          settings.opts.speed = 1;
+        }
+        else {
+          settings.opts.fx = settings.effect;
+        }
+
+        // Take starting item from fragment.
+        var hash = location.hash;
+        if (hash) {
+          var hash = hash.replace('#', '');
+          var aHash = hash.split(';');
+          var aHashLen = aHash.length;
+
+          // Loop through all the possible starting points.
+          for (var i = 0; i < aHashLen; i++) {
+            // Split the hash into two parts. One part is the slideshow id the
+            // other is the slide number.
+            var initialInfo = aHash[i].split(':');
+            // The id in the hash should match our slideshow.
+            // The slide number chosen shouldn't be larger than the number of
+            // slides we have.
+            if (settings.slideshowId == initialInfo[0] && settings.num_divs > initialInfo[1]) {
+              settings.opts.startingSlide = parseInt(initialInfo[1]);
+            }
+          }
+        }
+
+        // Pause on hover.
+        if (settings.pause) {
+          var mouseIn = function() {
+            Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId });
+          }
+          
+          var mouseOut = function() {
+            Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": settings.slideshowId });
+          }
+          
+          if (jQuery.fn.hoverIntent) {
+            $('#views_slideshow_cycle_teaser_section_' + settings.vss_id).hoverIntent(mouseIn, mouseOut);
+          }
+          else {
+            $('#views_slideshow_cycle_teaser_section_' + settings.vss_id).hover(mouseIn, mouseOut);
+          }
+        }
+
+        // Pause on clicking of the slide.
+        if (settings.pause_on_click) {
+          $('#views_slideshow_cycle_teaser_section_' + settings.vss_id).click(function() {
+            Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId, "force": true });
+          });
+        }
+
+        if (typeof JSON != 'undefined') {
+          var advancedOptions = JSON.parse(settings.advanced_options);
+          for (var option in advancedOptions) {
+            switch(option) {
+
+              // Standard Options
+              case "activePagerClass":
+              case "allowPagerClickBubble":
+              case "autostop":
+              case "autostopCount":
+              case "backwards":
+              case "bounce":
+              case "cleartype":
+              case "cleartypeNoBg":
+              case "containerResize":
+              case "continuous":
+              case "delay":
+              case "easeIn":
+              case "easeOut":
+              case "easing":
+              case "fastOnEvent":
+              case "fit":
+              case "fx":
+              case "height":
+              case "manualTrump":
+              case "metaAttr":
+              case "next":
+              case "nowrap":
+              case "pager":
+              case "pagerEvent":
+              case "pause":
+              case "pauseOnPagerHover":
+              case "prev":
+              case "prevNextEvent":
+              case "random":
+              case "randomizeEffects":
+              case "requeueOnImageNotLoaded":
+              case "requeueTimeout":
+              case "rev":
+              case "slideExpr":
+              case "slideResize":
+              case "speed":
+              case "speedIn":
+              case "speedOut":
+              case "startingSlide":
+              case "sync":
+              case "timeout":
+              case "width":
+                var optionValue = advancedOptions[option];
+                optionValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(optionValue);
+                settings.opts[option] = optionValue;
+                break;
+  
+              // These process options that look like {top:50, bottom:20}
+              case "animIn":
+              case "animOut":
+              case "cssBefore":
+              case "cssAfter":
+              case "shuffle":
+                var cssValue = advancedOptions[option];
+                cssValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(cssValue);
+                settings.opts[option] = eval('(' + cssValue + ')');
+                break;
+  
+              // These options have their own functions.
+              case "after":
+                var afterValue = advancedOptions[option];
+                afterValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(afterValue);
+                // transition callback (scope set to element that was shown): function(currSlideElement, nextSlideElement, options, forwardFlag)
+                settings.opts[option] = function(currSlideElement, nextSlideElement, options, forwardFlag) {
+                  eval(afterValue);
+                }
+                break;
+  
+              case "before":
+                var beforeValue = advancedOptions[option];
+                beforeValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(beforeValue);
+                // transition callback (scope set to element to be shown):     function(currSlideElement, nextSlideElement, options, forwardFlag)
+                settings.opts[option] = function(currSlideElement, nextSlideElement, options, forwardFlag) {
+                  eval(beforeValue);
+                }
+                break;
+  
+              case "end":
+                var endValue = advancedOptions[option];
+                endValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(endValue);
+                // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
+                settings.opts[option] = function(options) {
+                  eval(endValue);
+                }
+                break;
+  
+              case "fxFn":
+                var fxFnValue = advancedOptions[option];
+                fxFnValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(fxFnValue);
+                // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
+                settings.opts[option] = function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag) {
+                  eval(fxFnValue);
+                }
+                break;
+  
+              case "onPagerEvent":
+                var onPagerEventValue = advancedOptions[option];
+                onPagerEventValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(onPagerEventValue);
+                settings.opts[option] = function(zeroBasedSlideIndex, slideElement) {
+                  eval(onPagerEventValue);
+                }
+                break;
+  
+              case "onPrevNextEvent":
+                var onPrevNextEventValue = advancedOptions[option];
+                onPrevNextEventValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(onPrevNextEventValue);
+                settings.opts[option] = function(isNext, zeroBasedSlideIndex, slideElement) {
+                  eval(onPrevNextEventValue);
+                }
+                break;
+  
+              case "pagerAnchorBuilder":
+                var pagerAnchorBuilderValue = advancedOptions[option];
+                pagerAnchorBuilderValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(pagerAnchorBuilderValue);
+                // callback fn for building anchor links:  function(index, DOMelement)
+                settings.opts[option] = function(index, DOMelement) {
+                  var returnVal = '';
+                  eval(pagerAnchorBuilderValue);
+                  return returnVal;
+                }
+                break;
+  
+              case "pagerClick":
+                var pagerClickValue = advancedOptions[option];
+                pagerClickValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(pagerClickValue);
+                // callback fn for pager clicks:    function(zeroBasedSlideIndex, slideElement)
+                settings.opts[option] = function(zeroBasedSlideIndex, slideElement) {
+                  eval(pagerClickValue);
+                }
+                break;
+
+              case "paused":
+                var pausedValue = advancedOptions[option];
+                pausedValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(pausedValue);
+                // undocumented callback when slideshow is paused:    function(cont, opts, byHover)
+                settings.opts[option] = function(cont, opts, byHover) {
+                  eval(pausedValue);
+                }
+                break;
+              
+              case "resumed":
+                var resumedValue = advancedOptions[option];
+                resumedValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(resumedValue);
+                // undocumented callback when slideshow is resumed:    function(cont, opts, byHover)
+                settings.opts[option] = function(cont, opts, byHover) {
+                  eval(resumedValue);
+                }
+                break;
+  
+              case "timeoutFn":
+                var timeoutFnValue = advancedOptions[option];
+                timeoutFnValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(timeoutFnValue);
+                settings.opts[option] = function(currSlideElement, nextSlideElement, options, forwardFlag) {
+                  eval(timeoutFnValue);
+                }
+                break;
+  
+              case "updateActivePagerLink":
+                var updateActivePagerLinkValue = advancedOptions[option];
+                updateActivePagerLinkValue = Drupal.viewsSlideshowCycle.advancedOptionCleanup(updateActivePagerLinkValue);
+                // callback fn invoked to update the active pager link (adds/removes activePagerClass style)
+                settings.opts[option] = function(pager, currSlideIndex) {
+                  eval(updateActivePagerLinkValue);
+                }
+                break;
+            }
+          }
+        }
+
+        // If selected wait for the images to be loaded.
+        // otherwise just load the slideshow.
+        if (settings.wait_for_image_load) {
+          // For IE/Chrome/Opera we if there are images then we need to make
+          // sure the images are loaded before starting the slideshow.
+          settings.totalImages = $(settings.targetId + ' img').length;
+          if (settings.totalImages) {
+            settings.loadedImages = 0;
+
+            // Add a load event for each image.
+            $(settings.targetId + ' img').each(function() {
+              var $imageElement = $(this);
+              $imageElement.bind('load', function () {
+                Drupal.viewsSlideshowCycle.imageWait(fullId);
+              });
+
+              // Removing the source and adding it again will fire the load event.
+              var imgSrc = $imageElement.attr('src');
+              $imageElement.attr('src', '');
+              $imageElement.attr('src', imgSrc);
+            });
+
+            // We need to set a timeout so that the slideshow doesn't wait
+            // indefinitely for all images to load.
+            setTimeout("Drupal.viewsSlideshowCycle.load('" + fullId + "')", settings.wait_for_image_load_timeout);
+          }
+          else {
+            Drupal.viewsSlideshowCycle.load(fullId);
+          }
+        }
+        else {
+          Drupal.viewsSlideshowCycle.load(fullId);
+        }
+      });
+    }
+  };
+
+  Drupal.viewsSlideshowCycle = Drupal.viewsSlideshowCycle || {};
+
+  // Cleanup the values of advanced options.
+  Drupal.viewsSlideshowCycle.advancedOptionCleanup = function(value) {
+    value = $.trim(value);
+    value = value.replace(/\n/g, '');
+    if (!isNaN(parseInt(value))) {
+      value = parseInt(value);
+    }
+    else if (value.toLowerCase() == 'true') {
+      value = true;
+    }
+    else if (value.toLowerCase() == 'false') {
+      value = false;
+    }
+    
+    return value;
+  }
+
+  // This checks to see if all the images have been loaded.
+  // If they have then it starts the slideshow.
+  Drupal.viewsSlideshowCycle.imageWait = function(fullId) {
+    if (++Drupal.settings.viewsSlideshowCycle[fullId].loadedImages == Drupal.settings.viewsSlideshowCycle[fullId].totalImages) {
+      Drupal.viewsSlideshowCycle.load(fullId);
+    }
+  };
+
+  // Start the slideshow.
+  Drupal.viewsSlideshowCycle.load = function (fullId) {
+    var settings = Drupal.settings.viewsSlideshowCycle[fullId];
+    
+    // Make sure the slideshow isn't already loaded.
+    if (!settings.loaded) {
+      $(settings.targetId).cycle(settings.opts);
+      settings.loaded = true;
+  
+      // Start Paused
+      if (settings.start_paused) {
+        Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId, "force": true });
+      }
+  
+      // Pause if hidden.
+      if (settings.pause_when_hidden) {
+        var checkPause = function(settings) {
+          // If the slideshow is visible and it is paused then resume.
+          // otherwise if the slideshow is not visible and it is not paused then
+          // pause it.
+          var visible = viewsSlideshowCycleIsVisible(settings.targetId, settings.pause_when_hidden_type, settings.amount_allowed_visible);
+          if (visible) {
+            Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": settings.slideshowId });
+          }
+          else {
+            Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": settings.slideshowId });
+          }
+        }
+  
+        // Check when scrolled.
+        $(window).scroll(function() {
+         checkPause(settings);
+        });
+  
+        // Check when the window is resized.
+        $(window).resize(function() {
+          checkPause(settings);
+        });
+      }
+    }
+  };
+
+  Drupal.viewsSlideshowCycle.pause = function (options) {
+    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('pause');
+  };
+
+  Drupal.viewsSlideshowCycle.play = function (options) {
+    Drupal.settings.viewsSlideshowCycle['#views_slideshow_cycle_main_' + options.slideshowID].paused = false;
+    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('resume');
+  };
+
+  Drupal.viewsSlideshowCycle.previousSlide = function (options) {
+    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('prev');
+  };
+
+  Drupal.viewsSlideshowCycle.nextSlide = function (options) {
+    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle('next');
+  };
+
+  Drupal.viewsSlideshowCycle.goToSlide = function (options) {
+    $('#views_slideshow_cycle_teaser_section_' + options.slideshowID).cycle(options.slideNum);
+  };
+
+  // Verify that the value is a number.
+  function IsNumeric(sText) {
+    var ValidChars = "0123456789";
+    var IsNumber=true;
+    var Char;
+
+    for (var i=0; i < sText.length && IsNumber == true; i++) {
+      Char = sText.charAt(i);
+      if (ValidChars.indexOf(Char) == -1) {
+        IsNumber = false;
+      }
+    }
+    return IsNumber;
+  }
+
+  /**
+   * Cookie Handling Functions
+   */
+  function createCookie(name,value,days) {
+    if (days) {
+      var date = new Date();
+      date.setTime(date.getTime()+(days*24*60*60*1000));
+      var expires = "; expires="+date.toGMTString();
+    }
+    else {
+      var expires = "";
+    }
+    document.cookie = name+"="+value+expires+"; path=/";
+  }
+
+  function readCookie(name) {
+    var nameEQ = name + "=";
+    var ca = document.cookie.split(';');
+    for(var i=0;i < ca.length;i++) {
+      var c = ca[i];
+      while (c.charAt(0)==' ') c = c.substring(1,c.length);
+      if (c.indexOf(nameEQ) == 0) {
+        return c.substring(nameEQ.length,c.length);
+      }
+    }
+    return null;
+  }
+
+  function eraseCookie(name) {
+    createCookie(name,"",-1);
+  }
+
+  /**
+   * Checks to see if the slide is visible enough.
+   * elem = element to check.
+   * type = The way to calculate how much is visible.
+   * amountVisible = amount that should be visible. Either in percent or px. If
+   *                it's not defined then all of the slide must be visible.
+   *
+   * Returns true or false
+   */
+  function viewsSlideshowCycleIsVisible(elem, type, amountVisible) {
+    // Get the top and bottom of the window;
+    var docViewTop = $(window).scrollTop();
+    var docViewBottom = docViewTop + $(window).height();
+    var docViewLeft = $(window).scrollLeft();
+    var docViewRight = docViewLeft + $(window).width();
+
+    // Get the top, bottom, and height of the slide;
+    var elemTop = $(elem).offset().top;
+    var elemHeight = $(elem).height();
+    var elemBottom = elemTop + elemHeight;
+    var elemLeft = $(elem).offset().left;
+    var elemWidth = $(elem).width();
+    var elemRight = elemLeft + elemWidth;
+    var elemArea = elemHeight * elemWidth;
+
+    // Calculate what's hiding in the slide.
+    var missingLeft = 0;
+    var missingRight = 0;
+    var missingTop = 0;
+    var missingBottom = 0;
+
+    // Find out how much of the slide is missing from the left.
+    if (elemLeft < docViewLeft) {
+      missingLeft = docViewLeft - elemLeft;
+    }
+
+    // Find out how much of the slide is missing from the right.
+    if (elemRight > docViewRight) {
+      missingRight = elemRight - docViewRight;
+    }
+
+    // Find out how much of the slide is missing from the top.
+    if (elemTop < docViewTop) {
+      missingTop = docViewTop - elemTop;
+    }
+
+    // Find out how much of the slide is missing from the bottom.
+    if (elemBottom > docViewBottom) {
+      missingBottom = elemBottom - docViewBottom;
+    }
+
+    // If there is no amountVisible defined then check to see if the whole slide
+    // is visible.
+    if (type == 'full') {
+      return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)
+      && (elemBottom <= docViewBottom) &&  (elemTop >= docViewTop)
+      && (elemLeft >= docViewLeft) && (elemRight <= docViewRight)
+      && (elemLeft <= docViewRight) && (elemRight >= docViewLeft));
+    }
+    else if(type == 'vertical') {
+      var verticalShowing = elemHeight - missingTop - missingBottom;
+
+      // If user specified a percentage then find out if the current shown percent
+      // is larger than the allowed percent.
+      // Otherwise check to see if the amount of px shown is larger than the
+      // allotted amount.
+      if (amountVisible.indexOf('%')) {
+        return (((verticalShowing/elemHeight)*100) >= parseInt(amountVisible));
+      }
+      else {
+        return (verticalShowing >= parseInt(amountVisible));
+      }
+    }
+    else if(type == 'horizontal') {
+      var horizontalShowing = elemWidth - missingLeft - missingRight;
+
+      // If user specified a percentage then find out if the current shown percent
+      // is larger than the allowed percent.
+      // Otherwise check to see if the amount of px shown is larger than the
+      // allotted amount.
+      if (amountVisible.indexOf('%')) {
+        return (((horizontalShowing/elemWidth)*100) >= parseInt(amountVisible));
+      }
+      else {
+        return (horizontalShowing >= parseInt(amountVisible));
+      }
+    }
+    else if(type == 'area') {
+      var areaShowing = (elemWidth - missingLeft - missingRight) * (elemHeight - missingTop - missingBottom);
+
+      // If user specified a percentage then find out if the current shown percent
+      // is larger than the allowed percent.
+      // Otherwise check to see if the amount of px shown is larger than the
+      // allotted amount.
+      if (amountVisible.indexOf('%')) {
+        return (((areaShowing/elemArea)*100) >= parseInt(amountVisible));
+      }
+      else {
+        return (areaShowing >= parseInt(amountVisible));
+      }
+    }
+  }
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row-item.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div class="<?php print $classes; ?>">
+  <?php print $item; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame-row.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div id="views_slideshow_cycle_div_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>" class="<?php print $classes; ?>">
+  <?php print $rendered_items; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle-main-frame.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div id="views_slideshow_cycle_teaser_section_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>">
+  <?php print $rendered_rows; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views-slideshow-cycle.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+<?php
+
+/**
+ * @file
+ * Views Slideshow: Single Frame template file.
+ */
+?>
+
+<div class="skin-<?php print $settings['views_slideshow_cycle']['skin']; ?>">
+  <?php if (isset($top_widget_rendered)): ?>
+    <div class="views-slideshow-controls-top clearfix">
+      <?php print $top_widget_rendered; ?>
+    </div>
+  <?php endif; ?>
+
+  <?php print $slideshow; ?>
+
+  <?php if (isset($bottom_widget_rendered)): ?>
+    <div class="views-slideshow-controls-bottom clearfix">
+      <?php print $bottom_widget_rendered; ?>
+    </div>
+  <?php endif; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/theme/views_slideshow_cycle.theme.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,186 @@
+<?php
+
+/**
+ * @file
+ * Theme & preprocess functions for the Views Slideshow: cycle module.
+ */
+
+/**
+ * Views Slideshow: Theme the main frame wrapper.
+ *
+ * @ingroup themeable
+ */
+
+function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame(&$vars) {
+  $settings = $vars['settings'];
+  $rows = $vars['rows'];
+  $view = $vars['view'];
+  $vss_id = $vars['vss_id'];
+
+  // Cast the strings into int or bool as necessary.
+  $new_settings = array();
+  foreach ($settings as $key => $value) {
+    if (is_string($value)) {
+      if (stristr($value, "\n")) {
+        $value = str_replace("\n", ' ', $value);
+      }
+      $value = trim($value);
+
+      if (is_numeric($value)) {
+        $value = (int)$value;
+      }
+      elseif (strtolower($value) == 'true') {
+        $value = TRUE;
+      }
+      elseif (strtolower($value) == 'false') {
+        $value = FALSE;
+      }
+    }
+
+    $new_settings[$key] = $value;
+  }
+
+  $settings = array_merge(
+    array(
+      'num_divs' => sizeof($rows),
+      'id_prefix' => '#views_slideshow_cycle_main_',
+      'div_prefix' => '#views_slideshow_cycle_div_',
+      'vss_id' => $vss_id,
+    ),
+    $new_settings
+  );
+
+  // We need to go through the current js setting values to make sure the one we
+  // want to add is not already there. If it is already there then append -[num]
+  // to the id to make it unique.
+  $slideshow_count = 1;
+  $current_settings = drupal_add_js();
+  foreach ($current_settings['settings']['data'] AS $current_setting) {
+    if (isset($current_setting['viewsSlideshowCycle'])) {
+      $current_keys = array_keys($current_setting['viewsSlideshowCycle']);
+      if (stristr($current_keys[0], '#views_slideshow_cycle_main_' . $vss_id)) {
+        $slideshow_count++;
+      }
+    }
+  }
+
+  if ($slideshow_count > 1) {
+    $vss_id .= '-' . $slideshow_count;
+    $settings['vss_id'] = $vss_id;
+  }
+  
+  // Don't load javascript unless libraries module is present.
+  if (module_exists('libraries')) {
+    // Load jQuery Cycle
+    if ($cycle_path = _views_slideshow_cycle_library_path()) {
+      drupal_add_js($cycle_path);
+    }
+
+    // Load Json2
+    $json_path = libraries_get_path('json2');
+    if (!empty($json_path) && file_exists($json_path . '/json2.js')) {
+      drupal_add_js($json_path . '/json2.js');
+    }
+
+    // Load our cycle js
+    $module_path = drupal_get_path('module', 'views_slideshow_cycle');
+    drupal_add_js($module_path . '/js/views_slideshow_cycle.js');
+  }
+
+  // Load our cycle css
+  drupal_add_css($module_path . '/views_slideshow_cycle.css', 'file');
+
+  drupal_add_js(array('viewsSlideshowCycle' => array('#views_slideshow_cycle_main_' . $vss_id => $settings)), 'setting');
+  
+  // Add hover intent library
+  if ($settings['pause']) {
+    if (module_exists('libraries')) {
+      // Load jQuery hoverIntent
+      $hoverIntent_path = libraries_get_path('jquery.hoverIntent');
+      if (!empty($hoverIntent_path) && file_exists($hoverIntent_path . '/jquery.hoverIntent.js')) {
+        drupal_add_js($hoverIntent_path . '/jquery.hoverIntent.js');
+      }
+    }
+  }
+
+  // Add the slideshow elements.
+  $vars['classes_array'][] = 'views_slideshow_cycle_teaser_section';
+
+  $styles = '';
+  if (isset($view->display_handler->display->display_options['style_options']['views_slideshow_cycle'])) {
+    $styles = $view->display_handler->display->display_options['style_options']['views_slideshow_cycle'];
+  }
+
+  $styles_default = '';
+  if (isset($view->display['default']->display_options['style_options']['views_slideshow_cycle'])) {
+    $styles_default = $view->display['default']->display_options['style_options']['views_slideshow_cycle'];
+  }
+
+  // Retrive the number of items per frame
+  if (isset($styles['items_per_slide']) && $styles['items_per_slide'] > 0) {
+    $items_per_slide = $styles['items_per_slide'];
+  }
+  elseif (isset($styles_default['items_per_slide']) && $styles_default['items_per_slide'] > 0) {
+    $items_per_slide = $styles_default['items_per_slide'];
+  }
+  else {
+    $items_per_slide = 1;
+  }
+
+  $vars['items_per_slide'] = $items_per_slide;
+
+  $items = array();
+  $slideshow_count = 0;
+  $rendered_rows = '';
+  foreach ($rows as $count => $item) {
+    $items[] = $item;
+    if (count($items) == $items_per_slide || $count == (count($rows)-1)) {
+      $rendered_rows .= theme('views_slideshow_cycle_main_frame_row', array('vss_id' => $vss_id, 'items' => $items, 'count' => $slideshow_count, 'view' => $vars['view']));
+      $items = array();
+      $slideshow_count++;
+    }
+  }
+
+  $vars['rendered_rows'] = $rendered_rows;
+}
+
+/**
+ * Views Slideshow slideshow rows.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row(&$vars) {
+  $current = $vars['count'] + 1;
+  $vars['classes_array'][] = 'views_slideshow_cycle_slide';
+  $vars['classes_array'][] = 'views_slideshow_slide views-row-' . $current;
+
+  if ($vars['count']) {
+    $vars['classes_array'][] =  'views_slideshow_cycle_hidden';
+  }
+  $vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
+
+  $vars['rendered_items'] = '';
+  foreach ($vars['items'] as $item_count => $item) {
+    $vars['rendered_items'] .= theme('views_slideshow_cycle_main_frame_row_item', array('item' => $item, 'item_count' => $item_count, 'view' => $vars['view']));
+  }
+}
+
+function _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row_item(&$vars) {
+  $vars['classes_array'][] = 'views-row views-row-' . $vars['item_count'];
+  if (!$vars['item_count']) {
+    $vars['classes_array'][] = 'views-row-first';
+  }
+  if ($vars['item_count'] % 2) {
+    $vars['classes_array'][] = 'views-row-even';
+  }
+  else {
+    $vars['classes_array'][] = 'views-row-odd';
+  }
+  
+  /**
+   * Support custom row classes.
+   */
+  if ($row_class = $vars['view']->style_plugin->get_row_class($vars['item_count'])) {
+    $vars['classes_array'][] = $row_class;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+
+.views_slideshow_cycle_no_display,
+.views_slideshow_cycle_hidden,
+.views_slideshow_cycle_controls,
+.views_slideshow_cycle_image_count {
+  display: none;
+}
+
+/* Pager Settings */
+
+.views_slideshow_cycle_pager div a img {
+  width: 75px;
+  height: 75px;
+}
+
+.views_slideshow_pager_numbered div, .views_slideshow_pager_thumbnails div {
+  display: inline;
+  padding-left: 10px;
+}
+
+.views_slideshow_cycle_pager.thumbnails a.activeSlide img {
+  border: 3px solid #000;
+}
+
+.views_slideshow_cycle_pager.numbered a.activeSlide {
+  text-decoration: underline;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+name = Views Slideshow: Cycle
+description = Adds a Rotating slideshow mode to Views Slideshow.
+dependencies[] = views_slideshow
+dependencies[] = libraries
+package = Views
+core = 7.x
+
+files[] = views_slideshow_cycle.module
+files[] = views_slideshow_cycle.views_slideshow.inc
+files[] = theme/views_slideshow_cycle.theme.inc
+
+; Information added by drupal.org packaging script on 2011-10-26
+version = "7.x-3.0"
+core = "7.x"
+project = "views_slideshow"
+datestamp = "1319589616"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,99 @@
+<?php
+
+/**
+ * @file
+ * Views Slideshow: cycle is typically used for field views.
+ */
+
+/**
+ * Implements hook_theme().
+ */
+function views_slideshow_cycle_theme($existing, $type, $theme, $path) {
+  return array(
+    'views_slideshow_cycle' => array(
+      'variables' => array('view' => NULL, 'settings' => array(), 'rows' => array(), 'title' => ''),
+      'template' => 'theme/views-slideshow-cycle',
+      'file' => 'theme/views_slideshow_cycle.theme.inc',
+    ),
+    'views_slideshow_cycle_main_frame' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => NULL, 'rows' => NULL),
+      'template' => 'theme/views-slideshow-cycle-main-frame',
+    ),
+    'views_slideshow_cycle_main_frame_row' => array(
+      'variables' => array('vss_id' => NULL, 'items' => NULL, 'count' => NULL, 'view' => NULL),
+      'template' => 'theme/views-slideshow-cycle-main-frame-row',
+    ),
+    'views_slideshow_cycle_main_frame_row_item' => array(
+      'variables' => array('item' => NULL, 'item_count' => NULL, 'view' => NULL),
+      'template' => 'theme/views-slideshow-cycle-main-frame-row-item',
+    ),
+  );
+}
+
+/**
+ * Implements hook_help().
+ */
+function views_slideshow_cycle_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#views_slideshow_cycle':
+      if (module_exists('advanced_help')) {
+        $output = '<p>' . l('Click here to view the documentation for Views Slideshow Cycle.',  'admin/advanced_help/views_slideshow_cycle') . '</p>';
+      }
+      else {
+        $output = '<p>' . t('Views Slideshow Cycle help can be found by installing and enabling the !advanced_help',  array('!advanced_help' => l('Advanced Help module', 'http://drupal.org/project/advanced_help'))) . '</p>';
+      }
+      return $output;
+  }
+}
+
+/**
+ * Gets the path to the jQuery cycle library.
+ *
+ * @return
+ *   The path to the cycle library js file, or FALSE if not found.
+ */
+function _views_slideshow_cycle_library_path() {
+  $cycle_path = libraries_get_path('jquery.cycle');
+
+  if (!empty($cycle_path)) {
+    // Attempt to use minified version of jQuery cycle plugin.
+    if (file_exists($cycle_path . '/jquery.cycle.all.min.js')) {
+      $cycle_path .= '/jquery.cycle.all.min.js';
+    }
+    // Otherwise use non-minified version if available.
+    elseif (file_exists($cycle_path . '/jquery.cycle.all.js')) {
+      $cycle_path .= '/jquery.cycle.all.js';
+    }
+    else {
+      $cycle_path = FALSE;
+    }
+  }
+  else {
+    $cycle_path = FALSE;
+  }
+
+  return $cycle_path;
+}
+
+/**
+ * Need to have preprocess functions here because drupal doesn't cache them 
+ * correctly in the theme.inc file.
+ * 
+ * If you would like to override the preprocess functions make sure to look at
+ * the associated function in theme.inc.
+ */
+
+// Trying to make sure the theme.inc get's loaded.
+include_once('theme/views_slideshow_cycle.theme.inc');
+
+function template_preprocess_views_slideshow_cycle_main_frame(&$vars) {
+  _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame($vars);
+}
+
+function template_preprocess_views_slideshow_cycle_main_frame_row(&$vars) {
+  _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row($vars);
+}
+
+function template_preprocess_views_slideshow_cycle_main_frame_row_item(&$vars) {
+  _views_slideshow_cycle_preprocess_views_slideshow_cycle_main_frame_row_item($vars);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/contrib/views_slideshow_cycle/views_slideshow_cycle.views_slideshow.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,503 @@
+<?php
+
+/**
+ * @file
+ * The default options available with Views Slideshow: cycle.
+ */
+
+function views_slideshow_cycle_views_slideshow_slideshow_info() {
+  $options = array(
+    'views_slideshow_cycle' => array(
+      'name' => t('Cycle'),
+      'accepts' => array(
+        'goToSlide',
+        'nextSlide',
+        'pause',
+        'play',
+        'previousSlide',
+      ),
+      'calls' => array(
+        'transitionBegin',
+        'transitionEnd',
+        'goToSlide',
+        'pause',
+        'play',
+        'nextSlide',
+        'previousSlide',
+      ),
+    ),
+  );
+  return $options;
+}
+
+function views_slideshow_cycle_views_slideshow_option_definition() {
+  $options['views_slideshow_cycle'] = array(
+    'contains' => array(
+      // Transition
+      'effect' => array('default' => 'fade'),
+      'transition_advanced' => array('default' => 0),
+      'timeout' => array('default' => 5000),
+      'speed' => array('default' => 700), //normal
+      'delay' => array('default' => 0),
+      'sync' => array('default' => 1),
+      'random' => array('default' => 0),
+
+      // Action
+      'pause' => array('default' => 1),
+      'pause_on_click' => array('default' => 0),
+      'action_advanced' => array('default' => 0),
+      'start_paused' => array('default', 0),
+      'remember_slide' => array('default' => 0),
+      'remember_slide_days' => array('default' => 1),
+      'pause_when_hidden' => array('default' => 0),
+      'pause_when_hidden_type' => array('default' => 'full'),
+      'amount_allowed_visible' => array('default' => ''),
+      'nowrap' => array('default' => 0),
+      'fixed_height' => array('default' => 1),
+      'items_per_slide' => array('default' => 1),
+      'wait_for_image_load' => array('default' => 1),
+      'wait_for_image_load_timeout' => array('default' => 3000),
+
+      // Internet Explorer Tweaks
+      'cleartype' => array('default' => 'true'),
+      'cleartypenobg' => array('default' => 'false'),
+
+      // Advanced
+      'advanced_options' => array('default' => '{}'),
+    ),
+  );
+  return $options;
+}
+
+function views_slideshow_cycle_views_slideshow_slideshow_type_form(&$form, &$form_state, &$view) {
+  if (!$cycle_path = _views_slideshow_cycle_library_path()) {
+    $form['views_slideshow_cycle']['no_cycle_js'] = array(
+      '#markup' => '<div style="color: red">' . t('You need to install the jQuery cycle plugin. Create a directory in sites/all/libraries called jquery.cycle, and then copy jquery.cycle.all.min.js or jquery.cycle.all.js into it. You can find the plugin at !url.', array('!url' => l('http://malsup.com/jquery/cycle', 'http://malsup.com/jquery/cycle', array('attributes' => array('target' => '_blank'))))) . '</div>',
+    );
+  }
+
+  // Transition
+  $form['views_slideshow_cycle']['transition'] = array(
+    '#markup' => '<h2>' . t('Transition') . '</h2>',
+  );
+
+  $effects = array(
+    'none' => 'none',
+    'blindX' => 'blindX',
+    'blindY' => 'blindY',
+    'blindZ' => 'blindZ',
+    'cover' => 'cover',
+    'curtainX' => 'curtainX',
+    'curtainY' => 'curtainY',
+    'fade' => 'fade',
+    'fadeZoom' => 'fadeZoom',
+    'growX' => 'growX',
+    'growY' => 'growY',
+    'scrollUp' => 'scrollUp',
+    'scrollDown' => 'scrollDown',
+    'scrollLeft' => 'scrollLeft',
+    'scrollRight' => 'scrollRight',
+    'scrollHorz' => 'scrollHorz',
+    'scrollVert' => 'scrollVert',
+    'shuffle' => 'shuffle',
+    'slideX' => 'slideX',
+    'slideY' => 'slideY',
+    'toss' => 'toss',
+    'turnUp' => 'turnUp',
+    'turnDown' => 'turnDown',
+    'turnLeft' => 'turnLeft',
+    'turnRight' => 'turnRight',
+    'uncover' => 'uncover',
+    'wipe' => 'wipe',
+    'zoom' => 'zoom'
+  );
+  $form['views_slideshow_cycle']['effect'] = array(
+    '#type' => 'select',
+    '#title' => t('Effect'),
+    '#options' => $effects,
+    '#default_value' => $view->options['views_slideshow_cycle']['effect'],
+    '#description' => t('The transition effect that will be used to change between images. Not all options below may be relevant depending on the effect. ' . l('Follow this link to see examples of each effect.', 'http://jquery.malsup.com/cycle/browser.html', array('attributes' => array('target' => '_blank')))),
+  );
+
+  // Transition advanced options
+  $form['views_slideshow_cycle']['transition_advanced'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('View Transition Advanced Options'),
+    '#default_value' => $view->options['views_slideshow_cycle']['transition_advanced'],
+  );
+
+  // Need to wrap this so it indents correctly.
+  $form['views_slideshow_cycle']['transition_advanced_wrapper'] = array(
+    '#markup' => '<div class="vs-dependent">',
+  );
+
+  $form['views_slideshow_cycle']['timeout'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Timer delay'),
+    '#default_value' => $view->options['views_slideshow_cycle']['timeout'],
+    '#description' => t('Amount of time in milliseconds between transitions. Set the value to 0 to not rotate the slideshow automatically.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][transition_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['speed'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Speed'),
+    '#default_value' => $view->options['views_slideshow_cycle']['speed'],
+    '#description' => t('Time in milliseconds that each transition lasts. Numeric only!'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][transition_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['delay'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Initial slide delay offset'),
+    '#default_value' => $view->options['views_slideshow_cycle']['delay'],
+    '#description' => t('Amount of time in milliseconds for the first slide to transition. This number will be added to Timer delay to create the initial delay.  For example if Timer delay is 4000 and Initial delay is 2000 then the first slide will change at 6000ms (6 seconds).  If Initial delay is -2000 then the first slide will change at 2000ms (2 seconds).'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][transition_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['sync'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Sync'),
+    '#default_value' => $view->options['views_slideshow_cycle']['sync'],
+    '#description' => t('The sync option controls whether the slide transitions occur simultaneously. The default is selected which means that the current slide transitions out as the next slide transitions in. By unselecting this option you can get some interesting twists on your transitions.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][transition_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['random'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Random'),
+    '#description' => t('This option controls the order items are displayed. The default setting, unselected, uses the views ordering. Selected will cause the images to display in a random order.'),
+    '#default_value' => $view->options['views_slideshow_cycle']['random'],
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][transition_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+
+  $form['views_slideshow_cycle']['transition_advanced_wrapper_close'] = array(
+    '#markup' => '</div>',
+  );
+
+  // Action
+  $form['views_slideshow_cycle']['action'] = array(
+    '#markup' => '<h2>' . t('Action') . '</h2>',
+  );
+  $form['views_slideshow_cycle']['pause'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Pause on hover'),
+    '#default_value' => $view->options['views_slideshow_cycle']['pause'],
+    '#description' => t('Pause when hovering on the slideshow image.'),
+  );
+  $form['views_slideshow_cycle']['pause_on_click'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Pause On Click'),
+    '#default_value' => $view->options['views_slideshow_cycle']['pause_on_click'],
+    '#description' => t('Pause when the slide is clicked.'),
+  );
+
+  // Action Advanced Options
+  $form['views_slideshow_cycle']['action_advanced'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('View Action Advanced Options'),
+    '#default_value' => $view->options['views_slideshow_cycle']['action_advanced'],
+  );
+
+  // Need to wrap this so it indents correctly.
+  $form['views_slideshow_cycle']['action_advanced_wrapper'] = array(
+    '#markup' => '<div class="vs-dependent">',
+  );
+
+  $form['views_slideshow_cycle']['start_paused'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Start Slideshow Paused'),
+    '#default_value' => $view->options['views_slideshow_cycle']['start_paused'],
+    '#description' => t('Start the slideshow in the paused state.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['remember_slide'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Start On Last Slide Viewed'),
+    '#default_value' => $view->options['views_slideshow_cycle']['remember_slide'],
+    '#description' => t('When the user leaves a page with a slideshow and comes back start them on the last slide viewed.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['remember_slide_days'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Length of Time to Remember Last Slide'),
+    '#default_value' => $view->options['views_slideshow_cycle']['remember_slide_days'],
+    '#description' => t('The number of days to have the site remember the last slide. Default is 1'),
+    '#prefix' => '<div class="vs-dependent">',
+    '#suffix' => '</div>',
+    '#size' => 4,
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+        ':input[name="style_options[views_slideshow_cycle][remember_slide]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['pause_when_hidden'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Pause When the Slideshow is Not Visible'),
+    '#default_value' => $view->options['views_slideshow_cycle']['pause_when_hidden'],
+    '#description' => t('When the slideshow is scrolled out of view or when a window is resized that hides the slideshow, this will pause the slideshow.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['pause_when_hidden_type'] = array(
+    '#type' => 'select',
+    '#title' => t('How to Calculate Amount of Slide that Needs to be Shown'),
+    '#options' => array(
+      'full' => t('Entire slide'),
+      'vertical' => t('Set amount of vertical'),
+      'horizontal' => t('Set amount of horizontal'),
+      'area' => t('Set total area of the slide'),
+    ),
+    '#default_value' => $view->options['views_slideshow_cycle']['pause_when_hidden_type'],
+    '#description' => t('Choose how to calculate how much of the slide has to be shown. Entire Slide: All the slide has to be shown. Vertical: Set amount of height that has to be shown. Horizontal: Set amount of width that has to be shown. Area: Set total area that has to be shown.'),
+    '#prefix' => '<div class="vs-dependent">',
+    '#suffix' => '</div>',
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+        ':input[name="style_options[views_slideshow_cycle][pause_when_hidden]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['amount_allowed_visible'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Amount of Slide Needed to be Shown'),
+    '#default_value' => $view->options['views_slideshow_cycle']['amount_allowed_visible'],
+    '#description' => t("The amount of the slide that needs to be shown to have it rotate. You can set the value in percentage (ex: 50%) or in pixels (ex: 250). The slidehsow will not rotate until it's height/width/total area, depending on the calculation method you have chosen above, is less than the value you have entered in this field."),
+    '#size' => 4,
+    '#process' => array('views_slideshow_cycle_form_options_js'),
+  );
+  $form['views_slideshow_cycle']['nowrap'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('End slideshow after last slide'),
+    '#default_value' => $view->options['views_slideshow_cycle']['nowrap'],
+    '#description' => t('If selected the slideshow will end when it gets to the last slide.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['fixed_height'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Make the slide window height fit the largest slide'),
+    '#default_value' => $view->options['views_slideshow_cycle']['fixed_height'],
+    '#description' => t('If unselected then if the slides are different sizes the height of the slide area will change as the slides change.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['items_per_slide'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Items per slide'),
+    '#default_value' => $view->options['views_slideshow_cycle']['items_per_slide'],
+    '#description' => t('The number of items per slide'),
+    '#size' => 4,
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['wait_for_image_load'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Wait for all the slide images to load'),
+    '#default_value' => $view->options['views_slideshow_cycle']['wait_for_image_load'],
+    '#description' => t('If selected the slideshow will not start unless all the slide images are loaded.  This will fix some issues on IE7/IE8/Chrome/Opera.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['views_slideshow_cycle']['wait_for_image_load_timeout'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Timeout'),
+    '#default_value' => $view->options['views_slideshow_cycle']['wait_for_image_load_timeout'],
+    '#description' => t('How long should it wait until it starts the slideshow anyway. Time is in milliseconds.'),
+    '#prefix' => '<div class="vs-dependent">',
+    '#suffix' => '</div>',
+    '#states' => array(
+      'visible' => array(
+        ':input[name="style_options[views_slideshow_cycle][action_advanced]"]' => array('checked' => TRUE),
+        ':input[name="style_options[views_slideshow_cycle][wait_for_image_load]"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+
+  // Need to wrap this so it indents correctly.
+  $form['views_slideshow_cycle']['action_advanced_wrapper_close'] = array(
+    '#markup' => '</div>',
+  );
+
+  // Internet Explorer Tweaks
+  $form['views_slideshow_cycle']['ie_tweaks'] = array(
+    '#markup' => '<h2>' . t('Internet Explorer Tweaks') . '</h2>',
+  );
+  $form['views_slideshow_cycle']['cleartype'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('ClearType'),
+    '#default_value' => $view->options['views_slideshow_cycle']['cleartype'],
+    '#description' => t('Select if clearType corrections should be applied (for IE).  Some background issues could be fixed by unselecting this option.'),
+  );
+  $form['views_slideshow_cycle']['cleartypenobg'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('ClearType Background'),
+    '#default_value' => $view->options['views_slideshow_cycle']['cleartypenobg'],
+    '#description' => t('Select to disable extra cleartype fixing.  Unselect to force background color setting on slides)'),
+  );
+
+
+
+
+  // Advanced Options
+  $form['views_slideshow_cycle']['advanced_options_header'] = array(
+    '#markup' => '<h2>' . t('jQuery Cycle Custom Options') . '</h2>',
+  );
+
+  $json2_path = libraries_get_path('json2');
+  if (empty($json2_path) || !file_exists($json2_path . '/json2.js')) {
+    $form['views_slideshow_cycle']['no_json_js'] = array(
+      '#markup' => '<div>' . t('To use the advanced options you need to download json2.js. You can do this by clicking the download button at !url and extract json2.js to sites/all/libraries/json2', array('!url' => l('https://github.com/douglascrockford/JSON-js', 'https://github.com/douglascrockford/JSON-js', array('attributes' => array('target' => '_blank'))))) . '</div>',
+    );
+  }
+  else {
+    $form['views_slideshow_cycle']['advanced_options_info'] = array(
+      '#markup' => '<p>' . t('You can find a list of all the available options at !url.  If one of the options you add uses a function, example fxFn, then you need to only enter what goes inside the function call. The variables that are in the documentation on the jquery cycle site will be available to you.', array('!url' => l('http://malsup.com/jquery/cycle/options.html', 'http://malsup.com/jquery/cycle/options.html'))) . '</p>',
+    );
+
+    // All the jquery cycle options according to
+    // http://malsup.com/jquery/cycle/options.html
+    $cycle_options = array(
+      0 => 'Select One',
+      'activePagerClass' => 'activePagerClass',
+      'after' => 'after',
+      'allowPagerClickBubble' => 'allowPagerClickBubble',
+      'animIn' => 'animIn',
+      'animOut' => 'animOut',
+      'autostop' => 'autostop',
+      'autostopCount' => 'autostopCount',
+      'backwards' => 'backwards',
+      'before' => 'before',
+      'bounce' => 'bounce',
+      'cleartype' => 'cleartype',
+      'cleartypeNoBg' => 'cleartypeNoBg',
+      'containerResize' => 'containerResize',
+      'continuous' => 'continuous',
+      'cssAfter' => 'cssAfter',
+      'cssBefore' => 'cssBefore',
+      'delay' => 'delay',
+      'easeIn' => 'easeIn',
+      'easeOut' => 'easeOut',
+      'easing' => 'easing',
+      'end' => 'end',
+      'fastOnEvent' => 'fastOnEvent',
+      'fit' => 'fit',
+      'fx' => 'fx',
+      'fxFn' => 'fxFn',
+      'height' => 'height',
+      'manualTrump' => 'manualTrump',
+      'metaAttr' => 'metaAttr',
+      'next' => 'next',
+      'nowrap' => 'nowrap',
+      'onPagerEvent' => 'onPagerEvent',
+      'onPrevNextEvent' => 'onPrevNextEvent',
+      'pager' => 'pager',
+      'pagerAnchorBuilder' => 'pagerAnchorBuilder',
+      'pagerEvent' => 'pagerEvent',
+      'pause' => 'pause',
+      'paused' => 'paused',
+      'pauseOnPagerHover' => 'pauseOnPagerHover',
+      'prev' => 'prev',
+      'prevNextEvent' => 'prevNextEvent',
+      'random' => 'random',
+      'randomizeEffects' => 'randomizeEffects',
+      'requeueOnImageNotLoaded' => 'requeueOnImageNotLoaded',
+      'requeueTimeout' => 'requeueTimeout',
+      'resumed' => 'resumed',
+      'rev' => 'rev',
+      'shuffle' => 'shuffle',
+      'slideExpr' => 'slideExpr',
+      'slideResize' => 'slideResize',
+      'speed' => 'speed',
+      'speedIn' => 'speedIn',
+      'speedOut' => 'speedOut',
+      'startingSlide' => 'startingSlide',
+      'sync' => 'sync',
+      'timeout' => 'timeout',
+      'timeoutFn' => 'timeoutFn',
+      'updateActivePagerLink' => 'updateActivePagerLink',
+      'width' => 'width',
+    );
+
+    $form['views_slideshow_cycle']['advanced_options_choices'] = array(
+      '#type' => 'select',
+      '#title' => t('Advanced Options'),
+      '#options' => $cycle_options,
+      '#process' => array('views_slideshow_cycle_form_options_js'),
+    );
+
+    $form['views_slideshow_cycle']['advanced_options_entry'] = array(
+      '#type' => 'textarea',
+      '#title' => t('Advanced Option Value'),
+      '#description' => t('It is important that you click the Update link when you make any changes to the options or those changes will not be saved when you save the form.'),
+    );
+
+    $form['views_slideshow_cycle']['advanced_options'] = array(
+      '#type' => 'textarea',
+      '#default_value' => $view->options['views_slideshow_cycle']['advanced_options'],
+    );
+
+    $form['views_slideshow_cycle']['advanced_options_table'] = array(
+      '#markup' => '<table style="width: 400px; margin-left: 10px;" id="edit-style-options-views-slideshow-cycle-advanced-options-table"></table>'
+    );
+  }
+}
+
+function views_slideshow_cycle_form_options_js($element, &$form_state, &$form) {
+  ctools_add_js('formoptions', 'views_slideshow_cycle');
+  return $element;
+}
+
+function views_slideshow_cycle_views_slideshow_options_form_validate(&$form, &$form_state, &$view) {
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['speed'])) {
+    form_error($form['views_slideshow_cycle']['speed'], t('!setting must be numeric!', array('Speed')));
+  }
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['timeout'])) {
+    form_error($form['views_slideshow_cycle']['speed'], t('!setting must be numeric!', array('timeout')));
+  }
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['remember_slide_days'])) {
+    form_error($form['views_slideshow_cycle']['remember_slide_days'], t('!setting must be numeric!', array('Slide days')));
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/js/views_slideshow.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,466 @@
+(function ($) {
+  Drupal.viewsSlideshow = Drupal.viewsSlideshow || {};
+
+  /**
+   * Views Slideshow Controls
+   */
+  Drupal.viewsSlideshowControls = Drupal.viewsSlideshowControls || {};
+
+  /**
+   * Implement the play hook for controls.
+   */
+  Drupal.viewsSlideshowControls.play = function (options) {
+    // Route the control call to the correct control type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].play == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].play(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].play == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].play(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+  /**
+   * Implement the pause hook for controls.
+   */
+  Drupal.viewsSlideshowControls.pause = function (options) {
+    // Route the control call to the correct control type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].pause == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].top.type].pause(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].pause == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowControls[options.slideshowID].bottom.type].pause(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+
+  /**
+   * Views Slideshow Text Controls
+   */
+
+  // Add views slieshow api calls for views slideshow text controls.
+  Drupal.behaviors.viewsSlideshowControlsText = {
+    attach: function (context) {
+
+      // Process previous link
+      $('.views_slideshow_controls_text_previous:not(.views-slideshow-controls-text-previous-processed)', context).addClass('views-slideshow-controls-text-previous-processed').each(function() {
+        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_previous_', '');
+        $(this).click(function() {
+          Drupal.viewsSlideshow.action({ "action": 'previousSlide', "slideshowID": uniqueID });
+          return false;
+        });
+      });
+
+      // Process next link
+      $('.views_slideshow_controls_text_next:not(.views-slideshow-controls-text-next-processed)', context).addClass('views-slideshow-controls-text-next-processed').each(function() {
+        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_next_', '');
+        $(this).click(function() {
+          Drupal.viewsSlideshow.action({ "action": 'nextSlide', "slideshowID": uniqueID });
+          return false;
+        });
+      });
+
+      // Process pause link
+      $('.views_slideshow_controls_text_pause:not(.views-slideshow-controls-text-pause-processed)', context).addClass('views-slideshow-controls-text-pause-processed').each(function() {
+        var uniqueID = $(this).attr('id').replace('views_slideshow_controls_text_pause_', '');
+        $(this).click(function() {
+          if (Drupal.settings.viewsSlideshow[uniqueID].paused) {
+            Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": uniqueID, "force": true });
+          }
+          else {
+            Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": uniqueID, "force": true });
+          }
+          return false;
+        });
+      });
+    }
+  };
+
+  Drupal.viewsSlideshowControlsText = Drupal.viewsSlideshowControlsText || {};
+
+  /**
+   * Implement the pause hook for text controls.
+   */
+  Drupal.viewsSlideshowControlsText.pause = function (options) {
+    var pauseText = Drupal.theme.prototype['viewsSlideshowControlsPause'] ? Drupal.theme('viewsSlideshowControlsPause') : '';
+    $('#views_slideshow_controls_text_pause_' + options.slideshowID + ' a').text(pauseText);
+  };
+
+  /**
+   * Implement the play hook for text controls.
+   */
+  Drupal.viewsSlideshowControlsText.play = function (options) {
+    var playText = Drupal.theme.prototype['viewsSlideshowControlsPlay'] ? Drupal.theme('viewsSlideshowControlsPlay') : '';
+    $('#views_slideshow_controls_text_pause_' + options.slideshowID + ' a').text(playText);
+  };
+
+  // Theme the resume control.
+  Drupal.theme.prototype.viewsSlideshowControlsPause = function () {
+    return Drupal.t('Resume');
+  };
+
+  // Theme the pause control.
+  Drupal.theme.prototype.viewsSlideshowControlsPlay = function () {
+    return Drupal.t('Pause');
+  };
+
+  /**
+   * Views Slideshow Pager
+   */
+  Drupal.viewsSlideshowPager = Drupal.viewsSlideshowPager || {};
+
+  /**
+   * Implement the transitionBegin hook for pagers.
+   */
+  Drupal.viewsSlideshowPager.transitionBegin = function (options) {
+    // Route the pager call to the correct pager type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].transitionBegin(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].transitionBegin(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+  /**
+   * Implement the goToSlide hook for pagers.
+   */
+  Drupal.viewsSlideshowPager.goToSlide = function (options) {
+    // Route the pager call to the correct pager type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].goToSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].goToSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+  /**
+   * Implement the previousSlide hook for pagers.
+   */
+  Drupal.viewsSlideshowPager.previousSlide = function (options) {
+    // Route the pager call to the correct pager type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].previousSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].previousSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+  /**
+   * Implement the nextSlide hook for pagers.
+   */
+  Drupal.viewsSlideshowPager.nextSlide = function (options) {
+    // Route the pager call to the correct pager type.
+    // Need to use try catch so we don't have to check to make sure every part
+    // of the object is defined.
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].top.type].nextSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+
+    try {
+      if (typeof Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type != "undefined" && typeof Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide == 'function') {
+        Drupal[Drupal.settings.viewsSlideshowPager[options.slideshowID].bottom.type].nextSlide(options);
+      }
+    }
+    catch(err) {
+      // Don't need to do anything on error.
+    }
+  };
+
+
+  /**
+   * Views Slideshow Pager Fields
+   */
+
+  // Add views slieshow api calls for views slideshow pager fields.
+  Drupal.behaviors.viewsSlideshowPagerFields = {
+    attach: function (context) {
+      // Process pause on hover.
+      $('.views_slideshow_pager_field:not(.views-slideshow-pager-field-processed)', context).addClass('views-slideshow-pager-field-processed').each(function() {
+        // Parse out the location and unique id from the full id.
+        var pagerInfo = $(this).attr('id').split('_');
+        var location = pagerInfo[2];
+        pagerInfo.splice(0, 3);
+        var uniqueID = pagerInfo.join('_');
+
+        // Add the activate and pause on pager hover event to each pager item.
+        if (Drupal.settings.viewsSlideshowPagerFields[uniqueID][location].activatePauseOnHover) {
+          $(this).children().each(function(index, pagerItem) {
+            var mouseIn = function() {
+              Drupal.viewsSlideshow.action({ "action": 'goToSlide', "slideshowID": uniqueID, "slideNum": index });
+              Drupal.viewsSlideshow.action({ "action": 'pause', "slideshowID": uniqueID });
+            }
+            
+            var mouseOut = function() {
+              Drupal.viewsSlideshow.action({ "action": 'play', "slideshowID": uniqueID });
+            }
+          
+            if (jQuery.fn.hoverIntent) {
+              $(pagerItem).hoverIntent(mouseIn, mouseOut);
+            }
+            else {
+              $(pagerItem).hover(mouseIn, mouseOut);
+            }
+            
+          });
+        }
+        else {
+          $(this).children().each(function(index, pagerItem) {
+            $(pagerItem).click(function() {
+              Drupal.viewsSlideshow.action({ "action": 'goToSlide', "slideshowID": uniqueID, "slideNum": index });
+            });
+          });
+        }
+      });
+    }
+  };
+
+  Drupal.viewsSlideshowPagerFields = Drupal.viewsSlideshowPagerFields || {};
+
+  /**
+   * Implement the transitionBegin hook for pager fields pager.
+   */
+  Drupal.viewsSlideshowPagerFields.transitionBegin = function (options) {
+    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
+      // Remove active class from pagers
+      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
+
+      // Add active class to active pager.
+      $('#views_slideshow_pager_field_item_'+ pagerLocation + '_' + options.slideshowID + '_' + options.slideNum).addClass('active');
+    }
+
+  };
+
+  /**
+   * Implement the goToSlide hook for pager fields pager.
+   */
+  Drupal.viewsSlideshowPagerFields.goToSlide = function (options) {
+    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
+      // Remove active class from pagers
+      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
+
+      // Add active class to active pager.
+      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + options.slideNum).addClass('active');
+    }
+  };
+
+  /**
+   * Implement the previousSlide hook for pager fields pager.
+   */
+  Drupal.viewsSlideshowPagerFields.previousSlide = function (options) {
+    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
+      // Get the current active pager.
+      var pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"].active').attr('id').replace('views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_', '');
+
+      // If we are on the first pager then activate the last pager.
+      // Otherwise activate the previous pager.
+      if (pagerNum == 0) {
+        pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').length() - 1;
+      }
+      else {
+        pagerNum--;
+      }
+
+      // Remove active class from pagers
+      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
+
+      // Add active class to active pager.
+      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + pagerNum).addClass('active');
+    }
+  };
+
+  /**
+   * Implement the nextSlide hook for pager fields pager.
+   */
+  Drupal.viewsSlideshowPagerFields.nextSlide = function (options) {
+    for (pagerLocation in Drupal.settings.viewsSlideshowPager[options.slideshowID]) {
+      // Get the current active pager.
+      var pagerNum = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"].active').attr('id').replace('views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_', '');
+      var totalPagers = $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').length();
+
+      // If we are on the last pager then activate the first pager.
+      // Otherwise activate the next pager.
+      pagerNum++;
+      if (pagerNum == totalPagers) {
+        pagerNum = 0;
+      }
+
+      // Remove active class from pagers
+      $('[id^="views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '"]').removeClass('active');
+
+      // Add active class to active pager.
+      $('#views_slideshow_pager_field_item_' + pagerLocation + '_' + options.slideshowID + '_' + slideNum).addClass('active');
+    }
+  };
+
+
+  /**
+   * Views Slideshow Slide Counter
+   */
+
+  Drupal.viewsSlideshowSlideCounter = Drupal.viewsSlideshowSlideCounter || {};
+
+  /**
+   * Implement the transitionBegin for the slide counter.
+   */
+  Drupal.viewsSlideshowSlideCounter.transitionBegin = function (options) {
+    $('#views_slideshow_slide_counter_' + options.slideshowID + ' .num').text(options.slideNum + 1);
+  };
+
+  /**
+   * This is used as a router to process actions for the slideshow.
+   */
+  Drupal.viewsSlideshow.action = function (options) {
+    // Set default values for our return status.
+    var status = {
+      'value': true,
+      'text': ''
+    }
+
+    // If an action isn't specified return false.
+    if (typeof options.action == 'undefined' || options.action == '') {
+      status.value = false;
+      status.text =  Drupal.t('There was no action specified.');
+      return error;
+    }
+
+    // If we are using pause or play switch paused state accordingly.
+    if (options.action == 'pause') {
+      Drupal.settings.viewsSlideshow[options.slideshowID].paused = 1;
+      // If the calling method is forcing a pause then mark it as such.
+      if (options.force) {
+        Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce = 1;
+      }
+    }
+    else if (options.action == 'play') {
+      // If the slideshow isn't forced pause or we are forcing a play then play
+      // the slideshow.
+      // Otherwise return telling the calling method that it was forced paused.
+      if (!Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce || options.force) {
+        Drupal.settings.viewsSlideshow[options.slideshowID].paused = 0;
+        Drupal.settings.viewsSlideshow[options.slideshowID].pausedForce = 0;
+      }
+      else {
+        status.value = false;
+        status.text += ' ' + Drupal.t('This slideshow is forced paused.');
+        return status;
+      }
+    }
+
+    // We use a switch statement here mainly just to limit the type of actions
+    // that are available.
+    switch (options.action) {
+      case "goToSlide":
+      case "transitionBegin":
+      case "transitionEnd":
+        // The three methods above require a slide number. Checking if it is
+        // defined and it is a number that is an integer.
+        if (typeof options.slideNum == 'undefined' || typeof options.slideNum !== 'number' || parseInt(options.slideNum) != (options.slideNum - 0)) {
+          status.value = false;
+          status.text = Drupal.t('An invalid integer was specified for slideNum.');
+        }
+      case "pause":
+      case "play":
+      case "nextSlide":
+      case "previousSlide":
+        // Grab our list of methods.
+        var methods = Drupal.settings.viewsSlideshow[options.slideshowID]['methods'];
+
+        // if the calling method specified methods that shouldn't be called then
+        // exclude calling them.
+        var excludeMethodsObj = {};
+        if (typeof options.excludeMethods !== 'undefined') {
+          // We need to turn the excludeMethods array into an object so we can use the in
+          // function.
+          for (var i=0; i < excludeMethods.length; i++) {
+            excludeMethodsObj[excludeMethods[i]] = '';
+          }
+        }
+
+        // Call every registered method and don't call excluded ones.
+        for (i = 0; i < methods[options.action].length; i++) {
+          if (Drupal[methods[options.action][i]] != undefined && typeof Drupal[methods[options.action][i]][options.action] == 'function' && !(methods[options.action][i] in excludeMethodsObj)) {
+            Drupal[methods[options.action][i]][options.action](options);
+          }
+        }
+        break;
+
+      // If it gets here it's because it's an invalid action.
+      default:
+        status.value = false;
+        status.text = Drupal.t('An invalid action "!action" was specified.', { "!action": options.action });
+    }
+    return status;
+  };
+})(jQuery);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-next.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+<span id="views_slideshow_controls_text_next_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>"><a href="#"><?php print t('Next'); ?></a></span>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-pause.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+<span id="views_slideshow_controls_text_pause_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>"><a href="#"><?php print $start_text; ?></a></span>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text-previous.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+<span id="views_slideshow_controls_text_previous_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>"><a href="#"><?php print t('Previous'); ?></a></span>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-controls-text.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+<div id="views_slideshow_controls_text_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>">
+  <?php print $rendered_control_previous; ?>
+  <?php print $rendered_control_pause; ?>
+  <?php print $rendered_control_next; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-field.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,10 @@
+<div class="views-field-<?php print drupal_clean_css_identifier($view->field[$field]->field); ?>">
+  <?php if ($view->field[$field]->label()) { ?>
+    <label class="view-label-<?php print drupal_clean_css_identifier($view->field[$field]->field); ?>">
+      <?php print $view->field[$field]->label(); ?>:
+    </label>
+  <?php } ?>
+  <div class="views-content-<?php print drupal_clean_css_identifier($view->field[$field]->field); ?>">
+    <?php print $view->style_plugin->rendered_fields[$count][$field]; ?>
+  </div>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-pager-field-item.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div id="views_slideshow_pager_field_item_<?php print $variables['location']; ?>_<?php print $variables['vss_id']; ?>_<?php print $variables['count']; ?>" class="<?php print $classes; ?>">
+  <?php print $item; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-pager-fields.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div id="<?php print $widget_id; ?>" class="<?php print $classes; ?>">
+  <?php print $rendered_field_items; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow-slide-counter.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+<div id="views_slideshow_slide_counter_<?php print $variables['vss_id']; ?>" class="<?php print $classes; ?>">
+  <span class="num">1</span> <?php print t('of'); ?> <span class="total"><?php print count($rows); ?></span>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views-slideshow.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,30 @@
+<?php
+
+/**
+ * @file
+ * Default views template for displaying a slideshow.
+ *
+ * - $view: The View object.
+ * - $options: Settings for the active style.
+ * - $rows: The rows output from the View.
+ * - $title: The title of this group of rows. May be empty.
+ *
+ * @ingroup views_templates
+ */
+?>
+
+<div class="skin-<?php print $skin; ?>">
+  <?php if (!empty($top_widget_rendered)): ?>
+    <div class="views-slideshow-controls-top clearfix">
+      <?php print $top_widget_rendered; ?>
+    </div>
+  <?php endif; ?>
+
+  <?php print $slideshow; ?>
+
+  <?php if (!empty($bottom_widget_rendered)): ?>
+    <div class="views-slideshow-controls-bottom clearfix">
+      <?php print $bottom_widget_rendered; ?>
+    </div>
+  <?php endif; ?>
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/theme/views_slideshow.theme.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,351 @@
+<?php
+
+/**
+ * @file
+ * The theme system, which controls the output of views slideshow.
+ *
+ * This just adds a wrapper div to the slideshow.
+ */
+
+function _views_slideshow_preprocess_views_slideshow(&$vars) {
+  $options = $vars['options'];
+  $vars['skin'] = 'default';
+  $vars['slideshow'] = '';
+  $main_frame_module = $options['slideshow_type'];
+
+  if (empty($main_frame_module)) {
+    // Get all slideshow types.
+    $slideshows = module_invoke_all('views_slideshow_slideshow_info');
+
+    if ($slideshows) {
+      foreach ($slideshows as $slideshow_id => $slideshow_info) {
+        $main_frame_module = $slideshow_id;
+        break;
+      }
+    }
+  }
+  
+  // Make sure the main slideshow settings are defined before building the
+  // slideshow.
+  if (empty($main_frame_module)) {
+    drupal_set_message(t('No main frame module is enabled for views slideshow.'), 'error');
+  }
+  elseif (empty($options[$main_frame_module])) {
+    drupal_set_message(t('The options for !module does not exists.', array('!module' => $main_frame_module)), 'error');
+  }
+  else {
+    $settings = $options[$main_frame_module];
+    $view = $vars['view'];
+    $rows = $vars['rows'];
+    $num_divs = count($rows);
+    $vss_id = $view->name . '-' . $view->current_display;
+
+    // Give each slideshow a unique id if there are more than one on the page.
+    static $instances = array();
+    if (isset($instances[$vss_id])) {
+      $instances[$vss_id]++;
+      $vss_id .= "_" . $instances[$vss_id];
+    }
+    else {
+      $instances[$vss_id] = 1;
+    }
+
+    // Building our default methods.
+    $methods = array(
+      'goToSlide' => array(),
+      'nextSlide' => array(),
+      'pause' => array(),
+      'play' => array(),
+      'previousSlide' => array(),
+      'transitionBegin' => array(),
+      'transitionEnd' => array(),
+    );
+
+    // Pull all widget info and slideshow info and merge them together.
+    $widgets = module_invoke_all('views_slideshow_widget_info');
+    $slideshows = module_invoke_all('views_slideshow_slideshow_info');
+    $addons = array_merge($widgets, $slideshows);
+
+    // Loop through all the addons and call their methods if needed.
+    foreach ($addons as $addon_id => $addon_info) {
+      foreach ($addon_info['accepts'] as $imp_key => $imp_value) {
+        if (is_array($imp_value)) {
+          $methods[$imp_key][] = preg_replace('/_(.?)/e',"strtoupper('$1')", $addon_id);
+        }
+        else {
+          $methods[$imp_value][] = preg_replace('/_(.?)/e',"strtoupper('$1')", $addon_id);
+        }
+      }
+    }
+
+    $js_settings = array(
+      'viewsSlideshow' => array(
+        $vss_id => array(
+          'methods' => $methods,
+          'paused' => 0,
+        )
+      )
+    );
+    drupal_add_js($js_settings, 'setting');
+
+    /**
+     * Process Skins
+     */
+    $skin_info = array();
+    if (isset($options['skin_info'])) {
+      $skin_info = $options['skin_info'];
+    }
+
+    // Make sure $skin_info has all the values.
+    $skin_info += array(
+      'class' => 'default',
+      'name' => t('Untitled skin'),
+      'module' => 'views_slideshow',
+      'path' => '',
+      'stylesheets' => array(),
+    );
+
+    $vars['skin'] = $skin_info['class'];
+
+    // Enqueue any stylesheets set for the skin on this view are added.
+    $skin_path = drupal_get_path('module', $skin_info['module']);
+    if ($skin_info['path']) {
+      $skin_path .= '/' . $skin_info['path'];
+    }
+
+    // Add stylesheet.
+    if (!empty($skin_info['stylesheets'])) {
+      foreach ($skin_info['stylesheets'] as $stylesheet) {
+        drupal_add_css($skin_path . '/' . $stylesheet);
+      }
+    }
+
+    /**
+     * Process Widgets
+     */
+
+    // Build weights
+    for ($i = 1; $i <= count($widgets); $i++) {
+      $weight['top'][$i] = '';
+      $weight['bottom'][$i] = '';
+    }
+
+    foreach ($widgets as $widget_id => $widget_name) {
+      // Put our widgets in the right location.
+      if ($options['widgets']['top'][$widget_id]['enable']) {
+        $widget_weight = ($options['widgets']['top'][$widget_id]['weight'] > count($widgets)) ? count($widgets) : $options['widgets']['top'][$widget_id]['weight'];
+        $weight['top'][$widget_weight][] = $widget_id;
+      }
+
+      if ($options['widgets']['bottom'][$widget_id]['enable']) {
+        $widget_weight = ($options['widgets']['bottom'][$widget_id]['weight'] > count($widgets)) ? count($widgets) : $options['widgets']['bottom'][$widget_id]['weight'];
+        $weight['bottom'][$widget_weight][] = $widget_id;
+      }
+    }
+
+    // Build our widgets
+    foreach ($weight as $location => $order) {
+      $vars[$location . '_widget_rendered'] = '';
+      foreach ($order as $order_num => $widgets) {
+        if (is_array($widgets)) {
+          foreach ($widgets as $widget_id) {
+            $vars[$widget_id . '_' . $location] = theme($widget_id . '_widget_render', array('vss_id' => $vss_id, 'view' => $view, 'settings' => $options['widgets'][$location][$widget_id], 'location' => $location, 'rows' => $rows));
+            $vars[$location . '_widget_rendered'] .= $vars[$widget_id . '_' . $location];
+          }
+        }
+      }
+    }
+
+    /**
+     * Process Slideshow
+     */
+    $slides = theme($main_frame_module . '_main_frame', array('vss_id' => $vss_id, 'view' => $view, 'settings' => $settings, 'rows' => $rows));
+    $vars['slideshow'] = theme('views_slideshow_main_section', array('vss_id' => $vss_id, 'slides' => $slides, 'plugin' => $main_frame_module));
+  }
+}
+
+/**
+ * The current element of the slideshow.
+ *
+ * @ingroup themeable
+ */
+function theme_views_slideshow_main_section($vars) {
+  return '<div id="' . $vars['plugin'] . '_main_' . $vars['vss_id'] . '" class="' .  $vars['plugin'] . '_main views_slideshow_main">' . $vars['slides'] . '</div>';
+}
+
+/**
+ * Views Slideshow: pager.
+ *
+ * @ingroup themeable
+ */
+function theme_views_slideshow_pager_widget_render($vars) {
+  // Add javascript settings for the pager type.
+  $js_vars = array(
+    'viewsSlideshowPager' => array(
+      $vars['vss_id'] => array(
+        $vars['location'] => array(
+          'type' => preg_replace('/_(.?)/e',"strtoupper('$1')", $vars['settings']['type']),
+        ),
+      ),
+    ),
+  );
+
+  drupal_add_js($js_vars, 'setting');
+
+  // Create some attributes
+  $attributes['class'] = 'widget_pager widget_pager_' . $vars['location'];
+  $attributes['id'] = 'widget_pager_' . $vars['location'] . '_' . $vars['vss_id'];
+  return theme($vars['settings']['type'], array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings'], 'location' => $vars['location'], 'attributes' => $attributes));
+}
+
+/**
+ * Theme pager fields
+ */
+function _views_slideshow_preprocess_views_slideshow_pager_fields(&$vars) {
+  // Build our javascript settings.
+  $js_vars = array(
+    'viewsSlideshowPagerFields' => array(
+      $vars['vss_id'] => array(
+        $vars['location'] => array(
+          'activatePauseOnHover' => $vars['settings']['views_slideshow_pager_fields_hover'],
+        ),
+      ),
+    ),
+  );
+
+  // Add the settings to the page.
+  drupal_add_js($js_vars, 'setting');
+  
+  // Add hover intent library
+  if ($vars['settings']['views_slideshow_pager_fields_hover']) {
+    if (module_exists('libraries')) {
+      // Load jQuery hoverIntent
+      $hoverIntent_path = libraries_get_path('jquery.hoverIntent');
+      if (!empty($hoverIntent_path) && file_exists($hoverIntent_path . '/jquery.hoverIntent.js')) {
+        drupal_add_js($hoverIntent_path . '/jquery.hoverIntent.js');
+      }
+    }
+  }
+
+  $vars['classes_array'][] = $vars['attributes']['class'];
+  $vars['widget_id'] = $vars['attributes']['id'];
+  // Add our class to the wrapper.
+  $vars['classes_array'][] = 'views_slideshow_pager_field';
+
+  // Render all the fields unless there is only 1 slide and the user specified
+  // to hide them when there is only one slide.
+  $vars['rendered_field_items'] = '';
+  if (empty($vars['settings']['hide_on_single_slide']) && count($vars['view']->result) > 1) {
+    foreach ($vars['view']->result as $count => $node) {
+      $rendered_fields = '';
+      foreach ($vars['settings']['views_slideshow_pager_fields_fields'] as $field => $use) {
+        if ($use !== 0 && is_object($vars['view']->field[$field])) {
+          $rendered_fields .= theme('views_slideshow_pager_field_field', array('view' => $vars['view'], 'field' => $field, 'count' => $count));
+        }
+      }
+      $vars['rendered_field_items'] .= theme('views_slideshow_pager_field_item', array('vss_id' => $vars['vss_id'], 'item' => $rendered_fields, 'count' => $count, 'location' => $vars['location']));
+    }
+  }
+}
+
+/**
+ * Views Slideshow: pager item.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_preprocess_views_slideshow_pager_field_item(&$vars) {
+  $vars['classes_array'][] = 'views_slideshow_pager_field_item';
+  if (!$vars['count']) {
+    $vars['classes_array'][] = 'views_slideshow_active_pager_field_item';
+  }
+  $vars['classes_array'][] = ($vars['count'] % 2) ? 'views-row-even' : 'views-row-odd';
+}
+
+/**
+ * Views Slideshow: Controls.
+ *
+ * @inggroup themeable
+ */
+function theme_views_slideshow_controls_widget_render($vars) {
+  // Add javascript settings for the controls type.
+  $js_vars = array(
+    'viewsSlideshowControls' => array(
+      $vars['vss_id'] => array(
+        $vars['location'] => array(
+          'type' => preg_replace('/_(.?)/e',"strtoupper('$1')", $vars['settings']['type']),
+        ),
+      ),
+    ),
+  );
+
+  drupal_add_js($js_vars, 'setting');
+
+  $output = '';
+  if (empty($vars['settings']['hide_on_single_slide']) && count($vars['rows']) > 1) {
+    $output = theme($vars['settings']['type'], array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings'], 'location' => $vars['location'], 'rows' => $vars['rows']));
+  }
+
+  return $output;
+}
+
+/**
+ * The slideshow controls.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_preprocess_views_slideshow_controls_text(&$vars) {
+  $module_path = drupal_get_path('module', 'views_slideshow');
+  drupal_add_css($module_path . '/views_slideshow_controls_text.css', array('type' => 'file'));
+
+  $vars['classes_array'][] = 'views_slideshow_controls_text';
+
+  $vars['rendered_control_previous'] = theme('views_slideshow_controls_text_previous', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings']));
+
+  $vars['rendered_control_pause'] = theme('views_slideshow_controls_text_pause', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings']));
+
+  $vars['rendered_control_next'] = theme('views_slideshow_controls_text_next', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings']));
+}
+
+/**
+ * Views Slideshow: "previous" control.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_preprocess_views_slideshow_controls_text_previous(&$vars) {
+  $vars['classes_array'][] = 'views_slideshow_controls_text_previous';
+}
+
+/**
+ * Views Slideshow: "pause" control.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_preprocess_views_slideshow_controls_text_pause(&$vars) {
+  $vars['classes_array'][]  = 'views_slideshow_controls_text_pause';
+  $vars['start_text'] = t('Pause');
+}
+
+/**
+ * Views Slideshow: "next" control.
+ *
+ * @ingroup themeable
+ */
+function _views_slideshow_preprocess_views_slideshow_controls_text_next(&$vars) {
+  $vars['classes_array'][] = 'views_slideshow_controls_text_next';
+}
+
+/**
+ * Views Slideshow: Slide Counter.
+ *
+ * @inggroup themeable
+ */
+function theme_views_slideshow_slide_counter_widget_render($vars) {
+  return theme('views_slideshow_slide_counter', array('vss_id' => $vars['vss_id'], 'view' => $vars['view'], 'settings' => $vars['settings'], 'location' => $vars['location'], 'rows' => $vars['rows']));
+}
+
+/**
+ * Views Slideshow: slide counter.
+ */
+function _views_slideshow_preprocess_views_slideshow_slide_counter(&$vars) {
+  $vars['classes_array'][] = 'views_slideshow_slide_counter';
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow.api.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,202 @@
+<?php
+
+/**
+ * @file
+ * Hooks provided by Views Slideshow.
+ */
+
+/**
+ * @addtogroup hooks
+ * @{
+ */
+
+/**
+ * Define the type of the slideshow (eg.: cycle, imageflow, ddblock).
+ *
+ * @return
+ *  Associative array of slideshow type and its information.
+ */
+function hook_views_slideshow_slideshow_info() {
+  $options = array(
+    'views_slideshow_cycle' => array(
+      'name' => t('Cycle'),
+      'accepts' => array(
+        'goToSlide',
+        'nextSlide',
+        'pause',
+        'play',
+        'previousSlide',
+      ),
+      'calls' => array(
+        'transitionBegin',
+        'transitionEnd',
+        'goToSlide',
+        'pause',
+        'play',
+        'nextSlide',
+        'previousSlide',
+      ),
+    ),
+  );
+  return $options;
+}
+
+/**
+ * Define form fields to be displayed in the views settings form.
+ * These fields would help configure your slideshow type.
+ */
+function hook_views_slideshow_slideshow_type_form(&$form, &$form_state, &$view) {
+  $form['views_slideshow_cycle']['effect'] = array(
+    '#type' => 'select',
+    '#title' => t('Effect'),
+    '#options' => $effects,
+    '#default_value' => $view->options['views_slideshow_cycle']['effect'],
+    '#description' => t('The transition effect that will be used to change between images. Not all options below may be relevant depending on the effect. ' . l('Follow this link to see examples of each effect.', 'http://jquery.malsup.com/cycle/browser.html', array('attributes' => array('target' => '_blank')))),
+  );
+}
+
+/**
+ * Set default values for your form fields specified in hook_views_slideshow_type_form
+ *
+ * @return
+ *  Associative array of slideshow type name and options.
+ */
+function hook_views_slideshow_option_definition() {
+  $options['views_slideshow_cycle'] = array(
+    'contains' => array(
+      // Transition
+      'effect' => array('default' => 'fade'),
+      'transition_advanced' => array('default' => 0),
+      'timeout' => array('default' => 5000),
+      'speed' => array('default' => 700), //normal
+      'delay' => array('default' => 0),
+      'sync' => array('default' => 1),
+      'random' => array('default' => 0),
+    )
+  );
+  return $options;
+}
+
+/**
+ * Form validation callback for the slideshow settings.
+ */
+function hook_views_slideshow_options_form_validate(&$form, &$form_state, &$view) {
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['speed'])) {
+    form_error($form['views_slideshow_cycle']['speed'], t('!setting must be numeric!', array('Speed')));
+  }
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['timeout'])) {
+    form_error($form['views_slideshow_cycle']['speed'], t('!setting must be numeric!', array('timeout')));
+  }
+  if (!is_numeric($form_state['values']['style_options']['views_slideshow_cycle']['remember_slide_days'])) {
+    form_error($form['views_slideshow_cycle']['remember_slide_days'], t('!setting must be numeric!', array('Slide days')));
+  }
+}
+
+/**
+ * Form submission callback for the slideshow settings.
+ */
+function hook_views_slideshow_options_form_submit($form, &$form_state) {
+  // Act on option submission.
+}
+
+/**
+ * Define slideshow skins to be available to the end user.
+ */
+function hook_views_slideshow_skin_info() {
+  return array(
+    'default' => array(
+      'name' => t('Default'),
+    ),
+  );
+}
+
+/**
+ * Define new widgets (pagers, controls, counters).
+ *
+ * Available events for accepts and calls
+ *  - pause
+ *  - play
+ *  - nextSlide
+ *  - previousSlide
+ *  - goToSlide
+ *  - transitionBegin
+ *  - transitionEnd
+ *
+ * @return
+ *  Array keyed by the widget names.
+ */
+function hook_views_slideshow_widget_info() {
+  return array(
+    'views_slideshow_pager' => array(
+      'name' => t('Pager'),
+      'accepts' => array(
+        'transitionBegin' => array('required' => TRUE),
+        'goToSlide',
+        'previousSlide',
+        'nextSlide',
+      ),
+      'calls' => array(
+        'goToSlide',
+        'pause',
+        'play',
+      ),
+    ),
+    'views_slideshow_controls' => array(
+      'name' => t('Controls'),
+      'accepts' => array(
+        'pause' => array('required' => TRUE),
+        'play' => array('required' => TRUE),
+      ),
+      'calls' => array(
+        'nextSlide',
+        'pause',
+        'play',
+        'previousSlide',
+      ),
+    ),
+    'views_slideshow_slide_counter' => array(
+      'name' => t('Slide Counter'),
+      'accepts' => array(
+        'transitionBegin' => array('required' => TRUE),
+        'goToSlide',
+        'previousSlide',
+        'nextSlide',
+      ),
+      'calls' => array(),
+    ),
+  );
+}
+
+/**
+ * Form fields to be added for a specific widget type. Example of a widget type would be views_slideshow_pager or views_slideshow_slide_counter.
+ */
+function INSERT_WIDGET_TYPE_HERE_views_slideshow_widget_form_options(&$form, $form_state, $view, $defaults, $dependency) {
+}
+
+/**
+ * Hook called by the pager widget to configure it, the fields that should be shown.
+ */
+function hook_views_slideshow_widget_pager_info($view) {
+}
+
+/**
+ * Hook called by the pager widget to add form items.
+ */
+function INSERT_WIDGET_TYPE_HERE_views_slideshow_widget_pager_form_options(&$form, &$form_state, &$view, $defaults, $dependency) {
+}
+
+/**
+ * Hook called by the controls widget to configure it, the fields that should be shown.
+ */
+function hook_views_slideshow_widget_controls_info($view) {
+}
+
+/**
+ * Hook called by the controls widget to add form items.
+ */
+function INSERT_WIDGET_TYPE_HERE_views_slideshow_widget_controls_form_options(&$form, &$form_state, &$view, $defaults, $dependency) {
+}
+
+/**
+ * @} End of "addtogroup hooks".
+ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+#views-slideshow-form-wrapper .form-item.dependent-options {
+  padding-left: 5px;
+}
+
+#views-slideshow-form-wrapper .vs-dependent {
+  padding-left: 30px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+name = Views Slideshow
+description = Provides a View style that displays rows as a jQuery slideshow.  This is an API and requires Views Slideshow Cycle or another module that supports the API.
+dependencies[] = views
+package = Views
+core = 7.x
+
+files[] = views_slideshow.module
+files[] = theme/views_slideshow.theme.inc
+files[] = views_slideshow.views.inc
+files[] = views_slideshow_plugin_style_slideshow.inc
+
+; Information added by drupal.org packaging script on 2011-10-26
+version = "7.x-3.0"
+core = "7.x"
+project = "views_slideshow"
+datestamp = "1319589616"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow.module	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,475 @@
+<?php
+
+/**
+ * @file
+ * Provides Slideshow style options for Views.
+ */
+
+/**
+ * Implement hook_theme().
+ */
+function views_slideshow_theme($existing, $type, $theme, $path) {
+  return array(
+    'views_slideshow_main_section' => array(
+      'variables' => array('vss_id' => NULL, 'slides' => NULL, 'plugin' => NULL),
+      'file' => 'theme/views_slideshow.theme.inc',
+    ),
+    'views_slideshow_pager_widget_render' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'rows' => array()),
+      'file' => 'theme/views_slideshow.theme.inc',
+    ),
+    'views_slideshow_pager_fields' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'attributes' => array()),
+      'template' => 'theme/views-slideshow-pager-fields',
+    ),
+    'views_slideshow_pager_field_field' => array(
+      'variables' => array('view' => NULL, 'field' => NULL, 'count' => NULL),
+      'template' => 'theme/views-slideshow-pager-field-field',
+      'file' => 'theme/views_slideshow.theme.inc',
+    ),
+    'views_slideshow_pager_field_item' => array(
+      'variables' => array('vss_id' => NULL, 'item' => NULL, 'count' => NULL, 'location' => NULL),
+      'template' => 'theme/views-slideshow-pager-field-item',
+    ),
+    'views_slideshow_controls_widget_render' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'rows' => array()),
+      'file' => 'theme/views_slideshow.theme.inc',
+    ),
+    'views_slideshow_controls_text' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'rows' => array()),
+      'template' => 'theme/views-slideshow-controls-text',
+    ),
+    'views_slideshow_controls_text_previous' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array()),
+      'template' => 'theme/views-slideshow-controls-text-previous',
+    ),
+    'views_slideshow_controls_text_pause' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array()),
+      'template' => 'theme/views-slideshow-controls-text-pause',
+    ),
+    'views_slideshow_controls_text_next' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array()),
+      'template' => 'theme/views-slideshow-controls-text-next',
+    ),
+    'views_slideshow_slide_counter_widget_render' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'rows' => array()),
+      'file' => 'theme/views_slideshow.theme.inc',
+    ),
+    'views_slideshow_slide_counter' => array(
+      'variables' => array('vss_id' => NULL, 'view' => NULL, 'settings' => array(), 'location' => NULL, 'rows' => array()),
+      'template' => 'theme/views-slideshow-slide-counter',
+    ),
+  );
+}
+
+/**
+ * Implements hook_views_api().
+ */
+function views_slideshow_views_api() {
+  return array(
+    'api' => '3',
+  );
+}
+
+/**
+ * Implements hook_help().
+ */
+function views_slideshow_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#views_slideshow':
+      return '<p>Check the Views Slideshow project page documentation for tutorials and videos on how to use this module.</p>';
+  }
+}
+
+/**
+ * Implements hook_init().
+ */
+function views_slideshow_init() {
+  // Load javascript on the page in init to help fool caching.
+  drupal_add_js(drupal_get_path('module', 'views_slideshow') . '/js/views_slideshow.js');
+
+  $vs_path = drupal_get_path('module', 'views_slideshow');
+  drupal_add_css($vs_path . '/views_slideshow.css');
+}
+
+/**
+ * Implementation of hook_views_slideshow_skin_info().
+ */
+function views_slideshow_views_slideshow_skin_info() {
+  return array(
+    'default' => array(
+      'name' => t('Default'),
+    ),
+  );
+}
+
+/**
+ * Implements hook_views_slideshow_widget_info().
+ */
+function views_slideshow_views_slideshow_widget_info() {
+  return array(
+    'views_slideshow_pager' => array(
+      'name' => t('Pager'),
+      'accepts' => array(
+        'transitionBegin' => array('required' => TRUE),
+        'goToSlide',
+        'previousSlide',
+        'nextSlide',
+      ),
+      'calls' => array(
+        'goToSlide',
+        'pause',
+        'play',
+      ),
+    ),
+    'views_slideshow_controls' => array(
+      'name' => t('Controls'),
+      'accepts' => array(
+        'pause' => array('required' => TRUE),
+        'play' => array('required' => TRUE),
+      ),
+      'calls' => array(
+        'nextSlide',
+        'pause',
+        'play',
+        'previousSlide',
+      ),
+    ),
+    'views_slideshow_slide_counter' => array(
+      'name' => t('Slide Counter'),
+      'accepts' => array(
+        'transitionBegin' => array('required' => TRUE),
+        'goToSlide',
+        'previousSlide',
+        'nextSlide',
+      ),
+      'calls' => array(),
+    ),
+  );
+}
+
+/**
+ * Implements [widget]_views_slideshow_widget_form_options().
+ */
+function views_slideshow_pager_views_slideshow_widget_form_options(&$form, &$form_state, &$view, $defaults, $dependency) {
+  // Get all the pager info from other modules.
+  // hook_views_slideshow_pager_info($view, $option_values, $dependency_prefix)
+  $pagers = module_invoke_all('views_slideshow_widget_pager_info', $view);
+
+  if (!empty($pagers)) {
+    $pager_options = array();
+    foreach($pagers as $pager_id => $pager_info) {
+      $pager_options[$pager_id] = $pager_info['name'];
+    }
+    asort($pager_options);
+
+    // Need to wrap this so it indents correctly.
+    $form['views_slideshow_pager_wrapper'] = array(
+      '#markup' => '<div class="vs-dependent">',
+    );
+
+    // Add field to see if they would like to hide pager if there is only one
+    // slide.
+    $form['hide_on_single_slide'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Hide pager if there is only one slide'),
+      '#default_value' => $defaults['hide_on_single_slide'],
+      '#description' => t('Should the pager be hidden if there is only one slide.'),
+      '#states' => array(
+        'visible' => array(
+          ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ),
+      ),
+    );
+
+    // Create the widget type field.
+    $form['type'] = array(
+      '#type' => 'select',
+      '#title' => t('Pager Type'),
+      '#description' => t('Style of the pager'),
+      '#default_value' => $defaults['type'],
+      '#options' => $pager_options,
+      '#states' => array(
+        'visible' => array(
+          ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ),
+      ),
+    );
+  
+    // Add any additional form elements
+    // Build our arguments to pass to
+    // [pager-type]_views_slideshow_widget_pager_form_options
+    $arguments = array(
+      &$form,
+      &$form_state,
+      &$view,
+      $defaults,
+      $dependency,
+    );
+
+    foreach ($pagers as $pager_key => $pager_info) {
+      $function = $pager_key . '_views_slideshow_widget_pager_form_options';
+      if (function_exists($function)) {
+        call_user_func_array($function, $arguments);
+      }
+    }
+    
+    $form['views_slideshow_pager_wrapper_close'] = array(
+      '#markup' => '</div>',
+    );
+  }
+  else {
+    $form['enable_pager'] = array(
+      '#markup' => 'There are no pagers available.',
+    );
+  }
+}
+
+/**
+ * Implementation of hook_views_slideshow_widget_pager_info
+ */
+function views_slideshow_views_slideshow_widget_pager_info($view) {
+  $settings = array();
+  // Settings for fields pager.
+  // First verfiy that the view is using fields.
+  if ($view->row_plugin->uses_fields()) {
+    $settings = array(
+      'views_slideshow_pager_fields' => array(
+        'name' => t('Fields'),
+      ),
+    );
+  }
+
+  return $settings;
+}
+
+/**
+ * Implementation [widget-type]_views_slideshow_pager_form_options
+ */
+function views_slideshow_pager_fields_views_slideshow_widget_pager_form_options(&$form, &$form_state, &$view, $defaults, $dependency) {
+  // Settings for fields pager.
+  $options = array();
+  // Get each field and it's name.
+  foreach ($view->display->handler->get_handlers('field') as $field => $handler) {
+    $options[$field] = $handler->ui_name();
+  }
+  // Need to wrap this so it indents correctly.
+  $form['views_slideshow_pager_fields_wrapper'] = array(
+    '#markup' => '<div class="vs-dependent">',
+  );
+  // Add ability to choose which fields to show in the pager.
+  $form['views_slideshow_pager_fields_fields'] = array(
+    '#type' => 'checkboxes',
+    '#title' => t('Pager fields'),
+    '#options' => $options,
+    '#default_value' => $defaults['views_slideshow_pager_fields_fields'],
+    '#description' => t("Choose the fields that will appear in the pager."),
+    '#process' => array(
+      'form_process_checkboxes',
+    ),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ':input[name="' . $dependency . '[type]"]' => array('value' => 'views_slideshow_pager_fields'),
+      ),
+    ),
+  );
+
+  // Add field to see if they would like to activate slide and pause on pager
+  // hover
+  $form['views_slideshow_pager_fields_hover'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Activate Slide and Pause on Pager Hover'),
+    '#default_value' => $defaults['views_slideshow_pager_fields_hover'],
+    '#description' => t('Should the slide be activated and paused when hovering over a pager item.'),
+    '#states' => array(
+      'visible' => array(
+        ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ':input[name="' . $dependency . '[type]"]' => array('value' => 'views_slideshow_pager_fields'),
+      ),
+    ),
+  );
+
+  $form['views_slideshow_pager_fields_wrapper_close'] = array(
+    '#markup' => '</div>',
+  );
+}
+
+/**
+ * Implements [widget]_views_slideshow_widget_form_options().
+ */
+function views_slideshow_controls_views_slideshow_widget_form_options(&$form, &$form_state, &$view, $defaults, $dependency) {
+  // Get all the control info from other modules.
+  // hook_views_slideshow_controls_settings($view, $option_values, $dependency_prefix)
+  $controls = module_invoke_all('views_slideshow_widget_controls_info', $view);
+
+  if (!empty($controls)) {
+    $control_type_options = array();
+    foreach($controls as $control_id => $control_info) {
+      $control_type_options[$control_id] = $control_info['name'];
+    }
+    asort($control_type_options);
+
+    // Need to wrap this so it indents correctly.
+    $form['views_slideshow_controls_wrapper'] = array(
+      '#markup' => '<div class="vs-dependent">',
+    );
+    
+    // Add field to see if they would like to hide controls if there is only one
+    // slide
+    $form['hide_on_single_slide'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('Hide controls if there is only one slide'),
+      '#default_value' => $defaults['hide_on_single_slide'],
+      '#description' => t('Should the controls be hidden if there is only one slide.'),
+      '#states' => array(
+        'visible' => array(
+          ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ),
+      ),
+    );
+
+    // Create the widget type field.
+    $form['type'] = array(
+      '#type' => 'select',
+      '#title' => t('Controls Type'),
+      '#description' => t('Style of the controls'),
+      '#default_value' => $defaults['type'],
+      '#options' => $control_type_options,
+      '#states' => array(
+        'visible' => array(
+          ':input[name="' . $dependency . '[enable]"]' => array('checked' => TRUE),
+        ),
+      ),
+    );
+
+    // Add any additional form elements
+    // Build our arguments to pass to
+    // [pager-type]_views_slideshow_widget_pager_form_options
+    $arguments = array(
+      &$form,
+      &$form_state,
+      &$view,
+      $defaults,
+      $dependency,
+    );
+
+    foreach ($controls as $control_key => $control_info) {
+      $function = $control_key . '_views_slideshow_widget_controls_form_options';
+      if (function_exists($function)) {
+        call_user_func_array($function, $arguments);
+      }
+    }
+
+    $form['controls_wrapper_close'] = array(
+      '#markup' => '</div>',
+    );
+  }
+  else {
+    $form['enable_controls'] = array(
+      '#markup' => 'There are no controls available.',
+    );
+  }
+}
+
+/**
+ * Implementation of hook_views_slideshow_controls_info
+ */
+function views_slideshow_views_slideshow_widget_controls_info($view) {
+  return array(
+    'views_slideshow_controls_text' => array(
+      'name' => t('Text'),
+    )
+  );
+}
+
+/**
+ * Implements hook_views_slideshow_option_definition.
+ */
+function views_slideshow_views_slideshow_option_definition() {
+
+  // Default slideshow type and skins
+  $options['slideshow_type'] = array('default' => '');
+  $options['slideshow_skin'] = array('default' => '');
+  $options['skin_info'] = array(
+    'default' => array(
+      'class' => 'default',
+      'name' => t('Untitled skin'),
+      'module' => 'views_slideshow',
+      'path' => '',
+      'stylesheets' => array(),
+    ),
+  );
+
+  // Set default widgets and weight values.
+  $widgets = module_invoke_all('views_slideshow_widget_info');
+  if ($widgets) {
+    $locations = array('top', 'bottom');
+    foreach ($locations as $location) {
+      foreach ($widgets as $widget_id => $widget_name) {
+        $options['widgets']['contains'][$location]['contains'][$widget_id]['contains']['enable'] = array('default' => 0);
+        $options['widgets']['contains'][$location]['contains'][$widget_id]['contains']['weight'] = array('default' => 1);
+      }
+    }
+  }
+
+  // Defaults for the pager widget.
+  foreach ($locations as $location) {
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['hide_on_single_slide'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['type'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_numbered_hover'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_numbered_click_to_page'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_thumbnails_hover'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_thumbnails_click_to_page'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_fields_fields'] = array('default' => array());
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_pager']['contains']['views_slideshow_pager_fields_hover'] = array('default' => 0);
+
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_controls']['contains']['hide_on_single_slide'] = array('default' => 0);
+    $options['widgets']['contains'][$location]['contains']['views_slideshow_controls']['contains']['type'] = array('default' => 0);
+  }
+
+  return $options;
+}
+
+/**
+ * Need to have preprocess functions here because drupal doesn't cache them 
+ * correctly in the theme.inc file.
+ * 
+ * If you would like to override the preprocess functions make sure to look at
+ * the associated function in theme.inc.
+ */
+
+// Trying to make sure the theme.inc get's loaded.
+include_once('theme/views_slideshow.theme.inc');
+
+function template_preprocess_views_slideshow(&$vars) {
+  _views_slideshow_preprocess_views_slideshow($vars);
+}
+
+function template_preprocess_views_slideshow_pager_fields(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_pager_fields($vars);
+}
+
+function template_preprocess_views_slideshow_pager_field_item(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_pager_field_item($vars);
+}
+
+function template_preprocess_views_slideshow_controls_text(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_controls_text($vars);
+}
+
+function template_preprocess_views_slideshow_controls_text_previous(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_controls_text_previous($vars);
+}
+
+function template_preprocess_views_slideshow_controls_text_pause(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_controls_text_pause($vars);
+}
+
+function template_preprocess_views_slideshow_controls_text_next(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_controls_text_next($vars);
+}
+
+function template_preprocess_views_slideshow_slide_counter(&$vars) {
+  _views_slideshow_preprocess_views_slideshow_slide_counter($vars);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow.views.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,31 @@
+<?php
+
+/**
+ * @file
+ * Defines the View Style Plugins for Views Slideshow module.
+ */
+
+/**
+ * Implements hook_views_plugins().
+ */
+function views_slideshow_views_plugins() {
+  return array(
+    'style' => array(
+      'slideshow' => array(
+        'title' => t('Slideshow'),
+        'help' => t('Display the results as a slideshow.'),
+        'handler' => 'views_slideshow_plugin_style_slideshow',
+        'uses options' => TRUE,
+        'uses row plugin' => TRUE,
+        'uses grouping' => FALSE,
+        'uses row class' => TRUE,
+        'type' => 'normal',
+        'parent' => 'list',
+        'path' => drupal_get_path('module', 'views_slideshow'),
+        'theme' => 'views_slideshow',
+        'theme path' => drupal_get_path('module', 'views_slideshow') . '/theme',
+        'theme file' => 'views_slideshow.theme.inc',
+      ),
+    ),
+  );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow_controls_text.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+.views_slideshow_controls_text span:hover {
+  text-decoration: underline;
+  cursor: pointer;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/modules/views_slideshow/views_slideshow_plugin_style_slideshow.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,307 @@
+<?php
+
+/**
+ * @file
+ * Contains the list style plugin.
+ */
+
+/**
+ * Style plugin to render each item in a slideshow of an ordered or unordered list.
+ *
+ * @ingroup views_style_plugins
+ */
+class views_slideshow_plugin_style_slideshow extends views_plugin_style_list {
+
+  // Set default options
+  function option_definition() {
+    $options = parent::option_definition();
+
+    // Load all include files from views slideshow addons.
+    module_load_all_includes('views_slideshow.inc');
+
+    // call every module using hook_views_slideshow_option_definition and merge
+    // it's return value with the other default options.
+    return array_merge($options, module_invoke_all('views_slideshow_option_definition'));
+  }
+
+  // Build the settings form for the view.
+  function options_form(&$form, &$form_state) {
+    // Include ctools dependent support
+    ctools_include('dependent');
+
+    // load up all views slideshow modules functions.
+    module_load_all_includes('views_slideshow.inc');
+    parent::options_form($form, $form_state);
+
+    // Wrap all the form elements to help style the form.
+    $form['views_slideshow_wrapper'] = array(
+      '#markup' => '<div id="views-slideshow-form-wrapper">',
+    );
+
+    // Style
+    $form['slideshow_skin_header'] = array(
+      '#markup' => '<h2>' . t('Style') . '</h2>',
+    );
+
+    // Get a list of all available skins.
+    $skin_info = $this->views_slideshow_get_skins();
+    foreach ($skin_info as $skin => $info) {
+      $skins[$skin] = $info['name'];
+    }
+    asort($skins);
+
+    // Create the drop down box so users can choose an available skin.
+    $form['slideshow_skin'] = array(
+      '#type' => 'select',
+      '#title' => t('Skin'),
+      '#options' => $skins,
+      '#default_value' => $this->options['slideshow_skin'],
+      '#description' => t('Select the skin to use for this display.  Skins allow for easily swappable layouts of things like next/prev links and thumbnails.  Note that not all skins support all widgets, so a combination of skins and widgets may lead to unpredictable results in layout.'),
+    );
+
+    /**
+     * Slides
+     */
+    $form['slides_header'] = array(
+      '#markup' => '<h2>' . t('Slides') . '</h2>',
+    );
+
+    // Get all slideshow types.
+    $slideshows = module_invoke_all('views_slideshow_slideshow_info');
+
+    if ($slideshows) {
+
+      // Build our slideshow options for the form.
+      $slideshow_options = array();
+      foreach ($slideshows as $slideshow_id => $slideshow_info) {
+        $slideshow_options[$slideshow_id] = $slideshow_info['name'];
+      }
+
+      $form['slideshow_type'] = array(
+        '#type' => 'select',
+        '#title' => t('Slideshow Type'),
+        '#options' => $slideshow_options,
+        '#default_value' => $this->options['slideshow_type'],
+      );
+
+      $arguments = array(
+        &$form,
+        &$form_state,
+        &$this,
+      );
+
+      foreach (module_implements('views_slideshow_slideshow_type_form') as $module) {
+        $form[$module] = array(
+          '#type' => 'fieldset',
+          '#title' => t('!module options', array('!module' => $slideshows[$module]['name'])),
+          '#collapsible' => TRUE,
+          '#attributes' => array('class' => array($module)),
+          '#states' => array(
+            'visible' => array(
+              ':input[name="style_options[slideshow_type]"]' => array('value' => $module),
+            ),
+          ),
+        );
+
+        $function = $module . '_views_slideshow_slideshow_type_form';
+        call_user_func_array($function, $arguments);
+      }
+    }
+    else {
+      $form['enable_module'] = array(
+        '#markup' => t('There is no Views Slideshow plugin enabled. Go to the !modules and enable a Views Slideshow plugin module. For example Views Slideshow Singleframe.', array('!modules' => l('Modules Page', 'admin/modules'))),
+      );
+    }
+
+    /**
+     * Widgets
+     */
+    $form['widgets_header'] = array(
+      '#markup' => '<h2>' . t('Widgets') . '</h2>',
+    );
+
+    // Loop through all locations so we can add header for each location.
+    $location = array('top' => t('Top'), 'bottom' => t('Bottom'));
+    foreach ($location as $location_id => $location_name) {
+      // Widget Header
+      $form['widgets'][$location_id]['header'] = array(
+        '#markup' => '<h3>' . t('!location Widgets', array('!location' => $location_name)) . '</h3>',
+      );
+    }
+
+    // Get all widgets that are registered.
+    // If we have widgets then build it's form fields.
+    $widgets = module_invoke_all('views_slideshow_widget_info');
+    if (!empty($widgets)) {
+
+      // Build our weight values by number of widgets
+      $weights = array();
+      for ($i = 1; $i <= count($widgets); $i++) {
+        $weights[$i] = $i;
+      }
+
+      // Loop through our widgets and locations to build our form values for
+      // each widget.
+      foreach ($widgets as $widget_id => $widget_info) {
+        foreach ($location as $location_id => $location_name) {
+          $widget_dependency = 'style_options[widgets][' . $location_id . '][' . $widget_id . ']';
+
+          // Determine if a widget is compatible with a slideshow.
+          $compatible_slideshows = array();
+          foreach ($slideshows as $slideshow_id => $slideshow_info) {
+            $is_compatible = 1;
+            // Check if every required accept value in the widget has a
+            // corresponding calls value in the slideshow.
+            foreach($widget_info['accepts'] as $accept_key => $accept_value) {
+              if (is_array($accept_value) && !empty($accept_value['required']) && !in_array($accept_key, $slideshow_info['calls'])) {
+                $is_compatible = 0;
+                break;
+              }
+            }
+
+            // No need to go through this if it's not compatible.
+            if ($is_compatible) {
+              // Check if every required calls value in the widget has a
+              // corresponding accepts call.
+              foreach($widget_info['calls'] as $calls_key => $calls_value) {
+                if (is_array($calls_value) && !empty($calls_value['required']) && !in_array($calls_key, $slideshow_info['accepts'])) {
+                  $is_compatible = 0;
+                  break;
+                }
+              }
+            }
+
+            // If it passed all those tests then they are compatible.
+            if ($is_compatible) {
+              $compatible_slideshows[] = $slideshow_id;
+            }
+          }
+
+          // Use Widget Checkbox
+          $form['widgets'][$location_id][$widget_id]['enable'] = array(
+            '#type' => 'checkbox',
+            '#title' => t($widget_info['name']),
+            '#default_value' => $this->options['widgets'][$location_id][$widget_id]['enable'],
+            '#description' => t('Should !name be rendered at the !location of the slides.', array('!name' => $widget_info['name'], '!location' => $location_name)),
+          );
+
+          $form['widgets'][$location_id][$widget_id]['enable']['#dependency']['edit-style-options-slideshow-type'] = !empty($compatible_slideshows) ? $compatible_slideshows : array('none');
+
+          // Need to wrap this so it indents correctly.
+          $form['widgets'][$location_id][$widget_id]['wrapper'] = array(
+            '#markup' => '<div class="vs-dependent">',
+          );
+
+          // Widget weight
+          // We check to see if the default value is greater than the number of
+          // widgets just in case a widget has been removed and the form hasn't
+          // hasn't been saved again.
+          $form['widgets'][$location_id][$widget_id]['weight'] = array(
+            '#type' => 'select',
+            '#title' => t('Weight of the !name', array('!name' => $widget_info['name'])),
+            '#default_value' => ($this->options['widgets'][$location_id][$widget_id]['weight'] > count($widgets)) ? count($widgets) : $this->options['widgets'][$location_id][$widget_id]['weight'],
+            '#options' => $weights,
+            '#description' => t('Determines in what order the !name appears.  A lower weight will cause the !name to be above higher weight items.', array('!name' => $widget_info['name'])),
+            '#prefix' => '<div class="vs-dependent">',
+            '#suffix' => '</div>',
+            '#states' => array(
+              'visible' => array(
+                ':input[name="style_options[widgets][' . $location_id . '][' . $widget_id . '][enable]"]' => array('checked' => TRUE),
+              ),
+            ),
+          );
+
+          // Add all the widget settings.
+          if (function_exists($widget_id . '_views_slideshow_widget_form_options')) {
+            $arguments = array(
+              &$form['widgets'][$location_id][$widget_id],
+              &$form_state,
+              &$this,
+              $this->options['widgets'][$location_id][$widget_id],
+              $widget_dependency,
+            );
+            call_user_func_array($widget_id . '_views_slideshow_widget_form_options', $arguments);
+          }
+
+          $form['widgets'][$location_id][$widget_id]['wrapper_close'] = array(
+            '#markup' => '</div>',
+          );
+        }
+      }
+    }
+
+    $form['views_slideshow_wrapper_close'] = array(
+      '#markup' => '</div>',
+    );
+  }
+
+  // Run any validation on the form settings.
+  function options_validate(&$form, &$form_state) {
+    module_load_all_includes('views_slideshow.inc');
+
+    $arguments = array(
+      &$form,
+      &$form_state,
+      &$this,
+    );
+
+    // Call all modules that use hook_views_slideshow_options_form_validate
+    foreach (module_implements('views_slideshow_options_form_validate') as $module) {
+      $function = $module . '_views_slideshow_options_form_validate';
+      call_user_func_array($function, $arguments);
+    }
+  }
+
+  // Run any necessary actions on submit.
+  function options_submit(&$form, &$form_state) {
+    module_load_all_includes('views_slideshow.inc');
+
+    $arguments = array(
+      $form,
+      &$form_state,
+    );
+
+    // Call all modules that use hook_views_slideshow_options_form_submit
+    foreach (module_implements('views_slideshow_options_form_submit') as $module) {
+      $function = $module . '_views_slideshow_options_form_submit';
+      call_user_func_array($function, $arguments);
+    }
+
+    // In addition to the skin, we also pre-save the definition that
+    // correspond to it.  That lets us avoid a hook lookup on every page.
+    $skins = $this->views_slideshow_get_skins();
+    $form_state['values']['style_options']['skin_info'] = $skins[$form_state['values']['style_options']['slideshow_skin']];
+  }
+
+  /**
+   * Retrieve a list of all available skins in the system.
+   */
+  function views_slideshow_get_skins() {
+    static $skins;
+
+    if (empty($skins)) {
+      $skins = array();
+
+      // Call all modules that use hook_views_slideshow_skin_info
+      foreach (module_implements('views_slideshow_skin_info') as $module) {
+        $skin_items = call_user_func($module . '_views_slideshow_skin_info');
+        if (isset($skin_items) && is_array($skin_items)) {
+          foreach (array_keys($skin_items) as $skin) {
+            // Ensure that the definition is complete, so we don't need lots
+            // of error checking later.
+            $skin_items[$skin] += array(
+              'class' => 'default',
+              'name' => t('Untitled skin'),
+              'module' => $module,
+              'path' => '',
+              'stylesheets' => array(),
+            );
+          }
+          $skins = array_merge($skins, $skin_items);
+        }
+      }
+    }
+
+    return $skins;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,339 @@
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                            Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+                    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+                            NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <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 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/README-FIRST.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,91 @@
+WHERE TO START
+--------------
+
+Yay! You opened the correct file first. The first thing that people notice when
+they download the Zen theme is that there are A LOT of files -- way more than
+other themes.
+
+Don't worry! You don't need to learn everything all at once in order to make a
+Drupal theme. Zen will do the bits you haven't learned and patiently wait for
+you to discover the documentation and inline comments about them.
+
+
+WHAT ARE BASE THEMES, SUB-THEMES AND STARTER THEMES?
+----------------------------------------------------
+
+Often the best way to learn a system is to take an existing example and modify
+it to see how it works. One big disadvantage of this learning method is that if
+you break something and the original example worked before you hacked it,
+there's very little incentive for others to help you.
+
+Drupal's theming system has a solution to this problem: parent themes and
+sub-themes. A "sub-theme" will inherit all its HTML markup, CSS, and PHP code
+from its "parent theme" (also called a "base theme".) And with Drupal themes,
+it's easy for a sub-theme to override just the parts of the parent theme it
+wants to modify.
+
+A "starter theme" is a sub-theme designed specifically to be a good starting
+point for developing a custom theme for your website. It is usually paired with
+a base theme.
+
+So how do you create a theme with Zen?
+
+The Zen theme includes the Zen base theme as well as a starter theme called
+"STARTERKIT". You shouldn't modify any of the CSS or PHP files in the zen/
+folder; but instead you should create a sub-theme of zen and put it in a folder
+outside of the root zen/ folder.
+
+
+SUGGESTED READING
+-----------------
+
+Installation
+  If you don't know how to install a Drupal theme, there is a quick primer later
+  in this document.
+
+Building a theme with Zen
+  See the STARTERKIT/README.txt file for full instructions.
+
+Theme .info file
+  Your sub-theme's .info file holds the basic information about your theme that
+  Drupal needs to know: its name, description, features, template regions, CSS
+  files, and JavaScript. Don't worry about all these lines just yet.
+
+CSS
+  Once you have created your sub-theme, look at the README.txt in your
+  sub-theme's css folder. Don't freak out about all the files in this directory;
+  just read the README.txt file for an explanation.
+
+Templates
+  Now take a look at the README.txt in your sub-theme's templates folder.
+
+
+ONLINE READING
+--------------
+
+Full documentation on the Zen theme can be found in Drupal's Handbook:
+  https://drupal.org/documentation/theme/zen
+
+Excellent documentation on Drupal theming can be found in the Theme Guide:
+  https://drupal.org/theme-guide
+
+
+INSTALLATION
+------------
+
+ 1. Download Zen from https://drupal.org/project/zen
+
+ 2. Unpack the downloaded file, take the entire zen folder and place it in your
+    Drupal installation under sites/all/themes. (Additional installation folders
+    can be used; see https://drupal.org/getting-started/install-contrib/themes
+    for more information.)
+
+    For more information about acceptable theme installation directories, read
+    the sites/default/default.settings.php file in your Drupal installation.
+
+ 3. Log in as an administrator on your Drupal site and go to the Appearance page
+    at admin/appearance. You will see the Zen theme listed under the Disabled
+    Themes heading with links on how to create your own sub-theme. You can
+    optionally make Zen the default theme.
+
+ 4. Now build your own sub-theme by reading the STARTERKIT/README.txt file.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,131 @@
+BUILD A THEME WITH ZEN
+----------------------
+
+The base Zen theme is designed to be easily extended by its sub-themes. You
+shouldn't modify any of the CSS or PHP files in the zen/ folder; but instead you
+should create a sub-theme of zen which is located in a folder outside of the
+root zen/ folder. The examples below assume zen and your sub-theme will be
+installed in sites/all/themes/, but any valid theme directory is acceptable
+(read the sites/default/default.settings.php for more info.)
+
+  Why? To learn why you shouldn't modify any of the files in the zen/ folder,
+  see https://drupal.org/node/245802
+
+
+*** IMPORTANT NOTE ***
+*
+* In Drupal 7, the theme system caches which template files and which theme
+* functions should be called. This means that if you add a new theme,
+* preprocess or process function to your template.php file or add a new template
+* (.tpl.php) file to your sub-theme, you will need to rebuild the "theme
+* registry." See https://drupal.org/node/173880#theme-registry
+*
+* Drupal 7 also stores a cache of the data in .info files. If you modify any
+* lines in your sub-theme's .info file, you MUST refresh Drupal 7's cache by
+* simply visiting the Appearance page at admin/appearance.
+*
+
+
+ 1. Setup the location for your new sub-theme.
+
+    Copy the STARTERKIT folder out of the zen/ folder and rename it to be your
+    new sub-theme. IMPORTANT: The name of your sub-theme must start with an
+    alphabetic character and can only contain lowercase letters, numbers and
+    underscores.
+
+    For example, copy the sites/all/themes/zen/STARTERKIT folder and rename it
+    as sites/all/themes/foo.
+
+      Why? Each theme should reside in its own folder. To make it easier to
+      upgrade Zen, sub-themes should reside in a folder separate from the base
+      theme.
+
+ 2. Setup the basic information for your sub-theme.
+
+    In your new sub-theme folder, rename the STARTERKIT.info.txt file to include
+    the name of your new sub-theme and remove the ".txt" extension. Then edit
+    the .info file by editing the name and description field.
+
+    For example, rename the foo/STARTERKIT.info file to foo/foo.info. Edit the
+    foo.info file and change "name = Zen Sub-theme Starter Kit" to "name = Foo"
+    and "description = Read..." to "description = A Zen sub-theme".
+
+      Why? The .info file describes the basic things about your theme: its
+      name, description, features, template regions, CSS files, and JavaScript
+      files. See the Drupal 7 Theme Guide for more info:
+      https://drupal.org/node/171205
+
+    Then, visit your site's Appearance page at admin/appearance to refresh
+    Drupal 7's cache of .info file data.
+
+ 3. Choose your preferred page layout method or grid system.
+
+    By default your new sub-theme is using a responsive layout. If you want a
+    fixed layout for your theme, delete the unneeded "responsive" and
+    "responsive-rtl" css/sass files and edit your sub-theme's styles.css
+    or styles.scss file and replace the reference to "responsive" with
+    "fixed".
+
+    For example, edit foo/sass/styles.scss and change this line:
+      @import "layouts/responsive";
+    to:
+      @import "layouts/fixed";
+
+    Alternatively, if you are more familiar with a different CSS layout method,
+    such as GridSetApp or 960.gs, etc., you can replace the
+    "layouts/responsive" line in your styles.scss file with a line
+    pointing at your choice of layout CSS file.
+
+    Then, visit your site's Appearance page at admin/appearance to refresh
+    Drupal 7's theme cache.
+
+ 4. Edit your sub-theme to use the proper function names.
+
+    Edit the template.php and theme-settings.php files in your sub-theme's
+    folder; replace ALL occurrences of "STARTERKIT" with the name of your
+    sub-theme.
+
+    For example, edit foo/template.php and foo/theme-settings.php and replace
+    every occurrence of "STARTERKIT" with "foo".
+
+    It is recommended to use a text editing application with search and
+    "replace all" functionality.
+
+ 5. Set your website's default theme.
+
+    Log in as an administrator on your Drupal site, go to the Appearance page at
+    admin/appearance and click the "Enable and set default" link next to your
+    new sub-theme.
+
+
+Optional steps:
+
+ 6. Modify the markup in Zen core's template files.
+
+    If you decide you want to modify any of the .tpl.php template files in the
+    zen folder, copy them to your sub-theme's folder before making any changes.
+    And then rebuild the theme registry.
+
+    For example, copy zen/templates/page.tpl.php to foo/templates/page.tpl.php.
+
+ 7. Modify the markup in Drupal's search form.
+
+    Copy the search-block-form.tpl.php template file from the modules/search/
+    folder and place it in your sub-theme's template folder. And then rebuild
+    the theme registry.
+
+    You can find a full list of Drupal templates that you can override in the
+    templates/README.txt file or https://drupal.org/node/190815
+
+      Why? In Drupal 7 theming, if you want to modify a template included by a
+      module, you should copy the template file from the module's directory to
+      your sub-theme's template directory and then rebuild the theme registry.
+      See the Drupal 7 Theme Guide for more info: https://drupal.org/node/173880
+
+ 8. Further extend your sub-theme.
+
+    Discover further ways to extend your sub-theme by reading Zen's
+    documentation online at:
+      https://drupal.org/documentation/theme/zen
+    and Drupal 7's Theme Guide online at:
+      https://drupal.org/theme-guide
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/STARTERKIT.info.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,147 @@
+; Drupal's .info files allow themers to easily specify some of the static
+; properties of your theme. Properties such as its name, stylesheets,
+; javascripts, and block regions.
+;
+; Drupal 7 stores a cache of the data in this .info files. If you modify any
+; lines in this file, you MUST refresh Drupal 7's cache by simply visiting the
+; Appearance page at admin/appearance.
+
+
+
+; The name, description and screenshot used for this theme on the Appearance
+; page at admin/appearance.
+
+screenshot  = screenshot.png
+name        = Zen Sub-theme Starter Kit
+description = Read the <a href="https://drupal.org/node/873778">online docs</a> or the included README.txt on how to create a theme with Zen.
+
+
+
+; This theme is compatible with Drupal 7 core. And it is a sub-theme of Zen.
+
+core        = 7.x
+base theme  = zen
+
+
+
+; This section controls the CSS files for your theme. There are 3 different
+; things you can do with a "stylesheets" line:
+; - Add a new stylesheet for your theme.
+; - Override a module's stylesheet. If the stylesheet you are adding uses the
+;   same filename as a stylesheet from a Drupal core or contrib module, your CSS
+;   file will be used instead of the module's file.
+; - Remove a module's stylesheet. If you specify the name of a Drupal core or
+;   contrib module's stylesheets, Drupal will remove that stylesheet if you do
+;   NOT include a file with that name with your theme.
+;
+; stylesheets[MEDIA][] = FILE
+;
+; The "FILE" is the name of the stylesheet to add/override/remove.
+; The "MEDIA" in the first set of brackets is a media type or a media query.
+; Typical CSS media types include "all", "screen", "print", and "handheld". A
+; typical media query is "screen and (max-width: 320px)".
+;
+; CSS2.1 media types: http://www.w3.org/TR/CSS21/media.html#media-types
+; CSS3 media queries: http://www.w3.org/TR/css3-mediaqueries/
+
+; First we remove the system's menu and message styling since Zen has its own.
+stylesheets[all][] = system.menus.css
+stylesheets[all][] = system.messages.css
+stylesheets[all][] = system.theme.css
+
+; Then we add our own stylesheet.
+stylesheets[all][] = css/styles.css
+
+; Built-in conditional stylesheet support has been removed from Zen 7.x-5.x.
+; Instead, Zen now adds conditional-comment-included classes to the html
+; element, such as .lt-ie9, .lt-ie8, .lt-ie7. More information on this
+; technique can be found at:
+; http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
+;
+; If you still wish to use conditional stylesheets, you must install the
+; conditional stylesheets module: https://drupal.org/project/conditional_styles
+;stylesheets-conditional[lte IE 8][all][] = css/ie8.css
+
+
+
+; Optionally add some JavaScripts to your theme.
+
+;scripts[] = js/script.js
+
+
+
+; This section lists the regions defined in Zen's default page.tpl.php and
+; maintenance-page.tpl.php files. The name in brackets is the machine name of
+; the region. The text after the equals sign is a descriptive text used on the
+; admin/structure/blocks page.
+;
+; In the page.tpl, the contents of the region are output with a
+; $page['MACHINE-NAME'] variable and, in the maintenance-page.tpl, the region is
+; output with a $MACHINE-NAME variable. For example, with this line in the .info
+; file:
+;   regions[header_top] = Header top
+; You'll use this variable in page.tpl.php:
+;   <?php print render($page['header_top']); ?>
+; And you'll use this variable in maintenance-page.tpl.php:
+;   <?php print $header_top; ?>
+
+regions[header]         = Header
+regions[navigation]     = Navigation bar
+regions[highlighted]    = Highlighted
+regions[help]           = Help
+regions[content]        = Content
+regions[sidebar_first]  = First sidebar
+regions[sidebar_second] = Second sidebar
+regions[footer]         = Footer
+regions[bottom]         = Page bottom
+
+; The page_top and page_bottom regions are hidden, which means they will not
+; show up on the blocks administration page. But they are required in order for
+; the html.tpl.php to work properly, so do not delete them.
+
+regions[page_top]       = Page top
+regions[page_bottom]    = Page bottom
+
+
+
+; Various page elements output by the theme can be toggled on and off. The
+; "features" control which of these check boxes display on the
+; admin/appearance config page. This is useful for suppressing check boxes
+; for elements not used by your sub-theme. To suppress a check box, omit the
+; entry for it below. See the Drupal 7 Theme Guide for more info:
+; https://drupal.org/node/171205#features
+
+features[] = logo
+features[] = name
+features[] = slogan
+features[] = node_user_picture
+features[] = comment_user_picture
+features[] = favicon
+features[] = main_menu
+features[] = secondary_menu
+
+
+
+; Set the default values of settings on the theme-settings.php form.
+
+settings[zen_breadcrumb]           = yes
+settings[zen_breadcrumb_separator] = ' › '
+settings[zen_breadcrumb_home]      = 1
+settings[zen_breadcrumb_trailing]  = 0
+settings[zen_breadcrumb_title]     = 0
+settings[zen_skip_link_anchor]     = main-menu
+settings[zen_skip_link_text]       = Jump to navigation
+settings[zen_html5_respond_meta][] = respond
+settings[zen_html5_respond_meta][] = html5
+settings[zen_html5_respond_meta][] = meta
+settings[zen_rebuild_registry]     = 1
+settings[zen_wireframes]           = 0
+
+; To make this sub-theme an admin theme with shortcut links next to titles,
+; uncomment the line below.
+
+;settings[shortcut_module_link]    = 1
+
+; To add a Panels layout (which can also be used by Display Suite), uncomment
+; the line below and see the documentation at: https://drupal.org/node/495654
+;plugins[panels][layouts] = panels-layouts
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/config.rb	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,56 @@
+#
+# This file is only needed for Compass/Sass integration. If you are not using
+# Compass, you may safely ignore or delete this file.
+#
+# If you'd like to learn more about Sass and Compass, see the sass/README.txt
+# file for more information.
+#
+
+
+# Change this to :production when ready to deploy the CSS to the live server.
+environment = :development
+#environment = :production
+
+# In development, we can turn on the FireSass-compatible debug_info.
+firesass = false
+#firesass = true
+
+
+# Location of the theme's resources.
+css_dir         = "css"
+sass_dir        = "sass"
+extensions_dir  = "sass-extensions"
+images_dir      = "images"
+javascripts_dir = "js"
+
+
+# Require any additional compass plugins installed on your system.
+#require 'ninesixty'
+#require 'zen-grids'
+
+# Assuming this theme is in sites/*/themes/THEMENAME, you can add the partials
+# included with a module by uncommenting and modifying one of the lines below:
+#add_import_path "../../../default/modules/FOO"
+#add_import_path "../../../all/modules/FOO"
+#add_import_path "../../../../modules/FOO"
+
+
+##
+## You probably don't need to edit anything below this.
+##
+
+# You can select your preferred output style here (can be overridden via the command line):
+# output_style = :expanded or :nested or :compact or :compressed
+output_style = (environment == :development) ? :expanded : :compressed
+
+# To enable relative paths to assets via compass helper functions. Since Drupal
+# themes can be installed in multiple locations, we don't need to worry about
+# the absolute path to the theme from the server root.
+relative_assets = true
+
+# To disable debugging comments that display the original location of your selectors. Uncomment:
+# line_comments = false
+
+# Pass options to sass. For development, we turn on the FireSass-compatible
+# debug_info if the firesass config variable above is true.
+sass_options = (environment == :development && firesass == true) ? {:debug_info => true} : {}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,154 @@
+ZEN'S STYLESHEETS
+-----------------
+
+Don't panic!
+
+There are 11 CSS files in this sub-theme, but it's not as bad as it first seems:
+- There are 5 CSS files whose names end in "-rtl.css". Those are CSS files
+  needed to style content written in Right-to-Left languages, such as Arabic and
+  Hebrew. If your website doesn't use such languages, you can safely delete all
+  of those CSS files.
+- There are 2 example layout stylesheets inside the "layouts" folder,
+  "responsive.css" and "fixed.css", but only one of them is used at any time.
+- One is just a print stylesheet!
+
+That leaves just 4 CSS files!
+- styles.css
+- normalize.css
+- layouts/responsive.css
+- components/misc.css
+
+Now go look in the styles.css file. That file simply includes (via @import) the
+other files. It also shows how the files in your sub-theme can be categorized
+with the SMACSS technique. http://smacss.com
+
+
+Why not just one stylesheet?
+
+- For performance reasons you should always have all of your CSS in a single
+  file to minimize the number of HTTP requests the user's browser needs to do.
+  Fortunately, Drupal has a "Aggregate and compress CSS" feature that will
+  automatically combine all the CSS files from its modules and themes into one
+  file. You can turn on that feature under "Bandwidth Optimization" on the page:
+    Administration > Configuration > Development > Performance
+  So Drupal allows us (if we want) to use more than one stylesheet file, but
+  still serves all the styles in one file to our users.
+- When developing a site using a single stylesheet, it can become unwieldy to
+  scroll and find the place you need to edit. As a deadline becomes imminent,
+  developers often start stuffing new styles at the bottom of the stylesheet,
+  completely destroying any stylesheet organization.
+- Instead of one monolithic stylesheet, Zen sub-themes' CSS files are organized
+  into several smaller stylesheets. Once you learn the organization (described
+  below) it becomes easier to find the right place to add new styles.
+- Stylesheets are added in the order specified in the styles.css file. The
+  default order of the stylesheets is designed to allow CSS authors to use the
+  lowest specificity possible to achieve the required styling, with more general
+  stylesheets being added first and more specific stylesheets added later.
+
+
+ORDER AND PURPOSE OF DEFAULT STYLESHEETS
+----------------------------------------
+
+First off, if you find you don't like this organization of stylesheets, you are
+free to change it; simply edit the @import declarations in your sub-theme's
+styles.css file. This structure was crafted based on several years of experience
+theming Drupal websites.
+
+- styles.css:
+  This is the only CSS file listed in your sub-theme's .info file. Its purpose
+  is to @include all the other stylesheets in your sub-theme. When CSS
+  aggregation is off, this file will be loaded by web browsers first before they
+  begin to load the @include'd stylesheets; this results in a delay to load all
+  the stylesheets, a serious front-end performance problem. However, it does
+  make it easy to debug your website during development. To remove this
+  performance problem, turn on Drupal's CSS aggregation after development is
+  completed. See the note above about "Bandwidth Optimization".
+
+- normalize.css:
+  This is the place where you should set the default styling for all HTML
+  elements and standardize the styling across browsers. If you prefer a specific
+  HTML reset method, feel free to use it instead of normalize; just make sure
+  you set all the styles for all HTML elements after you reset them. In SMACSS,
+  this file contains all the "base rules". http://smacss.com/book/type-base
+
+- layouts/responsive.css:
+  Zen's default layout is based on the Zen Grids layout method. Despite the
+  name, it is an independent project from the Zen theme. Zen Grids is an
+  intuitive, flexible grid system that leverages the natural source order of
+  your content to make it easier to create fluid responsive designs. You can
+  learn more about Zen Grids at http://zengrids.com
+
+  The responsive.css file is used by default, but these files are
+  designed to be easily replaced. If you are more familiar with a different CSS
+  layout method, such as GridSetApp, 960.gs, etc., you can replace the default
+  layout with your choice of layout CSS file.
+
+  In SMACSS, this file contains the "layout rules".
+  http://smacss.com/book/type-layout
+
+- layouts/fixed.css:
+  This layout is based on the Zen Grids layout method, but uses a fixed pixel
+  width. It is not included by default in your theme's .info file, but is
+  provided as an option.
+
+  In SMACSS, this file contains the "layout rules".
+  http://smacss.com/book/type-layout
+
+- components/misc.css:
+  This file contains some common component styles needed for Drupal, such as:
+  - Tabs: contains actual styling for Drupal tabs, a common Drupal element that
+    is often neglected by site designers. Zen provides some basic styling which
+    you are free to use or to rip out and replace.
+  - Various page elements: page styling for the markup in page.tpl.php.
+  - Blocks: styling for the markup in block.tpl.php.
+  - Menus: styling for your site's menus.
+  - Comments: styling for the markup in comment-wrapper.tpl.php and
+    comments.tpl.php.
+  - forms: styling for the markup in various Drupal forms.
+  - fields: styling for the markup produced by theme_field().
+
+  In SMACSS, this file contains "module rules". You can add additional files
+  if you'd like to further refine your stylesheet organization. Just add them
+  to the styles.css file. http://smacss.com/book/type-layout
+
+- print.css:
+  The print styles for all markup.
+
+  In SMACSS, this file contains a media query state that overrides modular
+  styles. This means it most closely related to "module rules".
+  http://smacss.com/book/type-module
+
+In these stylesheets, we have included just the classes and IDs needed to apply
+a minimum amount of styling. To learn many more useful Drupal core selectors,
+check Zen's online documentation: https://drupal.org/node/1707736
+
+
+STYLES FOR INTERNET EXPLORER
+----------------------------
+
+Zen allows IE-specific styles using a method first described by Paul Irish at:
+http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/
+
+If you look at Zen's templates/html.tpl.php file, you will see the HTML tag that
+will be used by your site. Using Microsoft's conditional comment syntax,
+different HTML tags will be used for different versions of Internet Explorer.
+
+For example, IE6 will see the HTML tag that has these classes: lt-ie7 lt-ie8
+lt-ie9. If you need to write an IE6-specific rule, you can simply prefix the
+selector with ".lt-ie7 " (should be read as "less than IE 7"). To write a rule
+that applies to both IE6 and IE7, use ".lt-ie8 ":
+  .someRule { /* Styles for all browsers */ }
+  .lt-ie8 .someRule { /* Styles for IE6 and IE7 only. */ }
+
+Many CSS authors prefer using IE "conditional stylesheets", which are
+stylesheets added via conditional comments. If you would prefer that method, you
+should check out the Conditional Stylesheets module:
+https://drupal.org/project/conditional_styles
+
+
+DRUPAL CORE'S STYLESHEETS
+-------------------------
+
+Note: Many of Zen's styles are overriding Drupal's core stylesheets, so if you
+remove a declaration from them, the styles may still not be what you want since
+Drupal's core stylesheets are still styling the element.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/components/misc-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,142 @@
+/**
+ * @file
+ * RTL companion for the modular-styles.css file.
+ */
+
+/**
+ * Branding header.
+ */
+
+/* Wrapping link for logo. */
+.header__logo {
+  float: right;
+}
+
+/* The secondary menu (login, etc.) */
+.header__secondary-menu {
+  float: left;
+}
+
+/**
+ * Navigation bar.
+ */
+
+/* Main menu and secondary menu links and menu block links. */
+#navigation .links,
+#navigation .menu {
+  text-align: right;
+}
+#navigation .links li,
+#navigation .menu li {
+  /* A simple method to get navigation links to appear in one line. */
+  float: right;
+  padding: 0 0 0 10px;
+}
+
+/**
+ * Messages.
+ */
+.messages,
+.messages--status,
+.messages--warning,
+.messages--error {
+  padding: 10px 50px 10px 10px;
+  background-position: 99% 8px;
+}
+
+/**
+ * Tabs.
+ */
+.tabs-primary__tab,
+.tabs-secondary__tab,
+.tabs-secondary__tab.is-active {
+  float: right;
+}
+
+/**
+ * Inline styles.
+ */
+
+/* List of links */
+.inline li {
+  /* Bug in Safari causes display: inline to fail. */
+  display: inline-block;
+  padding: 0 0 0 1em;
+}
+
+/* The inline field label used by the Fences.module */
+span.field-label {
+  padding: 0 0 0 1em;
+}
+
+/**
+ * "More" links.
+ */
+.more-link {
+  text-align: left;
+}
+.more-help-link {
+  text-align: left;
+}
+.more-help-link a {
+  background-position: 100% 50%;
+  padding: 1px 20px 1px 0;
+}
+
+/**
+ * Menus.
+ */
+.menu__item.is-collapsed {
+  list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
+  *list-style-image: url('../../images/menu-collapsed-rtl.png');
+}
+
+/**
+ * Comments.
+ */
+
+/* Nested comments are indented. */
+.indented {
+  margin-left: 0;
+  margin-right: 30px;
+}
+
+/**
+ * Forms.
+ */
+
+/* Drupal's default login form block */
+#user-login-form {
+  text-align: right;
+}
+html.js #user-login-form li.openid-link,
+#user-login-form li.openid-link {
+  /* Un-do some of the padding on the ul list. */
+  margin-left: 0;
+  margin-right: -20px;
+}
+
+/*
+ * Drupal admin tables.
+ */
+form th {
+  text-align: right;
+  padding-left: 1em;
+  padding-right: 0;
+}
+
+/**
+ * Collapsible fieldsets.
+ *
+ * @see collapse.js
+ */
+html.js .collapsible .fieldset-legend {
+  background-position: 98% 75%;
+  padding-left: 0;
+  padding-right: 15px;
+}
+html.js .collapsed .fieldset-legend {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');
+  *background-image: url('../../images/menu-collapsed-rtl.png');
+  background-position: 98% 50%;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/components/misc.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,758 @@
+/**
+ * @file
+ * SMACSS Modules
+ *
+ * Adds modular sets of styles.
+ *
+ * Additional useful selectors can be found in Zen's online documentation.
+ * https://drupal.org/node/1707736
+ */
+
+/**
+ * Wireframes.
+ */
+.with-wireframes #header,
+.with-wireframes #main,
+.with-wireframes #content,
+.with-wireframes #navigation,
+.with-wireframes .region-sidebar-first,
+.with-wireframes .region-sidebar-second,
+.with-wireframes #footer,
+.with-wireframes .region-bottom {
+  outline: 1px solid #ccc;
+}
+.lt-ie8 .with-wireframes #header,
+.lt-ie8 .with-wireframes #main,
+.lt-ie8 .with-wireframes #content,
+.lt-ie8 .with-wireframes #navigation,
+.lt-ie8 .with-wireframes .region-sidebar-first,
+.lt-ie8 .with-wireframes .region-sidebar-second,
+.lt-ie8 .with-wireframes #footer,
+.lt-ie8 .with-wireframes .region-bottom {
+  /* IE6/7 do not support the outline property. */
+  border: 1px solid #ccc;
+}
+
+/**
+ * Accessibility features.
+ */
+
+/* element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
+.element-invisible,
+.element-focusable,
+#navigation .block-menu .block__title,
+#navigation .block-menu-block .block__title {
+  position: absolute !important;
+  height: 1px;
+  width: 1px;
+  overflow: hidden;
+  clip: rect(1px 1px 1px 1px);
+  clip: rect(1px, 1px, 1px, 1px);
+}
+
+/* Turns off the element-invisible effect. */
+.element-focusable:active,
+.element-focusable:focus {
+  position: static !important;
+  clip: auto;
+  height: auto;
+  width: auto;
+  overflow: auto;
+}
+
+/*
+ * The skip-link link will be completely hidden until a user tabs to the link.
+ */
+#skip-link {
+  margin: 0;
+}
+#skip-link a,
+#skip-link a:visited {
+  display: block;
+  width: 100%;
+  padding: 2px 0 3px 0;
+  text-align: center;
+  background-color: #666;
+  color: #fff;
+}
+
+/**
+ * Branding header.
+ */
+
+/* Wrapping link for logo. */
+.header__logo {
+  float: left; /* LTR */
+  margin: 0;
+  padding: 0;
+}
+
+/* Logo image. */
+.header__logo-image {
+  vertical-align: bottom;
+}
+
+/* Wrapper for website name and slogan. */
+.header__name-and-slogan {
+  float: left;
+}
+
+/* The name of the website. */
+.header__site-name {
+  margin: 0;
+  font-size: 2em;
+  line-height: 1.5em;
+}
+
+/* The link around the name of the website. */
+.header__site-link:link,
+.header__site-link:visited {
+  color: #000;
+  text-decoration: none;
+}
+.header__site-link:hover,
+.header__site-link:focus {
+  text-decoration: underline;
+}
+
+/* The slogan (or tagline) of a website. */
+.header__site-slogan {
+  margin: 0;
+}
+
+/* The secondary menu (login, etc.) */
+.header__secondary-menu {
+  float: right; /* LTR */
+}
+
+/* Wrapper for any blocks placed in the header region. */
+.header__region {
+  /* Clear the logo. */
+  clear: both;
+}
+
+/**
+ * Navigation bar.
+ */
+#navigation {
+  /* Sometimes you want to prevent overlapping with main div. */
+  /* overflow: hidden; */
+}
+#navigation .block {
+  margin-bottom: 0;
+}
+
+/* Main menu and secondary menu links and menu block links. */
+#navigation .links,
+#navigation .menu {
+  margin: 0;
+  padding: 0;
+  text-align: left; /* LTR */
+}
+#navigation .links li,
+#navigation .menu li {
+  /* A simple method to get navigation links to appear in one line. */
+  float: left; /* LTR */
+  padding: 0 10px 0 0; /* LTR */
+  list-style-type: none;
+  list-style-image: none;
+}
+
+/**
+ * Breadcrumb navigation.
+ */
+.breadcrumb ol {
+  margin: 0;
+  padding: 0;
+}
+.breadcrumb li {
+  display: inline;
+  list-style-type: none;
+  margin: 0;
+  padding: 0;
+}
+
+/**
+ * Titles.
+ */
+.page__title,          /* The title of the page. */
+.node__title,          /* Title of a piece of content when it is given in a list of content. */
+.block__title,         /* Block title. */
+.comments__title,      /* Comment section heading. */
+.comments__form-title, /* Comment form heading. */
+.comment__title {      /* Comment title. */
+  margin: 0;
+}
+
+/**
+ * Messages.
+ */
+.messages,
+.messages--status,
+.messages--warning,
+.messages--error {
+  margin: 1.5em 0;
+  padding: 10px 10px 10px 50px; /* LTR */
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAD6UlEQVR42s2WX0xbVRzH3YwmC4k+GF/0ZS/S267/bmnX9nL7bwstZlnbjTDYyoC5GCbB0ZW5pdJCe6swbLFA6bpWIGuRMWVjKGP+21QW3SZBSAjGh4XEaTZTH82Cm/3ztS2xs7mw4KLRk3xyzj33/H6fe5Pz7zEA/yr/vUDukj9FH6drqTaqT8EoPs/UV+nX6TD1BlUh9AqLHlmgPKLcRHmoCOWmElK/FOKTYpS8UwLJkASiUyLI3pKhlClN0g46qj+qL/pbArlbrlO1q25JeiSgR2iYJ8ywXLSg/qP6LNl2ro8+Q4MMkKCd9K2t3q3KdQnkXXIF5aISkgEJzONm1F2qW52pDJN1MI2bUBIuAdVOJWSMTPNQgX6/vkjVpvpREpag6oMqWCYta1IzbsHh9ga0RJtzY8URMdRO9U/KSuWmNQUqh2pY3CtG+fvlqJyofMAFNrZAE+7e/RWR4X4cD9tgOGsA2U2CdtMDqwqyMyIzQ5KKqAKmcyaYxkzYd3YvjGNGFtXRPRj58DT+LOemRrFnrBLyITmUDmUyO/NYgu2d26ukHVJo3tXAMGpAs+cQmh0NeClan30uwN7TgnQ6nRd4r3thOGOAJqYB2UVC79AfZAnKHGUxQa8A2tNaNLW/jKvXv8Dyb8s4yryKA4O10A3roIvpUB+swTdz1/LJZ27PQBvT5lBH1RD4BChzlQ2wBNtc22aE/ULQgzRCl4P5BPcT93GMOYz9wb2QhCRgAq35d8u/L2PXe7tADVGgBlcQ+AXQtmlvsP/gzbJZvp8PMkJCFBYh8m0knyiVSsHe0YIGZz1+/uVOvt8z7QGvnwf+ST5EIRHIUyR4fh50rbp5lsDcYR4ReAXgBrng9q/Qfa0bfy035r7Ot2dvz4IX4IEIEAXwvDzscOw4zxJUd1YfEXlE4Aa4BQHMlwzSSBeI7iXvoTxWDqKPYCFsFaKmr+YVliB0JfS89DVpiuhlB9k/tSOZTuYFvq98yI7L0/MAsVWcGp0bfW61hbahwltxSeARsIKyWKesSKQSWIwvYkvvllwfx88pgOvhwthu/AzAxlVX8vz385tLbaVxwpcLZtEw0QDjsBGctzksiE4CimZFfHp++oWHbnbuUfdB0komMgHsRN1r0MWBsEmYODF5onY92/UTwcvBxuzXcN1ccHycVSn2FaPYWwzCQUDWKIt7z3utAJ5c74Hz+OLSomynY+cVfiM/xW3JiDyZpB3FuZrj4oCwE+Ad4qWMjPHjpTtL0mzMoxyZz9yM39Q7Y85Ok930icqm+k59TL2wm9l90dZv8y/8sPAigGf/iUN/Q4anM2zOsdLe+L+4VfwBVVjDs2rTYx0AAAAASUVORK5CYII=');
+  *background-image: url('../../images/message-24-ok.png');
+  background-position: 8px 8px; /* LTR */
+  background-repeat: no-repeat;
+  border: 1px solid #be7;
+}
+.messages--warning {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACuElEQVRIiWP4//8/Ay0xSYqntTpnT252zqeJBf0Njhsykrz/pyd6/e9vcNpGVQv6q2wlm0qc/r0+IPD/3UG+/61l9v9mdrjIUc2C7hqHUzc3S///eZwBjO9tF/vfWe1wjioWTKixVm8otPn38wQT3IKfxxn/t5Va/utpsNSg2ILWcttrNzdJgQ3+dpQRjEHs+9tE/zeXWt+gyILOamuTqlxrsOtPLub+7+emBsSq/88v5wL7oqHQ9H9nmbkF2RbUF1rev7lJEuziuU3i/90ddcB4UZsoJC62ifyvK7R4QJYFrcUGrmUZ5v9hYb9hosh/bzcDMN42VRgeF9W5hv8bi/XdSbagKtfs2c1NEvCIPbaQ/7+/pwkYn17Ki0hR24T/l2eZPCfJgsZ83dCiNOP/yCnn7iau/8G+5mD8aBsHSoqqyNL9X5erHUm0BcVpRm9ubhZHMoTh/4eDzP/DA23+RwTZ/P96hAlF7t5Wof8FyfpvibKgNk8noyDZ4D9quofg1Bjr/1kJlhjiIF+Upmn/r83RzCJoQXaC3qcbm8SwGMLwvybP/H8jMGlik7u7VeB/Zqz2J7wWVGdr1uTG62J1PQgfWST1/+hiCaxyIF8UJqv9r8hQrcVpQVqkzrcbG0WwGvB2H/P/lnx5MAaxsam5vYn3f2KY+jesFpSlqfZnxWjidP2OGWL/g/0swBjExu4Lhv958Ur/i5KU+lEsCA1lYI4JUv95bZ0gTo2Pt3P+z0myBmMQG5e6mxu4/kf4Kf8EmQm3oCRNebKrvSawIGPBqRG9sMOp5hjjfwdrlf/58bKT4RaUpWvtcLZV/39iscD/H0AFP46jYwYiMeP/44u4/9tbKQODSXUH3II9G7v18hI0n8YGKv+IDVT6joxj/BVx4mgcOCde/SnITPRUJAHEGlTCEkQV19TAAN8FC67hZdFXAAAAAElFTkSuQmCC');
+  *background-image: url('../../images/message-24-warning.png');
+  border-color: #ed5;
+}
+.messages--error {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACpElEQVR42rWWTUgbQRiGQ0Tx4MWDeFM8eBA9iKAoggiCoCiiIiL4L3oQV1CJB0UEf6iRYFpK7UniTw9VSqL2kvQsVDBpSZrtRo35czVNW3oprRf17exSl4yzu1ikAy9h59vvedhkMrMGAGoxknAk2w8MJ/WosXThiZkZt9jdLeglPjn5ATc3mhJNuNjbK0QbG3ExMICL/n6IfX0gcxB7ekDAELu6IHZ2IlJbi1hLS1BLogmPtbUhMTv7oMSamzUlqnByMxLT0/8STQkDj9TV4ZLj5OysrODl8jIu5Gs68dFR7JG6dWkJ0fFx+TpSX89IDMnwcHU1yKec12Yz3rlc4HkeLwjkXJpPip3U3+7vIx6P4ymph4eG5PlwTQ0lMdytlmBxMWKtrXLeT0zA5XTibvj9fjxfXETkb/3N/Dz2dneVuiTZtliU/rPSUsQ5ziuxZYG03IIlJdKKUPJjdRUAKMmzuTnskB/VYbdTtd9HR4g2NCi9Z2VliDY1BSnBaUEBzsrLqXyzWCiQ9HU5HA4afniIUFWV0hOqqMBpURErOM7NxWlhIZOvCwvA7S3Uxq+DA5AnZ3pO8vJYQSArC8c5Oeqx2Rj4udeLQH6+6v2B7GxW8DkjA0JmJpONwUHY7XZGIAgCzCYTeJUewmIFfqMRfEoKlQ2yJbza2oLWcLvdeDI2hk/3+iQWKzAYkJzNjg5srq9TwJ9OJ76YTNScx+ORJT66X1/grKyEbW2NgfPp6XKd/JMZySrHaQsSU1Oe+0/w3WpVgyu5HBlR6lc+H8gioevDwz6JrWwV5+3txyoSFk5DcOX1MnCyJ4Vwfb1zt1UY9SR8aioDpuppaVpwZbPTl+hHF04dOKzk8XBF8DgJC3/woU/W/EciOtELOWi8DDwp//215Q+p7kiKh2lQSAAAAABJRU5ErkJggg==');
+  *background-image: url('../../images/message-24-error.png');
+  border-color: #ed541d;
+}
+.messages__list {
+  margin: 0;
+}
+.messages__item {
+  list-style-image: none;
+}
+
+/* Core/module installation error messages. */
+.messages--error p.error {
+  color: #333;
+}
+
+/* System status report. */
+.ok,
+.messages--status {
+  background-color: #f8fff0;
+  color: #234600;
+}
+.warning,
+.messages--warning {
+  background-color: #fffce5;
+  color: #840;
+}
+.error,
+.messages--error {
+  background-color: #fef5f1;
+  color: #8c2e0b;
+}
+
+/**
+ * Tabs.
+ */
+
+/* Basic positioning styles shared by primary and secondary tabs. */
+.tabs-primary,
+.tabs-secondary {
+  overflow: hidden;
+  *zoom: 1;
+  background-image: -webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(100%, #bbbbbb), color-stop(100%, transparent));
+  background-image: -webkit-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
+  background-image: -moz-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
+  background-image: -o-linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
+  background-image: linear-gradient(bottom, #bbbbbb 1px, transparent 1px);
+  /* IE 9 and earlier don't understand gradients. */
+  list-style: none;
+  border-bottom: 1px solid #bbbbbb \0/ie;
+  margin: 1.5em 0;
+  padding: 0 2px;
+  white-space: nowrap;
+}
+.tabs-primary__tab,
+.tabs-secondary__tab,
+.tabs-secondary__tab.is-active {
+  float: left; /* LTR */
+  margin: 0 3px;
+}
+a.tabs-primary__tab-link,
+a.tabs-secondary__tab-link {
+  border: 1px solid #e9e9e9;
+  border-right: 0;
+  border-bottom: 0;
+  display: block;
+  line-height: 1.5em;
+  text-decoration: none;
+}
+
+/* Primary tabs. */
+.tabs-primary__tab,
+.tabs-primary__tab.is-active {
+  -moz-border-radius-topleft: 4px;
+  -webkit-border-top-left-radius: 4px;
+  border-top-left-radius: 4px;
+  -moz-border-radius-topright: 4px;
+  -webkit-border-top-right-radius: 4px;
+  border-top-right-radius: 4px;
+  text-shadow: 1px 1px 0 white;
+  border: 1px solid #bbbbbb;
+  border-bottom-color: transparent;
+  /* IE 9 and earlier don't understand gradients. */
+  border-bottom: 0 \0/ie;
+}
+.is-active.tabs-primary__tab {
+  border-bottom-color: white;
+}
+a.tabs-primary__tab-link,
+a.tabs-primary__tab-link.is-active {
+  -moz-border-radius-topleft: 4px;
+  -webkit-border-top-left-radius: 4px;
+  border-top-left-radius: 4px;
+  -moz-border-radius-topright: 4px;
+  -webkit-border-top-right-radius: 4px;
+  border-top-right-radius: 4px;
+  -webkit-transition: background-color 0.3s;
+  -moz-transition: background-color 0.3s;
+  -o-transition: background-color 0.3s;
+  transition: background-color 0.3s;
+  color: #333;
+  background-color: #dedede;
+  letter-spacing: 1px;
+  padding: 0 1em;
+  text-align: center;
+}
+a.tabs-primary__tab-link:hover,
+a.tabs-primary__tab-link:focus {
+  background-color: #e9e9e9;
+  border-color: #f2f2f2;
+}
+a.tabs-primary__tab-link:active,
+a.tabs-primary__tab-link.is-active {
+  background-color: transparent;
+  *zoom: 1;
+  filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#00E9E9E9');
+  background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, rgba(233, 233, 233, 0)));
+  background-image: -webkit-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
+  background-image: -moz-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
+  background-image: -o-linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
+  background-image: linear-gradient(#e9e9e9, rgba(233, 233, 233, 0));
+  border-color: #fff;
+}
+
+/* Secondary tabs. */
+.tabs-secondary {
+  font-size: .9em;
+  /* Collapse bottom margin of ul.primary. */
+  margin-top: -1.5em;
+}
+.tabs-secondary__tab,
+.tabs-secondary__tab.is-active {
+  margin: 0.75em 3px;
+}
+a.tabs-secondary__tab-link,
+a.tabs-secondary__tab-link.is-active {
+  -webkit-border-radius: 0.75em;
+  -moz-border-radius: 0.75em;
+  -ms-border-radius: 0.75em;
+  -o-border-radius: 0.75em;
+  border-radius: 0.75em;
+  -webkit-transition: background-color 0.3s;
+  -moz-transition: background-color 0.3s;
+  -o-transition: background-color 0.3s;
+  transition: background-color 0.3s;
+  text-shadow: 1px 1px 0 white;
+  background-color: #f2f2f2;
+  color: #666;
+  padding: 0 .5em;
+}
+a.tabs-secondary__tab-link:hover,
+a.tabs-secondary__tab-link:focus {
+  background-color: #dedede;
+  border-color: #999;
+  color: #333;
+}
+a.tabs-secondary__tab-link:active,
+a.tabs-secondary__tab-link.is-active {
+  text-shadow: 1px 1px 0 #333333;
+  background-color: #666;
+  border-color: #000;
+  color: #fff;
+}
+
+/**
+ * Inline styles.
+ */
+
+/* List of links generated by theme_links(). */
+.inline {
+  display: inline;
+  padding: 0;
+}
+.inline li {
+  display: inline;
+  list-style-type: none;
+  padding: 0 1em 0 0; /* LTR */
+}
+
+/* The inline field label used by the Fences module. */
+span.field-label {
+  padding: 0 1em 0 0; /* LTR */
+}
+
+/**
+ * "More" links.
+ */
+.more-link {
+  text-align: right; /* LTR */
+}
+.more-help-link {
+  text-align: right; /* LTR */
+}
+.more-help-link a {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7UlEQVR42qWTPQqDQBCFcwSPkCNITpAj5AjeIm1uYpkyR7Cy2Mot7OwsBAsRwUKwmOwLGRle3EIy8PyBfZ/z3J2TiPylz8VWWZZpUB40BonRKyizaxkA88MYYiqCEgv4MTvnZJom0VqWRbz3FlJZgLYtqmEY1Lg9r+sKsIXcLSC3AC019H0vqLquLeC5AfiHYSGkcdAJimKIBQiJ4+CO92OAtm0FNc8zOjkMwE5Q63FAtbeg6zpAYvG8BWR7i5qmQYwY4MIHqYhE2DOPQWcGJBQF2XU72ZzyUeZ5GCNt5/hybJgYdAXsq5sOEE/jG6dC5IOqCXTmAAAAAElFTkSuQmCC');
+  *background-image: url('../../images/help.png');
+  background-position: 0 50%; /* LTR */
+  background-repeat: no-repeat;
+  padding: 1px 0 1px 20px; /* LTR */
+}
+
+/**
+ * Pager.
+ */
+
+/* A list of page numbers when more than 1 page of content is available. */
+.pager {
+  clear: both;
+  padding: 0;
+  text-align: center;
+}
+
+.pager-item,     /* A list item containing a page number in the list of pages. */
+.pager-first,    /* The first page's list item. */
+.pager-previous, /* The previous page's list item. */
+.pager-next,     /* The next page's list item. */
+.pager-last,     /* The last page's list item. */
+.pager-ellipsis, /* A concatenation of several list items using an ellipsis. */
+.pager-current { /* The current page's list item. */
+  display: inline;
+  padding: 0 0.5em;
+  list-style-type: none;
+  background-image: none;
+}
+.pager-current {
+  font-weight: bold;
+}
+
+/**
+ * Blocks.
+ */
+
+/* Block wrapper. */
+.block {
+  margin-bottom: 1.5em;
+}
+
+/**
+ * Menus.
+ */
+.menu__item.is-leaf {
+  list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAD1BMVEX///+/v7+Li4sAAADAwMBFvsw8AAAAAXRSTlMAQObYZgAAAB1JREFUCFtjYAADYwMGBmYVZSDhKAwkFJWhYiAAAB2+Aa/9ugeaAAAAAElFTkSuQmCC');
+  *list-style-image: url('../../images/menu-leaf.png');
+  list-style-type: square;
+}
+.menu__item.is-expanded {
+  list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
+  *list-style-image: url('../../images/menu-expanded.png');
+  list-style-type: circle;
+}
+.menu__item.is-collapsed {
+  list-style-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC'); /* LTR */
+  *list-style-image: url('../../images/menu-collapsed.png'); /* LTR */
+  list-style-type: disc;
+}
+
+/* The active item in a Drupal menu. */
+.menu a.active {
+  color: #000;
+}
+
+/**
+ * Marker.
+ */
+
+/* The "new" or "updated" marker. */
+.new,
+.update {
+  color: #c00;
+  /* Remove background highlighting from <mark> in normalize. */
+  background-color: transparent;
+}
+
+/**
+ * Unpublished note.
+ */
+
+/* The word "Unpublished" displayed underneath the content. */
+.unpublished {
+  height: 0;
+  overflow: visible;
+  /* Remove background highlighting from <mark> in normalize. */
+  background-color: transparent;
+  color: #d8d8d8;
+  font-size: 75px;
+  line-height: 1;
+  font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
+  font-weight: bold;
+  text-transform: uppercase;
+  text-align: center;
+  /* A very nice CSS3 property. */
+  word-wrap: break-word;
+}
+.lt-ie8 .node-unpublished > *,
+.lt-ie8 .comment-unpublished > * {
+  /* Otherwise these elements will appear below the "Unpublished" text. */
+  position: relative;
+}
+
+/**
+ * Comments.
+ */
+
+/* Wrapper for the list of comments and its title. */
+.comments {
+  margin: 1.5em 0;
+}
+
+/* Preview of the comment before submitting new or updated comment. */
+.comment-preview {
+  /* Drupal core will use a #ffffea background. See #1110842. */
+  background-color: #ffffea;
+}
+
+/* Wrapper for a single comment. */
+.comment {
+  /* Comment's permalink wrapper. */
+}
+.comment .permalink {
+  text-transform: uppercase;
+  font-size: 75%;
+}
+
+/* Nested comments are indented. */
+.indented {
+  /* Drupal core uses a 25px left margin. */
+  margin-left: 30px; /* LTR */
+}
+
+/**
+ * Forms.
+ */
+
+/* Wrapper for a form element (or group of form elements) and its label. */
+.form-item {
+  margin: 1.5em 0;
+}
+
+/* Pack groups of checkboxes and radio buttons closer together. */
+.form-checkboxes .form-item,
+.form-radios .form-item {
+  /* Drupal core uses "0.4em 0". */
+  margin: 0;
+}
+
+/* Form items in a table. */
+tr.odd .form-item,
+tr.even .form-item {
+  margin: 0;
+}
+
+/* Highlight the form elements that caused a form submission error. */
+.form-item input.error,
+.form-item textarea.error,
+.form-item select.error {
+  border: 1px solid #c00;
+}
+
+/* The descriptive help text (separate from the label). */
+.form-item .description {
+  font-size: 0.85em;
+}
+.form-type-radio .description,
+.form-type-checkbox .description {
+  margin-left: 2.4em;
+}
+
+/* The part of the label that indicates a required field. */
+.form-required {
+  color: #c00;
+}
+
+/* Labels for radios and checkboxes. */
+label.option {
+  display: inline;
+  font-weight: normal;
+}
+
+/* Buttons used by contrib modules like Media. */
+a.button {
+  -webkit-appearance: button;
+  -moz-appearance: button;
+  appearance: button;
+}
+
+/* Password confirmation. */
+.password-parent,
+.confirm-parent {
+  margin: 0;
+}
+
+/* Drupal's default login form block. */
+#user-login-form {
+  text-align: left; /* LTR */
+}
+
+/**
+ * OpenID
+ *
+ * The default styling for the OpenID login link seems to assume Garland's
+ * styling of list items.
+ */
+
+/* OpenID creates a new ul above the login form's links. */
+.openid-links {
+  /* Position OpenID's ul next to the rest of the links. */
+  margin-bottom: 0;
+}
+
+/* The "Log in using OpenID" and "Cancel OpenID login" links. */
+.openid-link,
+.user-link {
+  margin-top: 1.5em;
+}
+html.js #user-login-form li.openid-link,
+#user-login-form li.openid-link {
+  /* Un-do some of the padding on the ul list. */
+  margin-left: -20px; /* LTR */
+}
+#user-login ul {
+  margin: 1.5em 0;
+}
+
+/**
+ * Drupal admin tables.
+ */
+form th {
+  text-align: left; /* LTR */
+  padding-right: 1em; /* LTR */
+  border-bottom: 3px solid #ccc;
+}
+form tbody {
+  border-top: 1px solid #ccc;
+}
+form table ul {
+  margin: 0;
+}
+tr.even,
+tr.odd {
+  background-color: #eee;
+  border-bottom: 1px solid #ccc;
+  padding: 0.1em 0.6em;
+}
+tr.even {
+  background-color: #fff;
+}
+.lt-ie8 tr.even th,
+.lt-ie8 tr.even td,
+.lt-ie8 tr.odd th,
+.lt-ie8 tr.odd td {
+  /* IE doesn't display borders on table rows. */
+  border-bottom: 1px solid #ccc;
+}
+
+/* Markup generated by theme_tablesort_indicator(). */
+td.active {
+  background-color: #ddd;
+}
+
+/* Center checkboxes inside table cell. */
+td.checkbox,
+th.checkbox {
+  text-align: center;
+}
+
+/* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back. */
+td.menu-disabled {
+  background: #ccc;
+}
+
+/**
+ * Autocomplete.
+ *
+ * @see autocomplete.js
+ */
+
+/* Suggestion list. */
+#autocomplete .selected {
+  background: #0072b9;
+  color: #fff;
+}
+
+/**
+ * Collapsible fieldsets.
+ *
+ * @see collapse.js
+ */
+html.js .collapsible .fieldset-legend {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');
+  *background-image: url('../../images/menu-expanded.png');
+  background-position: 5px 65%; /* LTR */
+  background-repeat: no-repeat;
+  padding-left: 15px; /* LTR */
+}
+html.js .collapsed .fieldset-legend {
+  background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC'); /* LTR */
+  *background-image: url('../../images/menu-collapsed.png'); /* LTR */
+  background-position: 5px 50%; /* LTR */
+}
+.fieldset-legend .summary {
+  color: #999;
+  font-size: 0.9em;
+  margin-left: 0.5em;
+}
+
+/**
+ * TableDrag behavior.
+ *
+ * @see tabledrag.js
+ */
+tr.drag {
+  background-color: #fffff0;
+}
+tr.drag-previous {
+  background-color: #ffd;
+}
+.tabledrag-toggle-weight {
+  font-size: 0.9em;
+}
+
+/**
+ * TableSelect behavior.
+ *
+ * @see tableselect.js
+ */
+tr.selected td {
+  background: #ffc;
+}
+
+/**
+ * Progress bar.
+ *
+ * @see progress.js
+ */
+.progress {
+  font-weight: bold;
+}
+.progress .bar {
+  background: #ccc;
+  border-color: #666;
+  margin: 0 0.2em;
+  -webkit-border-radius: 3px;
+  -moz-border-radius: 3px;
+  -ms-border-radius: 3px;
+  -o-border-radius: 3px;
+  border-radius: 3px;
+}
+.progress .filled {
+  background-color: #0072b9;
+  background-image: url('../../images/progress.gif');
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/layouts/fixed-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,72 @@
+/**
+ * @file
+ * RTL companion for the layout-fixed-width.css file.
+ */
+
+/**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+/* Span 4 columns, starting in 2nd column from right. */
+.sidebar-first #content {
+  float: right;
+  width: 764px;
+  margin-right: 196px;
+  margin-left: -980px;
+}
+
+/* Span 1 column, starting in 1st column from right. */
+.sidebar-first .region-sidebar-first {
+  float: right;
+  width: 176px;
+  margin-right: 0px;
+  margin-left: -196px;
+}
+
+/**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+/* Span 4 columns, starting in 1st column from right. */
+.sidebar-second #content {
+  float: right;
+  width: 764px;
+  margin-right: 0px;
+  margin-left: -784px;
+}
+
+/* Span 1 column, starting in 5th column from right. */
+.sidebar-second .region-sidebar-second {
+  float: right;
+  width: 176px;
+  margin-right: 784px;
+  margin-left: -980px;
+}
+
+/**
+ * The layout when there are two sidebars.
+ */
+
+/* Span 3 columns, starting in 2nd column from right. */
+.two-sidebars #content {
+  float: right;
+  width: 568px;
+  margin-right: 196px;
+  margin-left: -784px;
+}
+
+/* Span 1 column, starting in 1st column from right. */
+.two-sidebars .region-sidebar-first {
+  float: right;
+  width: 176px;
+  margin-right: 0px;
+  margin-left: -196px;
+}
+
+/* Span 1 column, starting in 5th column from right. */
+.two-sidebars .region-sidebar-second {
+  float: right;
+  width: 176px;
+  margin-right: 784px;
+  margin-left: -980px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/layouts/fixed.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,145 @@
+/**
+ * @file
+ * Positioning for a fixed-width, desktop-centric layout.
+ *
+ * Define CSS classes to create a table-free, 3-column, 2-column, or single
+ * column layout depending on whether blocks are enabled in the left or right
+ * columns.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+/**
+ * Center the page.
+ *
+ * If you want to make the page a fixed width and centered in the viewport,
+ * this is the standards-compliant way to do that.
+ */
+#page,
+.region-bottom {
+  margin-left: auto;
+  margin-right: auto;
+  width: 980px;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+  padding-left: 10px;
+  padding-right: 10px;
+  border-left: 0 !important;
+  border-right: 0 !important;
+  word-wrap: break-word;
+  *behavior: url("/path/to/boxsizing.htc");
+  _display: inline;
+  _overflow: hidden;
+  _overflow-y: visible;
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+  *position: relative;
+  *zoom: 1;
+}
+#header:before,
+#header:after,
+#main:before,
+#main:after,
+#footer:before,
+#footer:after {
+  content: "";
+  display: table;
+}
+#header:after,
+#main:after,
+#footer:after {
+  clear: both;
+}
+
+/* Navigation bar */
+#main {
+  /* Move all the children of #main down to make room. */
+  padding-top: 3em;
+  position: relative;
+}
+#navigation {
+  /* Move the navbar up inside #main's padding. */
+  position: absolute;
+  top: 0;
+  height: 3em;
+  width: 960px;
+}
+
+/**
+ * The layout when there is only one sidebar, the left one.
+ */
+
+/* Span 4 columns, starting in 2nd column from left. */
+.sidebar-first #content {
+  float: left;
+  width: 764px;
+  margin-left: 196px;
+  margin-right: -980px;
+}
+
+/* Span 1 column, starting in 1st column from left. */
+.sidebar-first .region-sidebar-first {
+  float: left;
+  width: 176px;
+  margin-left: 0px;
+  margin-right: -196px;
+}
+
+/**
+ * The layout when there is only one sidebar, the right one.
+ */
+
+/* Span 4 columns, starting in 1st column from left. */
+.sidebar-second #content {
+  float: left;
+  width: 764px;
+  margin-left: 0px;
+  margin-right: -784px;
+}
+
+/* Span 1 column, starting in 5th column from left. */
+.sidebar-second .region-sidebar-second {
+  float: left;
+  width: 176px;
+  margin-left: 784px;
+  margin-right: -980px;
+}
+
+/**
+ * The layout when there are two sidebars.
+ */
+
+/* Span 3 columns, starting in 2nd column from left. */
+.two-sidebars #content {
+  float: left;
+  width: 568px;
+  margin-left: 196px;
+  margin-right: -784px;
+}
+
+/* Span 1 column, starting in 1st column from left. */
+.two-sidebars .region-sidebar-first {
+  float: left;
+  width: 176px;
+  margin-left: 0px;
+  margin-right: -196px;
+}
+
+/* Span 1 column, starting in 5th column from left. */
+.two-sidebars .region-sidebar-second {
+  float: left;
+  width: 176px;
+  margin-left: 784px;
+  margin-right: -980px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/layouts/responsive-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,195 @@
+/**
+ * @file
+ * RTL companion for the layout-responsive.css file.
+ */
+
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+
+  /* Span 2 columns, starting in 2nd column from right. */
+  .sidebar-first #content {
+    float: right;
+    width: 66.66667%;
+    margin-right: 33.33333%;
+    margin-left: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from right. */
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
+    margin-right: 0%;
+    margin-left: -33.33333%;
+  }
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+
+  /* Span 2 columns, starting in 1st column from right. */
+  .sidebar-second #content {
+    float: right;
+    width: 66.66667%;
+    margin-right: 0%;
+    margin-left: -66.66667%;
+  }
+
+  /* Span 1 column, starting in 3rd column from right. */
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 33.33333%;
+    margin-right: 66.66667%;
+    margin-left: -100%;
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+
+  /* Span 2 columns, starting in 2nd column from right. */
+  .two-sidebars #content {
+    float: right;
+    width: 66.66667%;
+    margin-right: 33.33333%;
+    margin-left: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from right. */
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
+    margin-right: 0%;
+    margin-left: -33.33333%;
+  }
+
+  /* Start a new row and span all 3 columns. */
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 100%;
+    margin-right: 0%;
+    margin-left: -100%;
+    padding-left: 0;
+    padding-right: 0;
+    clear: right;
+  }
+
+  /* Apply the shared properties of grid items in a single, efficient ruleset. */
+  .two-sidebars .region-sidebar-second .block {
+    padding-left: 10px;
+    padding-right: 10px;
+    -moz-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    box-sizing: border-box;
+    word-wrap: break-word;
+    *behavior: url("/path/to/boxsizing.htc");
+    _display: inline;
+    _overflow: hidden;
+    _overflow-y: visible;
+  }
+
+  /* Span 1 column, starting in the 1st column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: right;
+    width: 33.33333%;
+    margin-right: 0%;
+    margin-left: -33.33333%;
+    clear: right;
+  }
+
+  /* Span 1 column, starting in the 2nd column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: right;
+    width: 33.33333%;
+    margin-right: 33.33333%;
+    margin-left: -66.66667%;
+  }
+
+  /* Span 1 column, starting in the 3rd column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: right;
+    width: 33.33333%;
+    margin-right: 66.66667%;
+    margin-left: -100%;
+  }
+}
+
+/**
+ * Use 5 grid columns for larger screens.
+ */
+@media all and (min-width: 960px) {
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+
+  /* Span 4 columns, starting in 2nd column from right. */
+  .sidebar-first #content {
+    float: right;
+    width: 80%;
+    margin-right: 20%;
+    margin-left: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from right. */
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 20%;
+    margin-right: 0%;
+    margin-left: -20%;
+  }
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+
+  /* Span 4 columns, starting in 1st column from right. */
+  .sidebar-second #content {
+    float: right;
+    width: 80%;
+    margin-right: 0%;
+    margin-left: -80%;
+  }
+
+  /* Span 1 column, starting in 5th column from right. */
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 20%;
+    margin-right: 80%;
+    margin-left: -100%;
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+
+  /* Span 3 columns, starting in 2nd column from right. */
+  .two-sidebars #content {
+    float: right;
+    width: 60%;
+    margin-right: 20%;
+    margin-left: -80%;
+  }
+
+  /* Span 1 column, starting in 1st column from right. */
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 20%;
+    margin-right: 0%;
+    margin-left: -20%;
+  }
+
+  /* Span 1 column, starting in 5th column from right. */
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 20%;
+    margin-right: 80%;
+    margin-left: -100%;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/layouts/responsive.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,271 @@
+/**
+ * @file
+ * Positioning for a responsive layout.
+ *
+ * Define CSS classes to create a fluid grid layout with optional sidebars
+ * depending on whether blocks are placed in the left or right sidebars.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+/**
+ * Center the page.
+ *
+ * For screen sizes larger than 1200px, prevent excessively long lines of text
+ * by setting a max-width.
+ */
+#page,
+.region-bottom {
+  margin-left: auto;
+  margin-right: auto;
+  max-width: 1200px;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  *behavior: url("/path/to/boxsizing.htc");
+  _display: inline;
+  _overflow: hidden;
+  _overflow-y: visible;
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+  *position: relative;
+  *zoom: 1;
+}
+#header:before,
+#header:after,
+#main:before,
+#main:after,
+#footer:before,
+#footer:after {
+  content: "";
+  display: table;
+}
+#header:after,
+#main:after,
+#footer:after {
+  clear: both;
+}
+
+/* Navigation bar */
+@media all and (min-width: 480px) {
+  #main {
+    /* Move all the children of #main down to make room. */
+    padding-top: 3em;
+    position: relative;
+  }
+  #navigation {
+    /* Move the navbar up inside #main's padding. */
+    position: absolute;
+    top: 0;
+    height: 3em;
+    width: 100%;
+  }
+}
+
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+
+  /* Span 2 columns, starting in 2nd column from left. */
+  .sidebar-first #content {
+    float: left;
+    width: 66.66667%;
+    margin-left: 33.33333%;
+    margin-right: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
+    margin-left: 0%;
+    margin-right: -33.33333%;
+  }
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+
+  /* Span 2 columns, starting in 1st column from left. */
+  .sidebar-second #content {
+    float: left;
+    width: 66.66667%;
+    margin-left: 0%;
+    margin-right: -66.66667%;
+  }
+
+  /* Span 1 column, starting in 3rd column from left. */
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 33.33333%;
+    margin-left: 66.66667%;
+    margin-right: -100%;
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+
+  /* Span 2 columns, starting in 2nd column from left. */
+  .two-sidebars #content {
+    float: left;
+    width: 66.66667%;
+    margin-left: 33.33333%;
+    margin-right: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
+    margin-left: 0%;
+    margin-right: -33.33333%;
+  }
+
+  /* Start a new row and span all 3 columns. */
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 100%;
+    margin-left: 0%;
+    margin-right: -100%;
+    padding-left: 0;
+    padding-right: 0;
+    clear: left;
+  }
+
+  /* Apply the shared properties of grid items in a single, efficient ruleset. */
+  .two-sidebars .region-sidebar-second .block {
+    padding-left: 10px;
+    padding-right: 10px;
+    -moz-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    box-sizing: border-box;
+    word-wrap: break-word;
+    *behavior: url("/path/to/boxsizing.htc");
+    _display: inline;
+    _overflow: hidden;
+    _overflow-y: visible;
+  }
+
+  /* Span 1 column, starting in the 1st column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: left;
+    width: 33.33333%;
+    margin-left: 0%;
+    margin-right: -33.33333%;
+    clear: left;
+  }
+
+  /* Span 1 column, starting in the 2nd column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: left;
+    width: 33.33333%;
+    margin-left: 33.33333%;
+    margin-right: -66.66667%;
+  }
+
+  /* Span 1 column, starting in the 3rd column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: left;
+    width: 33.33333%;
+    margin-left: 66.66667%;
+    margin-right: -100%;
+  }
+}
+
+/**
+ * Use 5 grid columns for larger screens.
+ */
+@media all and (min-width: 960px) {
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+
+  /* Span 4 columns, starting in 2nd column from left. */
+  .sidebar-first #content {
+    float: left;
+    width: 80%;
+    margin-left: 20%;
+    margin-right: -100%;
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 20%;
+    margin-left: 0%;
+    margin-right: -20%;
+  }
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+
+  /* Span 4 columns, starting in 1st column from left. */
+  .sidebar-second #content {
+    float: left;
+    width: 80%;
+    margin-left: 0%;
+    margin-right: -80%;
+  }
+
+  /* Span 1 column, starting in 5th column from left. */
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 20%;
+    margin-left: 80%;
+    margin-right: -100%;
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+
+  /* Span 3 columns, starting in 2nd column from left. */
+  .two-sidebars #content {
+    float: left;
+    width: 60%;
+    margin-left: 20%;
+    margin-right: -80%;
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 20%;
+    margin-left: 0%;
+    margin-right: -20%;
+  }
+
+  /* Span 1 column, starting in 5th column from left. */
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 20%;
+    margin-left: 80%;
+    margin-right: -100%;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/normalize-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+/**
+ * @file
+ * Normalize-rtl.scss is the RTL language extension of normalize.scss
+ */
+
+/**
+ * Lists
+ */
+dd {
+  margin: 0 30px 0 0;
+}
+
+/* Address paddings set differently in IE 6/7. */
+menu,
+ol,
+ul {
+  padding: 0 30px 0 0;
+}
+
+/**
+ * Forms
+ */
+legend {
+  /* Correct alignment displayed oddly in IE 6/7. */
+  *margin-left: 0;
+  *margin-right: -7px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/normalize.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,555 @@
+/**
+ * @file
+ * Normalize.css is intended to be used as an alternative to CSS resets.
+ *
+ * This file is a slight fork of these original sources:
+ * - normalize.css v2.1.2 | MIT License | git.io/normalize
+ * - normalize.scss v2.1.2 | MIT/GPLv2 License | bit.ly/normalize-with-compass
+ *
+ * It's suggested that you read the normalize.scss file and customise it to meet
+ * your needs, rather then including the file in your project and overriding the
+ * defaults later in your CSS.
+ * @see http://nicolasgallagher.com/about-normalize-css/
+ *
+ * Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
+ *       @see http://snook.ca/archives/html_and_css/no_css_reset/
+ */
+
+/**
+ * HTML5 display definitions
+ */
+
+/* Correct `block` display not defined in IE 8/9. */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+main,
+nav,
+section,
+summary {
+  display: block;
+}
+
+/* Correct `inline-block` display not defined in IE 8/9. */
+audio,
+canvas,
+video {
+  display: inline-block;
+  *display: inline;
+  *zoom: 1;
+}
+
+/**
+ * Prevent modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+audio:not([controls]) {
+  display: none;
+  height: 0;
+}
+
+/* Address styling not present in IE 8/9. */
+[hidden] {
+  display: none;
+}
+
+/**
+ * Base
+ *
+ * Instead of relying on the fonts that are available on a user's computer, you
+ * can use web fonts which, like images, are resources downloaded to the user's
+ * browser. Because of the bandwidth and rendering resources required, web fonts
+ * should be used with care.
+ *
+ * Numerous resources for web fonts can be found on Google. Here are a few
+ * websites where you can find Open Source fonts to download:
+ * - http://www.fontsquirrel.com/fontface
+ * - http://www.theleagueofmoveabletype.com
+ *
+ * In order to use these fonts, you will need to convert them into formats
+ * suitable for web fonts. We recommend the free-to-use Font Squirrel's
+ * Font-Face Generator:
+ *   http://www.fontsquirrel.com/fontface/generator
+ *
+ * The following is an example @font-face declaration. This font can then be
+ * used in any ruleset using a property like this:  font-family: Example, serif;
+ */
+
+/*
+@font-face {
+  font-family: 'Example';
+  src: url('../fonts/example.eot');
+  src: url('../fonts/example.eot?iefix') format('eot'),
+    url('../fonts/example.woff') format('woff'),
+    url('../fonts/example.ttf') format('truetype'),
+    url('../fonts/example.svg#webfontOkOndcij') format('svg');
+  font-weight: normal;
+  font-style: normal;
+}
+*/
+
+/**
+ * 1. Set default font family to sans-serif.
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
+ *    user zoom.
+ * 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
+ *    `em` units.
+ */
+html {
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */
+
+  /* Delete all but one of the following font-size declarations: */
+
+  /* Use a 12px base font size. 16px x 75% = 12px */
+  font-size: 75%; /* 3 */
+  /* Use a 14px base font size. 16px x .875 = 14px */
+  font-size: 87.5%; /* 3 */
+  /* Use a 16px base font size. */
+  font-size: 100%; /* 3 */
+
+  -ms-text-size-adjust: 100%;     /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+
+  /* Establish a vertical rhythm. */
+  line-height: 1.5em;
+}
+
+/* Address `font-family` inconsistency between `textarea` and other form elements. */
+button,
+input,
+select,
+textarea {
+  /**
+   * The following font family declarations are available on most computers.
+   *
+   * A user's web browser will look at the comma-separated list and will
+   * attempt to use each font in turn until it finds one that is available
+   * on the user's computer. The final "generic" font (sans-serif, serif or
+   * monospace) hints at what type of font to use if the web browser doesn't
+   * find any of the fonts in the list.
+   *
+   * font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
+   * font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
+   * font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
+   *
+   * font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
+   * font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
+   * font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif;
+   * font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
+   *
+   * font-family: "Courier New", "DejaVu Sans Mono", monospace;
+   */
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
+}
+
+/* Remove default margin. */
+body {
+  margin: 0;
+  padding: 0;
+}
+
+/**
+ * Links
+ *
+ * The order of link states are based on Eric Meyer's article:
+ * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
+ */
+a:link {
+}
+a:visited {
+}
+a:hover,
+a:focus {
+}
+a:active {
+}
+
+/* Address `outline` inconsistency between Chrome and other browsers. */
+a:focus {
+  outline: thin dotted;
+}
+
+/* Improve readability when focused and also mouse hovered in all browsers. */
+a:active,
+a:hover {
+  outline: 0;
+}
+
+/**
+ * Typography
+ *
+ * To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
+ * so that the line height of our base font becomes the basic unit of vertical
+ * measurement. We use multiples of that unit to set the top and bottom margins
+ * for our block level elements and to set the line heights of any fonts.
+ * For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
+ */
+
+/* Set 1 unit of vertical rhythm on the top and bottom margin. */
+p,
+pre {
+  margin: 1.5em 0;
+}
+blockquote {
+  /* Also indent the quote on both sides. */
+  margin: 1.5em 30px;
+}
+
+/**
+ * Address variable `h1` font-size and margin within `section` and `article`
+ * contexts in Firefox 4+, Safari 5, and Chrome.
+ */
+h1 {
+  /* Set the font-size and line-height while keeping a proper vertical rhythm. */
+  font-size: 2em;
+  line-height: 1.5em; /* 3rem / 2em = 1.5em */
+  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
+  margin-top: 0.75em; /* 1.5rem / 2em = .75em */
+  margin-bottom: 0.75em;
+}
+h2 {
+  font-size: 1.5em;
+  line-height: 2em; /* 3rem / 1.5em = 2em */
+  margin-top: 1em; /* 1.5rem / 1.5em = 1em */
+  margin-bottom: 1em;
+}
+h3 {
+  font-size: 1.17em;
+  line-height: 1.28205em; /* 1.5rem / 1.17em = 1.28205em */
+  margin-top: 1.28205em;
+  margin-bottom: 1.28205em;
+}
+h4 {
+  font-size: 1em;
+  line-height: 1.5em; /* 1.5rem / 1em = 1.5em */
+  margin-top: 1.5em;
+  margin-bottom: 1.5em;
+}
+h5 {
+  font-size: 0.83em;
+  line-height: 1.80723em; /* 1.5rem / 0.83em = 1.80723em */
+  margin-top: 1.80723em;
+  margin-bottom: 1.80723em;
+}
+h6 {
+  font-size: 0.67em;
+  line-height: 2.23881em; /* 1.5rem / 0.67em = 2.23881em */
+  margin-top: 2.23881em;
+  margin-bottom: 2.23881em;
+}
+
+/* Address styling not present in IE 8/9, Safari 5, and Chrome. */
+abbr[title] {
+  border-bottom: 1px dotted;
+}
+
+/* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
+b,
+strong {
+  font-weight: bold;
+}
+
+/* Address styling not present in Safari 5 and Chrome. */
+dfn {
+  font-style: italic;
+}
+
+/* Address differences between Firefox and other browsers. */
+hr {
+  -webkit-box-sizing: content-box;
+  -moz-box-sizing: content-box;
+  box-sizing: content-box;
+  height: 0;
+  border: 1px solid #666;
+  padding-bottom: -1px;
+  margin: 1.5em 0;
+}
+
+/* Address styling not present in IE 8/9. */
+mark {
+  background: #ff0;
+  color: #000;
+}
+
+/* Correct font family set oddly in Safari 5 and Chrome. */
+code,
+kbd,
+pre,
+samp,
+tt,
+var {
+  font-family: "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
+  _font-family: 'courier new', monospace;
+  font-size: 1em;
+  line-height: 1.5em;
+}
+
+/* Improve readability of pre-formatted text in all browsers. */
+pre {
+  white-space: pre;
+  white-space: pre-wrap;
+  word-wrap: break-word;
+}
+
+/* Set consistent quote types. */
+q {
+  quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
+/* Address inconsistent and variable font size in all browsers. */
+small {
+  font-size: 80%;
+}
+
+/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline;
+}
+sup {
+  top: -0.5em;
+}
+sub {
+  bottom: -0.25em;
+}
+
+/**
+ * Lists
+ */
+dl,
+menu,
+ol,
+ul {
+  /* Address margins set differently in IE 6/7. */
+  margin: 1.5em 0;
+}
+ol ol,
+ol ul,
+ul ol,
+ul ul {
+  /* Turn off margins on nested lists. */
+  margin: 0;
+}
+dd {
+  margin: 0 0 0 30px; /* LTR */
+}
+
+/* Address paddings set differently in IE 6/7. */
+menu,
+ol,
+ul {
+  padding: 0 0 0 30px; /* LTR */
+}
+
+/* Correct list images handled incorrectly in IE 7. */
+nav ul,
+nav ol {
+  list-style: none;
+  list-style-image: none;
+}
+
+/**
+ * Embedded content and figures
+ *
+ * @todo Look into adding responsive embedded video.
+ */
+img {
+  /* Remove border when inside `a` element in IE 8/9. */
+  border: 0;
+  /* Improve image quality when scaled in IE 7. */
+  -ms-interpolation-mode: bicubic;
+
+  /* Suppress the space beneath the baseline */
+  /* vertical-align: bottom; */
+
+  /* Responsive images */
+  max-width: 100%;
+  height: auto;
+  /* Correct IE 8 not scaling image height when resized. */
+  width: auto;
+}
+
+/* Correct overflow displayed oddly in IE 9. */
+svg:not(:root) {
+  overflow: hidden;
+}
+
+/* Address margin not present in IE 8/9 and Safari 5. */
+figure {
+  margin: 0;
+}
+
+/**
+ * Forms
+ */
+
+/* Correct margin displayed oddly in IE 6/7. */
+form {
+  margin: 0;
+}
+
+/* Define consistent border, margin, and padding. */
+fieldset {
+  border: 1px solid #c0c0c0;
+  margin: 0 2px;
+  padding: 0.5em 0.625em 1em;
+}
+
+/**
+ * 1. Correct `color` not being inherited in IE 8/9.
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
+ * 3. Correct alignment displayed oddly in IE 6/7.
+ */
+legend {
+  border: 0; /* 1 */
+  padding: 0; /* 2 */
+  *margin-left: -7px; /* 3 */ /* LTR */
+}
+
+/**
+ * 1. Correct font family not being inherited in all browsers.
+ * 2. Correct font size not being inherited in all browsers.
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
+ * 4. Improve appearance and consistency with IE 6/7.
+ * 5. Keep form elements constrained in their containers.
+ */
+button,
+input,
+select,
+textarea {
+  font-family: inherit; /* 1 */
+  font-size: 100%; /* 2 */
+  margin: 0; /* 3 */
+  vertical-align: baseline; /* 4 */
+  *vertical-align: middle; /* 4 */
+  max-width: 100%; /* 5 */
+  -webkit-box-sizing: border-box;
+  -moz-box-sizing: border-box;
+  box-sizing: border-box; /* 5 */
+}
+
+/**
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+button,
+input {
+  line-height: normal;
+}
+
+/**
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
+ * All other form control elements do not inherit `text-transform` values.
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
+ */
+button,
+select {
+  text-transform: none;
+}
+
+/**
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ *    and `video` controls.
+ * 2. Correct inability to style clickable `input` types in iOS.
+ * 3. Improve usability and consistency of cursor style between image-type
+ *    `input` and others.
+ * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
+ *    Known issue: inner spacing remains in IE 6.
+ */
+button,
+html input[type="button"], /* 1 */
+input[type="reset"],
+input[type="submit"] {
+  -webkit-appearance: button; /* 2 */
+  cursor: pointer; /* 3 */
+  *overflow: visible; /* 4 */
+}
+
+/**
+ * Re-set default cursor for disabled elements.
+ */
+button[disabled],
+html input[disabled] {
+  cursor: default;
+}
+
+/**
+ * 1. Address box sizing set to `content-box` in IE 8/9.
+ * 2. Remove excess padding in IE 8/9.
+ * 3. Remove excess padding in IE 7.
+ *    Known issue: excess padding remains in IE 6.
+ */
+input[type="checkbox"],
+input[type="radio"] {
+  -webkit-box-sizing: border-box;
+  -moz-box-sizing: border-box;
+  box-sizing: border-box; /* 1 */
+  padding: 0; /* 2 */
+  *height: 13px; /* 3 */
+  *width: 13px; /* 3 */
+}
+
+/**
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
+ *    (include `-moz` to future-proof).
+ */
+input[type="search"] {
+  -webkit-appearance: textfield; /* 1 */
+  -webkit-box-sizing: content-box;
+  -moz-box-sizing: content-box;
+  box-sizing: content-box; /* 2 */
+}
+
+/**
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
+ * on OS X.
+ */
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+/* Remove inner padding and border in Firefox 4+. */
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+  border: 0;
+  padding: 0;
+}
+
+/**
+ * 1. Remove default vertical scrollbar in IE 8/9.
+ * 2. Improve readability and alignment in all browsers.
+ */
+textarea {
+  overflow: auto; /* 1 */
+  vertical-align: top; /* 2 */
+}
+
+/* Drupal-style form labels. */
+label {
+  display: block;
+  font-weight: bold;
+}
+
+/**
+ * Tables
+ */
+table {
+  /* Remove most spacing between table cells. */
+  border-collapse: collapse;
+  border-spacing: 0;
+  /* Prevent cramped-looking tables */
+  /* width: 100%; */
+  /* Add vertical rhythm margins. */
+  margin-top: 1.5em;
+  margin-bottom: 1.5em;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/print.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,80 @@
+/**
+ * @file
+ * Print styling
+ *
+ * We provide some sane print styling for Drupal using Zen's layout method.
+ */
+
+/**
+ * By importing this CSS file as media "all", we allow this print file to be
+ * aggregated with other stylesheets, for improved front-end performance.
+ */
+@media print {
+
+  /* Underline all links. */
+  a:link,
+  a:visited {
+    text-decoration: underline !important;
+  }
+
+  /* Don't underline header. */
+  a:link.header__site-link,
+  a:visited.header__site-link {
+    text-decoration: none !important;
+  }
+
+  /* Add visible URL after links. */
+  #content a[href]:after {
+    content: " (" attr(href) ")";
+    font-weight: normal;
+    font-size: 16px;
+  }
+
+  /* Only display useful links. */
+  #content a[href^="javascript:"]:after,
+  #content a[href^="#"]:after {
+    content: "";
+  }
+
+  /* Add visible title after abbreviations. */
+  #content abbr[title]:after {
+    content: " (" attr(title) ")";
+  }
+
+  /* Un-float the content. */
+  #content {
+    float: none !important;
+    width: 100% !important;
+    margin: 0 !important;
+    padding: 0 !important;
+  }
+
+  /* Turn off any background colors or images. */
+  body,
+  #page,
+  #main,
+  #content {
+    color: #000;
+    background-color: transparent !important;
+    background-image: none !important;
+  }
+
+  /* Hide sidebars and nav elements. */
+  #skip-link,
+  #toolbar,
+  #navigation,
+  .region-sidebar-first,
+  .region-sidebar-second,
+  #footer,
+  .breadcrumb,
+  .tabs,
+  .action-links,
+  .links,
+  .book-navigation,
+  .forum-topic-navigation,
+  .pager,
+  .feed-icons {
+    visibility: hidden;
+    display: none;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/styles-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+/**
+ * @file
+ * RTL companion for the styles.css file.
+ */
+
+/* HTML element (SMACSS base) rules */
+@import "normalize-rtl.css";
+
+/* Layout rules */
+@import "layouts/responsive-rtl.css";
+
+/* Component (SMACSS module) rules */
+@import "components/misc-rtl.css";
+
+/* SMACSS theme rules */
+/* @import "theme-A-rtl.css"; */
+/* @import "theme-B-rtl.css"; */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/css/styles.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+/**
+ * @file
+ * Styles are organized using the SMACSS technique. @see http://smacss.com/book/
+ *
+ * When you turn on CSS aggregation at admin/config/development/performance, all
+ * of these @include files will be combined into a single file.
+ */
+
+/* HTML element (SMACSS base) rules */
+@import "normalize.css";
+
+/* Layout rules */
+@import "layouts/responsive.css";
+
+/* Component (SMACSS module) rules */
+@import "components/misc.css";
+/* Optionally, add your own components here. */
+@import "print.css";
+
+/* SMACSS theme rules */
+/* @import "theme-A.css"; */
+/* @import "theme-B.css"; */
Binary file sites/all/themes/zen/STARTERKIT/favicon.ico has changed
Binary file sites/all/themes/zen/STARTERKIT/images-source/screenshot.psd has changed
Binary file sites/all/themes/zen/STARTERKIT/images/help.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/menu-collapsed-rtl.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/menu-collapsed.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/menu-expanded.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/menu-leaf.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/message-24-error.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/message-24-ok.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/message-24-warning.png has changed
Binary file sites/all/themes/zen/STARTERKIT/images/progress.gif has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/js/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+Your theme can add JavaScript files in two ways:
+
+1. To add a JavaScript file to all pages on your website, edit your sub-theme's
+   .info file and add a line like this one:
+
+     scripts[] = js/my-jquery-script.js
+
+2. To add a JavaScript file depending on a certain condition, you can add it
+   using some PHP code in a preprocess function:
+
+     drupal_add_js(drupal_get_path('theme', 'THEME_NAME') . '/js/my-jquery-script.js', array('group' => JS_THEME));
+
+   For the full documentation of drupal_add_js(), see:
+     http://api.drupal.org/api/function/drupal_add_js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/js/script.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,26 @@
+/**
+ * @file
+ * A JavaScript file for the theme.
+ *
+ * In order for this JavaScript to be loaded on pages, see the instructions in
+ * the README.txt next to this file.
+ */
+
+// JavaScript should be made compatible with libraries other than jQuery by
+// wrapping it with an "anonymous closure". See:
+// - https://drupal.org/node/1446420
+// - http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth
+(function ($, Drupal, window, document, undefined) {
+
+
+// To understand behaviors, see https://drupal.org/node/756722#behaviors
+Drupal.behaviors.my_custom_behavior = {
+  attach: function(context, settings) {
+
+    // Place your code here.
+
+  }
+};
+
+
+})(jQuery, Drupal, this, this.document);
Binary file sites/all/themes/zen/STARTERKIT/logo.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/DO_NOT_MODIFY	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+This is a copy of the "zen-grids" extension.
+
+It now overrides the original which was found here:
+
+/Library/Ruby/Gems/1.8/gems/zen-grids-1.4
+
+Unpacking an extension is useful when you need to easily peruse the
+extension's source. You might find yourself tempted to change the
+stylesheets here. If you do this, you'll find it harder to take
+updates from the original author. Sometimes this seems like a good
+idea at the time, but in a few months, you'll probably regret it.
+
+In the future, if you take an update of this framework, you'll need to run
+
+    compass unpack zen-grids
+
+again or remove this unpacked extension.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/LICENSE.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,274 @@
+GNU GENERAL PUBLIC LICENSE
+
+              Version 2, June 1991
+
+Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave,
+Cambridge, MA 02139, USA. Everyone is permitted to copy and distribute
+verbatim copies of this license document, but changing it is not allowed.
+
+                  Preamble
+
+The licenses for most software are designed to take away your freedom to
+share and change it. By contrast, the GNU General Public License is
+intended to guarantee your freedom to share and change free software--to
+make sure the software is free for all its users. This General Public License
+applies to most of the Free Software Foundation's software and to any other
+program whose authors commit to using it. (Some other Free Software
+Foundation software is covered by the GNU Library General Public License
+instead.) You can apply it to your programs, too.
+
+When we speak of free software, we are referring to freedom, not price. Our
+General Public Licenses are designed to make sure that you have the
+freedom to distribute copies of free software (and charge for this service if
+you wish), that you receive source code or can get it if you want it, that you
+can change the software or use pieces of it in new free programs; and that
+you know you can do these things.
+
+To protect your rights, we need to make restrictions that forbid anyone to
+deny you these rights or to ask you to surrender the rights. These restrictions
+translate to certain responsibilities for you if you distribute copies of the
+software, or if you modify it.
+
+For example, if you distribute copies of such a program, whether gratis or for
+a fee, you must give the recipients all the rights that you have. You must make
+sure that they, too, receive or can get the source code. And you must show
+them these terms so they know their rights.
+
+We protect your rights with two steps: (1) copyright the software, and (2)
+offer you this license which gives you legal permission to copy, distribute
+and/or modify the software.
+
+Also, for each author's protection and ours, we want to make certain that
+everyone understands that there is no warranty for this free software. If the
+software is modified by someone else and passed on, we want its recipients
+to know that what they have is not the original, so that any problems
+introduced by others will not reflect on the original authors' reputations.
+
+Finally, any free program is threatened constantly by software patents. We
+wish to avoid the danger that redistributors of a free program will individually
+obtain patent licenses, in effect making the program proprietary. To prevent
+this, we have made it clear that any patent must be licensed for everyone's
+free use or not licensed at all.
+
+The precise terms and conditions for copying, distribution and modification
+follow.
+
+           GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND
+               MODIFICATION
+
+0. This License applies to any program or other work which contains a notice
+placed by the copyright holder saying it may be distributed under the terms
+of this General Public License. The "Program", below, refers to any such
+program or work, and a "work based on the Program" means either the
+Program or any derivative work under copyright law: that is to say, a work
+containing the Program or a portion of it, either verbatim or with
+modifications and/or translated into another language. (Hereinafter, translation
+is included without limitation in the term "modification".) Each licensee is
+addressed as "you".
+
+Activities other than copying, distribution and modification are not covered
+by this License; they are outside its scope. The act of running the Program is
+not restricted, and the output from the Program is covered only if its contents
+constitute a work based on the Program (independent of having been made
+by running the Program). Whether that is true depends on what the Program
+does.
+
+1. You may copy and distribute verbatim copies of the Program's source
+code as you receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice and
+disclaimer of warranty; keep intact all the notices that refer to this License
+and to the absence of any warranty; and give any other recipients of the
+Program a copy of this License along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and you
+may at your option offer warranty protection in exchange for a fee.
+
+2. You may modify your copy or copies of the Program or any portion of it,
+thus forming a work based on the Program, and copy and distribute such
+modifications or work under the terms of Section 1 above, provided that you
+also meet all of these conditions:
+
+a) You must cause the modified files to carry prominent notices stating that
+you changed the files and the date of any change.
+
+b) You must cause any work that you distribute or publish, that in whole or in
+part contains or is derived from the Program or any part thereof, to be
+licensed as a whole at no charge to all third parties under the terms of this
+License.
+
+c) If the modified program normally reads commands interactively when run,
+you must cause it, when started running for such interactive use in the most
+ordinary way, to print or display an announcement including an appropriate
+copyright notice and a notice that there is no warranty (or else, saying that
+you provide a warranty) and that users may redistribute the program under
+these conditions, and telling the user how to view a copy of this License.
+(Exception: if the Program itself is interactive but does not normally print such
+an announcement, your work based on the Program is not required to print
+an announcement.)
+
+These requirements apply to the modified work as a whole. If identifiable
+sections of that work are not derived from the Program, and can be
+reasonably considered independent and separate works in themselves, then
+this License, and its terms, do not apply to those sections when you distribute
+them as separate works. But when you distribute the same sections as part
+of a whole which is a work based on the Program, the distribution of the
+whole must be on the terms of this License, whose permissions for other
+licensees extend to the entire whole, and thus to each and every part
+regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest your rights to
+work written entirely by you; rather, the intent is to exercise the right to
+control the distribution of derivative or collective works based on the
+Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of a
+storage or distribution medium does not bring the other work under the scope
+of this License.
+
+3. You may copy and distribute the Program (or a work based on it, under
+Section 2) in object code or executable form under the terms of Sections 1
+and 2 above provided that you also do one of the following:
+
+a) Accompany it with the complete corresponding machine-readable source
+code, which must be distributed under the terms of Sections 1 and 2 above
+on a medium customarily used for software interchange; or,
+
+b) Accompany it with a written offer, valid for at least three years, to give
+any third party, for a charge no more than your cost of physically performing
+source distribution, a complete machine-readable copy of the corresponding
+source code, to be distributed under the terms of Sections 1 and 2 above on
+a medium customarily used for software interchange; or,
+
+c) Accompany it with the information you received as to the offer to distribute
+corresponding source code. (This alternative is allowed only for
+noncommercial distribution and only if you received the program in object
+code or executable form with such an offer, in accord with Subsection b
+above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source code
+means all the source code for all modules it contains, plus any associated
+interface definition files, plus the scripts used to control compilation and
+installation of the executable. However, as a special exception, the source
+code distributed need not include anything that is normally distributed (in
+either source or binary form) with the major components (compiler, kernel,
+and so on) of the operating system on which the executable runs, unless that
+component itself accompanies the executable.
+
+If distribution of executable or object code is made by offering access to
+copy from a designated place, then offering equivalent access to copy the
+source code from the same place counts as distribution of the source code,
+even though third parties are not compelled to copy the source along with the
+object code.
+
+4. You may not copy, modify, sublicense, or distribute the Program except as
+expressly provided under this License. Any attempt otherwise to copy,
+modify, sublicense or distribute the Program is void, and will automatically
+terminate your rights under this License. However, parties who have received
+copies, or rights, from you under this License will not have their licenses
+terminated so long as such parties remain in full compliance.
+
+5. You are not required to accept this License, since you have not signed it.
+However, nothing else grants you permission to modify or distribute the
+Program or its derivative works. These actions are prohibited by law if you
+do not accept this License. Therefore, by modifying or distributing the
+Program (or any work based on the Program), you indicate your acceptance
+of this License to do so, and all its terms and conditions for copying,
+distributing or modifying the Program or works based on it.
+
+6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the original
+licensor to copy, distribute or modify the Program subject to these terms and
+conditions. You may not impose any further restrictions on the recipients'
+exercise of the rights granted herein. You are not responsible for enforcing
+compliance by third parties to this License.
+
+7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues), conditions
+are imposed on you (whether by court order, agreement or otherwise) that
+contradict the conditions of this License, they do not excuse you from the
+conditions of this License. If you cannot distribute so as to satisfy
+simultaneously your obligations under this License and any other pertinent
+obligations, then as a consequence you may not distribute the Program at all.
+For example, if a patent license would not permit royalty-free redistribution
+of the Program by all those who receive copies directly or indirectly through
+you, then the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under any
+particular circumstance, the balance of the section is intended to apply and
+the section as a whole is intended to apply in other circumstances.
+
+It is not the purpose of this section to induce you to infringe any patents or
+other property right claims or to contest validity of any such claims; this
+section has the sole purpose of protecting the integrity of the free software
+distribution system, which is implemented by public license practices. Many
+people have made generous contributions to the wide range of software
+distributed through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing to
+distribute software through any other system and a licensee cannot impose
+that choice.
+
+This section is intended to make thoroughly clear what is believed to be a
+consequence of the rest of this License.
+
+8. If the distribution and/or use of the Program is restricted in certain
+countries either by patents or by copyrighted interfaces, the original copyright
+holder who places the Program under this License may add an explicit
+geographical distribution limitation excluding those countries, so that
+distribution is permitted only in or among countries not thus excluded. In such
+case, this License incorporates the limitation as if written in the body of this
+License.
+
+9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will be
+similar in spirit to the present version, but may differ in detail to address new
+problems or concerns.
+
+Each version is given a distinguishing version number. If the Program specifies
+a version number of this License which applies to it and "any later version",
+you have the option of following the terms and conditions either of that
+version or of any later version published by the Free Software Foundation. If
+the Program does not specify a version number of this License, you may
+choose any version ever published by the Free Software Foundation.
+
+10. If you wish to incorporate parts of the Program into other free programs
+whose distribution conditions are different, write to the author to ask for
+permission. For software which is copyrighted by the Free Software
+Foundation, write to the Free Software Foundation; we sometimes make
+exceptions for this. Our decision will be guided by the two goals of
+preserving the free status of all derivatives of our free software and of
+promoting the sharing and reuse of software generally.
+
+               NO WARRANTY
+
+11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE,
+THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT
+PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE
+STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
+WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND
+PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
+NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR
+AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR
+ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
+LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL,
+SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
+ARISING OUT OF THE USE OR INABILITY TO USE THE
+PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA
+OR DATA BEING RENDERED INACCURATE OR LOSSES
+SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
+PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN
+IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF
+THE POSSIBILITY OF SUCH DAMAGES.
+
+          END OF TERMS AND CONDITIONS
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,88 @@
+ABOUT zen-grids
+---------------
+
+Zen Grids is an intuitive, flexible grid system that leverages the natural
+source order of your content to make it easier to create fluid responsive
+designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied
+to an infinite number of layouts, including responsive, adaptive, fluid and
+fixed-width layouts.
+
+More information can be found at http://zengrids.com
+
+
+USAGE
+-----
+
+Here's a simple example: a content column with a sidebar on each side, aligned
+to a 12 column grid.
+
+  @import "zen";
+
+  $zen-gutter-width: 40px;  // Set the gutter size. A half-gutter is used on
+                            // each side of each column.
+
+  .container {
+    @include zen-grid-container();  // Define the container for your grid items.
+  }
+
+  $zen-column-count: 12;  // Set the number of grid columns to use in this media
+                          // query. You'll likely want a different grid for
+                          // different screen sizes.
+
+  @media all and (min-width: 50em) {
+    .sidebar1 {
+      @include zen-grid-item(3, 1);   // Span 3 columns starting in 1st column.
+    }
+    .content {
+      @include zen-grid-item(6, 4);   // Span 6 columns starting in 4th column.
+    }
+    .sidebar2 {
+      @include zen-grid-item(3, 10);  // Span 3 columns starting in 10th column.
+    }
+  }
+
+Within the .container element, the .sidebar1, .sidebar2 and .content elements
+can be in any order.
+
+Zen Grids has built-in support for the Box-sizing Polyfill which adds
+"box-sizing: border-box" support to IE7 and earlier.
+
+- Download the polyfill at https://github.com/Schepp/box-sizing-polyfill
+- Place the boxsizing.htc file in your website.
+- Set Zen Grids' $box-sizing-polyfill-path variable to the absolute path to the
+  boxsizing.htc file on your website. For example:
+    $box-sizing-polyfill-path: "/scripts/polyfills/boxsizing.htc";
+
+
+INSTALLATION
+------------
+
+Zen grids is distributed as a Ruby Gem. On your computer, simply run:
+
+  sudo gem install zen-grids
+
+If you are using Compass (and you should!) then you can add it to an existing
+project by editing the project's configuration file, config.rb, and adding this
+line:
+
+  require 'zen-grids'
+
+You can then start using Zen Grids in your Sass files. Just add this line to one
+of your .sass or .scss files and start creating!
+
+  @import "zen";
+
+
+REQUIREMENTS
+------------
+
+- Sass 3.2 or later
+
+For the zen/background module only:
+- Compass 0.12 or later
+
+
+LICENSE
+-------
+
+Available under the GPL v2 license. See LICENSE.txt.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/lib/zen-grids.rb	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+require 'compass'
+extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
+Compass::Frameworks.register('zen-grids', :path => extension_path)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/_zen.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+// Import the partial for Zen Grids.
+
+@import "zen/grids";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_background.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,155 @@
+@import "grids";
+@import "compass/css3/images";
+
+
+// Specify the color of the background grid.
+$zen-grid-color           : #ffdede             !default;
+
+// Specify which set of numbers to display with the background grid. Can be set
+// to: both, top, or none.
+$zen-grid-numbers         : both                !default;
+
+// Create an image set of 25 numbers for the grid using data URIs. Users who are
+// crazy enough to use a 26-column grid or larger are free to extend this set.
+$zen-grid-number-images   : ()                  !default;
+
+// If the set is empty, add our default set of 25.
+@if length($zen-grid-number-images) == 0 {
+  // The number 1.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII='));
+  // The number 2.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdBJREFUeNqslL9LQlEUx3367AdamdCQaVjQ0uAQBS+hxbVBhEcESoOG/0SDS9HakDYGEU0huLa1GW4tGtkkURBlQRn4LPseOBdej0u+ygsffByvH98995zj6Ha7DqIfizyKkCmKYv1eBaPAB4ZpP3gDz/zZ+Y1wAEyBeTAH/OATPIBrUAP3oG0VOiRHVli2nslkTmu12pNhGF2iUqncxePxI3yngwDv7SkcAstYeSEy02w229FodB97NN77TeiU5NYDJlOp1KII5HK5y2QyWaZnr9frxvMSv6HH+mOZkPI3EgwGfSJQr9db5g2hUGiMZW47wg/QUlXVMAd1XQ+I50aj8cI3bUhrx5JD+ucI2ADb4DASiZyZ80j5pTzLcigTOlkaBqtgp1gs3ghZqVS6QmyTTm73lkXpTIBEOp0umm9Y07QDxFdkF/KTcBAsgC3k61UI8/n8BWJJrlOnXaEo7BQJhKxarTYR2+OiDnM1OOwWtkbFS0cUwlgsdo74MdgFa2AauOwIqW8ThUKhLOsUIpvNnmBPlIdGz06h1fH7/a6/jDDZtKEjz/ClzFrfAuudpw1d0C03wo/jS2HpOM9Da3tRd1CnPNodX/+a2H0XfgkwAIVYVeQ1/9a6AAAAAElFTkSuQmCC'));
+  // The number 3.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAe5JREFUeNqslM1LAkEYxnX7lL62CAmTwENkhyKwDkZg185dgvDQwS7RUQkvkRfzKNQfIF5CukjRJelk4EWwDmVUEJinaNlSMLPWnhdmYFvWGqiFH44z8z7zzjPvjKXZbFqI//hIx8rFrFarfkwCNiCDPtABNFADKngFH6KC1BgEE2ASOEE3E1DALbgCZfBuFLSYbJmC51wu1046nb5pNBpNTrFYVEKh0DHGV8AoW/xXQTsFJJPJC72YHq/Xu485Xrb4N0HJxFvybsjtdtt5Rzwev04kEvf8v9/v97CFbcbgdhPBT/AmSZLGOxRFaRgyoa22scP7VbACih6PZ5cdzAjoSqVS03xCoVB4wM8zLWxaOwYPaZEBMAXWI5HIud6/TCZTQv82mBX18MfP5/M5Y7HYAprDlLlIhpTdPNgEe+AQHOVyuSeeJZUT+taAQyRDuhnufD6/heANsBwOh8ey2ewTn+BwOPrZCXcYg80EycMeTdNa2lGpVN5ZNWgiglQitWq1Wtd3yrLcydvlclll1VAX8ZAehCUYf9rqpgQCgQPMWQS9IlePtuyiCxGNRs9UVa1zoVKpVA0GgycYWwVjrLiFnq9OFjADxlkm5NcLuAOX4NHstWklyEVlBvfvjb2HL8xri8iW//Ri/7vglwADAMZnRpCsTg8QAAAAAElFTkSuQmCC'));
+  // The number 4.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAW5JREFUeNqslDFLw0AYhpOaSFuiDjqViiUKVhACDpJCQycX/TVChCz+Evf8ALtlCGZyCW6uOiR4QusgSgtmiO/BBZJ4l1qSg4dwd19e7vvuvU9K01SiNDGojpyJybLMi9kEu2AHqGwtAZ/gA/ysI6iAPjgHx6DD1pfgGTwCUhaUKlLeBheO49wnSZLmwfotGPJSblWUZAscmKY55Ox1ciUoDJGgwmrXm0wmg3UuRiTYpWK2bY80TVN93yd1BWm6/fF4fEgnQRDM6ggW0iWELKbT6byOYCFdz/OIwJ9d3sW0BOn2LMvS6cR13TeBpfaZ4f96p+TDI3ATRdF32X8ZcRx/IeYa6P/x4YbIY7kfZZEXeYL0rS7wFIUdg+0tWWxxj/OW98AZOM0ag2EYgzAMr7IAVVXv8PHAA5jnU1Y4B6Cd5Am8sJvU2+32ZSnmHbyy2JUnLOzTGwcjcMLqVtltVgnyemJlP5Sa7tiNC/4KMAAbxb+98QKR2gAAAABJRU5ErkJggg=='));
+  // The number 5.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAc5JREFUeNqslM9KAlEUxp0xzSTNDHMoCiIKKRChXbgIAldKEK5y4Up9A5dufAMRRB8gwnW7lkV/EBcR0WzaBMEQFRNFlkNO34E7MU23msyBHzNz58x373fOPdeh67qDGMRFOkOccQEMg3EwBlyW7xp4AHega/2ZJ0gCM2AFLIARy/cOkMEJuAZvX5ZpsRwEyUajsa9pms4jn89vI2bVOhnpiJwVkt2JcDg82U8eeZZpEqd5IJPJHDebzVtmj3J3BBReDsU/LoAEn1keSazXl2AikQghd0mw2Wq10vF4nAo2DTx9CWaz2XnjORaLSYVCYR2Pc8BnR5BsdURR/NgO1Wr1rFKpnBvvkUiEChYCXjtFobx0U6nUHu4XxgSlUmnZCJAkycfEXHYE3dQh7XY7HY1Gp2igXC63e72e1Y2T55BnmQI9ZgG/3+/Fu5OTGltVfqFelWX5xhgIBAJuc4CiKI+4PbG+dvzWeqNgLZfL7XzXevV6/QAxG9RRVi2eIFmbBVvFYnEXK703hFRVfa3Vaoe0k8Aiy/cnQcEQEwTBWhjauEvsxAmyicjmJTgFVyw9uh1BYwf4KYXsVBFYu6nsPOyaxX6y/K8TW3QM+HoXYACXiuXQRCn2XAAAAABJRU5ErkJggg=='));
+  // The number 6.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAcZJREFUeNqslLFLw0AUxpPWKNZag6igqYKgCA61dhScHbV0URwcCo7+DV1K5y6FTlIcdQl0dhKkdBAHsaJ1MBQdJEZNKmnQ+B3cQZte2wx98OPIu5ePe+/dO8F1XYEwDCM6I332yd4EkOkaBA74BB/AJhq8n3g2ChbAGlgBs9T3A57BDXgBTfDXdUxPygGwCPbT6fR5tVp9dRzHZRQKhWvsHYMNevIOLZ4gCdpOJpOn7ULtlMvlO8QcgnmvYICTbogEplKpTeYolUpPmUzmln3H4/ElLFO0DII3PV79IuFwOMQchmG0stlsXZIklRCNRs/gfqc1HSgogTFFUSaZIxaLyZqm7SDd3UqlsgVB0kwLtLh3x1PDZXCCZrz1qqGqqg+IOfJbwy5DDev5fP6efScSCQXLnLfLvVLuMlJDXdcdTmmCfgRJ/r+8KfBjPEFyErvRaHwPGl2/o0c692WaZpM5ZFnuuG+WZdm0y46fLg+clGKxeIWYPTDjZ/TYLB9gli9qtZrOhNAcO5fLXdIrs+qdFKIjMjFRFL3TQq7GOv1xmnbUBI+AjKHmfcL6CbL6Ruh7OE5CaH0NSotXPmHYL3ZAGLL9CzAANR4i5o9tHM8AAAAASUVORK5CYII='));
+  // The number 7.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAbBJREFUeNqslL1Kw1AUx5O2ih8BsWoRAw6SgAHJKvQFunWqQ18gs5Oj4DP4DuLomqWTjhVEKYVapDRBrdXUqtU2avyfelNCbGwTvfDj9N5L/j1f9/CO43C0eJ7n/rIGOgGCk2ABzIEJ73fgDbTAI7DHEYwDEWyCdTDtEfwAFrgAp6DpF+z/GGy+FwmkNU07sG3b8WMYxhPut8GaP2QiFiFXFMqMLxU/lT2LQl4FW2AX7IPDUqnUIg/r9foz9jtAHtdDytMNOAZH4EQUxY4sy1QgrlKp3MNQ2N1hDiYCIuuBa/BCBcrn8yvuBTy9hSHR12Efjsoh5WpRVdWBYLFYNFmlIwlSxecVRUm5B4VC4QrmgfVjKEG6E0BSkqQkHVSrVatWq1Eq2izXoQSnSCybzcqCIPRbpFwuN1m4HfZqQglS/lKZTEZyD0zTtNiz6/4WVtCaBUvI37J7oOv6Jcwd85Abt7HdP9qgxrYsq0cNTRb7PaAOc2TU06PzRC6XE938NRqNNvOOmvozyMGg8RXzTByFvVsqyDk4Y20Tah76Z2KcNXKLtcx7FMF/ndiRBb8EGABjzN026ymFhAAAAABJRU5ErkJggg=='));
+  // The number 8.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAahJREFUeNqslLFOwlAUhi0IGpGUoEMTjYnGmLgYEhhN4+qkzpo48Qg8gimMTMDI5hO4GJ3UgUkXOhgGJCYYI5bYRKBD/Y85JeXmokW8ycdtzz39ezn/7VFc152hoSjKzLSDtJQfBCNABQkwz7EBsJjBJIJRsAp2wCYLh4ANHsE9eBJFv7XoxxPlEQZr4DiXy120Wi3bcRyXsCyrbxjGNa1xTjiIYAzo2Wz23BMSoTXk7IFFUTAkqS3VazmVSq17gWq12igWi6Z3r+v6NiYNLIgPywQVMY6/OlIrVVXn2LRQEME+6DabzVcvkEgkov6Eer3+jOkN9KRnR1LDXWCYpvku1q9Wq71g7YxzYkFMWQJHpVLpbpwp5XL5FjmHnPurKfRWLZPJDE0hQ/ympNPpDUwrIC4+PCsRDHPBhye90+k4/gRN0+J8ZCJBTHF9TDxkO6TdfNq23fcCyWRyZCftdvuDP0MniMvUDPYLhcLlOFMqlcoNcg5kpsgEaddkyEk+n78Sv2VyH2unYIubyNTdpgEeuNv0/LWeph92+dqdpMH+e8f+k+CXAAMABxE8L2GVSOsAAAAASUVORK5CYII='));
+  // The number 9.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAaVJREFUeNqslEFLAkEUx910N8tclk5FEEQUGB3qC0gXbx70WBie9CP4FfTq3Q/QTYPFU/UFOiQh5EEI1iAsWLZ0Q1tq+7+YCVtG19KBH8O+2f0xs/PeC7iuGyDmMcgTmrBOayrQwBKQwABY4AU44z4SDQVsgD2wA1aZkERtcAsewLtwm54jB8EmOCkUCnqr1TIdx3GJTqfTL5VKl1jLgC3vhr49AuEKOMrlcmdc5AXSC7yTZDv/JVwQHHcZrMXj8RgPVKtVo1wu3/HnVCp1yHaoej8WCWWSqqoa5gHDMGzTNH8uIRKJLLKTKNMIKSZHo9GwT5ZIDF/hTEOUNh+UDr1eb8ADmqYpswhJ9Nztdp8w71Igm81uTysUHfmNkjafz5/rut4even/Cimx6RaD6XT6WpZlnWg0Gpa3Jhi+Qqrb9Xq9nkESH4NkpVKJjb5g2/YQU19UeqJ/SPk2aDabj4lEYl/0D2u12g2me/A6TS2HWBWcFovFK8uyhn+pZYnLJEnydhtqEAes21BVfPp1m0lCLtUYykhKje2H47rNTB177qX3JcAAagDd/y1YjuwAAAAASUVORK5CYII='));
+  // The number 10.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAdZJREFUeNrclD9IAlEcxzW7tLiyrCXrgoiGaInIIQKhwc0xkCYDcXYVDRqaGp2dXASpKYgGlxBbcmvJqCPKSCE4PbMyr7q+D35P5Lj+EC714MO73+/33vfen9/7WSxdblYTXx8YJli8TtjJ1w908Ahq1L9+JsjEJsEimAU2IINrMEI+F3gH9+ASnIM70DIKjYMlsOHxeFK1Wu1F0zQ9GAzuw7cVCoX2isWiwnyMQqFQhm8XsXUwRT9vr3ICrIFttHy1Wm3xiYFAIO/z+bLcNhIOhzOYtwoGmVgPMeT1ej0YsBmNRldEURT433Rdt0F0mtupVEpOJBJn3Pb7/QvoJCByQXYe9VwuVxAEYQdbPDLekiRJA/wbR9FSFEXjttvtHqLV2bmgTgd8DHLpdPrUKOh0OoVvMsXGL7iXnOyGymCM0uDXrafbif1PBFVV1b4I6x38TLBUKj112i6Xq33rjUajyTr+9Hq/rR5W61smk7lCfs4wOxKJzHXGkWYn6G7Ag9kK2daeOx0Oh0PJZrP5eDx+IMtylfsrlcpjLBY7TCaT7K1fgCezasMKxDKYpzL1TBXFWG3YPJVi7CHc8i2bla9R9jiAQCtWTeohm9ekeqjSuD/SPgQYANoDxDJkiCZZAAAAAElFTkSuQmCC'));
+  // The number 11.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAWxJREFUeNrslE1LhEAYx9eXlcK2jQgTRDwYRC90iL5EdOwQdBBP3foEnTr2DcQP0KE+RUHHgm5GRoTpqfcVLMXd/hNjjKJshz3soQd+jPMf53FmfObfao04uAZdBNNghj73wCvIQadG/wKDpoTkxXmwDJaADO7BNfgECxX9EjyAtJqoDebAKtgGh57nPWdZNnAc5wL9PWCxuuu65+hv0hX/BM8k7IJ1sGXbtoVJ+6ZpzpKBJEnINjcsy9ph9TRNJ+gRtNntFTEJjDAMDxRF6bBLz/NcCIJgV1VVedhPYVeYkLPQNO3IMIzjOI6zYkAQhFzX9RPop6w+LOE7uAJnURTd+L7/8rsNUSQHHkJ/ZPWm8iiCfPmJTARvpdriuD6a+C91yI+6sP8TjmFCsUYj5RPzPJ8XgiRJxBRI/WU1eo/OabQvcqdXwBpQqWXdgjswBRYresltmuxLpg5C2j69RR/UBLoVveSH4x/fAgwA+s1/zoQYuDcAAAAASUVORK5CYII='));
+  // The number 12.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAmJJREFUeNrMlM+LUlEUx5/Oe9KkjVOUyZhKM22mQhdRDC5atJidmOZOBXHhxj+goIW6khauDP+AUHctWiS4CYJQw2hoaOGURGU6QY3OkGXjr9f30rnOwxxGokUXPtx7z333vHvu+d4jCP+4qabYRLAAFmn8jdCQbR7I4DvYpX5wmEPm4Cy4CFaBFnwAH8FJsAJOgRH4At6CKvgMekpHEjgNLoNbIF6tVnf6/b6cTqdLmMdCodBD2FrMxqhUKtsul+sB1rxgafJwzNk6uB0MBh8pNyaTydd2u/0xnytpt9s9h8NxH/vWwDEeokD3Ym00GncNBsMJ5Z9kWVYHAoHzfB6NRjdrtdqPbDa7ptPpJJ/Pd7VYLD6h8H+q6bsuuyuTyXTParXmOp1OX+nUYrFo+Zg5U66ZzWY93TW7NoE73AMvwdNms7mFTa1x1lSqkSiKA6UTr9e7xMf1en2PMt1XhswmX0GDpHCQdlHseTyePE3P2Gw2k9vttvD1TCbzAt02OR2f8NCmVquH6N6DV6AZi8VW+Fo+n39TKpU2MPwE9mdyiJBlksRxSGfV6XQuMzu750QiwZKxBVok9nHIRzUm6oV4PL7ODblcbqNcLj/D8B0lVZjphKPRaI7pNJVK3TAajVrK9G4kEilRmJLyYEc6HAwGGgj7gt/vt3EbnG3SY7gCrgEjmJv5hBD2MhMxtxUKhet4KT5wJxwO34TpHBWPP+6QyadDmf39yCVpX6/Xa/62fDHVXwI2CmNIGRSoysxPfN+lavOcNDycVr60VPe0VKa6ivcuTYmIvZSdyfL1/7ZfAgwAPr/v4RS2v5YAAAAASUVORK5CYII='));
+  // The number 13.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAl9JREFUeNrUlM+LUlEUx98z3zRTNiMVkTq4C4xkFpWCFBqu20ghRYrt+gsUkZK0hbh00WqEcGPgzhhatIgUJTAEaTEaTRA4ziym/DGazficZ98b58arnJBo04UP991z7j0ev/fcIwj/eIhTbHNATzD/AHwFC+AEkIBCti7YBePDArJgy+AiOAeOgC3QBifJN08BmO09WActMPo1kAFcBndtNlum2+3uy7I88fl8L0wm05N8Pv+OrTmNRqMdCoXWsP8WMKmTE8lwEzzCKHU6nRE/6PV6X6fT6Q11MDUOh+Mxzjkoc0FDLDqdThs23A+Hw1d0Op2kTt9qtS7x71QqVc9kMh/42u/3X8J0hjT+HowJvFssFt9IkpQMBAKvfro1UVQ0Go3C1+12W4YcP/SaTCYiac1iCVpmAzugDIbZbHYBGVzjB7Ra7Z7dbn9Kf+k0OJrL5Va4v1arfcT0GezxDAW6oW3QBF/UGSLgEFMD1OPxuAGyXPd4PGbmKxQKm6urq+t05kAd8K+Gy+VaTiaTV3nmMwUcj8fHMFnA+Wg0ug2d16rV6ifut1gsZiq547MGnK9UKrfxV++BG5FIxFwqlXa432g0LtINSzMFxC1qFEU5dF+/3x+RfsrMGvZ6PVm91uv1c/y71Wqx99wH+7xs/tw9RPGgXC5vud1uppMQi8VW1H7Ub53e+3DaeSb+A/XTQqE/g+1hIpF4yd83o9lsDoLB4HP47gAzFfdv3cZA7/ICCc1a1AbV51nqQDrSq0e+t2CTd5tp7esUWKJbk+nggH5AT3sEehld8svCfzO+CTAAQZUW1CtBkesAAAAASUVORK5CYII='));
+  // The number 14.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgdJREFUeNrMlLtPIlEUxmFYdxlh1zeaABkT3Oj6IrFiC4FQammMsTGUNBZ0JBsLS/8FSgvspYKCBBsbNLEwYsSYjcBsIj7QiUZGmP2OuWMmehWMW+xNfrkz95755p7HPSbTPx5mzton8A10sucbcAk00A06QBuzVUEVnIMaT5AE+sEo+AFs4ATsgQbwgmEgMvs7sA+2gWwUoj/2gnEwB1bz+fy5qqpaPB7fwvsCmI/FYpu0ZgTrK2BEFxLYTG5MgdlwOLwEsWWPx0PumWq1mhWTEwz5fL4RTohEQwgeXdQXpVKp9MvhcHzlfGQHXYFAYLBZUgRDLH47nc41SZISiqKouoGmaRTnL9FodMJut7dlMhm5FUHK1C7Ilsvlw0KhcKEbNBoNC2Xd7/dL9J7NZs9aEaQTVUAJXBkN6vX6Y8KCwaAky/JtMpmstCL46qATRiKR7+RuOp3mufsZtOuJEVqp/lAo1EdzIpEoc7bpErhZpTxl+c2BcqEaNaVSqenne8VicdHlch0w4Yrw0bvLqkB8l8tms1lrsnfHEtvcZYvF8uB2u9fxqFDwvV7vYC6Xm9X34e4GplNwzROkvyiCINSf7pUo3rDLfwwcVqt15tk3f1gDqfK6DWVqDEyCASpDcAR22Cl6wE/WiURet+G1LxvrhTbWsqqsH96zwPcYeuKLfvj/j78CDACe8KXB21214gAAAABJRU5ErkJggg=='));
+  // The number 15.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAi5JREFUeNqslE1rGlEUhp2ZjDFKrLGkKK2LIgUhG03iIqm4aMFVoVC7KS4sUhT/QJduXHWpuOvKjYI/QRCCEJIqGtpa2kWyaNNQoV8m1qZ1yEzfG84Ng5mkE/DAw9yPmXfOOffcI1qmbDMGa1bgIgTwh9bngDzxrgIOwXcwNhJkYrfAMrgDJPCT9twkqrdj8AG8AgfgRC/kBavgaTgcLg8Gg7+KomiJRKJRKBR22NiIdDpdwTfr/GcihbUI7oKH+Xz+Wb1ef+JwOKynMSmK3ev1uq+SQybqjEaj4Uaj8fx/H8Dj7Vqt9o3CY7nbAn2eQyamgqNms9mWZflFMpncMOkME/xNeRyTzqmgBr6CTdCsVCpvLlOJxWKLSMMD8Kjdbj+ORCIrWL4JbFzQQn/4AvbB6DJBRODn42Aw6MlkMvcxvA3m9YIXmiAIqiRJZ+VQKpXeFovFd3weCARu0KHaLyrsc4LxeJzV2Q7l7TiXyy3xfY/HM09isilBTdPEVqt1LxQKMU8sKKuOqqqTkUk8WtGMoF7A6XTaMZcMTlw1Jcis1+sd8rHL5bLq9/r9/hCPX3SvTeXwBAV/wE9Xf8rMut3uHh6fwdBIUKFCPTObzfajXC53fD7fMJVKrfv9/gW2PhqNxtVqtZPNZl9i+p4LChOCrEGsgSW67Ex8F3wEC9SB3HQILEzm3WvwidqcJhi0r+vgGpUB73dHYJZ65Bw5wi7DgPbHdOOmb+K0Bf8JMABAPsyYlTRVAQAAAABJRU5ErkJggg=='));
+  // The number 16.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAiZJREFUeNrUlE9IG0EUxmPXtdpC3P5RUhtSpBU8RQiUQj2UHILHXgs95BAwwUsOOQa8padACSS5mEvwFKQFaS4lhxIQJAQaRcSDbsVspC0tMUZjcLdt+r3wRraLaIReHPix896++Wbmzcyz2f5z6zvHNwDugWG2D0ET9AMF3AYSMPjfATgFHasg9QeBC3jAE/bvgF2egHwjPGkbfAEVUAUn4I95VQ/BNJiNRCIfDcPoELDTYD4QCCyVy+Wvwk+k0+lVigdTvPJuo62Mg1fgTTab3TAPgu+9z+crmH1m8vn8JmJegwdCcAg8TSQSy+cNwL8PmUxmR9job0ej0TVh12q1I8TMgUckdoOT+zMcDudkWX6bTCY3rKdkt9tl0W80GnosFlMRu0w4nc5FGs857Qr+AvuA8vG5UqloVkGXy3VL9N1ut6Jp2gxW97JUKj2HIKWsBXQhaGPjB/guSZJ+0T3zer1jDoejewAej2cklUq9QPc+p+5MsOeGQ1OR7y1hQ5Rux6g45SsLUg7r9bphcct82a8ueFnrSbBarZ5cEtIRT6+/F8Fms3m2RUVRBsz/Wq3WKZ+y0augkcvldv1+/2MyxFe0YrG4xW/5yLrl3zQTLmvbIvitUCishEKhd6qqHphWpsfj8U/BYHAB5iZXpH+qjcQF4hmY5HvV5mqzB+6ACXCXY4/BNlgHmihhfRfUQtlU82j2m1wPh3gh9AAajG67Nu2vAAMABvAJLzvmvhMAAAAASUVORK5CYII='));
+  // The number 17.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAglJREFUeNrUlE1LQkEUhm/qtQ/tu6ggxMIgbKUkkYJrF0I7wZUt+g39AVetWwVu2rjwF4gglBAhLQQXSghhEmX0gYVlddPbe+LcmG6JGW0aeJg75555Z+acmSNJf9x62tjNYIQhnyYwAVnnp4A7cANe2gmS2CxwgwVgBE+gnxFbAxTBITgHql5oBiyDdY/Hs1ur1Z4VRVHD4fA+9d/h9Xq34e/iE0gG4eiTwAfWotHoRiqVClssFlpEajab5nYxw78+dH2alontNBjy+/2edDq9qZ9kNBpfZFne4TiNxWKxlUgk4uDfdMxX0BJ3SIP7TCZzhIlbcN4TBWGro8uCDMXK5/NNkL1eryvZbPYMn4+cuA9BWuUKHNCkeDye1+8Q3SVl02azyQ6Hg7Iv5XK5C3TXpK0lxCTMo0nkQKs/fBMuitNAKBRa1AyFQoEWueVsS3rBTu392tjt9nHNUC6X6f7VREFDF4K0wzGn0zmlGRKJxDHv8Ok3grTDUZfLRXdVqlarD5VK5ZJfymtXgqqqkl9/MBict1qt78+vVCqJx1W7Emy1WiQyFAgE5jRbsViscoYfRd8fCeI19FL2xfglk8kTLgqNToLKFyeDgWLU43a7pzVbPp8/5YQ8dypfFPRVsMSJaPDRFL6jg5zVAleZCzGG7coX3bVhrn8Kx0nlBcyc1U918P+0NwEGAAJMv5rEne+7AAAAAElFTkSuQmCC'));
+  // The number 18.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAihJREFUeNrUlDGPElEQx5c791yRkw16itFYGCxOY4FIjMEQw2cwIYQCGwoqKhIKC4PxiAUFHYkVDRhLC0uj5GgwErVgC91G1GCMwHoQdTe6/ucy77K34sElNr7kx2Nm9s2bNzPvSdI/Hp4ZuhWgMmT/CraAwjqFvzPBmDH/5pCcnQaXwDmwDHTwDqyBEPCDJTABb8BLtptuRyfBZXAzGo3Wx+PxD8uy7Ewm8wi624VC4XG/35+QjiB7uVx+AlsanOHNd6I8BW6AOxibo9HIFAuTyeRmKpV6JmQ32Wz2AdZdBz6JQyeOxOPxKD64VSwWYz6fTxa72ba9HIlE1oRcr9f1arWqCRnr1jEFgVc4/EWJb7Vaz2VZvocjPt2rijjqrlz5/f6DmGT2tf1jg8+gDVqNRuP1rjbweGxd1ydCVlV1xWnv9XofMH0B32cFcBFsOHNEOYTuoaZpI3f+Op3OJ9jugmvgsIhw3liqVCrnQ6GQ6jaEw+HjtVqNCnJM9OdchyiKJxaLnRAyFcRZFBTsLHfJKskH9nu1hsOh5ZSDweAqt4y86JH3NRaK0DCMnagCgYDstA0Ggy2+htZCDtE2P9vt9sdEIkFXU8rn8+tOe7fbpbv+nh+QPxzSLt+cCkVRhqVSqev1eo10On0FOdtuj+l0ajabzRe5XO4+RE04dL82FMVVcAEcYudv93htKLpXbKfGtmc9X0d5kcwRG3PeQ4P/29J/MX4LMABVRPc2xeNx/wAAAABJRU5ErkJggg=='));
+  // The number 19.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAgVJREFUeNrMlDFoGlEYxzV6SQ6DmnQpFEJCEkjWQsmQOZsObhUKbgWHICKIW8AhOAhFkE4OcXCIg1pySyAZsqSUQBQlwUEIagRLU+uJh4mmsf8n3wv2uIYDM/TBj7vv+97737vvfe8zGF54GDV80+AVsJEtgw6YAXYg0ro70Kb4QEuQvc+CRfAWrJK/AqpgHqyBBZorU6wIbkBfvas3YAt8DAQCR4PBYMiA/RnsBoNBqVwut7i/Xq93I5HICWIfwDIwczEzOd6DvWQyWeKLSDDjdrtPx33jQPQYcxy089FgOXkXi8W+aC1A7DCRSFS4nU6nq9Fo9Irb2PVPzNkBS0xsihJ66/P5DgRB+BSPx0vqU7JarQJ/r9VqSqvVejoEi8XCDmuO0jYSfAAN8BVc5PP5ulrQZrMJOqrFyAUNdEI/wHeTydSfpA7NeibJsvz0i3a7fXpSwYdGoyFzw+PxrDw3eUqHYM/v959JklThjmw2W5tEcDRcLtc5qkBiFAqFtio8JHQJiplMZhs15wYO1OTGeFBRlHs8uvzq6cnhEDv65XQ6NXOYy+XyeFxTA/lL8Df7IH6ppxJshsPhoiiKHa/Xu4VCHp1ys9lUUqnUt1AotA/zkguOdxsTNYhNsE5XskcdhRX7a+o27FY8/qvbGJ/phQJdS5lyJFI/5HWo2Q////FHgAEA1kIAAe0AP5kAAAAASUVORK5CYII='));
+  // The number 20.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAnJJREFUeNrUlM+LUlEUx31m2S/DkRZqmpUVDU0UEhgDLjIwi1mKEhEtzNA/QBducicuRYg2LkRaRG2UaBbhuBahRUZpZJRGCoU6qfNDK/ue4dx4DOW4aNOFD+8+v+d9vffcc65C8Y+HJJvvAVqG5t9BH/TAOlCCQ6zvAxMwZH3I8b8NyeAouABOgYNgE3wCb0GTY06zrgM/wRfwDtTAZzAiMxU4Dm7F4/GVXq+3OR6PJ0Qul6tZLJYEtNsg5Pf7n1Sr1Y7Qy+VyC789hnaDF7SLDOfA9UQi8VwEyiED6A/cbnf+TzoRCAQeIeYy0Ii8HHM6nQsimTabbSWZTL6hudVqnfP5fAsej2de6JlMpi50GktLS5QqM6VKybnR6PV6jQioVCpr8pODqcZsNh8Q70jLqNPpjMW70WikRdH3ajL8QQcgSdJEbuL1ei1iXiqVulqtVrVDtVD+JAr6Bl6bTKYYnkeAPhqNnjUYDPspst1uDwuFQgt/OD9LHZLhKnjBx34OLIZCIasISKfTr6jOtu9gmiHlogsoR+pUKnUJ+dzKV71e78ZisRIX8UxDyU/a3km73b4YDAYvCjESiSxzYXdmNVXyKvXgDAr7qhCy2Ww1n8+/57Ya9fv90RSfiUDFWz2B1VxzOBxU7YpWq7WGg6GWMoG9dIKNRmMgd9DpdLvFfDAYbNBDtB6d7J1isfjhb50A/aHL5VreoVOucC1uVfjdWq32dYrhfXAPu3gq7+VmszkIh8PPoN0UvSzxzXGeS+Yw51Q+1vlG+ch9L24biUuOtJd8M40kNpDfc8pthmP+kBpALYujbzf4PlzluP9g/BJgABvhUfuxyjKwAAAAAElFTkSuQmCC'));
+  // The number 21.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAk1JREFUeNrMlM+LUlEUx53X0yztl1RYo0lCAzOBULaYXLgMQswkiTQDUXDjP9BOXQmz1o3LQINqYRvBTYsIlCQGZmWN/YIwImacKXNq3vzoe+BcuSPlm0WLDnx49917+N5z7j33GAz/2KbG/lVwFBwHh8Au+AHW+Ls15kPj76APfpG/LGgC02AOXAA2sAO+gmXQASssRD6zwALeg1fgI9iUIyWxO6lU6kmn01nVNG2XaLfbn0Oh0AOs3QN+cAvk4bNC6+Vy+Tn+r/NGIzODq7CSEJLp9/ubXq/3IXwWEonEU3nDYrH4EvO3wSlxZgYO/Uw8Hr8idshms0vdbndYqVTmrVarMRqNemq1WtBut1smXYoind8Rh8MxCpvEZEe32212Op2PXC7X48FgoOkJboOhqqp7HCORyFkx7vV6dCHv8P2AzVb/JihSppJ4HQgEFvCdoQvyeDzT4XD4nHBE6m0SBM5JKQvBDfAWfOPS8OVyOb9wqtfrb5rN5iKGn8Dp/QhSvQ05UlMymZwNBoNuWqDzKhQKzygDLuCd/QiKi6F05vL5/DUxWa1WF1ut1gtO16z39BSpsE+SWKlUuiFKA4e/lslkmvysjGMBTIzwIEXn8/nmY7HYJbEIsSXeyMubf9ETFREeFoVNRSwWG42GH6/hLrifTqdvYsrBkeoKkm3ZbLYDOhlRnQ4URdkeHbzJ9JM7jia3Lzrs8+AyPQpuXbJtcLehmz4GLgI7P4hludtMSZdCoie41xn/ENk616nKncXCJbQu90PDf2+/BRgAl2Xhjy3s2ZYAAAAASUVORK5CYII='));
+  // The number 22.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAh1JREFUeNrMlL9LW1EUx1+SF3+QtOoLHdQkaFsdHEIoL/gM6JDVIQhBGhIKJiUghf4BdciiOAUcmnQsiHQqwazdskWyiZCURjqE0oLUtLS14Etrv6ecWy7ifXbo0AsfcnO/9553z497NO0fD5c018FNMAqGwQX4Bj7xr3aN3pcNDoBJMAdmgAF+ghPwBrwFbnBXobfBB3AujJKx+/l8/mW73T61bfuCaDab75PJ5C60R+Cxg54CE+KCQ2ABoyw2yvR6vfNoNLpPqPR4PP4UNiyyRW74wHg2mzVFMIvF4mEmk2nQ3O/3e6HNEiod8xjf0Kdz/G4Eg8FRcaDT6ZzJmQuHwz75/2U9FAqN8MW8dMMf4EzXdVvelEqlJsS82+1+gd530D9zpn/bIMsR8ABsgueRSOSVHCfTNPewvqHSKf6UB86HJuI4BZbBVrVaPRaba7Xaa6ytc9BV+kPyXK5rmtwCK7lcripn0LKsZ1hf4g+q9EW+1J8xCO6RW4jHV3GgXC4fYC0D7gDTQZ9kTzW5sLO0QWxutVo9rO1w0c6DNQd9iqtFE4VtUXGSC+JAIpGoY52SsQ2exGKxXQd9laoLeDR+lyuVSqVx1Usg0ul0vVQqHan0QqHwAjbi1DSE333DMDyqluR2u/uBQMD1t+2LXJ7mpNzm1iSP7+CU54ZCp25DCXrnkoyOcb/zXjpg8yGNjV2l00v5KNrX/z1+CTAAejWU4TBFD08AAAAASUVORK5CYII='));
+  // The number 23.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAArdJREFUeNrUlF1oklEYx9W5r9rERYXYmpX2gfTFGojRMLwoCroKZhBCQYayu4ZejMCQhngTiNVdiAwqpBtX9EEybwxGw1gNlvbFyGwXlpjKalra/4nnxJvMrrrphd/7nnP+5zzvOc/Hkcn+8SOXtDuAmqH2d1AGRbACOlnrBe2gDr6yXuL5vw2SgQGwH2wHPWzkA3gF8mAD2AH6QRcbKIDXYAHkQJWMKcFWYPf7/dPFYnGlVqs1iFgsltHpdAFoo/SlvtCIdDpd8Hg896CfApvEBvvA8UAg8Fg6WboI+o1wOLywmk6YzeZrmGOmnSvwUoEtVqt1t3Dm4ODgdDAYfEltvV7fZ7PZdhqNxvVCJy0SibwVfbvdfgCfjaBbyf7r1Wg0vWLC/Pz8sjRyBoOhRy6XN0S/UCjUpHqj0aCjtgEFGfxBAZAuoGdkZEQn2qlU6v3ExMRDDpaGIh6NRvcKfW5ubhGfz+Ab9ekoR8AYuAJujo+PPxf+yWazFYxdBCfAeZ/P90Tqv3g8nsW4FwwJH34Bz8AjMEt/crlcevF3+Iq0j6CyWiJbLJZ+BPQQb6xTjNP56YhnQqHQbFOEL9POwAVwFdwBd2dmZvLS9MLYWaBVsME15HuTyXTQ6XQOib8gxx5wcqvgxzEsHgUn4ZKBZDKZF/O0Wi1lSjdVkIITmxy9C4l9VEyanJxMT01NvUOTItpVr9cVreq3XC5XObh1MrYWbMNujg0PD1P5yZaWlpaxizdcZqS3l0qlP1JFrVZ3iHYulyty3VO5/iqZc4lEYrFVJUC/5fV6n7bSHQ7Hbcw5zGkl20xOz2Qyn/5i8Dq41FzrlFJut/s+tNN8ubRRhq8D+8AeDr2yyUV0RdHxs+xrcRvVOeVIe8HBq8rZgIrvOopUs/NrvLDCurgvZVwZRdZrsv/i+SnAALSEnerTo5c3AAAAAElFTkSuQmCC'));
+  // The number 24.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAApBJREFUeNqslE9oknEYx/X1D6Vmf122TSFXxryUwQrr0GFsktQQBgl2S+gUIYg0BPFiFw8SHUKiBV12CzEk6CINOiUviyQwNoKUShjZFkrLd86+jzy/YTI97Qcf3vf3e573eZ+/P0m1z0vb864BBnAEmHi/BTbAJtgGB8BRYAY60AZN1qHntjBIwhHgBGfBKf4ZGVoDH8FPMAouAgc4CFqgxvJPrN9dJ8BNj8fzpFAofFUUpUNUq9VGNBp9DdltcBkEl5aWZCEnZFn+hvM7YLw31EnwgAz0KgsWFhZeQX4PPOzXKRaL5OF9cJqMSZyXk6FQaMpqtRrpMJvNVmw225tGo6HQfn5+fgqPc16v97zQGbQkzp/Z4XBYxGGlUmnWajXFZDKRTAUjh6gYgUDgDO2Rlh/DDHYrpdfrt3rOO7FYzC425XKZqqifmZkZJ69LpdLGsLb5A74g+c/BewqfPEaubgil5eXl9enpaQuFS+mo1+vKMA+pv6hS78BbUE0kEg6RK4TeTCaTq8FgcIzDXR9gh5yTJD5ocXO27Hb7sXA4fEFoplKpD/TT2dnZUQo3k8nslb/DwMK9uRv6BLiby+U+i5agnsTZY7fb/XKvdhLk83lq6ls0HMJDGqXJubm5az6fj6ZFRd5EIpEij19nWKu0220tj6tO4vhpUpwI77pQWlxcXFtZWSFD1p2dHcMwgxqNhurQAN1iUWNf9fv9LwaFlE6nS9B5Bh6Bp/F4XO6blAS4Aoxa9lDtcrnMgzwwGAy/uQsop2NGo3Fit7yS1OYu+U4tqOaC0GBfovHqrRQv6tNVIPNHI6zr5Hvgv9tGzR/pwXEuv67PoMLX0i/wl+VCV+q/D/f7wlZJ+23wnwADAHUlUxtyWY3RAAAAAElFTkSuQmCC'));
+  // The number 25.
+  $zen-grid-number-images       : append($zen-grid-number-images, url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAsVJREFUeNrMlF9IU3EUx3fvbrNcW8ucjP6NXMlKZkGBIfOhF6MRBiFbMCoIGdqDL409CK4HH8Zg9KIkPgSC5YsgzYIwMCGkGLJIJrJBE8tqPlRbJZpbbX2PnB9choseeujC597f75xzz+/3O+f8jkbzjx9JNdYBE0Pjn+A7yIES2MPsKPNRAF/BZ5CXVM4Og1PgGNgNNsF78AZsABvrdpU5JF0SxMAHEijgCLgaCoWe5XK5zUKhUCKi0WjKarVGoPMPDw/PCnk5Pp9vDDYttJiMlwEcD4fD1/x+/zm9Xq8TS7tcroapqakbGJ4wm82Wv42jFdycm5vLiBUdDsd0JBJZFHOPxzM7Pj6+LOZut/sl/nkEHoJ7oBPUA63M8TNYLBaDWCGRSKyrV7TZbIZSqSRts5lfYJ3jmAdFmYWbkiSV1JbYhVWMY7FYVq1va2szY6cXwWWcrMPpdJ6G+ADYSfpasgG3wB0w1tvbOy+Ot7KysgbZ/YmJiXSlpIyOjs7D5gqoU7iGXoGPwEHZ6u7utondjIyMvCadoih5IRscHEwUi0W5p6enkeZ2u70OHzOoVrgws0APqgYGBs4injTWpNPpbF9f33PSt7e3P8V3kUO0EQwGG8UCHP9qKnqFZTQ52tzc3NLV1XVGGAYCgSf4vKNCj8fjHU1NTftJ3t/fH6cdliVIC2SZC5tqzI7CPi+0iEtycnJyibNXpXZgNBqrMdduk/EtIzpePXZzobW1la6fJpPJrCMxdOUOUlFT4hYWFrLiT5PJpFN7Wl1dpTu/xuHbSnfnzMzMcqUsQv/A6/VOV9LTtYTNJbCPHB4CvlQq9ekPDu+C2zjF42Qy+UXI6d4PDQ29gO46aKBLQtVfA05yydRyTMu7CR3/LdjLHaeGk0DHTIN5Tt4PiR0YuQ9Sa5Ir9LtvlByVncQJy7E+z33zP39+CzAA8EmJ9NTdgeQAAAAASUVORK5CYII='));
+}
+
+
+//
+// Add a grid to an element's background.
+// @see http://zengrids.com/help/#zen-grid-background
+//
+@mixin zen-grid-background(
+  $column-count         : $zen-column-count,
+  $gutter-width         : $zen-gutter-width,
+  $grid-width           : $zen-grid-width,
+  $grid-color           : $zen-grid-color,
+  $grid-numbers         : $zen-grid-numbers,
+  $reverse-all-floats   : $zen-reverse-all-floats
+) {
+
+  // The CSS3 Gradient syntax doesn't allow for calc() to be used in color
+  // stops, so we can't express the columns as 20% + 10px. Instead we are going
+  // to divide all our columns in half and into 2 groups: one group for the left
+  // halves of the columns and one group for the right halves. Then we'll use
+  // background position to shift the left halves over to the right by a half
+  // gutter width and shift the right halves over to the left by a half gutter
+  // width and just let the two sets of gradients overlap in the middle. Easy.
+
+  $bg-images            : ();
+  $left-half-gradient   : ();
+  $right-half-gradient  : ();
+
+  // Calculate half of the unit width.
+  $half-unit-width      : zen-unit-width(2 * $column-count, $grid-width);
+
+  // Determine the float direction.
+  $dir                  : left;
+  @if $reverse-all-floats {
+    $dir                : zen-direction-flip($dir);
+  }
+
+  @for $count from 1 through $column-count {
+    // First add the grid numbers to the background images list.
+    $position: (2 * $count - 1) * $half-unit-width;
+    $reverse-count: $column-count + 1 - $count;
+
+    @if $dir == left {
+      @if $grid-numbers == both or $grid-numbers == top {
+        $bg-images  : append($bg-images, nth($zen-grid-number-images, $count) $position top no-repeat, comma);
+      }
+      @if $grid-numbers == both {
+        $bg-images  : append($bg-images, nth($zen-grid-number-images, $reverse-count) $position bottom no-repeat, comma);
+      }
+    }
+    @else {
+      @if $grid-numbers == both {
+        $bg-images  : append($bg-images, nth($zen-grid-number-images, $count) $position bottom no-repeat, comma);
+      }
+      @if $grid-numbers == both or $grid-numbers == top {
+        $bg-images  : append($bg-images, nth($zen-grid-number-images, $reverse-count) $position top no-repeat, comma);
+      }
+    }
+
+    // Next, build the color stops for the left halves of the column gradients.
+    @if $count > 1 {
+      $stop: (2 * $count - 2) * $half-unit-width;
+      $left-half-gradient: append($left-half-gradient, transparent $stop, comma);
+      $left-half-gradient: append($left-half-gradient, $grid-color $stop, comma);
+    }
+
+    $stop: (2 * $count - 1) * $half-unit-width;
+    $left-half-gradient: append($left-half-gradient, $grid-color $stop, comma);
+    $left-half-gradient: append($left-half-gradient, transparent $stop, comma);
+
+    // Next, build the color stops for the right halves of the column gradients.
+    $right-half-gradient: append($right-half-gradient, transparent $stop, comma);
+    $right-half-gradient: append($right-half-gradient, $grid-color $stop, comma);
+
+    @if $count < $column-count {
+      $stop: (2 * $count) * $half-unit-width;
+      $right-half-gradient: append($right-half-gradient, $grid-color $stop, comma);
+      $right-half-gradient: append($right-half-gradient, transparent $stop, comma);
+    }
+  }
+
+  // Last, add the gradient halves to the background images list.
+  $bg-images  : append($bg-images, linear-gradient(left, $left-half-gradient) zen-half-gutter($gutter-width) top no-repeat, comma);
+  $bg-images  : append($bg-images, linear-gradient(left, $right-half-gradient) (-(zen-half-gutter($gutter-width))) top no-repeat, comma);
+
+  // Apply the full list of background images.
+  @include background($bg-images);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/stylesheets/zen/_grids.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,364 @@
+//
+// Mixins for the Zen Grids system.
+//
+
+
+// Specify the number of columns in the grid. @see http://zengrids.com/help/#zen-column-count
+$zen-column-count                 : 1           !default;
+
+// Specify the width of the gutters (as padding). @see http://zengrids.com/help/#zen-gutter-width
+$zen-gutter-width                 : 20px        !default;
+
+// @see http://zengrids.com/help/#zen-auto-include-item-base
+$zen-auto-include-item-base       : true        !default;
+$zen-auto-include-flow-item-base  : true        !default;
+
+// Specify the width of the entire grid. @see http://zengrids.com/help/#zen-grid-width
+$zen-grid-width                   : 100%        !default;
+
+// The box-sizing polyfill for IE6/7 requires an absolute path. @see http://zengrids.com/help/#box-sizing-polyfill-path
+$box-sizing-polyfill-path         : ""          !default;
+
+// Specify the CSS3 box-sizing method. @see http://zengrids.com/help/#zen-box-sizing
+$zen-box-sizing                   : border-box  !default;
+
+// @see http://zengrids.com/help/#legacy-support-for-ie7
+$legacy-support-for-ie7           : false       !default;
+$legacy-support-for-ie6           : false       !default;
+
+// Specify the default floating direction for zen's mixins. @see http://zengrids.com/help/#zen-float-direction
+$zen-float-direction              : left        !default;
+
+// Reverse the floating direction in all zen's mixins. @see http://zengrids.com/help/#zen-reverse-all-floats
+$zen-reverse-all-floats           : false       !default;
+
+
+//
+// Apply this to the grid container element.
+// @see http://zengrids.com/help/#zen-grid-container
+//
+@mixin zen-grid-container {
+  @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
+    *position: relative; // @TODO: This is a pre-IE8 line of code; don't remember why its needed.
+  }
+  // We use the "micro clearfix", instead of Compass' clearfix or pie-clearfix.
+  &:before,
+  &:after {
+    content: "";
+    display: table;
+  }
+  &:after {
+    clear: both;
+  }
+  @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
+    *zoom: 1;
+  }
+}
+
+//
+// Apply this to any grid item that is also a grid container element for a
+// nested grid. @see http://zengrids.com/help/#zen-nested-container
+//
+@mixin zen-nested-container {
+  padding: {
+    left: 0;
+    right: 0;
+  }
+}
+
+//
+// Apply this to each grid item. @see http://zengrids.com/help/#zen-grid-item
+//
+@mixin zen-grid-item(
+  $column-span,
+  $column-position,
+  $float-direction          : $zen-float-direction,
+  $column-count             : $zen-column-count,
+  $gutter-width             : $zen-gutter-width,
+  $grid-width               : $zen-grid-width,
+  $box-sizing               : $zen-box-sizing,
+  $reverse-all-floats       : $zen-reverse-all-floats,
+  $auto-include-item-base   : $zen-auto-include-item-base
+) {
+
+  // Calculate the unit width.
+  $unit-width: zen-unit-width($column-count, $grid-width);
+
+  // Calculate the item's width.
+  $width: zen-grid-item-width($column-span, $column-count, $gutter-width, $grid-width, $box-sizing);
+
+  // Determine the float direction and its reverse.
+  $dir: $float-direction;
+  @if $reverse-all-floats {
+    $dir: zen-direction-flip($dir);
+  }
+  $rev: zen-direction-flip($dir);
+
+  float: $dir;
+  width: $width;
+  margin: {
+    #{$dir}: ($column-position - 1) * $unit-width;
+    #{$rev}: (1 - $column-position - $column-span) * $unit-width;
+  }
+
+  // Auto-apply the unit base mixin.
+  @if $auto-include-item-base {
+    @include zen-grid-item-base($gutter-width, $box-sizing);
+  }
+}
+
+//
+// Applies a standard set of properites to all grid items in the layout.
+// @see http://zengrids.com/help/#zen-grid-item-base
+//
+@mixin zen-grid-item-base(
+  $gutter-width       : $zen-gutter-width,
+  $box-sizing         : $zen-box-sizing,
+  $flow-direction     : $zen-float-direction,
+  $reverse-all-flows  : $zen-reverse-all-floats
+) {
+
+  $dir: $flow-direction;
+  @if $reverse-all-flows {
+    $dir: zen-direction-flip($dir);
+  }
+
+  padding: {
+    left: zen-half-gutter($gutter-width, left, $dir);
+    right: zen-half-gutter($gutter-width, right, $dir);
+  }
+  // Specify the border-box properties.
+  @if $box-sizing == border-box {
+    -moz-box-sizing: border-box;
+    -webkit-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    box-sizing: border-box;
+  }
+  // Prevent left/right borders since they'll break the layout with content-box.
+  @if $box-sizing == content-box {
+    border: {
+      left: 0 !important;
+      right: 0 !important;
+    }
+  }
+  // Prevent overflowing content from being hidden beneath other grid items.
+  word-wrap: break-word; // A very nice CSS3 property.
+
+  @if ($legacy-support-for-ie6 or $legacy-support-for-ie7) {
+    @if $box-sizing == border-box and $box-sizing-polyfill-path == "" {
+      @warn "IE legacy support is on, but $box-sizing is set to #{$box-sizing} and the $box-sizing-polyfill-path is empty.";
+    }
+    @if $box-sizing-polyfill-path != "" {
+      *behavior: url($box-sizing-polyfill-path);
+    }
+    @if $legacy-support-for-ie6 {
+      _display: inline; // Display inline or double your floated margin! [1]
+      _overflow: hidden; // Prevent overflowing content from breaking the layout.
+      _overflow-y: visible; // In IE6, overflow visible is broken [2]
+      // 1. http://www.positioniseverything.net/explorer/doubled-margin.html
+      // 2. http://www.howtocreate.co.uk/wrongWithIE/?chapter=overflow%3Avisible%3B
+    }
+  }
+}
+
+//
+// Apply this to grid items that need to be cleared below other grid items.
+// @see http://zengrids.com/help/#zen-clear
+//
+@mixin zen-clear(
+  $float-direction      : $zen-float-direction,
+  $reverse-all-floats   : $zen-reverse-all-floats
+) {
+  // Determine the float direction.
+  $dir: $float-direction;
+  @if $reverse-all-floats {
+    $dir: zen-direction-flip($dir);
+  }
+  clear: $dir;
+}
+
+//
+// Apply this to flow items that need to be floated.
+// @see http://zengrids.com/help/#zen-float
+//
+@mixin zen-float(
+  $float-direction      : $zen-float-direction,
+  $reverse-all-floats   : $zen-reverse-all-floats
+) {
+  // Determine the float direction.
+  $dir: $float-direction;
+  @if $reverse-all-floats {
+    $dir: zen-direction-flip($dir);
+  }
+  float: $dir;
+}
+
+//
+// Apply this to an HTML item that is in the normal flow of a document to help
+// align it to the grid. @see http://zengrids.com/help/#zen-float
+//
+@mixin zen-grid-flow-item(
+  $column-span,
+  $parent-column-count          : false,
+  $alpha-gutter                 : false,
+  $omega-gutter                 : true,
+  $flow-direction               : $zen-float-direction,
+  $column-count                 : $zen-column-count,
+  $gutter-width                 : $zen-gutter-width,
+  $grid-width                   : $zen-grid-width,
+  $box-sizing                   : $zen-box-sizing,
+  $reverse-all-flows            : $zen-reverse-all-floats,
+  $auto-include-flow-item-base  : $zen-auto-include-flow-item-base
+) {
+
+  $columns: $column-count;
+  @if unit($grid-width) == "%" {
+    @if $parent-column-count == false {
+      @warn "For responsive layouts with a percentage-based grid width, you must set the $parent-column-count to the number of columns that the parent element spans.";
+    }
+    @else {
+      $columns: $parent-column-count;
+    }
+  }
+
+  $dir: $flow-direction;
+  @if $reverse-all-flows {
+    $dir: zen-direction-flip($dir);
+  }
+  $rev: zen-direction-flip($dir);
+
+  // Auto-apply the unit base mixin.
+  @if $auto-include-flow-item-base {
+    @include zen-grid-item-base($gutter-width, $box-sizing);
+  }
+
+  // Calculate the item's width.
+  $width: zen-grid-item-width($column-span, $columns, $gutter-width, $grid-width, $box-sizing);
+
+  @if unit($grid-width) == "%" {
+    // Our percentage $width is off if the parent has $gutter-width padding.
+    // Calculate an adjusted gutter to fix the width.
+    $adjusted-gutter: ($columns - $column-span) * $gutter-width / $columns;
+
+    width: $width;
+
+    // Ensure the HTML item either has a full gutter or no gutter on each side.
+    padding-#{$dir}: 0;
+    @if $alpha-gutter {
+      margin-#{$dir}: $gutter-width;
+    }
+    padding-#{$rev}: $adjusted-gutter;
+    @if $omega-gutter {
+      margin-#{$rev}: $gutter-width - $adjusted-gutter;
+    }
+    @else {
+      margin-#{$rev}: -($adjusted-gutter);
+    }
+  }
+  @else {
+    @if $alpha-gutter and $omega-gutter {
+      width: $width;
+      @if $gutter-width != 0 {
+        margin: {
+          #{$dir}: zen-half-gutter($gutter-width, left, $dir);
+          #{$rev}: zen-half-gutter($gutter-width, right, $dir);
+        }
+      }
+    }
+    @else if not $alpha-gutter and not $omega-gutter {
+      width: if($box-sizing == border-box, ($width - $gutter-width), $width);
+      @if $gutter-width != 0 {
+        padding: {
+          left: 0;
+          right: 0;
+        }
+      }
+    }
+    @else {
+      width: $width;
+      @if $omega-gutter {
+        padding-#{$dir}: 0;
+        padding-#{$rev}: $gutter-width;
+      }
+      @else {
+        padding-#{$dir}: $gutter-width;
+        padding-#{$rev}: 0;
+      }
+    }
+  }
+}
+
+
+//
+// Helper functions for the Zen mixins.
+//
+
+// Returns a half gutter width. @see http://zengrids.com/help/#zen-half-gutter
+@function zen-half-gutter(
+  $gutter-width     : $zen-gutter-width,
+  $gutter-side      : $zen-float-direction,
+  $flow-direction   : $zen-float-direction
+) {
+  $half-gutter: $gutter-width / 2;
+  // Special handling in case gutter has an odd number of pixels.
+  @if unit($gutter-width) == "px" {
+    @if $gutter-side == $flow-direction {
+      @return floor($half-gutter);
+    }
+    @else {
+      @return ceil($half-gutter);
+    }
+  }
+  @return $half-gutter;
+}
+
+// Calculates the unit width of a column. @see http://zengrids.com/help/#zen-unit-width
+@function zen-unit-width(
+  $column-count   : $zen-column-count,
+  $grid-width     : $zen-grid-width
+) {
+  $unit-width: $grid-width / $column-count;
+  @if unit($unit-width) == "px" and floor($unit-width) != ceil($unit-width) {
+    @warn "You may experience rounding errors as the grid width, #{$grid-width}, does not divide evenly into #{$column-count} columns.";
+  }
+  @return $unit-width;
+}
+
+// Calculates the width of a grid item that spans the specified number of columns.
+// @see http://zengrids.com/help/#zen-grid-item-width
+@function zen-grid-item-width(
+  $column-span,
+  $column-count   : $zen-column-count,
+  $gutter-width   : $zen-gutter-width,
+  $grid-width     : $zen-grid-width,
+  $box-sizing     : $zen-box-sizing
+) {
+  $width: $column-span * zen-unit-width($column-count, $grid-width);
+  @if $box-sizing == content-box {
+    @if not comparable($width, $gutter-width) {
+      $units-gutter: unit($gutter-width);
+      $units-grid: unit($grid-width);
+      @warn "The layout cannot be calculated correctly; when using box-sizing: content-box, the units of the gutter (#{$units-gutter} did not match the units of the grid width (#{$units-grid}).";
+    }
+    $width: $width - $gutter-width;
+  }
+  @return $width;
+}
+
+// Returns the opposite direction, given "left" or "right".
+// @see http://zengrids.com/help/#zen-direction-flip
+@function zen-direction-flip(
+  $dir
+) {
+  @if $dir == left {
+    @return right;
+  }
+  @else if $dir == right {
+    @return left;
+  }
+  @else if $dir == none or $dir == both {
+    @return $dir;
+  }
+  @warn "Invalid direction passed to zen-direction-flip().";
+  @return both;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_init.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,21 @@
+//
+// @file
+// This file sets up all our variables and load all the modules we need for all
+// generated CSS in this project. To use it, simply: @import "init";
+//
+
+// Legacy browser variables for Compass.
+$legacy-support-for-ie6     : false;
+$legacy-support-for-ie7     : false;
+
+// Set up Zen Grids.
+$zen-column-count           : 1;
+$zen-gutter-width           : 20px;
+$zen-auto-include-item-base : false;
+
+//
+// Import our modules.
+//
+@import "zen";
+@import "zen/background";
+@import "visually-hidden";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_layout.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,117 @@
+/**
+ * @file
+ * Layout styles.
+ *
+ * We use example breakpoints of 444px, 666px, 777px, 999px and 1111px. The
+ * right breakpoints to use for your site depend on your content.
+ */
+
+.centered {
+  @include zen-grid-background();
+  padding: {
+    top: 1.5em;
+    bottom: 1.5em;
+  }
+  margin: {
+    left: auto;
+    right: auto;
+  }
+  max-width: 1111px;
+}
+
+/* Set the shared properties for all grid items. */
+%grid-item,
+.grid-item {
+  @include zen-grid-item-base();
+}
+
+/* Set the container for our grid items. */
+.main {
+  @include zen-grid-container();
+}
+
+/* Horizontal navigation bar */
+@media all and (min-width: 444px) {
+  $zen-column-count: 1;
+  $navbar-height: 5em;
+
+  .main {
+    padding-top: $navbar-height;
+  }
+  .grid-item__menu {
+    @include zen-grid-item(1, 1);
+    margin-top: -$navbar-height;
+    height: $navbar-height;
+  }
+}
+
+@media all and (min-width: 444px) and (max-width: 665px) {
+  $zen-column-count: 2;
+
+  .centered {
+    @include zen-grid-background();
+  }
+  .grid-item__content {
+    @include zen-grid-item(2, 1);
+  }
+  .grid-item__aside1 {
+    @include zen-clear(); // Clear left-floated elements (.grid-item__content)
+    @include zen-grid-item(1, 1);
+  }
+  .grid-item__aside2 {
+    @include zen-grid-item(1, 2);
+  }
+}
+
+@media all and (min-width: 666px) and (max-width: 776px) {
+  $zen-column-count: 3;
+
+  .centered {
+    @include zen-grid-background();
+  }
+  .grid-item__content {
+    @include zen-grid-item(2, 1);
+  }
+  .grid-item__aside1 {
+    @include zen-grid-item(1, 1, right); // Position from the right
+  }
+  .grid-item__aside2 {
+    @include zen-clear(); // Clear left-floated elements (.grid-item__content)
+    @include zen-grid-item(2, 1);
+  }
+}
+
+@media all and (min-width: 777px) and (max-width: 998px) {
+  $zen-column-count: 3;
+
+  .centered {
+    @include zen-grid-background();
+  }
+  .grid-item__content {
+    @include zen-grid-item(2, 1);
+  }
+  .grid-item__aside1 {
+    @include zen-grid-item(1, 1, right); // Position from the right
+  }
+  .grid-item__aside2 {
+    @include zen-clear(right); // Clear right-floated elements (.grid-item__aside1)
+    @include zen-grid-item(1, 1, right);
+  }
+}
+
+@media all and (min-width: 999px) {
+  $zen-column-count: 5;
+
+  .centered {
+    @include zen-grid-background();
+  }
+  .grid-item__content {
+    @include zen-grid-item(3, 2);
+  }
+  .grid-item__aside1 {
+    @include zen-grid-item(1, 1);
+  }
+  .grid-item__aside2 {
+    @include zen-grid-item(1, 5);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_modules.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,78 @@
+/**
+ * @file
+ * Modular styles.
+ */
+
+
+html {
+  font-size: 16px;
+  line-height: 1.5em;
+}
+
+p {
+  margin: {
+    top: 1.5em;
+    bottom: 1.5em;
+  }
+}
+
+/* Skip link styling */
+.skip-link {
+  margin: 0;
+}
+.skip-link__link,
+.skip-link__link:visited {
+  display: block;
+  width: 100%;
+  padding: 2px 0 3px 0;
+  text-align: center;
+  background-color: #666;
+  color: #fff;
+}
+/* The skip-link link will be completely hidden until a user tabs to the link. */
+@media all and (min-width: 444px) {
+  .skip-link__link {
+    @include visually-focusable();
+  }
+}
+
+/* Set a consistent padding around all containers */
+.header,
+.footer {
+  @extend %grid-item;
+}
+.grid-item,
+.footer {
+  padding-top: 1.5em;
+}
+
+/* Source-order meta info */
+header {
+  h1,
+  h2 {
+    display: inline;
+  }
+  p {
+    display: inline;
+    text-transform: uppercase;
+    font-size: 0.8em;
+    color: #c00;
+  }
+}
+
+.pull-quote {
+  $font-size: 1.2em;
+
+  @include zen-float();
+  @include zen-grid-flow-item(1, 2);
+  @media all and (min-width: 999px) {
+    @include zen-grid-flow-item(1, 3);
+  }
+  margin: {
+    top: 1em*(1.5em/$font-size);
+  }
+  font-size: $font-size;
+  line-height: 1em*(1.5em/$font-size);
+  font-weight: bold;
+  font-style: italic;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/_visually-hidden.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,51 @@
+//
+// @file
+// Accessibility features.
+//
+
+// As defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
+@mixin visually-hidden {
+  position: absolute !important;
+  height: 1px;
+  width: 1px;
+  overflow: hidden;
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
+  }
+  clip: rect(1px, 1px, 1px, 1px);
+}
+
+// Turns off the visually-hidden effect.
+@mixin visually-hidden-off {
+  position: static !important;
+  clip: auto;
+  height: auto;
+  width: auto;
+  overflow: auto;
+}
+
+// Makes an element visually hidden, except when it receives focus.
+@mixin visually-focusable {
+  @include visually-hidden();
+
+  &:active,
+  &:focus {
+    @include visually-hidden-off();
+  }
+}
+
+// Placeholder styles for use with @extend.
+%visually-hidden {
+  @include visually-hidden();
+}
+%visually-hidden-off {
+  @include visually-hidden-off();
+}
+%visually-focusable {
+  @extend %visually-hidden;
+
+  &:active,
+  &:focus {
+    @extend %visually-hidden-off;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/example.html	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,71 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="utf-8">
+	<title>Zen Grids: sample usage</title>
+  <link rel="stylesheet" href="stylesheets/styles.css" media="all">
+</head>
+<body>
+
+<p class="skip-link">
+<a href="#main-menu" class="skip-link__link">Jump to main menu</a>
+</p>
+
+<div class="centered">
+
+  <header class="header">
+    <h1 class="header__title">Zen Grids: sample usage</h1>
+  </header>
+
+  <div class="main">
+
+    <article class="grid-item grid-item__content" role="main">
+      <header>
+        <h1>Main content</h1>
+        <p>Source order: 1</p>
+      </header>
+      <aside class="pull-quote">‘There’s no such thing!’</aside>
+      <p>Alice did not quite know what to say to this: so she helped herself to some tea and bread-and-butter, and then turned to the Dormouse, and repeated her question. ‘Why did they live at the bottom of a well?’</p>
+      <p>The Dormouse again took a minute or two to think about it, and then said, ‘It was a treacle-well.’</p>
+      <p>‘There’s no such thing!’ Alice was beginning very angrily, but the Hatter and the March Hare went ‘Sh! sh!’ and the Dormouse sulkily remarked, ‘If you can’t be civil, you’d better finish the story for yourself.’</p>
+      <p>‘No, please go on!’ Alice said very humbly; ‘I won’t interrupt again. I dare say there may be ONE.’</p>
+    </article>
+
+    <nav class="grid-item grid-item__menu" role="navigation" id="main-menu">
+      <header>
+        <h2>Menu</h2>
+        <p>Source order: 2</p>
+      </header>
+      <a href="#">Alice</a> ★
+      <a href="#">Mad Hatter</a> ★
+      <a href="#">The Queen</a> ★
+      <a href="#">Tom Petty</a>
+    </nav>
+
+    <aside class="grid-item grid-item__aside1">
+      <header>
+        <h2>Aside</h2>
+        <p>Source order: 3</p>
+      </header>
+      <p>‘Have some wine,’ the March Hare said in an encouraging tone.</p>
+    </aside>
+
+    <aside class="grid-item grid-item__aside2">
+      <header>
+        <h2>Aside</h2>
+        <p>Source order: 4</p>
+      </header>
+      <p>‘Please would you tell me,’ said Alice, a little timidly, for she was not quite sure whether it was good manners for her to speak first, ‘why your cat grins like that?’</p>
+      <p>‘It’s a Cheshire cat,’ said the Duchess, ‘and that’s why. Pig!’</p>
+    </aside>
+
+  </div>
+
+  <footer class="footer">
+    <small>© 2013. The small print.</small>
+  </footer>
+
+</div>
+
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/manifest.rb	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+description "The Zen Grids system."
+
+stylesheet  '_init.scss',             :media => 'all'
+stylesheet  '_layout.scss',           :media => 'all'
+stylesheet  '_modules.scss',          :media => 'all'
+stylesheet  '_visually-hidden.scss',  :media => 'all'
+stylesheet  'styles.scss',            :media => 'all'
+
+html        'example.html'
+
+help %Q{
+Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts. To learn more, visit:
+
+  http://zengrids.com
+}
+
+welcome_message %Q{
+You rock! The Zen Grids system is now installed on your computer. Go check out
+how to use the system at:
+
+  http://zengrids.com
+
+It's easy!
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/project/styles.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+// Import the initialization partial.
+@import "init";
+
+// Aggregate all the stylesheets into one file.
+@import "layout";
+@import "modules";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+UNIT TESTS FOR ZEN GRIDS
+------------------------
+
+To run the unit tests for Zen Grids:
+
+1. Create a "tests" Compass project using the unit-tests pattern:
+
+   compass create tests -r zen-grids --using=zen-grids/unit-tests
+
+2. From inside the "tests" project, compare the compiled stylesheets to the
+   previous unit test results in the test-results directory:
+
+   diff -r test-results/ stylesheets/
+
+   If the unit tests were successful, the above command should report no
+   differences.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/manifest.rb	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,39 @@
+description "Unit tests for the Zen Grids system."
+
+stylesheet 'sass/function-zen-direction-flip.scss',  :media => 'all', :to => 'function-zen-direction-flip.scss'
+stylesheet 'sass/function-zen-grid-item-width.scss', :media => 'all', :to => 'function-zen-grid-item-width.scss'
+stylesheet 'sass/function-zen-half-gutter.scss',     :media => 'all', :to => 'function-zen-half-gutter.scss'
+stylesheet 'sass/function-zen-unit-width.scss',      :media => 'all', :to => 'function-zen-unit-width.scss'
+stylesheet 'sass/zen-clear.scss',                    :media => 'all', :to => 'zen-clear.scss'
+stylesheet 'sass/zen-float.scss',                    :media => 'all', :to => 'zen-float.scss'
+stylesheet 'sass/zen-grid-background.scss',          :media => 'all', :to => 'zen-grid-background.scss'
+stylesheet 'sass/zen-grid-container.scss',           :media => 'all', :to => 'zen-grid-container.scss'
+stylesheet 'sass/zen-grid-flow-item.scss',           :media => 'all', :to => 'zen-grid-flow-item.scss'
+stylesheet 'sass/zen-grid-item-base.scss',           :media => 'all', :to => 'zen-grid-item-base.scss'
+stylesheet 'sass/zen-grid-item.scss',                :media => 'all', :to => 'zen-grid-item.scss'
+stylesheet 'sass/zen-nested-container.scss',         :media => 'all', :to => 'zen-nested-container.scss'
+
+file 'test-results/function-zen-direction-flip.css'
+file 'test-results/function-zen-grid-item-width.css'
+file 'test-results/function-zen-half-gutter.css'
+file 'test-results/function-zen-unit-width.css'
+file 'test-results/zen-clear.css'
+file 'test-results/zen-float.css'
+file 'test-results/zen-grid-background.css'
+file 'test-results/zen-grid-container.css'
+file 'test-results/zen-grid-flow-item.css'
+file 'test-results/zen-grid-item-base.css'
+file 'test-results/zen-grid-item.css'
+file 'test-results/zen-nested-container.css'
+
+file 'README.txt'
+
+help %Q{
+To run the unit tests, simply run "compass compile" and compare the generated
+CSS to those in the results directory.
+  diff -r results css
+}
+
+welcome_message %Q{
+You rock! The unit tests for the Zen Grids system are now installed.
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-direction-flip.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+/**
+ * @file
+ * Test zen-direction-flip()
+ */
+
+@import "zen";
+
+#test-zen-direction-flip {
+  /* Test zen-direction-flip(left) */
+  float: zen-direction-flip(left);
+
+  /* Test zen-direction-flip(right) */
+  float: zen-direction-flip(right);
+
+  /* Test zen-direction-flip(both) */
+  float: zen-direction-flip(both);
+
+  /* Test zen-direction-flip(none) */
+  float: zen-direction-flip(none);
+
+  /* Test zen-direction-flip(invalid) */
+  float: zen-direction-flip(invalid);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-grid-item-width.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,38 @@
+/**
+ * @file
+ * Test zen-grid-item-width()
+ */
+
+@import "zen";
+
+#test-zen-grid-item-width {
+  /* Test zen-grid-item-width(1) with default $zen-column-count: 1 */
+  width: zen-grid-item-width(1);
+
+  /* Test zen-grid-item-width(2) with $zen-column-count: 5 */
+  $zen-column-count: 5;
+  width: zen-grid-item-width(2);
+  $zen-column-count: 1;
+
+  /* Test zen-grid-item-width(2, 5) */
+  width: zen-grid-item-width(2, 5);
+
+  /* Test zen-grid-item-width(1) with $zen-grid-width: 100px */
+  $zen-grid-width: 100px;
+  width: zen-grid-item-width(1);
+  $zen-grid-width: 100%;
+
+  /* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */
+  $zen-grid-width: 100px;
+  width: zen-grid-item-width(2, 5);
+  $zen-grid-width: 100%;
+
+  /* Test zen-grid-item-width(2, 5, $grid-width: 1000px) */
+  width: zen-grid-item-width(2, 5, $grid-width: 1000px);
+
+  /* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */
+  width: zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box);
+
+  /* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */
+  width: zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-half-gutter.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+/**
+ * @file
+ * Test zen-half-gutter()
+ */
+
+@import "zen";
+
+#test-zen-half-gutter {
+  /* Test zen-half-gutter() with default $zen-gutter-width: 20px */
+  padding-left: zen-half-gutter();
+
+  /* Test zen-half-gutter() with $zen-gutter-width: 30px */
+  $zen-gutter-width: 30px;
+  padding-left: zen-half-gutter();
+
+  /* Test zen-half-gutter(10em) */
+  padding-left: zen-half-gutter(10em);
+
+  /* Test zen-half-gutter(11em) */
+  padding-left: zen-half-gutter(11em);
+
+  /* Test zen-half-gutter(10px) */
+  padding-left: zen-half-gutter(10px);
+
+  /* Test zen-half-gutter(11px) */
+  padding-left: zen-half-gutter(11px);
+
+  /* Test zen-half-gutter(11px, right) */
+  padding-left: zen-half-gutter(11px, right);
+
+  /* Test zen-half-gutter(11px) with $zen-float-direction: right */
+  $zen-float-direction: right;
+  padding-left: zen-half-gutter(11px);
+
+  /* Test zen-half-gutter(11px, left) with $zen-float-direction: right */
+  padding-left: zen-half-gutter(11px, left);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/function-zen-unit-width.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,32 @@
+/**
+ * @file
+ * Test zen-unit-width()
+ */
+
+@import "zen";
+
+#test-zen-unit-width {
+  /* Test zen-unit-width() with default $zen-column-count: 1 */
+  width: zen-unit-width();
+
+  /* Test zen-unit-width() with $zen-column-count: 5 */
+  $zen-column-count: 5;
+  width: zen-unit-width();
+  $zen-column-count: 1;
+
+  /* Test zen-unit-width(5) */
+  width: zen-unit-width(5);
+
+  /* Test zen-unit-width() with $zen-grid-width: 100px */
+  $zen-grid-width: 100px;
+  width: zen-unit-width();
+  $zen-grid-width: 100%;
+
+  /* Test zen-unit-width(5) with $zen-grid-width: 100px */
+  $zen-grid-width: 100px;
+  width: zen-unit-width(5);
+  $zen-grid-width: 100%;
+
+  /* Test zen-unit-width(5, 100px) */
+  width: zen-unit-width(5, 100px);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-clear.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,26 @@
+/**
+ * @file
+ * Test zen-clear()
+ */
+
+@import "zen";
+
+#test-zen-clear {
+  /* Test zen-clear() */
+  @include zen-clear();
+
+  /* Test zen-clear() with $zen-float-direction: right */
+  $zen-float-direction: right;
+  @include zen-clear();
+  $zen-float-direction: left;
+
+  /* Test zen-clear(left) */
+  @include zen-clear(left);
+
+  /* Test zen-clear(left, $reverse-all-floats: TRUE) */
+  @include zen-clear(left, $reverse-all-floats: TRUE);
+
+  /* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */
+  $zen-reverse-all-floats: TRUE;
+  @include zen-clear(left);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-float.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,26 @@
+/**
+ * @file
+ * Test zen-float()
+ */
+
+@import "zen";
+
+#test-zen-float {
+  /* Test zen-float() */
+  @include zen-float();
+
+  /* Test zen-float() with $zen-float-direction: right */
+  $zen-float-direction: right;
+  @include zen-float();
+  $zen-float-direction: left;
+
+  /* Test zen-float(left) */
+  @include zen-float(left);
+
+  /* Test zen-float(left, $reverse-all-floats: TRUE) */
+  @include zen-float(left, $reverse-all-floats: TRUE);
+
+  /* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */
+  $zen-reverse-all-floats: TRUE;
+  @include zen-float(left);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-background.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,69 @@
+/**
+ * @file
+ * Test zen-grid-background()
+ */
+
+@import "zen/background";
+
+#test-zen-grid-background {
+  /* Test zen-grid-background() with 1 column grid and 20px gutter */
+  $zen-grid-numbers: top;
+  @include zen-grid-background();
+  $zen-grid-numbers: both;
+
+  // Turn off numbers for all other tests.
+  $zen-grid-numbers: none;
+
+  /* Test zen-grid-background() with 12 column grid and 20px gutter */
+  $zen-column-count: 12;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+
+  /* Test zen-grid-background(), 5 column grid, 10% gutter and black grid color */
+  $zen-column-count: 5;
+  $zen-gutter-width: 10%;
+  $zen-grid-color: #000;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-grid-color: rgba(#ffdede, 0.8);
+
+  /* Test zen-grid-background() with 5 column grid and 40px gutter */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-background(), 5 column grid and 10% gutter and $zen-reverse-all-floats */
+  $zen-column-count: 5;
+  $zen-gutter-width: 10%;
+  $zen-reverse-all-floats: true;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-reverse-all-floats: false;
+
+  /* Test zen-grid-background() with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  $zen-reverse-all-floats: true;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-reverse-all-floats: false;
+
+  /* Test zen-grid-background() with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
+  $zen-grid-width: 1000px;
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-background();
+  $zen-grid-width: 100%;
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-background() with all 24 grid numbers */
+  $zen-column-count: 24;
+  @include zen-grid-background();
+  $zen-column-count: 1;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-container.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+/**
+ * @file
+ * Test zen-grid-container()
+ */
+
+@import "zen";
+
+#test-zen-grid-container {
+  /* Test zen-grid-container() */
+  @include zen-grid-container();
+}
+
+#test-zen-grid-container-2 {
+  /* Test zen-grid-container() with $legacy-support-for-ie7: true */
+  $legacy-support-for-ie7: true;
+  @include zen-grid-container();
+  $legacy-support-for-ie7: false;
+}
+
+#test-zen-grid-container-3 {
+  /* Test zen-grid-container() with $legacy-support-for-ie6: true */
+  $legacy-support-for-ie6: true;
+  $legacy-support-for-ie7: true;
+  @include zen-grid-container();
+  $legacy-support-for-ie6: false;
+  $legacy-support-for-ie7: false;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-flow-item.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,81 @@
+/**
+ * @file
+ * Test zen-grid-flow-item()
+ */
+
+@import "zen";
+
+#test-zen-grid-flow-item {
+  /* Test zen-grid-flow-item(1) without setting $column-count */
+  @include zen-grid-flow-item(1);
+
+  /* Test zen-grid-flow-item(1, 4) with 20px gutter */
+  @include zen-grid-flow-item(1, 4);
+
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter */
+  $zen-gutter-width: 15px;
+  @include zen-grid-flow-item(1, 4);
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter and $zen-grid-width: 1000px */
+  $zen-column-count: 5;
+  $zen-grid-width: 1000px;
+  @include zen-grid-flow-item(1);
+  $zen-column-count: 1;
+  $zen-grid-width: 100%;
+
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */
+  $zen-column-count: 5;
+  $zen-grid-width: 1000px;
+  @include zen-grid-flow-item(1, $alpha-gutter: true, $omega-gutter: false);
+  $zen-column-count: 1;
+  $zen-grid-width: 100%;
+
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */
+  $zen-column-count: 5;
+  $zen-grid-width: 1000px;
+  @include zen-grid-flow-item(1, $omega-gutter: false);
+  $zen-column-count: 1;
+  $zen-grid-width: 100%;
+
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $zen-float-direction: right */
+  $zen-gutter-width: 15px;
+  $zen-float-direction: right;
+  @include zen-grid-flow-item(1, 4);
+  $zen-gutter-width: 20px;
+  $zen-float-direction: left;
+
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $alpha-gutter: true */
+  $zen-gutter-width: 15px;
+  @include zen-grid-flow-item(1, 4, $alpha-gutter: true);
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $omega-gutter: false */
+  $zen-gutter-width: 15px;
+  @include zen-grid-flow-item(1, 4, $omega-gutter: false);
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-flow-item(3, 4) with 20px gutter and $alpha-gutter: true */
+  @include zen-grid-flow-item(3, 4, $alpha-gutter: true);
+
+  /* Test zen-grid-flow-item(3, 4) with 20px gutter and $omega-gutter: false */
+  @include zen-grid-flow-item(3, 4, $omega-gutter: false);
+
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter, $zen-float-direction: right and $alpha-gutter: true */
+  $zen-gutter-width: 15px;
+  $zen-float-direction: right;
+  @include zen-grid-flow-item(1, 4, $alpha-gutter: true);
+  $zen-gutter-width: 20px;
+  $zen-float-direction: left;
+
+  /* Test zen-grid-flow-item(1, 4) with $zen-box-sizing: content-box and 10% gutter */
+  $zen-gutter-width: 10%;
+  $zen-box-sizing: content-box;
+  @include zen-grid-flow-item(1, 4);
+  $zen-gutter-width: 20px;
+  $zen-box-sizing: border-box;
+
+  /* Test zen-grid-flow-item(1, 4) with $zen-auto-include-flow-item-base: false */
+  $zen-auto-include-flow-item-base: false;
+  @include zen-grid-flow-item(1, 4);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item-base.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,54 @@
+/**
+ * @file
+ * Test zen-grid-item-base()
+ */
+
+@import "zen";
+
+#test-zen-grid-item-base {
+  /* Test zen-grid-item-base() */
+  @include zen-grid-item-base();
+
+  /* Test zen-grid-item-base() with $zen-box-sizing: content-box */
+  $zen-box-sizing: content-box;
+  @include zen-grid-item-base();
+  $zen-box-sizing: border-box;
+
+  /* Test zen-grid-item-base() with $legacy-support-for-ie7: true */
+  $legacy-support-for-ie7: true;
+  @include zen-grid-item-base();
+  $legacy-support-for-ie7: false;
+
+  /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */
+  $box-sizing-polyfill-path: "/boxsizing.htc";
+  $legacy-support-for-ie7: true;
+  @include zen-grid-item-base();
+  $box-sizing-polyfill-path: "";
+  $legacy-support-for-ie7: false;
+
+  /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */
+  $box-sizing-polyfill-path: "/boxsizing.htc";
+  $legacy-support-for-ie6: true;
+  @include zen-grid-item-base();
+  $box-sizing-polyfill-path: "";
+  $legacy-support-for-ie6: false;
+
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px */
+  $zen-gutter-width: 15px;
+  @include zen-grid-item-base();
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */
+  $zen-gutter-width: 15px;
+  $zen-float-direction: right;
+  @include zen-grid-item-base();
+  $zen-gutter-width: 20px;
+  $zen-float-direction: left;
+
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */
+  $zen-gutter-width: 15px;
+  $zen-reverse-all-floats: true;
+  @include zen-grid-item-base();
+  $zen-gutter-width: 20px;
+  $zen-reverse-all-floats: false;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-grid-item.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,73 @@
+/**
+ * @file
+ * Test zen-grid-item()
+ */
+
+@import "zen";
+
+#test-zen-grid-item {
+  /* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */
+  $zen-column-count: 12;
+  @include zen-grid-item(6, 4);
+  $zen-column-count: 1;
+
+  /* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */
+  $zen-column-count: 5;
+  $zen-gutter-width: 10%;
+  $zen-box-sizing: content-box;
+  @include zen-grid-item(3, 3);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-box-sizing: border-box;
+
+  /* Turn off $zen-auto-include-item-base */
+  $zen-auto-include-item-base: false;
+
+  /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-item(3, 3);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-item(3, 3, right);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  $zen-reverse-all-floats: true;
+  @include zen-grid-item(3, 3);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-reverse-all-floats: false;
+
+  /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  $zen-reverse-all-floats: true;
+  @include zen-grid-item(3, 3, right);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+  $zen-reverse-all-floats: false;
+
+  /* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-item(3, 2.5);
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+
+  /* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
+  $zen-grid-width: 1000px;
+  $zen-column-count: 5;
+  $zen-gutter-width: 40px;
+  @include zen-grid-item(3, 3);
+  $zen-grid-width: 100%;
+  $zen-column-count: 1;
+  $zen-gutter-width: 20px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/sass/zen-nested-container.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+/**
+ * @file
+ * Test zen-nested-container()
+ */
+
+@import "zen";
+
+#test-zen-nested-container {
+  /* Test zen-nested-container() */
+  @include zen-nested-container();
+}
+
+#test-zen-nested-container-2 {
+  /* Test zen-nested-container() with $legacy-support-for-ie7: true */
+  $legacy-support-for-ie7: true;
+  @include zen-nested-container();
+  $legacy-support-for-ie7: false;
+}
+
+#test-zen-nested-container-3 {
+  /* Test zen-nested-container() with $legacy-support-for-ie6: true */
+  $legacy-support-for-ie6: true;
+  $legacy-support-for-ie7: true;
+  @include zen-nested-container();
+  $legacy-support-for-ie6: false;
+  $legacy-support-for-ie7: false;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-direction-flip.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+/**
+ * @file
+ * Test zen-direction-flip()
+ */
+#test-zen-direction-flip {
+  /* Test zen-direction-flip(left) */
+  float: right;
+  /* Test zen-direction-flip(right) */
+  float: left;
+  /* Test zen-direction-flip(both) */
+  float: both;
+  /* Test zen-direction-flip(none) */
+  float: none;
+  /* Test zen-direction-flip(invalid) */
+  float: both;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-grid-item-width.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+/**
+ * @file
+ * Test zen-grid-item-width()
+ */
+#test-zen-grid-item-width {
+  /* Test zen-grid-item-width(1) with default $zen-column-count: 1 */
+  width: 100%;
+  /* Test zen-grid-item-width(2) with $zen-column-count: 5 */
+  width: 40%;
+  /* Test zen-grid-item-width(2, 5) */
+  width: 40%;
+  /* Test zen-grid-item-width(1) with $zen-grid-width: 100px */
+  width: 100px;
+  /* Test zen-grid-item-width(2, 5) with $zen-grid-width: 100px */
+  width: 40px;
+  /* Test zen-grid-item-width(2, 5, $grid-width: 1000px) */
+  width: 400px;
+  /* Test zen-grid-item-width(2, 5, $grid-width: 1000px, $box-sizing: content-box) */
+  width: 380px;
+  /* Test zen-grid-item-width(2, 5, $gutter-width: 10px, $grid-width: 1000px, $box-sizing: content-box) */
+  width: 390px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-half-gutter.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,24 @@
+/**
+ * @file
+ * Test zen-half-gutter()
+ */
+#test-zen-half-gutter {
+  /* Test zen-half-gutter() with default $zen-gutter-width: 20px */
+  padding-left: 10px;
+  /* Test zen-half-gutter() with $zen-gutter-width: 30px */
+  padding-left: 15px;
+  /* Test zen-half-gutter(10em) */
+  padding-left: 5em;
+  /* Test zen-half-gutter(11em) */
+  padding-left: 5.5em;
+  /* Test zen-half-gutter(10px) */
+  padding-left: 5px;
+  /* Test zen-half-gutter(11px) */
+  padding-left: 5px;
+  /* Test zen-half-gutter(11px, right) */
+  padding-left: 6px;
+  /* Test zen-half-gutter(11px) with $zen-float-direction: right */
+  padding-left: 5px;
+  /* Test zen-half-gutter(11px, left) with $zen-float-direction: right */
+  padding-left: 6px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/function-zen-unit-width.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,18 @@
+/**
+ * @file
+ * Test zen-unit-width()
+ */
+#test-zen-unit-width {
+  /* Test zen-unit-width() with default $zen-column-count: 1 */
+  width: 100%;
+  /* Test zen-unit-width() with $zen-column-count: 5 */
+  width: 20%;
+  /* Test zen-unit-width(5) */
+  width: 20%;
+  /* Test zen-unit-width() with $zen-grid-width: 100px */
+  width: 100px;
+  /* Test zen-unit-width(5) with $zen-grid-width: 100px */
+  width: 20px;
+  /* Test zen-unit-width(5, 100px) */
+  width: 20px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-clear.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+/**
+ * @file
+ * Test zen-clear()
+ */
+#test-zen-clear {
+  /* Test zen-clear() */
+  clear: left;
+  /* Test zen-clear() with $zen-float-direction: right */
+  clear: right;
+  /* Test zen-clear(left) */
+  clear: left;
+  /* Test zen-clear(left, $reverse-all-floats: TRUE) */
+  clear: right;
+  /* Test zen-clear(left) with: $zen-reverse-all-floats: TRUE; */
+  clear: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-float.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+/**
+ * @file
+ * Test zen-float()
+ */
+#test-zen-float {
+  /* Test zen-float() */
+  float: left;
+  /* Test zen-float() with $zen-float-direction: right */
+  float: right;
+  /* Test zen-float(left) */
+  float: left;
+  /* Test zen-float(left, $reverse-all-floats: TRUE) */
+  float: right;
+  /* Test zen-float(left) with: $zen-reverse-all-floats: TRUE; */
+  float: right;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-background.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,54 @@
+/**
+ * @file
+ * Test zen-grid-background()
+ */
+#test-zen-grid-background {
+  /* Test zen-grid-background() with 1 column grid and 20px gutter */
+  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII=") 50% top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(50%, #ffdede), color-stop(50%, transparent)) 10px top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(50%, transparent), color-stop(50%, #ffdede)) -10px top no-repeat;
+  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII=") 50% top no-repeat, -webkit-linear-gradient(left, #ffdede 50%, transparent 50%) 10px top no-repeat, -webkit-linear-gradient(left, transparent 50%, #ffdede 50%) -10px top no-repeat;
+  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII=") 50% top no-repeat, -moz-linear-gradient(left, #ffdede 50%, transparent 50%) 10px top no-repeat, -moz-linear-gradient(left, transparent 50%, #ffdede 50%) -10px top no-repeat;
+  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII=") 50% top no-repeat, -o-linear-gradient(left, #ffdede 50%, transparent 50%) 10px top no-repeat, -o-linear-gradient(left, transparent 50%, #ffdede 50%) -10px top no-repeat;
+  background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARVJREFUeNpi/P//PwMMMDIyMpALYOawEKEWpIYPiAWg7M9A/B6If4LMwaaYkGHiQKwFxJpAzA3E94H4LBA/BOJfWJ0Kw0iAFYhFgFgHiIOBuPHGjRtvf//+/X/WrFmHgHxPqIsxzGHC4TJ+IDYCYu+EhIQ4oGG5ysrKQiCJX79+cQApXqilDMR6mROI5Z8+fVotJibGS0rk4HLhd1AYSUtLd8rLyy/78uXLb0oN/AjE54D44LNnz27euXPnHaUGglz0BoifAvEHaniZbDBq4BA0EJR8vjAxMf2FCbCxsf2AljhYEzsjgfIQlKe1gVgPiCWAGGTwbWylDcwcQgayQIssASj9D5qLMMpDYg0kucSmeqQABBgAsyJrV7MArsMAAAAASUVORK5CYII=") 50% top no-repeat, linear-gradient(left, #ffdede 50%, transparent 50%) 10px top no-repeat, linear-gradient(left, transparent 50%, #ffdede 50%) -10px top no-repeat;
+  /* Test zen-grid-background() with 12 column grid and 20px gutter */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(4.16667%, #ffdede), color-stop(4.16667%, transparent), color-stop(8.33333%, transparent), color-stop(8.33333%, #ffdede), color-stop(12.5%, #ffdede), color-stop(12.5%, transparent), color-stop(16.66667%, transparent), color-stop(16.66667%, #ffdede), color-stop(20.83333%, #ffdede), color-stop(20.83333%, transparent), color-stop(25%, transparent), color-stop(25%, #ffdede), color-stop(29.16667%, #ffdede), color-stop(29.16667%, transparent), color-stop(33.33333%, transparent), color-stop(33.33333%, #ffdede), color-stop(37.5%, #ffdede), color-stop(37.5%, transparent), color-stop(41.66667%, transparent), color-stop(41.66667%, #ffdede), color-stop(45.83333%, #ffdede), color-stop(45.83333%, transparent), color-stop(50%, transparent), color-stop(50%, #ffdede), color-stop(54.16667%, #ffdede), color-stop(54.16667%, transparent), color-stop(58.33333%, transparent), color-stop(58.33333%, #ffdede), color-stop(62.5%, #ffdede), color-stop(62.5%, transparent), color-stop(66.66667%, transparent), color-stop(66.66667%, #ffdede), color-stop(70.83333%, #ffdede), color-stop(70.83333%, transparent), color-stop(75%, transparent), color-stop(75%, #ffdede), color-stop(79.16667%, #ffdede), color-stop(79.16667%, transparent), color-stop(83.33333%, transparent), color-stop(83.33333%, #ffdede), color-stop(87.5%, #ffdede), color-stop(87.5%, transparent), color-stop(91.66667%, transparent), color-stop(91.66667%, #ffdede), color-stop(95.83333%, #ffdede), color-stop(95.83333%, transparent)) 10px top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(4.16667%, transparent), color-stop(4.16667%, #ffdede), color-stop(8.33333%, #ffdede), color-stop(8.33333%, transparent), color-stop(12.5%, transparent), color-stop(12.5%, #ffdede), color-stop(16.66667%, #ffdede), color-stop(16.66667%, transparent), color-stop(20.83333%, transparent), color-stop(20.83333%, #ffdede), color-stop(25%, #ffdede), color-stop(25%, transparent), color-stop(29.16667%, transparent), color-stop(29.16667%, #ffdede), color-stop(33.33333%, #ffdede), color-stop(33.33333%, transparent), color-stop(37.5%, transparent), color-stop(37.5%, #ffdede), color-stop(41.66667%, #ffdede), color-stop(41.66667%, transparent), color-stop(45.83333%, transparent), color-stop(45.83333%, #ffdede), color-stop(50%, #ffdede), color-stop(50%, transparent), color-stop(54.16667%, transparent), color-stop(54.16667%, #ffdede), color-stop(58.33333%, #ffdede), color-stop(58.33333%, transparent), color-stop(62.5%, transparent), color-stop(62.5%, #ffdede), color-stop(66.66667%, #ffdede), color-stop(66.66667%, transparent), color-stop(70.83333%, transparent), color-stop(70.83333%, #ffdede), color-stop(75%, #ffdede), color-stop(75%, transparent), color-stop(79.16667%, transparent), color-stop(79.16667%, #ffdede), color-stop(83.33333%, #ffdede), color-stop(83.33333%, transparent), color-stop(87.5%, transparent), color-stop(87.5%, #ffdede), color-stop(91.66667%, #ffdede), color-stop(91.66667%, transparent), color-stop(95.83333%, transparent), color-stop(95.83333%, #ffdede)) -10px top no-repeat;
+  background: -webkit-linear-gradient(left, #ffdede 4.16667%, transparent 4.16667%, transparent 8.33333%, #ffdede 8.33333%, #ffdede 12.5%, transparent 12.5%, transparent 16.66667%, #ffdede 16.66667%, #ffdede 20.83333%, transparent 20.83333%, transparent 25%, #ffdede 25%, #ffdede 29.16667%, transparent 29.16667%, transparent 33.33333%, #ffdede 33.33333%, #ffdede 37.5%, transparent 37.5%, transparent 41.66667%, #ffdede 41.66667%, #ffdede 45.83333%, transparent 45.83333%, transparent 50%, #ffdede 50%, #ffdede 54.16667%, transparent 54.16667%, transparent 58.33333%, #ffdede 58.33333%, #ffdede 62.5%, transparent 62.5%, transparent 66.66667%, #ffdede 66.66667%, #ffdede 70.83333%, transparent 70.83333%, transparent 75%, #ffdede 75%, #ffdede 79.16667%, transparent 79.16667%, transparent 83.33333%, #ffdede 83.33333%, #ffdede 87.5%, transparent 87.5%, transparent 91.66667%, #ffdede 91.66667%, #ffdede 95.83333%, transparent 95.83333%) 10px top no-repeat, -webkit-linear-gradient(left, transparent 4.16667%, #ffdede 4.16667%, #ffdede 8.33333%, transparent 8.33333%, transparent 12.5%, #ffdede 12.5%, #ffdede 16.66667%, transparent 16.66667%, transparent 20.83333%, #ffdede 20.83333%, #ffdede 25%, transparent 25%, transparent 29.16667%, #ffdede 29.16667%, #ffdede 33.33333%, transparent 33.33333%, transparent 37.5%, #ffdede 37.5%, #ffdede 41.66667%, transparent 41.66667%, transparent 45.83333%, #ffdede 45.83333%, #ffdede 50%, transparent 50%, transparent 54.16667%, #ffdede 54.16667%, #ffdede 58.33333%, transparent 58.33333%, transparent 62.5%, #ffdede 62.5%, #ffdede 66.66667%, transparent 66.66667%, transparent 70.83333%, #ffdede 70.83333%, #ffdede 75%, transparent 75%, transparent 79.16667%, #ffdede 79.16667%, #ffdede 83.33333%, transparent 83.33333%, transparent 87.5%, #ffdede 87.5%, #ffdede 91.66667%, transparent 91.66667%, transparent 95.83333%, #ffdede 95.83333%) -10px top no-repeat;
+  background: -moz-linear-gradient(left, #ffdede 4.16667%, transparent 4.16667%, transparent 8.33333%, #ffdede 8.33333%, #ffdede 12.5%, transparent 12.5%, transparent 16.66667%, #ffdede 16.66667%, #ffdede 20.83333%, transparent 20.83333%, transparent 25%, #ffdede 25%, #ffdede 29.16667%, transparent 29.16667%, transparent 33.33333%, #ffdede 33.33333%, #ffdede 37.5%, transparent 37.5%, transparent 41.66667%, #ffdede 41.66667%, #ffdede 45.83333%, transparent 45.83333%, transparent 50%, #ffdede 50%, #ffdede 54.16667%, transparent 54.16667%, transparent 58.33333%, #ffdede 58.33333%, #ffdede 62.5%, transparent 62.5%, transparent 66.66667%, #ffdede 66.66667%, #ffdede 70.83333%, transparent 70.83333%, transparent 75%, #ffdede 75%, #ffdede 79.16667%, transparent 79.16667%, transparent 83.33333%, #ffdede 83.33333%, #ffdede 87.5%, transparent 87.5%, transparent 91.66667%, #ffdede 91.66667%, #ffdede 95.83333%, transparent 95.83333%) 10px top no-repeat, -moz-linear-gradient(left, transparent 4.16667%, #ffdede 4.16667%, #ffdede 8.33333%, transparent 8.33333%, transparent 12.5%, #ffdede 12.5%, #ffdede 16.66667%, transparent 16.66667%, transparent 20.83333%, #ffdede 20.83333%, #ffdede 25%, transparent 25%, transparent 29.16667%, #ffdede 29.16667%, #ffdede 33.33333%, transparent 33.33333%, transparent 37.5%, #ffdede 37.5%, #ffdede 41.66667%, transparent 41.66667%, transparent 45.83333%, #ffdede 45.83333%, #ffdede 50%, transparent 50%, transparent 54.16667%, #ffdede 54.16667%, #ffdede 58.33333%, transparent 58.33333%, transparent 62.5%, #ffdede 62.5%, #ffdede 66.66667%, transparent 66.66667%, transparent 70.83333%, #ffdede 70.83333%, #ffdede 75%, transparent 75%, transparent 79.16667%, #ffdede 79.16667%, #ffdede 83.33333%, transparent 83.33333%, transparent 87.5%, #ffdede 87.5%, #ffdede 91.66667%, transparent 91.66667%, transparent 95.83333%, #ffdede 95.83333%) -10px top no-repeat;
+  background: -o-linear-gradient(left, #ffdede 4.16667%, transparent 4.16667%, transparent 8.33333%, #ffdede 8.33333%, #ffdede 12.5%, transparent 12.5%, transparent 16.66667%, #ffdede 16.66667%, #ffdede 20.83333%, transparent 20.83333%, transparent 25%, #ffdede 25%, #ffdede 29.16667%, transparent 29.16667%, transparent 33.33333%, #ffdede 33.33333%, #ffdede 37.5%, transparent 37.5%, transparent 41.66667%, #ffdede 41.66667%, #ffdede 45.83333%, transparent 45.83333%, transparent 50%, #ffdede 50%, #ffdede 54.16667%, transparent 54.16667%, transparent 58.33333%, #ffdede 58.33333%, #ffdede 62.5%, transparent 62.5%, transparent 66.66667%, #ffdede 66.66667%, #ffdede 70.83333%, transparent 70.83333%, transparent 75%, #ffdede 75%, #ffdede 79.16667%, transparent 79.16667%, transparent 83.33333%, #ffdede 83.33333%, #ffdede 87.5%, transparent 87.5%, transparent 91.66667%, #ffdede 91.66667%, #ffdede 95.83333%, transparent 95.83333%) 10px top no-repeat, -o-linear-gradient(left, transparent 4.16667%, #ffdede 4.16667%, #ffdede 8.33333%, transparent 8.33333%, transparent 12.5%, #ffdede 12.5%, #ffdede 16.66667%, transparent 16.66667%, transparent 20.83333%, #ffdede 20.83333%, #ffdede 25%, transparent 25%, transparent 29.16667%, #ffdede 29.16667%, #ffdede 33.33333%, transparent 33.33333%, transparent 37.5%, #ffdede 37.5%, #ffdede 41.66667%, transparent 41.66667%, transparent 45.83333%, #ffdede 45.83333%, #ffdede 50%, transparent 50%, transparent 54.16667%, #ffdede 54.16667%, #ffdede 58.33333%, transparent 58.33333%, transparent 62.5%, #ffdede 62.5%, #ffdede 66.66667%, transparent 66.66667%, transparent 70.83333%, #ffdede 70.83333%, #ffdede 75%, transparent 75%, transparent 79.16667%, #ffdede 79.16667%, #ffdede 83.33333%, transparent 83.33333%, transparent 87.5%, #ffdede 87.5%, #ffdede 91.66667%, transparent 91.66667%, transparent 95.83333%, #ffdede 95.83333%) -10px top no-repeat;
+  background: linear-gradient(left, #ffdede 4.16667%, transparent 4.16667%, transparent 8.33333%, #ffdede 8.33333%, #ffdede 12.5%, transparent 12.5%, transparent 16.66667%, #ffdede 16.66667%, #ffdede 20.83333%, transparent 20.83333%, transparent 25%, #ffdede 25%, #ffdede 29.16667%, transparent 29.16667%, transparent 33.33333%, #ffdede 33.33333%, #ffdede 37.5%, transparent 37.5%, transparent 41.66667%, #ffdede 41.66667%, #ffdede 45.83333%, transparent 45.83333%, transparent 50%, #ffdede 50%, #ffdede 54.16667%, transparent 54.16667%, transparent 58.33333%, #ffdede 58.33333%, #ffdede 62.5%, transparent 62.5%, transparent 66.66667%, #ffdede 66.66667%, #ffdede 70.83333%, transparent 70.83333%, transparent 75%, #ffdede 75%, #ffdede 79.16667%, transparent 79.16667%, transparent 83.33333%, #ffdede 83.33333%, #ffdede 87.5%, transparent 87.5%, transparent 91.66667%, #ffdede 91.66667%, #ffdede 95.83333%, transparent 95.83333%) 10px top no-repeat, linear-gradient(left, transparent 4.16667%, #ffdede 4.16667%, #ffdede 8.33333%, transparent 8.33333%, transparent 12.5%, #ffdede 12.5%, #ffdede 16.66667%, transparent 16.66667%, transparent 20.83333%, #ffdede 20.83333%, #ffdede 25%, transparent 25%, transparent 29.16667%, #ffdede 29.16667%, #ffdede 33.33333%, transparent 33.33333%, transparent 37.5%, #ffdede 37.5%, #ffdede 41.66667%, transparent 41.66667%, transparent 45.83333%, #ffdede 45.83333%, #ffdede 50%, transparent 50%, transparent 54.16667%, #ffdede 54.16667%, #ffdede 58.33333%, transparent 58.33333%, transparent 62.5%, #ffdede 62.5%, #ffdede 66.66667%, transparent 66.66667%, transparent 70.83333%, #ffdede 70.83333%, #ffdede 75%, transparent 75%, transparent 79.16667%, #ffdede 79.16667%, #ffdede 83.33333%, transparent 83.33333%, transparent 87.5%, #ffdede 87.5%, #ffdede 91.66667%, transparent 91.66667%, transparent 95.83333%, #ffdede 95.83333%) -10px top no-repeat;
+  /* Test zen-grid-background(), 5 column grid, 10% gutter and black grid color */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, #000000), color-stop(10%, transparent), color-stop(20%, transparent), color-stop(20%, #000000), color-stop(30%, #000000), color-stop(30%, transparent), color-stop(40%, transparent), color-stop(40%, #000000), color-stop(50%, #000000), color-stop(50%, transparent), color-stop(60%, transparent), color-stop(60%, #000000), color-stop(70%, #000000), color-stop(70%, transparent), color-stop(80%, transparent), color-stop(80%, #000000), color-stop(90%, #000000), color-stop(90%, transparent)) 5% top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, transparent), color-stop(10%, #000000), color-stop(20%, #000000), color-stop(20%, transparent), color-stop(30%, transparent), color-stop(30%, #000000), color-stop(40%, #000000), color-stop(40%, transparent), color-stop(50%, transparent), color-stop(50%, #000000), color-stop(60%, #000000), color-stop(60%, transparent), color-stop(70%, transparent), color-stop(70%, #000000), color-stop(80%, #000000), color-stop(80%, transparent), color-stop(90%, transparent), color-stop(90%, #000000)) -5% top no-repeat;
+  background: -webkit-linear-gradient(left, #000000 10%, transparent 10%, transparent 20%, #000000 20%, #000000 30%, transparent 30%, transparent 40%, #000000 40%, #000000 50%, transparent 50%, transparent 60%, #000000 60%, #000000 70%, transparent 70%, transparent 80%, #000000 80%, #000000 90%, transparent 90%) 5% top no-repeat, -webkit-linear-gradient(left, transparent 10%, #000000 10%, #000000 20%, transparent 20%, transparent 30%, #000000 30%, #000000 40%, transparent 40%, transparent 50%, #000000 50%, #000000 60%, transparent 60%, transparent 70%, #000000 70%, #000000 80%, transparent 80%, transparent 90%, #000000 90%) -5% top no-repeat;
+  background: -moz-linear-gradient(left, #000000 10%, transparent 10%, transparent 20%, #000000 20%, #000000 30%, transparent 30%, transparent 40%, #000000 40%, #000000 50%, transparent 50%, transparent 60%, #000000 60%, #000000 70%, transparent 70%, transparent 80%, #000000 80%, #000000 90%, transparent 90%) 5% top no-repeat, -moz-linear-gradient(left, transparent 10%, #000000 10%, #000000 20%, transparent 20%, transparent 30%, #000000 30%, #000000 40%, transparent 40%, transparent 50%, #000000 50%, #000000 60%, transparent 60%, transparent 70%, #000000 70%, #000000 80%, transparent 80%, transparent 90%, #000000 90%) -5% top no-repeat;
+  background: -o-linear-gradient(left, #000000 10%, transparent 10%, transparent 20%, #000000 20%, #000000 30%, transparent 30%, transparent 40%, #000000 40%, #000000 50%, transparent 50%, transparent 60%, #000000 60%, #000000 70%, transparent 70%, transparent 80%, #000000 80%, #000000 90%, transparent 90%) 5% top no-repeat, -o-linear-gradient(left, transparent 10%, #000000 10%, #000000 20%, transparent 20%, transparent 30%, #000000 30%, #000000 40%, transparent 40%, transparent 50%, #000000 50%, #000000 60%, transparent 60%, transparent 70%, #000000 70%, #000000 80%, transparent 80%, transparent 90%, #000000 90%) -5% top no-repeat;
+  background: linear-gradient(left, #000000 10%, transparent 10%, transparent 20%, #000000 20%, #000000 30%, transparent 30%, transparent 40%, #000000 40%, #000000 50%, transparent 50%, transparent 60%, #000000 60%, #000000 70%, transparent 70%, transparent 80%, #000000 80%, #000000 90%, transparent 90%) 5% top no-repeat, linear-gradient(left, transparent 10%, #000000 10%, #000000 20%, transparent 20%, transparent 30%, #000000 30%, #000000 40%, transparent 40%, transparent 50%, #000000 50%, #000000 60%, transparent 60%, transparent 70%, #000000 70%, #000000 80%, transparent 80%, transparent 90%, #000000 90%) -5% top no-repeat;
+  /* Test zen-grid-background() with 5 column grid and 40px gutter */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(10%, transparent), color-stop(20%, transparent), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(30%, transparent), color-stop(40%, transparent), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(50%, transparent), color-stop(60%, transparent), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(70%, transparent), color-stop(80%, transparent), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(90%, rgba(255, 222, 222, 0.8)), color-stop(90%, transparent)) 20px top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, transparent), color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(20%, transparent), color-stop(30%, transparent), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(40%, transparent), color-stop(50%, transparent), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(60%, transparent), color-stop(70%, transparent), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(80%, transparent), color-stop(90%, transparent), color-stop(90%, rgba(255, 222, 222, 0.8))) -20px top no-repeat;
+  background: -webkit-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -webkit-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: -moz-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -moz-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: -o-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -o-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  /* Test zen-grid-background(), 5 column grid and 10% gutter and $zen-reverse-all-floats */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(10%, transparent), color-stop(20%, transparent), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(30%, transparent), color-stop(40%, transparent), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(50%, transparent), color-stop(60%, transparent), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(70%, transparent), color-stop(80%, transparent), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(90%, rgba(255, 222, 222, 0.8)), color-stop(90%, transparent)) 5% top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, transparent), color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(20%, transparent), color-stop(30%, transparent), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(40%, transparent), color-stop(50%, transparent), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(60%, transparent), color-stop(70%, transparent), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(80%, transparent), color-stop(90%, transparent), color-stop(90%, rgba(255, 222, 222, 0.8))) -5% top no-repeat;
+  background: -webkit-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 5% top no-repeat, -webkit-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -5% top no-repeat;
+  background: -moz-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 5% top no-repeat, -moz-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -5% top no-repeat;
+  background: -o-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 5% top no-repeat, -o-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -5% top no-repeat;
+  background: linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 5% top no-repeat, linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -5% top no-repeat;
+  /* Test zen-grid-background() with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(10%, transparent), color-stop(20%, transparent), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(30%, transparent), color-stop(40%, transparent), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(50%, transparent), color-stop(60%, transparent), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(70%, transparent), color-stop(80%, transparent), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(90%, rgba(255, 222, 222, 0.8)), color-stop(90%, transparent)) 20px top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(10%, transparent), color-stop(10%, rgba(255, 222, 222, 0.8)), color-stop(20%, rgba(255, 222, 222, 0.8)), color-stop(20%, transparent), color-stop(30%, transparent), color-stop(30%, rgba(255, 222, 222, 0.8)), color-stop(40%, rgba(255, 222, 222, 0.8)), color-stop(40%, transparent), color-stop(50%, transparent), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(60%, rgba(255, 222, 222, 0.8)), color-stop(60%, transparent), color-stop(70%, transparent), color-stop(70%, rgba(255, 222, 222, 0.8)), color-stop(80%, rgba(255, 222, 222, 0.8)), color-stop(80%, transparent), color-stop(90%, transparent), color-stop(90%, rgba(255, 222, 222, 0.8))) -20px top no-repeat;
+  background: -webkit-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -webkit-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: -moz-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -moz-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: -o-linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, -o-linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  background: linear-gradient(left, rgba(255, 222, 222, 0.8) 10%, transparent 10%, transparent 20%, rgba(255, 222, 222, 0.8) 20%, rgba(255, 222, 222, 0.8) 30%, transparent 30%, transparent 40%, rgba(255, 222, 222, 0.8) 40%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 60%, rgba(255, 222, 222, 0.8) 60%, rgba(255, 222, 222, 0.8) 70%, transparent 70%, transparent 80%, rgba(255, 222, 222, 0.8) 80%, rgba(255, 222, 222, 0.8) 90%, transparent 90%) 20px top no-repeat, linear-gradient(left, transparent 10%, rgba(255, 222, 222, 0.8) 10%, rgba(255, 222, 222, 0.8) 20%, transparent 20%, transparent 30%, rgba(255, 222, 222, 0.8) 30%, rgba(255, 222, 222, 0.8) 40%, transparent 40%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 60%, transparent 60%, transparent 70%, rgba(255, 222, 222, 0.8) 70%, rgba(255, 222, 222, 0.8) 80%, transparent 80%, transparent 90%, rgba(255, 222, 222, 0.8) 90%) -20px top no-repeat;
+  /* Test zen-grid-background() with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
+  background: -webkit-gradient(linear, 0% 50%, 900 50%, color-stop(11.11111%, rgba(255, 222, 222, 0.8)), color-stop(11.11111%, transparent), color-stop(22.22222%, transparent), color-stop(22.22222%, rgba(255, 222, 222, 0.8)), color-stop(33.33333%, rgba(255, 222, 222, 0.8)), color-stop(33.33333%, transparent), color-stop(44.44444%, transparent), color-stop(44.44444%, rgba(255, 222, 222, 0.8)), color-stop(55.55556%, rgba(255, 222, 222, 0.8)), color-stop(55.55556%, transparent), color-stop(66.66667%, transparent), color-stop(66.66667%, rgba(255, 222, 222, 0.8)), color-stop(77.77778%, rgba(255, 222, 222, 0.8)), color-stop(77.77778%, transparent), color-stop(88.88889%, transparent), color-stop(88.88889%, rgba(255, 222, 222, 0.8)), color-stop(100%, rgba(255, 222, 222, 0.8)), color-stop(100%, transparent)) 20px top no-repeat, -webkit-gradient(linear, 0% 50%, 900 50%, color-stop(11.11111%, transparent), color-stop(11.11111%, rgba(255, 222, 222, 0.8)), color-stop(22.22222%, rgba(255, 222, 222, 0.8)), color-stop(22.22222%, transparent), color-stop(33.33333%, transparent), color-stop(33.33333%, rgba(255, 222, 222, 0.8)), color-stop(44.44444%, rgba(255, 222, 222, 0.8)), color-stop(44.44444%, transparent), color-stop(55.55556%, transparent), color-stop(55.55556%, rgba(255, 222, 222, 0.8)), color-stop(66.66667%, rgba(255, 222, 222, 0.8)), color-stop(66.66667%, transparent), color-stop(77.77778%, transparent), color-stop(77.77778%, rgba(255, 222, 222, 0.8)), color-stop(88.88889%, rgba(255, 222, 222, 0.8)), color-stop(88.88889%, transparent), color-stop(100%, transparent), color-stop(100%, rgba(255, 222, 222, 0.8))) -20px top no-repeat;
+  background: -webkit-linear-gradient(left, rgba(255, 222, 222, 0.8) 100px, transparent 100px, transparent 200px, rgba(255, 222, 222, 0.8) 200px, rgba(255, 222, 222, 0.8) 300px, transparent 300px, transparent 400px, rgba(255, 222, 222, 0.8) 400px, rgba(255, 222, 222, 0.8) 500px, transparent 500px, transparent 600px, rgba(255, 222, 222, 0.8) 600px, rgba(255, 222, 222, 0.8) 700px, transparent 700px, transparent 800px, rgba(255, 222, 222, 0.8) 800px, rgba(255, 222, 222, 0.8) 900px, transparent 900px) 20px top no-repeat, -webkit-linear-gradient(left, transparent 100px, rgba(255, 222, 222, 0.8) 100px, rgba(255, 222, 222, 0.8) 200px, transparent 200px, transparent 300px, rgba(255, 222, 222, 0.8) 300px, rgba(255, 222, 222, 0.8) 400px, transparent 400px, transparent 500px, rgba(255, 222, 222, 0.8) 500px, rgba(255, 222, 222, 0.8) 600px, transparent 600px, transparent 700px, rgba(255, 222, 222, 0.8) 700px, rgba(255, 222, 222, 0.8) 800px, transparent 800px, transparent 900px, rgba(255, 222, 222, 0.8) 900px) -20px top no-repeat;
+  background: -moz-linear-gradient(left, rgba(255, 222, 222, 0.8) 100px, transparent 100px, transparent 200px, rgba(255, 222, 222, 0.8) 200px, rgba(255, 222, 222, 0.8) 300px, transparent 300px, transparent 400px, rgba(255, 222, 222, 0.8) 400px, rgba(255, 222, 222, 0.8) 500px, transparent 500px, transparent 600px, rgba(255, 222, 222, 0.8) 600px, rgba(255, 222, 222, 0.8) 700px, transparent 700px, transparent 800px, rgba(255, 222, 222, 0.8) 800px, rgba(255, 222, 222, 0.8) 900px, transparent 900px) 20px top no-repeat, -moz-linear-gradient(left, transparent 100px, rgba(255, 222, 222, 0.8) 100px, rgba(255, 222, 222, 0.8) 200px, transparent 200px, transparent 300px, rgba(255, 222, 222, 0.8) 300px, rgba(255, 222, 222, 0.8) 400px, transparent 400px, transparent 500px, rgba(255, 222, 222, 0.8) 500px, rgba(255, 222, 222, 0.8) 600px, transparent 600px, transparent 700px, rgba(255, 222, 222, 0.8) 700px, rgba(255, 222, 222, 0.8) 800px, transparent 800px, transparent 900px, rgba(255, 222, 222, 0.8) 900px) -20px top no-repeat;
+  background: -o-linear-gradient(left, rgba(255, 222, 222, 0.8) 100px, transparent 100px, transparent 200px, rgba(255, 222, 222, 0.8) 200px, rgba(255, 222, 222, 0.8) 300px, transparent 300px, transparent 400px, rgba(255, 222, 222, 0.8) 400px, rgba(255, 222, 222, 0.8) 500px, transparent 500px, transparent 600px, rgba(255, 222, 222, 0.8) 600px, rgba(255, 222, 222, 0.8) 700px, transparent 700px, transparent 800px, rgba(255, 222, 222, 0.8) 800px, rgba(255, 222, 222, 0.8) 900px, transparent 900px) 20px top no-repeat, -o-linear-gradient(left, transparent 100px, rgba(255, 222, 222, 0.8) 100px, rgba(255, 222, 222, 0.8) 200px, transparent 200px, transparent 300px, rgba(255, 222, 222, 0.8) 300px, rgba(255, 222, 222, 0.8) 400px, transparent 400px, transparent 500px, rgba(255, 222, 222, 0.8) 500px, rgba(255, 222, 222, 0.8) 600px, transparent 600px, transparent 700px, rgba(255, 222, 222, 0.8) 700px, rgba(255, 222, 222, 0.8) 800px, transparent 800px, transparent 900px, rgba(255, 222, 222, 0.8) 900px) -20px top no-repeat;
+  background: linear-gradient(left, rgba(255, 222, 222, 0.8) 100px, transparent 100px, transparent 200px, rgba(255, 222, 222, 0.8) 200px, rgba(255, 222, 222, 0.8) 300px, transparent 300px, transparent 400px, rgba(255, 222, 222, 0.8) 400px, rgba(255, 222, 222, 0.8) 500px, transparent 500px, transparent 600px, rgba(255, 222, 222, 0.8) 600px, rgba(255, 222, 222, 0.8) 700px, transparent 700px, transparent 800px, rgba(255, 222, 222, 0.8) 800px, rgba(255, 222, 222, 0.8) 900px, transparent 900px) 20px top no-repeat, linear-gradient(left, transparent 100px, rgba(255, 222, 222, 0.8) 100px, rgba(255, 222, 222, 0.8) 200px, transparent 200px, transparent 300px, rgba(255, 222, 222, 0.8) 300px, rgba(255, 222, 222, 0.8) 400px, transparent 400px, transparent 500px, rgba(255, 222, 222, 0.8) 500px, rgba(255, 222, 222, 0.8) 600px, transparent 600px, transparent 700px, rgba(255, 222, 222, 0.8) 700px, rgba(255, 222, 222, 0.8) 800px, transparent 800px, transparent 900px, rgba(255, 222, 222, 0.8) 900px) -20px top no-repeat;
+  /* Test zen-grid-background() with all 24 grid numbers */
+  background: -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(2.08333%, rgba(255, 222, 222, 0.8)), color-stop(2.08333%, transparent), color-stop(4.16667%, transparent), color-stop(4.16667%, rgba(255, 222, 222, 0.8)), color-stop(6.25%, rgba(255, 222, 222, 0.8)), color-stop(6.25%, transparent), color-stop(8.33333%, transparent), color-stop(8.33333%, rgba(255, 222, 222, 0.8)), color-stop(10.41667%, rgba(255, 222, 222, 0.8)), color-stop(10.41667%, transparent), color-stop(12.5%, transparent), color-stop(12.5%, rgba(255, 222, 222, 0.8)), color-stop(14.58333%, rgba(255, 222, 222, 0.8)), color-stop(14.58333%, transparent), color-stop(16.66667%, transparent), color-stop(16.66667%, rgba(255, 222, 222, 0.8)), color-stop(18.75%, rgba(255, 222, 222, 0.8)), color-stop(18.75%, transparent), color-stop(20.83333%, transparent), color-stop(20.83333%, rgba(255, 222, 222, 0.8)), color-stop(22.91667%, rgba(255, 222, 222, 0.8)), color-stop(22.91667%, transparent), color-stop(25%, transparent), color-stop(25%, rgba(255, 222, 222, 0.8)), color-stop(27.08333%, rgba(255, 222, 222, 0.8)), color-stop(27.08333%, transparent), color-stop(29.16667%, transparent), color-stop(29.16667%, rgba(255, 222, 222, 0.8)), color-stop(31.25%, rgba(255, 222, 222, 0.8)), color-stop(31.25%, transparent), color-stop(33.33333%, transparent), color-stop(33.33333%, rgba(255, 222, 222, 0.8)), color-stop(35.41667%, rgba(255, 222, 222, 0.8)), color-stop(35.41667%, transparent), color-stop(37.5%, transparent), color-stop(37.5%, rgba(255, 222, 222, 0.8)), color-stop(39.58333%, rgba(255, 222, 222, 0.8)), color-stop(39.58333%, transparent), color-stop(41.66667%, transparent), color-stop(41.66667%, rgba(255, 222, 222, 0.8)), color-stop(43.75%, rgba(255, 222, 222, 0.8)), color-stop(43.75%, transparent), color-stop(45.83333%, transparent), color-stop(45.83333%, rgba(255, 222, 222, 0.8)), color-stop(47.91667%, rgba(255, 222, 222, 0.8)), color-stop(47.91667%, transparent), color-stop(50%, transparent), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(52.08333%, rgba(255, 222, 222, 0.8)), color-stop(52.08333%, transparent), color-stop(54.16667%, transparent), color-stop(54.16667%, rgba(255, 222, 222, 0.8)), color-stop(56.25%, rgba(255, 222, 222, 0.8)), color-stop(56.25%, transparent), color-stop(58.33333%, transparent), color-stop(58.33333%, rgba(255, 222, 222, 0.8)), color-stop(60.41667%, rgba(255, 222, 222, 0.8)), color-stop(60.41667%, transparent), color-stop(62.5%, transparent), color-stop(62.5%, rgba(255, 222, 222, 0.8)), color-stop(64.58333%, rgba(255, 222, 222, 0.8)), color-stop(64.58333%, transparent), color-stop(66.66667%, transparent), color-stop(66.66667%, rgba(255, 222, 222, 0.8)), color-stop(68.75%, rgba(255, 222, 222, 0.8)), color-stop(68.75%, transparent), color-stop(70.83333%, transparent), color-stop(70.83333%, rgba(255, 222, 222, 0.8)), color-stop(72.91667%, rgba(255, 222, 222, 0.8)), color-stop(72.91667%, transparent), color-stop(75%, transparent), color-stop(75%, rgba(255, 222, 222, 0.8)), color-stop(77.08333%, rgba(255, 222, 222, 0.8)), color-stop(77.08333%, transparent), color-stop(79.16667%, transparent), color-stop(79.16667%, rgba(255, 222, 222, 0.8)), color-stop(81.25%, rgba(255, 222, 222, 0.8)), color-stop(81.25%, transparent), color-stop(83.33333%, transparent), color-stop(83.33333%, rgba(255, 222, 222, 0.8)), color-stop(85.41667%, rgba(255, 222, 222, 0.8)), color-stop(85.41667%, transparent), color-stop(87.5%, transparent), color-stop(87.5%, rgba(255, 222, 222, 0.8)), color-stop(89.58333%, rgba(255, 222, 222, 0.8)), color-stop(89.58333%, transparent), color-stop(91.66667%, transparent), color-stop(91.66667%, rgba(255, 222, 222, 0.8)), color-stop(93.75%, rgba(255, 222, 222, 0.8)), color-stop(93.75%, transparent), color-stop(95.83333%, transparent), color-stop(95.83333%, rgba(255, 222, 222, 0.8)), color-stop(97.91667%, rgba(255, 222, 222, 0.8)), color-stop(97.91667%, transparent)) 10px top no-repeat, -webkit-gradient(linear, 0% 50%, 100% 50%, color-stop(2.08333%, transparent), color-stop(2.08333%, rgba(255, 222, 222, 0.8)), color-stop(4.16667%, rgba(255, 222, 222, 0.8)), color-stop(4.16667%, transparent), color-stop(6.25%, transparent), color-stop(6.25%, rgba(255, 222, 222, 0.8)), color-stop(8.33333%, rgba(255, 222, 222, 0.8)), color-stop(8.33333%, transparent), color-stop(10.41667%, transparent), color-stop(10.41667%, rgba(255, 222, 222, 0.8)), color-stop(12.5%, rgba(255, 222, 222, 0.8)), color-stop(12.5%, transparent), color-stop(14.58333%, transparent), color-stop(14.58333%, rgba(255, 222, 222, 0.8)), color-stop(16.66667%, rgba(255, 222, 222, 0.8)), color-stop(16.66667%, transparent), color-stop(18.75%, transparent), color-stop(18.75%, rgba(255, 222, 222, 0.8)), color-stop(20.83333%, rgba(255, 222, 222, 0.8)), color-stop(20.83333%, transparent), color-stop(22.91667%, transparent), color-stop(22.91667%, rgba(255, 222, 222, 0.8)), color-stop(25%, rgba(255, 222, 222, 0.8)), color-stop(25%, transparent), color-stop(27.08333%, transparent), color-stop(27.08333%, rgba(255, 222, 222, 0.8)), color-stop(29.16667%, rgba(255, 222, 222, 0.8)), color-stop(29.16667%, transparent), color-stop(31.25%, transparent), color-stop(31.25%, rgba(255, 222, 222, 0.8)), color-stop(33.33333%, rgba(255, 222, 222, 0.8)), color-stop(33.33333%, transparent), color-stop(35.41667%, transparent), color-stop(35.41667%, rgba(255, 222, 222, 0.8)), color-stop(37.5%, rgba(255, 222, 222, 0.8)), color-stop(37.5%, transparent), color-stop(39.58333%, transparent), color-stop(39.58333%, rgba(255, 222, 222, 0.8)), color-stop(41.66667%, rgba(255, 222, 222, 0.8)), color-stop(41.66667%, transparent), color-stop(43.75%, transparent), color-stop(43.75%, rgba(255, 222, 222, 0.8)), color-stop(45.83333%, rgba(255, 222, 222, 0.8)), color-stop(45.83333%, transparent), color-stop(47.91667%, transparent), color-stop(47.91667%, rgba(255, 222, 222, 0.8)), color-stop(50%, rgba(255, 222, 222, 0.8)), color-stop(50%, transparent), color-stop(52.08333%, transparent), color-stop(52.08333%, rgba(255, 222, 222, 0.8)), color-stop(54.16667%, rgba(255, 222, 222, 0.8)), color-stop(54.16667%, transparent), color-stop(56.25%, transparent), color-stop(56.25%, rgba(255, 222, 222, 0.8)), color-stop(58.33333%, rgba(255, 222, 222, 0.8)), color-stop(58.33333%, transparent), color-stop(60.41667%, transparent), color-stop(60.41667%, rgba(255, 222, 222, 0.8)), color-stop(62.5%, rgba(255, 222, 222, 0.8)), color-stop(62.5%, transparent), color-stop(64.58333%, transparent), color-stop(64.58333%, rgba(255, 222, 222, 0.8)), color-stop(66.66667%, rgba(255, 222, 222, 0.8)), color-stop(66.66667%, transparent), color-stop(68.75%, transparent), color-stop(68.75%, rgba(255, 222, 222, 0.8)), color-stop(70.83333%, rgba(255, 222, 222, 0.8)), color-stop(70.83333%, transparent), color-stop(72.91667%, transparent), color-stop(72.91667%, rgba(255, 222, 222, 0.8)), color-stop(75%, rgba(255, 222, 222, 0.8)), color-stop(75%, transparent), color-stop(77.08333%, transparent), color-stop(77.08333%, rgba(255, 222, 222, 0.8)), color-stop(79.16667%, rgba(255, 222, 222, 0.8)), color-stop(79.16667%, transparent), color-stop(81.25%, transparent), color-stop(81.25%, rgba(255, 222, 222, 0.8)), color-stop(83.33333%, rgba(255, 222, 222, 0.8)), color-stop(83.33333%, transparent), color-stop(85.41667%, transparent), color-stop(85.41667%, rgba(255, 222, 222, 0.8)), color-stop(87.5%, rgba(255, 222, 222, 0.8)), color-stop(87.5%, transparent), color-stop(89.58333%, transparent), color-stop(89.58333%, rgba(255, 222, 222, 0.8)), color-stop(91.66667%, rgba(255, 222, 222, 0.8)), color-stop(91.66667%, transparent), color-stop(93.75%, transparent), color-stop(93.75%, rgba(255, 222, 222, 0.8)), color-stop(95.83333%, rgba(255, 222, 222, 0.8)), color-stop(95.83333%, transparent), color-stop(97.91667%, transparent), color-stop(97.91667%, rgba(255, 222, 222, 0.8))) -10px top no-repeat;
+  background: -webkit-linear-gradient(left, rgba(255, 222, 222, 0.8) 2.08333%, transparent 2.08333%, transparent 4.16667%, rgba(255, 222, 222, 0.8) 4.16667%, rgba(255, 222, 222, 0.8) 6.25%, transparent 6.25%, transparent 8.33333%, rgba(255, 222, 222, 0.8) 8.33333%, rgba(255, 222, 222, 0.8) 10.41667%, transparent 10.41667%, transparent 12.5%, rgba(255, 222, 222, 0.8) 12.5%, rgba(255, 222, 222, 0.8) 14.58333%, transparent 14.58333%, transparent 16.66667%, rgba(255, 222, 222, 0.8) 16.66667%, rgba(255, 222, 222, 0.8) 18.75%, transparent 18.75%, transparent 20.83333%, rgba(255, 222, 222, 0.8) 20.83333%, rgba(255, 222, 222, 0.8) 22.91667%, transparent 22.91667%, transparent 25%, rgba(255, 222, 222, 0.8) 25%, rgba(255, 222, 222, 0.8) 27.08333%, transparent 27.08333%, transparent 29.16667%, rgba(255, 222, 222, 0.8) 29.16667%, rgba(255, 222, 222, 0.8) 31.25%, transparent 31.25%, transparent 33.33333%, rgba(255, 222, 222, 0.8) 33.33333%, rgba(255, 222, 222, 0.8) 35.41667%, transparent 35.41667%, transparent 37.5%, rgba(255, 222, 222, 0.8) 37.5%, rgba(255, 222, 222, 0.8) 39.58333%, transparent 39.58333%, transparent 41.66667%, rgba(255, 222, 222, 0.8) 41.66667%, rgba(255, 222, 222, 0.8) 43.75%, transparent 43.75%, transparent 45.83333%, rgba(255, 222, 222, 0.8) 45.83333%, rgba(255, 222, 222, 0.8) 47.91667%, transparent 47.91667%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 52.08333%, transparent 52.08333%, transparent 54.16667%, rgba(255, 222, 222, 0.8) 54.16667%, rgba(255, 222, 222, 0.8) 56.25%, transparent 56.25%, transparent 58.33333%, rgba(255, 222, 222, 0.8) 58.33333%, rgba(255, 222, 222, 0.8) 60.41667%, transparent 60.41667%, transparent 62.5%, rgba(255, 222, 222, 0.8) 62.5%, rgba(255, 222, 222, 0.8) 64.58333%, transparent 64.58333%, transparent 66.66667%, rgba(255, 222, 222, 0.8) 66.66667%, rgba(255, 222, 222, 0.8) 68.75%, transparent 68.75%, transparent 70.83333%, rgba(255, 222, 222, 0.8) 70.83333%, rgba(255, 222, 222, 0.8) 72.91667%, transparent 72.91667%, transparent 75%, rgba(255, 222, 222, 0.8) 75%, rgba(255, 222, 222, 0.8) 77.08333%, transparent 77.08333%, transparent 79.16667%, rgba(255, 222, 222, 0.8) 79.16667%, rgba(255, 222, 222, 0.8) 81.25%, transparent 81.25%, transparent 83.33333%, rgba(255, 222, 222, 0.8) 83.33333%, rgba(255, 222, 222, 0.8) 85.41667%, transparent 85.41667%, transparent 87.5%, rgba(255, 222, 222, 0.8) 87.5%, rgba(255, 222, 222, 0.8) 89.58333%, transparent 89.58333%, transparent 91.66667%, rgba(255, 222, 222, 0.8) 91.66667%, rgba(255, 222, 222, 0.8) 93.75%, transparent 93.75%, transparent 95.83333%, rgba(255, 222, 222, 0.8) 95.83333%, rgba(255, 222, 222, 0.8) 97.91667%, transparent 97.91667%) 10px top no-repeat, -webkit-linear-gradient(left, transparent 2.08333%, rgba(255, 222, 222, 0.8) 2.08333%, rgba(255, 222, 222, 0.8) 4.16667%, transparent 4.16667%, transparent 6.25%, rgba(255, 222, 222, 0.8) 6.25%, rgba(255, 222, 222, 0.8) 8.33333%, transparent 8.33333%, transparent 10.41667%, rgba(255, 222, 222, 0.8) 10.41667%, rgba(255, 222, 222, 0.8) 12.5%, transparent 12.5%, transparent 14.58333%, rgba(255, 222, 222, 0.8) 14.58333%, rgba(255, 222, 222, 0.8) 16.66667%, transparent 16.66667%, transparent 18.75%, rgba(255, 222, 222, 0.8) 18.75%, rgba(255, 222, 222, 0.8) 20.83333%, transparent 20.83333%, transparent 22.91667%, rgba(255, 222, 222, 0.8) 22.91667%, rgba(255, 222, 222, 0.8) 25%, transparent 25%, transparent 27.08333%, rgba(255, 222, 222, 0.8) 27.08333%, rgba(255, 222, 222, 0.8) 29.16667%, transparent 29.16667%, transparent 31.25%, rgba(255, 222, 222, 0.8) 31.25%, rgba(255, 222, 222, 0.8) 33.33333%, transparent 33.33333%, transparent 35.41667%, rgba(255, 222, 222, 0.8) 35.41667%, rgba(255, 222, 222, 0.8) 37.5%, transparent 37.5%, transparent 39.58333%, rgba(255, 222, 222, 0.8) 39.58333%, rgba(255, 222, 222, 0.8) 41.66667%, transparent 41.66667%, transparent 43.75%, rgba(255, 222, 222, 0.8) 43.75%, rgba(255, 222, 222, 0.8) 45.83333%, transparent 45.83333%, transparent 47.91667%, rgba(255, 222, 222, 0.8) 47.91667%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 52.08333%, rgba(255, 222, 222, 0.8) 52.08333%, rgba(255, 222, 222, 0.8) 54.16667%, transparent 54.16667%, transparent 56.25%, rgba(255, 222, 222, 0.8) 56.25%, rgba(255, 222, 222, 0.8) 58.33333%, transparent 58.33333%, transparent 60.41667%, rgba(255, 222, 222, 0.8) 60.41667%, rgba(255, 222, 222, 0.8) 62.5%, transparent 62.5%, transparent 64.58333%, rgba(255, 222, 222, 0.8) 64.58333%, rgba(255, 222, 222, 0.8) 66.66667%, transparent 66.66667%, transparent 68.75%, rgba(255, 222, 222, 0.8) 68.75%, rgba(255, 222, 222, 0.8) 70.83333%, transparent 70.83333%, transparent 72.91667%, rgba(255, 222, 222, 0.8) 72.91667%, rgba(255, 222, 222, 0.8) 75%, transparent 75%, transparent 77.08333%, rgba(255, 222, 222, 0.8) 77.08333%, rgba(255, 222, 222, 0.8) 79.16667%, transparent 79.16667%, transparent 81.25%, rgba(255, 222, 222, 0.8) 81.25%, rgba(255, 222, 222, 0.8) 83.33333%, transparent 83.33333%, transparent 85.41667%, rgba(255, 222, 222, 0.8) 85.41667%, rgba(255, 222, 222, 0.8) 87.5%, transparent 87.5%, transparent 89.58333%, rgba(255, 222, 222, 0.8) 89.58333%, rgba(255, 222, 222, 0.8) 91.66667%, transparent 91.66667%, transparent 93.75%, rgba(255, 222, 222, 0.8) 93.75%, rgba(255, 222, 222, 0.8) 95.83333%, transparent 95.83333%, transparent 97.91667%, rgba(255, 222, 222, 0.8) 97.91667%) -10px top no-repeat;
+  background: -moz-linear-gradient(left, rgba(255, 222, 222, 0.8) 2.08333%, transparent 2.08333%, transparent 4.16667%, rgba(255, 222, 222, 0.8) 4.16667%, rgba(255, 222, 222, 0.8) 6.25%, transparent 6.25%, transparent 8.33333%, rgba(255, 222, 222, 0.8) 8.33333%, rgba(255, 222, 222, 0.8) 10.41667%, transparent 10.41667%, transparent 12.5%, rgba(255, 222, 222, 0.8) 12.5%, rgba(255, 222, 222, 0.8) 14.58333%, transparent 14.58333%, transparent 16.66667%, rgba(255, 222, 222, 0.8) 16.66667%, rgba(255, 222, 222, 0.8) 18.75%, transparent 18.75%, transparent 20.83333%, rgba(255, 222, 222, 0.8) 20.83333%, rgba(255, 222, 222, 0.8) 22.91667%, transparent 22.91667%, transparent 25%, rgba(255, 222, 222, 0.8) 25%, rgba(255, 222, 222, 0.8) 27.08333%, transparent 27.08333%, transparent 29.16667%, rgba(255, 222, 222, 0.8) 29.16667%, rgba(255, 222, 222, 0.8) 31.25%, transparent 31.25%, transparent 33.33333%, rgba(255, 222, 222, 0.8) 33.33333%, rgba(255, 222, 222, 0.8) 35.41667%, transparent 35.41667%, transparent 37.5%, rgba(255, 222, 222, 0.8) 37.5%, rgba(255, 222, 222, 0.8) 39.58333%, transparent 39.58333%, transparent 41.66667%, rgba(255, 222, 222, 0.8) 41.66667%, rgba(255, 222, 222, 0.8) 43.75%, transparent 43.75%, transparent 45.83333%, rgba(255, 222, 222, 0.8) 45.83333%, rgba(255, 222, 222, 0.8) 47.91667%, transparent 47.91667%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 52.08333%, transparent 52.08333%, transparent 54.16667%, rgba(255, 222, 222, 0.8) 54.16667%, rgba(255, 222, 222, 0.8) 56.25%, transparent 56.25%, transparent 58.33333%, rgba(255, 222, 222, 0.8) 58.33333%, rgba(255, 222, 222, 0.8) 60.41667%, transparent 60.41667%, transparent 62.5%, rgba(255, 222, 222, 0.8) 62.5%, rgba(255, 222, 222, 0.8) 64.58333%, transparent 64.58333%, transparent 66.66667%, rgba(255, 222, 222, 0.8) 66.66667%, rgba(255, 222, 222, 0.8) 68.75%, transparent 68.75%, transparent 70.83333%, rgba(255, 222, 222, 0.8) 70.83333%, rgba(255, 222, 222, 0.8) 72.91667%, transparent 72.91667%, transparent 75%, rgba(255, 222, 222, 0.8) 75%, rgba(255, 222, 222, 0.8) 77.08333%, transparent 77.08333%, transparent 79.16667%, rgba(255, 222, 222, 0.8) 79.16667%, rgba(255, 222, 222, 0.8) 81.25%, transparent 81.25%, transparent 83.33333%, rgba(255, 222, 222, 0.8) 83.33333%, rgba(255, 222, 222, 0.8) 85.41667%, transparent 85.41667%, transparent 87.5%, rgba(255, 222, 222, 0.8) 87.5%, rgba(255, 222, 222, 0.8) 89.58333%, transparent 89.58333%, transparent 91.66667%, rgba(255, 222, 222, 0.8) 91.66667%, rgba(255, 222, 222, 0.8) 93.75%, transparent 93.75%, transparent 95.83333%, rgba(255, 222, 222, 0.8) 95.83333%, rgba(255, 222, 222, 0.8) 97.91667%, transparent 97.91667%) 10px top no-repeat, -moz-linear-gradient(left, transparent 2.08333%, rgba(255, 222, 222, 0.8) 2.08333%, rgba(255, 222, 222, 0.8) 4.16667%, transparent 4.16667%, transparent 6.25%, rgba(255, 222, 222, 0.8) 6.25%, rgba(255, 222, 222, 0.8) 8.33333%, transparent 8.33333%, transparent 10.41667%, rgba(255, 222, 222, 0.8) 10.41667%, rgba(255, 222, 222, 0.8) 12.5%, transparent 12.5%, transparent 14.58333%, rgba(255, 222, 222, 0.8) 14.58333%, rgba(255, 222, 222, 0.8) 16.66667%, transparent 16.66667%, transparent 18.75%, rgba(255, 222, 222, 0.8) 18.75%, rgba(255, 222, 222, 0.8) 20.83333%, transparent 20.83333%, transparent 22.91667%, rgba(255, 222, 222, 0.8) 22.91667%, rgba(255, 222, 222, 0.8) 25%, transparent 25%, transparent 27.08333%, rgba(255, 222, 222, 0.8) 27.08333%, rgba(255, 222, 222, 0.8) 29.16667%, transparent 29.16667%, transparent 31.25%, rgba(255, 222, 222, 0.8) 31.25%, rgba(255, 222, 222, 0.8) 33.33333%, transparent 33.33333%, transparent 35.41667%, rgba(255, 222, 222, 0.8) 35.41667%, rgba(255, 222, 222, 0.8) 37.5%, transparent 37.5%, transparent 39.58333%, rgba(255, 222, 222, 0.8) 39.58333%, rgba(255, 222, 222, 0.8) 41.66667%, transparent 41.66667%, transparent 43.75%, rgba(255, 222, 222, 0.8) 43.75%, rgba(255, 222, 222, 0.8) 45.83333%, transparent 45.83333%, transparent 47.91667%, rgba(255, 222, 222, 0.8) 47.91667%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 52.08333%, rgba(255, 222, 222, 0.8) 52.08333%, rgba(255, 222, 222, 0.8) 54.16667%, transparent 54.16667%, transparent 56.25%, rgba(255, 222, 222, 0.8) 56.25%, rgba(255, 222, 222, 0.8) 58.33333%, transparent 58.33333%, transparent 60.41667%, rgba(255, 222, 222, 0.8) 60.41667%, rgba(255, 222, 222, 0.8) 62.5%, transparent 62.5%, transparent 64.58333%, rgba(255, 222, 222, 0.8) 64.58333%, rgba(255, 222, 222, 0.8) 66.66667%, transparent 66.66667%, transparent 68.75%, rgba(255, 222, 222, 0.8) 68.75%, rgba(255, 222, 222, 0.8) 70.83333%, transparent 70.83333%, transparent 72.91667%, rgba(255, 222, 222, 0.8) 72.91667%, rgba(255, 222, 222, 0.8) 75%, transparent 75%, transparent 77.08333%, rgba(255, 222, 222, 0.8) 77.08333%, rgba(255, 222, 222, 0.8) 79.16667%, transparent 79.16667%, transparent 81.25%, rgba(255, 222, 222, 0.8) 81.25%, rgba(255, 222, 222, 0.8) 83.33333%, transparent 83.33333%, transparent 85.41667%, rgba(255, 222, 222, 0.8) 85.41667%, rgba(255, 222, 222, 0.8) 87.5%, transparent 87.5%, transparent 89.58333%, rgba(255, 222, 222, 0.8) 89.58333%, rgba(255, 222, 222, 0.8) 91.66667%, transparent 91.66667%, transparent 93.75%, rgba(255, 222, 222, 0.8) 93.75%, rgba(255, 222, 222, 0.8) 95.83333%, transparent 95.83333%, transparent 97.91667%, rgba(255, 222, 222, 0.8) 97.91667%) -10px top no-repeat;
+  background: -o-linear-gradient(left, rgba(255, 222, 222, 0.8) 2.08333%, transparent 2.08333%, transparent 4.16667%, rgba(255, 222, 222, 0.8) 4.16667%, rgba(255, 222, 222, 0.8) 6.25%, transparent 6.25%, transparent 8.33333%, rgba(255, 222, 222, 0.8) 8.33333%, rgba(255, 222, 222, 0.8) 10.41667%, transparent 10.41667%, transparent 12.5%, rgba(255, 222, 222, 0.8) 12.5%, rgba(255, 222, 222, 0.8) 14.58333%, transparent 14.58333%, transparent 16.66667%, rgba(255, 222, 222, 0.8) 16.66667%, rgba(255, 222, 222, 0.8) 18.75%, transparent 18.75%, transparent 20.83333%, rgba(255, 222, 222, 0.8) 20.83333%, rgba(255, 222, 222, 0.8) 22.91667%, transparent 22.91667%, transparent 25%, rgba(255, 222, 222, 0.8) 25%, rgba(255, 222, 222, 0.8) 27.08333%, transparent 27.08333%, transparent 29.16667%, rgba(255, 222, 222, 0.8) 29.16667%, rgba(255, 222, 222, 0.8) 31.25%, transparent 31.25%, transparent 33.33333%, rgba(255, 222, 222, 0.8) 33.33333%, rgba(255, 222, 222, 0.8) 35.41667%, transparent 35.41667%, transparent 37.5%, rgba(255, 222, 222, 0.8) 37.5%, rgba(255, 222, 222, 0.8) 39.58333%, transparent 39.58333%, transparent 41.66667%, rgba(255, 222, 222, 0.8) 41.66667%, rgba(255, 222, 222, 0.8) 43.75%, transparent 43.75%, transparent 45.83333%, rgba(255, 222, 222, 0.8) 45.83333%, rgba(255, 222, 222, 0.8) 47.91667%, transparent 47.91667%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 52.08333%, transparent 52.08333%, transparent 54.16667%, rgba(255, 222, 222, 0.8) 54.16667%, rgba(255, 222, 222, 0.8) 56.25%, transparent 56.25%, transparent 58.33333%, rgba(255, 222, 222, 0.8) 58.33333%, rgba(255, 222, 222, 0.8) 60.41667%, transparent 60.41667%, transparent 62.5%, rgba(255, 222, 222, 0.8) 62.5%, rgba(255, 222, 222, 0.8) 64.58333%, transparent 64.58333%, transparent 66.66667%, rgba(255, 222, 222, 0.8) 66.66667%, rgba(255, 222, 222, 0.8) 68.75%, transparent 68.75%, transparent 70.83333%, rgba(255, 222, 222, 0.8) 70.83333%, rgba(255, 222, 222, 0.8) 72.91667%, transparent 72.91667%, transparent 75%, rgba(255, 222, 222, 0.8) 75%, rgba(255, 222, 222, 0.8) 77.08333%, transparent 77.08333%, transparent 79.16667%, rgba(255, 222, 222, 0.8) 79.16667%, rgba(255, 222, 222, 0.8) 81.25%, transparent 81.25%, transparent 83.33333%, rgba(255, 222, 222, 0.8) 83.33333%, rgba(255, 222, 222, 0.8) 85.41667%, transparent 85.41667%, transparent 87.5%, rgba(255, 222, 222, 0.8) 87.5%, rgba(255, 222, 222, 0.8) 89.58333%, transparent 89.58333%, transparent 91.66667%, rgba(255, 222, 222, 0.8) 91.66667%, rgba(255, 222, 222, 0.8) 93.75%, transparent 93.75%, transparent 95.83333%, rgba(255, 222, 222, 0.8) 95.83333%, rgba(255, 222, 222, 0.8) 97.91667%, transparent 97.91667%) 10px top no-repeat, -o-linear-gradient(left, transparent 2.08333%, rgba(255, 222, 222, 0.8) 2.08333%, rgba(255, 222, 222, 0.8) 4.16667%, transparent 4.16667%, transparent 6.25%, rgba(255, 222, 222, 0.8) 6.25%, rgba(255, 222, 222, 0.8) 8.33333%, transparent 8.33333%, transparent 10.41667%, rgba(255, 222, 222, 0.8) 10.41667%, rgba(255, 222, 222, 0.8) 12.5%, transparent 12.5%, transparent 14.58333%, rgba(255, 222, 222, 0.8) 14.58333%, rgba(255, 222, 222, 0.8) 16.66667%, transparent 16.66667%, transparent 18.75%, rgba(255, 222, 222, 0.8) 18.75%, rgba(255, 222, 222, 0.8) 20.83333%, transparent 20.83333%, transparent 22.91667%, rgba(255, 222, 222, 0.8) 22.91667%, rgba(255, 222, 222, 0.8) 25%, transparent 25%, transparent 27.08333%, rgba(255, 222, 222, 0.8) 27.08333%, rgba(255, 222, 222, 0.8) 29.16667%, transparent 29.16667%, transparent 31.25%, rgba(255, 222, 222, 0.8) 31.25%, rgba(255, 222, 222, 0.8) 33.33333%, transparent 33.33333%, transparent 35.41667%, rgba(255, 222, 222, 0.8) 35.41667%, rgba(255, 222, 222, 0.8) 37.5%, transparent 37.5%, transparent 39.58333%, rgba(255, 222, 222, 0.8) 39.58333%, rgba(255, 222, 222, 0.8) 41.66667%, transparent 41.66667%, transparent 43.75%, rgba(255, 222, 222, 0.8) 43.75%, rgba(255, 222, 222, 0.8) 45.83333%, transparent 45.83333%, transparent 47.91667%, rgba(255, 222, 222, 0.8) 47.91667%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 52.08333%, rgba(255, 222, 222, 0.8) 52.08333%, rgba(255, 222, 222, 0.8) 54.16667%, transparent 54.16667%, transparent 56.25%, rgba(255, 222, 222, 0.8) 56.25%, rgba(255, 222, 222, 0.8) 58.33333%, transparent 58.33333%, transparent 60.41667%, rgba(255, 222, 222, 0.8) 60.41667%, rgba(255, 222, 222, 0.8) 62.5%, transparent 62.5%, transparent 64.58333%, rgba(255, 222, 222, 0.8) 64.58333%, rgba(255, 222, 222, 0.8) 66.66667%, transparent 66.66667%, transparent 68.75%, rgba(255, 222, 222, 0.8) 68.75%, rgba(255, 222, 222, 0.8) 70.83333%, transparent 70.83333%, transparent 72.91667%, rgba(255, 222, 222, 0.8) 72.91667%, rgba(255, 222, 222, 0.8) 75%, transparent 75%, transparent 77.08333%, rgba(255, 222, 222, 0.8) 77.08333%, rgba(255, 222, 222, 0.8) 79.16667%, transparent 79.16667%, transparent 81.25%, rgba(255, 222, 222, 0.8) 81.25%, rgba(255, 222, 222, 0.8) 83.33333%, transparent 83.33333%, transparent 85.41667%, rgba(255, 222, 222, 0.8) 85.41667%, rgba(255, 222, 222, 0.8) 87.5%, transparent 87.5%, transparent 89.58333%, rgba(255, 222, 222, 0.8) 89.58333%, rgba(255, 222, 222, 0.8) 91.66667%, transparent 91.66667%, transparent 93.75%, rgba(255, 222, 222, 0.8) 93.75%, rgba(255, 222, 222, 0.8) 95.83333%, transparent 95.83333%, transparent 97.91667%, rgba(255, 222, 222, 0.8) 97.91667%) -10px top no-repeat;
+  background: linear-gradient(left, rgba(255, 222, 222, 0.8) 2.08333%, transparent 2.08333%, transparent 4.16667%, rgba(255, 222, 222, 0.8) 4.16667%, rgba(255, 222, 222, 0.8) 6.25%, transparent 6.25%, transparent 8.33333%, rgba(255, 222, 222, 0.8) 8.33333%, rgba(255, 222, 222, 0.8) 10.41667%, transparent 10.41667%, transparent 12.5%, rgba(255, 222, 222, 0.8) 12.5%, rgba(255, 222, 222, 0.8) 14.58333%, transparent 14.58333%, transparent 16.66667%, rgba(255, 222, 222, 0.8) 16.66667%, rgba(255, 222, 222, 0.8) 18.75%, transparent 18.75%, transparent 20.83333%, rgba(255, 222, 222, 0.8) 20.83333%, rgba(255, 222, 222, 0.8) 22.91667%, transparent 22.91667%, transparent 25%, rgba(255, 222, 222, 0.8) 25%, rgba(255, 222, 222, 0.8) 27.08333%, transparent 27.08333%, transparent 29.16667%, rgba(255, 222, 222, 0.8) 29.16667%, rgba(255, 222, 222, 0.8) 31.25%, transparent 31.25%, transparent 33.33333%, rgba(255, 222, 222, 0.8) 33.33333%, rgba(255, 222, 222, 0.8) 35.41667%, transparent 35.41667%, transparent 37.5%, rgba(255, 222, 222, 0.8) 37.5%, rgba(255, 222, 222, 0.8) 39.58333%, transparent 39.58333%, transparent 41.66667%, rgba(255, 222, 222, 0.8) 41.66667%, rgba(255, 222, 222, 0.8) 43.75%, transparent 43.75%, transparent 45.83333%, rgba(255, 222, 222, 0.8) 45.83333%, rgba(255, 222, 222, 0.8) 47.91667%, transparent 47.91667%, transparent 50%, rgba(255, 222, 222, 0.8) 50%, rgba(255, 222, 222, 0.8) 52.08333%, transparent 52.08333%, transparent 54.16667%, rgba(255, 222, 222, 0.8) 54.16667%, rgba(255, 222, 222, 0.8) 56.25%, transparent 56.25%, transparent 58.33333%, rgba(255, 222, 222, 0.8) 58.33333%, rgba(255, 222, 222, 0.8) 60.41667%, transparent 60.41667%, transparent 62.5%, rgba(255, 222, 222, 0.8) 62.5%, rgba(255, 222, 222, 0.8) 64.58333%, transparent 64.58333%, transparent 66.66667%, rgba(255, 222, 222, 0.8) 66.66667%, rgba(255, 222, 222, 0.8) 68.75%, transparent 68.75%, transparent 70.83333%, rgba(255, 222, 222, 0.8) 70.83333%, rgba(255, 222, 222, 0.8) 72.91667%, transparent 72.91667%, transparent 75%, rgba(255, 222, 222, 0.8) 75%, rgba(255, 222, 222, 0.8) 77.08333%, transparent 77.08333%, transparent 79.16667%, rgba(255, 222, 222, 0.8) 79.16667%, rgba(255, 222, 222, 0.8) 81.25%, transparent 81.25%, transparent 83.33333%, rgba(255, 222, 222, 0.8) 83.33333%, rgba(255, 222, 222, 0.8) 85.41667%, transparent 85.41667%, transparent 87.5%, rgba(255, 222, 222, 0.8) 87.5%, rgba(255, 222, 222, 0.8) 89.58333%, transparent 89.58333%, transparent 91.66667%, rgba(255, 222, 222, 0.8) 91.66667%, rgba(255, 222, 222, 0.8) 93.75%, transparent 93.75%, transparent 95.83333%, rgba(255, 222, 222, 0.8) 95.83333%, rgba(255, 222, 222, 0.8) 97.91667%, transparent 97.91667%) 10px top no-repeat, linear-gradient(left, transparent 2.08333%, rgba(255, 222, 222, 0.8) 2.08333%, rgba(255, 222, 222, 0.8) 4.16667%, transparent 4.16667%, transparent 6.25%, rgba(255, 222, 222, 0.8) 6.25%, rgba(255, 222, 222, 0.8) 8.33333%, transparent 8.33333%, transparent 10.41667%, rgba(255, 222, 222, 0.8) 10.41667%, rgba(255, 222, 222, 0.8) 12.5%, transparent 12.5%, transparent 14.58333%, rgba(255, 222, 222, 0.8) 14.58333%, rgba(255, 222, 222, 0.8) 16.66667%, transparent 16.66667%, transparent 18.75%, rgba(255, 222, 222, 0.8) 18.75%, rgba(255, 222, 222, 0.8) 20.83333%, transparent 20.83333%, transparent 22.91667%, rgba(255, 222, 222, 0.8) 22.91667%, rgba(255, 222, 222, 0.8) 25%, transparent 25%, transparent 27.08333%, rgba(255, 222, 222, 0.8) 27.08333%, rgba(255, 222, 222, 0.8) 29.16667%, transparent 29.16667%, transparent 31.25%, rgba(255, 222, 222, 0.8) 31.25%, rgba(255, 222, 222, 0.8) 33.33333%, transparent 33.33333%, transparent 35.41667%, rgba(255, 222, 222, 0.8) 35.41667%, rgba(255, 222, 222, 0.8) 37.5%, transparent 37.5%, transparent 39.58333%, rgba(255, 222, 222, 0.8) 39.58333%, rgba(255, 222, 222, 0.8) 41.66667%, transparent 41.66667%, transparent 43.75%, rgba(255, 222, 222, 0.8) 43.75%, rgba(255, 222, 222, 0.8) 45.83333%, transparent 45.83333%, transparent 47.91667%, rgba(255, 222, 222, 0.8) 47.91667%, rgba(255, 222, 222, 0.8) 50%, transparent 50%, transparent 52.08333%, rgba(255, 222, 222, 0.8) 52.08333%, rgba(255, 222, 222, 0.8) 54.16667%, transparent 54.16667%, transparent 56.25%, rgba(255, 222, 222, 0.8) 56.25%, rgba(255, 222, 222, 0.8) 58.33333%, transparent 58.33333%, transparent 60.41667%, rgba(255, 222, 222, 0.8) 60.41667%, rgba(255, 222, 222, 0.8) 62.5%, transparent 62.5%, transparent 64.58333%, rgba(255, 222, 222, 0.8) 64.58333%, rgba(255, 222, 222, 0.8) 66.66667%, transparent 66.66667%, transparent 68.75%, rgba(255, 222, 222, 0.8) 68.75%, rgba(255, 222, 222, 0.8) 70.83333%, transparent 70.83333%, transparent 72.91667%, rgba(255, 222, 222, 0.8) 72.91667%, rgba(255, 222, 222, 0.8) 75%, transparent 75%, transparent 77.08333%, rgba(255, 222, 222, 0.8) 77.08333%, rgba(255, 222, 222, 0.8) 79.16667%, transparent 79.16667%, transparent 81.25%, rgba(255, 222, 222, 0.8) 81.25%, rgba(255, 222, 222, 0.8) 83.33333%, transparent 83.33333%, transparent 85.41667%, rgba(255, 222, 222, 0.8) 85.41667%, rgba(255, 222, 222, 0.8) 87.5%, transparent 87.5%, transparent 89.58333%, rgba(255, 222, 222, 0.8) 89.58333%, rgba(255, 222, 222, 0.8) 91.66667%, transparent 91.66667%, transparent 93.75%, rgba(255, 222, 222, 0.8) 93.75%, rgba(255, 222, 222, 0.8) 95.83333%, transparent 95.83333%, transparent 97.91667%, rgba(255, 222, 222, 0.8) 97.91667%) -10px top no-repeat;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-container.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,40 @@
+/**
+ * @file
+ * Test zen-grid-container()
+ */
+#test-zen-grid-container {
+  /* Test zen-grid-container() */
+}
+#test-zen-grid-container:before, #test-zen-grid-container:after {
+  content: "";
+  display: table;
+}
+#test-zen-grid-container:after {
+  clear: both;
+}
+
+#test-zen-grid-container-2 {
+  /* Test zen-grid-container() with $legacy-support-for-ie7: true */
+  *position: relative;
+  *zoom: 1;
+}
+#test-zen-grid-container-2:before, #test-zen-grid-container-2:after {
+  content: "";
+  display: table;
+}
+#test-zen-grid-container-2:after {
+  clear: both;
+}
+
+#test-zen-grid-container-3 {
+  /* Test zen-grid-container() with $legacy-support-for-ie6: true */
+  *position: relative;
+  *zoom: 1;
+}
+#test-zen-grid-container-3:before, #test-zen-grid-container-3:after {
+  content: "";
+  display: table;
+}
+#test-zen-grid-container-3:after {
+  clear: both;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-flow-item.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,165 @@
+/**
+ * @file
+ * Test zen-grid-flow-item()
+ */
+#test-zen-grid-flow-item {
+  /* Test zen-grid-flow-item(1) without setting $column-count */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 100%;
+  padding-left: 0;
+  padding-right: 0px;
+  margin-right: 20px;
+  /* Test zen-grid-flow-item(1, 4) with 20px gutter */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-left: 0;
+  padding-right: 15px;
+  margin-right: 5px;
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter */
+  padding-left: 7px;
+  padding-right: 8px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-left: 0;
+  padding-right: 11.25px;
+  margin-right: 3.75px;
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter and $zen-grid-width: 1000px */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 200px;
+  padding-left: 0;
+  padding-right: 20px;
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px, $alpha-gutter: true and $omega-gutter: false */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 200px;
+  padding-left: 20px;
+  padding-right: 0;
+  /* Test zen-grid-flow-item(1) with 5 columns, 20px gutter, $zen-grid-width: 1000px and $omega-gutter: false */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 180px;
+  padding-left: 0;
+  padding-right: 0;
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $zen-float-direction: right */
+  padding-left: 8px;
+  padding-right: 7px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-right: 0;
+  padding-left: 11.25px;
+  margin-left: 3.75px;
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $alpha-gutter: true */
+  padding-left: 7px;
+  padding-right: 8px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-left: 0;
+  margin-left: 15px;
+  padding-right: 11.25px;
+  margin-right: 3.75px;
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter and $omega-gutter: false */
+  padding-left: 7px;
+  padding-right: 8px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-left: 0;
+  padding-right: 11.25px;
+  margin-right: -11.25px;
+  /* Test zen-grid-flow-item(3, 4) with 20px gutter and $alpha-gutter: true */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 75%;
+  padding-left: 0;
+  margin-left: 20px;
+  padding-right: 5px;
+  margin-right: 15px;
+  /* Test zen-grid-flow-item(3, 4) with 20px gutter and $omega-gutter: false */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 75%;
+  padding-left: 0;
+  padding-right: 5px;
+  margin-right: -5px;
+  /* Test zen-grid-flow-item(1, 4) with 15px gutter, $zen-float-direction: right and $alpha-gutter: true */
+  padding-left: 8px;
+  padding-right: 7px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  width: 25%;
+  padding-right: 0;
+  margin-right: 15px;
+  padding-left: 11.25px;
+  margin-left: 3.75px;
+  /* Test zen-grid-flow-item(1, 4) with $zen-box-sizing: content-box and 10% gutter */
+  padding-left: 5%;
+  padding-right: 5%;
+  border-left: 0 !important;
+  border-right: 0 !important;
+  word-wrap: break-word;
+  width: 15%;
+  padding-left: 0;
+  padding-right: 7.5%;
+  margin-right: 2.5%;
+  /* Test zen-grid-flow-item(1, 4) with $zen-auto-include-flow-item-base: false */
+  width: 25%;
+  padding-left: 0;
+  padding-right: 15px;
+  margin-right: 5px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item-base.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,73 @@
+/**
+ * @file
+ * Test zen-grid-item-base()
+ */
+#test-zen-grid-item-base {
+  /* Test zen-grid-item-base() */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  /* Test zen-grid-item-base() with $zen-box-sizing: content-box */
+  padding-left: 10px;
+  padding-right: 10px;
+  border-left: 0 !important;
+  border-right: 0 !important;
+  word-wrap: break-word;
+  /* Test zen-grid-item-base() with $legacy-support-for-ie7: true */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie7: true */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  *behavior: url("/boxsizing.htc");
+  /* Test zen-grid-item-base() with $box-sizing-polyfill-path: "/boxsizing.htc" and $legacy-support-for-ie6: true */
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  *behavior: url("/boxsizing.htc");
+  _display: inline;
+  _overflow: hidden;
+  _overflow-y: visible;
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px */
+  padding-left: 7px;
+  padding-right: 8px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-float-direction: right */
+  padding-left: 8px;
+  padding-right: 7px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  /* Test zen-grid-item-base() with $zen-gutter-width: 15px and $zen-reverse-all-floats: true */
+  padding-left: 8px;
+  padding-right: 7px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-grid-item.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,59 @@
+/**
+ * @file
+ * Test zen-grid-item()
+ */
+#test-zen-grid-item {
+  /* Test zen-grid-item(6, 4) with 12 column grid and 20px gutter */
+  float: left;
+  width: 50%;
+  margin-left: 25%;
+  margin-right: -75%;
+  padding-left: 10px;
+  padding-right: 10px;
+  -moz-box-sizing: border-box;
+  -webkit-box-sizing: border-box;
+  -ms-box-sizing: border-box;
+  box-sizing: border-box;
+  word-wrap: break-word;
+  /* Test zen-grid-item(3, 3) with box-sizing: content-box, 5 column grid and 10% gutter */
+  float: left;
+  width: 50%;
+  margin-left: 40%;
+  margin-right: -100%;
+  padding-left: 5%;
+  padding-right: 5%;
+  border-left: 0 !important;
+  border-right: 0 !important;
+  word-wrap: break-word;
+  /* Turn off $zen-auto-include-item-base */
+  /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter */
+  float: left;
+  width: 60%;
+  margin-left: 40%;
+  margin-right: -100%;
+  /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter */
+  float: right;
+  width: 60%;
+  margin-right: 40%;
+  margin-left: -100%;
+  /* Test zen-grid-item(3, 3) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  float: right;
+  width: 60%;
+  margin-right: 40%;
+  margin-left: -100%;
+  /* Test zen-grid-item(3, 3, right) with 5 column grid and 40px gutter and $zen-reverse-all-floats */
+  float: left;
+  width: 60%;
+  margin-left: 40%;
+  margin-right: -100%;
+  /* Test zen-grid-item(3, 2.5) with 5 column grid and 40px gutter */
+  float: left;
+  width: 60%;
+  margin-left: 30%;
+  margin-right: -90%;
+  /* Test zen-grid-item(3, 3) with $zen-grid-width: 1000px, 5 column grid and 40px gutter */
+  float: left;
+  width: 600px;
+  margin-left: 400px;
+  margin-right: -1000px;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/templates/unit-tests/test-results/zen-nested-container.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,21 @@
+/**
+ * @file
+ * Test zen-nested-container()
+ */
+#test-zen-nested-container {
+  /* Test zen-nested-container() */
+  padding-left: 0;
+  padding-right: 0;
+}
+
+#test-zen-nested-container-2 {
+  /* Test zen-nested-container() with $legacy-support-for-ie7: true */
+  padding-left: 0;
+  padding-right: 0;
+}
+
+#test-zen-nested-container-3 {
+  /* Test zen-nested-container() with $legacy-support-for-ie6: true */
+  padding-left: 0;
+  padding-right: 0;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass-extensions/zen-grids/zen-grids.gemspec	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,63 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+  s.name        = 'zen-grids'
+
+  s.summary     = %q{A Compass plugin for Zen Grids, a fluid responsive grid system}
+  s.description = %q{Zen Grids is an intuitive, flexible grid system that leverages the natural source order of your content to make it easier to create fluid responsive designs. With an easy-to-use Sass mixin set, the Zen Grids system can be applied to an infinite number of layouts, including responsive, adaptive, fluid and fixed-width layouts.}
+
+  s.homepage    = 'http://zengrids.com'
+  s.license     = 'GPL-2'
+  s.rubyforge_project =
+
+  s.version     = '1.4'
+  s.date        = '2013-04-02'
+
+  s.authors     = ['John Albin Wilkins']
+  s.email       = 'virtually.johnalbin@gmail.com'
+
+  s.add_runtime_dependency('sass', ">= 3.1")
+
+  s.files       = %w[
+    LICENSE.txt
+    README.txt
+    lib/zen-grids.rb
+    stylesheets/_zen.scss
+    stylesheets/zen/_background.scss
+    stylesheets/zen/_grids.scss
+    templates/project/_init.scss
+    templates/project/_layout.scss
+    templates/project/_modules.scss
+    templates/project/_visually-hidden.scss
+    templates/project/example.html
+    templates/project/manifest.rb
+    templates/project/styles.scss
+    templates/unit-tests/manifest.rb
+    templates/unit-tests/README.txt
+    templates/unit-tests/sass/function-zen-direction-flip.scss
+    templates/unit-tests/sass/function-zen-grid-item-width.scss
+    templates/unit-tests/sass/function-zen-half-gutter.scss
+    templates/unit-tests/sass/function-zen-unit-width.scss
+    templates/unit-tests/sass/zen-clear.scss
+    templates/unit-tests/sass/zen-float.scss
+    templates/unit-tests/sass/zen-grid-background.scss
+    templates/unit-tests/sass/zen-grid-container.scss
+    templates/unit-tests/sass/zen-grid-flow-item.scss
+    templates/unit-tests/sass/zen-grid-item-base.scss
+    templates/unit-tests/sass/zen-grid-item.scss
+    templates/unit-tests/sass/zen-nested-container.scss
+    templates/unit-tests/test-results/function-zen-direction-flip.css
+    templates/unit-tests/test-results/function-zen-grid-item-width.css
+    templates/unit-tests/test-results/function-zen-half-gutter.css
+    templates/unit-tests/test-results/function-zen-unit-width.css
+    templates/unit-tests/test-results/zen-clear.css
+    templates/unit-tests/test-results/zen-float.css
+    templates/unit-tests/test-results/zen-grid-background.css
+    templates/unit-tests/test-results/zen-grid-container.css
+    templates/unit-tests/test-results/zen-grid-flow-item.css
+    templates/unit-tests/test-results/zen-grid-item-base.css
+    templates/unit-tests/test-results/zen-grid-item.css
+    templates/unit-tests/test-results/zen-nested-container.css
+    zen-grids.gemspec
+  ]
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,58 @@
+ABOUT SASS AND COMPASS
+----------------------
+
+This directory includes Sass versions of Zen's CSS files. (If you are wondering
+how these Sass files are organized, read the css/README.txt file.)
+
+Sass is a language that is just normal CSS plus some extra features, like
+variables, nested rules, math, mixins, etc. If your stylesheets are written in
+Sass, helper applications can convert them to standard CSS so that you can
+include the CSS in the normal ways with your theme.
+
+To learn more about Sass, visit: http://sass-lang.com
+
+Compass is a helper library for Sass. It includes libraries of shared mixins, a
+package manager to add additional extension libraries, and an executable that
+can easily convert Sass files into CSS.
+
+To learn more about Compass, visit: http://compass-style.org
+
+
+DEVELOPING WITH SASS AND COMPASS
+--------------------------------
+
+To automatically generate the CSS versions of the scss while you are doing theme
+development, you'll need to tell Compass to "watch" the sass directory so that
+any time a .scss file is changed it will automatically place a generated CSS
+file into your sub-theme's css directory:
+
+  compass watch <path to your sub-theme's directory>
+
+  If you are already in the root of your sub-theme's directory, you can simply
+  type:  compass watch
+
+While using generated CSS with Firebug, the line numbers it reports will be
+wrong since it will be showing the generated CSS file's line numbers and not the
+line numbers of the source Sass files. To correct this problem, you can install
+the FireSass plug-in into Firefox and then edit your sub-theme's config.rb file
+to set: firesass = true
+  https://addons.mozilla.org/en-US/firefox/addon/firesass-for-firebug/
+
+
+MOVING YOUR CSS TO PRODUCTION
+-----------------------------
+
+Once you have finished your sub-theme development and are ready to move your CSS
+files to your production server, you'll need to tell sass to update all your CSS
+files and to compress them (to improve performance). Note: the Compass command
+will only generate CSS for .scss files that have recently changed; in order to
+force it to regenerate all the CSS files, you can use the Compass' clean command
+to delete all the generated CSS files.
+
+- Delete all CSS files by running: compass clean
+- Edit the config.rb file in your theme's directory and uncomment this line by
+  deleting the "#" from the beginning:
+    #environment = :production
+- Regenerate all the CSS files by running: compass compile
+
+And don't forget to turn on Drupal's CSS aggregation. :-)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/_init.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,126 @@
+//
+// Initialization partial
+//
+// To make it easier to use all variables and mixins in any Sass file in this
+// theme, each .scss file has a @import "init" declaration. And this _init.scss
+// file is in charge of importing all the other partials needed for the theme.
+//
+// This initialization partial is organized in this way:
+// - First we set any shared Sass variables.
+// - Next we import Compass plug-ins (Sass mixin libraries).
+// - Last we define our custom mixins for this theme.
+//
+
+
+// =============================================================================
+// Variables
+// =============================================================================
+
+//
+// Legacy IE support
+//
+// These variables are used by many mixins to add additional CSS to support
+// specific versions of IE or specific vendor prefixes.
+//
+// IE6-7 don't support box-sizing: border-box. We can fix this in 1 of 3 ways:
+// - Drop support for IE 6/7. :-) Set $legacy-support-for-ie6
+//   and $legacy-support-for-ie7 to false.
+// - (Preferred) Install the box-sizing polyfill and set the variable below to
+//   the absolute path URL to the boxsizing.htc file.
+//   @see https://github.com/Schepp/box-sizing-polyfill
+//   $box-sizing-polyfill-path: "/path/to/boxsizing.htc";
+// - Use the same CSS unit for grid and gutter width in resonsive-sidebars.scss
+//   (use px for both or use % for both) and set the box-sizing variable to content-box.
+//
+// Zen does not require special handling for IE8 or later. But Compass uses that
+// variable for a couple edge cases. We include it for completeness sake. See
+// the documentation at http://compass-style.org/reference/compass/support/
+$legacy-support-for-ie6: false;
+$legacy-support-for-ie7: false;
+$legacy-support-for-ie8: true;
+
+
+//
+// Font faces, stacks and sizes.
+//
+
+// Compass' vertical_rhythm extension is a powerful tool to set up a vertical
+// rhythm for your entire page. You can see some of its mixins and functions in
+// use in the normalize.scss file.
+// @see http://compass-style.org/reference/compass/typography/vertical_rhythm/
+
+$base-font-size:   16px; // The font size set on the root html element.
+$base-line-height: 24px; // This line-height determines the basic unit of vertical rhythm.
+
+$h1-font-size: 2    * $base-font-size;
+$h2-font-size: 1.5  * $base-font-size;
+$h3-font-size: 1.17 * $base-font-size;
+$h4-font-size: 1    * $base-font-size;
+$h5-font-size: 0.83 * $base-font-size;
+$h6-font-size: 0.67 * $base-font-size;
+
+// The following font family declarations are based on the Microsoft core web
+// fonts which are common fonts available on most computer systems. The DejaVu
+// and Nimbus Sans fonts are commonly available on Linux systems where the MS
+// fonts are less common. Tahoma and Helvetica are also widely available.
+//
+// A user's web browser will look at the comma-separated list and will
+// attempt to use each font in turn until it finds one that is available
+// on the user's computer. The final "generic" font (sans-serif, serif or
+// monospace) hints at what type of font to use if the web browser doesn't
+// find any of the fonts in the list.
+
+// First, let's create some font stacks.
+$times-new-roman: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
+$times:           Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
+$georgia:         Georgia, "Times New Roman", "DejaVu Serif", serif;
+
+$verdana:         Verdana, Tahoma, "DejaVu Sans", sans-serif;
+$tahoma:          Tahoma, Verdana, "DejaVu Sans", sans-serif;
+$helvetica:       Helvetica, Arial, "Nimbus Sans L", sans-serif;
+$arial:           Arial, Helvetica, "Nimbus Sans L", sans-serif;
+
+// For an explanation of why "sans-serif" is at the end of this list, see
+// http://meyerweb.com/eric/thoughts/2010/02/12/fixed-monospace-sizing/
+$courier:         "Courier New", "DejaVu Sans Mono", monospace, sans-serif;
+
+// Now create some variables for the font stacks we want to use on this site.
+$base-font-family: $verdana; // The font family set on the html element.
+$font-body:        $verdana;
+$font-monospace:   $courier;
+
+
+//
+// Colors, etc.
+//
+
+// The amount lists, blockquotes and comments are indented.
+$indent-amount: 30px;
+
+// The height of the navigation container.
+$nav-height: 3em;
+
+// Tab styling.
+$tabs-container-bg: #fff;
+$tabs-border: #bbb;
+
+
+// =============================================================================
+// Partials to be shared with all .scss files.
+// =============================================================================
+
+// Add Compass' IE and vendor prefix support variables.
+@import "compass/support";
+// Better than Drupal's clearfix.
+@import "compass/utilities/general/clearfix";
+// See http://compass-style.org/help/tutorials/spriting/
+@import "compass/utilities/sprites";
+// Use one CSS3 mixin instead of multiple vendor prefixes.
+@import "compass/css3";
+// Helps set up a vertical rhythm.
+@import "compass/typography/vertical_rhythm";
+// Add the Zen Grids responsive layout mixins.
+@import "zen";
+
+// Now we add our custom helper mixins.
+@import "mixins";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/_mixins.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,37 @@
+// @file
+// Custom sass mixins
+//
+// Define the custom mixins for your project here.
+// http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#defining_a_mixin
+
+// Makes an element visually hidden, but accessible.
+// @see http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
+@mixin element-invisible {
+  position: absolute !important;
+  height: 1px;
+  width: 1px;
+  overflow: hidden;
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
+  }
+  clip: rect(1px, 1px, 1px, 1px);
+}
+
+// Turns off the element-invisible effect.
+@mixin element-invisible-off {
+  position: static !important;
+  clip: auto;
+  height: auto;
+  width: auto;
+  overflow: auto;
+}
+
+// Makes an element visually hidden by default, but visible when focused.
+@mixin element-focusable {
+  @include element-invisible;
+
+  &:active,
+  &:focus {
+    @include element-invisible-off;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/_normalize-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,29 @@
+/**
+ * @file
+ * Normalize-rtl.scss is the RTL language extension of normalize.scss
+ */
+
+/**
+ * Lists
+ */
+dd {
+  margin: 0 $indent-amount 0 0;
+}
+
+/* Address paddings set differently in IE 6/7. */
+menu,
+ol,
+ul {
+  padding: 0 $indent-amount 0 0;
+}
+
+@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+  /**
+   * Forms
+   */
+  legend {
+    /* Correct alignment displayed oddly in IE 6/7. */
+    *margin-left: 0;
+    *margin-right: -7px;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/_normalize.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,545 @@
+/**
+ * @file
+ * Normalize.css is intended to be used as an alternative to CSS resets.
+ *
+ * This file is a slight fork of these original sources:
+ * - normalize.css v2.1.2 | MIT License | git.io/normalize
+ * - normalize.scss v2.1.2 | MIT/GPLv2 License | bit.ly/normalize-with-compass
+ *
+ * It's suggested that you read the normalize.scss file and customise it to meet
+ * your needs, rather then including the file in your project and overriding the
+ * defaults later in your CSS.
+ * @see http://nicolasgallagher.com/about-normalize-css/
+ *
+ * Also: @see http://meiert.com/en/blog/20080419/reset-style-sheets-are-bad/
+ *       @see http://snook.ca/archives/html_and_css/no_css_reset/
+ */
+
+/**
+ * HTML5 display definitions
+ */
+
+/* Correct `block` display not defined in IE 8/9. */
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+main,
+nav,
+section,
+summary {
+  display: block;
+}
+
+/* Correct `inline-block` display not defined in IE 8/9. */
+audio,
+canvas,
+video {
+  display: inline-block;
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *display: inline;
+    *zoom: 1;
+  }
+}
+
+/**
+ * Prevent modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+audio:not([controls]) {
+  display: none;
+  height: 0;
+}
+
+/* Address styling not present in IE 8/9. */
+[hidden] {
+  display: none;
+}
+
+/**
+ * Base
+ *
+ * Instead of relying on the fonts that are available on a user's computer, you
+ * can use web fonts which, like images, are resources downloaded to the user's
+ * browser. Because of the bandwidth and rendering resources required, web fonts
+ * should be used with care.
+ *
+ * Numerous resources for web fonts can be found on Google. Here are a few
+ * websites where you can find Open Source fonts to download:
+ * - http://www.fontsquirrel.com/fontface
+ * - http://www.theleagueofmoveabletype.com
+ *
+ * In order to use these fonts, you will need to convert them into formats
+ * suitable for web fonts. We recommend the free-to-use Font Squirrel's
+ * Font-Face Generator:
+ *   http://www.fontsquirrel.com/fontface/generator
+ *
+ * The following is an example @font-face declaration. This font can then be
+ * used in any ruleset using a property like this:  font-family: Example, serif;
+ *
+ * Since we're using Sass, you'll need to declare your font faces here, then you
+ * can add them to the font variables in the _base.scss partial.
+ */
+/*
+@font-face {
+  font-family: 'Example';
+  src: url('../fonts/example.eot');
+  src: url('../fonts/example.eot?iefix') format('eot'),
+    url('../fonts/example.woff') format('woff'),
+    url('../fonts/example.ttf') format('truetype'),
+    url('../fonts/example.svg#webfontOkOndcij') format('svg');
+  font-weight: normal;
+  font-style: normal;
+}
+*/
+
+/**
+ * 1. Set default font family to sans-serif.
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
+ *    user zoom.
+ * 3. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
+ *    `em` units.
+ */
+html {
+  font-family: $base-font-family; /* 1 */
+  font-size: 100% * ($base-font-size / 16px); /* 3 */
+  -ms-text-size-adjust: 100%; /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+  // Establish a vertical rhythm unit using $base-line-height.
+  @include adjust-leading-to(1);
+}
+
+@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+  /* Address `font-family` inconsistency between `textarea` and other form elements. */
+  button,
+  input,
+  select,
+  textarea {
+    font-family: $base-font-family;
+  }
+}
+
+/* Remove default margin. */
+body {
+  margin: 0;
+  padding: 0;
+}
+
+/**
+ * Links
+ *
+ * The order of link states are based on Eric Meyer's article:
+ * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
+ */
+a:link {
+}
+a:visited {
+}
+a:hover,
+a:focus {
+}
+a:active {
+}
+
+/* Address `outline` inconsistency between Chrome and other browsers. */
+a:focus {
+  outline: thin dotted;
+}
+
+/* Improve readability when focused and also mouse hovered in all browsers. */
+a:active,
+a:hover {
+  outline: 0;
+}
+
+/**
+ * Typography
+ *
+ * To achieve a pleasant vertical rhythm, we use Compass' Vertical Rhythm mixins
+ * so that the line height of our base font becomes the basic unit of vertical
+ * measurement. We use multiples of that unit to set the top and bottom margins
+ * for our block level elements and to set the line heights of any fonts.
+ * For more information, see http://24ways.org/2006/compose-to-a-vertical-rhythm
+ */
+
+/* Set 1 unit of vertical rhythm on the top and bottom margin. */
+p,
+pre {
+  margin: rhythm(1) 0;
+}
+blockquote {
+  /* Also indent the quote on both sides. */
+  margin: rhythm(1) $indent-amount;
+}
+
+/**
+ * Address variable `h1` font-size and margin within `section` and `article`
+ * contexts in Firefox 4+, Safari 5, and Chrome.
+ */
+h1 {
+  /* Set the font-size and line-height while keeping a proper vertical rhythm. */
+  @include adjust-font-size-to( $h1-font-size );
+
+  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
+  @include leader(1, $h1-font-size);
+  @include trailer(1, $h1-font-size);
+}
+h2 {
+  @include adjust-font-size-to( $h2-font-size );
+  @include leader(1, $h2-font-size);
+  @include trailer(1, $h2-font-size);
+}
+h3 {
+  @include adjust-font-size-to( $h3-font-size );
+  @include leader(1, $h3-font-size);
+  @include trailer(1, $h3-font-size);
+}
+h4 {
+  @include adjust-font-size-to( $h4-font-size );
+  @include leader(1, $h4-font-size);
+  @include trailer(1, $h4-font-size);
+}
+h5 {
+  @include adjust-font-size-to( $h5-font-size );
+  @include leader(1, $h5-font-size);
+  @include trailer(1, $h5-font-size);
+}
+h6 {
+  @include adjust-font-size-to( $h6-font-size );
+  @include leader(1, $h6-font-size);
+  @include trailer(1, $h6-font-size);
+}
+
+/* Address styling not present in IE 8/9, Safari 5, and Chrome. */
+abbr[title] {
+  border-bottom: 1px dotted;
+}
+
+/* Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome. */
+b,
+strong {
+  font-weight: bold;
+}
+
+/* Address styling not present in Safari 5 and Chrome. */
+dfn {
+  font-style: italic;
+}
+
+/* Address differences between Firefox and other browsers. */
+hr {
+  @include box-sizing(content-box);
+  height: 0;
+  border: 1px solid #666;
+  padding-bottom: -1px;
+  margin: rhythm(1) 0;
+}
+
+/* Address styling not present in IE 8/9. */
+mark {
+  background: #ff0;
+  color: #000;
+}
+
+/* Correct font family set oddly in Safari 5 and Chrome. */
+code,
+kbd,
+pre,
+samp,
+tt,
+var {
+  font-family: $font-monospace; // The value of $font-monospace ends with ", serif".
+  @if $legacy-support-for-ie6 {
+    _font-family: 'courier new', monospace;
+  }
+  @include adjust-font-size-to( $base-font-size );
+}
+
+/* Improve readability of pre-formatted text in all browsers. */
+pre {
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    white-space: pre;
+    white-space: pre-wrap;
+    word-wrap: break-word;
+  }
+  @else {
+    white-space: pre-wrap;
+  }
+}
+
+/* Set consistent quote types. */
+q {
+  quotes: "\201C" "\201D" "\2018" "\2019";
+}
+
+/* Address inconsistent and variable font size in all browsers. */
+small {
+  font-size: 80%;
+}
+
+/* Prevent `sub` and `sup` affecting `line-height` in all browsers. */
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline;
+}
+sup {
+  top: -0.5em;
+}
+sub {
+  bottom: -0.25em;
+}
+
+/**
+ * Lists
+ */
+dl,
+menu,
+ol,
+ul {
+  /* Address margins set differently in IE 6/7. */
+  margin: rhythm(1) 0;
+}
+ol,
+ul {
+  ol,
+  ul {
+    /* Turn off margins on nested lists. */
+    margin: 0;
+  }
+}
+dd {
+  margin: 0 0 0 $indent-amount; /* LTR */
+}
+
+/* Address paddings set differently in IE 6/7. */
+menu,
+ol,
+ul {
+  padding: 0 0 0 $indent-amount; /* LTR */
+}
+
+@if $legacy-support-for-ie7 {
+  /* Correct list images handled incorrectly in IE 7. */
+  nav ul,
+  nav ol {
+    list-style: none;
+    list-style-image: none;
+  }
+}
+
+/**
+ * Embedded content and figures
+ *
+ * @todo Look into adding responsive embedded video.
+ */
+img {
+  /* Remove border when inside `a` element in IE 8/9. */
+  border: 0;
+  @if $legacy-support-for-ie7 {
+    /* Improve image quality when scaled in IE 7. */
+    -ms-interpolation-mode: bicubic;
+  }
+
+  /* Suppress the space beneath the baseline */
+  /* vertical-align: bottom; */
+
+  /* Responsive images */
+  max-width: 100%;
+  height: auto;
+  @if $legacy-support-for-ie8 {
+    /* Correct IE 8 not scaling image height when resized. */
+    width: auto;
+  }
+}
+
+/* Correct overflow displayed oddly in IE 9. */
+svg:not(:root) {
+  overflow: hidden;
+}
+
+/* Address margin not present in IE 8/9 and Safari 5. */
+figure {
+  margin: 0;
+}
+
+/**
+ * Forms
+ */
+
+@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+  /* Correct margin displayed oddly in IE 6/7. */
+  form {
+    margin: 0;
+  }
+}
+
+/* Define consistent border, margin, and padding. */
+fieldset {
+  margin: 0 2px;
+  /* Apply borders and padding that keep the vertical rhythm. */
+  border-color: #c0c0c0;
+  @include apply-side-rhythm-border(top,    $width: 1px, $lines: 0.35);
+  @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65);
+  @include apply-side-rhythm-border(left,   $width: 1px, $lines: 0.65);
+  @include apply-side-rhythm-border(right,  $width: 1px, $lines: 0.65);
+}
+
+/**
+ * 1. Correct `color` not being inherited in IE 8/9.
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
+ * 3. Correct alignment displayed oddly in IE 6/7.
+ */
+legend {
+  border: 0; /* 1 */
+  padding: 0; /* 2 */
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *margin-left: -7px; /* 3 */ /* LTR */
+  }
+}
+
+/**
+ * 1. Correct font family not being inherited in all browsers.
+ * 2. Correct font size not being inherited in all browsers.
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
+ * 4. Improve appearance and consistency with IE 6/7.
+ * 5. Keep form elements constrained in their containers.
+ */
+button,
+input,
+select,
+textarea {
+  font-family: inherit; /* 1 */
+  font-size: 100%; /* 2 */
+  margin: 0; /* 3 */
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    vertical-align: baseline; /* 4 */
+    *vertical-align: middle; /* 4 */
+  }
+  max-width: 100%; /* 5 */
+  @include box-sizing(border-box); /* 5 */
+}
+
+/**
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+button,
+input {
+  line-height: normal;
+}
+
+/**
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
+ * All other form control elements do not inherit `text-transform` values.
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
+ */
+button,
+select {
+  text-transform: none;
+}
+
+/**
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ *    and `video` controls.
+ * 2. Correct inability to style clickable `input` types in iOS.
+ * 3. Improve usability and consistency of cursor style between image-type
+ *    `input` and others.
+ * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
+ *    Known issue: inner spacing remains in IE 6.
+ */
+button,
+html input[type="button"], /* 1 */
+input[type="reset"],
+input[type="submit"] {
+  -webkit-appearance: button; /* 2 */
+  cursor: pointer; /* 3 */
+  @if $legacy-support-for-ie7 {
+    *overflow: visible; /* 4 */
+  }
+}
+
+/**
+ * Re-set default cursor for disabled elements.
+ */
+button[disabled],
+html input[disabled] {
+  cursor: default;
+}
+
+/**
+ * 1. Address box sizing set to `content-box` in IE 8/9.
+ * 2. Remove excess padding in IE 8/9.
+ * 3. Remove excess padding in IE 7.
+ *    Known issue: excess padding remains in IE 6.
+ */
+input[type="checkbox"],
+input[type="radio"] {
+  @include box-sizing(border-box); /* 1 */
+  padding: 0; /* 2 */
+  @if $legacy-support-for-ie7 {
+    *height: 13px; /* 3 */
+    *width: 13px; /* 3 */
+  }
+}
+
+/**
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
+ *    (include `-moz` to future-proof).
+ */
+input[type="search"] {
+  -webkit-appearance: textfield; /* 1 */
+  @include box-sizing(content-box); /* 2 */
+}
+
+/**
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
+ * on OS X.
+ */
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+/* Remove inner padding and border in Firefox 4+. */
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+  border: 0;
+  padding: 0;
+}
+
+/**
+ * 1. Remove default vertical scrollbar in IE 8/9.
+ * 2. Improve readability and alignment in all browsers.
+ */
+textarea {
+  overflow: auto; /* 1 */
+  vertical-align: top; /* 2 */
+}
+
+/* Drupal-style form labels. */
+label {
+  display: block;
+  font-weight: bold;
+}
+
+/**
+ * Tables
+ */
+table {
+  /* Remove most spacing between table cells. */
+  border-collapse: collapse;
+  border-spacing: 0;
+  /* Prevent cramped-looking tables */
+  /* width: 100%; */
+  /* Add vertical rhythm margins. */
+  @include leader(1);
+  @include trailer(1);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/_print.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,81 @@
+/**
+ * @file
+ * Print styling
+ *
+ * We provide some sane print styling for Drupal using Zen's layout method.
+ */
+
+/**
+ * By importing this CSS file as media "all", we allow this print file to be
+ * aggregated with other stylesheets, for improved front-end performance.
+ */
+@media print {
+
+  /* Underline all links. */
+  a:link,
+  a:visited {
+    text-decoration: underline !important;
+
+    /* Don't underline header. */
+    &.header__site-link {
+      text-decoration: none !important;
+    }
+  }
+
+  #content {
+    /* Add visible URL after links. */
+    a[href]:after {
+      content: " (" attr(href) ")";
+      font-weight: normal;
+      font-size: $base-font-size;
+    }
+
+    /* Only display useful links. */
+    a[href^="javascript:"]:after,
+    a[href^="#"]:after {
+      content: "";
+    }
+
+    /* Add visible title after abbreviations. */
+    abbr[title]:after {
+      content: " (" attr(title) ")";
+    }
+  }
+
+  /* Un-float the content. */
+  #content {
+    float: none !important;
+    width: 100% !important;
+    margin: 0 !important;
+    padding: 0 !important;
+  }
+
+  /* Turn off any background colors or images. */
+  body,
+  #page,
+  #main,
+  #content {
+    color: #000;
+    background-color: transparent !important;
+    background-image: none !important;
+  }
+
+  /* Hide sidebars and nav elements. */
+  #skip-link,
+  #toolbar,
+  #navigation,
+  .region-sidebar-first,
+  .region-sidebar-second,
+  #footer,
+  .breadcrumb,
+  .tabs,
+  .action-links,
+  .links,
+  .book-navigation,
+  .forum-topic-navigation,
+  .pager,
+  .feed-icons {
+    visibility: hidden;
+    display: none;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/components/_misc-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,167 @@
+/**
+ * @file
+ * RTL companion for the modular-styles.css file.
+ */
+
+/**
+ * Branding header.
+ */
+
+/* Wrapping link for logo. */
+.header__logo {
+  float: right;
+}
+
+/* The secondary menu (login, etc.) */
+.header__secondary-menu {
+  float: left;
+}
+
+/**
+ * Navigation bar.
+ */
+
+/* Main menu and secondary menu links and menu block links. */
+#navigation {
+  .links,
+  .menu {
+    text-align: right;
+
+    li {
+      /* A simple method to get navigation links to appear in one line. */
+      float: right;
+      padding: 0 0 0 10px;
+    }
+  }
+}
+
+/**
+ * Messages.
+ */
+.messages {
+  padding: 10px 50px 10px 10px;
+  background-position: 99% 8px;
+}
+.messages--status {
+  @extend .messages;
+}
+.messages--warning {
+  @extend .messages;
+}
+.messages--error {
+  @extend .messages;
+}
+
+/**
+ * Tabs.
+ */
+%tabs__tab {
+  float: right;
+}
+.tabs-primary__tab {
+  @extend %tabs__tab;
+}
+.tabs-primary__tab.is-active {
+  @extend .tabs-primary__tab;
+}
+.tabs-secondary__tab,
+.tabs-secondary__tab.is-active {
+  @extend %tabs__tab;
+}
+
+/**
+ * Inline styles.
+ */
+
+/* List of links */
+.inline li {
+  /* Bug in Safari causes display: inline to fail. */
+  display: inline-block;
+  padding: 0 0 0 1em;
+}
+
+/* The inline field label used by the Fences.module */
+span.field-label {
+  padding: 0 0 0 1em;
+}
+
+/**
+ * "More" links.
+ */
+.more-link {
+  text-align: left;
+}
+.more-help-link {
+  text-align: left;
+}
+.more-help-link a {
+  background-position: 100% 50%;
+  padding: 1px 20px 1px 0;
+}
+
+/**
+ * Menus.
+ */
+.menu__item.is-collapsed {
+  list-style-image: inline-image("menu-collapsed-rtl.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *list-style-image: image-url("menu-collapsed-rtl.png");
+  }
+}
+
+/**
+ * Comments.
+ */
+
+/* Nested comments are indented. */
+.indented {
+  margin-left: 0;
+  margin-right: $indent-amount;
+}
+
+/**
+ * Forms.
+ */
+
+/* Drupal's default login form block */
+#user-login-form {
+  text-align: right;
+}
+
+html.js #user-login-form li.openid-link,
+#user-login-form li.openid-link {
+  /* Un-do some of the padding on the ul list. */
+  margin-left: 0;
+  margin-right: -20px;
+}
+
+/*
+ * Drupal admin tables.
+ */
+form {
+  th {
+    text-align: right;
+    padding-left: 1em;
+    padding-right: 0;
+  }
+}
+
+/**
+ * Collapsible fieldsets.
+ *
+ * @see collapse.js
+ */
+.fieldset-legend {
+  html.js .collapsible & {
+    background-position: 98% 75%;
+    padding-left: 0;
+    padding-right: 15px;
+  }
+  html.js .collapsed & {
+    background-image: inline-image("menu-collapsed-rtl.png");
+    @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+      *background-image: image-url("menu-collapsed-rtl.png");
+    }
+    background-position: 98% 50%;
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/components/_misc.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,807 @@
+/**
+ * @file
+ * SMACSS Modules
+ *
+ * Adds modular sets of styles.
+ *
+ * Additional useful selectors can be found in Zen's online documentation.
+ * https://drupal.org/node/1707736
+ */
+
+/**
+ * Wireframes.
+ */
+.with-wireframes {
+  #header,
+  #main,
+  #content,
+  #navigation,
+  .region-sidebar-first,
+  .region-sidebar-second,
+  #footer,
+  .region-bottom {
+    outline: 1px solid #ccc;
+
+    @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+      .lt-ie8 & {
+        /* IE6/7 do not support the outline property. */
+        border: 1px solid #ccc;
+      }
+    }
+  }
+}
+
+/**
+ * Accessibility features.
+ */
+
+/* element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility */
+.element-invisible,
+%element-invisible {
+  @include element-invisible;
+}
+
+/* Turns off the element-invisible effect. */
+%element-invisible-off {
+  @include element-invisible-off;
+}
+
+.element-focusable,
+%element-focusable {
+  @extend %element-invisible;
+
+  &:active,
+  &:focus {
+    @extend %element-invisible-off;
+  }
+}
+
+/*
+ * The skip-link link will be completely hidden until a user tabs to the link.
+ */
+#skip-link {
+  margin: 0;
+
+  a,
+  a:visited {
+    display: block;
+    width: 100%;
+    padding: 2px 0 3px 0;
+    text-align: center;
+    background-color: #666;
+    color: #fff;
+  }
+}
+
+/**
+ * Branding header.
+ */
+
+/* Wrapping link for logo. */
+.header__logo {
+  float: left; /* LTR */
+  margin: 0;
+  padding: 0;
+}
+
+/* Logo image. */
+.header__logo-image {
+  vertical-align: bottom;
+}
+
+/* Wrapper for website name and slogan. */
+.header__name-and-slogan {
+  float: left;
+}
+
+/* The name of the website. */
+.header__site-name {
+  margin: 0;
+  @include adjust-font-size-to( $h1-font-size );
+}
+
+/* The link around the name of the website. */
+.header__site-link {
+  &:link,
+  &:visited {
+    color: #000;
+    text-decoration: none;
+  }
+
+  &:hover,
+  &:focus {
+    text-decoration: underline;
+  }
+}
+
+/* The slogan (or tagline) of a website. */
+.header__site-slogan {
+  margin: 0;
+}
+
+/* The secondary menu (login, etc.) */
+.header__secondary-menu {
+  float: right; /* LTR */
+}
+
+/* Wrapper for any blocks placed in the header region. */
+.header__region {
+  /* Clear the logo. */
+  clear: both;
+}
+
+/**
+ * Navigation bar.
+ */
+#navigation {
+  /* Sometimes you want to prevent overlapping with main div. */
+  /* overflow: hidden; */
+
+  .block {
+    margin-bottom: 0;
+  }
+
+  .block-menu .block__title,
+  .block-menu-block .block__title {
+    @extend %element-invisible;
+  }
+
+  /* Main menu and secondary menu links and menu block links. */
+  .links,
+  .menu {
+    margin: 0;
+    padding: 0;
+    text-align: left; /* LTR */
+
+    li {
+      /* A simple method to get navigation links to appear in one line. */
+      float: left; /* LTR */
+      padding: 0 10px 0 0; /* LTR */
+      list-style-type: none;
+      list-style-image: none;
+    }
+  }
+}
+
+/**
+ * Breadcrumb navigation.
+ */
+.breadcrumb {
+  ol {
+    margin: 0;
+    padding: 0;
+  }
+  li {
+    display: inline;
+    list-style-type: none;
+    margin: 0;
+    padding: 0;
+  }
+}
+
+/**
+ * Titles.
+ */
+.page__title,          /* The title of the page. */
+.node__title,          /* Title of a piece of content when it is given in a list of content. */
+.block__title,         /* Block title. */
+.comments__title,      /* Comment section heading. */
+.comments__form-title, /* Comment form heading. */
+.comment__title {      /* Comment title. */
+  margin: 0;
+}
+
+/**
+ * Messages.
+ */
+.messages {
+  margin: rhythm(1) 0;
+  padding: 10px 10px 10px 50px; /* LTR */
+  background-image: inline-image("message-24-ok.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *background-image: image-url("message-24-ok.png");
+  }
+  background-position: 8px 8px; /* LTR */
+  background-repeat: no-repeat;
+  border: 1px solid #be7;
+}
+.messages--status {
+  @extend .messages;
+  @extend %ok;
+}
+.messages--warning {
+  @extend .messages;
+  @extend %warning;
+  background-image: inline-image("message-24-warning.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *background-image: image-url("message-24-warning.png");
+  }
+  border-color: #ed5;
+}
+.messages--error {
+  @extend .messages;
+  @extend %error;
+  background-image: inline-image("message-24-error.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *background-image: image-url("message-24-error.png");
+  }
+  border-color: #ed541d;
+
+}
+.messages__list {
+  margin: 0;
+}
+.messages__item {
+  list-style-image: none;
+}
+
+/* Core/module installation error messages. */
+.messages--error  p.error {
+  color: #333;
+}
+
+/* System status report. */
+.ok,
+%ok {
+  background-color: #f8fff0;
+  color: #234600;
+}
+.warning,
+%warning {
+  background-color: #fffce5;
+  color: #840;
+}
+.error,
+%error {
+  background-color: #fef5f1;
+  color: #8c2e0b;
+}
+
+/**
+ * Tabs.
+ */
+
+/* Basic positioning styles shared by primary and secondary tabs. */
+%tabs {
+  @include clearfix;
+  @include background-image(linear-gradient(bottom, $tabs-border 1px, transparent 1px));
+  /* IE 9 and earlier don't understand gradients. */
+  list-style: none;
+  border-bottom: 1px solid $tabs-border \0/ie;
+  margin: rhythm(1) 0;
+  padding: 0 2px;
+  white-space: nowrap;
+}
+%tabs__tab {
+  float: left; /* LTR */
+  margin: 0 3px;
+}
+%tabs__tab-link {
+  border: 1px solid #e9e9e9;
+  border-right: 0;
+  border-bottom: 0;
+  display: block;
+  @include adjust-leading-to(1);
+  text-decoration: none;
+}
+
+/* Primary tabs. */
+.tabs-primary {
+  @extend %tabs;
+}
+.tabs-primary__tab {
+  @extend %tabs__tab;
+  @include border-top-radius(4px);
+  @include single-text-shadow(#fff, 1px, 1px, 0);
+  border: 1px solid $tabs-border;
+  border-bottom-color: transparent;
+  /* IE 9 and earlier don't understand gradients. */
+  border-bottom: 0 \0/ie;
+}
+.tabs-primary__tab.is-active {
+  @extend .tabs-primary__tab;
+  border-bottom-color: $tabs-container-bg;
+}
+
+// We use 3 placeholder styles to prevent @extend from going selector crazy.
+%tabs-primary__tab-link {
+  @extend %tabs__tab-link;
+  @include border-top-radius(4px);
+  @include transition(background-color 0.3s);
+  color: #333;
+  background-color: #dedede;
+  letter-spacing: 1px;
+  padding: 0 1em;
+  text-align: center;
+}
+%tabs-primary__tab-link-is-hover {
+  background-color: #e9e9e9;
+  border-color: #f2f2f2;
+}
+%tabs-primary__tab-link-is-active {
+  background-color: transparent;
+  @include filter-gradient(rgba(#e9e9e9, 1), rgba(#e9e9e9, 0));
+  @include background-image(linear-gradient(rgba(#e9e9e9, 1), rgba(#e9e9e9, 0)));
+  border-color: #fff;
+}
+
+a.tabs-primary__tab-link {
+  @extend %tabs-primary__tab-link;
+
+  &:hover,
+  &:focus {
+    @extend %tabs-primary__tab-link-is-hover;
+  }
+  &:active {
+    @extend %tabs-primary__tab-link-is-active;
+  }
+}
+a.tabs-primary__tab-link.is-active {
+  @extend %tabs-primary__tab-link;
+  @extend %tabs-primary__tab-link-is-active;
+}
+
+/* Secondary tabs. */
+.tabs-secondary {
+  @extend %tabs;
+  font-size: .9em;
+  /* Collapse bottom margin of ul.primary. */
+  margin-top: -(rhythm(1));
+}
+.tabs-secondary__tab,
+.tabs-secondary__tab.is-active {
+  @extend %tabs__tab;
+  margin: rhythm(1)/2 3px;
+}
+
+// We use 3 placeholder styles to prevent @extend from going selector crazy.
+%tabs-secondary__tab-link {
+  @extend %tabs__tab-link;
+  @include border-radius(.75em);
+  @include transition(background-color 0.3s);
+  @include single-text-shadow(#fff, 1px, 1px, 0);
+  background-color: #f2f2f2;
+  color: #666;
+  padding: 0 .5em;
+}
+%tabs-secondary__tab-link-is-focus {
+  background-color: #dedede;
+  border-color: #999;
+  color: #333;
+}
+%tabs-secondary__tab-link-is-active {
+  @include single-text-shadow(#333, 1px, 1px, 0);
+  background-color: #666;
+  border-color: #000;
+  color: #fff;
+}
+
+a.tabs-secondary__tab-link {
+  @extend %tabs-secondary__tab-link;
+
+  &:hover,
+  &:focus {
+    @extend %tabs-secondary__tab-link-is-focus;
+  }
+  &:active {
+    @extend %tabs-secondary__tab-link-is-active;
+  }
+}
+a.tabs-secondary__tab-link.is-active {
+  @extend %tabs-secondary__tab-link;
+  @extend %tabs-secondary__tab-link-is-active;
+}
+
+/**
+ * Inline styles.
+ */
+
+/* List of links generated by theme_links(). */
+.inline {
+  display: inline;
+  padding: 0;
+
+  li {
+    display: inline;
+    list-style-type: none;
+    padding: 0 1em 0 0; /* LTR */
+  }
+}
+
+/* The inline field label used by the Fences module. */
+span.field-label {
+  padding: 0 1em 0 0; /* LTR */
+}
+
+/**
+ * "More" links.
+ */
+.more-link {
+  text-align: right; /* LTR */
+}
+.more-help-link {
+  text-align: right; /* LTR */
+}
+.more-help-link a {
+  background-image: inline-image("help.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *background-image: image-url("help.png");
+  }
+  background-position: 0 50%; /* LTR */
+  background-repeat: no-repeat;
+  padding: 1px 0 1px 20px; /* LTR */
+}
+
+/**
+ * Pager.
+ */
+
+/* A list of page numbers when more than 1 page of content is available. */
+.pager {
+  clear: both;
+  padding: 0;
+  text-align: center;
+}
+%pager__item {
+  display: inline;
+  padding: 0 0.5em;
+  list-style-type: none;
+  background-image: none;
+}
+
+.pager-item,      /* A list item containing a page number in the list of pages. */
+.pager-first,     /* The first page's list item. */
+.pager-previous,  /* The previous page's list item. */
+.pager-next,      /* The next page's list item. */
+.pager-last,      /* The last page's list item. */
+.pager-ellipsis { /* A concatenation of several list items using an ellipsis. */
+  @extend %pager__item;
+}
+
+/* The current page's list item. */
+.pager-current {
+  @extend %pager__item;
+  font-weight: bold;
+}
+
+/**
+ * Blocks.
+ */
+
+/* Block wrapper. */
+.block {
+  margin-bottom: rhythm(1);
+}
+
+/**
+ * Menus.
+ */
+.menu__item.is-leaf {
+  list-style-image: inline-image("menu-leaf.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *list-style-image: image-url("menu-leaf.png");
+  }
+  list-style-type: square;
+}
+.menu__item.is-expanded {
+  list-style-image: inline-image("menu-expanded.png");
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *list-style-image: image-url("menu-expanded.png");
+  }
+  list-style-type: circle;
+}
+.menu__item.is-collapsed {
+  list-style-image: inline-image("menu-collapsed.png"); /* LTR */
+  @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+    *list-style-image: image-url("menu-collapsed.png"); /* LTR */
+  }
+  list-style-type: disc;
+}
+
+/* The active item in a Drupal menu. */
+.menu a.active {
+  color: #000;
+}
+
+/**
+ * Marker.
+ */
+
+/* The "new" or "updated" marker. */
+.new,
+.update {
+  color: #c00;
+  /* Remove background highlighting from <mark> in normalize. */
+  background-color: transparent;
+}
+
+/**
+ * Unpublished note.
+ */
+
+/* The word "Unpublished" displayed underneath the content. */
+.unpublished {
+  height: 0;
+  overflow: visible;
+  /* Remove background highlighting from <mark> in normalize. */
+  background-color: transparent;
+  color: #d8d8d8;
+  font-size: 75px;
+  line-height: 1;
+  font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
+  font-weight: bold;
+  text-transform: uppercase;
+  text-align: center;
+  /* A very nice CSS3 property. */
+  word-wrap: break-word;
+}
+@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+  .lt-ie8 .node-unpublished>*,
+  .lt-ie8 .comment-unpublished>* {
+    /* Otherwise these elements will appear below the "Unpublished" text. */
+    position: relative;
+  }
+}
+
+/**
+ * Comments.
+ */
+
+/* Wrapper for the list of comments and its title. */
+.comments {
+  margin: rhythm(1) 0;
+}
+
+/* Preview of the comment before submitting new or updated comment. */
+.comment-preview {
+  /* Drupal core will use a #ffffea background. See #1110842. */
+  background-color: #ffffea;
+}
+
+/* Wrapper for a single comment. */
+.comment {
+
+  /* Comment's permalink wrapper. */
+  .permalink {
+    text-transform: uppercase;
+    font-size: 75%;
+  }
+}
+
+/* Nested comments are indented. */
+.indented {
+  /* Drupal core uses a 25px left margin. */
+  margin-left: $indent-amount; /* LTR */
+}
+
+/**
+ * Forms.
+ */
+
+/* Wrapper for a form element (or group of form elements) and its label. */
+.form-item {
+  margin: rhythm(1) 0;
+
+  /* Pack groups of checkboxes and radio buttons closer together. */
+  .form-checkboxes & ,
+  .form-radios & {
+    /* Drupal core uses "0.4em 0". */
+    margin: 0;
+  }
+
+  /* Form items in a table. */
+  tr.odd &,
+  tr.even & {
+    margin: 0;
+  }
+
+  /* Highlight the form elements that caused a form submission error. */
+  input.error,
+  textarea.error,
+  select.error {
+    border: 1px solid #c00;
+  }
+
+  /* The descriptive help text (separate from the label). */
+  .description {
+    font-size: 0.85em;
+  }
+}
+
+.form-type-radio,
+.form-type-checkbox {
+  .description {
+    margin-left: 2.4em;
+  }
+}
+
+/* The part of the label that indicates a required field. */
+.form-required {
+  color: #c00;
+}
+
+/* Labels for radios and checkboxes. */
+label.option {
+  display: inline;
+  font-weight: normal;
+}
+
+/* Buttons used by contrib modules like Media. */
+a.button {
+  @include appearance(button);
+}
+
+/* Password confirmation. */
+.password-parent,
+.confirm-parent {
+  margin: 0;
+}
+
+/* Drupal's default login form block. */
+#user-login-form {
+  text-align: left; /* LTR */
+}
+
+/**
+ * OpenID
+ *
+ * The default styling for the OpenID login link seems to assume Garland's
+ * styling of list items.
+ */
+
+/* OpenID creates a new ul above the login form's links. */
+.openid-links {
+  /* Position OpenID's ul next to the rest of the links. */
+  margin-bottom: 0;
+}
+
+/* The "Log in using OpenID" and "Cancel OpenID login" links. */
+.openid-link,
+.user-link {
+  margin-top: rhythm(1);
+}
+html.js #user-login-form li.openid-link,
+#user-login-form li.openid-link {
+  /* Un-do some of the padding on the ul list. */
+  margin-left: -20px; /* LTR */
+}
+#user-login ul {
+  margin: rhythm(1) 0;
+}
+
+/**
+ * Drupal admin tables.
+ */
+form {
+  th {
+    text-align: left; /* LTR */
+    padding-right: 1em; /* LTR */
+    border-bottom: 3px solid #ccc;
+  }
+  tbody {
+    border-top: 1px solid #ccc;
+  }
+  table ul {
+    margin: 0;
+  }
+}
+tr.even,
+tr.odd {
+  background-color: #eee;
+  border-bottom: 1px solid #ccc;
+  padding: 0.1em 0.6em;
+}
+tr.even {
+  background-color: #fff;
+}
+@if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+  .lt-ie8 tr.even,
+  .lt-ie8 tr.odd {
+    th,
+    td {
+      /* IE doesn't display borders on table rows. */
+      border-bottom: 1px solid #ccc;
+    }
+  }
+}
+
+/* Markup generated by theme_tablesort_indicator(). */
+td.active {
+  background-color: #ddd;
+}
+
+/* Center checkboxes inside table cell. */
+td.checkbox,
+th.checkbox {
+  text-align: center;
+}
+
+/* Drupal core wrongly puts this in system.menus.css. Since we override that, add it back. */
+td.menu-disabled {
+  background: #ccc;
+}
+
+/**
+ * Autocomplete.
+ *
+ * @see autocomplete.js
+ */
+
+/* Suggestion list. */
+#autocomplete .selected {
+  background: #0072b9;
+  color: #fff;
+}
+
+/**
+ * Collapsible fieldsets.
+ *
+ * @see collapse.js
+ */
+.fieldset-legend {
+  html.js .collapsible & {
+    background-image: inline-image("menu-expanded.png");
+    @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+      *background-image: image-url("menu-expanded.png");
+    }
+    background-position: 5px 65%; /* LTR */
+    background-repeat: no-repeat;
+    padding-left: 15px; /* LTR */
+  }
+  html.js .collapsed & {
+    background-image: inline-image("menu-collapsed.png"); /* LTR */
+    @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
+      *background-image: image-url("menu-collapsed.png"); /* LTR */
+    }
+    background-position: 5px 50%; /* LTR */
+  }
+  .summary {
+    color: #999;
+    font-size: 0.9em;
+    margin-left: 0.5em;
+  }
+}
+
+/**
+ * TableDrag behavior.
+ *
+ * @see tabledrag.js
+ */
+tr.drag {
+  background-color: #fffff0;
+}
+tr.drag-previous {
+  background-color: #ffd;
+}
+.tabledrag-toggle-weight {
+  font-size: 0.9em;
+}
+
+/**
+ * TableSelect behavior.
+ *
+ * @see tableselect.js
+ */
+tr.selected td {
+  background: #ffc;
+}
+
+/**
+ * Progress bar.
+ *
+ * @see progress.js
+ */
+.progress {
+  font-weight: bold;
+
+  .bar {
+    background: #ccc;
+    border-color: #666;
+    margin: 0 0.2em;
+    @include border-radius(3px);
+  }
+  .filled {
+    background-color: #0072b9;
+    background-image: image-url("progress.gif");
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/layouts/_fixed-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,10 @@
+/**
+ * @file
+ * RTL companion for the layout-fixed-width.css file.
+ */
+
+// First we tell Zen grids to reverse the direction of all floats.
+$zen-reverse-all-floats: true;
+
+// Then we import the LTR layout and the directions are automatically reversed.
+@import "fixed";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/layouts/_fixed.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,126 @@
+/**
+ * @file
+ * Positioning for a fixed-width, desktop-centric layout.
+ *
+ * Define CSS classes to create a table-free, 3-column, 2-column, or single
+ * column layout depending on whether blocks are enabled in the left or right
+ * columns.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+// We are going to create a 980px wide, 5 column grid with 20px gutters between
+// columns (applied as 10px of left/right padding on each column).
+$zen-column-count:  5;
+$zen-gutter-width:  20px;
+$zen-grid-width:    980px;
+
+// If you need IE6/7 support for box-sizing: border-box (default), see _base.scss
+// Since the same CSS unit for grid width and gutter width are set here
+// we can use box-sizing: content-box; without worrying about polyfills.
+$zen-box-sizing: content-box;
+
+// You can generate more efficient CSS if you manually apply the
+// zen-grid-item-base mixin to all grid items from within a single ruleset.
+$zen-auto-include-item-base: false;
+// $zen-auto-include-flow-item-base: false;
+
+// Suppress this section of CSS for RTL layouts since it contains no LTR-specific styles.
+@if $zen-reverse-all-floats == false {
+
+/**
+ * Center the page.
+ *
+ * If you want to make the page a fixed width and centered in the viewport,
+ * this is the standards-compliant way to do that.
+ */
+#page,
+.region-bottom {
+  margin-left: auto;
+  margin-right: auto;
+  width: $zen-grid-width;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+  // See the note about $zen-auto-include-item-base above.
+  @include zen-grid-item-base();
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+  @include zen-grid-container();
+}
+
+/* Navigation bar */
+#main {
+  /* Move all the children of #main down to make room. */
+  padding-top: $nav-height;
+  position: relative;
+}
+#navigation {
+  /* Move the navbar up inside #main's padding. */
+  position: absolute;
+  top: 0;
+  height: $nav-height;
+  width: $zen-grid-width - $zen-gutter-width;
+}
+
+} // End of @if $zen-reverse-all-floats == true
+
+/**
+ * The layout when there is only one sidebar, the left one.
+ */
+.sidebar-first {
+  /* Span 4 columns, starting in 2nd column from left. */
+  #content {
+    @include zen-grid-item(4, 2);
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .region-sidebar-first {
+    @include zen-grid-item(1, 1);
+  }
+}
+
+/**
+ * The layout when there is only one sidebar, the right one.
+ */
+.sidebar-second {
+  /* Span 4 columns, starting in 1st column from left. */
+  #content {
+    @include zen-grid-item(4, 1);
+  }
+
+  /* Span 1 column, starting in 5th column from left. */
+  .region-sidebar-second {
+    @include zen-grid-item(1, 5);
+  }
+}
+
+/**
+ * The layout when there are two sidebars.
+ */
+.two-sidebars {
+  /* Span 3 columns, starting in 2nd column from left. */
+  #content {
+    @include zen-grid-item(3, 2);
+  }
+
+  /* Span 1 column, starting in 1st column from left. */
+  .region-sidebar-first {
+    @include zen-grid-item(1, 1);
+  }
+
+  /* Span 1 column, starting in 5th column from left. */
+  .region-sidebar-second {
+    @include zen-grid-item(1, 5);
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/layouts/_responsive-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,10 @@
+/**
+ * @file
+ * RTL companion for the layout-responsive.css file.
+ */
+
+// First we tell Zen grids to reverse the direction of all floats.
+$zen-reverse-all-floats: true;
+
+// Then we import the LTR layout and the directions are automatically reversed.
+@import "responsive";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/layouts/_responsive.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,210 @@
+/**
+ * @file
+ * Positioning for a responsive layout.
+ *
+ * Define CSS classes to create a fluid grid layout with optional sidebars
+ * depending on whether blocks are placed in the left or right sidebars.
+ *
+ * This layout uses the Zen Grids plugin for Compass: http://zengrids.com
+ */
+
+// We are going to create a fluid grid with 1, 3, or 5 columns and 20px gutters
+// between columns (applied as 10px of left/right padding on each column).
+$zen-column-count:  1;
+$zen-gutter-width:  20px;
+
+// If you need IE6/7 support for box-sizing: border-box (default), see _base.scss
+//$zen-box-sizing: content-box;
+
+// You can generate more efficient CSS if you manually apply the
+// zen-grid-item-base mixin to all grid items from within a single ruleset.
+$zen-auto-include-item-base: false;
+// $zen-auto-include-flow-item-base: false;
+
+// Suppress this section of CSS for RTL layouts since it contains no LTR-specific styles.
+@if $zen-reverse-all-floats == false {
+
+/**
+ * Center the page.
+ *
+ * For screen sizes larger than 1200px, prevent excessively long lines of text
+ * by setting a max-width.
+ */
+#page,
+.region-bottom {
+  margin-left: auto;
+  margin-right: auto;
+  max-width: 1200px;
+}
+
+/* Apply the shared properties of grid items in a single, efficient ruleset. */
+#header,
+#content,
+#navigation,
+.region-sidebar-first,
+.region-sidebar-second,
+#footer {
+  // See the note about $zen-auto-include-item-base above.
+  @include zen-grid-item-base();
+}
+
+/* Containers for grid items and flow items. */
+#header,
+#main,
+#footer {
+  @include zen-grid-container();
+}
+
+/* Navigation bar */
+@media all and (min-width: 480px) {
+  #main {
+    /* Move all the children of #main down to make room. */
+    padding-top: $nav-height;
+    position: relative;
+  }
+  #navigation {
+    /* Move the navbar up inside #main's padding. */
+    position: absolute;
+    top: 0;
+    height: $nav-height;
+    width: $zen-grid-width;
+  }
+}
+
+} // End of @if $zen-reverse-all-floats == true
+
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+  $zen-column-count: 3;
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+  .sidebar-first {
+    /* Span 2 columns, starting in 2nd column from left. */
+    #content {
+      @include zen-grid-item(2, 2);
+    }
+
+    /* Span 1 column, starting in 1st column from left. */
+    .region-sidebar-first {
+      @include zen-grid-item(1, 1);
+    }
+  }
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+  .sidebar-second {
+    /* Span 2 columns, starting in 1st column from left. */
+    #content {
+      @include zen-grid-item(2, 1);
+    }
+
+    /* Span 1 column, starting in 3rd column from left. */
+    .region-sidebar-second {
+      @include zen-grid-item(1, 3);
+    }
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+  .two-sidebars {
+    /* Span 2 columns, starting in 2nd column from left. */
+    #content {
+      @include zen-grid-item(2, 2);
+    }
+
+    /* Span 1 column, starting in 1st column from left. */
+    .region-sidebar-first {
+      @include zen-grid-item(1, 1);
+    }
+
+    /* Start a new row and span all 3 columns. */
+    .region-sidebar-second {
+      @include zen-grid-item(3, 1);
+      @include zen-nested-container(); // Since we're making every block in this region be a grid item.
+      @include zen-clear();
+
+      /* Apply the shared properties of grid items in a single, efficient ruleset. */
+      .block {
+        @include zen-grid-item-base();
+      }
+      /* Span 1 column, starting in the 1st column from left. */
+      .block:nth-child(3n+1) {
+        @include zen-grid-item(1, 1);
+        @include zen-clear();
+      }
+      /* Span 1 column, starting in the 2nd column from left. */
+      .block:nth-child(3n+2) {
+        @include zen-grid-item(1, 2);
+      }
+      /* Span 1 column, starting in the 3rd column from left. */
+      .block:nth-child(3n) {
+        @include zen-grid-item(1, 3);
+      }
+    }
+  }
+}
+
+/**
+ * Use 5 grid columns for larger screens.
+ */
+@media all and (min-width: 960px) {
+
+  $zen-column-count: 5;
+
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+  .sidebar-first {
+    /* Span 4 columns, starting in 2nd column from left. */
+    #content {
+      @include zen-grid-item(4, 2);
+    }
+
+    /* Span 1 column, starting in 1st column from left. */
+    .region-sidebar-first {
+      @include zen-grid-item(1, 1);
+    }
+  }
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
+  .sidebar-second {
+    /* Span 4 columns, starting in 1st column from left. */
+    #content {
+      @include zen-grid-item(4, 1);
+    }
+
+    /* Span 1 column, starting in 5th column from left. */
+    .region-sidebar-second {
+      @include zen-grid-item(1, 5);
+    }
+  }
+
+  /**
+   * The layout when there are two sidebars.
+   */
+  .two-sidebars {
+    /* Span 3 columns, starting in 2nd column from left. */
+    #content {
+      @include zen-grid-item(3, 2);
+    }
+
+    /* Span 1 column, starting in 1st column from left. */
+    .region-sidebar-first {
+      @include zen-grid-item(1, 1);
+    }
+
+    /* Span 1 column, starting in 5th column from left. */
+    .region-sidebar-second {
+      @include zen-grid-item(1, 5);
+    }
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/styles-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,20 @@
+/**
+ * @file
+ * RTL companion for the styles.scss file.
+ */
+
+/* Import Sass mixins, variables, Compass modules, etc. */
+@import "init";
+
+/* HTML element (SMACSS base) rules */
+@import "normalize-rtl";
+
+/* Layout rules */
+@import "layouts/responsive-rtl";
+
+/* Component (SMACSS module) rules */
+@import "components/misc-rtl";
+
+/* SMACSS theme rules */
+/* @import "theme-A-rtl"; */
+/* @import "theme-B-rtl"; */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/sass/styles.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,25 @@
+/**
+ * @file
+ * Styles are organized using the SMACSS technique. @see http://smacss.com/book/
+ *
+ * When you turn on CSS aggregation at admin/config/development/performance, all
+ * of these @include files will be combined into a single file.
+ */
+
+/* Import Sass mixins, variables, Compass modules, etc. */
+@import "init";
+
+/* HTML element (SMACSS base) rules */
+@import "normalize";
+
+/* Layout rules */
+@import "layouts/responsive";
+
+/* Component (SMACSS module) rules */
+@import "components/misc";
+// Optionally, add your own components here.
+@import "print";
+
+/* SMACSS theme rules */
+/* @import "theme-A"; */
+/* @import "theme-B"; */
Binary file sites/all/themes/zen/STARTERKIT/screenshot.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/template.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,132 @@
+<?php
+/**
+ * @file
+ * Contains the theme's functions to manipulate Drupal's default markup.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728096
+ */
+
+
+/**
+ * Override or insert variables into the maintenance page template.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("maintenance_page" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_maintenance_page(&$variables, $hook) {
+  // When a variable is manipulated or added in preprocess_html or
+  // preprocess_page, that same work is probably needed for the maintenance page
+  // as well, so we can just re-use those functions to do that work here.
+  STARTERKIT_preprocess_html($variables, $hook);
+  STARTERKIT_preprocess_page($variables, $hook);
+}
+// */
+
+/**
+ * Override or insert variables into the html templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("html" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_html(&$variables, $hook) {
+  $variables['sample_variable'] = t('Lorem ipsum.');
+
+  // The body tag's classes are controlled by the $classes_array variable. To
+  // remove a class from $classes_array, use array_diff().
+  //$variables['classes_array'] = array_diff($variables['classes_array'], array('class-to-remove'));
+}
+// */
+
+/**
+ * Override or insert variables into the page templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("page" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_page(&$variables, $hook) {
+  $variables['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the node templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("node" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_node(&$variables, $hook) {
+  $variables['sample_variable'] = t('Lorem ipsum.');
+
+  // Optionally, run node-type-specific preprocess functions, like
+  // STARTERKIT_preprocess_node_page() or STARTERKIT_preprocess_node_story().
+  $function = __FUNCTION__ . '_' . $variables['node']->type;
+  if (function_exists($function)) {
+    $function($variables, $hook);
+  }
+}
+// */
+
+/**
+ * Override or insert variables into the comment templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("comment" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_comment(&$variables, $hook) {
+  $variables['sample_variable'] = t('Lorem ipsum.');
+}
+// */
+
+/**
+ * Override or insert variables into the region templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("region" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_region(&$variables, $hook) {
+  // Don't use Zen's region--sidebar.tpl.php template for sidebars.
+  //if (strpos($variables['region'], 'sidebar_') === 0) {
+  //  $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('region__sidebar'));
+  //}
+}
+// */
+
+/**
+ * Override or insert variables into the block templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("block" in this case.)
+ */
+/* -- Delete this line if you want to use this function
+function STARTERKIT_preprocess_block(&$variables, $hook) {
+  // Add a count to all the blocks in the region.
+  // $variables['classes_array'][] = 'count-' . $variables['block_id'];
+
+  // By default, Zen will use the block--no-wrapper.tpl.php for the main
+  // content. This optional bit of code undoes that:
+  //if ($variables['block_html_id'] == 'block-system-main') {
+  //  $variables['theme_hook_suggestions'] = array_diff($variables['theme_hook_suggestions'], array('block__no_wrapper'));
+  //}
+}
+// */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/templates/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,100 @@
+TEMPLATES
+---------
+
+Drupal 7 contains the following template files which you can override and modify
+by copying them to your sub-theme.
+
+The Zen theme overrides a handful of Drupal's templates. In order to override
+those templates, you should copy them from the zen/templates folder to your
+sub-theme's templates folder.
+
+As always, when adding a new template file to your sub-theme, you will need to
+rebuild the "theme registry" in order for Drupal to see it. For more info, see:
+  https://drupal.org/node/173880#theme-registry
+
+Located in zen/templates:
+  html.tpl.php
+  page.tpl.php
+  maintenance-page.tpl.php
+  node.tpl.php
+  region.tpl.php
+  region--footer.tpl.php
+  region--sidebar.tpl.php
+  region--no-wrapper.tpl.php
+  block.tpl.php
+  block--no-wrapper.tpl.php
+  comment-wrapper.tpl.php
+  comment.tpl.php
+  user-picture.tpl.php
+
+Located in /modules/aggregator:
+  aggregator-feed-source.tpl.php
+  aggregator-item.tpl.php
+  aggregator-summary-item.tpl.php
+  aggregator-summary-items.tpl.php
+  aggregator-wrapper.tpl.php
+
+Located in /modules/block:
+  block.tpl.php  (overridden by Zen)
+  block-admin-display-form.tpl.php
+
+Located in /modules/book:
+  book-all-books-block.tpl.php
+  book-export-html.tpl.php
+  book-navigation.tpl.php
+  book-node-export-html.tpl.php
+
+Located in /modules/comment:
+  comment-wrapper.tpl.php  (overridden by Zen)
+  comment.tpl.php  (overridden by Zen)
+
+Located in /modules/field/theme:
+  field.tpl.php  (not used; core uses theme_field() instead)
+
+Located in /modules/forum:
+  forum-icon.tpl.php
+  forum-list.tpl.php
+  forum-submitted.tpl.php
+  forum-topic-list.tpl.php
+  forums.tpl.php
+
+Located in /modules/node:
+  node.tpl.php  (overridden by Zen)
+
+Located in /modules/overlay:
+  overlay.tpl.php
+
+Located in /modules/poll:
+  poll-bar--block.tpl.php
+  poll-bar.tpl.php
+  poll-results--block.tpl.php
+  poll-results.tpl.php
+  poll-vote.tpl.php
+
+Located in /modules/profile:
+  profile-block.tpl.php
+  profile-listing.tpl.php
+  profile-wrapper.tpl.php
+
+Located in /modules/search:
+  search-block-form.tpl.php
+  search-result.tpl.php
+  search-results.tpl.php
+
+Located in /modules/system:
+  html.tpl.php  (overridden by Zen)
+  maintenance-page.tpl.php  (overridden by Zen)
+  page.tpl.php  (overridden by Zen)
+  region.tpl.php  (overridden by Zen)
+
+Located in /modules/taxonomy:
+  taxonomy-term.tpl.php
+
+Located in /modules/toolbar:
+  toolbar.tpl.php
+
+Located in /modules/user:
+  user-picture.tpl.php  (overridden by Zen)
+  user-profile-category.tpl.php
+  user-profile-item.tpl.php
+  user-profile.tpl.php
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/STARTERKIT/theme-settings.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,33 @@
+<?php
+/**
+ * Implements hook_form_system_theme_settings_alter().
+ *
+ * @param $form
+ *   Nested array of form elements that comprise the form.
+ * @param $form_state
+ *   A keyed array containing the current state of the form.
+ */
+function STARTERKIT_form_system_theme_settings_alter(&$form, &$form_state, $form_id = NULL)  {
+  // Work-around for a core bug affecting admin themes. See issue #943212.
+  if (isset($form_id)) {
+    return;
+  }
+
+  // Create the form using Forms API: http://api.drupal.org/api/7
+
+  /* -- Delete this line if you want to use this setting
+  $form['STARTERKIT_example'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('STARTERKIT sample setting'),
+    '#default_value' => theme_get_setting('STARTERKIT_example'),
+    '#description'   => t("This option doesn't do anything; it's just an example."),
+  );
+  // */
+
+  // Remove some of the base theme's settings.
+  /* -- Delete this line if you want to turn off this setting.
+  unset($form['themedev']['zen_wireframes']); // We don't need to toggle wireframes on this site.
+  // */
+
+  // We are editing the $form in place, so we don't need to return anything.
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/js/html5-respond.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,15 @@
+/*
+ HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
+*/
+(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
+a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
+c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
+"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
+for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
+
+/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
+/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
+window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='&shy;<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
+
+/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs  */
+(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/js/html5.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+/*
+ HTML5 Shiv v3.6.2 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed
+*/
+(function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();
+a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x<style>article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}</style>";
+c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="<xyz></xyz>";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||
+"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section summary time video",version:"3.6.2",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();
+for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d<h;d++)c.createElement(e[d]);return c}};l.html5=e;q(f)})(this,document);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/js/respond.js	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
+/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
+window.matchMedia=window.matchMedia||(function(e,f){var c,a=e.documentElement,b=a.firstElementChild||a.firstChild,d=e.createElement("body"),g=e.createElement("div");g.id="mq-test-1";g.style.cssText="position:absolute;top:-100em";d.style.background="none";d.appendChild(g);return function(h){g.innerHTML='&shy;<style media="'+h+'"> #mq-test-1 { width: 42px; }</style>';a.insertBefore(d,b);c=g.offsetWidth==42;a.removeChild(d);return{matches:c,media:h}}})(document);
+
+/*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs  */
+(function(e){e.respond={};respond.update=function(){};respond.mediaQueriesSupported=e.matchMedia&&e.matchMedia("only all").matches;if(respond.mediaQueriesSupported){return}var w=e.document,s=w.documentElement,i=[],k=[],q=[],o={},h=30,f=w.getElementsByTagName("head")[0]||s,g=w.getElementsByTagName("base")[0],b=f.getElementsByTagName("link"),d=[],a=function(){var D=b,y=D.length,B=0,A,z,C,x;for(;B<y;B++){A=D[B],z=A.href,C=A.media,x=A.rel&&A.rel.toLowerCase()==="stylesheet";if(!!z&&x&&!o[z]){if(A.styleSheet&&A.styleSheet.rawCssText){m(A.styleSheet.rawCssText,z,C);o[z]=true}else{if((!/^([a-zA-Z:]*\/\/)/.test(z)&&!g)||z.replace(RegExp.$1,"").split("/")[0]===e.location.host){d.push({href:z,media:C})}}}}u()},u=function(){if(d.length){var x=d.shift();n(x.href,function(y){m(y,x.href,x.media);o[x.href]=true;u()})}},m=function(I,x,z){var G=I.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),J=G&&G.length||0,x=x.substring(0,x.lastIndexOf("/")),y=function(K){return K.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+x+"$2$3")},A=!J&&z,D=0,C,E,F,B,H;if(x.length){x+="/"}if(A){J=1}for(;D<J;D++){C=0;if(A){E=z;k.push(y(I))}else{E=G[D].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1;k.push(RegExp.$2&&y(RegExp.$2))}B=E.split(",");H=B.length;for(;C<H;C++){F=B[C];i.push({media:F.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:k.length-1,hasquery:F.indexOf("(")>-1,minw:F.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:F.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}}j()},l,r,v=function(){var z,A=w.createElement("div"),x=w.body,y=false;A.style.cssText="position:absolute;font-size:1em;width:1em";if(!x){x=y=w.createElement("body");x.style.background="none"}x.appendChild(A);s.insertBefore(x,s.firstChild);z=A.offsetWidth;if(y){s.removeChild(x)}else{x.removeChild(A)}z=p=parseFloat(z);return z},p,j=function(I){var x="clientWidth",B=s[x],H=w.compatMode==="CSS1Compat"&&B||w.body[x]||B,D={},G=b[b.length-1],z=(new Date()).getTime();if(I&&l&&z-l<h){clearTimeout(r);r=setTimeout(j,h);return}else{l=z}for(var E in i){var K=i[E],C=K.minw,J=K.maxw,A=C===null,L=J===null,y="em";if(!!C){C=parseFloat(C)*(C.indexOf(y)>-1?(p||v()):1)}if(!!J){J=parseFloat(J)*(J.indexOf(y)>-1?(p||v()):1)}if(!K.hasquery||(!A||!L)&&(A||H>=C)&&(L||H<=J)){if(!D[K.media]){D[K.media]=[]}D[K.media].push(k[K.rules])}}for(var E in q){if(q[E]&&q[E].parentNode===f){f.removeChild(q[E])}}for(var E in D){var M=w.createElement("style"),F=D[E].join("\n");M.type="text/css";M.media=E;f.insertBefore(M,G.nextSibling);if(M.styleSheet){M.styleSheet.cssText=F}else{M.appendChild(w.createTextNode(F))}q.push(M)}},n=function(x,z){var y=c();if(!y){return}y.open("GET",x,true);y.onreadystatechange=function(){if(y.readyState!=4||y.status!=200&&y.status!=304){return}z(y.responseText)};if(y.readyState==4){return}y.send(null)},c=(function(){var x=false;try{x=new XMLHttpRequest()}catch(y){x=new ActiveXObject("Microsoft.XMLHTTP")}return function(){return x}})();a();respond.update=a;function t(){j(true)}if(e.addEventListener){e.addEventListener("resize",t,false)}else{if(e.attachEvent){e.attachEvent("onresize",t)}}})(this);
Binary file sites/all/themes/zen/logo.png has changed
Binary file sites/all/themes/zen/panels-layouts/zen-no-wrapper/icon.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/panels-layouts/zen-no-wrapper/zen-no-wrapper.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * Template for a "no wrapper" layout; useful for mini panels, etc.
+ *
+ * This template provides a very simple "one column" panel display layout.
+ *
+ * Variables:
+ * - $css_id: An optional CSS id to use for the layout.
+ * - $content: An array of content, each item in the array is keyed to one
+ *   region of the layout. For example, $content['main'].
+ * - $main_classes: Additional classes for the main region.
+ */
+
+if ($main_classes) {
+  print '<div class="' . $main_classes . '">';
+  print $content['main'];
+  print '</div>';
+}
+else {
+  print $content['main'];
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/panels-layouts/zen-no-wrapper/zen_no_wrapper.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,88 @@
+<?php
+
+/**
+ * Implementation of hook_panels_layouts()
+ */
+// Plugin definition
+$plugin = array(
+  'title'       => t('No wrapper'),
+  'category'    => t('Columns: 1'),
+  'icon'        => 'icon.png',
+
+  'theme'       => 'zen_no_wrapper',
+
+  'regions'     => array(
+    'main'      => t('Main'),
+  ),
+
+  'settings form'     => 'zen_no_wrapper_settings_form',
+  'settings validate' => 'zen_no_wrapper_settings_validate',
+  'settings submit'   => 'zen_no_wrapper_settings_submit',
+);
+
+/**
+ * Form for layout settings.
+ */
+function zen_no_wrapper_settings_form(&$display, $layout, $settings) {
+  $form = array();
+
+  $form['layout_settings'] = array(
+    '#type' => 'fieldset',
+    '#title' => t('Layout settings'),
+    '#description' => t('Note: if this setting is used, a wrapper div will be added to accomodate the needed classes.'),
+    '#collapsible' => TRUE,
+    '#collapsed' => TRUE,
+  );
+
+  // Create a classes text field for each region in the layout.
+  foreach ($layout['regions'] as $region => $label) {
+    $form['layout_settings'][$region . '_classes'] = array(
+      '#type' => 'textfield',
+      '#title' => t('Classes for the “@region” region', array('@region' => $label)),
+      '#default_value' => isset($settings[$region . '_classes']) ? $settings[$region . '_classes'] : '',
+      '#description' => t('CSS class (or classes) to apply to the @region region in the layout. This may be blank.', array('@region' => $label)),
+    );
+  }
+
+  return $form;
+}
+
+/**
+ * Form validation for layout settings.
+ */
+function zen_no_wrapper_settings_validate(&$form_state, $form, &$display, $layout, $settings) {
+  // Since we allow underscores, change the css filter from Drupal's default.
+  $filter = array(' ' => '-', '/' => '-', '[' => '-', ']' => '');
+  foreach (array_keys($layout['regions']) as $region) {
+    // Ensure that each class is valid.
+    foreach (explode(' ', $form_state['layout_settings'][$region . '_classes']) as $class) {
+      $cleaned_class = drupal_clean_css_identifier($class, $filter);
+      // CSS identifiers can't start with a number or a dash and a number.
+      $cleaned_class = preg_replace('/^\-?\d+/', '', $cleaned_class);
+      if ($class != $cleaned_class) {
+        form_set_error($region . '_classes', t('The class "@class" is invalid. Here’s an alternative class name that is valid: @alternate', array('@class' => $class, '@alternate' => $cleaned_class)));
+      }
+    }
+  }
+}
+
+/**
+ * Form submit handler for layout settings.
+ */
+function zen_no_wrapper_settings_submit(&$form_state, &$display, $layout, $settings) {
+  // Move the settings out of the 'layout_settings' array.
+  foreach (array_keys($form_state['layout_settings']) as $key) {
+    $form_state[$key] = $form_state['layout_settings'][$key];
+  }
+  unset($form_state['layout_settings']);
+}
+
+/**
+ * Implements hook_preprocess_HOOK().
+ */
+function template_preprocess_zen_no_wrapper(&$variables, $hook) {
+  foreach (array_keys($variables['layout']['regions']) as $region) {
+    // Pull out the region classes to easy-to-handle variables.
+    $variables[$region . '_classes'] = !empty($variables['settings'][$region . '_classes']) ? ' ' . $variables['settings'][$region . '_classes'] : '';
+  }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/template.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,705 @@
+<?php
+/**
+ * @file
+ * Contains functions to alter Drupal's markup for the Zen theme.
+ *
+ * IMPORTANT WARNING: DO NOT MODIFY THIS FILE.
+ *
+ * The base Zen theme is designed to be easily extended by its sub-themes. You
+ * shouldn't modify this or any of the CSS or PHP files in the root zen/ folder.
+ * See the online documentation for more information:
+ *   https://drupal.org/documentation/theme/zen
+ */
+
+// Auto-rebuild the theme registry during theme development.
+if (theme_get_setting('zen_rebuild_registry') && !defined('MAINTENANCE_MODE')) {
+  // Rebuild .info data.
+  system_rebuild_theme_data();
+  // Rebuild theme registry.
+  drupal_theme_rebuild();
+}
+
+
+/**
+ * Implements HOOK_theme().
+ */
+function zen_theme(&$existing, $type, $theme, $path) {
+  include_once './' . drupal_get_path('theme', 'zen') . '/zen-internals/template.theme-registry.inc';
+  return _zen_theme($existing, $type, $theme, $path);
+}
+
+/**
+ * Return a themed breadcrumb trail.
+ *
+ * @param $variables
+ *   - title: An optional string to be used as a navigational heading to give
+ *     context for breadcrumb links to screen-reader users.
+ *   - title_attributes_array: Array of HTML attributes for the title. It is
+ *     flattened into a string within the theme function.
+ *   - breadcrumb: An array containing the breadcrumb links.
+ * @return
+ *   A string containing the breadcrumb output.
+ */
+function zen_breadcrumb($variables) {
+  $breadcrumb = $variables['breadcrumb'];
+  $output = '';
+
+  // Determine if we are to display the breadcrumb.
+  $show_breadcrumb = theme_get_setting('zen_breadcrumb');
+  if ($show_breadcrumb == 'yes' || $show_breadcrumb == 'admin' && arg(0) == 'admin') {
+
+    // Optionally get rid of the homepage link.
+    $show_breadcrumb_home = theme_get_setting('zen_breadcrumb_home');
+    if (!$show_breadcrumb_home) {
+      array_shift($breadcrumb);
+    }
+
+    // Return the breadcrumb with separators.
+    if (!empty($breadcrumb)) {
+      $breadcrumb_separator = filter_xss_admin(theme_get_setting('zen_breadcrumb_separator'));
+      $trailing_separator = $title = '';
+      if (theme_get_setting('zen_breadcrumb_title')) {
+        $item = menu_get_item();
+        if (!empty($item['tab_parent'])) {
+          // If we are on a non-default tab, use the tab's title.
+          $breadcrumb[] = check_plain($item['title']);
+        }
+        else {
+          $breadcrumb[] = drupal_get_title();
+        }
+      }
+      elseif (theme_get_setting('zen_breadcrumb_trailing')) {
+        $trailing_separator = $breadcrumb_separator;
+      }
+
+      // Provide a navigational heading to give context for breadcrumb links to
+      // screen-reader users.
+      if (empty($variables['title'])) {
+        $variables['title'] = t('You are here');
+      }
+      // Unless overridden by a preprocess function, make the heading invisible.
+      if (!isset($variables['title_attributes_array']['class'])) {
+        $variables['title_attributes_array']['class'][] = 'element-invisible';
+      }
+
+      // Build the breadcrumb trail.
+      $output = '<nav class="breadcrumb" role="navigation">';
+      $output .= '<h2' . drupal_attributes($variables['title_attributes_array']) . '>' . $variables['title'] . '</h2>';
+      $output .= '<ol><li>' . implode($breadcrumb_separator . '</li><li>', $breadcrumb) . $trailing_separator . '</li></ol>';
+      $output .= '</nav>';
+    }
+  }
+
+  return $output;
+}
+
+/**
+ * Override or insert variables into the html template.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered. This is usually "html", but can
+ *   also be "maintenance_page" since zen_preprocess_maintenance_page() calls
+ *   this function to have consistent variables.
+ */
+function zen_preprocess_html(&$variables, $hook) {
+  // Add variables and paths needed for HTML5 and responsive support.
+  $variables['base_path'] = base_path();
+  $variables['path_to_zen'] = drupal_get_path('theme', 'zen');
+  // Get settings for HTML5 and responsive support. array_filter() removes
+  // items from the array that have been disabled.
+  $html5_respond_meta = array_filter((array) theme_get_setting('zen_html5_respond_meta'));
+  $variables['add_respond_js']          = in_array('respond', $html5_respond_meta);
+  $variables['add_html5_shim']          = in_array('html5', $html5_respond_meta);
+  $variables['default_mobile_metatags'] = in_array('meta', $html5_respond_meta);
+
+  // If the user is silly and enables Zen as the theme, add some styles.
+  if ($GLOBALS['theme'] == 'zen') {
+    include_once './' . $variables['path_to_zen'] . '/zen-internals/template.zen.inc';
+    _zen_preprocess_html($variables, $hook);
+  }
+
+  // Attributes for html element.
+  $variables['html_attributes_array'] = array(
+    'lang' => $variables['language']->language,
+    'dir' => $variables['language']->dir,
+  );
+
+  // Send X-UA-Compatible HTTP header to force IE to use the most recent
+  // rendering engine or use Chrome's frame rendering engine if available.
+  // This also prevents the IE compatibility mode button to appear when using
+  // conditional classes on the html tag.
+  if (is_null(drupal_get_http_header('X-UA-Compatible'))) {
+    drupal_add_http_header('X-UA-Compatible', 'IE=edge,chrome=1');
+  }
+
+  $variables['skip_link_anchor'] = theme_get_setting('zen_skip_link_anchor');
+  $variables['skip_link_text'] = theme_get_setting('zen_skip_link_text');
+
+  // Return early, so the maintenance page does not call any of the code below.
+  if ($hook != 'html') {
+    return;
+  }
+
+  // Serialize RDF Namespaces into an RDFa 1.1 prefix attribute.
+  if ($variables['rdf_namespaces']) {
+    $prefixes = array();
+    foreach (explode("\n  ", ltrim($variables['rdf_namespaces'])) as $namespace) {
+      // Remove xlmns: and ending quote and fix prefix formatting.
+      $prefixes[] = str_replace('="', ': ', substr($namespace, 6, -1));
+    }
+    $variables['rdf_namespaces'] = ' prefix="' . implode(' ', $prefixes) . '"';
+  }
+
+  // Classes for body element. Allows advanced theming based on context
+  // (home page, node of certain type, etc.)
+  if (!$variables['is_front']) {
+    // Add unique class for each page.
+    $path = drupal_get_path_alias($_GET['q']);
+    // Add unique class for each website section.
+    list($section, ) = explode('/', $path, 2);
+    $arg = explode('/', $_GET['q']);
+    if ($arg[0] == 'node' && isset($arg[1])) {
+      if ($arg[1] == 'add') {
+        $section = 'node-add';
+      }
+      elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
+        $section = 'node-' . $arg[2];
+      }
+    }
+    $variables['classes_array'][] = drupal_html_class('section-' . $section);
+  }
+  if (theme_get_setting('zen_wireframes')) {
+    $variables['classes_array'][] = 'with-wireframes'; // Optionally add the wireframes style.
+  }
+  // Store the menu item since it has some useful information.
+  $variables['menu_item'] = menu_get_item();
+  if ($variables['menu_item']) {
+    switch ($variables['menu_item']['page_callback']) {
+      case 'views_page':
+        // Is this a Views page?
+        $variables['classes_array'][] = 'page-views';
+        break;
+      case 'page_manager_blog':
+      case 'page_manager_blog_user':
+      case 'page_manager_contact_site':
+      case 'page_manager_contact_user':
+      case 'page_manager_node_add':
+      case 'page_manager_node_edit':
+      case 'page_manager_node_view_page':
+      case 'page_manager_page_execute':
+      case 'page_manager_poll':
+      case 'page_manager_search_page':
+      case 'page_manager_term_view_page':
+      case 'page_manager_user_edit_page':
+      case 'page_manager_user_view_page':
+        // Is this a Panels page?
+        $variables['classes_array'][] = 'page-panels';
+        break;
+    }
+  }
+}
+
+/**
+ * Override or insert variables into the html templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("html" in this case.)
+ */
+function zen_process_html(&$variables, $hook) {
+  // Flatten out html_attributes.
+  $variables['html_attributes'] = drupal_attributes($variables['html_attributes_array']);
+}
+
+/**
+ * Override or insert variables in the html_tag theme function.
+ */
+function zen_process_html_tag(&$variables) {
+  $tag = &$variables['element'];
+
+  if ($tag['#tag'] == 'style' || $tag['#tag'] == 'script') {
+    // Remove redundant type attribute and CDATA comments.
+    unset($tag['#attributes']['type'], $tag['#value_prefix'], $tag['#value_suffix']);
+
+    // Remove media="all" but leave others unaffected.
+    if (isset($tag['#attributes']['media']) && $tag['#attributes']['media'] === 'all') {
+      unset($tag['#attributes']['media']);
+    }
+  }
+}
+
+/**
+ * Implement hook_html_head_alter().
+ */
+function zen_html_head_alter(&$head) {
+  // Simplify the meta tag for character encoding.
+  if (isset($head['system_meta_content_type']['#attributes']['content'])) {
+    $head['system_meta_content_type']['#attributes'] = array('charset' => str_replace('text/html; charset=', '', $head['system_meta_content_type']['#attributes']['content']));
+  }
+}
+
+/**
+ * Override or insert variables into the page template.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("page" in this case.)
+ */
+function zen_preprocess_page(&$variables, $hook) {
+  // Find the title of the menu used by the secondary links.
+  $secondary_links = variable_get('menu_secondary_links_source', 'user-menu');
+  if ($secondary_links) {
+    $menus = function_exists('menu_get_menus') ? menu_get_menus() : menu_list_system_menus();
+    $variables['secondary_menu_heading'] = $menus[$secondary_links];
+  }
+  else {
+    $variables['secondary_menu_heading'] = '';
+  }
+}
+
+/**
+ * Override or insert variables into the maintenance page template.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("maintenance_page" in this case.)
+ */
+function zen_preprocess_maintenance_page(&$variables, $hook) {
+  zen_preprocess_html($variables, $hook);
+  // There's nothing maintenance-related in zen_preprocess_page(). Yet.
+  //zen_preprocess_page($variables, $hook);
+}
+
+/**
+ * Override or insert variables into the maintenance page template.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("maintenance_page" in this case.)
+ */
+function zen_process_maintenance_page(&$variables, $hook) {
+  zen_process_html($variables, $hook);
+  // Ensure default regions get a variable. Theme authors often forget to remove
+  // a deleted region's variable in maintenance-page.tpl.
+  foreach (array('header', 'navigation', 'highlighted', 'help', 'content', 'sidebar_first', 'sidebar_second', 'footer', 'bottom') as $region) {
+    if (!isset($variables[$region])) {
+      $variables[$region] = '';
+    }
+  }
+}
+
+/**
+ * Override or insert variables into the node templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("node" in this case.)
+ */
+function zen_preprocess_node(&$variables, $hook) {
+  // Add $unpublished variable.
+  $variables['unpublished'] = (!$variables['status']) ? TRUE : FALSE;
+
+  // Add pubdate to submitted variable.
+  $variables['pubdate'] = '<time pubdate datetime="' . format_date($variables['node']->created, 'custom', 'c') . '">' . $variables['date'] . '</time>';
+  if ($variables['display_submitted']) {
+    $variables['submitted'] = t('Submitted by !username on !datetime', array('!username' => $variables['name'], '!datetime' => $variables['pubdate']));
+  }
+
+  // Add a class for the view mode.
+  if (!$variables['teaser']) {
+    $variables['classes_array'][] = 'view-mode-' . $variables['view_mode'];
+  }
+
+  // Add a class to show node is authored by current user.
+  if ($variables['uid'] && $variables['uid'] == $GLOBALS['user']->uid) {
+    $variables['classes_array'][] = 'node-by-viewer';
+  }
+
+  $variables['title_attributes_array']['class'][] = 'node__title';
+  $variables['title_attributes_array']['class'][] = 'node-title';
+}
+
+/**
+ * Override or insert variables into the comment templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("comment" in this case.)
+ */
+function zen_preprocess_comment(&$variables, $hook) {
+  // If comment subjects are disabled, don't display them.
+  if (variable_get('comment_subject_field_' . $variables['node']->type, 1) == 0) {
+    $variables['title'] = '';
+  }
+
+  // Add pubdate to submitted variable.
+  $variables['pubdate'] = '<time pubdate datetime="' . format_date($variables['comment']->created, 'custom', 'c') . '">' . $variables['created'] . '</time>';
+  $variables['submitted'] = t('!username replied on !datetime', array('!username' => $variables['author'], '!datetime' => $variables['pubdate']));
+
+  // Zebra striping.
+  if ($variables['id'] == 1) {
+    $variables['classes_array'][] = 'first';
+  }
+  if ($variables['id'] == $variables['node']->comment_count) {
+    $variables['classes_array'][] = 'last';
+  }
+  $variables['classes_array'][] = $variables['zebra'];
+
+  $variables['title_attributes_array']['class'][] = 'comment__title';
+  $variables['title_attributes_array']['class'][] = 'comment-title';
+}
+
+/**
+ * Preprocess variables for region.tpl.php
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("region" in this case.)
+ */
+function zen_preprocess_region(&$variables, $hook) {
+  // Sidebar regions get some extra classes and a common template suggestion.
+  if (strpos($variables['region'], 'sidebar_') === 0) {
+    $variables['classes_array'][] = 'column';
+    $variables['classes_array'][] = 'sidebar';
+    // Allow a region-specific template to override Zen's region--sidebar.
+    array_unshift($variables['theme_hook_suggestions'], 'region__sidebar');
+  }
+  // Use a template with no wrapper for the content region.
+  elseif ($variables['region'] == 'content') {
+    // Allow a region-specific template to override Zen's region--no-wrapper.
+    array_unshift($variables['theme_hook_suggestions'], 'region__no_wrapper');
+  }
+  // Add a SMACSS-style class for header region.
+  elseif ($variables['region'] == 'header') {
+    array_unshift($variables['classes_array'], 'header__region');
+  }
+}
+
+/**
+ * Override or insert variables into the block templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("block" in this case.)
+ */
+function zen_preprocess_block(&$variables, $hook) {
+  // Use a template with no wrapper for the page's main content.
+  if ($variables['block_html_id'] == 'block-system-main') {
+    $variables['theme_hook_suggestions'][] = 'block__no_wrapper';
+  }
+
+  // Classes describing the position of the block within the region.
+  if ($variables['block_id'] == 1) {
+    $variables['classes_array'][] = 'first';
+  }
+  // The last_in_region property is set in zen_page_alter().
+  if (isset($variables['block']->last_in_region)) {
+    $variables['classes_array'][] = 'last';
+  }
+  $variables['classes_array'][] = $variables['block_zebra'];
+
+  $variables['title_attributes_array']['class'][] = 'block__title';
+  $variables['title_attributes_array']['class'][] = 'block-title';
+
+  // Add Aria Roles via attributes.
+  switch ($variables['block']->module) {
+    case 'system':
+      switch ($variables['block']->delta) {
+        case 'main':
+          // Note: the "main" role goes in the page.tpl, not here.
+          break;
+        case 'help':
+        case 'powered-by':
+          $variables['attributes_array']['role'] = 'complementary';
+          break;
+        default:
+          // Any other "system" block is a menu block.
+          $variables['attributes_array']['role'] = 'navigation';
+          break;
+      }
+      break;
+    case 'menu':
+    case 'menu_block':
+    case 'blog':
+    case 'book':
+    case 'comment':
+    case 'forum':
+    case 'shortcut':
+    case 'statistics':
+      $variables['attributes_array']['role'] = 'navigation';
+      break;
+    case 'search':
+      $variables['attributes_array']['role'] = 'search';
+      break;
+    case 'help':
+    case 'aggregator':
+    case 'locale':
+    case 'poll':
+    case 'profile':
+      $variables['attributes_array']['role'] = 'complementary';
+      break;
+    case 'node':
+      switch ($variables['block']->delta) {
+        case 'syndicate':
+          $variables['attributes_array']['role'] = 'complementary';
+          break;
+        case 'recent':
+          $variables['attributes_array']['role'] = 'navigation';
+          break;
+      }
+      break;
+    case 'user':
+      switch ($variables['block']->delta) {
+        case 'login':
+          $variables['attributes_array']['role'] = 'form';
+          break;
+        case 'new':
+        case 'online':
+          $variables['attributes_array']['role'] = 'complementary';
+          break;
+      }
+      break;
+  }
+}
+
+/**
+ * Override or insert variables into the block templates.
+ *
+ * @param $variables
+ *   An array of variables to pass to the theme template.
+ * @param $hook
+ *   The name of the template being rendered ("block" in this case.)
+ */
+function zen_process_block(&$variables, $hook) {
+  // Drupal 7 should use a $title variable instead of $block->subject.
+  $variables['title'] = isset($variables['block']->subject) ? $variables['block']->subject : '';
+}
+
+/**
+ * Implements hook_page_alter().
+ *
+ * Look for the last block in the region. This is impossible to determine from
+ * within a preprocess_block function.
+ *
+ * @param $page
+ *   Nested array of renderable elements that make up the page.
+ */
+function zen_page_alter(&$page) {
+  // Look in each visible region for blocks.
+  foreach (system_region_list($GLOBALS['theme'], REGIONS_VISIBLE) as $region => $name) {
+    if (!empty($page[$region])) {
+      // Find the last block in the region.
+      $blocks = array_reverse(element_children($page[$region]));
+      while ($blocks && !isset($page[$region][$blocks[0]]['#block'])) {
+        array_shift($blocks);
+      }
+      if ($blocks) {
+        $page[$region][$blocks[0]]['#block']->last_in_region = TRUE;
+      }
+    }
+  }
+}
+
+/**
+ * Implements hook_form_BASE_FORM_ID_alter().
+ *
+ * Prevent user-facing field styling from screwing up node edit forms by
+ * renaming the classes on the node edit form's field wrappers.
+ */
+function zen_form_node_form_alter(&$form, &$form_state, $form_id) {
+  // Remove if #1245218 is backported to D7 core.
+  foreach (array_keys($form) as $item) {
+    if (strpos($item, 'field_') === 0) {
+      if (!empty($form[$item]['#attributes']['class'])) {
+        foreach ($form[$item]['#attributes']['class'] as &$class) {
+          // Core bug: the field-type-text-with-summary class is used as a JS hook.
+          if ($class != 'field-type-text-with-summary' && strpos($class, 'field-type-') === 0 || strpos($class, 'field-name-') === 0) {
+            // Make the class different from that used in theme_field().
+            $class = 'form-' . $class;
+          }
+        }
+      }
+    }
+  }
+}
+
+/**
+ * Returns HTML for primary and secondary local tasks.
+ *
+ * @ingroup themeable
+ */
+function zen_menu_local_tasks(&$variables) {
+  $output = '';
+
+  // Add theme hook suggestions for tab type.
+  foreach (array('primary', 'secondary') as $type) {
+    if (!empty($variables[$type])) {
+      foreach (array_keys($variables[$type]) as $key) {
+        if (isset($variables[$type][$key]['#theme']) && ($variables[$type][$key]['#theme'] == 'menu_local_task' || is_array($variables[$type][$key]['#theme']) && in_array('menu_local_task', $variables[$type][$key]['#theme']))) {
+          $variables[$type][$key]['#theme'] = array('menu_local_task__' . $type, 'menu_local_task');
+        }
+      }
+    }
+  }
+
+  if (!empty($variables['primary'])) {
+    $variables['primary']['#prefix'] = '<h2 class="element-invisible">' . t('Primary tabs') . '</h2>';
+    $variables['primary']['#prefix'] .= '<ul class="tabs-primary tabs primary">';
+    $variables['primary']['#suffix'] = '</ul>';
+    $output .= drupal_render($variables['primary']);
+  }
+  if (!empty($variables['secondary'])) {
+    $variables['secondary']['#prefix'] = '<h2 class="element-invisible">' . t('Secondary tabs') . '</h2>';
+    $variables['secondary']['#prefix'] .= '<ul class="tabs-secondary tabs secondary">';
+    $variables['secondary']['#suffix'] = '</ul>';
+    $output .= drupal_render($variables['secondary']);
+  }
+
+  return $output;
+}
+
+/**
+ * Returns HTML for a single local task link.
+ *
+ * @ingroup themeable
+ */
+function zen_menu_local_task($variables) {
+  $type = $class = FALSE;
+
+  $link = $variables['element']['#link'];
+  $link_text = $link['title'];
+
+  // Check for tab type set in zen_menu_local_tasks().
+  if (is_array($variables['element']['#theme'])) {
+    $type = in_array('menu_local_task__secondary', $variables['element']['#theme']) ? 'tabs-secondary' : 'tabs-primary';
+  }
+
+  // Add SMACSS-style class names.
+  if ($type) {
+    $link['localized_options']['attributes']['class'][] = $type . '__tab-link';
+    $class = $type . '__tab';
+  }
+
+  if (!empty($variables['element']['#active'])) {
+    // Add text to indicate active tab for non-visual users.
+    $active = ' <span class="element-invisible">' . t('(active tab)') . '</span>';
+
+    // If the link does not contain HTML already, check_plain() it now.
+    // After we set 'html'=TRUE the link will not be sanitized by l().
+    if (empty($link['localized_options']['html'])) {
+      $link['title'] = check_plain($link['title']);
+    }
+    $link['localized_options']['html'] = TRUE;
+    $link_text = t('!local-task-title!active', array('!local-task-title' => $link['title'], '!active' => $active));
+
+    if (!$type) {
+      $class = 'active';
+    }
+    else {
+      $link['localized_options']['attributes']['class'][] = 'is-active';
+      $class .= ' is-active';
+    }
+  }
+
+  return '<li' . ($class ? ' class="' . $class . '"' : '') . '>' . l($link_text, $link['href'], $link['localized_options']) . "</li>\n";
+}
+
+/**
+ * Implements hook_preprocess_menu_link().
+ */
+function zen_preprocess_menu_link(&$variables, $hook) {
+  foreach ($variables['element']['#attributes']['class'] as $key => $class) {
+    switch ($class) {
+      // Menu module classes.
+      case 'expanded':
+      case 'collapsed':
+      case 'leaf':
+      case 'active':
+      // Menu block module classes.
+      case 'active-trail':
+        array_unshift($variables['element']['#attributes']['class'], 'is-' . $class);
+        break;
+      case 'has-children':
+        array_unshift($variables['element']['#attributes']['class'], 'is-parent');
+        break;
+    }
+  }
+  array_unshift($variables['element']['#attributes']['class'], 'menu__item');
+  if (empty($variables['element']['#localized_options']['attributes']['class'])) {
+    $variables['element']['#localized_options']['attributes']['class'] = array();
+  }
+  else {
+    foreach ($variables['element']['#localized_options']['attributes']['class'] as $key => $class) {
+      switch ($class) {
+        case 'active':
+        case 'active-trail':
+          array_unshift($variables['element']['#localized_options']['attributes']['class'], 'is-' . $class);
+          break;
+      }
+    }
+  }
+  array_unshift($variables['element']['#localized_options']['attributes']['class'], 'menu__link');
+}
+
+/**
+ * Returns HTML for status and/or error messages, grouped by type.
+ */
+function zen_status_messages($variables) {
+  $display = $variables['display'];
+  $output = '';
+
+  $status_heading = array(
+    'status' => t('Status message'),
+    'error' => t('Error message'),
+    'warning' => t('Warning message'),
+  );
+  foreach (drupal_get_messages($display) as $type => $messages) {
+    $output .= "<div class=\"messages--$type messages $type\">\n";
+    if (!empty($status_heading[$type])) {
+      $output .= '<h2 class="element-invisible">' . $status_heading[$type] . "</h2>\n";
+    }
+    if (count($messages) > 1) {
+      $output .= " <ul class=\"messages__list\">\n";
+      foreach ($messages as $message) {
+        $output .= '  <li class=\"messages__item\">' . $message . "</li>\n";
+      }
+      $output .= " </ul>\n";
+    }
+    else {
+      $output .= $messages[0];
+    }
+    $output .= "</div>\n";
+  }
+  return $output;
+}
+
+/**
+ * Returns HTML for a marker for new or updated content.
+ */
+function zen_mark($variables) {
+  $type = $variables['type'];
+
+  if ($type == MARK_NEW) {
+    return ' <mark class="new">' . t('new') . '</mark>';
+  }
+  elseif ($type == MARK_UPDATED) {
+    return ' <mark class="updated">' . t('updated') . '</mark>';
+  }
+}
+
+/**
+ * Alters the default Panels render callback so it removes the panel separator.
+ */
+function zen_panels_default_style_render_region($variables) {
+  return implode('', $variables['panes']);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/block--no-wrapper.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a block with bare minimum HTML.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728250
+ */
+?>
+
+<?php print render($title_prefix); ?>
+<?php if ($title): ?>
+  <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
+<?php endif; ?>
+<?php print render($title_suffix); ?>
+
+<?php print $content; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/block.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,20 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a block.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728246
+ */
+?>
+<div id="<?php print $block_html_id; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
+
+  <?php print render($title_prefix); ?>
+  <?php if ($title): ?>
+    <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
+  <?php endif; ?>
+  <?php print render($title_suffix); ?>
+
+  <?php print $content; ?>
+
+</div>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/comment-wrapper.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,27 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a wrapping container around comments.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728230
+ */
+
+// Render the comments and form first to see if we need headings.
+$comments = render($content['comments']);
+$comment_form = render($content['comment_form']);
+?>
+<section id="comments" class="comments <?php print $classes; ?>"<?php print $attributes; ?>>
+  <?php print render($title_prefix); ?>
+  <?php if ($comments && $node->type != 'forum'): ?>
+    <h2 class="comments__title title"><?php print t('Comments'); ?></h2>
+  <?php endif; ?>
+  <?php print render($title_suffix); ?>
+
+  <?php print $comments; ?>
+
+  <?php if ($comment_form): ?>
+    <h2 class="comments__form-title title comment-form"><?php print t('Add new comment'); ?></h2>
+    <?php print $comment_form; ?>
+  <?php endif; ?>
+</section>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/comment.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,50 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for comments.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728216
+ */
+?>
+<article class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+
+  <header>
+    <p class="submitted">
+      <?php print $picture; ?>
+      <?php print $submitted; ?>
+      <?php print $permalink; ?>
+    </p>
+
+    <?php print render($title_prefix); ?>
+    <?php if ($title): ?>
+      <h3<?php print $title_attributes; ?>>
+        <?php print $title; ?>
+        <?php if ($new): ?>
+          <mark class="new"><?php print $new; ?></mark>
+        <?php endif; ?>
+      </h3>
+    <?php elseif ($new): ?>
+      <mark class="new"><?php print $new; ?></mark>
+    <?php endif; ?>
+    <?php print render($title_suffix); ?>
+
+    <?php if ($status == 'comment-unpublished'): ?>
+      <mark class="unpublished"><?php print t('Unpublished'); ?></mark>
+    <?php endif; ?>
+  </header>
+
+  <?php
+    // We hide the comments and links now so that we can render them later.
+    hide($content['links']);
+    print render($content);
+  ?>
+
+  <?php if ($signature): ?>
+    <footer class="user-signature clearfix">
+      <?php print $signature; ?>
+    </footer>
+  <?php endif; ?>
+
+  <?php print render($content['links']) ?>
+</article>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/html.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,53 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for the basic html structure of a single Drupal page.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728208
+ */
+?><!DOCTYPE html>
+<!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
+<!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" <?php print $html_attributes; ?>><![endif]-->
+<!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8" <?php print $html_attributes; ?>><![endif]-->
+<!--[if IE 8]><html class="lt-ie9" <?php print $html_attributes; ?>><![endif]-->
+<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes . $rdf_namespaces; ?>><!--<![endif]-->
+
+<head>
+  <?php print $head; ?>
+  <title><?php print $head_title; ?></title>
+
+  <?php if ($default_mobile_metatags): ?>
+    <meta name="MobileOptimized" content="width">
+    <meta name="HandheldFriendly" content="true">
+    <meta name="viewport" content="width=device-width">
+  <?php endif; ?>
+  <meta http-equiv="cleartype" content="on">
+
+  <?php print $styles; ?>
+  <?php print $scripts; ?>
+  <?php if ($add_html5_shim and !$add_respond_js): ?>
+    <!--[if lt IE 9]>
+    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5.js"></script>
+    <![endif]-->
+  <?php elseif ($add_html5_shim and $add_respond_js): ?>
+    <!--[if lt IE 9]>
+    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5-respond.js"></script>
+    <![endif]-->
+  <?php elseif ($add_respond_js): ?>
+    <!--[if lt IE 9]>
+    <script src="<?php print $base_path . $path_to_zen; ?>/js/respond.js"></script>
+    <![endif]-->
+  <?php endif; ?>
+</head>
+<body class="<?php print $classes; ?>" <?php print $attributes;?>>
+  <?php if ($skip_link_text && $skip_link_anchor): ?>
+    <p id="skip-link">
+      <a href="#<?php print $skip_link_anchor; ?>" class="element-invisible element-focusable"><?php print $skip_link_text; ?></a>
+    </p>
+  <?php endif; ?>
+  <?php print $page_top; ?>
+  <?php print $page; ?>
+  <?php print $page_bottom; ?>
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/maintenance-page.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,99 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a single Drupal page while offline.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728174
+ */
+?><!DOCTYPE html>
+<!--[if IEMobile 7]><html class="iem7" <?php print $html_attributes; ?>><![endif]-->
+<!--[if lte IE 6]><html class="lt-ie9 lt-ie8 lt-ie7" <?php print $html_attributes; ?>><![endif]-->
+<!--[if (IE 7)&(!IEMobile)]><html class="lt-ie9 lt-ie8" <?php print $html_attributes; ?>><![endif]-->
+<!--[if IE 8]><html class="lt-ie9" <?php print $html_attributes; ?>><![endif]-->
+<!--[if (gte IE 9)|(gt IEMobile 7)]><!--><html <?php print $html_attributes; ?>><!--<![endif]-->
+
+<head>
+  <?php print $head; ?>
+  <title><?php print $head_title; ?></title>
+
+  <?php if ($default_mobile_metatags): ?>
+    <meta name="MobileOptimized" content="width">
+    <meta name="HandheldFriendly" content="true">
+    <meta name="viewport" content="width=device-width">
+  <?php endif; ?>
+  <meta http-equiv="cleartype" content="on">
+
+  <?php print $styles; ?>
+  <?php print $scripts; ?>
+  <?php if ($add_respond_js): ?>
+    <!--[if lt IE 9]>
+    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5-respond.js"></script>
+    <![endif]-->
+  <?php elseif ($add_html5_shim): ?>
+    <!--[if lt IE 9]>
+    <script src="<?php print $base_path . $path_to_zen; ?>/js/html5.js"></script>
+    <![endif]-->
+  <?php endif; ?>
+</head>
+<body class="<?php print $classes; ?>" <?php print $attributes;?>>
+
+<div id="page">
+
+  <header id="header" role="banner">
+
+    <?php if ($logo): ?>
+      <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /></a>
+    <?php endif; ?>
+
+    <?php if ($site_name || $site_slogan): ?>
+      <div id="name-and-slogan">
+        <?php if ($site_name): ?>
+          <h1 id="site-name">
+            <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
+          </h1>
+        <?php endif; ?>
+
+        <?php if ($site_slogan): ?>
+          <h2 id="site-slogan"><?php print $site_slogan; ?></h2>
+        <?php endif; ?>
+      </div>
+    <?php endif; ?>
+
+    <?php print $header; ?>
+
+  </header>
+
+  <div id="main">
+
+    <div id="content" class="column" role="main">
+      <?php print $highlighted; ?>
+      <a id="main-content"></a>
+      <?php if ($title): ?>
+        <h1 class="title" id="page-title"><?php print $title; ?></h1>
+      <?php endif; ?>
+      <?php print $messages; ?>
+      <?php print $content; ?>
+    </div>
+
+    <div id="navigation">
+      <?php print $navigation; ?>
+    </div>
+
+    <?php if ($sidebar_first || $sidebar_second): ?>
+      <aside class="sidebars">
+        <?php print $sidebar_first; ?>
+        <?php print $sidebar_second; ?>
+      </aside>
+    <?php endif; ?>
+
+  </div>
+
+  <?php print $footer; ?>
+
+</div>
+
+<?php print $bottom; ?>
+
+</body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/node.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,44 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a node.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728164
+ */
+?>
+<article class="node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+
+  <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?>
+    <header>
+      <?php print render($title_prefix); ?>
+      <?php if (!$page && $title): ?>
+        <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
+      <?php endif; ?>
+      <?php print render($title_suffix); ?>
+
+      <?php if ($display_submitted): ?>
+        <p class="submitted">
+          <?php print $user_picture; ?>
+          <?php print $submitted; ?>
+        </p>
+      <?php endif; ?>
+
+      <?php if ($unpublished): ?>
+        <mark class="unpublished"><?php print t('Unpublished'); ?></mark>
+      <?php endif; ?>
+    </header>
+  <?php endif; ?>
+
+  <?php
+    // We hide the comments and links now so that we can render them later.
+    hide($content['comments']);
+    hide($content['links']);
+    print render($content);
+  ?>
+
+  <?php print render($content['links']); ?>
+
+  <?php print render($content['comments']); ?>
+
+</article>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/page.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,120 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a single Drupal page.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728148
+ */
+?>
+
+<div id="page">
+
+  <header class="header" id="header" role="banner">
+
+    <?php if ($logo): ?>
+      <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" /></a>
+    <?php endif; ?>
+
+    <?php if ($site_name || $site_slogan): ?>
+      <div class="header__name-and-slogan" id="name-and-slogan">
+        <?php if ($site_name): ?>
+          <h1 class="header__site-name" id="site-name">
+            <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="header__site-link" rel="home"><span><?php print $site_name; ?></span></a>
+          </h1>
+        <?php endif; ?>
+
+        <?php if ($site_slogan): ?>
+          <div class="header__site-slogan" id="site-slogan"><?php print $site_slogan; ?></div>
+        <?php endif; ?>
+      </div>
+    <?php endif; ?>
+
+    <?php if ($secondary_menu): ?>
+      <nav class="header__secondary-menu" id="secondary-menu" role="navigation">
+        <?php print theme('links__system_secondary_menu', array(
+          'links' => $secondary_menu,
+          'attributes' => array(
+            'class' => array('links', 'inline', 'clearfix'),
+          ),
+          'heading' => array(
+            'text' => $secondary_menu_heading,
+            'level' => 'h2',
+            'class' => array('element-invisible'),
+          ),
+        )); ?>
+      </nav>
+    <?php endif; ?>
+
+    <?php print render($page['header']); ?>
+
+  </header>
+
+  <div id="main">
+
+    <div id="content" class="column" role="main">
+      <?php print render($page['highlighted']); ?>
+      <?php print $breadcrumb; ?>
+      <a id="main-content"></a>
+      <?php print render($title_prefix); ?>
+      <?php if ($title): ?>
+        <h1 class="page__title title" id="page-title"><?php print $title; ?></h1>
+      <?php endif; ?>
+      <?php print render($title_suffix); ?>
+      <?php print $messages; ?>
+      <?php print render($tabs); ?>
+      <?php print render($page['help']); ?>
+      <?php if ($action_links): ?>
+        <ul class="action-links"><?php print render($action_links); ?></ul>
+      <?php endif; ?>
+      <?php print render($page['content']); ?>
+      <?php print $feed_icons; ?>
+    </div>
+
+    <div id="navigation">
+
+      <?php if ($main_menu): ?>
+        <nav id="main-menu" role="navigation" tabindex="-1">
+          <?php
+          // This code snippet is hard to modify. We recommend turning off the
+          // "Main menu" on your sub-theme's settings form, deleting this PHP
+          // code block, and, instead, using the "Menu block" module.
+          // @see https://drupal.org/project/menu_block
+          print theme('links__system_main_menu', array(
+            'links' => $main_menu,
+            'attributes' => array(
+              'class' => array('links', 'inline', 'clearfix'),
+            ),
+            'heading' => array(
+              'text' => t('Main menu'),
+              'level' => 'h2',
+              'class' => array('element-invisible'),
+            ),
+          )); ?>
+        </nav>
+      <?php endif; ?>
+
+      <?php print render($page['navigation']); ?>
+
+    </div>
+
+    <?php
+      // Render the sidebars to see if there's anything in them.
+      $sidebar_first  = render($page['sidebar_first']);
+      $sidebar_second = render($page['sidebar_second']);
+    ?>
+
+    <?php if ($sidebar_first || $sidebar_second): ?>
+      <aside class="sidebars">
+        <?php print $sidebar_first; ?>
+        <?php print $sidebar_second; ?>
+      </aside>
+    <?php endif; ?>
+
+  </div>
+
+  <?php print render($page['footer']); ?>
+
+</div>
+
+<?php print render($page['bottom']); ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/pane-header.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,26 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for Panels Everywhere's navigation pane.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/2052507
+ */
+?>
+<?php if ($logo): ?>
+  <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" class="header__logo" id="logo"><img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" class="header__logo-image" /></a>
+<?php endif; ?>
+
+<?php if ($site_name || $site_slogan): ?>
+  <div class="header__name-and-slogan" id="name-and-slogan">
+    <?php if ($site_name): ?>
+      <h1 class="header__site-name" id="site-name">
+        <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" class="header__site-link" rel="home"><span><?php print $site_name; ?></span></a>
+      </h1>
+    <?php endif; ?>
+
+    <?php if ($site_slogan): ?>
+      <h2 class="header__site-slogan" id="site-slogan"><?php print $site_slogan; ?></h2>
+    <?php endif; ?>
+  </div>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/pane-messages.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for Panels Everywhere's messages pane.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/2052511
+ */
+?>
+
+<?php print $messages; ?>
+<?php print render($tabs); ?>
+<?php print $help; ?>
+
+<?php if ($action_links): ?>
+  <ul class="action-links"><?php print render($action_links); ?></ul>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/pane-navigation.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,22 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for Panels Everywhere's navigation pane.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/2052513
+ */
+?>
+<?php if (!empty($main_menu)): ?>
+  <nav id="main-menu" role="navigation" tabindex="-1">
+    <?php print $main_menu; ?>
+  </nav>
+<?php endif; ?>
+
+<?php if (!empty($secondary_menu)): ?>
+  <nav id="secondary-menu" role="navigation">
+    <?php print $secondary_menu; ?>
+  </nav>
+<?php endif; ?>
+
+<?php print $breadcrumb; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/panels-pane.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,40 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a Panels pane.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/2052505
+ */
+?>
+<?php print $pane_prefix; ?>
+<div class="<?php print $classes; ?>" <?php print $id; ?>>
+  <?php print $admin_links; ?>
+
+  <?php print render($title_prefix); ?>
+  <?php if ($title): ?>
+    <h2<?php print $title_attributes; ?>><?php print $title; ?></h2>
+  <?php endif; ?>
+  <?php print render($title_suffix); ?>
+
+  <?php if ($feeds): ?>
+    <div class="feed">
+      <?php print $feeds; ?>
+    </div>
+  <?php endif; ?>
+
+  <?php print render($content); ?>
+
+  <?php if ($links): ?>
+    <div class="links">
+      <?php print $links; ?>
+    </div>
+  <?php endif; ?>
+
+  <?php if ($more): ?>
+    <div class="more-link">
+      <?php print $more; ?>
+    </div>
+  <?php endif; ?>
+</div>
+<?php print $pane_suffix; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/region--footer.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for the footer region.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728140
+ */
+?>
+<?php if ($content): ?>
+  <footer id="footer" class="<?php print $classes; ?>">
+    <?php print $content; ?>
+  </footer>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/region--no-wrapper.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,11 @@
+<?php
+/**
+ * @file
+ * Returns the HTML for a region with bare minimum HTML.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728134
+ */
+?>
+
+<?php print $content; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/region--sidebar.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+<?php
+/**
+ * @file
+ * Returns HTML for a sidebar region.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728118
+ */
+?>
+<?php if ($content): ?>
+  <section class="<?php print $classes; ?>">
+    <?php print $content; ?>
+  </section>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/region.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+<?php
+/**
+ * @file
+ * Returns HTML for a region.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728112
+ */
+?>
+<?php if ($content): ?>
+  <div class="<?php print $classes; ?>">
+    <?php print $content; ?>
+  </div>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/templates/user-picture.tpl.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,14 @@
+<?php
+/**
+ * @file
+ * Returns HTML for a picture configured for the user's account.
+ *
+ * Complete documentation for this file is available online.
+ * @see https://drupal.org/node/1728110
+ */
+?>
+<?php if ($user_picture): ?>
+  <span class="user-picture">
+    <?php print $user_picture; ?>
+  </span>
+<?php endif; ?>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/theme-settings.php	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,127 @@
+<?php
+/**
+ * Implements hook_form_system_theme_settings_alter() function.
+ *
+ * @param $form
+ *   Nested array of form elements that comprise the form.
+ * @param $form_state
+ *   A keyed array containing the current state of the form.
+ */
+function zen_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL) {
+  // Work-around for a core bug affecting admin themes. See issue #943212.
+  if (isset($form_id)) {
+    return;
+  }
+
+  // Create the form using Forms API
+  $form['breadcrumb'] = array(
+    '#type'          => 'fieldset',
+    '#title'         => t('Breadcrumb settings'),
+  );
+  $form['breadcrumb']['zen_breadcrumb'] = array(
+    '#type'          => 'select',
+    '#title'         => t('Display breadcrumb'),
+    '#default_value' => theme_get_setting('zen_breadcrumb'),
+    '#options'       => array(
+                          'yes'   => t('Yes'),
+                          'admin' => t('Only in admin section'),
+                          'no'    => t('No'),
+                        ),
+  );
+  $form['breadcrumb']['breadcrumb_options'] = array(
+    '#type' => 'container',
+    '#states' => array(
+      'invisible' => array(
+        ':input[name="zen_breadcrumb"]' => array('value' => 'no'),
+      ),
+    ),
+  );
+  $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_separator'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Breadcrumb separator'),
+    '#description'   => t('Text only. Don’t forget to include spaces.'),
+    '#default_value' => theme_get_setting('zen_breadcrumb_separator'),
+    '#size'          => 5,
+    '#maxlength'     => 10,
+  );
+  $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_home'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Show home page link in breadcrumb'),
+    '#default_value' => theme_get_setting('zen_breadcrumb_home'),
+  );
+  $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_trailing'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Append a separator to the end of the breadcrumb'),
+    '#default_value' => theme_get_setting('zen_breadcrumb_trailing'),
+    '#description'   => t('Useful when the breadcrumb is placed just before the title.'),
+    '#states' => array(
+      'disabled' => array(
+        ':input[name="zen_breadcrumb_title"]' => array('checked' => TRUE),
+      ),
+    ),
+  );
+  $form['breadcrumb']['breadcrumb_options']['zen_breadcrumb_title'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Append the content title to the end of the breadcrumb'),
+    '#default_value' => theme_get_setting('zen_breadcrumb_title'),
+    '#description'   => t('Useful when the breadcrumb is not placed just before the title.'),
+  );
+
+  $form['support'] = array(
+    '#type'          => 'fieldset',
+    '#title'         => t('Accessibility and support settings'),
+  );
+  // Only toggle the layout for the main Zen theme.
+  if ($form['var']['#value'] == 'theme_zen_settings') {
+    $form['support']['zen_layout'] = array(
+      '#type'          => 'radios',
+      '#title'         => t('Layout'),
+      '#options'       => array(
+        'zen-responsive-sidebars' => t('Responsive sidebar layout') . ' <small>(layouts/responsive-sidebars.css)</small>',
+        'zen-fixed-width' => t('Fixed width layout') . ' <small>(layouts/fixed-width.css)</small>',
+      ),
+      '#default_value' => theme_get_setting('zen_layout'),
+    );
+  }
+  $form['support']['zen_skip_link_anchor'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Anchor ID for the “skip link”'),
+    '#default_value' => theme_get_setting('zen_skip_link_anchor'),
+    '#field_prefix'  => '#',
+    '#description'   => t('Specify the HTML ID of the element that the accessible-but-hidden “skip link” should link to. Note: that element should have the <code>tabindex="-1"</code> attribute to prevent an accessibility bug in webkit browsers. (<a href="!link">Read more about skip links</a>.)', array('!link' => 'https://drupal.org/node/467976')),
+  );
+  $form['support']['zen_skip_link_text'] = array(
+    '#type'          => 'textfield',
+    '#title'         => t('Text for the “skip link”'),
+    '#default_value' => theme_get_setting('zen_skip_link_text'),
+    '#description'   => t('For example: <em>Jump to navigation</em>, <em>Skip to content</em>'),
+  );
+  $form['support']['zen_html5_respond_meta'] = array(
+    '#type'          => 'checkboxes',
+    '#title'         => t('Add HTML5 and responsive scripts and meta tags to every page.'),
+    '#default_value' => theme_get_setting('zen_html5_respond_meta'),
+    '#options'       => array(
+                          'respond' => t('Add Respond.js JavaScript to add basic CSS3 media query support to IE 6-8.'),
+                          'html5' => t('Add HTML5 shim JavaScript to add support to IE 6-8.'),
+                          'meta' => t('Add meta tags to support responsive design on mobile devices.'),
+                        ),
+    '#description'   => t('IE 6-8 require a JavaScript polyfill solution to add basic support of HTML5 and CSS3 media queries. If you prefer to use another polyfill solution, such as <a href="!link">Modernizr</a>, you can disable these options. Respond.js only works if <a href="@url">Aggregate CSS</a> is enabled. Mobile devices require a few meta tags for responsive designs.', array('!link' => 'http://www.modernizr.com/', '@url' => url('admin/config/development/performance'))),
+  );
+
+  $form['themedev'] = array(
+    '#type'          => 'fieldset',
+    '#title'         => t('Theme development settings'),
+  );
+  $form['themedev']['zen_rebuild_registry'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Rebuild theme registry on every page.'),
+    '#default_value' => theme_get_setting('zen_rebuild_registry'),
+    '#description'   => t('During theme development, it can be very useful to continuously <a href="!link">rebuild the theme registry</a>. WARNING: this is a huge performance penalty and must be turned off on production websites.', array('!link' => 'https://drupal.org/node/173880#theme-registry')),
+  );
+  $form['themedev']['zen_wireframes'] = array(
+    '#type'          => 'checkbox',
+    '#title'         => t('Add wireframes around main layout elements'),
+    '#default_value' => theme_get_setting('zen_wireframes'),
+    '#description'   => t('<a href="!link">Wireframes</a> are useful when prototyping a website.', array('!link' => 'http://www.boxesandarrows.com/view/html_wireframes_and_prototypes_all_gain_and_no_pain')),
+  );
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/css/styles-fixed-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+dd{margin:0 30px 0 0}menu,ol,ul{padding:0 30px 0 0}legend{*margin-left:0;*margin-right:-7px}.sidebar-first #content{float:right;width:764px;margin-right:196px;margin-left:-980px}.sidebar-first .region-sidebar-first{float:right;width:176px;margin-right:0px;margin-left:-196px}.sidebar-second #content{float:right;width:764px;margin-right:0px;margin-left:-784px}.sidebar-second .region-sidebar-second{float:right;width:176px;margin-right:784px;margin-left:-980px}.two-sidebars #content{float:right;width:568px;margin-right:196px;margin-left:-784px}.two-sidebars .region-sidebar-first{float:right;width:176px;margin-right:0px;margin-left:-196px}.two-sidebars .region-sidebar-second{float:right;width:176px;margin-right:784px;margin-left:-980px}.header__logo{float:right}.header__secondary-menu{float:left}#navigation .links,#navigation .menu{text-align:right}#navigation .links li,#navigation .menu li{float:right;padding:0 0 0 10px}.messages,.messages--status,.messages--warning,.messages--error{padding:10px 50px 10px 10px;background-position:99% 8px}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:right}.inline li{display:inline-block;padding:0 0 0 1em}span.field-label{padding:0 0 0 1em}.more-link{text-align:left}.more-help-link{text-align:left}.more-help-link a{background-position:100% 50%;padding:1px 20px 1px 0}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*list-style-image:url('../images/menu-collapsed-rtl.png')}.indented{margin-left:0;margin-right:30px}#user-login-form{text-align:right}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:0;margin-right:-20px}form th{text-align:right;padding-left:1em;padding-right:0}html.js .collapsible .fieldset-legend{background-position:98% 75%;padding-left:0;padding-right:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*background-image:url('../images/menu-collapsed-rtl.png');background-position:98% 50%}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/css/styles-fixed.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:Verdana,Tahoma,"DejaVu Sans",sans-serif;font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5em}button,input,select,textarea{font-family:Verdana,Tahoma,"DejaVu Sans",sans-serif}body{margin:0;padding:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}p,pre{margin:1.5em 0}blockquote{margin:1.5em 30px}h1{font-size:2em;line-height:1.5em;margin-top:0.75em;margin-bottom:0.75em}h2{font-size:1.5em;line-height:2em;margin-top:1em;margin-bottom:1em}h3{font-size:1.17em;line-height:1.28205em;margin-top:1.28205em;margin-bottom:1.28205em}h4{font-size:1em;line-height:1.5em;margin-top:1.5em;margin-bottom:1.5em}h5{font-size:0.83em;line-height:1.80723em;margin-top:1.80723em;margin-bottom:1.80723em}h6{font-size:0.67em;line-height:2.23881em;margin-top:2.23881em;margin-bottom:2.23881em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0;border:1px solid #666;padding-bottom:-1px;margin:1.5em 0}mark{background:#ff0;color:#000}code,kbd,pre,samp,tt,var{font-family:"Courier New","DejaVu Sans Mono",monospace,sans-serif;_font-family:'courier new', monospace;font-size:1em;line-height:1.5em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1.5em 0}ol ol,ol ul,ul ol,ul ul{margin:0}dd{margin:0 0 0 30px}menu,ol,ul{padding:0 0 0 30px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic;max-width:100%;height:auto;width:auto}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{margin:0 2px;border-color:#c0c0c0;border-top-style:solid;border-top-width:0.0625em;padding-top:0.4625em;border-bottom-style:solid;border-bottom-width:0.0625em;padding-bottom:0.9125em;border-left-style:solid;border-left-width:0.0625em;padding-left:0.9125em;border-right-style:solid;border-right-width:0.0625em;padding-right:0.9125em}legend{border:0;padding:0;*margin-left:-7px}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;max-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}label{display:block;font-weight:bold}table{border-collapse:collapse;border-spacing:0;margin-top:1.5em;margin-bottom:1.5em}#page,.region-bottom{margin-left:auto;margin-right:auto;width:980px}#header,#content,#navigation,.region-sidebar-first,.region-sidebar-second,#footer{padding-left:10px;padding-right:10px;border-left:0 !important;border-right:0 !important;word-wrap:break-word;*behavior:url("/path/to/boxsizing.htc");_display:inline;_overflow:hidden;_overflow-y:visible}#header,#main,#footer{*position:relative;*zoom:1}#header:before,#header:after,#main:before,#main:after,#footer:before,#footer:after{content:"";display:table}#header:after,#main:after,#footer:after{clear:both}#main{padding-top:3em;position:relative}#navigation{position:absolute;top:0;height:3em;width:960px}.sidebar-first #content{float:left;width:764px;margin-left:196px;margin-right:-980px}.sidebar-first .region-sidebar-first{float:left;width:176px;margin-left:0px;margin-right:-196px}.sidebar-second #content{float:left;width:764px;margin-left:0px;margin-right:-784px}.sidebar-second .region-sidebar-second{float:left;width:176px;margin-left:784px;margin-right:-980px}.two-sidebars #content{float:left;width:568px;margin-left:196px;margin-right:-784px}.two-sidebars .region-sidebar-first{float:left;width:176px;margin-left:0px;margin-right:-196px}.two-sidebars .region-sidebar-second{float:left;width:176px;margin-left:784px;margin-right:-980px}.with-wireframes #header,.with-wireframes #main,.with-wireframes #content,.with-wireframes #navigation,.with-wireframes .region-sidebar-first,.with-wireframes .region-sidebar-second,.with-wireframes #footer,.with-wireframes .region-bottom{outline:1px solid #ccc}.lt-ie8 .with-wireframes #header,.lt-ie8 .with-wireframes #main,.lt-ie8 .with-wireframes #content,.lt-ie8 .with-wireframes #navigation,.lt-ie8 .with-wireframes .region-sidebar-first,.lt-ie8 .with-wireframes .region-sidebar-second,.lt-ie8 .with-wireframes #footer,.lt-ie8 .with-wireframes .region-bottom{border:1px solid #ccc}.element-invisible,.element-focusable,#navigation .block-menu .block__title,#navigation .block-menu-block .block__title{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px)}.element-focusable:active,.element-focusable:focus{position:static !important;clip:auto;height:auto;width:auto;overflow:auto}#skip-link{margin:0}#skip-link a,#skip-link a:visited{display:block;width:100%;padding:2px 0 3px 0;text-align:center;background-color:#666;color:#fff}.header__logo{float:left;margin:0;padding:0}.header__logo-image{vertical-align:bottom}.header__name-and-slogan{float:left}.header__site-name{margin:0;font-size:2em;line-height:1.5em}.header__site-link:link,.header__site-link:visited{color:#000;text-decoration:none}.header__site-link:hover,.header__site-link:focus{text-decoration:underline}.header__site-slogan{margin:0}.header__secondary-menu{float:right}.header__region{clear:both}#navigation .block{margin-bottom:0}#navigation .links,#navigation .menu{margin:0;padding:0;text-align:left}#navigation .links li,#navigation .menu li{float:left;padding:0 10px 0 0;list-style-type:none;list-style-image:none}.breadcrumb ol{margin:0;padding:0}.breadcrumb li{display:inline;list-style-type:none;margin:0;padding:0}.page__title,.node__title,.block__title,.comments__title,.comments__form-title,.comment__title{margin:0}.messages,.messages--status,.messages--warning,.messages--error{margin:1.5em 0;padding:10px 10px 10px 50px;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAD6UlEQVR42s2WX0xbVRzH3YwmC4k+GF/0ZS/S267/bmnX9nL7bwstZlnbjTDYyoC5GCbB0ZW5pdJCe6swbLFA6bpWIGuRMWVjKGP+21QW3SZBSAjGh4XEaTZTH82Cm/3ztS2xs7mw4KLRk3xyzj33/H6fe5Pz7zEA/yr/vUDukj9FH6drqTaqT8EoPs/UV+nX6TD1BlUh9AqLHlmgPKLcRHmoCOWmElK/FOKTYpS8UwLJkASiUyLI3pKhlClN0g46qj+qL/pbArlbrlO1q25JeiSgR2iYJ8ywXLSg/qP6LNl2ro8+Q4MMkKCd9K2t3q3KdQnkXXIF5aISkgEJzONm1F2qW52pDJN1MI2bUBIuAdVOJWSMTPNQgX6/vkjVpvpREpag6oMqWCYta1IzbsHh9ga0RJtzY8URMdRO9U/KSuWmNQUqh2pY3CtG+fvlqJyofMAFNrZAE+7e/RWR4X4cD9tgOGsA2U2CdtMDqwqyMyIzQ5KKqAKmcyaYxkzYd3YvjGNGFtXRPRj58DT+LOemRrFnrBLyITmUDmUyO/NYgu2d26ukHVJo3tXAMGpAs+cQmh0NeClan30uwN7TgnQ6nRd4r3thOGOAJqYB2UVC79AfZAnKHGUxQa8A2tNaNLW/jKvXv8Dyb8s4yryKA4O10A3roIvpUB+swTdz1/LJZ27PQBvT5lBH1RD4BChzlQ2wBNtc22aE/ULQgzRCl4P5BPcT93GMOYz9wb2QhCRgAq35d8u/L2PXe7tADVGgBlcQ+AXQtmlvsP/gzbJZvp8PMkJCFBYh8m0knyiVSsHe0YIGZz1+/uVOvt8z7QGvnwf+ST5EIRHIUyR4fh50rbp5lsDcYR4ReAXgBrng9q/Qfa0bfy035r7Ot2dvz4IX4IEIEAXwvDzscOw4zxJUd1YfEXlE4Aa4BQHMlwzSSBeI7iXvoTxWDqKPYCFsFaKmr+YVliB0JfS89DVpiuhlB9k/tSOZTuYFvq98yI7L0/MAsVWcGp0bfW61hbahwltxSeARsIKyWKesSKQSWIwvYkvvllwfx88pgOvhwthu/AzAxlVX8vz385tLbaVxwpcLZtEw0QDjsBGctzksiE4CimZFfHp++oWHbnbuUfdB0komMgHsRN1r0MWBsEmYODF5onY92/UTwcvBxuzXcN1ccHycVSn2FaPYWwzCQUDWKIt7z3utAJ5c74Hz+OLSomynY+cVfiM/xW3JiDyZpB3FuZrj4oCwE+Ad4qWMjPHjpTtL0mzMoxyZz9yM39Q7Y85Ok930icqm+k59TL2wm9l90dZv8y/8sPAigGf/iUN/Q4anM2zOsdLe+L+4VfwBVVjDs2rTYx0AAAAASUVORK5CYII=');*background-image:url('../images/message-24-ok.png');background-position:8px 8px;background-repeat:no-repeat;border:1px solid #be7}.messages--warning{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACuElEQVRIiWP4//8/Ay0xSYqntTpnT252zqeJBf0Njhsykrz/pyd6/e9vcNpGVQv6q2wlm0qc/r0+IPD/3UG+/61l9v9mdrjIUc2C7hqHUzc3S///eZwBjO9tF/vfWe1wjioWTKixVm8otPn38wQT3IKfxxn/t5Va/utpsNSg2ILWcttrNzdJgQ3+dpQRjEHs+9tE/zeXWt+gyILOamuTqlxrsOtPLub+7+emBsSq/88v5wL7oqHQ9H9nmbkF2RbUF1rev7lJEuziuU3i/90ddcB4UZsoJC62ifyvK7R4QJYFrcUGrmUZ5v9hYb9hosh/bzcDMN42VRgeF9W5hv8bi/XdSbagKtfs2c1NEvCIPbaQ/7+/pwkYn17Ki0hR24T/l2eZPCfJgsZ83dCiNOP/yCnn7iau/8G+5mD8aBsHSoqqyNL9X5erHUm0BcVpRm9ubhZHMoTh/4eDzP/DA23+RwTZ/P96hAlF7t5Wof8FyfpvibKgNk8noyDZ4D9quofg1Bjr/1kJlhjiIF+Upmn/r83RzCJoQXaC3qcbm8SwGMLwvybP/H8jMGlik7u7VeB/Zqz2J7wWVGdr1uTG62J1PQgfWST1/+hiCaxyIF8UJqv9r8hQrcVpQVqkzrcbG0WwGvB2H/P/lnx5MAaxsam5vYn3f2KY+jesFpSlqfZnxWjidP2OGWL/g/0swBjExu4Lhv958Ur/i5KU+lEsCA1lYI4JUv95bZ0gTo2Pt3P+z0myBmMQG5e6mxu4/kf4Kf8EmQm3oCRNebKrvSawIGPBqRG9sMOp5hjjfwdrlf/58bKT4RaUpWvtcLZV/39iscD/H0AFP46jYwYiMeP/44u4/9tbKQODSXUH3II9G7v18hI0n8YGKv+IDVT6joxj/BVx4mgcOCde/SnITPRUJAHEGlTCEkQV19TAAN8FC67hZdFXAAAAAElFTkSuQmCC');*background-image:url('../images/message-24-warning.png');border-color:#ed5}.messages--error{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACpElEQVR42rWWTUgbQRiGQ0Tx4MWDeFM8eBA9iKAoggiCoCiiIiL4L3oQV1CJB0UEf6iRYFpK7UniTw9VSqL2kvQsVDBpSZrtRo35czVNW3oprRf17exSl4yzu1ikAy9h59vvedhkMrMGAGoxknAk2w8MJ/WosXThiZkZt9jdLeglPjn5ATc3mhJNuNjbK0QbG3ExMICL/n6IfX0gcxB7ekDAELu6IHZ2IlJbi1hLS1BLogmPtbUhMTv7oMSamzUlqnByMxLT0/8STQkDj9TV4ZLj5OysrODl8jIu5Gs68dFR7JG6dWkJ0fFx+TpSX89IDMnwcHU1yKec12Yz3rlc4HkeLwjkXJpPip3U3+7vIx6P4ymph4eG5PlwTQ0lMdytlmBxMWKtrXLeT0zA5XTibvj9fjxfXETkb/3N/Dz2dneVuiTZtliU/rPSUsQ5ziuxZYG03IIlJdKKUPJjdRUAKMmzuTnskB/VYbdTtd9HR4g2NCi9Z2VliDY1BSnBaUEBzsrLqXyzWCiQ9HU5HA4afniIUFWV0hOqqMBpURErOM7NxWlhIZOvCwvA7S3Uxq+DA5AnZ3pO8vJYQSArC8c5Oeqx2Rj4udeLQH6+6v2B7GxW8DkjA0JmJpONwUHY7XZGIAgCzCYTeJUewmIFfqMRfEoKlQ2yJbza2oLWcLvdeDI2hk/3+iQWKzAYkJzNjg5srq9TwJ9OJ76YTNScx+ORJT66X1/grKyEbW2NgfPp6XKd/JMZySrHaQsSU1Oe+0/w3WpVgyu5HBlR6lc+H8gioevDwz6JrWwV5+3txyoSFk5DcOX1MnCyJ4Vwfb1zt1UY9SR8aioDpuppaVpwZbPTl+hHF04dOKzk8XBF8DgJC3/woU/W/EciOtELOWi8DDwp//215Q+p7kiKh2lQSAAAAABJRU5ErkJggg==');*background-image:url('../images/message-24-error.png');border-color:#ed541d}.messages__list{margin:0}.messages__item{list-style-image:none}.messages--error p.error{color:#333}.ok,.messages--status{background-color:#f8fff0;color:#234600}.warning,.messages--warning{background-color:#fffce5;color:#840}.error,.messages--error{background-color:#fef5f1;color:#8c2e0b}.tabs-primary,.tabs-secondary{overflow:hidden;*zoom:1;background-image:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(100%, #bbbbbb), color-stop(100%, transparent));background-image:-webkit-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:-moz-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:-o-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:linear-gradient(bottom, #bbbbbb 1px,transparent 1px);list-style:none;border-bottom:1px solid #bbb \0/ie;margin:1.5em 0;padding:0 2px;white-space:nowrap}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:left;margin:0 3px}a.tabs-primary__tab-link,a.tabs-secondary__tab-link{border:1px solid #e9e9e9;border-right:0;border-bottom:0;display:block;line-height:1.5em;text-decoration:none}.tabs-primary__tab,.tabs-primary__tab.is-active{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;text-shadow:1px 1px 0 #fff;border:1px solid #bbb;border-bottom-color:transparent;border-bottom:0 \0/ie}.is-active.tabs-primary__tab{border-bottom-color:#fff}a.tabs-primary__tab-link,a.tabs-primary__tab-link.is-active{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-transition:background-color 0.3s;-moz-transition:background-color 0.3s;-o-transition:background-color 0.3s;transition:background-color 0.3s;color:#333;background-color:#dedede;letter-spacing:1px;padding:0 1em;text-align:center}a.tabs-primary__tab-link:hover,a.tabs-primary__tab-link:focus{background-color:#e9e9e9;border-color:#f2f2f2}a.tabs-primary__tab-link:active,a.tabs-primary__tab-link.is-active{background-color:transparent;*zoom:1;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#00E9E9E9');background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, rgba(233,233,233,0)));background-image:-webkit-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:-moz-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:-o-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:linear-gradient(#e9e9e9,rgba(233,233,233,0));border-color:#fff}.tabs-secondary{font-size:.9em;margin-top:-1.5em}.tabs-secondary__tab,.tabs-secondary__tab.is-active{margin:0.75em 3px}a.tabs-secondary__tab-link,a.tabs-secondary__tab-link.is-active{-webkit-border-radius:0.75em;-moz-border-radius:0.75em;-ms-border-radius:0.75em;-o-border-radius:0.75em;border-radius:0.75em;-webkit-transition:background-color 0.3s;-moz-transition:background-color 0.3s;-o-transition:background-color 0.3s;transition:background-color 0.3s;text-shadow:1px 1px 0 #fff;background-color:#f2f2f2;color:#666;padding:0 .5em}a.tabs-secondary__tab-link:hover,a.tabs-secondary__tab-link:focus{background-color:#dedede;border-color:#999;color:#333}a.tabs-secondary__tab-link:active,a.tabs-secondary__tab-link.is-active{text-shadow:1px 1px 0 #333;background-color:#666;border-color:#000;color:#fff}.inline{display:inline;padding:0}.inline li{display:inline;list-style-type:none;padding:0 1em 0 0}span.field-label{padding:0 1em 0 0}.more-link{text-align:right}.more-help-link{text-align:right}.more-help-link a{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7UlEQVR42qWTPQqDQBCFcwSPkCNITpAj5AjeIm1uYpkyR7Cy2Mot7OwsBAsRwUKwmOwLGRle3EIy8PyBfZ/z3J2TiPylz8VWWZZpUB40BonRKyizaxkA88MYYiqCEgv4MTvnZJom0VqWRbz3FlJZgLYtqmEY1Lg9r+sKsIXcLSC3AC019H0vqLquLeC5AfiHYSGkcdAJimKIBQiJ4+CO92OAtm0FNc8zOjkMwE5Q63FAtbeg6zpAYvG8BWR7i5qmQYwY4MIHqYhE2DOPQWcGJBQF2XU72ZzyUeZ5GCNt5/hybJgYdAXsq5sOEE/jG6dC5IOqCXTmAAAAAElFTkSuQmCC');*background-image:url('../images/help.png');background-position:0 50%;background-repeat:no-repeat;padding:1px 0 1px 20px}.pager{clear:both;padding:0;text-align:center}.pager-item,.pager-first,.pager-previous,.pager-next,.pager-last,.pager-ellipsis,.pager-current{display:inline;padding:0 0.5em;list-style-type:none;background-image:none}.pager-current{font-weight:bold}.block{margin-bottom:1.5em}.menu__item.is-leaf{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAD1BMVEX///+/v7+Li4sAAADAwMBFvsw8AAAAAXRSTlMAQObYZgAAAB1JREFUCFtjYAADYwMGBmYVZSDhKAwkFJWhYiAAAB2+Aa/9ugeaAAAAAElFTkSuQmCC');*list-style-image:url('../images/menu-leaf.png');list-style-type:square}.menu__item.is-expanded{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');*list-style-image:url('../images/menu-expanded.png');list-style-type:circle}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');*list-style-image:url('../images/menu-collapsed.png');list-style-type:disc}.menu a.active{color:#000}.new,.update{color:#c00;background-color:transparent}.unpublished{height:0;overflow:visible;background-color:transparent;color:#d8d8d8;font-size:75px;line-height:1;font-family:Impact, "Arial Narrow", Helvetica, sans-serif;font-weight:bold;text-transform:uppercase;text-align:center;word-wrap:break-word}.lt-ie8 .node-unpublished>*,.lt-ie8 .comment-unpublished>*{position:relative}.comments{margin:1.5em 0}.comment-preview{background-color:#ffffea}.comment .permalink{text-transform:uppercase;font-size:75%}.indented{margin-left:30px}.form-item{margin:1.5em 0}.form-checkboxes .form-item,.form-radios .form-item{margin:0}tr.odd .form-item,tr.even .form-item{margin:0}.form-item input.error,.form-item textarea.error,.form-item select.error{border:1px solid #c00}.form-item .description{font-size:0.85em}.form-type-radio .description,.form-type-checkbox .description{margin-left:2.4em}.form-required{color:#c00}label.option{display:inline;font-weight:normal}a.button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.password-parent,.confirm-parent{margin:0}#user-login-form{text-align:left}.openid-links{margin-bottom:0}.openid-link,.user-link{margin-top:1.5em}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:-20px}#user-login ul{margin:1.5em 0}form th{text-align:left;padding-right:1em;border-bottom:3px solid #ccc}form tbody{border-top:1px solid #ccc}form table ul{margin:0}tr.even,tr.odd{background-color:#eee;border-bottom:1px solid #ccc;padding:0.1em 0.6em}tr.even{background-color:#fff}.lt-ie8 tr.even th,.lt-ie8 tr.even td,.lt-ie8 tr.odd th,.lt-ie8 tr.odd td{border-bottom:1px solid #ccc}td.active{background-color:#ddd}td.checkbox,th.checkbox{text-align:center}td.menu-disabled{background:#ccc}#autocomplete .selected{background:#0072b9;color:#fff}html.js .collapsible .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');*background-image:url('../images/menu-expanded.png');background-position:5px 65%;background-repeat:no-repeat;padding-left:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');*background-image:url('../images/menu-collapsed.png');background-position:5px 50%}.fieldset-legend .summary{color:#999;font-size:0.9em;margin-left:0.5em}tr.drag{background-color:#fffff0}tr.drag-previous{background-color:#ffd}.tabledrag-toggle-weight{font-size:0.9em}tr.selected td{background:#ffc}.progress{font-weight:bold}.progress .bar{background:#ccc;border-color:#666;margin:0 0.2em;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}.progress .filled{background-color:#0072b9;background-image:url('../images/progress.gif')}@media print{a:link,a:visited{text-decoration:underline !important}a:link.header__site-link,a:visited.header__site-link{text-decoration:none !important}#content a[href]:after{content:" (" attr(href) ")";font-weight:normal;font-size:16px}#content a[href^="javascript:"]:after,#content a[href^="#"]:after{content:""}#content abbr[title]:after{content:" (" attr(title) ")"}#content{float:none !important;width:100% !important;margin:0 !important;padding:0 !important}body,#page,#main,#content{color:#000;background-color:transparent !important;background-image:none !important}#skip-link,#toolbar,#navigation,.region-sidebar-first,.region-sidebar-second,#footer,.breadcrumb,.tabs,.action-links,.links,.book-navigation,.forum-topic-navigation,.pager,.feed-icons{visibility:hidden;display:none}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/css/styles-rtl.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+dd{margin:0 30px 0 0}menu,ol,ul{padding:0 30px 0 0}legend{*margin-left:0;*margin-right:-7px}@media all and (min-width: 480px) and (max-width: 959px){.sidebar-first #content{float:right;width:66.66667%;margin-right:33.33333%;margin-left:-100%}.sidebar-first .region-sidebar-first{float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%}.sidebar-second #content{float:right;width:66.66667%;margin-right:0%;margin-left:-66.66667%}.sidebar-second .region-sidebar-second{float:right;width:33.33333%;margin-right:66.66667%;margin-left:-100%}.two-sidebars #content{float:right;width:66.66667%;margin-right:33.33333%;margin-left:-100%}.two-sidebars .region-sidebar-first{float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%}.two-sidebars .region-sidebar-second{float:right;width:100%;margin-right:0%;margin-left:-100%;padding-left:0;padding-right:0;clear:right}.two-sidebars .region-sidebar-second .block{padding-left:10px;padding-right:10px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;*behavior:url("/path/to/boxsizing.htc");_display:inline;_overflow:hidden;_overflow-y:visible}.two-sidebars .region-sidebar-second .block:nth-child(3n+1){float:right;width:33.33333%;margin-right:0%;margin-left:-33.33333%;clear:right}.two-sidebars .region-sidebar-second .block:nth-child(3n+2){float:right;width:33.33333%;margin-right:33.33333%;margin-left:-66.66667%}.two-sidebars .region-sidebar-second .block:nth-child(3n){float:right;width:33.33333%;margin-right:66.66667%;margin-left:-100%}}@media all and (min-width: 960px){.sidebar-first #content{float:right;width:80%;margin-right:20%;margin-left:-100%}.sidebar-first .region-sidebar-first{float:right;width:20%;margin-right:0%;margin-left:-20%}.sidebar-second #content{float:right;width:80%;margin-right:0%;margin-left:-80%}.sidebar-second .region-sidebar-second{float:right;width:20%;margin-right:80%;margin-left:-100%}.two-sidebars #content{float:right;width:60%;margin-right:20%;margin-left:-80%}.two-sidebars .region-sidebar-first{float:right;width:20%;margin-right:0%;margin-left:-20%}.two-sidebars .region-sidebar-second{float:right;width:20%;margin-right:80%;margin-left:-100%}}.header__logo{float:right}.header__secondary-menu{float:left}#navigation .links,#navigation .menu{text-align:right}#navigation .links li,#navigation .menu li{float:right;padding:0 0 0 10px}.messages,.messages--status,.messages--warning,.messages--error{padding:10px 50px 10px 10px;background-position:99% 8px}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:right}.inline li{display:inline-block;padding:0 0 0 1em}span.field-label{padding:0 0 0 1em}.more-link{text-align:left}.more-help-link{text-align:left}.more-help-link a{background-position:100% 50%;padding:1px 20px 1px 0}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*list-style-image:url('../images/menu-collapsed-rtl.png')}.indented{margin-left:0;margin-right:30px}#user-login-form{text-align:right}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:0;margin-right:-20px}form th{text-align:right;padding-left:1em;padding-right:0}html.js .collapsible .fieldset-legend{background-position:98% 75%;padding-left:0;padding-right:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABNJREFUCB1j4GASYFJgcmD+A4IADUIDfIUMT4wAAAAASUVORK5CYII=');*background-image:url('../images/menu-collapsed-rtl.png');background-position:98% 50%}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/css/styles.css	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+article,aside,details,figcaption,figure,footer,header,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:Verdana,Tahoma,"DejaVu Sans",sans-serif;font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;line-height:1.5em}button,input,select,textarea{font-family:Verdana,Tahoma,"DejaVu Sans",sans-serif}body{margin:0;padding:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}p,pre{margin:1.5em 0}blockquote{margin:1.5em 30px}h1{font-size:2em;line-height:1.5em;margin-top:0.75em;margin-bottom:0.75em}h2{font-size:1.5em;line-height:2em;margin-top:1em;margin-bottom:1em}h3{font-size:1.17em;line-height:1.28205em;margin-top:1.28205em;margin-bottom:1.28205em}h4{font-size:1em;line-height:1.5em;margin-top:1.5em;margin-bottom:1.5em}h5{font-size:0.83em;line-height:1.80723em;margin-top:1.80723em;margin-bottom:1.80723em}h6{font-size:0.67em;line-height:2.23881em;margin-top:2.23881em;margin-bottom:2.23881em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:bold}dfn{font-style:italic}hr{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;height:0;border:1px solid #666;padding-bottom:-1px;margin:1.5em 0}mark{background:#ff0;color:#000}code,kbd,pre,samp,tt,var{font-family:"Courier New","DejaVu Sans Mono",monospace,sans-serif;_font-family:'courier new', monospace;font-size:1em;line-height:1.5em}pre{white-space:pre;white-space:pre-wrap;word-wrap:break-word}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}dl,menu,ol,ul{margin:1.5em 0}ol ol,ol ul,ul ol,ul ul{margin:0}dd{margin:0 0 0 30px}menu,ol,ul{padding:0 0 0 30px}nav ul,nav ol{list-style:none;list-style-image:none}img{border:0;-ms-interpolation-mode:bicubic;max-width:100%;height:auto;width:auto}svg:not(:root){overflow:hidden}figure{margin:0}form{margin:0}fieldset{margin:0 2px;border-color:#c0c0c0;border-top-style:solid;border-top-width:0.0625em;padding-top:0.4625em;border-bottom-style:solid;border-bottom-width:0.0625em;padding-bottom:0.9125em;border-left-style:solid;border-left-width:0.0625em;padding-left:0.9125em;border-right-style:solid;border-right-width:0.0625em;padding-right:0.9125em}legend{border:0;padding:0;*margin-left:-7px}button,input,select,textarea{font-family:inherit;font-size:100%;margin:0;vertical-align:baseline;*vertical-align:middle;max-width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}button,input{line-height:normal}button,select{text-transform:none}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;*overflow:visible}button[disabled],html input[disabled]{cursor:default}input[type="checkbox"],input[type="radio"]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0;*height:13px;*width:13px}input[type="search"]{-webkit-appearance:textfield;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}textarea{overflow:auto;vertical-align:top}label{display:block;font-weight:bold}table{border-collapse:collapse;border-spacing:0;margin-top:1.5em;margin-bottom:1.5em}#page,.region-bottom{margin-left:auto;margin-right:auto;max-width:1200px}#header,#content,#navigation,.region-sidebar-first,.region-sidebar-second,#footer{padding-left:10px;padding-right:10px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;*behavior:url("/path/to/boxsizing.htc");_display:inline;_overflow:hidden;_overflow-y:visible}#header,#main,#footer{*position:relative;*zoom:1}#header:before,#header:after,#main:before,#main:after,#footer:before,#footer:after{content:"";display:table}#header:after,#main:after,#footer:after{clear:both}@media all and (min-width: 480px){#main{padding-top:3em;position:relative}#navigation{position:absolute;top:0;height:3em;width:100%}}@media all and (min-width: 480px) and (max-width: 959px){.sidebar-first #content{float:left;width:66.66667%;margin-left:33.33333%;margin-right:-100%}.sidebar-first .region-sidebar-first{float:left;width:33.33333%;margin-left:0%;margin-right:-33.33333%}.sidebar-second #content{float:left;width:66.66667%;margin-left:0%;margin-right:-66.66667%}.sidebar-second .region-sidebar-second{float:left;width:33.33333%;margin-left:66.66667%;margin-right:-100%}.two-sidebars #content{float:left;width:66.66667%;margin-left:33.33333%;margin-right:-100%}.two-sidebars .region-sidebar-first{float:left;width:33.33333%;margin-left:0%;margin-right:-33.33333%}.two-sidebars .region-sidebar-second{float:left;width:100%;margin-left:0%;margin-right:-100%;padding-left:0;padding-right:0;clear:left}.two-sidebars .region-sidebar-second .block{padding-left:10px;padding-right:10px;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box;word-wrap:break-word;*behavior:url("/path/to/boxsizing.htc");_display:inline;_overflow:hidden;_overflow-y:visible}.two-sidebars .region-sidebar-second .block:nth-child(3n+1){float:left;width:33.33333%;margin-left:0%;margin-right:-33.33333%;clear:left}.two-sidebars .region-sidebar-second .block:nth-child(3n+2){float:left;width:33.33333%;margin-left:33.33333%;margin-right:-66.66667%}.two-sidebars .region-sidebar-second .block:nth-child(3n){float:left;width:33.33333%;margin-left:66.66667%;margin-right:-100%}}@media all and (min-width: 960px){.sidebar-first #content{float:left;width:80%;margin-left:20%;margin-right:-100%}.sidebar-first .region-sidebar-first{float:left;width:20%;margin-left:0%;margin-right:-20%}.sidebar-second #content{float:left;width:80%;margin-left:0%;margin-right:-80%}.sidebar-second .region-sidebar-second{float:left;width:20%;margin-left:80%;margin-right:-100%}.two-sidebars #content{float:left;width:60%;margin-left:20%;margin-right:-80%}.two-sidebars .region-sidebar-first{float:left;width:20%;margin-left:0%;margin-right:-20%}.two-sidebars .region-sidebar-second{float:left;width:20%;margin-left:80%;margin-right:-100%}}.with-wireframes #header,.with-wireframes #main,.with-wireframes #content,.with-wireframes #navigation,.with-wireframes .region-sidebar-first,.with-wireframes .region-sidebar-second,.with-wireframes #footer,.with-wireframes .region-bottom{outline:1px solid #ccc}.lt-ie8 .with-wireframes #header,.lt-ie8 .with-wireframes #main,.lt-ie8 .with-wireframes #content,.lt-ie8 .with-wireframes #navigation,.lt-ie8 .with-wireframes .region-sidebar-first,.lt-ie8 .with-wireframes .region-sidebar-second,.lt-ie8 .with-wireframes #footer,.lt-ie8 .with-wireframes .region-bottom{border:1px solid #ccc}.element-invisible,.element-focusable,#navigation .block-menu .block__title,#navigation .block-menu-block .block__title{position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px)}.element-focusable:active,.element-focusable:focus{position:static !important;clip:auto;height:auto;width:auto;overflow:auto}#skip-link{margin:0}#skip-link a,#skip-link a:visited{display:block;width:100%;padding:2px 0 3px 0;text-align:center;background-color:#666;color:#fff}.header__logo{float:left;margin:0;padding:0}.header__logo-image{vertical-align:bottom}.header__name-and-slogan{float:left}.header__site-name{margin:0;font-size:2em;line-height:1.5em}.header__site-link:link,.header__site-link:visited{color:#000;text-decoration:none}.header__site-link:hover,.header__site-link:focus{text-decoration:underline}.header__site-slogan{margin:0}.header__secondary-menu{float:right}.header__region{clear:both}#navigation .block{margin-bottom:0}#navigation .links,#navigation .menu{margin:0;padding:0;text-align:left}#navigation .links li,#navigation .menu li{float:left;padding:0 10px 0 0;list-style-type:none;list-style-image:none}.breadcrumb ol{margin:0;padding:0}.breadcrumb li{display:inline;list-style-type:none;margin:0;padding:0}.page__title,.node__title,.block__title,.comments__title,.comments__form-title,.comment__title{margin:0}.messages,.messages--status,.messages--warning,.messages--error{margin:1.5em 0;padding:10px 10px 10px 50px;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAD6UlEQVR42s2WX0xbVRzH3YwmC4k+GF/0ZS/S267/bmnX9nL7bwstZlnbjTDYyoC5GCbB0ZW5pdJCe6swbLFA6bpWIGuRMWVjKGP+21QW3SZBSAjGh4XEaTZTH82Cm/3ztS2xs7mw4KLRk3xyzj33/H6fe5Pz7zEA/yr/vUDukj9FH6drqTaqT8EoPs/UV+nX6TD1BlUh9AqLHlmgPKLcRHmoCOWmElK/FOKTYpS8UwLJkASiUyLI3pKhlClN0g46qj+qL/pbArlbrlO1q25JeiSgR2iYJ8ywXLSg/qP6LNl2ro8+Q4MMkKCd9K2t3q3KdQnkXXIF5aISkgEJzONm1F2qW52pDJN1MI2bUBIuAdVOJWSMTPNQgX6/vkjVpvpREpag6oMqWCYta1IzbsHh9ga0RJtzY8URMdRO9U/KSuWmNQUqh2pY3CtG+fvlqJyofMAFNrZAE+7e/RWR4X4cD9tgOGsA2U2CdtMDqwqyMyIzQ5KKqAKmcyaYxkzYd3YvjGNGFtXRPRj58DT+LOemRrFnrBLyITmUDmUyO/NYgu2d26ukHVJo3tXAMGpAs+cQmh0NeClan30uwN7TgnQ6nRd4r3thOGOAJqYB2UVC79AfZAnKHGUxQa8A2tNaNLW/jKvXv8Dyb8s4yryKA4O10A3roIvpUB+swTdz1/LJZ27PQBvT5lBH1RD4BChzlQ2wBNtc22aE/ULQgzRCl4P5BPcT93GMOYz9wb2QhCRgAq35d8u/L2PXe7tADVGgBlcQ+AXQtmlvsP/gzbJZvp8PMkJCFBYh8m0knyiVSsHe0YIGZz1+/uVOvt8z7QGvnwf+ST5EIRHIUyR4fh50rbp5lsDcYR4ReAXgBrng9q/Qfa0bfy035r7Ot2dvz4IX4IEIEAXwvDzscOw4zxJUd1YfEXlE4Aa4BQHMlwzSSBeI7iXvoTxWDqKPYCFsFaKmr+YVliB0JfS89DVpiuhlB9k/tSOZTuYFvq98yI7L0/MAsVWcGp0bfW61hbahwltxSeARsIKyWKesSKQSWIwvYkvvllwfx88pgOvhwthu/AzAxlVX8vz385tLbaVxwpcLZtEw0QDjsBGctzksiE4CimZFfHp++oWHbnbuUfdB0komMgHsRN1r0MWBsEmYODF5onY92/UTwcvBxuzXcN1ccHycVSn2FaPYWwzCQUDWKIt7z3utAJ5c74Hz+OLSomynY+cVfiM/xW3JiDyZpB3FuZrj4oCwE+Ad4qWMjPHjpTtL0mzMoxyZz9yM39Q7Y85Ok930icqm+k59TL2wm9l90dZv8y/8sPAigGf/iUN/Q4anM2zOsdLe+L+4VfwBVVjDs2rTYx0AAAAASUVORK5CYII=');*background-image:url('../images/message-24-ok.png');background-position:8px 8px;background-repeat:no-repeat;border:1px solid #be7}.messages--warning{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACuElEQVRIiWP4//8/Ay0xSYqntTpnT252zqeJBf0Njhsykrz/pyd6/e9vcNpGVQv6q2wlm0qc/r0+IPD/3UG+/61l9v9mdrjIUc2C7hqHUzc3S///eZwBjO9tF/vfWe1wjioWTKixVm8otPn38wQT3IKfxxn/t5Va/utpsNSg2ILWcttrNzdJgQ3+dpQRjEHs+9tE/zeXWt+gyILOamuTqlxrsOtPLub+7+emBsSq/88v5wL7oqHQ9H9nmbkF2RbUF1rev7lJEuziuU3i/90ddcB4UZsoJC62ifyvK7R4QJYFrcUGrmUZ5v9hYb9hosh/bzcDMN42VRgeF9W5hv8bi/XdSbagKtfs2c1NEvCIPbaQ/7+/pwkYn17Ki0hR24T/l2eZPCfJgsZ83dCiNOP/yCnn7iau/8G+5mD8aBsHSoqqyNL9X5erHUm0BcVpRm9ubhZHMoTh/4eDzP/DA23+RwTZ/P96hAlF7t5Wof8FyfpvibKgNk8noyDZ4D9quofg1Bjr/1kJlhjiIF+Upmn/r83RzCJoQXaC3qcbm8SwGMLwvybP/H8jMGlik7u7VeB/Zqz2J7wWVGdr1uTG62J1PQgfWST1/+hiCaxyIF8UJqv9r8hQrcVpQVqkzrcbG0WwGvB2H/P/lnx5MAaxsam5vYn3f2KY+jesFpSlqfZnxWjidP2OGWL/g/0swBjExu4Lhv958Ur/i5KU+lEsCA1lYI4JUv95bZ0gTo2Pt3P+z0myBmMQG5e6mxu4/kf4Kf8EmQm3oCRNebKrvSawIGPBqRG9sMOp5hjjfwdrlf/58bKT4RaUpWvtcLZV/39iscD/H0AFP46jYwYiMeP/44u4/9tbKQODSXUH3II9G7v18hI0n8YGKv+IDVT6joxj/BVx4mgcOCde/SnITPRUJAHEGlTCEkQV19TAAN8FC67hZdFXAAAAAElFTkSuQmCC');*background-image:url('../images/message-24-warning.png');border-color:#ed5}.messages--error{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAACpElEQVR42rWWTUgbQRiGQ0Tx4MWDeFM8eBA9iKAoggiCoCiiIiL4L3oQV1CJB0UEf6iRYFpK7UniTw9VSqL2kvQsVDBpSZrtRo35czVNW3oprRf17exSl4yzu1ikAy9h59vvedhkMrMGAGoxknAk2w8MJ/WosXThiZkZt9jdLeglPjn5ATc3mhJNuNjbK0QbG3ExMICL/n6IfX0gcxB7ekDAELu6IHZ2IlJbi1hLS1BLogmPtbUhMTv7oMSamzUlqnByMxLT0/8STQkDj9TV4ZLj5OysrODl8jIu5Gs68dFR7JG6dWkJ0fFx+TpSX89IDMnwcHU1yKec12Yz3rlc4HkeLwjkXJpPip3U3+7vIx6P4ymph4eG5PlwTQ0lMdytlmBxMWKtrXLeT0zA5XTibvj9fjxfXETkb/3N/Dz2dneVuiTZtliU/rPSUsQ5ziuxZYG03IIlJdKKUPJjdRUAKMmzuTnskB/VYbdTtd9HR4g2NCi9Z2VliDY1BSnBaUEBzsrLqXyzWCiQ9HU5HA4afniIUFWV0hOqqMBpURErOM7NxWlhIZOvCwvA7S3Uxq+DA5AnZ3pO8vJYQSArC8c5Oeqx2Rj4udeLQH6+6v2B7GxW8DkjA0JmJpONwUHY7XZGIAgCzCYTeJUewmIFfqMRfEoKlQ2yJbza2oLWcLvdeDI2hk/3+iQWKzAYkJzNjg5srq9TwJ9OJ76YTNScx+ORJT66X1/grKyEbW2NgfPp6XKd/JMZySrHaQsSU1Oe+0/w3WpVgyu5HBlR6lc+H8gioevDwz6JrWwV5+3txyoSFk5DcOX1MnCyJ4Vwfb1zt1UY9SR8aioDpuppaVpwZbPTl+hHF04dOKzk8XBF8DgJC3/woU/W/EciOtELOWi8DDwp//215Q+p7kiKh2lQSAAAAABJRU5ErkJggg==');*background-image:url('../images/message-24-error.png');border-color:#ed541d}.messages__list{margin:0}.messages__item{list-style-image:none}.messages--error p.error{color:#333}.ok,.messages--status{background-color:#f8fff0;color:#234600}.warning,.messages--warning{background-color:#fffce5;color:#840}.error,.messages--error{background-color:#fef5f1;color:#8c2e0b}.tabs-primary,.tabs-secondary{overflow:hidden;*zoom:1;background-image:-webkit-gradient(linear, 50% 100%, 50% 0%, color-stop(100%, #bbbbbb), color-stop(100%, transparent));background-image:-webkit-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:-moz-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:-o-linear-gradient(bottom, #bbbbbb 1px,transparent 1px);background-image:linear-gradient(bottom, #bbbbbb 1px,transparent 1px);list-style:none;border-bottom:1px solid #bbb \0/ie;margin:1.5em 0;padding:0 2px;white-space:nowrap}.tabs-primary__tab,.tabs-secondary__tab,.tabs-secondary__tab.is-active{float:left;margin:0 3px}a.tabs-primary__tab-link,a.tabs-secondary__tab-link{border:1px solid #e9e9e9;border-right:0;border-bottom:0;display:block;line-height:1.5em;text-decoration:none}.tabs-primary__tab,.tabs-primary__tab.is-active{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;text-shadow:1px 1px 0 #fff;border:1px solid #bbb;border-bottom-color:transparent;border-bottom:0 \0/ie}.is-active.tabs-primary__tab{border-bottom-color:#fff}a.tabs-primary__tab-link,a.tabs-primary__tab-link.is-active{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;border-top-left-radius:4px;-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;border-top-right-radius:4px;-webkit-transition:background-color 0.3s;-moz-transition:background-color 0.3s;-o-transition:background-color 0.3s;transition:background-color 0.3s;color:#333;background-color:#dedede;letter-spacing:1px;padding:0 1em;text-align:center}a.tabs-primary__tab-link:hover,a.tabs-primary__tab-link:focus{background-color:#e9e9e9;border-color:#f2f2f2}a.tabs-primary__tab-link:active,a.tabs-primary__tab-link.is-active{background-color:transparent;*zoom:1;filter:progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FFE9E9E9', endColorstr='#00E9E9E9');background-image:-webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e9e9e9), color-stop(100%, rgba(233,233,233,0)));background-image:-webkit-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:-moz-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:-o-linear-gradient(#e9e9e9,rgba(233,233,233,0));background-image:linear-gradient(#e9e9e9,rgba(233,233,233,0));border-color:#fff}.tabs-secondary{font-size:.9em;margin-top:-1.5em}.tabs-secondary__tab,.tabs-secondary__tab.is-active{margin:0.75em 3px}a.tabs-secondary__tab-link,a.tabs-secondary__tab-link.is-active{-webkit-border-radius:0.75em;-moz-border-radius:0.75em;-ms-border-radius:0.75em;-o-border-radius:0.75em;border-radius:0.75em;-webkit-transition:background-color 0.3s;-moz-transition:background-color 0.3s;-o-transition:background-color 0.3s;transition:background-color 0.3s;text-shadow:1px 1px 0 #fff;background-color:#f2f2f2;color:#666;padding:0 .5em}a.tabs-secondary__tab-link:hover,a.tabs-secondary__tab-link:focus{background-color:#dedede;border-color:#999;color:#333}a.tabs-secondary__tab-link:active,a.tabs-secondary__tab-link.is-active{text-shadow:1px 1px 0 #333;background-color:#666;border-color:#000;color:#fff}.inline{display:inline;padding:0}.inline li{display:inline;list-style-type:none;padding:0 1em 0 0}span.field-label{padding:0 1em 0 0}.more-link{text-align:right}.more-help-link{text-align:right}.more-help-link a{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA7UlEQVR42qWTPQqDQBCFcwSPkCNITpAj5AjeIm1uYpkyR7Cy2Mot7OwsBAsRwUKwmOwLGRle3EIy8PyBfZ/z3J2TiPylz8VWWZZpUB40BonRKyizaxkA88MYYiqCEgv4MTvnZJom0VqWRbz3FlJZgLYtqmEY1Lg9r+sKsIXcLSC3AC019H0vqLquLeC5AfiHYSGkcdAJimKIBQiJ4+CO92OAtm0FNc8zOjkMwE5Q63FAtbeg6zpAYvG8BWR7i5qmQYwY4MIHqYhE2DOPQWcGJBQF2XU72ZzyUeZ5GCNt5/hybJgYdAXsq5sOEE/jG6dC5IOqCXTmAAAAAElFTkSuQmCC');*background-image:url('../images/help.png');background-position:0 50%;background-repeat:no-repeat;padding:1px 0 1px 20px}.pager{clear:both;padding:0;text-align:center}.pager-item,.pager-first,.pager-previous,.pager-next,.pager-last,.pager-ellipsis,.pager-current{display:inline;padding:0 0.5em;list-style-type:none;background-image:none}.pager-current{font-weight:bold}.block{margin-bottom:1.5em}.menu__item.is-leaf{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHBAMAAAA2fErgAAAAD1BMVEX///+/v7+Li4sAAADAwMBFvsw8AAAAAXRSTlMAQObYZgAAAB1JREFUCFtjYAADYwMGBmYVZSDhKAwkFJWhYiAAAB2+Aa/9ugeaAAAAAElFTkSuQmCC');*list-style-image:url('../images/menu-leaf.png');list-style-type:square}.menu__item.is-expanded{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');*list-style-image:url('../images/menu-expanded.png');list-style-type:circle}.menu__item.is-collapsed{list-style-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');*list-style-image:url('../images/menu-collapsed.png');list-style-type:disc}.menu a.active{color:#000}.new,.update{color:#c00;background-color:transparent}.unpublished{height:0;overflow:visible;background-color:transparent;color:#d8d8d8;font-size:75px;line-height:1;font-family:Impact, "Arial Narrow", Helvetica, sans-serif;font-weight:bold;text-transform:uppercase;text-align:center;word-wrap:break-word}.lt-ie8 .node-unpublished>*,.lt-ie8 .comment-unpublished>*{position:relative}.comments{margin:1.5em 0}.comment-preview{background-color:#ffffea}.comment .permalink{text-transform:uppercase;font-size:75%}.indented{margin-left:30px}.form-item{margin:1.5em 0}.form-checkboxes .form-item,.form-radios .form-item{margin:0}tr.odd .form-item,tr.even .form-item{margin:0}.form-item input.error,.form-item textarea.error,.form-item select.error{border:1px solid #c00}.form-item .description{font-size:0.85em}.form-type-radio .description,.form-type-checkbox .description{margin-left:2.4em}.form-required{color:#c00}label.option{display:inline;font-weight:normal}a.button{-webkit-appearance:button;-moz-appearance:button;appearance:button}.password-parent,.confirm-parent{margin:0}#user-login-form{text-align:left}.openid-links{margin-bottom:0}.openid-link,.user-link{margin-top:1.5em}html.js #user-login-form li.openid-link,#user-login-form li.openid-link{margin-left:-20px}#user-login ul{margin:1.5em 0}form th{text-align:left;padding-right:1em;border-bottom:3px solid #ccc}form tbody{border-top:1px solid #ccc}form table ul{margin:0}tr.even,tr.odd{background-color:#eee;border-bottom:1px solid #ccc;padding:0.1em 0.6em}tr.even{background-color:#fff}.lt-ie8 tr.even th,.lt-ie8 tr.even td,.lt-ie8 tr.odd th,.lt-ie8 tr.odd td{border-bottom:1px solid #ccc}td.active{background-color:#ddd}td.checkbox,th.checkbox{text-align:center}td.menu-disabled{background:#ccc}#autocomplete .selected{background:#0072b9;color:#fff}html.js .collapsible .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABJJREFUeJxj+MdQw2DBIMAABgAUsAHD3c3BpwAAAABJRU5ErkJggg==');*background-image:url('../images/menu-expanded.png');background-position:5px 65%;background-repeat:no-repeat;padding-left:15px}html.js .collapsed .fieldset-legend{background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHAQMAAAD+nMWQAAAABlBMVEX///8AAABVwtN+AAAAAXRSTlMAQObYZgAAABFJREFUCB1jVmCGQClmEWYOAAZ8AMy3HPLXAAAAAElFTkSuQmCC');*background-image:url('../images/menu-collapsed.png');background-position:5px 50%}.fieldset-legend .summary{color:#999;font-size:0.9em;margin-left:0.5em}tr.drag{background-color:#fffff0}tr.drag-previous{background-color:#ffd}.tabledrag-toggle-weight{font-size:0.9em}tr.selected td{background:#ffc}.progress{font-weight:bold}.progress .bar{background:#ccc;border-color:#666;margin:0 0.2em;-webkit-border-radius:3px;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;border-radius:3px}.progress .filled{background-color:#0072b9;background-image:url('../images/progress.gif')}@media print{a:link,a:visited{text-decoration:underline !important}a:link.header__site-link,a:visited.header__site-link{text-decoration:none !important}#content a[href]:after{content:" (" attr(href) ")";font-weight:normal;font-size:16px}#content a[href^="javascript:"]:after,#content a[href^="#"]:after{content:""}#content abbr[title]:after{content:" (" attr(title) ")"}#content{float:none !important;width:100% !important;margin:0 !important;padding:0 !important}body,#page,#main,#content{color:#000;background-color:transparent !important;background-image:none !important}#skip-link,#toolbar,#navigation,.region-sidebar-first,.region-sidebar-second,#footer,.breadcrumb,.tabs,.action-links,.links,.book-navigation,.forum-topic-navigation,.pager,.feed-icons{visibility:hidden;display:none}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/README.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+ABOUT THIS DIRECTORY
+--------------------
+
+The contents of this folder are only used by the generate.sh command-line script
+to help the maintainers keep the CSS and Sass files in sync. These files are not
+used by Drupal, so feel free to ignore.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/_init_extras.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+// Turn on IE legacy support for our CSS.
+$legacy-support-for-ie6     : true;
+$legacy-support-for-ie7     : true;
+
+$box-sizing-polyfill-path   : "/path/to/boxsizing.htc";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/components/css-misc-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "components/misc-rtl";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/components/css-misc.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "components/misc";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/css-normalize-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "normalize-rtl";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/css-normalize.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "normalize";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/css-print.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "print";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/layouts/css-fixed-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "layouts/fixed-rtl";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/layouts/css-fixed.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "layouts/fixed";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/layouts/css-responsive-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "layouts/responsive-rtl";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/layouts/css-responsive.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,2 @@
+@import "init";
+@import "layouts/responsive";
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/styles-fixed-rtl.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,20 @@
+/**
+ * @file
+ * RTL companion for the styles.scss file.
+ */
+
+@import "init"; /* Import Sass mixins, variables, Compass modules, etc. */
+
+
+/* Base HTML element rules */
+@import "normalize-rtl";
+
+/* Layout rules */
+@import "layouts/fixed-rtl";
+
+/* Component (SMACSS module) rules */
+@import "components/misc-rtl";
+
+/* Theme rules */
+/* @import "theme-A-rtl"; */
+/* @import "theme-B-rtl"; */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/sass/styles-fixed.scss	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,25 @@
+/**
+ * @file
+ * Styles are organized using the SMACSS technique. @see http://smacss.com/book/
+ *
+ * When you turn on CSS aggregation at admin/config/development/performance, all
+ * of these @include files will be combined into a single file.
+ */
+
+@import "init"; /* Import Sass mixins, variables, Compass modules, etc. */
+
+
+/* Base HTML element rules */
+@import "normalize";
+
+/* Layout rules */
+@import "layouts/fixed";
+
+/* Component (SMACSS module) rules */
+@import "components/misc";
+// Optionally, add your own components here.
+@import "print";
+
+/* Theme rules */
+/* @import "theme-A"; */
+/* @import "theme-B"; */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+}
+
+/* Pack groups of checkboxes and radio buttons closer together. */
+.form-checkboxes .form-item,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+  /* Pack groups of checkboxes and radio buttons closer together. */
+  /* Form items in a table. */
+  /* Highlight the form elements that caused a form submission error. */
+  /* The descriptive help text (separate from the label). */
+}
+.form-checkboxes .form-item,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Form items in a table. */
+tr.odd .form-item,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+tr.odd .form-item,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Highlight the form elements that caused a form submission error. */
+.form-item input.error,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.form-item input.error,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* The descriptive help text (separate from the label). */
+.form-item .description {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--form-item-4--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.form-item .description {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+}
+#navigation .block {
+  margin-bottom: 0;
+}
+
+/* Main menu and secondary menu links and menu block links. */
+#navigation .links,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--navigation-links--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+  /* Main menu and secondary menu links and menu block links. */
+}
+#navigation .block {
+  margin-bottom: 0;
+}
+#navigation .links,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,16 @@
+
+.pager-item,     /* A list item containing a page number in the list of pages. */
+.pager-first,    /* The first page's list item. */
+.pager-previous, /* The previous page's list item. */
+.pager-next,     /* The next page's list item. */
+.pager-last,     /* The last page's list item. */
+.pager-ellipsis, /* A concatenation of several list items using an ellipsis. */
+.pager-current { /* The current page's list item. */
+  display: inline;
+  padding: 0 0.5em;
+  list-style-type: none;
+  background-image: none;
+}
+.pager-current {
+  font-weight: bold;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--pager--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,25 @@
+.pager-item,
+.pager-first,
+.pager-previous,
+.pager-next,
+.pager-last,
+.pager-ellipsis,
+.pager-current {
+  display: inline;
+  padding: 0 0.5em;
+  list-style-type: none;
+  background-image: none;
+}
+.pager-item,
+.pager-first,
+.pager-previous,
+.pager-next,
+.pager-last,
+.pager-ellipsis {
+  /* A concatenation of several list items using an ellipsis. */
+}
+
+/* The current page's list item. */
+.pager-current {
+  font-weight: bold;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+.page__title,          /* The title of the page. */
+.node__title,          /* Title of a piece of content when it is given in a list of content. */
+.block__title,         /* Block title. */
+.comments__title,      /* Comment section heading. */
+.comments__form-title, /* Comment form heading. */
+.comment__title {      /* Comment title. */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/components/misc--titles--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+.page__title,
+.node__title,
+.block__title,
+.comments__title,
+.comments__form-title,
+.comment__title {
+  /* Comment title. */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 4 columns, starting in 2nd column from left. */
+.sidebar-first #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+.sidebar-first {
+  /* Span 4 columns, starting in 2nd column from left. */
+  /* Span 1 column, starting in 1st column from left. */
+}
+.sidebar-first #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 1st column from left. */
+.sidebar-first .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.sidebar-first .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 4 columns, starting in 1st column from left. */
+.sidebar-second #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+.sidebar-second {
+  /* Span 4 columns, starting in 1st column from left. */
+  /* Span 1 column, starting in 5th column from left. */
+}
+.sidebar-second #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 5th column from left. */
+.sidebar-second .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.sidebar-second .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 3 columns, starting in 2nd column from left. */
+.two-sidebars #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+.two-sidebars {
+  /* Span 3 columns, starting in 2nd column from left. */
+  /* Span 1 column, starting in 1st column from left. */
+  /* Span 1 column, starting in 5th column from left. */
+}
+.two-sidebars #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 1st column from left. */
+.two-sidebars .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.two-sidebars .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 5th column from left. */
+.two-sidebars .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed--two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.two-sidebars .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 4 columns, starting in 2nd column from right. */
+.sidebar-first #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+.sidebar-first {
+  /* Span 4 columns, starting in 2nd column from right. */
+  /* Span 1 column, starting in 1st column from right. */
+}
+.sidebar-first #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 1st column from right. */
+.sidebar-first .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.sidebar-first .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 4 columns, starting in 1st column from right. */
+.sidebar-second #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+.sidebar-second {
+  /* Span 4 columns, starting in 1st column from right. */
+  /* Span 1 column, starting in 5th column from right. */
+}
+.sidebar-second #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 5th column from right. */
+.sidebar-second .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.sidebar-second .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 3 columns, starting in 2nd column from right. */
+.two-sidebars #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+.two-sidebars {
+  /* Span 3 columns, starting in 2nd column from right. */
+  /* Span 1 column, starting in 1st column from right. */
+  /* Span 1 column, starting in 5th column from right. */
+}
+.two-sidebars #content {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 1st column from right. */
+.two-sidebars .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.two-sidebars .region-sidebar-first {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+/* Span 1 column, starting in 5th column from right. */
+.two-sidebars .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/fixed-rtl--two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+.two-sidebars .region-sidebar-second {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 4 columns, starting in 2nd column from left. */
+  .sidebar-first #content {
+    float: left;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-first {
+    /* Span 4 columns, starting in 2nd column from left. */
+    /* Span 1 column, starting in 1st column from left. */
+  }
+  .sidebar-first #content {
+    float: left;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from left. */
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 4 columns, starting in 1st column from left. */
+  .sidebar-second #content {
+    float: left;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-second {
+    /* Span 4 columns, starting in 1st column from left. */
+    /* Span 1 column, starting in 5th column from left. */
+  }
+  .sidebar-second #content {
+    float: left;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 5th column from left. */
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 3 columns, starting in 2nd column from left. */
+  .two-sidebars #content {
+    float: left;
+    width: 60%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+  .two-sidebars {
+    /* Span 3 columns, starting in 2nd column from left. */
+    /* Span 1 column, starting in 1st column from left. */
+    /* Span 1 column, starting in 5th column from left. */
+  }
+  .two-sidebars #content {
+    float: left;
+    width: 60%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from left. */
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 5th column from left. */
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--large-two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+  /**
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-screen--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+  /**
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 2 columns, starting in 2nd column from left. */
+  .sidebar-first #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-first {
+    /* Span 2 columns, starting in 2nd column from left. */
+    /* Span 1 column, starting in 1st column from left. */
+  }
+  .sidebar-first #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from left. */
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-first .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 2 columns, starting in 1st column from left. */
+  .sidebar-second #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-second {
+    /* Span 2 columns, starting in 1st column from left. */
+    /* Span 1 column, starting in 3rd column from left. */
+  }
+  .sidebar-second #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 3rd column from left. */
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-second .region-sidebar-second {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 2 columns, starting in 2nd column from left. */
+  .two-sidebars #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+  .two-sidebars {
+    /* Span 2 columns, starting in 2nd column from left. */
+    /* Span 1 column, starting in 1st column from left. */
+    /* Start a new row and span all 3 columns. */
+  }
+  .two-sidebars #content {
+    float: left;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from left. */
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-first {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Start a new row and span all 3 columns. */
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 100%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second {
+    float: left;
+    width: 100%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+    clear: left;
+  }
+
+  /* Apply the shared properties of grid items in a single, efficient ruleset. */
+  .two-sidebars .region-sidebar-second .block {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-4--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+    clear: left;
+    /* Apply the shared properties of grid items in a single, efficient ruleset. */
+    /* Span 1 column, starting in the 1st column from left. */
+    /* Span 1 column, starting in the 2nd column from left. */
+    /* Span 1 column, starting in the 3rd column from left. */
+  }
+  .two-sidebars .region-sidebar-second .block {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 1st column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-5--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 2nd column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-6--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 3rd column from left. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive--small-two-sidebars-7--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: left;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 4 columns, starting in 2nd column from right. */
+  .sidebar-first #content {
+    float: right;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-first {
+    /* Span 4 columns, starting in 2nd column from right. */
+    /* Span 1 column, starting in 1st column from right. */
+  }
+  .sidebar-first #content {
+    float: right;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from right. */
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 4 columns, starting in 1st column from right. */
+  .sidebar-second #content {
+    float: right;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-second {
+    /* Span 4 columns, starting in 1st column from right. */
+    /* Span 1 column, starting in 5th column from right. */
+  }
+  .sidebar-second #content {
+    float: right;
+    width: 80%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 5th column from right. */
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 3 columns, starting in 2nd column from right. */
+  .two-sidebars #content {
+    float: right;
+    width: 60%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+  .two-sidebars {
+    /* Span 3 columns, starting in 2nd column from right. */
+    /* Span 1 column, starting in 1st column from right. */
+    /* Span 1 column, starting in 5th column from right. */
+  }
+  .two-sidebars #content {
+    float: right;
+    width: 60%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from right. */
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 5th column from right. */
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--large-two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 20%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-screen--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+/**
+ * Use 3 grid columns for smaller screens.
+ */
+@media all and (min-width: 480px) and (max-width: 959px) {
+  /**
+   * The layout when there is only one sidebar, the right one.
+   */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 2 columns, starting in 2nd column from right. */
+  .sidebar-first #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+  .sidebar-first {
+    /* Span 2 columns, starting in 2nd column from right. */
+    /* Span 1 column, starting in 1st column from right. */
+  }
+  .sidebar-first #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from right. */
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-first-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-first .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+
+  /* Span 2 columns, starting in 1st column from right. */
+  .sidebar-second #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,10 @@
+  /**
+   * The layout when there is only one sidebar, the left one.
+   */
+  .sidebar-second {
+    /* Span 2 columns, starting in 1st column from right. */
+    /* Span 1 column, starting in 3rd column from right. */
+  }
+  .sidebar-second #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 3rd column from right. */
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-sidebar-second-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .sidebar-second .region-sidebar-second {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 2 columns, starting in 2nd column from right. */
+  .two-sidebars #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,8 @@
+  .two-sidebars {
+    /* Span 2 columns, starting in 2nd column from right. */
+    /* Span 1 column, starting in 1st column from right. */
+    /* Start a new row and span all 3 columns. */
+  }
+  .two-sidebars #content {
+    float: right;
+    width: 66.66667%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in 1st column from right. */
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-2--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-first {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Start a new row and span all 3 columns. */
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 100%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-3--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second {
+    float: right;
+    width: 100%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+    clear: right;
+  }
+
+  /* Apply the shared properties of grid items in a single, efficient ruleset. */
+  .two-sidebars .region-sidebar-second .block {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-4--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,7 @@
+    clear: right;
+    /* Apply the shared properties of grid items in a single, efficient ruleset. */
+    /* Span 1 column, starting in the 1st column from right. */
+    /* Span 1 column, starting in the 2nd column from right. */
+    /* Span 1 column, starting in the 3rd column from right. */
+  }
+  .two-sidebars .region-sidebar-second .block {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 1st column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-5--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+1) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 2nd column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-6--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n+2) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+
+  /* Span 1 column, starting in the 3rd column from right. */
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/layouts/responsive-rtl--small-two-sidebars-7--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+  .two-sidebars .region-sidebar-second .block:nth-child(3n) {
+    float: right;
+    width: 33.33333%;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--button--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+html input[type="button"], /* 1 */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--button--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+html input[type="button"],
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+fieldset {
+  border: 1px solid #c0c0c0;
+  margin: 0 2px;
+  padding: 0.5em 0.625em 1em;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--fieldset--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+fieldset {
+  margin: 0 2px;
+  /* Apply borders and padding that keep the vertical rhythm. */
+  border-color: #c0c0c0;
+  border-top-style: solid;
+  border-top-width: 0.0625em;
+  padding-top: 0.4625em;
+  border-bottom-style: solid;
+  border-bottom-width: 0.0625em;
+  padding-bottom: 0.9125em;
+  border-left-style: solid;
+  border-left-width: 0.0625em;
+  padding-left: 0.9125em;
+  border-right-style: solid;
+  border-right-width: 0.0625em;
+  padding-right: 0.9125em;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-face--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+ *
+ * Since we're using Sass, you'll need to declare your font faces here, then you
+ * can add them to the font variables in the _base.scss partial.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,23 @@
+textarea {
+  /**
+   * The following font family declarations are available on most computers.
+   *
+   * A user's web browser will look at the comma-separated list and will
+   * attempt to use each font in turn until it finds one that is available
+   * on the user's computer. The final "generic" font (sans-serif, serif or
+   * monospace) hints at what type of font to use if the web browser doesn't
+   * find any of the fonts in the list.
+   *
+   * font-family: "Times New Roman", Times, Georgia, "DejaVu Serif", serif;
+   * font-family: Times, "Times New Roman", Georgia, "DejaVu Serif", serif;
+   * font-family: Georgia, "Times New Roman", "DejaVu Serif", serif;
+   *
+   * font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
+   * font-family: Tahoma, Verdana, "DejaVu Sans", sans-serif;
+   * font-family: Helvetica, Arial, "Nimbus Sans L", sans-serif;
+   * font-family: Arial, Helvetica, "Nimbus Sans L", sans-serif;
+   *
+   * font-family: "Courier New", "DejaVu Sans Mono", monospace;
+   */
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--font-family--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+textarea {
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--headings--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,38 @@
+h1 {
+  /* Set the font-size and line-height while keeping a proper vertical rhythm. */
+  font-size: 2em;
+  line-height: 1.5em; /* 3rem / 2em = 1.5em */
+  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
+  margin-top: 0.75em; /* 1.5rem / 2em = .75em */
+  margin-bottom: 0.75em;
+}
+h2 {
+  font-size: 1.5em;
+  line-height: 2em; /* 3rem / 1.5em = 2em */
+  margin-top: 1em; /* 1.5rem / 1.5em = 1em */
+  margin-bottom: 1em;
+}
+h3 {
+  font-size: 1.17em;
+  line-height: 1.28205em; /* 1.5rem / 1.17em = 1.28205em */
+  margin-top: 1.28205em;
+  margin-bottom: 1.28205em;
+}
+h4 {
+  font-size: 1em;
+  line-height: 1.5em; /* 1.5rem / 1em = 1.5em */
+  margin-top: 1.5em;
+  margin-bottom: 1.5em;
+}
+h5 {
+  font-size: 0.83em;
+  line-height: 1.80723em; /* 1.5rem / 0.83em = 1.80723em */
+  margin-top: 1.80723em;
+  margin-bottom: 1.80723em;
+}
+h6 {
+  font-size: 0.67em;
+  line-height: 2.23881em; /* 1.5rem / 0.67em = 2.23881em */
+  margin-top: 2.23881em;
+  margin-bottom: 2.23881em;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--headings--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,38 @@
+h1 {
+  /* Set the font-size and line-height while keeping a proper vertical rhythm. */
+  font-size: 2em;
+  line-height: 1.5em;
+  /* Set 1 unit of vertical rhythm on the top and bottom margins. */
+  margin-top: 0.75em;
+  margin-bottom: 0.75em;
+}
+h2 {
+  font-size: 1.5em;
+  line-height: 2em;
+  margin-top: 1em;
+  margin-bottom: 1em;
+}
+h3 {
+  font-size: 1.17em;
+  line-height: 1.28205em;
+  margin-top: 1.28205em;
+  margin-bottom: 1.28205em;
+}
+h4 {
+  font-size: 1em;
+  line-height: 1.5em;
+  margin-top: 1.5em;
+  margin-bottom: 1.5em;
+}
+h5 {
+  font-size: 0.83em;
+  line-height: 1.80723em;
+  margin-top: 1.80723em;
+  margin-bottom: 1.80723em;
+}
+h6 {
+  font-size: 0.67em;
+  line-height: 2.23881em;
+  margin-top: 2.23881em;
+  margin-bottom: 2.23881em;
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--html--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,17 @@
+html {
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */
+
+  /* Delete all but one of the following font-size declarations: */
+
+  /* Use a 12px base font size. 16px x 75% = 12px */
+  font-size: 75%; /* 3 */
+  /* Use a 14px base font size. 16px x .875 = 14px */
+  font-size: 87.5%; /* 3 */
+  /* Use a 16px base font size. */
+  font-size: 100%; /* 3 */
+
+  -ms-text-size-adjust: 100%;     /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+
+  /* Establish a vertical rhythm. */
+  line-height: 1.5em;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--html--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+html {
+  font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif; /* 1 */
+  font-size: 100%; /* 3 */
+  -ms-text-size-adjust: 100%; /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+  line-height: 1.5em;
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--img--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+  -ms-interpolation-mode: bicubic;
+
+  /* Suppress the space beneath the baseline */
+  /* vertical-align: bottom; */
+
+  /* Responsive images */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--img--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+  -ms-interpolation-mode: bicubic;
+  /* Suppress the space beneath the baseline */
+  /* vertical-align: bottom; */
+  /* Responsive images */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--links--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,15 @@
+/**
+ * Links
+ *
+ * The order of link states are based on Eric Meyer's article:
+ * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
+ */
+a:link {
+}
+a:visited {
+}
+a:hover,
+a:focus {
+}
+a:active {
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/normalize--links--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+/**
+ * Links
+ *
+ * The order of link states are based on Eric Meyer's article:
+ * http://meyerweb.com/eric/thoughts/2007/06/11/who-ordered-the-link-states
+ */
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--abbr--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+  /* Add visible title after abbreviations. */
+  #content abbr[title]:after {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--abbr--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+  #content abbr[title]:after {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--site-name--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,5 @@
+    text-decoration: underline !important;
+  }
+
+  /* Don't underline header. */
+  a:link.header__site-link,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--site-name--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,4 @@
+    text-decoration: underline !important;
+    /* Don't underline header. */
+  }
+  a:link.header__site-link,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--useful-url--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+  /* Only display useful links. */
+  #content a[href^="javascript:"]:after,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--useful-url--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,1 @@
+  #content a[href^="javascript:"]:after,
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--visible-url--replace.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,3 @@
+
+  /* Add visible URL after links. */
+  #content a[href]:after {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/extras/text-replacements/print--visible-url--search.txt	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,6 @@
+  #content {
+    /* Add visible URL after links. */
+    /* Only display useful links. */
+    /* Add visible title after abbreviations. */
+  }
+  #content a[href]:after {
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/generate.sh	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,146 @@
+#!/bin/bash
+
+# This script is used by the MAINTAINERS to generate the CSS files from the Sass
+# files and make copies of the STARTERKIT stylesheets for the base Zen theme.
+
+
+ORIG=`pwd`;
+STARTERKIT=../STARTERKIT;
+
+
+# Change directory to the STARTERKIT and run compass with a custom config.
+cd $STARTERKIT;
+cp config.rb config.rb.orig;
+echo "asset_cache_buster :none" >> config.rb;
+compass clean;
+
+# Create our custom init partial, while keeping the original.
+mv sass/_init.scss $ORIG/;
+cat $ORIG/_init.scss $ORIG/extras/sass/_init_extras.scss > sass/_init.scss;
+
+# Build the stylesheets for the Zen base theme.
+cp $ORIG/extras/sass/styles-fixed* sass/;
+compass compile --environment production --no-line-comments --output-style compressed;
+rm sass/styles-fixed*;
+
+# Copy the stylesheets from STARTERKIT to the Zen theme.
+rm $ORIG/css/*.css;
+rm $ORIG/images/*;
+cp css/styles* $ORIG/css/;
+cp images/* $ORIG/images/;
+
+# Build the CSS versions of the stylesheets.
+cp $ORIG/extras/sass/css-* sass/;
+cp $ORIG/extras/sass/layouts/css-* sass/layouts/;
+cp $ORIG/extras/sass/components/css-* sass/components/;
+rm css/*.css css/*/*.css;
+compass clean;
+compass compile --no-line-comments;
+rm sass/css-* sass/*/css-*;
+
+# Don't use the generated styles.css.
+git checkout css/styles.css css/styles-rtl.css;
+
+# Massage the generated css-* files and rename them.
+for FILENAME in css/css-*.css css/*/css-*.css; do
+  NEWFILE=`echo $FILENAME | sed -e 's/css\-//'`;
+
+  cat $FILENAME |
+  # Ensure each selector is on its own line.
+  sed -e 's/^\(\@media.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\(\@media.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\(\@media.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\(\/\*.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\(\/\*.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\(\/\*.*\), /\1FIX_THIS_COMMA /' |
+  sed -e 's/^\([^ ].*\), /\1,\
+/' |
+  sed -e 's/^\([^ ].*\), /\1,\
+/' |
+  sed -e 's/^\([^ ].*\), /\1,\
+/' |
+  sed -e 's/^\([^ ].*\), /\1,\
+/' |
+  sed -e 's/FIX_THIS_COMMA/,/' |
+  sed -e 's/FIX_THIS_COMMA/,/' |
+  sed -e 's/FIX_THIS_COMMA/,/' |
+  sed -e '/: /! s/^\(  [^ /].*\), /\1,\
+  /' |
+  # Fix IE wireframes rules.
+  sed -n '1h;1!H;$ {g;s/\.lt\-ie8\n/.lt-ie8 /g;p;}' |
+  # Move notation comments back to the previous line with the property.
+  sed -e 's/^ \{2,4\}\(\/\* [1-9LTR]* \*\/\)$/  MOVE_UP\1/' |
+  sed -n '1h;1!H;$ {g;s/\n  MOVE_UP/ /g;p;}' |
+  # Remove blank lines
+  sed -e '/^$/d' |
+  # Add a blank line between a block-level comment and another comment.
+  sed -n '1h;1!H;$ {g;s/\(\n *\*\/\n\)\( *\)\/\*/\1\
+\2\/\*/g;p;}' |
+  # Add a blank line between a ruleset and a comment.
+  sed -n '1h;1!H;$ {g;s/\(\n *\}\n\)\( *\)\/\*/\1\
+\2\/\*/g;p;}' |
+  # Add a blank line between the start of a media query and a comment.
+  #@media all and (min-width: 480px) and (max-width: 959px) {
+  sed -n '1h;1!H;$ {g;s/\(\n\@media .* .\n\)\(  \/\**\)/\1\
+\2/g;p;}' |
+  # Remove any blank lines at the end of the file.
+  sed -n '$!p;$ {s/^\(..*\)$/\1/p;}' |
+  # Remove the second @file comment block in RTL layout files.
+  sed -n '1h;1!H;$ {g;s/\n\/\*\*\n \* \@file\n[^\/]*\/\/[^\/]*\n \*\/\n//;p;}' |
+  # Convert 2 or more blank lines into 1 blank line and write to the new file.
+  cat -s > $NEWFILE;
+
+  rm $FILENAME;
+done
+
+# Update the comments in the layouts/*-rtl.css files.
+for FILENAME in css/layouts/*-rtl.css; do
+  cat $FILENAME |
+  sed -e 's/from left\. \*\/$/FIX_THIS/' |
+  sed -e 's/from right\. \*\/$/from left. *\//' |
+  sed -e 's/FIX_THIS$/from right. *\//' |
+  sed -e 's/ the left one\.$/FIX_THIS/' |
+  sed -e 's/ the right one\.$/ the left one./' |
+  sed -e 's/FIX_THIS$/ the right one./' |
+  cat > $FILENAME.new;
+  mv $FILENAME.new $FILENAME;
+done
+
+for FIND_FILE in $ORIG/extras/text-replacements/*--search.txt $ORIG/extras/text-replacements/*/*--search.txt; do
+  REPLACE_FILE=`echo "$FIND_FILE" | sed -e 's/\-\-search\.txt/--replace.txt/'`;
+  CSS_PATH=`dirname $FIND_FILE`;
+  CSS_PATH=css/`basename $CSS_PATH`;
+  if [[ $CSS_PATH == 'css/text-replacements' ]]; then CSS_PATH=css; fi
+  CSS_FILE=$CSS_PATH/`basename $FIND_FILE | sed -e 's/\-\-.*\-\-search\.txt/.css/'`;
+
+  # Convert search string to a sed-compatible regular expression.
+  FIND=`cat $FIND_FILE | perl -e 'while (<>) { $_ =~ s/\s+$//; $line = quotemeta($_) . "\\\n"; $line =~ s/\\\([\(\)\{\}])/\1/g; print $line}'`;
+
+  cat $CSS_FILE |
+  # Replace search string with "TEXT-REPLACEMENT" token.
+  sed -n -e '1h;1!H;$ {g;' -e "s/$FIND/TEXT\-REPLACEMENT/;" -e 'p;}' |
+  sed -e 's/TEXT\-REPLACEMENT/TEXT\-REPLACEMENT\
+/' |
+  # Replace "TEXT-REPLACEMENT" token with contents of replacement file.
+  sed -e "/^TEXT-REPLACEMENT\$/{r $REPLACE_FILE" -e 'd;}' | #-e '/^TEXT-REPLACEMENT$/! d;' |
+  cat > $CSS_FILE.new;
+
+  # Halt the script if no replacement has been made.
+  if [ -z "`diff -q $CSS_FILE $CSS_FILE.new`" ]; then
+    echo "FATAL ERROR: The following file contents were not found: `basename $FIND_FILE`";
+    # Delete all the generated CSS, except for the one that generated the error.
+    rm css/*.css $ORIG/css/*.css;
+    mv $CSS_FILE.new $CSS_FILE;
+    # Restore the environment.
+    mv config.rb.orig config.rb;
+    mv $ORIG/_init.scss sass/;
+    exit;
+  fi
+
+  mv $CSS_FILE.new $CSS_FILE;
+done
+
+# Restore the environment.
+mv config.rb.orig config.rb;
+mv $ORIG/_init.scss sass/;
+cd $ORIG;
Binary file sites/all/themes/zen/zen-internals/images/help.png has changed
Binary file sites/all/themes/zen/zen-internals/images/menu-collapsed-rtl.png has changed
Binary file sites/all/themes/zen/zen-internals/images/menu-collapsed.png has changed
Binary file sites/all/themes/zen/zen-internals/images/menu-expanded.png has changed
Binary file sites/all/themes/zen/zen-internals/images/menu-leaf.png has changed
Binary file sites/all/themes/zen/zen-internals/images/message-24-error.png has changed
Binary file sites/all/themes/zen/zen-internals/images/message-24-ok.png has changed
Binary file sites/all/themes/zen/zen-internals/images/message-24-warning.png has changed
Binary file sites/all/themes/zen/zen-internals/images/progress.gif has changed
Binary file sites/all/themes/zen/zen-internals/screenshot.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/template.theme-registry.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,29 @@
+<?php
+/**
+ * @file
+ * Contains infrequently used theme registry build functions.
+ */
+
+/**
+ * Implements HOOK_theme().
+ *
+ * We are simply using this hook as a convenient time to do some related work.
+ */
+function _zen_theme(&$existing, $type, $theme, $path) {
+  // If we are auto-rebuilding the theme registry, warn about the feature.
+  if (
+    // Don't display on update.php or install.php.
+    !defined('MAINTENANCE_MODE')
+    // Only display for site config admins.
+    && function_exists('user_access') && user_access('administer site configuration')
+    && theme_get_setting('zen_rebuild_registry')
+    // Always display in the admin section, otherwise limit to three per hour.
+    && (arg(0) == 'admin' || flood_is_allowed($GLOBALS['theme'] . '_rebuild_registry_warning', 3))
+  ) {
+    flood_register_event($GLOBALS['theme'] . '_rebuild_registry_warning');
+    drupal_set_message(t('For easier theme development, the theme registry is being rebuilt on every page request. It is <em>extremely</em> important to <a href="!link">turn off this feature</a> on production websites.', array('!link' => url('admin/appearance/settings/' . $GLOBALS['theme']))), 'warning', FALSE);
+  }
+
+  // hook_theme() expects an array, so return an empty one.
+  return array();
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/template.zen.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,28 @@
+<?php
+/**
+ * @file
+ * Add stylesheets that are only needed when Zen is the enabled theme.
+ *
+ * Don't do something this dumb in your sub-theme. Stylesheets should be added
+ * using your sub-theme's .info file. If you desire styles that apply
+ * conditionally, you can conditionally add a "body class" in the
+ * preprocess_page function. For an example, see how wireframe styling is
+ * handled in zen_preprocess_html() and wireframes.css.
+ */
+
+/**
+ * If the user is silly and enables Zen as the theme, manually add some stylesheets.
+ */
+function _zen_preprocess_html(&$variables, $hook) {
+  // Add Zen's stylesheets manually instead of via its .info file. We do not
+  // want the stylesheets to be inherited from Zen since it becomes impossible
+  // to re-order the stylesheets in the sub-theme.
+  $directory = drupal_get_path('theme', 'zen') . '/zen-internals/css/';
+  $stylesheet = (theme_get_setting('zen_layout') == 'zen-fixed-width') ? 'styles-fixed.css' : 'styles.css';
+  drupal_add_css($directory . $stylesheet, array('group' => CSS_THEME, 'every_page' => TRUE));
+
+  // Sub-themes after 7.x-5.1 remove these files, but we can't remove them using
+  // zen.info since it will break sub-themes built with 7.x-5.0/5.1.
+  drupal_add_css($directory . 'system.messages.css', array('group' => CSS_THEME, 'every_page' => TRUE));
+  drupal_add_css($directory . 'system.theme.css', array('group' => CSS_THEME, 'every_page' => TRUE));
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen-internals/zen.drush.inc	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,127 @@
+<?php
+/**
+ * @file
+ * Contains functions only needed for drush integration.
+ */
+
+/**
+ * Implementation of hook_drush_command().
+ */
+function zen_drush_command() {
+  $items = array();
+
+  $items['zen'] = array(
+    'description' => 'Create a theme using Zen.',
+    'arguments' => array(
+      'name'         => 'A name for your theme.',
+      'machine_name' => '[optional] A machine-readable name for your theme.',
+    ),
+    'options' => array(
+      'name'         => 'A name for your theme.',
+      'machine-name' => '[a-z, 0-9] A machine-readable name for your theme.',
+      'path'         => 'The path where your theme will be created. Defaults to: sites/all/themes',
+      'description'  => 'A description of your theme.',
+      'without-rtl'  => 'Remove all RTL stylesheets.',
+    ),
+    'examples' => array(
+      'drush zen "My theme name"' => 'Create a sub-theme, using the default options.',
+      'drush zen "My theme name" my_theme' => 'Create a sub-theme with a specific machine name.',
+      'drush zen "My theme" --without-rtl --path=sites/default/themes' => 'Create a sub-theme in the specified directory without RTL stylesheets.',
+    ),
+  );
+
+  return $items;
+}
+
+/**
+ * Create a Zen sub-theme using the starter kit.
+ */
+function drush_zen($name = NULL, $machine_name = NULL) {
+  // Determine the theme name.
+  if (!isset($name)) {
+    $name = drush_get_option('name');
+  }
+
+  // Determine the machine name.
+  if (!isset($machine_name)) {
+    $machine_name = drush_get_option('machine-name');
+  }
+  if (!$machine_name) {
+    $machine_name = $name;
+  }
+  $machine_name = str_replace(' ', '_', strtolower($machine_name));
+  $search = array(
+    '/[^a-z0-9_]/', // Remove characters not valid in function names.
+    '/^[^a-z]+/',   // Functions must begin with an alpha character.
+  );
+  $machine_name = preg_replace($search, '', $machine_name);
+
+  // Determine the path to the new subtheme.
+  $subtheme_path = 'sites/all/themes';
+  if ($path = drush_get_option('path')) {
+    $subtheme_path = drush_trim_path($path);
+  }
+  $subtheme_path = drush_normalize_path(drush_get_context('DRUSH_DRUPAL_ROOT') . '/' . $subtheme_path . '/' . $machine_name);
+
+  // Make a fresh copy of the original starter kit.
+  $starter_path = drush_normalize_path(drush_get_context('DRUSH_DRUPAL_ROOT') . '/' . drupal_get_path('theme', 'zen') . '/STARTERKIT');
+  if (!is_dir(dirname($subtheme_path))) {
+    drush_die(dt('The directory "!directory" was not found.', array('!directory' => dirname($subtheme_path))));
+  }
+  drush_op('drush_copy_dir', $starter_path, $subtheme_path);
+
+  // Rename the .info file.
+  $subtheme_info_file = $subtheme_path . '/' . $machine_name . '.info';
+  drush_op('rename', drush_normalize_path($subtheme_path . '/STARTERKIT.info.txt'), drush_normalize_path($subtheme_info_file));
+
+  // Alter the contents of the .info file based on the command options.
+  $alterations = array(
+    '= Zen Sub-theme Starter Kit' => '= ' . $name,
+  );
+  if ($description = drush_get_option('description')) {
+    $alterations['Read the <a href="https://drupal.org/node/873778">online docs</a> or the included README.txt on how to create a theme with Zen.'] = $description;
+  }
+  drush_op('zen_file_str_replace', $subtheme_info_file, array_keys($alterations), $alterations);
+
+  // Replace all occurrences of 'STARTERKIT' with the machine name of our sub theme.
+  drush_op('zen_file_str_replace', $subtheme_path . '/theme-settings.php', 'STARTERKIT', $machine_name);
+  drush_op('zen_file_str_replace', $subtheme_path . '/template.php', 'STARTERKIT', $machine_name);
+
+  // Remove all RTL stylesheets.
+  if ($without_rtl = drush_get_option('without-rtl')) {
+    foreach (array('layouts/_fixed', 'layouts/_responsive', 'components/_misc', '_normalize', 'styles') as $file) {
+      // Move any sub-directory into a separate variable.
+      list($sub_dir, $css_file) = explode('/', $file . '/');
+      if (!$css_file) {
+        $css_file = $sub_dir;
+        $sub_dir = '';
+      }
+      else {
+        $sub_dir .= '/';
+      }
+      // Remove the RTL css file.
+      $css_file = $sub_dir . (($css_file[0] == '_') ? substr($css_file, 1) : $css_file);
+      drush_op('unlink', drush_normalize_path($subtheme_path . '/css/' . $css_file . '-rtl.css'));
+      drush_op('zen_file_str_replace', $subtheme_path . '/css/' . $css_file . '.css', ' /* LTR */', '');
+      // Remove the RTL sass file.
+      drush_op('unlink', drush_normalize_path($subtheme_path . '/sass/' . $file . '-rtl.scss'));
+      drush_op('zen_file_str_replace', $subtheme_path . '/sass/' . $file . '.scss', ' /* LTR */', '');
+    }
+  }
+
+  // Notify user of the newly created theme.
+  drush_print(dt('Starter kit for "!name" created in: !path', array(
+    '!name' => $name,
+    '!path' => $subtheme_path,
+  )));
+}
+
+/**
+ * Replace strings in a file.
+ */
+function zen_file_str_replace($file_path, $find, $replace) {
+  $file_path = drush_normalize_path($file_path);
+  $file_contents = file_get_contents($file_path);
+  $file_contents = str_replace($find, $replace, $file_contents);
+  file_put_contents($file_path, $file_contents);
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sites/all/themes/zen/zen.info	Thu Aug 22 17:22:54 2013 +0100
@@ -0,0 +1,43 @@
+name        = Zen
+description = Zen sub-themes are the ultimate starting themes for Drupal 7. Read the <a href="https://drupal.org/node/873778">online docs</a> or the included README-FIRST.txt on how to create a theme with Zen.
+screenshot  = zen-internals/screenshot.png
+
+core        = 7.x
+engine      = phptemplate
+
+stylesheets[all][] = system.menus.css
+
+regions[header]         = Header
+regions[navigation]     = Navigation bar
+regions[highlighted]    = Highlighted
+regions[help]           = Help
+regions[content]        = Content
+regions[sidebar_first]  = First sidebar
+regions[sidebar_second] = Second sidebar
+regions[footer]         = Footer
+regions[bottom]         = Page bottom
+regions[page_top]       = Page top
+regions[page_bottom]    = Page bottom
+
+settings[zen_breadcrumb]           = yes
+settings[zen_breadcrumb_separator] = ' › '
+settings[zen_breadcrumb_home]      = 1
+settings[zen_breadcrumb_trailing]  = 0
+settings[zen_breadcrumb_title]     = 0
+settings[zen_layout]               = zen-responsive-sidebars
+settings[zen_skip_link_anchor]     = main-menu
+settings[zen_skip_link_text]       = Jump to navigation
+settings[zen_html5_respond_meta][] = respond
+settings[zen_html5_respond_meta][] = html5
+settings[zen_html5_respond_meta][] = meta
+settings[zen_rebuild_registry]     = 0
+settings[zen_wireframes]           = 0
+
+plugins[panels][layouts] = panels-layouts
+
+; Information added by drupal.org packaging script on 2013-08-21
+version = "7.x-5.4"
+core = "7.x"
+project = "zen"
+datestamp = "1377107504"
+